fika-editor 3.0.13 → 3.0.14

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.
@@ -151,4 +151,4 @@ endobj
151
151
  `;for(var p=0;p<this._polylines[o].length;p++){var[d,f]=this._polylines[o][p];c+=`${h(r+d*i)} ${h(s-(n+f*a))} ${p?"l":"m"} `}c+="\nS\nendstream\nendobj\n",l+=`${u} 0 R `,u++}return(l+="]\n>>\nendobj\n")+(c+="\ntrailer\n<< /Root 1 0 R \n /Size 0\n >>startxref\n\n%%EOF\n")}boxes(e){e||(e={});let[t,r,n,i]=this.resolveScale(e),a=[];for(let e=0;e<this._tree.chld.length;e++){let{x:o,y:s,w:l,h:c}=this._tree.chld[e].bbox;a.push({x:t+o*n,y:r+s*i,w:l*n,h:c*i})}return a}box(e){e||(e={});let[t,r,n,i]=this.resolveScale(e);return{x:t+this._tree.bbox.x*n,y:r+this._tree.bbox.y*i,w:this._tree.bbox.w*n,h:this._tree.bbox.h*i}}};r.d(t,{PI:()=>l,jH:()=>p})},1932(e,t,r){var n,i=Symbol.for("immer-nothing"),a=Symbol.for("immer-draftable"),o=Symbol.for("immer-state");function s(e){throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var l=Object,c=l.getPrototypeOf,u="constructor",h="prototype",p="configurable",d="enumerable",f="writable",m="value",g=e=>!!e&&!!e[o];function A(e){return!!e&&(R(e)||O(e)||!!e[a]||!!e[u]?.[a]||L(e)||N(e))}var y=l[h][u].toString(),v=new WeakMap;function R(e){if(!e||!_(e))return!1;let t=c(e);if(null===t||t===l[h])return!0;let r=l.hasOwnProperty.call(t,u)&&t[u];if(r===Object)return!0;if(!T(r))return!1;let n=v.get(r);return void 0===n&&(n=Function.toString.call(r),v.set(r,n)),n===y}function b(e,t,r=!0){0===x(e)?(r?Reflect.ownKeys(e):l.keys(e)).forEach(r=>{t(r,e[r],e)}):e.forEach((r,n)=>t(n,r,e))}function x(e){let t=e[o];return t?t.type_:O(e)?1:L(e)?2:3*!!N(e)}var M=(e,t,r=x(e))=>2===r?e.has(t):l[h].hasOwnProperty.call(e,t),S=(e,t,r=x(e))=>2===r?e.get(t):e[t],w=(e,t,r,n=x(e))=>{2===n?e.set(t,r):3===n?e.add(r):e[t]=r},O=Array.isArray,L=e=>e instanceof Map,N=e=>e instanceof Set,_=e=>"object"==typeof e,T=e=>"function"==typeof e,P=e=>e.modified_?e.copy_:e.base_;function C(e,t){if(L(e))return new Map(e);if(N(e))return new Set(e);if(O(e))return Array[h].slice.call(e);let r=R(e);if(!0!==t&&("class_only"!==t||r)){let t=c(e);if(null!==t&&r)return{...e};let n=l.create(t);return l.assign(n,e)}{let t=l.getOwnPropertyDescriptors(e);delete t[o];let r=Reflect.ownKeys(t);for(let n=0;n<r.length;n++){let i=r[n],a=t[i];!1===a[f]&&(a[f]=!0,a[p]=!0),(a.get||a.set)&&(t[i]={[p]:!0,[f]:!0,[d]:a[d],[m]:e[i]})}return l.create(c(e),t)}}function I(e,t=!1){return F(e)||g(e)||!A(e)||(x(e)>1&&l.defineProperties(e,{set:k,add:k,clear:k,delete:k}),l.freeze(e),t&&b(e,(e,t)=>{I(t,!0)},!1)),e}var k={[m]:function(){s(2)}};function F(e){return!(null!==e&&_(e))||l.isFrozen(e)}var X="MapSet",U="Patches",W="ArrayMethods",V={};function E(e){let t=V[e];return t||s(0),t}var Y=e=>!!V[e];function D(e,t){t&&(e.patchPlugin_=E(U),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Q(e){$(e),e.drafts_.forEach(Z),e.drafts_=null}function $(e){e===n&&(n=e.parent_)}var B=e=>n={drafts_:[],parent_:n,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Y(X)?E(X):void 0,arrayMethodsPlugin_:Y(W)?E(W):void 0};function Z(e){let t=e[o];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function K(e,t){t.unfinalizedDrafts_=t.drafts_.length;let r=t.drafts_[0];if(void 0!==e&&e!==r){r[o].modified_&&(Q(t),s(4)),A(e)&&(e=G(t,e));let{patchPlugin_:n}=t;n&&n.generateReplacementPatches_(r[o].base_,e,t)}else e=G(t,r);return function(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&I(t,r)}(t,e,!0),Q(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==i?e:void 0}function G(e,t){if(F(t))return t;let r=t[o];if(!r)return ee(t,e.handledSet_,e);if(!z(r,e))return t;if(!r.modified_)return r.base_;if(!r.finalized_){let{callbacks_:t}=r;if(t)for(;t.length>0;)t.pop()(e);q(r,e)}return r.copy_}function H(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var z=(e,t)=>e.scope_===t,J=[];function j(e,t,r,n){let i=e.copy_||e.base_,a=e.type_;if(void 0!==n&&S(i,n,a)===t)return void w(i,n,r,a);if(!e.draftLocations_){let t=e.draftLocations_=new Map;b(i,(e,r)=>{if(g(r)){let n=t.get(r)||[];n.push(e),t.set(r,n)}})}for(let n of e.draftLocations_.get(t)??J)w(i,n,r,a)}function q(e,t){if(e.modified_&&!e.finalized_&&(3===e.type_||1===e.type_&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){let{patchPlugin_:r}=t;if(r){let n=r.getPath(e);n&&r.generatePatches_(e,n,t)}H(e)}}function ee(e,t,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||g(e)||t.has(e)||!A(e)||F(e)||(t.add(e),b(e,(n,i)=>{if(g(i)){let t=i[o];z(t,r)&&(w(e,n,P(t),e.type_),H(t))}else A(i)&&ee(i,t,r)})),e}var et={get(e,t){var r,n,i,a;let s;if(t===o)return e;let l=e.scope_.arrayMethodsPlugin_,c=1===e.type_&&"string"==typeof t;if(c&&l?.isArrayOperationMethod(t))return l.createMethodInterceptor(e,t);let u=e.copy_||e.base_;if(!M(u,t,e.type_)){let n;return r=e,(n=ei(u,t))?m in n?n[m]:n.get?.call(r.draft_):void 0}let h=u[t];if(e.finalized_||!A(h)||c&&e.operationMethod&&l?.isMutatingArrayMethod(e.operationMethod)&&Number.isInteger(s=+t)&&String(s)===t)return h;if(h===en(e.base_,t)||(n=e,i=t,a=h,!(1!==n.type_||!n.allIndicesReassigned_||n.assigned_?.get(i))&&A(a)&&!a[o]&&n.baseRefs_.has(a))){eo(e);let r=1===e.type_?+t:t,n=el(e.scope_,h,e,r);return e.copy_[r]=n}return h},has:(e,t)=>t in(e.copy_||e.base_),ownKeys:e=>Reflect.ownKeys(e.copy_||e.base_),set(e,t,r){let n=ei(e.copy_||e.base_,t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){let n=en(e.copy_||e.base_,t),i=n?.[o];if(i&&i.base_===r)return e.copy_[t]=r,e.assigned_.set(t,!1),!0;if((r===n?0!==r||1/r==1/n:r!=r&&n!=n)&&(void 0!==r||M(e.base_,t,e.type_)))return!0;eo(e),ea(e)}return!!(e.copy_[t]===r&&(void 0!==r||M(e.copy_,t,e.type_))||Number.isNaN(r)&&Number.isNaN(e.copy_[t]))||(e.copy_[t]=r,e.assigned_.set(t,!0),!function(e,t,r){let{scope_:n}=e;if(g(r)){let i=r[o];z(i,n)&&i.callbacks_.push(function(){eo(e),j(e,r,P(i),t)})}else A(r)&&e.callbacks_.push(function(){let i=e.copy_||e.base_;3===e.type_?i.has(r)&&ee(r,n.handledSet_,n):S(i,t,e.type_)===r&&n.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&ee(S(e.copy_,t,e.type_),n.handledSet_,n)})}(e,t,r),!0)},deleteProperty:(e,t)=>(eo(e),void 0!==en(e.base_,t)||t in e.base_?(e.assigned_.set(t,!1),ea(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){let r=e.copy_||e.base_,n=Reflect.getOwnPropertyDescriptor(r,t);return n?{[f]:!0,[p]:1!==e.type_||"length"!==t,[d]:n[d],[m]:r[t]}:n},defineProperty(){s(11)},getPrototypeOf:e=>c(e.base_),setPrototypeOf(){s(12)}},er={};for(let e in et){let t=et[e];er[e]=function(){let e=arguments;return e[0]=e[0][0],t.apply(this,e)}}function en(e,t){let r=e[o];return(r?r.copy_||r.base_:e)[t]}function ei(e,t){if(!(t in e))return;let r=c(e);for(;r;){let e=Object.getOwnPropertyDescriptor(r,t);if(e)return e;r=c(r)}}function ea(e){!e.modified_&&(e.modified_=!0,e.parent_&&ea(e.parent_))}function eo(e){e.copy_||(e.assigned_=new Map,e.copy_=C(e.base_,e.scope_.immer_.useStrictShallowCopy_))}er.deleteProperty=function(e,t){return er.set.call(this,e,t,void 0)},er.set=function(e,t,r){return et.set.call(this,e[0],t,r,e[0])};var es=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,t,r)=>{let n;if(T(e)&&!T(t)){let r=t;t=e;let n=this;return function(e=r,...i){return n.produce(e,e=>t.call(this,e,...i))}}if(T(t)||s(6),void 0===r||T(r)||s(7),A(e)){let i=B(this),a=el(i,e,void 0),o=!0;try{n=t(a),o=!1}finally{o?Q(i):$(i)}return D(i,r),K(n,i)}if(e&&_(e))s(1);else{if(void 0===(n=t(e))&&(n=e),n===i&&(n=void 0),this.autoFreeze_&&I(n,!0),r){let t=[],i=[];E(U).generateReplacementPatches_(e,n,{patches_:t,inversePatches_:i}),r(t,i)}return n}},this.produceWithPatches=(e,t)=>{let r,n;return T(e)?(t,...r)=>this.produceWithPatches(t,t=>e(t,...r)):[this.produce(e,t,(e,t)=>{r=e,n=t}),r,n]},"boolean"==typeof e?.autoFreeze&&this.setAutoFreeze(e.autoFreeze),"boolean"==typeof e?.useStrictShallowCopy&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),"boolean"==typeof e?.useStrictIteration&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){var t;A(e)||s(8),g(e)&&(g(t=e)||s(10),e=function e(t){let r;if(!A(t)||F(t))return t;let n=t[o],i=!0;if(n){if(!n.modified_)return n.base_;n.finalized_=!0,r=C(t,n.scope_.immer_.useStrictShallowCopy_),i=n.scope_.immer_.shouldUseStrictIteration()}else r=C(t,!0);return b(r,(t,n)=>{w(r,t,e(n))},i),n&&(n.finalized_=!1),r}(t));let r=B(this),n=el(r,e,void 0);return n[o].isManual_=!0,$(r),n}finishDraft(e,t){let r=e&&e[o];r&&r.isManual_||s(9);let{scope_:n}=r;return D(n,t),K(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){let n=t[r];if(0===n.path.length&&"replace"===n.op){e=n.value;break}}r>-1&&(t=t.slice(r+1));let n=E(U).applyPatches_;return g(e)?n(e,t):this.produce(e,e=>n(e,t))}};function el(e,t,r,i){let[a,o]=L(t)?E(X).proxyMap_(t,r):N(t)?E(X).proxySet_(t,r):function(e,t){let r=O(e),i={type_:+!!r,scope_:t?t.scope_:n,modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},a=i,o=et;r&&(a=[i],o=er);let{revoke:s,proxy:l}=Proxy.revocable(a,o);return i.draft_=l,i.revoke_=s,[l,i]}(t,r);if((r?.scope_??n).drafts_.push(a),o.callbacks_=r?.callbacks_??[],o.key_=i,r&&void 0!==i)r.callbacks_.push(function(e){if(!o||!z(o,e))return;e.mapSetPlugin_?.fixSetContents(o);let t=P(o);j(r,o.draft_??o,t,i),q(o,e)});else o.callbacks_.push(function(e){e.mapSetPlugin_?.fixSetContents(o);let{patchPlugin_:t}=e;o.modified_&&t&&t.generatePatches_(o,[],e)});return a}function ec(){let e="replace",t="remove";function r(e){if(!A(e))return e;if(O(e))return e.map(r);if(L(e))return new Map(Array.from(e.entries()).map(([e,t])=>[e,r(t)]));if(N(e))return new Set(Array.from(e).map(r));let t=Object.create(c(e));for(let n in e)t[n]=r(e[n]);return M(e,a)&&(t[a]=e[a]),t}function n(e){return g(e)?r(e):e}V[U]||(V[U]={applyPatches_:function(n,i){return i.forEach(i=>{let{path:a,op:o}=i,l=n;for(let e=0;e<a.length-1;e++){let t=x(l),r=a[e];"string"!=typeof r&&"number"!=typeof r&&(r=""+r),(0===t||1===t)&&("__proto__"===r||r===u)&&s(19),T(l)&&r===h&&s(19),null!==(l=S(l,r))&&_(l)||s(18,a.join("/"))}let c=x(l),p=r(i.value),d=a[a.length-1];switch(o){case e:switch(c){case 2:return l.set(d,p);case 3:s(16);default:return l[d]=p}case"add":switch(c){case 1:return"-"===d?l.push(p):l.splice(d,0,p);case 2:return l.set(d,p);case 3:return l.add(p);default:return l[d]=p}case t:switch(c){case 1:return l.splice(d,1);case 2:return l.delete(d);case 3:return l.delete(i.value);default:return delete l[d]}default:s(17)}}),n},generatePatches_:function(r,i,a){if(r.scope_.processedForPatches_.has(r))return;r.scope_.processedForPatches_.add(r);let{patches_:s,inversePatches_:l}=a;switch(r.type_){case 0:case 2:return function(r,i,a,o){let{base_:s,copy_:l,type_:c}=r;b(r.assigned_,(r,u)=>{let h=S(s,r,c),p=S(l,r,c),d=u?M(s,r)?e:"add":t;if(h===p&&d===e)return;let f=i.concat(r);a.push(d===t?{op:d,path:f}:{op:d,path:f,value:n(p)}),o.push("add"===d?{op:t,path:f}:d===t?{op:"add",path:f,value:n(h)}:{op:e,path:f,value:n(h)})})}(r,i,s,l);case 1:return function(r,i,a,s){let{base_:l,assigned_:c}=r,u=r.copy_;u.length<l.length&&([l,u]=[u,l],[a,s]=[s,a]);let h=!0===r.allIndicesReassigned_;for(let t=0;t<l.length;t++){let r=u[t],p=l[t];if((h||c?.get(t.toString()))&&r!==p){let l=r?.[o];if(l&&l.modified_)continue;let c=i.concat([t]);a.push({op:e,path:c,value:n(r)}),s.push({op:e,path:c,value:n(p)})}}for(let e=l.length;e<u.length;e++){let t=i.concat([e]);a.push({op:"add",path:t,value:n(u[e])})}for(let e=u.length-1;l.length<=e;--e){let r=i.concat([e]);s.push({op:t,path:r})}}(r,i,s,l);case 3:return function(e,r,n,i){let{base_:a,copy_:o}=e,s=0;a.forEach(e=>{if(!o.has(e)){let a=r.concat([s]);n.push({op:t,path:a,value:e}),i.unshift({op:"add",path:a,value:e})}s++}),s=0,o.forEach(e=>{if(!a.has(e)){let a=r.concat([s]);n.push({op:"add",path:a,value:e}),i.unshift({op:t,path:a,value:e})}s++})}(r,i,s,l)}},generateReplacementPatches_:function(t,r,n){let{patches_:a,inversePatches_:o}=n;a.push({op:e,path:[],value:r===i?void 0:r}),o.push({op:e,path:[],value:t})},getPath:function e(t,r=[]){if(void 0!==t.key_){var n;let e,i=t.parent_.copy_??t.parent_.base_,a=_(n=S(i,t.key_))?n?.[o]:null,s=S(i,t.key_);if(void 0===s||s!==t.draft_&&s!==t.base_&&s!==t.copy_||null!=a&&a.base_!==t.base_)return null;let l=3===t.parent_.type_;if(e=l?Array.from(t.parent_.drafts_.keys()).indexOf(t.key_):t.key_,!(l&&i.size>e||M(i,e)))return null;r.push(e)}if(t.parent_)return e(t.parent_,r);r.reverse();try{var i=t.copy_,a=r;let e=i;for(let t=0;t<a.length-1;t++)if(!_(e=S(e,a[t]))||null===e)throw Error(`Cannot resolve path at '${a.join("/")}'`)}catch(e){return null}return r}})}var eu=globalThis.Iterator;eu?.from;var eh=new es,ep=eh.produce,ed=eh.produceWithPatches.bind(eh),ef=eh.setAutoFreeze.bind(eh),em=eh.applyPatches.bind(eh);r.d(t,{$i:()=>em,YT:()=>ec,ht:()=>ef,jM:()=>ep,vI:()=>ed})},90754(e,t,r){r.d(t,{A:()=>c});var n=r(51649);let i=(...e)=>e.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim(),a=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,r)=>r?r.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)};var o={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let s=(0,n.createContext)({}),l=(0,n.forwardRef)(({color:e,size:t,strokeWidth:r,absoluteStrokeWidth:a,className:l="",children:c,iconNode:u,...h},p)=>{let{size:d=24,strokeWidth:f=2,absoluteStrokeWidth:m=!1,color:g="currentColor",className:A=""}=(0,n.useContext)(s)??{},y=a??m?24*Number(r??f)/Number(t??d):r??f;return(0,n.createElement)("svg",{ref:p,...o,width:t??d??o.width,height:t??d??o.height,stroke:e??g,strokeWidth:y,className:i("lucide",A,l),...!c&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1})(h)&&{"aria-hidden":"true"},...h},[...u.map(([e,t])=>(0,n.createElement)(e,t)),...Array.isArray(c)?c:[c]])}),c=(e,t)=>{let r=(0,n.forwardRef)(({className:r,...o},s)=>(0,n.createElement)(l,{ref:s,iconNode:t,className:i(`lucide-${a(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,r),...o}));return r.displayName=a(e),r}},39637(e,t,r){let n=(0,r(90754).A)("align-center-horizontal",[["path",{d:"M2 12h20",key:"9i4pu4"}],["path",{d:"M10 16v4a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-4",key:"11f1s0"}],["path",{d:"M10 8V4a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v4",key:"t14dx9"}],["path",{d:"M20 16v1a2 2 0 0 1-2 2h-2a2 2 0 0 1-2-2v-1",key:"1w07xs"}],["path",{d:"M14 8V7c0-1.1.9-2 2-2h2a2 2 0 0 1 2 2v1",key:"1apec2"}]]);r.d(t,{},{A:n})},64135(e,t,r){let n=(0,r(90754).A)("align-center-vertical",[["path",{d:"M12 2v20",key:"t6zp3m"}],["path",{d:"M8 10H4a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2h4",key:"14d6g8"}],["path",{d:"M16 10h4a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2h-4",key:"1e2lrw"}],["path",{d:"M8 20H7a2 2 0 0 1-2-2v-2c0-1.1.9-2 2-2h1",key:"1fkdwx"}],["path",{d:"M16 14h1a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2h-1",key:"1euafb"}]]);r.d(t,{},{A:n})},72287(e,t,r){let n=(0,r(90754).A)("align-end-horizontal",[["rect",{width:"6",height:"16",x:"4",y:"2",rx:"2",key:"z5wdxg"}],["rect",{width:"6",height:"9",x:"14",y:"9",rx:"2",key:"um7a8w"}],["path",{d:"M22 22H2",key:"19qnx5"}]]);r.d(t,{},{A:n})},96657(e,t,r){let n=(0,r(90754).A)("align-end-vertical",[["rect",{width:"16",height:"6",x:"2",y:"4",rx:"2",key:"10wcwx"}],["rect",{width:"9",height:"6",x:"9",y:"14",rx:"2",key:"4p5bwg"}],["path",{d:"M22 22V2",key:"12ipfv"}]]);r.d(t,{},{A:n})},89702(e,t,r){let n=(0,r(90754).A)("align-start-horizontal",[["rect",{width:"6",height:"16",x:"4",y:"6",rx:"2",key:"1n4dg1"}],["rect",{width:"6",height:"9",x:"14",y:"6",rx:"2",key:"17khns"}],["path",{d:"M22 2H2",key:"fhrpnj"}]]);r.d(t,{},{A:n})},69920(e,t,r){let n=(0,r(90754).A)("align-start-vertical",[["rect",{width:"9",height:"6",x:"6",y:"14",rx:"2",key:"lpm2y7"}],["rect",{width:"16",height:"6",x:"6",y:"4",rx:"2",key:"rdj6ps"}],["path",{d:"M2 2v20",key:"1ivd8o"}]]);r.d(t,{},{A:n})},38972(e,t,r){let n=(0,r(90754).A)("align-vertical-justify-center",[["rect",{width:"14",height:"6",x:"5",y:"16",rx:"2",key:"1i8z2d"}],["rect",{width:"10",height:"6",x:"7",y:"2",rx:"2",key:"ypihtt"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);r.d(t,{},{A:n})},52062(e,t,r){let n=(0,r(90754).A)("align-vertical-justify-end",[["rect",{width:"14",height:"6",x:"5",y:"12",rx:"2",key:"4l4tp2"}],["rect",{width:"10",height:"6",x:"7",y:"2",rx:"2",key:"ypihtt"}],["path",{d:"M2 22h20",key:"272qi7"}]]);r.d(t,{},{A:n})},90821(e,t,r){let n=(0,r(90754).A)("align-vertical-justify-start",[["rect",{width:"14",height:"6",x:"5",y:"16",rx:"2",key:"1i8z2d"}],["rect",{width:"10",height:"6",x:"7",y:"6",rx:"2",key:"13squh"}],["path",{d:"M2 2h20",key:"1ennik"}]]);r.d(t,{},{A:n})},75133(e,t,r){let n=(0,r(90754).A)("arrow-left-right",[["path",{d:"M8 3 4 7l4 4",key:"9rb6wj"}],["path",{d:"M4 7h16",key:"6tx8e3"}],["path",{d:"m16 21 4-4-4-4",key:"siv7j2"}],["path",{d:"M20 17H4",key:"h6l3hr"}]]);r.d(t,{},{A:n})},25279(e,t,r){let n=(0,r(90754).A)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);r.d(t,{},{A:n})},82378(e,t,r){let n=(0,r(90754).A)("baseline",[["path",{d:"M4 20h16",key:"14thso"}],["path",{d:"m6 16 6-12 6 12",key:"1b4byz"}],["path",{d:"M8 12h8",key:"1wcyev"}]]);r.d(t,{},{A:n})},3435(e,t,r){let n=(0,r(90754).A)("between-vertical-start",[["rect",{width:"7",height:"13",x:"3",y:"8",rx:"1",key:"1fjrkv"}],["path",{d:"m15 2-3 3-3-3",key:"1uh6eb"}],["rect",{width:"7",height:"13",x:"14",y:"8",rx:"1",key:"w3fjg8"}]]);r.d(t,{},{A:n})},99114(e,t,r){let n=(0,r(90754).A)("bold",[["path",{d:"M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8",key:"mg9rjx"}]]);r.d(t,{},{A:n})},63787(e,t,r){let n=(0,r(90754).A)("bookmark",[["path",{d:"M17 3a2 2 0 0 1 2 2v15a1 1 0 0 1-1.496.868l-4.512-2.578a2 2 0 0 0-1.984 0l-4.512 2.578A1 1 0 0 1 5 20V5a2 2 0 0 1 2-2z",key:"oz39mx"}]]);r.d(t,{},{A:n})},11955(e,t,r){let n=(0,r(90754).A)("braces",[["path",{d:"M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1",key:"ezmyqa"}],["path",{d:"M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1",key:"e1hn23"}]]);r.d(t,{},{A:n})},59927(e,t,r){let n=(0,r(90754).A)("bring-to-front",[["rect",{x:"8",y:"8",width:"8",height:"8",rx:"2",key:"yj20xf"}],["path",{d:"M4 10a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2",key:"1ltk23"}],["path",{d:"M14 20a2 2 0 0 0 2 2h4a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2",key:"1q24h9"}]]);r.d(t,{},{A:n})},46666(e,t,r){let n=(0,r(90754).A)("camera",[["path",{d:"M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z",key:"18u6gg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]]);r.d(t,{},{A:n})},60781(e,t,r){let n=(0,r(90754).A)("chart-area",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M7 11.207a.5.5 0 0 1 .146-.353l2-2a.5.5 0 0 1 .708 0l3.292 3.292a.5.5 0 0 0 .708 0l4.292-4.292a.5.5 0 0 1 .854.353V16a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1z",key:"q0gr47"}]]);r.d(t,{},{A:n})},88561(e,t,r){let n=(0,r(90754).A)("chart-bar",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M7 16h8",key:"srdodz"}],["path",{d:"M7 11h12",key:"127s9w"}],["path",{d:"M7 6h3",key:"w9rmul"}]]);r.d(t,{},{A:n})},50168(e,t,r){let n=(0,r(90754).A)("chart-column",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);r.d(t,{},{A:n})},32392(e,t,r){let n=(0,r(90754).A)("chart-line",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"m19 9-5 5-4-4-3 3",key:"2osh9i"}]]);r.d(t,{},{A:n})},81416(e,t,r){let n=(0,r(90754).A)("chart-pie",[["path",{d:"M21 12c.552 0 1.005-.449.95-.998a10 10 0 0 0-8.953-8.951c-.55-.055-.998.398-.998.95v8a1 1 0 0 0 1 1z",key:"pzmjnu"}],["path",{d:"M21.21 15.89A10 10 0 1 1 8 2.83",key:"k2fpak"}]]);r.d(t,{},{A:n})},35716(e,t,r){let n=(0,r(90754).A)("chart-scatter",[["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}],["circle",{cx:"18.5",cy:"5.5",r:".5",fill:"currentColor",key:"lysivs"}],["circle",{cx:"11.5",cy:"11.5",r:".5",fill:"currentColor",key:"byv1b8"}],["circle",{cx:"7.5",cy:"16.5",r:".5",fill:"currentColor",key:"nkw3mc"}],["circle",{cx:"17.5",cy:"14.5",r:".5",fill:"currentColor",key:"1gjh6j"}],["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}]]);r.d(t,{},{A:n})},53729(e,t,r){let n=(0,r(90754).A)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);r.d(t,{},{A:n})},16749(e,t,r){let n=(0,r(90754).A)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);r.d(t,{},{A:n})},44810(e,t,r){let n=(0,r(90754).A)("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);r.d(t,{},{A:n})},70885(e,t,r){let n=(0,r(90754).A)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);r.d(t,{},{A:n})},19250(e,t,r){let n=(0,r(90754).A)("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);r.d(t,{},{A:n})},40983(e,t,r){let n=(0,r(90754).A)("circle-arrow-left",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m12 8-4 4 4 4",key:"15vm53"}],["path",{d:"M16 12H8",key:"1fr5h0"}]]);r.d(t,{},{A:n})},85824(e,t,r){let n=(0,r(90754).A)("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);r.d(t,{},{A:n})},78(e,t,r){let n=(0,r(90754).A)("circle-question-mark",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);r.d(t,{},{A:n})},37487(e,t,r){let n=(0,r(90754).A)("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);r.d(t,{},{A:n})},95878(e,t,r){let n=(0,r(90754).A)("cloud",[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]]);r.d(t,{},{A:n})},50184(e,t,r){let n=(0,r(90754).A)("code",[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]]);r.d(t,{},{A:n})},95864(e,t,r){let n=(0,r(90754).A)("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);r.d(t,{},{A:n})},81253(e,t,r){let n=(0,r(90754).A)("crop",[["path",{d:"M6 2v14a2 2 0 0 0 2 2h14",key:"ron5a4"}],["path",{d:"M18 22V8a2 2 0 0 0-2-2H2",key:"7s9ehn"}]]);r.d(t,{},{A:n})},87379(e,t,r){let n=(0,r(90754).A)("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]]);r.d(t,{},{A:n})},30166(e,t,r){let n=(0,r(90754).A)("ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);r.d(t,{},{A:n})},53331(e,t,r){let n=(0,r(90754).A)("eraser",[["path",{d:"M21 21H8a2 2 0 0 1-1.42-.587l-3.994-3.999a2 2 0 0 1 0-2.828l10-10a2 2 0 0 1 2.829 0l5.999 6a2 2 0 0 1 0 2.828L12.834 21",key:"g5wo59"}],["path",{d:"m5.082 11.09 8.828 8.828",key:"1wx5vj"}]]);r.d(t,{},{A:n})},65262(e,t,r){let n=(0,r(90754).A)("eye-off",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);r.d(t,{},{A:n})},15426(e,t,r){let n=(0,r(90754).A)("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);r.d(t,{},{A:n})},49781(e,t,r){let n=(0,r(90754).A)("face-grinning",[["path",{d:"M15 10V9",key:"4dkmfx"}],["path",{d:"M7.084 14.302a5.12 5.12 0 009.833 0 .24.24 0 00-.235-.302H7.32a.24.24 0 00-.235.302",key:"1ad3z7"}],["path",{d:"M9 10V9",key:"1lazqi"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);r.d(t,{},{A:n})},3227(e,t,r){let n=(0,r(90754).A)("face-slightly-smiling",[["path",{d:"M15 10V9",key:"4dkmfx"}],["path",{d:"M16.472 15a6 6 0 01-8.943 0",key:"7qomzy"}],["path",{d:"M9 10V9",key:"1lazqi"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);r.d(t,{},{A:n})},41918(e,t,r){let n=(0,r(90754).A)("file-plus",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M9 15h6",key:"cctwl0"}],["path",{d:"M12 18v-6",key:"17g6i2"}]]);r.d(t,{},{A:n})},16778(e,t,r){let n=(0,r(90754).A)("flip-horizontal-2",[["path",{d:"m3 7 5 5-5 5V7",key:"couhi7"}],["path",{d:"m21 7-5 5 5 5V7",key:"6ouia7"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 14v2",key:"8jcxud"}],["path",{d:"M12 8v2",key:"1woqiv"}],["path",{d:"M12 2v2",key:"tus03m"}]]);r.d(t,{},{A:n})},66216(e,t,r){let n=(0,r(90754).A)("flip-vertical-2",[["path",{d:"m17 3-5 5-5-5h10",key:"1ftt6x"}],["path",{d:"m17 21-5-5-5 5h10",key:"1m0wmu"}],["path",{d:"M4 12H2",key:"rhcxmi"}],["path",{d:"M10 12H8",key:"s88cx1"}],["path",{d:"M16 12h-2",key:"10asgb"}],["path",{d:"M22 12h-2",key:"14jgyd"}]]);r.d(t,{},{A:n})},8087(e,t,r){let n=(0,r(90754).A)("folder-up",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}],["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"m9 13 3-3 3 3",key:"1pxg3c"}]]);r.d(t,{},{A:n})},27298(e,t,r){let n=(0,r(90754).A)("git-branch",[["path",{d:"M15 6a9 9 0 0 0-9 9V3",key:"1cii5b"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}]]);r.d(t,{},{A:n})},66278(e,t,r){let n=(0,r(90754).A)("globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);r.d(t,{},{A:n})},67048(e,t,r){let n=(0,r(90754).A)("grid-3x3",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]]);r.d(t,{},{A:n})},74632(e,t,r){let n=(0,r(90754).A)("group",[["path",{d:"M3 7V5c0-1.1.9-2 2-2h2",key:"adw53z"}],["path",{d:"M17 3h2c1.1 0 2 .9 2 2v2",key:"an4l38"}],["path",{d:"M21 17v2c0 1.1-.9 2-2 2h-2",key:"144t0e"}],["path",{d:"M7 21H5c-1.1 0-2-.9-2-2v-2",key:"rtnfgi"}],["rect",{width:"7",height:"5",x:"7",y:"7",rx:"1",key:"1eyiv7"}],["rect",{width:"7",height:"5",x:"10",y:"12",rx:"1",key:"1qlmkx"}]]);r.d(t,{},{A:n})},64776(e,t,r){let n=(0,r(90754).A)("hand",[["path",{d:"M18 11V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2",key:"1fvzgz"}],["path",{d:"M14 10V4a2 2 0 0 0-2-2a2 2 0 0 0-2 2v2",key:"1kc0my"}],["path",{d:"M10 10.5V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2v8",key:"10h0bg"}],["path",{d:"M18 8a2 2 0 1 1 4 0v6a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15",key:"1s1gnw"}]]);r.d(t,{},{A:n})},33520(e,t,r){let n=(0,r(90754).A)("highlighter",[["path",{d:"m9 11-6 6v3h9l3-3",key:"1a3l36"}],["path",{d:"m22 12-4.6 4.6a2 2 0 0 1-2.8 0l-5.2-5.2a2 2 0 0 1 0-2.8L14 4",key:"14a9rk"}]]);r.d(t,{},{A:n})},48614(e,t,r){let n=(0,r(90754).A)("image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]);r.d(t,{},{A:n})},50643(e,t,r){let n=(0,r(90754).A)("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);r.d(t,{},{A:n})},13843(e,t,r){let n=(0,r(90754).A)("italic",[["line",{x1:"19",x2:"10",y1:"4",y2:"4",key:"15jd3p"}],["line",{x1:"14",x2:"5",y1:"20",y2:"20",key:"bu0au3"}],["line",{x1:"15",x2:"9",y1:"4",y2:"20",key:"uljnxc"}]]);r.d(t,{},{A:n})},33224(e,t,r){let n=(0,r(90754).A)("keyboard",[["path",{d:"M10 8h.01",key:"1r9ogq"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M14 8h.01",key:"1primd"}],["path",{d:"M16 12h.01",key:"1l6xoz"}],["path",{d:"M18 8h.01",key:"emo2bl"}],["path",{d:"M6 8h.01",key:"x9i8wu"}],["path",{d:"M7 16h10",key:"wp8him"}],["path",{d:"M8 12h.01",key:"czm47f"}],["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}]]);r.d(t,{},{A:n})},43458(e,t,r){let n=(0,r(90754).A)("layout-grid",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]]);r.d(t,{},{A:n})},85635(e,t,r){let n=(0,r(90754).A)("link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]]);r.d(t,{},{A:n})},58563(e,t,r){let n=(0,r(90754).A)("list-indent-decrease",[["path",{d:"M21 5H11",key:"us1j55"}],["path",{d:"M21 12H11",key:"wd7e0v"}],["path",{d:"M21 19H11",key:"saa85w"}],["path",{d:"m7 8-4 4 4 4",key:"o5hrat"}]]);r.d(t,{},{A:n})},9083(e,t,r){let n=(0,r(90754).A)("list-indent-increase",[["path",{d:"M21 5H11",key:"us1j55"}],["path",{d:"M21 12H11",key:"wd7e0v"}],["path",{d:"M21 19H11",key:"saa85w"}],["path",{d:"m3 8 4 4-4 4",key:"1a3j6y"}]]);r.d(t,{},{A:n})},64927(e,t,r){let n=(0,r(90754).A)("list-ordered",[["path",{d:"M11 5h10",key:"1cz7ny"}],["path",{d:"M11 12h10",key:"1438ji"}],["path",{d:"M11 19h10",key:"11t30w"}],["path",{d:"M4 4h1v5",key:"10yrso"}],["path",{d:"M4 9h2",key:"r1h2o0"}],["path",{d:"M6.5 20H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02",key:"xtkcd5"}]]);r.d(t,{},{A:n})},83183(e,t,r){let n=(0,r(90754).A)("list",[["path",{d:"M3 5h.01",key:"18ugdj"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 19h.01",key:"noohij"}],["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 19h13",key:"m83p4d"}]]);r.d(t,{},{A:n})},67899(e,t,r){let n=(0,r(90754).A)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);r.d(t,{},{A:n})},40859(e,t,r){let n=(0,r(90754).A)("lock-open",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 9.9-1",key:"1mm8w8"}]]);r.d(t,{},{A:n})},73138(e,t,r){let n=(0,r(90754).A)("lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);r.d(t,{},{A:n})},41268(e,t,r){let n=(0,r(90754).A)("log-out",[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]]);r.d(t,{},{A:n})},17853(e,t,r){let n=(0,r(90754).A)("maximize",[["path",{d:"M8 3H5a2 2 0 0 0-2 2v3",key:"1dcmit"}],["path",{d:"M21 8V5a2 2 0 0 0-2-2h-3",key:"1e4gt3"}],["path",{d:"M3 16v3a2 2 0 0 0 2 2h3",key:"wsl5sc"}],["path",{d:"M16 21h3a2 2 0 0 0 2-2v-3",key:"18trek"}]]);r.d(t,{},{A:n})},93274(e,t,r){let n=(0,r(90754).A)("menu",[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]);r.d(t,{},{A:n})},62460(e,t,r){let n=(0,r(90754).A)("message-square",[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]]);r.d(t,{},{A:n})},57591(e,t,r){let n=(0,r(90754).A)("minimize",[["path",{d:"M8 3v3a2 2 0 0 1-2 2H3",key:"hohbtr"}],["path",{d:"M21 8h-3a2 2 0 0 1-2-2V3",key:"5jw1f3"}],["path",{d:"M3 16h3a2 2 0 0 1 2 2v3",key:"198tvr"}],["path",{d:"M16 21v-3a2 2 0 0 1 2-2h3",key:"ph8mxp"}]]);r.d(t,{},{A:n})},55645(e,t,r){let n=(0,r(90754).A)("minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);r.d(t,{},{A:n})},93224(e,t,r){let n=(0,r(90754).A)("moon",[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]]);r.d(t,{},{A:n})},12709(e,t,r){let n=(0,r(90754).A)("mouse-pointer-2",[["path",{d:"M4.037 4.688a.495.495 0 0 1 .651-.651l16 6.5a.5.5 0 0 1-.063.947l-6.124 1.58a2 2 0 0 0-1.438 1.435l-1.579 6.126a.5.5 0 0 1-.947.063z",key:"edeuup"}]]);r.d(t,{},{A:n})},42631(e,t,r){let n=(0,r(90754).A)("mouse-pointer-click",[["path",{d:"M14 4.1 12 6",key:"ita8i4"}],["path",{d:"m5.1 8-2.9-.8",key:"1go3kf"}],["path",{d:"m6 12-1.9 2",key:"mnht97"}],["path",{d:"M7.2 2.2 8 5.1",key:"1cfko1"}],["path",{d:"M9.037 9.69a.498.498 0 0 1 .653-.653l11 4.5a.5.5 0 0 1-.074.949l-4.349 1.041a1 1 0 0 0-.74.739l-1.04 4.35a.5.5 0 0 1-.95.074z",key:"s0h3yz"}]]);r.d(t,{},{A:n})},93277(e,t,r){let n=(0,r(90754).A)("move-horizontal",[["path",{d:"m18 8 4 4-4 4",key:"1ak13k"}],["path",{d:"M2 12h20",key:"9i4pu4"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}]]);r.d(t,{},{A:n})},3935(e,t,r){let n=(0,r(90754).A)("move-vertical",[["path",{d:"M12 2v20",key:"t6zp3m"}],["path",{d:"m8 18 4 4 4-4",key:"bh5tu3"}],["path",{d:"m8 6 4-4 4 4",key:"ybng9g"}]]);r.d(t,{},{A:n})},9976(e,t,r){let n=(0,r(90754).A)("move",[["path",{d:"M12 2v20",key:"t6zp3m"}],["path",{d:"m15 19-3 3-3-3",key:"11eu04"}],["path",{d:"m19 9 3 3-3 3",key:"1mg7y2"}],["path",{d:"M2 12h20",key:"9i4pu4"}],["path",{d:"m5 9-3 3 3 3",key:"j64kie"}],["path",{d:"m9 5 3-3 3 3",key:"l8vdw6"}]]);r.d(t,{},{A:n})},59316(e,t,r){let n=(0,r(90754).A)("music",[["path",{d:"M9 18V5l12-2v13",key:"1jmyc2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}]]);r.d(t,{},{A:n})},23712(e,t,r){let n=(0,r(90754).A)("paint-bucket",[["path",{d:"M11 7 6 2",key:"1jwth8"}],["path",{d:"M18.992 12H2.041",key:"xw1gg"}],["path",{d:"M21.145 18.38A3.34 3.34 0 0 1 20 16.5a3.3 3.3 0 0 1-1.145 1.88c-.575.46-.855 1.02-.855 1.595A2 2 0 0 0 20 22a2 2 0 0 0 2-2.025c0-.58-.285-1.13-.855-1.595",key:"1nkol4"}],["path",{d:"m8.5 4.5 2.148-2.148a1.205 1.205 0 0 1 1.704 0l7.296 7.296a1.205 1.205 0 0 1 0 1.704l-7.592 7.592a3.615 3.615 0 0 1-5.112 0l-3.888-3.888a3.615 3.615 0 0 1 0-5.112L5.67 7.33",key:"1nk1rd"}]]);r.d(t,{},{A:n})},61843(e,t,r){let n=(0,r(90754).A)("paintbrush",[["path",{d:"m14.622 17.897-10.68-2.913",key:"vj2p1u"}],["path",{d:"M18.376 2.622a1 1 0 1 1 3.002 3.002L17.36 9.643a.5.5 0 0 0 0 .707l.944.944a2.41 2.41 0 0 1 0 3.408l-.944.944a.5.5 0 0 1-.707 0L8.354 7.348a.5.5 0 0 1 0-.707l.944-.944a2.41 2.41 0 0 1 3.408 0l.944.944a.5.5 0 0 0 .707 0z",key:"18tc5c"}],["path",{d:"M9 8c-1.804 2.71-3.97 3.46-6.583 3.948a.507.507 0 0 0-.302.819l7.32 8.883a1 1 0 0 0 1.185.204C12.735 20.405 16 16.792 16 15",key:"ytzfxy"}]]);r.d(t,{},{A:n})},55832(e,t,r){let n=(0,r(90754).A)("palette",[["path",{d:"M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z",key:"e79jfc"}],["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}]]);r.d(t,{},{A:n})},64239(e,t,r){let n=(0,r(90754).A)("pause",[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]]);r.d(t,{},{A:n})},2939(e,t,r){let n=(0,r(90754).A)("pencil-line",[["path",{d:"M13 21h8",key:"1jsn5i"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}],["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]]);r.d(t,{},{A:n})},51776(e,t,r){let n=(0,r(90754).A)("pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);r.d(t,{},{A:n})},99668(e,t,r){let n=(0,r(90754).A)("pipette",[["path",{d:"m12 9-8.414 8.414A2 2 0 0 0 3 18.828v1.344a2 2 0 0 1-.586 1.414A2 2 0 0 1 3.828 21h1.344a2 2 0 0 0 1.414-.586L15 12",key:"1y3wsu"}],["path",{d:"m18 9 .4.4a1 1 0 1 1-3 3l-3.8-3.8a1 1 0 1 1 3-3l.4.4 3.4-3.4a1 1 0 1 1 3 3z",key:"110lr1"}],["path",{d:"m2 22 .414-.414",key:"jhxm08"}]]);r.d(t,{},{A:n})},78093(e,t,r){let n=(0,r(90754).A)("play",[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]]);r.d(t,{},{A:n})},80339(e,t,r){let n=(0,r(90754).A)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);r.d(t,{},{A:n})},29082(e,t,r){let n=(0,r(90754).A)("power",[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]]);r.d(t,{},{A:n})},61495(e,t,r){let n=(0,r(90754).A)("presentation",[["path",{d:"M2 3h20",key:"91anmk"}],["path",{d:"M21 3v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V3",key:"2k9sn8"}],["path",{d:"m7 21 5-5 5 5",key:"bip4we"}]]);r.d(t,{},{A:n})},89569(e,t,r){let n=(0,r(90754).A)("quote",[["path",{d:"M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"rib7q0"}],["path",{d:"M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"1ymkrd"}]]);r.d(t,{},{A:n})},56529(e,t,r){let n=(0,r(90754).A)("radar",[["path",{d:"M19.07 4.93A10 10 0 0 0 6.99 3.34",key:"z3du51"}],["path",{d:"M4 6h.01",key:"oypzma"}],["path",{d:"M2.29 9.62A10 10 0 1 0 21.31 8.35",key:"qzzz0"}],["path",{d:"M16.24 7.76A6 6 0 1 0 8.23 16.67",key:"1yjesh"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M17.99 11.66A6 6 0 0 1 15.77 16.67",key:"1u2y91"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"m13.41 10.59 5.66-5.66",key:"mhq4k0"}]]);r.d(t,{},{A:n})},43507(e,t,r){let n=(0,r(90754).A)("radical",[["path",{d:"M3 12h3.28a1 1 0 0 1 .948.684l2.298 7.934a.5.5 0 0 0 .96-.044L13.82 4.771A1 1 0 0 1 14.792 4H21",key:"1mqj8i"}]]);r.d(t,{},{A:n})},95226(e,t,r){let n=(0,r(90754).A)("redo-2",[["path",{d:"m15 14 5-5-5-5",key:"12vg1m"}],["path",{d:"M20 9H9.5A5.5 5.5 0 0 0 4 14.5A5.5 5.5 0 0 0 9.5 20H13",key:"6uklza"}]]);r.d(t,{},{A:n})},35809(e,t,r){let n=(0,r(90754).A)("remove-formatting",[["path",{d:"M4 7V4h16v3",key:"9msm58"}],["path",{d:"M5 20h6",key:"1h6pxn"}],["path",{d:"M13 4 8 20",key:"kqq6aj"}],["path",{d:"m15 15 5 5",key:"me55sn"}],["path",{d:"m20 15-5 5",key:"11p7ol"}]]);r.d(t,{},{A:n})},12794(e,t,r){let n=(0,r(90754).A)("repeat",[["path",{d:"m17 2 4 4-4 4",key:"nntrym"}],["path",{d:"M3 11v-1a4 4 0 0 1 4-4h14",key:"84bu3i"}],["path",{d:"m7 22-4-4 4-4",key:"1wqhfi"}],["path",{d:"M21 13v1a4 4 0 0 1-4 4H3",key:"1rx37r"}]]);r.d(t,{},{A:n})},43189(e,t,r){let n=(0,r(90754).A)("rotate-cw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]]);r.d(t,{},{A:n})},40799(e,t,r){let n=(0,r(90754).A)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);r.d(t,{},{A:n})},45867(e,t,r){let n=(0,r(90754).A)("send-to-back",[["rect",{x:"14",y:"14",width:"8",height:"8",rx:"2",key:"1b0bso"}],["rect",{x:"2",y:"2",width:"8",height:"8",rx:"2",key:"1x09vl"}],["path",{d:"M7 14v1a2 2 0 0 0 2 2h1",key:"pao6x6"}],["path",{d:"M14 7h1a2 2 0 0 1 2 2v1",key:"19tdru"}]]);r.d(t,{},{A:n})},38993(e,t,r){let n=(0,r(90754).A)("send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);r.d(t,{},{A:n})},79625(e,t,r){let n=(0,r(90754).A)("shapes",[["path",{d:"M8.3 10a.7.7 0 0 1-.626-1.079L11.4 3a.7.7 0 0 1 1.198-.043L16.3 8.9a.7.7 0 0 1-.572 1.1Z",key:"1bo67w"}],["rect",{x:"3",y:"14",width:"7",height:"7",rx:"1",key:"1bkyp8"}],["circle",{cx:"17.5",cy:"17.5",r:"3.5",key:"w3z12y"}]]);r.d(t,{},{A:n})},27041(e,t,r){let n=(0,r(90754).A)("share-2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]]);r.d(t,{},{A:n})},65654(e,t,r){let n=(0,r(90754).A)("sparkles",[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]]);r.d(t,{},{A:n})},39784(e,t,r){let n=(0,r(90754).A)("spline",[["circle",{cx:"19",cy:"5",r:"2",key:"mhkx31"}],["circle",{cx:"5",cy:"19",r:"2",key:"v8kfzx"}],["path",{d:"M5 17A12 12 0 0 1 17 5",key:"1okkup"}]]);r.d(t,{},{A:n})},88439(e,t,r){let n=(0,r(90754).A)("square-function",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["path",{d:"M9 17c2 0 2.8-1 2.8-2.8V10c0-2 1-3.3 3.2-3",key:"m1af9g"}],["path",{d:"M9 11.2h5.7",key:"3zgcl2"}]]);r.d(t,{},{A:n})},10098(e,t,r){let n=(0,r(90754).A)("square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]);r.d(t,{},{A:n})},70644(e,t,r){let n=(0,r(90754).A)("sticker",[["path",{d:"M21 9a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 15 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2z",key:"1dfntj"}],["path",{d:"M15 3v5a1 1 0 0 0 1 1h5",key:"6s6qgf"}],["path",{d:"M8 13h.01",key:"1sbv64"}],["path",{d:"M16 13h.01",key:"wip0gl"}],["path",{d:"M10 16s.8 1 2 1c1.3 0 2-1 2-1",key:"1vvgv3"}]]);r.d(t,{},{A:n})},73308(e,t,r){let n=(0,r(90754).A)("strikethrough",[["path",{d:"M16 4H9a3 3 0 0 0-2.83 4",key:"43sutm"}],["path",{d:"M14 12a4 4 0 0 1 0 8H6",key:"nlfj13"}],["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}]]);r.d(t,{},{A:n})},42535(e,t,r){let n=(0,r(90754).A)("sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);r.d(t,{},{A:n})},91201(e,t,r){let n=(0,r(90754).A)("table",[["path",{d:"M12 3v18",key:"108xh3"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}]]);r.d(t,{},{A:n})},47003(e,t,r){let n=(0,r(90754).A)("terminal",[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]]);r.d(t,{},{A:n})},96344(e,t,r){let n=(0,r(90754).A)("text-align-center",[["path",{d:"M21 5H3",key:"1fi0y6"}],["path",{d:"M17 12H7",key:"16if0g"}],["path",{d:"M19 19H5",key:"vjpgq2"}]]);r.d(t,{},{A:n})},17754(e,t,r){let n=(0,r(90754).A)("text-align-end",[["path",{d:"M21 5H3",key:"1fi0y6"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M21 19H7",key:"4cu937"}]]);r.d(t,{},{A:n})},67917(e,t,r){let n=(0,r(90754).A)("text-align-justify",[["path",{d:"M3 5h18",key:"1u36vt"}],["path",{d:"M3 12h18",key:"1i2n21"}],["path",{d:"M3 19h18",key:"awlh7x"}]]);r.d(t,{},{A:n})},77929(e,t,r){let n=(0,r(90754).A)("text-align-start",[["path",{d:"M21 5H3",key:"1fi0y6"}],["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M17 19H3",key:"z6ezky"}]]);r.d(t,{},{A:n})},76422(e,t,r){let n=(0,r(90754).A)("timer",[["line",{x1:"10",x2:"14",y1:"2",y2:"2",key:"14vaq8"}],["line",{x1:"12",x2:"15",y1:"14",y2:"11",key:"17fdiu"}],["circle",{cx:"12",cy:"14",r:"8",key:"1e1u0o"}]]);r.d(t,{},{A:n})},82(e,t,r){let n=(0,r(90754).A)("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]]);r.d(t,{},{A:n})},63626(e,t,r){let n=(0,r(90754).A)("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);r.d(t,{},{A:n})},12507(e,t,r){let n=(0,r(90754).A)("triangle",[["path",{d:"M13.73 4a2 2 0 0 0-3.46 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z",key:"14u9p9"}]]);r.d(t,{},{A:n})},52543(e,t,r){let n=(0,r(90754).A)("type",[["path",{d:"M12 4v16",key:"1654pz"}],["path",{d:"M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2",key:"e0r10z"}],["path",{d:"M9 20h6",key:"s66wpe"}]]);r.d(t,{},{A:n})},17249(e,t,r){let n=(0,r(90754).A)("underline",[["path",{d:"M6 4v6a6 6 0 0 0 12 0V4",key:"9kb039"}],["line",{x1:"4",x2:"20",y1:"20",y2:"20",key:"nun2al"}]]);r.d(t,{},{A:n})},15132(e,t,r){let n=(0,r(90754).A)("undo-2",[["path",{d:"M9 14 4 9l5-5",key:"102s5s"}],["path",{d:"M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11",key:"f3b9sd"}]]);r.d(t,{},{A:n})},60334(e,t,r){let n=(0,r(90754).A)("unfold-vertical",[["path",{d:"M12 22v-6",key:"6o8u61"}],["path",{d:"M12 8V2",key:"1wkif3"}],["path",{d:"M4 12H2",key:"rhcxmi"}],["path",{d:"M10 12H8",key:"s88cx1"}],["path",{d:"M16 12h-2",key:"10asgb"}],["path",{d:"M22 12h-2",key:"14jgyd"}],["path",{d:"m15 19-3 3-3-3",key:"11eu04"}],["path",{d:"m15 5-3-3-3 3",key:"itvq4r"}]]);r.d(t,{},{A:n})},86739(e,t,r){let n=(0,r(90754).A)("ungroup",[["rect",{x:"11",y:"14",width:"10",height:"7",rx:"2",key:"nfm8rk"}],["rect",{x:"3",y:"3",width:"10",height:"7",rx:"2",key:"1ljebb"}]]);r.d(t,{},{A:n})},21676(e,t,r){let n=(0,r(90754).A)("upload",[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]]);r.d(t,{},{A:n})},94574(e,t,r){let n=(0,r(90754).A)("user",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);r.d(t,{},{A:n})},61085(e,t,r){let n=(0,r(90754).A)("users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]]);r.d(t,{},{A:n})},72916(e,t,r){let n=(0,r(90754).A)("video",[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]]);r.d(t,{},{A:n})},55159(e,t,r){let n=(0,r(90754).A)("volume-1",[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}]]);r.d(t,{},{A:n})},3900(e,t,r){let n=(0,r(90754).A)("volume-2",[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728",key:"ijwkga"}]]);r.d(t,{},{A:n})},83814(e,t,r){let n=(0,r(90754).A)("volume-x",[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["line",{x1:"22",x2:"16",y1:"9",y2:"15",key:"1ewh16"}],["line",{x1:"16",x2:"22",y1:"9",y2:"15",key:"5ykzw1"}]]);r.d(t,{},{A:n})},69237(e,t,r){let n=(0,r(90754).A)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);r.d(t,{},{A:n})},30490(e,t,r){let n,i,a;r.d(t,{A:()=>tL});var o,s,l,c,u,h,p,d,f={};r.r(f),r.d(f,{decode:()=>y,encode:()=>b,format:()=>x,parse:()=>I});var m={};r.r(m),r.d(m,{Any:()=>k,Cc:()=>F,Cf:()=>X,P:()=>U,S:()=>W,Z:()=>V});let g={};function A(e,t){"string"!=typeof t&&(t=A.defaultChars);let r=function(e){let t=g[e];if(t)return t;t=g[e]=[];for(let e=0;e<128;e++){let r=String.fromCharCode(e);t.push(r)}for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);t[n]="%"+("0"+n.toString(16).toUpperCase()).slice(-2)}return t}(t);return e.replace(/(%[a-f0-9]{2})+/gi,function(e){let t="";for(let n=0,i=e.length;n<i;n+=3){let a=parseInt(e.slice(n+1,n+3),16);if(a<128){t+=r[a];continue}if((224&a)==192&&n+3<i){let r=parseInt(e.slice(n+4,n+6),16);if((192&r)==128){let e=a<<6&1984|63&r;e<128?t+="��":t+=String.fromCharCode(e),n+=3;continue}}if((240&a)==224&&n+6<i){let r=parseInt(e.slice(n+4,n+6),16),i=parseInt(e.slice(n+7,n+9),16);if((192&r)==128&&(192&i)==128){let e=a<<12&61440|r<<6&4032|63&i;e<2048||e>=55296&&e<=57343?t+="���":t+=String.fromCharCode(e),n+=6;continue}}if((248&a)==240&&n+9<i){let r=parseInt(e.slice(n+4,n+6),16),i=parseInt(e.slice(n+7,n+9),16),o=parseInt(e.slice(n+10,n+12),16);if((192&r)==128&&(192&i)==128&&(192&o)==128){let e=a<<18&1835008|r<<12&258048|i<<6&4032|63&o;e<65536||e>1114111?t+="����":(e-=65536,t+=String.fromCharCode(55296+(e>>10),56320+(1023&e))),n+=9;continue}}t+="�"}return t})}A.defaultChars=";/?:@&=+$,#",A.componentChars="";var y=A;let v={};function R(e,t,r){"string"!=typeof t&&(r=t,t=R.defaultChars),void 0===r&&(r=!0);let n=function(e){let t=v[e];if(t)return t;t=v[e]=[];for(let e=0;e<128;e++){let r=String.fromCharCode(e);/^[0-9a-z]$/i.test(r)?t.push(r):t.push("%"+("0"+e.toString(16).toUpperCase()).slice(-2))}for(let r=0;r<e.length;r++)t[e.charCodeAt(r)]=e[r];return t}(t),i="";for(let t=0,a=e.length;t<a;t++){let o=e.charCodeAt(t);if(r&&37===o&&t+2<a&&/^[0-9a-f]{2}$/i.test(e.slice(t+1,t+3))){i+=e.slice(t,t+3),t+=2;continue}if(o<128){i+=n[o];continue}if(o>=55296&&o<=57343){if(o>=55296&&o<=56319&&t+1<a){let r=e.charCodeAt(t+1);if(r>=56320&&r<=57343){i+=encodeURIComponent(e[t]+e[t+1]),t++;continue}}i+="%EF%BF%BD";continue}i+=encodeURIComponent(e[t])}return i}R.defaultChars=";/?:@&=+$,-_.!~*'()#",R.componentChars="-_.!~*'()";var b=R;function x(e){let t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&-1!==e.hostname.indexOf(":")?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||""}function M(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}let S=/^([a-z0-9.+-]+:)/i,w=/:[0-9]*$/,O=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,L=["%","/","?",";","#"].concat(["'"].concat(["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n"," "]))),N=["/","?","#"],_=/^[+a-z0-9A-Z_-]{0,63}$/,T=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,P={javascript:!0,"javascript:":!0},C={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};M.prototype.parse=function(e,t){let r,n,i,a=e;if(a=a.trim(),!t&&1===e.split("#").length){let e=O.exec(a);if(e)return this.pathname=e[1],e[2]&&(this.search=e[2]),this}let o=S.exec(a);if(o&&(r=(o=o[0]).toLowerCase(),this.protocol=o,a=a.substr(o.length)),(t||o||a.match(/^\/\/[^@\/]+@[^@\/]+/))&&(i="//"===a.substr(0,2))&&!(o&&P[o])&&(a=a.substr(2),this.slashes=!0),!P[o]&&(i||o&&!C[o])){let e,t,r=-1;for(let e=0;e<N.length;e++)-1!==(n=a.indexOf(N[e]))&&(-1===r||n<r)&&(r=n);-1!==(t=-1===r?a.lastIndexOf("@"):a.lastIndexOf("@",r))&&(e=a.slice(0,t),a=a.slice(t+1),this.auth=e),r=-1;for(let e=0;e<L.length;e++)-1!==(n=a.indexOf(L[e]))&&(-1===r||n<r)&&(r=n);-1===r&&(r=a.length),":"===a[r-1]&&r--;let i=a.slice(0,r);a=a.slice(r),this.parseHost(i),this.hostname=this.hostname||"";let o="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!o){let e=this.hostname.split(/\./);for(let t=0,r=e.length;t<r;t++){let r=e[t];if(r&&!r.match(_)){let n="";for(let e=0,t=r.length;e<t;e++)r.charCodeAt(e)>127?n+="x":n+=r[e];if(!n.match(_)){let n=e.slice(0,t),i=e.slice(t+1),o=r.match(T);o&&(n.push(o[1]),i.unshift(o[2])),i.length&&(a=i.join(".")+a),this.hostname=n.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),o&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}let s=a.indexOf("#");-1!==s&&(this.hash=a.substr(s),a=a.slice(0,s));let l=a.indexOf("?");return -1!==l&&(this.search=a.substr(l),a=a.slice(0,l)),a&&(this.pathname=a),C[r]&&this.hostname&&!this.pathname&&(this.pathname=""),this},M.prototype.parseHost=function(e){let t=w.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};var I=function(e,t){if(e&&e instanceof M)return e;let r=new M;return r.parse(e,t),r};let k=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,F=/[\0-\x1F\x7F-\x9F]/,X=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,U=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B4E\u1B4F\u1B5A-\u1B60\u1B7D-\u1B7F\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDD6E\uDEAD\uDED0\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9\uDFD4\uDFD5\uDFD7\uDFD8]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09\uDFE1]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDD6D-\uDD6F\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD839\uDDFF|\uD83A[\uDD5E\uDD5F]/,W=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C1\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2429\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E5\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBD2\uFD40-\uFD4F\uFD90\uFD91\uFDC8-\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD803[\uDD8E\uDD8F\uDED1-\uDED8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDC00-\uDCEF\uDCFA-\uDCFC\uDD00-\uDEB3\uDEBA-\uDED0\uDEE0-\uDEF0\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED8\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0-\uDCBB\uDCC0\uDCC1\uDCD0-\uDCD8\uDD00-\uDE57\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF-\uDEF8\uDF00-\uDF92\uDF94-\uDFEF\uDFFA]/,V=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,E=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),Y=function(e){let t=atob(e),r=-2&t.length,n=new Uint16Array(r/2);for(let e=0,i=0;e<r;e+=2){let r=t.charCodeAt(e),a=t.charCodeAt(e+1);n[i++]=r|a<<8}return n}("QR08ALkAAgH6AYsDNQR2BO0EPgXZBQEGLAbdBxMISQrvCmQLfQurDKQNLw4fD4YPpA+6D/IPAAAAAAAAAAAAAAAAKhBMEY8TmxUWF2EYLBkxGuAa3RsJHDscWR8YIC8jSCSIJcMl6ie3Ku8rEC0CLjoupS7kLgAIRU1hYmNmZ2xtbm9wcnN0dVQAWgBeAGUAaQBzAHcAfgCBAIQAhwCSAJoAoACsALMAbABpAGcAO4DGAMZAUAA7gCYAJkBjAHUAdABlADuAwQDBQHIiZXZlAAJhAAFpeW0AcgByAGMAO4DCAMJAEGRyAADgNdgE3XIAYQB2AGUAO4DAAMBA8CFoYZFj4SFjcgBhZAAAoFMqAAFncIsAjgBvAG4ABGFmAADgNdg43fAlbHlGdW5jdGlvbgCgYSBpAG4AZwA7gMUAxUAAAWNzpACoAHIAAOA12Jzc6SFnbgCgVCJpAGwAZABlADuAwwDDQG0AbAA7gMQAxEAABGFjZWZvcnN1xQDYANoA7QDxAPYA+QD8AAABY3LJAM8AayNzbGFzaAAAoBYidgHTANUAAKDnKmUAZAAAoAYjeQARZIABY3J0AOAA5QDrAGEidXNlAACgNSLuI291bGxpcwCgLCFhAJJjcgAA4DXYBd1wAGYAAOA12Dnd5SF2ZdhiYwDyAOoAbSJwZXEAAKBOIgAHSE9hY2RlZmhpbG9yc3UXARoBHwE6AVIBVQFiAWQBZgGCAakB6QHtAfIBYwB5ACdkUABZADuAqQCpQIABY3B5ACUBKAE1AfUhdGUGYWmg0iJ0KGFsRGlmZmVyZW50aWFsRAAAoEUhbCJleXMAAKAtIQACYWVpb0EBRAFKAU0B8iFvbgxhZABpAGwAO4DHAMdAcgBjAAhhbiJpbnQAAKAwIm8AdAAKYQABZG5ZAV0BaSJsbGEAuGB0I2VyRG90ALdg8gA5AWkAp2NyImNsZQAAAkRNUFRwAXQBeQF9AW8AdAAAoJkiaSJudXMAAKCWIuwhdXMAoJUiaSJtZXMAAKCXIm8AAAFjc4cBlAFrKndpc2VDb250b3VySW50ZWdyYWwAAKAyImUjQ3VybHkAAAFEUZwBpAFvJXVibGVRdW90ZQAAoB0gdSJvdGUAAKAZIAACbG5wdbABtgHNAdgBbwBuAGWgNyIAoHQqgAFnaXQAvAHBAcUB8iJ1ZW50AKBhIm4AdAAAoC8i7yV1ckludGVncmFsAKAuIgABZnLRAdMBAKACIe8iZHVjdACgECJuLnRlckNsb2Nrd2lzZUNvbnRvdXJJbnRlZ3JhbAAAoDMi7yFzcwCgLypjAHIAAOA12J7ccABDoNMiYQBwAACgTSKABURKU1phY2VmaW9zAAsCEgIVAhgCGwIsAjQCOQI9AnMCfwNvoEUh9CJyYWhkAKARKWMAeQACZGMAeQAFZGMAeQAPZIABZ3JzACECJQIoAuchZXIAoCEgcgAAoKEhaAB2AACg5CoAAWF5MAIzAvIhb24OYRRkbAB0oAciYQCUY3IAAOA12AfdAAFhZkECawIAAWNtRQJnAvIjaXRpY2FsAAJBREdUUAJUAl8CYwJjInV0ZQC0YG8AdAFZAloC2WJiJGxlQWN1dGUA3WJyImF2ZQBgYGkibGRlANxi7yFuZACgxCJmJWVyZW50aWFsRAAAoEYhcAR9AgAAAAAAAIECjgIAABoDZgAA4DXYO91EoagAhQKJAm8AdAAAoNwgcSJ1YWwAAKBQIuIhbGUAA0NETFJVVpkCqAK1Au8C/wIRA28AbgB0AG8AdQByAEkAbgB0AGUAZwByAGEA7ADEAW8AdAKvAgAAAACwAqhgbiNBcnJvdwAAoNMhAAFlb7kC0AJmAHQAgAFBUlQAwQLGAs0CciJyb3cAAKDQIekkZ2h0QXJyb3cAoNQhZQDlACsCbgBnAAABTFLWAugC5SFmdAABQVLcAuECciJyb3cAAKD4J+kkZ2h0QXJyb3cAoPon6SRnaHRBcnJvdwCg+SdpImdodAAAAUFU9gL7AnIicm93AACg0iFlAGUAAKCoInAAQQIGAwAAAAALA3Iicm93AACg0SFvJHduQXJyb3cAAKDVIWUlcnRpY2FsQmFyAACgJSJuAAADQUJMUlRhJAM2AzoDWgNxA3oDciJyb3cAAKGTIUJVLAMwA2EAcgAAoBMpcCNBcnJvdwAAoPUhciJldmUAEWPlIWZ00gJDAwAASwMAAFIDaSVnaHRWZWN0b3IAAKBQKWUkZVZlY3RvcgAAoF4p5SJjdG9yQqC9IWEAcgAAoFYpaSJnaHQA1AFiAwAAaQNlJGVWZWN0b3IAAKBfKeUiY3RvckKgwSFhAHIAAKBXKWUAZQBBoKQiciJyb3cAAKCnIXIAcgBvAPcAtAIAAWN0gwOHA3IAAOA12J/c8iFvaxBhAAhOVGFjZGZnbG1vcHFzdHV4owOlA6kDsAO/A8IDxgPNA9ID8gP9AwEEFAQeBCAEJQRHAEphSAA7gNAA0EBjAHUAdABlADuAyQDJQIABYWl5ALYDuQO+A/Ihb24aYXIAYwA7gMoAykAtZG8AdAAWYXIAAOA12AjdcgBhAHYAZQA7gMgAyEDlIm1lbnQAoAgiAAFhcNYD2QNjAHIAEmF0AHkAUwLhAwAAAADpA20lYWxsU3F1YXJlAACg+yVlJ3J5U21hbGxTcXVhcmUAAKCrJQABZ3D2A/kDbwBuABhhZgAA4DXYPN3zImlsb26VY3UAAAFhaQYEDgRsAFSgdSppImxkZQAAoEIi7CNpYnJpdW0AoMwhAAFjaRgEGwRyAACgMCFtAACgcyphAJdjbQBsADuAywDLQAABaXApBC0E8yF0cwCgAyLvJG5lbnRpYWxFAKBHIYACY2Zpb3MAPQQ/BEMEXQRyBHkAJGRyAADgNdgJ3WwibGVkAFMCTAQAAAAAVARtJWFsbFNxdWFyZQAAoPwlZSdyeVNtYWxsU3F1YXJlAACgqiVwA2UEAABpBAAAAABtBGYAAOA12D3dwSFsbACgACLyI2llcnRyZgCgMSFjAPIAcQQABkpUYWJjZGZnb3JzdIgEiwSOBJMElwSkBKcEqwStBLIE5QTqBGMAeQADZDuAPgA+QO0hbWFkoJMD3GNyImV2ZQAeYYABZWl5AJ0EoASjBOQhaWwiYXIAYwAcYRNkbwB0ACBhcgAA4DXYCt0AoNkicABmAADgNdg+3eUiYXRlcgADRUZHTFNUvwTIBM8E1QTZBOAEcSJ1YWwATKBlIuUhc3MAoNsidSRsbEVxdWFsAACgZyJyI2VhdGVyAACgoirlIXNzAKB3IuwkYW50RXF1YWwAoH4qaSJsZGUAAKBzImMAcgAA4DXYotwAoGsiAARBYWNmaW9zdfkE/QQFBQgFCwUTBSIFKwVSIkRjeQAqZAABY3QBBQQFZQBrAMdiXmDpIXJjJGFyAACgDCFsJWJlcnRTcGFjZQAAoAsh8AEYBQAAGwVmAACgDSHpJXpvbnRhbExpbmUAoAAlAAFjdCYFKAXyABIF8iFvayZhbQBwAEQBMQU5BW8AdwBuAEgAdQBtAPAAAAFxInVhbAAAoE8iAAdFSk9hY2RmZ21ub3N0dVMFVgVZBVwFYwVtBXAFcwV6BZAFtgXFBckFzQVjAHkAFWTsIWlnMmFjAHkAAWRjAHUAdABlADuAzQDNQAABaXlnBWwFcgBjADuAzgDOQBhkbwB0ADBhcgAAoBEhcgBhAHYAZQA7gMwAzEAAoREhYXB/BYsFAAFjZ4MFhQVyACphaSNuYXJ5SQAAoEghbABpAGUA8wD6AvQBlQUAAKUFZaAsIgABZ3KaBZ4F8iFhbACgKyLzI2VjdGlvbgCgwiJpI3NpYmxlAAABQ1SsBbEFbyJtbWEAAKBjIGkibWVzAACgYiCAAWdwdAC8Bb8FwwVvAG4ALmFmAADgNdhA3WEAmWNjAHIAAKAQIWkibGRlAChh6wHSBQAA1QVjAHkABmRsADuAzwDPQIACY2Zvc3UA4QXpBe0F8gX9BQABaXnlBegFcgBjADRhGWRyAADgNdgN3XAAZgAA4DXYQd3jAfcFAAD7BXIAAOA12KXc8iFjeQhk6yFjeQRkgANISmFjZm9zAAwGDwYSBhUGHQYhBiYGYwB5ACVkYwB5AAxk8CFwYZpjAAFleRkGHAbkIWlsNmEaZHIAAOA12A7dcABmAADgNdhC3WMAcgAA4DXYptyABUpUYWNlZmxtb3N0AD0GQAZDBl4GawZkB2gHcAd0B80H2gdjAHkACWQ7gDwAPECAAmNtbnByAEwGTwZSBlUGWwb1IXRlOWHiIWRhm2NnAACg6ifsI2FjZXRyZgCgEiFyAACgniGAAWFleQBkBmcGagbyIW9uPWHkIWlsO2EbZAABZnNvBjQHdAAABUFDREZSVFVWYXKABp4GpAbGBssG3AYDByEHwQIqBwABbnKEBowGZyVsZUJyYWNrZXQAAKDoJ/Ihb3cAoZAhQlKTBpcGYQByAACg5CHpJGdodEFycm93AKDGIWUjaWxpbmcAAKAII28A9QGqBgAAsgZiJWxlQnJhY2tldAAAoOYnbgDUAbcGAAC+BmUkZVZlY3RvcgAAoGEp5SJjdG9yQqDDIWEAcgAAoFkpbCJvb3IAAKAKI2kiZ2h0AAABQVbSBtcGciJyb3cAAKCUIeUiY3RvcgCgTikAAWVy4AbwBmUAAKGjIkFW5gbrBnIicm93AACgpCHlImN0b3IAoFopaSNhbmdsZQBCorIi+wYAAAAA/wZhAHIAAKDPKXEidWFsAACgtCJwAIABRFRWAAoHEQcYB+8kd25WZWN0b3IAoFEpZSRlVmVjdG9yAACgYCnlImN0b3JCoL8hYQByAACgWCnlImN0b3JCoLwhYQByAACgUilpAGcAaAB0AGEAcgByAG8A9wDMAnMAAANFRkdMU1Q/B0cHTgdUB1gHXwfxJXVhbEdyZWF0ZXIAoNoidSRsbEVxdWFsAACgZiJyI2VhdGVyAACgdiLlIXNzAKChKuwkYW50RXF1YWwAoH0qaSJsZGUAAKByInIAAOA12A/dZaDYIuYjdGFycm93AKDaIWkiZG90AD9hgAFucHcAege1B7kHZwAAAkxSbHKCB5QHmwerB+UhZnQAAUFSiAeNB3Iicm93AACg9SfpJGdodEFycm93AKD3J+kkZ2h0QXJyb3cAoPYn5SFmdAABYXLcAqEHaQBnAGgAdABhAHIAcgBvAPcA5wJpAGcAaAB0AGEAcgByAG8A9wDuAmYAAOA12EPdZQByAAABTFK/B8YHZSRmdEFycm93AACgmSHpJGdodEFycm93AKCYIYABY2h0ANMH1QfXB/IAWgYAoLAh8iFva0FhAKBqIgAEYWNlZmlvc3XpB+wH7gf/BwMICQgOCBEIcAAAoAUpeQAcZAABZGzyB/kHaSR1bVNwYWNlAACgXyBsI2ludHJmAACgMyFyAADgNdgQ3e4jdXNQbHVzAKATInAAZgAA4DXYRN1jAPIA/gecY4AESmFjZWZvc3R1ACEIJAgoCDUIgQiFCDsKQApHCmMAeQAKZGMidXRlAENhgAFhZXkALggxCDQI8iFvbkdh5CFpbEVhHWSAAWdzdwA7CGEIfQjhInRpdmWAAU1UVgBECEwIWQhlJWRpdW1TcGFjZQAAoAsgaABpAAABY25SCFMIawBTAHAAYQBjAOUASwhlAHIAeQBUAGgAaQDuAFQI9CFlZAABR0xnCHUIcgBlAGEAdABlAHIARwByAGUAYQB0AGUA8gDrBGUAcwBzAEwAZQBzAPMA2wdMImluZQAKYHIAAOA12BHdAAJCbnB0jAiRCJkInAhyImVhawAAoGAgwiZyZWFraW5nU3BhY2WgYGYAAKAVIUOq7CqzCMIIzQgAAOcIGwkAAAAAAAAtCQAAbwkAAIcJAACdCcAJGQoAADQKAAFvdbYIvAjuI2dydWVudACgYiJwIkNhcAAAoG0ibyh1YmxlVmVydGljYWxCYXIAAKAmIoABbHF4ANII1wjhCOUibWVudACgCSL1IWFsVKBgImkibGRlAADgQiI4A2kic3RzAACgBCJyI2VhdGVyAACjbyJFRkdMU1T1CPoIAgkJCQ0JFQlxInVhbAAAoHEidSRsbEVxdWFsAADgZyI4A3IjZWF0ZXIAAOBrIjgD5SFzcwCgeSLsJGFudEVxdWFsAOB+KjgDaSJsZGUAAKB1IvUhbXBEASAJJwnvI3duSHVtcADgTiI4A3EidWFsAADgTyI4A2UAAAFmczEJRgn0JFRyaWFuZ2xlQqLqIj0JAAAAAEIJYQByAADgzyk4A3EidWFsAACg7CJzAICibiJFR0xTVABRCVYJXAlhCWkJcSJ1YWwAAKBwInIjZWF0ZXIAAKB4IuUhc3MA4GoiOAPsJGFudEVxdWFsAOB9KjgDaSJsZGUAAKB0IuUic3RlZAABR0x1CX8J8iZlYXRlckdyZWF0ZXIA4KIqOAPlI3NzTGVzcwDgoSo4A/IjZWNlZGVzAKGAIkVTjwmVCXEidWFsAADgryo4A+wkYW50RXF1YWwAoOAiAAFlaaAJqQl2JmVyc2VFbGVtZW50AACgDCLnJWh0VHJpYW5nbGVCousitgkAAAAAuwlhAHIAAODQKTgDcSJ1YWwAAKDtIgABcXXDCeAJdSNhcmVTdQAAAWJwywnVCfMhZXRF4I8iOANxInVhbAAAoOIi5SJyc2V0ReCQIjgDcSJ1YWwAAKDjIoABYmNwAOYJ8AkNCvMhZXRF4IIi0iBxInVhbAAAoIgi4yJlZWRzgKGBIkVTVAD6CQAKBwpxInVhbAAA4LAqOAPsJGFudEVxdWFsAKDhImkibGRlAADgfyI4A+UicnNldEXggyLSIHEidWFsAACgiSJpImxkZQCAoUEiRUZUACIKJwouCnEidWFsAACgRCJ1JGxsRXF1YWwAAKBHImkibGRlAACgSSJlJXJ0aWNhbEJhcgAAoCQiYwByAADgNdip3GkAbABkAGUAO4DRANFAnWMAB0VhY2RmZ21vcHJzdHV2XgphCmgKcgp2CnoKgQqRCpYKqwqtCrsKyArNCuwhaWdSYWMAdQB0AGUAO4DTANNAAAFpeWwKcQpyAGMAO4DUANRAHmRiImxhYwBQYXIAAOA12BLdcgBhAHYAZQA7gNIA0kCAAWFlaQCHCooKjQpjAHIATGFnAGEAqWNjInJvbgCfY3AAZgAA4DXYRt3lI25DdXJseQABRFGeCqYKbyV1YmxlUXVvdGUAAKAcIHUib3RlAACgGCAAoFQqAAFjbLEKtQpyAADgNdiq3GEAcwBoADuA2ADYQGkAbAHACsUKZABlADuA1QDVQGUAcwAAoDcqbQBsADuA1gDWQGUAcgAAAUJQ0wrmCgABYXLXCtoKcgAAoD4gYQBjAAABZWvgCuIKAKDeI2UAdAAAoLQjYSVyZW50aGVzaXMAAKDcI4AEYWNmaGlsb3JzAP0KAwsFCwkLCwsMCxELIwtaC3IjdGlhbEQAAKACInkAH2RyAADgNdgT3WkApmOgY/Ujc01pbnVzsWAAAWlwFQsgC24AYwBhAHIAZQBwAGwAYQBuAOUACgVmAACgGSGAobsqZWlvACoLRQtJC+MiZWRlc4CheiJFU1QANAs5C0ALcSJ1YWwAAKCvKuwkYW50RXF1YWwAoHwiaSJsZGUAAKB+Im0AZQAAoDMgAAFkcE0LUQv1IWN0AKAPIm8jcnRpb24AYaA3ImwAAKAdIgABY2leC2ILcgAA4DXYq9yoYwACVWZvc2oLbwtzC3cLTwBUADuAIgAiQHIAAOA12BTdcABmAACgGiFjAHIAAOA12KzcAAZCRWFjZWZoaW9yc3WPC5MLlwupC7YL2AvbC90LhQyTDJoMowzhIXJyAKAQKUcAO4CuAK5AgAFjbnIAnQugC6ML9SF0ZVRhZwAAoOsncgB0oKAhbAAAoBYpgAFhZXkArwuyC7UL8iFvblhh5CFpbFZhIGR2oBwhZSJyc2UAAAFFVb8LzwsAAWxxwwvIC+UibWVudACgCyL1JGlsaWJyaXVtAKDLIXAmRXF1aWxpYnJpdW0AAKBvKXIAAKAcIW8AoWPnIWh0AARBQ0RGVFVWYewLCgwQDDIMNwxeDHwM9gIAAW5y8Av4C2clbGVCcmFja2V0AACg6SfyIW93AKGSIUJM/wsDDGEAcgAAoOUhZSRmdEFycm93AACgxCFlI2lsaW5nAACgCSNvAPUBFgwAAB4MYiVsZUJyYWNrZXQAAKDnJ24A1AEjDAAAKgxlJGVWZWN0b3IAAKBdKeUiY3RvckKgwiFhAHIAAKBVKWwib29yAACgCyMAAWVyOwxLDGUAAKGiIkFWQQxGDHIicm93AACgpiHlImN0b3IAoFspaSNhbmdsZQBCorMiVgwAAAAAWgxhAHIAAKDQKXEidWFsAACgtSJwAIABRFRWAGUMbAxzDO8kd25WZWN0b3IAoE8pZSRlVmVjdG9yAACgXCnlImN0b3JCoL4hYQByAACgVCnlImN0b3JCoMAhYQByAACgUykAAXB1iQyMDGYAAKAdIe4kZEltcGxpZXMAoHAp6SRnaHRhcnJvdwCg2yEAAWNongyhDHIAAKAbIQCgsSHsJGVEZWxheWVkAKD0KYAGSE9hY2ZoaW1vcXN0dQC/DMgMzAzQDOIM5gwKDQ0NFA0ZDU8NVA1YDQABQ2PDDMYMyCFjeSlkeQAoZEYiVGN5ACxkYyJ1dGUAWmEAorwqYWVpedgM2wzeDOEM8iFvbmBh5CFpbF5hcgBjAFxhIWRyAADgNdgW3e8hcnQAAkRMUlXvDPYM/QwEDW8kd25BcnJvdwAAoJMhZSRmdEFycm93AACgkCHpJGdodEFycm93AKCSIXAjQXJyb3cAAKCRIechbWGjY+EkbGxDaXJjbGUAoBgicABmAADgNdhK3XICHw0AAAAAIg10AACgGiLhIXJlgKGhJUlTVQAqDTINSg3uJXRlcnNlY3Rpb24AoJMidQAAAWJwNw1ADfMhZXRFoI8icSJ1YWwAAKCRIuUicnNldEWgkCJxInVhbAAAoJIibiJpb24AAKCUImMAcgAA4DXYrtxhAHIAAKDGIgACYmNtcF8Nag2ODZANc6DQImUAdABFoNAicSJ1YWwAAKCGIgABY2huDYkNZSJlZHMAgKF7IkVTVAB4DX0NhA1xInVhbAAAoLAq7CRhbnRFcXVhbACgfSJpImxkZQAAoH8iVABoAGEA9ADHCwCgESIAodEiZXOVDZ8NciJzZXQARaCDInEidWFsAACghyJlAHQAAKDRIoAFSFJTYWNmaGlvcnMAtQ27Db8NyA3ODdsN3w3+DRgOHQ4jDk8AUgBOADuA3gDeQMEhREUAoCIhAAFIY8MNxg1jAHkAC2R5ACZkAAFidcwNzQ0JYKRjgAFhZXkA1A3XDdoN8iFvbmRh5CFpbGJhImRyAADgNdgX3QABZWnjDe4N8gHoDQAA7Q3lImZvcmUAoDQiYQCYYwABY27yDfkNayNTcGFjZQAA4F8gCiDTInBhY2UAoAkg7CFkZYChPCJFRlQABw4MDhMOcSJ1YWwAAKBDInUkbGxFcXVhbAAAoEUiaSJsZGUAAKBIInAAZgAA4DXYS93pI3BsZURvdACg2yAAAWN0Jw4rDnIAAOA12K/c8iFva2Zh4QpFDlYOYA5qDgAAbg5yDgAAAAAAAAAAAAB5DnwOqA6zDgAADg8RDxYPGg8AAWNySA5ODnUAdABlADuA2gDaQHIAb6CfIeMhaXIAoEkpcgDjAVsOAABdDnkADmR2AGUAbGEAAWl5Yw5oDnIAYwA7gNsA20AjZGIibGFjAHBhcgAA4DXYGN1yAGEAdgBlADuA2QDZQOEhY3JqYQABZGl/Dp8OZQByAAABQlCFDpcOAAFhcokOiw5yAF9gYQBjAAABZWuRDpMOAKDfI2UAdAAAoLUjYSVyZW50aGVzaXMAAKDdI28AbgBQoMMi7CF1cwCgjiIAAWdwqw6uDm8AbgByYWYAAOA12EzdAARBREVUYWRwc78O0g7ZDuEOBQPqDvMOBw9yInJvdwDCoZEhyA4AAMwOYQByAACgEilvJHduQXJyb3cAAKDFIW8kd25BcnJvdwAAoJUhcSV1aWxpYnJpdW0AAKBuKWUAZQBBoKUiciJyb3cAAKClIW8AdwBuAGEAcgByAG8A9wAQA2UAcgAAAUxS+Q4AD2UkZnRBcnJvdwAAoJYh6SRnaHRBcnJvdwCglyFpAGyg0gNvAG4ApWPpIW5nbmFjAHIAAOA12LDcaSJsZGUAaGFtAGwAO4DcANxAgAREYmNkZWZvc3YALQ8xDzUPNw89D3IPdg97D4AP4SFzaACgqyJhAHIAAKDrKnkAEmThIXNobKCpIgCg5ioAAWVyQQ9DDwCgwSKAAWJ0eQBJD00Paw9hAHIAAKAWIGmgFiDjIWFsAAJCTFNUWA9cD18PZg9hAHIAAKAjIukhbmV8YGUkcGFyYXRvcgAAoFgnaSJsZGUAAKBAItQkaGluU3BhY2UAoAogcgAA4DXYGd1wAGYAAOA12E3dYwByAADgNdix3GQiYXNoAACgqiKAAmNlZm9zAI4PkQ+VD5kPng/pIXJjdGHkIWdlAKDAInIAAOA12BrdcABmAADgNdhO3WMAcgAA4DXYstwAAmZpb3OqD64Prw+0D3IAAOA12BvdnmNwAGYAAOA12E/dYwByAADgNdiz3IAEQUlVYWNmb3N1AMgPyw/OD9EP2A/gD+QP6Q/uD2MAeQAvZGMAeQAHZGMAeQAuZGMAdQB0AGUAO4DdAN1AAAFpedwP3w9yAGMAdmErZHIAAOA12BzdcABmAADgNdhQ3WMAcgAA4DXYtNxtAGwAeGEABEhhY2RlZm9z/g8BEAUQDRAQEB0QIBAkEGMAeQAWZGMidXRlAHlhAAFheQkQDBDyIW9ufWEXZG8AdAB7YfIBFRAAABwQbwBXAGkAZAB0AOgAVAhhAJZjcgAAoCghcABmAACgJCFjAHIAAOA12LXc4QtCEEkQTRAAAGcQbRByEAAAAAAAAAAAeRCKEJcQ8hD9EAAAGxEhETIROREAAD4RYwB1AHQAZQA7gOEA4UByImV2ZQADYYCiPiJFZGl1eQBWEFkQWxBgEGUQAOA+IjMDAKA/InIAYwA7gOIA4kB0AGUAO4C0ALRAMGRsAGkAZwA7gOYA5kByoGEgAOA12B7dcgBhAHYAZQA7gOAA4EAAAWVwfBCGEAABZnCAEIQQ8yF5bQCgNSHoAIMQaABhALFjAAFhcI0QWwAAAWNskRCTEHIAAWFnAACgPypkApwQAAAAALEQAKInImFkc3ajEKcQqRCuEG4AZAAAoFUqAKBcKmwib3BlAACgWCoAoFoqAKMgImVsbXJzersQvRDAEN0Q5RDtEACgpCllAACgICJzAGQAYaAhImEEzhDQENIQ1BDWENgQ2hDcEACgqCkAoKkpAKCqKQCgqykAoKwpAKCtKQCgrikAoK8pdAB2oB8iYgBkoL4iAKCdKQABcHTpEOwQaAAAoCIixWDhIXJyAKB8IwABZ3D1EPgQbwBuAAVhZgAA4DXYUt0Ao0giRWFlaW9wBxEJEQ0RDxESERQRAKBwKuMhaXIAoG8qAKBKImQAAKBLInMAJ2DyIW94ZaBIIvEADhFpAG4AZwA7gOUA5UCAAWN0eQAmESoRKxFyAADgNdi23CpgbQBwAGWgSCLxAPgBaQBsAGQAZQA7gOMA40BtAGwAO4DkAORAAAFjaUERRxFvAG4AaQBuAPQA6AFuAHQAAKARKgAITmFiY2RlZmlrbG5vcHJzdWQRaBGXEZ8RpxGrEdIR1hErEjASexKKEn0RThNbE3oTbwB0AACg7SoAAWNybBGJEWsAAAJjZXBzdBF4EX0RghHvIW5nAKBMInAjc2lsb24A9mNyImltZQAAoDUgaQBtAGWgPSJxAACgzSJ2AY0RkRFlAGUAAKC9ImUAZABnoAUjZQAAoAUjcgBrAHSgtSPiIXJrAKC2IwABb3mjEaYRbgDnAHcRMWTxIXVvAKAeIIACY21wcnQAtBG5Eb4RwRHFEeEhdXPloDUi5ABwInR5dgAAoLApcwDpAH0RbgBvAPUA6gCAAWFodwDLEcwRzhGyYwCgNiHlIWVuAKBsInIAAOA12B/dZwCAA2Nvc3R1dncA4xHyEQUSEhIhEiYSKRKAAWFpdQDpEesR7xHwAKMFcgBjAACg7yVwAACgwyKAAWRwdAD4EfwRABJvAHQAAKAAKuwhdXMAoAEqaSJtZXMAAKACKnECCxIAAAAADxLjIXVwAKAGKmEAcgAAoAUm8iNpYW5nbGUAAWR1GhIeEu8hd24AoL0lcAAAoLMlcCJsdXMAAKAEKmUA5QBCD+UAkg9hInJvdwAAoA0pgAFha28ANhJoEncSAAFjbjoSZRJrAIABbHN0AEESRxJNEm8jemVuZ2UAAKDrKXEAdQBhAHIA5QBcBPIjaWFuZ2xlgKG0JWRscgBYElwSYBLvIXduAKC+JeUhZnQAoMIlaSJnaHQAAKC4JWsAAKAjJLEBbRIAAHUSsgFxEgAAcxIAoJIlAKCRJTQAAKCTJWMAawAAoIglAAFlb38ShxJx4D0A5SD1IWl2AOBhIuUgdAAAoBAjAAJwdHd4kRKVEpsSnxJmAADgNdhT3XSgpSJvAG0AAKClIvQhaWUAoMgiAAZESFVWYmRobXB0dXayEsES0RLgEvcS+xIKExoTHxMjEygTNxMAAkxSbHK5ErsSvRK/EgCgVyUAoFQlAKBWJQCgUyUAolAlRFVkdckSyxLNEs8SAKBmJQCgaSUAoGQlAKBnJQACTFJsctgS2hLcEt4SAKBdJQCgWiUAoFwlAKBZJQCjUSVITFJobHLrEu0S7xLxEvMS9RIAoGwlAKBjJQCgYCUAoGslAKBiJQCgXyVvAHgAAKDJKQACTFJscgITBBMGEwgTAKBVJQCgUiUAoBAlAKAMJQCiACVEVWR1EhMUExYTGBMAoGUlAKBoJQCgLCUAoDQlaSJudXMAAKCfIuwhdXMAoJ4iaSJtZXMAAKCgIgACTFJsci8TMRMzEzUTAKBbJQCgWCUAoBglAKAUJQCjAiVITFJobHJCE0QTRhNIE0oTTBMAoGolAKBhJQCgXiUAoDwlAKAkJQCgHCUAAWV2UhNVE3YA5QD5AGIAYQByADuApgCmQAACY2Vpb2ITZhNqE24TcgAA4DXYt9xtAGkAAKBPIG0A5aA9IogRbAAAoVwAYmh0E3YTAKDFKfMhdWIAoMgnbAF+E4QTbABloCIgdAAAoCIgcAAAoU4iRWWJE4sTAKCuKvGgTyI8BeEMqRMAAN8TABQDFB8UAAAjFDQUAAAAAIUUAAAAAI0UAAAAANcU4xT3FPsUAACIFQAAlhWAAWNwcgCuE7ET1RP1IXRlB2GAoikiYWJjZHMAuxO/E8QTzhPSE24AZAAAoEQqciJjdXAAAKBJKgABYXXIE8sTcAAAoEsqcAAAoEcqbwB0AACgQCoA4CkiAP4AAWVv2RPcE3QAAKBBIO4ABAUAAmFlaXXlE+8T9RP4E/AB6hMAAO0TcwAAoE0qbwBuAA1hZABpAGwAO4DnAOdAcgBjAAlhcABzAHOgTCptAACgUCpvAHQAC2GAAWRtbgAIFA0UEhRpAGwAO4C4ALhAcCJ0eXYAAKCyKXQAAIGiADtlGBQZFKJAcgBkAG8A9ABiAXIAAOA12CDdgAFjZWkAKBQqFDIUeQBHZGMAawBtoBMn4SFyawCgEyfHY3IAAKPLJUVjZWZtcz8UQRRHFHcUfBSAFACgwykAocYCZWxGFEkUcQAAoFciZQBhAlAUAAAAAGAUciJyb3cAAAFsclYUWhTlIWZ0AKC6IWkiZ2h0AACguyGAAlJTYWNkAGgUaRRrFG8UcxSuYACgyCRzAHQAAKCbIukhcmMAoJoi4SFzaACgnSJuImludAAAoBAqaQBkAACg7yrjIWlyAKDCKfUhYnN1oGMmaQB0AACgYybsApMUmhS2FAAAwxRvAG4AZaA6APGgVCKrAG0CnxQAAAAAoxRhAHSgLABAYAChASJmbKcUqRTuABMNZQAAAW14rhSyFOUhbnQAoAEiZQDzANIB5wG6FAAAwBRkoEUibwB0AACgbSpuAPQAzAGAAWZyeQDIFMsUzhQA4DXYVN1vAOQA1wEAgakAO3MeAdMUcgAAoBchAAFhb9oU3hRyAHIAAKC1IXMAcwAAoBcnAAFjdeYU6hRyAADgNdi43AABYnDuFPIUZaDPKgCg0SploNAqAKDSKuQhb3QAoO8igANkZWxwcnZ3AAYVEBUbFSEVRBVlFYQV4SFycgABbHIMFQ4VAKA4KQCgNSlwAhYVAAAAABkVcgAAoN4iYwAAoN8i4SFycnCgtiEAoD0pgKIqImJjZG9zACsVMBU6FT4VQRVyImNhcAAAoEgqAAFhdTQVNxVwAACgRipwAACgSipvAHQAAKCNInIAAKBFKgDgKiIA/gACYWxydksVURVuFXMVcgByAG2gtyEAoDwpeQCAAWV2dwBYFWUVaRVxAHACXxUAAAAAYxVyAGUA4wAXFXUA4wAZFWUAZQAAoM4iZSJkZ2UAAKDPImUAbgA7gKQApEBlI2Fycm93AAABbHJ7FX8V5SFmdACgtiFpImdodAAAoLchZQDkAG0VAAFjaYsVkRVvAG4AaQBuAPQAkwFuAHQAAKAxImwiY3R5AACgLSOACUFIYWJjZGVmaGlqbG9yc3R1d3oAuBW7Fb8V1RXgFegV+RUKFhUWHxZUFlcWZRbFFtsW7xb7FgUXChdyAPIAtAJhAHIAAKBlKQACZ2xyc8YVyhXOFdAV5yFlcgCgICDlIXRoAKA4IfIA9QxoAHagECAAoKMiawHZFd4VYSJyb3cAAKAPKWEA4wBfAgABYXnkFecV8iFvbg9hNGQAoUYhYW/tFfQVAAFnciEC8RVyAACgyiF0InNlcQAAoHcqgAFnbG0A/xUCFgUWO4CwALBAdABhALRjcCJ0eXYAAKCxKQABaXIOFhIW8yFodACgfykA4DXYId1hAHIAAAFschsWHRYAoMMhAKDCIYACYWVnc3YAKBauAjYWOhY+Fm0AAKHEIm9zLhY0Fm4AZABzoMQi9SFpdACgZiZhIm1tYQDdY2kAbgAAoPIiAKH3AGlvQxZRFmQAZQAAgfcAO29KFksW90BuI3RpbWVzAACgxyJuAPgAUBZjAHkAUmRjAG8CXhYAAAAAYhZyAG4AAKAeI28AcAAAoA0jgAJscHR1dwBuFnEWdRaSFp4W7CFhciRgZgAA4DXYVd0AotkCZW1wc30WhBaJFo0WcQBkoFAibwB0AACgUSJpIm51cwAAoDgi7CF1cwCgFCLxInVhcmUAoKEiYgBsAGUAYgBhAHIAdwBlAGQAZwDlANcAbgCAAWFkaAClFqoWtBZyAHIAbwD3APUMbwB3AG4AYQByAHIAbwB3APMA8xVhI3Jwb29uAAABbHK8FsAWZQBmAPQAHBZpAGcAaAD0AB4WYgHJFs8WawBhAHIAbwD3AJILbwLUFgAAAADYFnIAbgAAoB8jbwBwAACgDCOAAWNvdADhFukW7BYAAXJ55RboFgDgNdi53FVkbAAAoPYp8iFvaxFhAAFkcvMW9xZvAHQAAKDxImkA5qC/JVsSAAFhaP8WAhdyAPIANQNhAPIA1wvhIm5nbGUAoKYpAAFjaQ4XEBd5AF9k5yJyYXJyAKD/JwAJRGFjZGVmZ2xtbm9wcXJzdHV4MRc4F0YXWxcyBF4XaRd5F40XrBe0F78X2RcVGCEYLRg1GEAYAAFEbzUXgRZvAPQA+BUAAWNzPBdCF3UAdABlADuA6QDpQPQhZXIAoG4qAAJhaW95TRdQF1YXWhfyIW9uG2FyAGOgViI7gOoA6kDsIW9uAKBVIk1kbwB0ABdhAAFEcmIXZhdvAHQAAKBSIgDgNdgi3XKhmipuF3QXYQB2AGUAO4DoAOhAZKCWKm8AdAAAoJgqgKGZKmlscwCAF4UXhxfuInRlcnMAoOcjAKATIWSglSpvAHQAAKCXKoABYXBzAJMXlheiF2MAcgATYXQAeQBzogUinxcAAAAAoRdlAHQAAKAFInAAMaADIDMBqRerFwCgBCAAoAUgAAFnc7AXsRdLYXAAAKACIAABZ3C4F7sXbwBuABlhZgAA4DXYVt2AAWFscwDFF8sXzxdyAHOg1SJsAACg4yl1AHMAAKBxKmkAAKG1A2x21RfYF28AbgC1Y/VjAAJjc3V24BfoF/0XEBgAAWlv5BdWF3IAYwAAoFYiaQLuFwAAAADwF+0ADQThIW50AAFnbPUX+Rd0AHIAAKCWKuUhc3MAoJUqgAFhZWkAAxgGGAoYbABzAD1gcwB0AACgXyJ2AESgYSJEAACgeCrwImFyc2wAoOUpAAFEYRkYHRhvAHQAAKBTInIAcgAAoHEpgAFjZGkAJxgqGO0XcgAAoC8hbwD0AIwCAAFhaDEYMhi3YzuA8ADwQAABbXI5GD0YbAA7gOsA60BvAACgrCCAAWNpcABGGEgYSxhsACFgcwD0ACwEAAFlb08YVxhjAHQAYQB0AGkAbwDuABoEbgBlAG4AdABpAGEAbADlADME4Ql1GAAAgRgAAIMYiBgAAAAAoRilGAAAqhgAALsYvhjRGAAA1xgnGWwAbABpAG4AZwBkAG8AdABzAGUA8QBlF3kARGRtImFsZQAAoEAmgAFpbHIAjRiRGJ0Y7CFpZwCgA/tpApcYAAAAAJoYZwAAoAD7aQBnAACgBPsA4DXYI93sIWlnAKAB++whaWcA4GYAagCAAWFsdACvGLIYthh0AACgbSZpAGcAAKAC+24AcwAAoLElbwBmAJJh8AHCGAAAxhhmAADgNdhX3QABYWvJGMwYbADsAGsEdqDUIgCg2SphI3J0aW50AACgDSoAAWFv2hgiGQABY3PeGB8ZsQPnGP0YBRkSGRUZAAAdGbID7xjyGPQY9xj5GAAA+xg7gL0AvUAAoFMhO4C8ALxAAKBVIQCgWSEAoFshswEBGQAAAxkAoFQhAKBWIbQCCxkOGQAAAAAQGTuAvgC+QACgVyEAoFwhNQAAoFghtgEZGQAAGxkAoFohAKBdITgAAKBeIWwAAKBEIHcAbgAAoCIjYwByAADgNdi73IAIRWFiY2RlZmdpamxub3JzdHYARhlKGVoZXhlmGWkZkhmWGZkZnRmgGa0ZxhnLGc8Z4BkjGmygZyIAoIwqgAFjbXAAUBlTGVgZ9SF0ZfVhbQBhAOSgswM6FgCghipyImV2ZQAfYQABaXliGWUZcgBjAB1hM2RvAHQAIWGAoWUibHFzAMYEcBl6GfGhZSLOBAAAdhlsAGEAbgD0AN8EgKF+KmNkbACBGYQZjBljAACgqSpvAHQAb6CAKmyggioAoIQqZeDbIgD+cwAAoJQqcgAA4DXYJN3noGsirATtIWVsAKA3IWMAeQBTZIChdyJFYWoApxmpGasZAKCSKgCgpSoAoKQqAAJFYWVztBm2Gb0ZwhkAoGkicABwoIoq8iFveACgiipxoIgq8aCIKrUZaQBtAACg5yJwAGYAAOA12FjdYQB2AOUAYwIAAWNp0xnWGXIAAKAKIW0AAKFzImVs3BneGQCgjioAoJAqAIM+ADtjZGxxco0E6xn0GfgZ/BkBGgABY2nvGfEZAKCnKnIAAKB6Km8AdAAAoNci0CFhcgCglSl1ImVzdAAAoHwqgAJhZGVscwAKGvQZFhrVBCAa8AEPGgAAFBpwAHIAbwD4AFkZcgAAoHgpcQAAAWxxxAQbGmwAZQBzAPMASRlpAO0A5AQAAWVuJxouGnIjdG5lcXEAAOBpIgD+xQAsGgAFQWFiY2Vma29zeUAaQxpmGmoabRqDGocalhrCGtMacgDyAMwCAAJpbG1yShpOGlAaVBpyAHMA8ABxD2YAvWBpAGwA9AASBQABZHJYGlsaYwB5AEpkAKGUIWN3YBpkGmkAcgAAoEgpAKCtIWEAcgAAoA8h6SFyYyVhgAFhbHIAcxp7Gn8a8iF0c3WgZSZpAHQAAKBlJuwhaXAAoCYg4yFvbgCguSJyAADgNdgl3XMAAAFld4wakRphInJvdwAAoCUpYSJyb3cAAKAmKYACYW1vcHIAnxqjGqcauhq+GnIAcgAAoP8h9CFodACgOyJrAAABbHKsGrMaZSRmdGFycm93AACgqSHpJGdodGFycm93AKCqIWYAAOA12Fnd4iFhcgCgFSCAAWNsdADIGswa0BpyAADgNdi93GEAcwDoAGka8iFvaydhAAFicNca2xr1IWxsAKBDIOghZW4AoBAg4Qr2GgAA/RoAAAgbExsaGwAAIRs7GwAAAAA+G2IbmRuVG6sbAACyG80b0htjAHUAdABlADuA7QDtQAChYyBpeQEbBhtyAGMAO4DuAO5AOGQAAWN4CxsNG3kANWRjAGwAO4ChAKFAAAFmcssCFhsA4DXYJt1yAGEAdgBlADuA7ADsQIChSCFpbm8AJxsyGzYbAAFpbisbLxtuAHQAAKAMKnQAAKAtIuYhaW4AoNwpdABhAACgKSHsIWlnM2GAAWFvcABDG1sbXhuAAWNndABJG0sbWRtyACthgAFlbHAAcQVRG1UbaQBuAOUAyAVhAHIA9AByBWgAMWFmAACgtyJlAGQAtWEAoggiY2ZvdGkbbRt1G3kb4SFyZQCgBSFpAG4AdKAeImkAZQAAoN0pZABvAPQAWxsAoisiY2VscIEbhRuPG5QbYQBsAACguiIAAWdyiRuNG2UAcgDzACMQ4wCCG2EicmhrAACgFyryIW9kAKA8KgACY2dwdJ8boRukG6gbeQBRZG8AbgAvYWYAAOA12FrdYQC5Y3UAZQBzAHQAO4C/AL9AAAFjabUbuRtyAADgNdi+3G4AAKIIIkVkc3bCG8QbyBvQAwCg+SJvAHQAAKD1Inag9CIAoPMiaaBiIOwhZGUpYesB1hsAANkbYwB5AFZkbAA7gO8A70AAA2NmbW9zdeYb7hvyG/Ub+hsFHAABaXnqG+0bcgBjADVhOWRyAADgNdgn3eEhdGg3YnAAZgAA4DXYW93jAf8bAAADHHIAAOA12L/c8iFjeVhk6yFjeVRkAARhY2ZnaGpvcxUcGhwiHCYcKhwtHDAcNRzwIXBhdqC6A/BjAAFleR4cIRzkIWlsN2E6ZHIAAOA12CjdciJlZW4AOGFjAHkARWRjAHkAXGRwAGYAAOA12FzdYwByAADgNdjA3IALQUJFSGFiY2RlZmdoamxtbm9wcnN0dXYAXhxtHHEcdRx5HN8cBx0dHTwd3B3tHfEdAR4EHh0eLB5FHrwewx7hHgkfPR9LH4ABYXJ0AGQcZxxpHHIA8gBvB/IAxQLhIWlsAKAbKeEhcnIAoA4pZ6BmIgCgiyphAHIAAKBiKWMJjRwAAJAcAACVHAAAAAAAAAAAAACZHJwcAACmHKgcrRwAANIc9SF0ZTph7SJwdHl2AKC0KXIAYQDuAFoG4iFkYbtjZwAAoegnZGyhHKMcAKCRKeUAiwYAoIUqdQBvADuAqwCrQHIAgKOQIWJmaGxwc3QAuhy/HMIcxBzHHMoczhxmoOQhcwAAoB8pcwAAoB0p6wCyGnAAAKCrIWwAAKA5KWkAbQAAoHMpbAAAoKIhAKGrKmFl1hzaHGkAbAAAoBkpc6CtKgDgrSoA/oABYWJyAOUc6RztHHIAcgAAoAwpcgBrAACgcicAAWFr8Rz4HGMAAAFla/Yc9xx7YFtgAAFlc/wc/hwAoIspbAAAAWR1Ax0FHQCgjykAoI0pAAJhZXV5Dh0RHRodHB3yIW9uPmEAAWRpFR0YHWkAbAA8YewAowbiAPccO2QAAmNxcnMkHScdLB05HWEAAKA2KXUAbwDyoBwgqhEAAWR1MB00HeghYXIAoGcpcyJoYXIAAKBLKWgAAKCyIQCiZCJmZ3FzRB1FB5Qdnh10AIACYWhscnQATh1WHWUdbB2NHXIicm93AHSgkCFhAOkAzxxhI3Jwb29uAAABZHVeHWId7yF3bgCgvSFwAACgvCHlJGZ0YXJyb3dzAKDHIWkiZ2h0AIABYWhzAHUdex2DHXIicm93APOglCGdBmEAcgBwAG8AbwBuAPMAzgtxAHUAaQBnAGEAcgByAG8A9wBlGugkcmVldGltZXMAoMsi8aFkIk0HAACaHWwAYQBuAPQAXgcAon0qY2Rnc6YdqR2xHbcdYwAAoKgqbwB0AG+gfypyoIEqAKCDKmXg2iIA/nMAAKCTKoACYWRlZ3MAwB3GHcod1h3ZHXAAcAByAG8A+ACmHG8AdAAAoNYicQAAAWdxzx3SHXQA8gBGB2cAdADyAHQcdADyAFMHaQDtAGMHgAFpbHIA4h3mHeod8yFodACgfClvAG8A8gDKBgDgNdgp3UWgdiIAoJEqYQH1Hf4dcgAAAWR1YB35HWygvCEAoGopbABrAACghCVjAHkAWWQAomoiYWNodAweDx4VHhkecgDyAGsdbwByAG4AZQDyAGAW4SFyZACgaylyAGkAAKD6JQABaW8hHiQe5CFvdEBh9SFzdGGgsCPjIWhlAKCwIwACRWFlczMeNR48HkEeAKBoInAAcKCJKvIhb3gAoIkqcaCHKvGghyo0HmkAbQAAoOYiAARhYm5vcHR3elIeXB5fHoUelh6mHqsetB4AAW5yVh5ZHmcAAKDsJ3IAAKD9IXIA6wCwBmcAgAFsbXIAZh52Hnse5SFmdAABYXKIB2weaQBnAGgAdABhAHIAcgBvAPcAkwfhInBzdG8AoPwnaQBnAGgAdABhAHIAcgBvAPcAmgdwI2Fycm93AAABbHKNHpEeZQBmAPQAxhxpImdodAAAoKwhgAFhZmwAnB6fHqIecgAAoIUpAOA12F3ddQBzAACgLSppIm1lcwAAoDQqYQGvHrMecwB0AACgFyLhAIoOZaHKJbkeRhLuIWdlAKDKJWEAcgBsoCgAdAAAoJMpgAJhY2htdADMHs8e1R7bHt0ecgDyAJ0GbwByAG4AZQDyANYWYQByAGSgyyEAoG0pAKAOIHIAaQAAoL8iAANhY2hpcXTrHu8e1QfzHv0eBh/xIXVvAKA5IHIAAOA12MHcbQDloXIi+h4AAPweAKCNKgCgjyoAAWJ19xwBH28AcqAYIACgGiDyIW9rQmEAhDwAO2NkaGlscXJCBhcfxh0gHyQfKB8sHzEfAAFjaRsfHR8AoKYqcgAAoHkqcgBlAOUAkx3tIWVzAKDJIuEhcnIAoHYpdSJlc3QAAKB7KgABUGk1HzkfYQByAACglillocMlAgdfEnIAAAFkdUIfRx9zImhhcgAAoEop6CFhcgCgZikAAWVuTx9WH3IjdG5lcXEAAOBoIgD+xQBUHwAHRGFjZGVmaGlsbm9wc3VuH3Ifoh+rH68ftx+7H74f5h/uH/MfBwj/HwsgxCFvdACgOiIAAmNscHJ5H30fiR+eH3IAO4CvAK9AAAFldIEfgx8AoEImZaAgJ3MAZQAAoCAnc6CmIXQAbwCAoaYhZGx1AJQfmB+cH28AdwDuAHkDZQBmAPQA6gbwAOkO6yFlcgCgriUAAW95ph+qH+0hbWEAoCkqPGThIXNoAKAUIOElc3VyZWRhbmdsZQCgISJyAADgNdgq3W8AAKAnIYABY2RuAMQfyR/bH3IAbwA7gLUAtUBhoiMi0B8AANMf1x9zAPQAKxFpAHIAAKDwKm8AdAA7gLcAt0B1AHMA4qESIh4TAADjH3WgOCIAoCoqYwHqH+0fcAAAoNsq8gB+GnAAbAB1APMACAgAAWRw9x/7H+UhbHMAoKciZgAA4DXYXt0AAWN0AyAHIHIAAOA12MLc8CFvcwCgPiJsobwDECAVIPQiaW1hcACguCJhAPAAEyAADEdMUlZhYmNkZWZnaGlqbG1vcHJzdHV2dzwgRyBmIG0geSCqILgg2iDeIBEhFSEyIUMhTSFQIZwhnyHSIQAiIyKLIrEivyIUIwABZ3RAIEMgAODZIjgD9uBrItIgBwmAAWVsdABNIF8gYiBmAHQAAAFhclMgWCByInJvdwAAoM0h6SRnaHRhcnJvdwCgziEA4NgiOAP24Goi0iBfCekkZ2h0YXJyb3cAoM8hAAFEZHEgdSDhIXNoAKCvIuEhc2gAoK4igAJiY25wdACCIIYgiSCNIKIgbABhAACgByL1IXRlRGFnAADgICLSIACiSSJFaW9wlSCYIJwgniAA4HAqOANkAADgSyI4A3MASWFyAG8A+AAyCnUAcgBhoG4mbADzoG4mmwjzAa8gAACzIHAAO4CgAKBAbQBwAOXgTiI4AyoJgAJhZW91eQDBIMogzSDWINkg8AHGIAAAyCAAoEMqbwBuAEhh5CFpbEZhbgBnAGSgRyJvAHQAAOBtKjgDcAAAoEIqPWThIXNoAKATIACjYCJBYWRxc3jpIO0g+SD+IAIhDCFyAHIAAKDXIXIAAAFocvIg9SBrAACgJClvoJch9wAGD28AdAAA4FAiOAN1AGkA9gC7CAABZWkGIQohYQByAACgKCntAN8I6SFzdPOgBCLlCHIAAOA12CvdAAJFZXN0/wgcISshLiHxoXEiIiEAABMJ8aFxIgAJAAAnIWwAYQBuAPQAEwlpAO0AGQlyoG8iAKBvIoABQWFwADghOyE/IXIA8gBeIHIAcgAAoK4hYQByAACg8ipzogsiSiEAAAAAxwtkoPwiAKD6ImMAeQBaZIADQUVhZGVzdABcIV8hYiFmIWkhkyGWIXIA8gBXIADgZiI4A3IAcgAAoJohcgAAoCUggKFwImZxcwBwIYQhjiF0AAABYXJ1IXohcgByAG8A9wBlIWkAZwBoAHQAYQByAHIAbwD3AD4h8aFwImAhAACKIWwAYQBuAPQAZwlz4H0qOAMAoG4iaQDtAG0JcqBuImkA5aDqIkUJaQDkADoKAAFwdKMhpyFmAADgNdhf3YCBrAA7aW4AriGvIcchrEBuAIChCSJFZHYAtyG6Ib8hAOD5IjgDbwB0AADg9SI4A+EB1gjEIcYhAKD3IgCg9iJpAHagDCLhAagJzyHRIQCg/iIAoP0igAFhb3IA2CHsIfEhcgCAoSYiYXN0AOAh5SHpIWwAbABlAOwAywhsAADg/SrlIADgAiI4A2wiaW50AACgFCrjoYAi9yEAAPohdQDlAJsJY+CvKjgDZaCAIvEAkwkAAkFhaXQHIgoiFyIeInIA8gBsIHIAcgAAoZshY3cRIhQiAOAzKTgDAOCdITgDZyRodGFycm93AACgmyFyAGkA5aDrIr4JgANjaGltcHF1AC8iPCJHIpwhTSJQIloigKGBImNlcgA2Iv0JOSJ1AOUABgoA4DXYw9zvIXJ0bQKdIQAAAABEImEAcgDhAOEhbQBloEEi8aBEIiYKYQDyAMsIcwB1AAABYnBWIlgi5QDUCeUA3wmAAWJjcABgInMieCKAoYQiRWVzAGci7glqIgDgxSo4A2UAdABl4IIi0iBxAPGgiCJoImMAZaCBIvEA/gmAoYUiRWVzAH8iFgqCIgDgxio4A2UAdABl4IMi0iBxAPGgiSKAIgACZ2lscpIilCKaIpwi7AAMCWwAZABlADuA8QDxQOcAWwlpI2FuZ2xlAAABbHKkIqoi5SFmdGWg6iLxAEUJaSJnaHQAZaDrIvEAvgltoL0DAKEjAGVzuCK8InIAbwAAoBYhcAAAoAcggARESGFkZ2lscnMAziLSItYi2iLeIugi7SICIw8j4SFzaACgrSLhIXJyAKAEKXAAAOBNItIg4SFzaACgrCIAAWV04iLlIgDgZSLSIADgPgDSIG4iZmluAACg3imAAUFldADzIvci+iJyAHIAAKACKQDgZCLSIHLgPADSIGkAZQAA4LQi0iAAAUF0BiMKI3IAcgAAoAMp8iFpZQDgtSLSIGkAbQAA4Dwi0iCAAUFhbgAaIx4jKiNyAHIAAKDWIXIAAAFociMjJiNrAACgIylvoJYh9wD/DuUhYXIAoCcpUxJqFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAVCMAAF4jaSN/I4IjjSOeI8AUAAAAAKYjwCMAANoj3yMAAO8jHiQvJD8kRCQAAWNzVyNsFHUAdABlADuA8wDzQAABaXlhI2cjcgBjoJoiO4D0APRAPmSAAmFiaW9zAHEjdCN3I3EBeiNzAOgAdhTsIWFjUWF2AACgOCrvIWxkAKC8KewhaWdTYQABY3KFI4kjaQByAACgvykA4DXYLN1vA5QjAAAAAJYjAACcI24A22JhAHYAZQA7gPIA8kAAoMEpAAFibaEjjAphAHIAAKC1KQACYWNpdKwjryO6I70jcgDyAFkUAAFpcrMjtiNyAACgvinvIXNzAKC7KW4A5QDZCgCgwCmAAWFlaQDFI8gjyyNjAHIATWFnAGEAyWOAAWNkbgDRI9Qj1iPyIW9uv2MAoLYpdQDzAHgBcABmAADgNdhg3YABYWVsAOQj5yPrI3IAAKC3KXIAcAAAoLkpdQDzAHwBAKMoImFkaW9zdvkj/CMPJBMkFiQbJHIA8gBeFIChXSplZm0AAyQJJAwkcgBvoDQhZgAAoDQhO4CqAKpAO4C6ALpA5yFvZgCgtiJyAACgVipsIm9wZQAAoFcqAKBbKoABY2xvACMkJSQrJPIACCRhAHMAaAA7gPgA+EBsAACgmCJpAGwBMyQ4JGQAZQA7gPUA9UBlAHMAYaCXInMAAKA2Km0AbAA7gPYA9kDiIWFyAKA9I+EKXiQAAHokAAB8JJQkAACYJKkkAAAAALUkEQsAAPAkAAAAAAQleiUAAIMlcgCAoSUiYXN0AGUkbyQBCwCBtgA7bGokayS2QGwAZQDsABgDaQJ1JAAAAAB4JG0AAKDzKgCg/Sp5AD9kcgCAAmNpbXB0AIUkiCSLJJkSjyRuAHQAJWBvAGQALmBpAGwAAKAwIOUhbmsAoDEgcgAA4DXYLd2AAWltbwCdJKAkpCR2oMYD1WNtAGEA9AD+B24AZQAAoA4m9KHAA64kAAC0JGMjaGZvcmsAAKDUItZjAAFhdbgkxCRuAAABY2u9JMIkawBooA8hAKAOIfYAaRpzAACkKwBhYmNkZW1zdNMkIRPXJNsk4STjJOck6yTjIWlyAKAjKmkAcgAAoCIqAAFvdYsW3yQAoCUqAKByKm4AO4CxALFAaQBtAACgJip3AG8AAKAnKoABaXB1APUk+iT+JO4idGludACgFSpmAADgNdhh3W4AZAA7gKMAo0CApHoiRWFjZWlub3N1ABMlFSUYJRslTCVRJVklSSV1JQCgsypwAACgtyp1AOUAPwtjoK8qgKJ6ImFjZW5zACclLSU0JTYlSSVwAHAAcgBvAPgAFyV1AHIAbAB5AGUA8QA/C/EAOAuAAWFlcwA8JUElRSXwInByb3gAoLkqcQBxAACgtSppAG0AAKDoImkA7QBEC20AZQDzoDIgIguAAUVhcwBDJVclRSXwAEAlgAFkZnAATwtfJXElgAFhbHMAZSVpJW0l7CFhcgCgLiPpIW5lAKASI/UhcmYAoBMjdKAdIu8AWQvyIWVsAKCwIgABY2l9JYElcgAA4DXYxdzIY24iY3NwAACgCCAAA2Zpb3BzdZElKxuVJZolnyWkJXIAAOA12C7dcABmAADgNdhi3XIiaW1lAACgVyBjAHIAAOA12MbcgAFhZW8AqiW6JcAldAAAAWVpryW2JXIAbgBpAG8AbgDzABkFbgB0AACgFipzAHQAZaA/APEACRj0AG0LgApBQkhhYmNkZWZoaWxtbm9wcnN0dXgA4yXyJfYl+iVpJpAmpia9JtUm5ib4JlonaCdxJ3UnnietJ7EnyCfiJ+cngAFhcnQA6SXsJe4lcgDyAJkM8gD6AuEhaWwAoBwpYQByAPIA3BVhAHIAAKBkKYADY2RlbnFydAAGJhAmEyYYJiYmKyZaJgABZXUKJg0mAOA9IjEDdABlAFVhaQDjACAN7SJwdHl2AKCzKWcAgKHpJ2RlbAAgJiImJCYAoJIpAKClKeUA9wt1AG8AO4C7ALtAcgAApZIhYWJjZmhscHN0dz0mQCZFJkcmSiZMJk4mUSZVJlgmcAAAoHUpZqDlIXMAAKAgKQCgMylzAACgHinrALka8ACVHmwAAKBFKWkAbQAAoHQpbAAAoKMhAKCdIQABYWleJmImaQBsAACgGilvAG6gNiJhAGwA8wB2C4ABYWJyAG8mciZ2JnIA8gAvEnIAawAAoHMnAAFha3omgSZjAAABZWt/JoAmfWBdYAABZXOFJocmAKCMKWwAAAFkdYwmjiYAoI4pAKCQKQACYWV1eZcmmiajJqUm8iFvbllhAAFkaZ4moSZpAGwAV2HsAA8M4gCAJkBkAAJjbHFzrSawJrUmuiZhAACgNylkImhhcgAAoGkpdQBvAPKgHSCjAWgAAKCzIYABYWNnAMMm0iaUC2wAgKEcIWlwcwDLJs4migxuAOUAoAxhAHIA9ADaC3QAAKCtJYABaWxyANsm3ybjJvMhaHQAoH0pbwBvAPIANgwA4DXYL90AAWFv6ib1JnIAAAFkde8m8SYAoMEhbKDAIQCgbCl2oMED8WOAAWducwD+Jk4nUCdoAHQAAANhaGxyc3QKJxInISc1Jz0nRydyInJvdwB0oJIhYQDpAFYmYSNycG9vbgAAAWR1GiceJ28AdwDuAPAmcAAAoMAh5SFmdAABYWgnJy0ncgByAG8AdwDzAAkMYQByAHAAbwBvAG4A8wATBGklZ2h0YXJyb3dzAACgySFxAHUAaQBnAGEAcgByAG8A9wBZJugkcmVldGltZXMAoMwiZwDaYmkAbgBnAGQAbwB0AHMAZQDxABwYgAFhaG0AYCdjJ2YncgDyAAkMYQDyABMEAKAPIG8idXN0AGGgsSPjIWhlAKCxI+0haWQAoO4qAAJhYnB0fCeGJ4knmScAAW5ygCeDJ2cAAKDtJ3IAAKD+IXIA6wAcDIABYWZsAI8nkieVJ3IAAKCGKQDgNdhj3XUAcwAAoC4qaSJtZXMAAKA1KgABYXCiJ6gncgBnoCkAdAAAoJQp7yJsaW50AKASKmEAcgDyADwnAAJhY2hxuCe8J6EMwCfxIXVvAKA6IHIAAOA12MfcAAFidYAmxCdvAPKgGSCoAYABaGlyAM4n0ifWJ3IAZQDlAE0n7SFlcwCgyiJpAIChuSVlZmwAXAxjEt4n9CFyaQCgzinsInVoYXIAoGgpAKAeIWENBSgJKA0oSyhVKIYoAACLKLAoAAAAAOMo5ygAABApJCkxKW0pcSmHKaYpAACYKgAAAACxKmMidXRlAFthcQB1AO8ABR+ApHsiRWFjZWlucHN5ABwoHignKCooLygyKEEoRihJKACgtCrwASMoAAAlKACguCpvAG4AYWF1AOUAgw1koLAqaQBsAF9hcgBjAF1hgAFFYXMAOCg6KD0oAKC2KnAAAKC6KmkAbQAAoOki7yJsaW50AKATKmkA7QCIDUFkbwB0AGKixSKRFgAAAABTKACgZiqAA0FhY21zdHgAYChkKG8ocyh1KHkogihyAHIAAKDYIXIAAAFocmkoayjrAJAab6CYIfcAzAd0ADuApwCnQGkAO2D3IWFyAKApKW0AAAFpbn4ozQBuAHUA8wDOAHQAAKA2J3IA7+A12DDdIxkAAmFjb3mRKJUonSisKHIAcAAAoG8mAAFoeZkonChjAHkASWRIZHIAdABtAqUoAAAAAKgoaQDkAFsPYQByAGEA7ABsJDuArQCtQAABZ22zKLsobQBhAAChwwNmdroouijCY4CjPCJkZWdsbnByAMgozCjPKNMo1yjaKN4obwB0AACgairxoEMiCw5FoJ4qAKCgKkWgnSoAoJ8qZQAAoEYi7CF1cwCgJCrhIXJyAKByKWEAcgDyAPwMAAJhZWl07Sj8KAEpCCkAAWxz8Sj4KGwAcwBlAHQAbQDpAH8oaABwAACgMyrwImFyc2wAoOQpAAFkbFoPBSllAACgIyNloKoqc6CsKgDgrCoA/oABZmxwABUpGCkfKfQhY3lMZGKgLwBhoMQpcgAAoD8jZgAA4DXYZN1hAAABZHIoKRcDZQBzAHWgYCZpAHQAAKBgJoABY3N1ADYpRilhKQABYXU6KUApcABzoJMiAOCTIgD+cABzoJQiAOCUIgD+dQAAAWJwSylWKQChjyJlcz4NUCllAHQAZaCPIvEAPw0AoZAiZXNIDVspZQB0AGWgkCLxAEkNAKGhJWFmZilbBHIAZQFrKVwEAKChJWEAcgDyAAMNAAJjZW10dyl7KX8pgilyAADgNdjI3HQAbQDuAM4AaQDsAAYpYQByAOYAVw0AAWFyiimOKXIA5qAGJhESAAFhbpIpoylpImdodAAAAWVwmSmgKXAAcwBpAGwAbwDuANkXaADpAKAkcwCvYIACYmNtbnAArin8KY4NJSooKgCkgiJFZGVtbnByc7wpvinCKcgpzCnUKdgp3CkAoMUqbwB0AACgvSpkoIYibwB0AACgwyr1IWx0AKDBKgABRWXQKdIpAKDLKgCgiiLsIXVzAKC/KuEhcnIAoHkpgAFlaXUA4inxKfQpdAAAoYIiZW7oKewpcQDxoIYivSllAHEA8aCKItEpbQAAoMcqAAFicPgp+ikAoNUqAKDTKmMAgKJ7ImFjZW5zAAcqDSoUKhYqRihwAHAAcgBvAPgAIyh1AHIAbAB5AGUA8QCDDfEAfA2AAWFlcwAcKiIqPShwAHAAcgBvAPgAPChxAPEAOShnAACgaiYApoMiMTIzRWRlaGxtbnBzPCo/KkIqRSpHKlIqWCpjKmcqaypzKncqO4C5ALlAO4CyALJAO4CzALNAAKDGKgABb3NLKk4qdAAAoL4qdQBiAACg2CpkoIcibwB0AACgxCpzAAABb3VdKmAqbAAAoMknYgAAoNcq4SFycgCgeyn1IWx0AKDCKgABRWVvKnEqAKDMKgCgiyLsIXVzAKDAKoABZWl1AH0qjCqPKnQAAKGDImVugyqHKnEA8aCHIkYqZQBxAPGgiyJwKm0AAKDIKgABYnCTKpUqAKDUKgCg1iqAAUFhbgCdKqEqrCpyAHIAAKDZIXIAAAFocqYqqCrrAJUab6CZIfcAxQf3IWFyAKAqKWwAaQBnADuA3wDfQOELzyrZKtwq6SrsKvEqAAD1KjQrAAAAAAAAAAAAAEwrbCsAAHErvSsAAAAAAADRK3IC1CoAAAAA2CrnIWV0AKAWI8RjcgDrAOUKgAFhZXkA4SrkKucq8iFvbmVh5CFpbGNhQmRvAPQAIg5sInJlYwAAoBUjcgAA4DXYMd0AAmVpa2/7KhIrKCsuK/IBACsAAAkrZQAAATRm6g0EK28AcgDlAOsNYQBzorgDECsAAAAAEit5AG0A0WMAAWNuFislK2sAAAFhcxsrIStwAHAAcgBvAPgAFw5pAG0AAKA8InMA8AD9DQABYXMsKyEr8AAXDnIAbgA7gP4A/kDsATgrOyswG2QA5QBnAmUAcwCAgdcAO2JkAEMrRCtJK9dAYaCgInIAAKAxKgCgMCqAAWVwcwBRK1MraSvhAAkh4qKkIlsrXysAAAAAYytvAHQAAKA2I2kAcgAAoPEqb+A12GXdcgBrAACg2irhAHgociJpbWUAAKA0IIABYWlwAHYreSu3K2QA5QC+DYADYWRlbXBzdACFK6MrmiunK6wrsCuzK24iZ2xlAACitSVkbHFykCuUK5ornCvvIXduAKC/JeUhZnRloMMl8QACBwCgXCJpImdodABloLkl8QBdDG8AdAAAoOwlaSJudXMAAKA6KuwhdXMAoDkqYgAAoM0p6SFtZQCgOyrlInppdW0AoOIjgAFjaHQAwivKK80rAAFyecYrySsA4DXYydxGZGMAeQBbZPIhb2tnYQABaW/UK9creAD0ANERaCJlYWQAAAFsct4r5ytlAGYAdABhAHIAcgBvAPcAXQbpJGdodGFycm93AKCgIQAJQUhhYmNkZmdobG1vcHJzdHV3CiwNLBEsHSwnLDEsQCxLLFIsYix6LIQsjyzLLOgs7Sz/LAotcgDyAAkDYQByAACgYykAAWNyFSwbLHUAdABlADuA+gD6QPIACQ1yAOMBIywAACUseQBeZHYAZQBtYQABaXkrLDAscgBjADuA+wD7QENkgAFhYmgANyw6LD0scgDyANEO7CFhY3FhYQDyAOAOAAFpckQsSCzzIWh0AKB+KQDgNdgy3XIAYQB2AGUAO4D5APlAYQFWLF8scgAAAWxyWixcLACgvyEAoL4hbABrAACggCUAAWN0Zix2LG8CbCwAAAAAcyxyAG4AZaAcI3IAAKAcI28AcAAAoA8jcgBpAACg+CUAAWFsfiyBLGMAcgBrYTuAqACoQAABZ3CILIssbwBuAHNhZgAA4DXYZt0AA2FkaGxzdZksniynLLgsuyzFLHIAcgBvAPcACQ1vAHcAbgBhAHIAcgBvAPcA2A5hI3Jwb29uAAABbHKvLLMsZQBmAPQAWyxpAGcAaAD0AF0sdQDzAKYOaQAAocUDaGzBLMIs0mNvAG4AxWPwI2Fycm93cwCgyCGAAWNpdADRLOEs5CxvAtcsAAAAAN4scgBuAGWgHSNyAACgHSNvAHAAAKAOI24AZwBvYXIAaQAAoPklYwByAADgNdjK3IABZGlyAPMs9yz6LG8AdAAAoPAi7CFkZWlhaQBmoLUlAKC0JQABYW0DLQYtcgDyAMosbAA7gPwA/EDhIm5nbGUAoKcpgAdBQkRhY2RlZmxub3Byc3oAJy0qLTAtNC2bLZ0toS2/LcMtxy3TLdgt3C3gLfwtcgDyABADYQByAHag6CoAoOkqYQBzAOgA/gIAAW5yOC08LechcnQAoJwpgANla25wcnN0AJkpSC1NLVQtXi1iLYItYQBwAHAA4QAaHG8AdABoAGkAbgDnAKEXgAFoaXIAoSmzJFotbwBwAPQAdCVooJUh7wD4JgABaXVmLWotZwBtAOEAuygAAWJwbi14LXMjZXRuZXEAceCKIgD+AODLKgD+cyNldG5lcQBx4IsiAP4A4MwqAP4AAWhyhi2KLWUAdADhABIraSNhbmdsZQAAAWxyki2WLeUhZnQAoLIiaSJnaHQAAKCzInkAMmThIXNoAKCiIoABZWxyAKcttC24LWKiKCKuLQAAAACyLWEAcgAAoLsicQAAoFoi7CFpcACg7iIAAWJ0vC1eD2EA8gBfD3IAAOA12DPddAByAOkAlS1zAHUAAAFicM0t0C0A4IIi0iAA4IMi0iBwAGYAAOA12GfdcgBvAPAAWQt0AHIA6QCaLQABY3XkLegtcgAA4DXYy9wAAWJw7C30LW4AAAFFZXUt8S0A4IoiAP5uAAABRWV/LfktAOCLIgD+6SJnemFnAKCaKYADY2Vmb3BycwANLhAuJS4pLiMuLi40LukhcmN1YQABZGkULiEuAAFiZxguHC5hAHIAAKBfKmUAcaAnIgCgWSLlIXJwAKAYIXIAAOA12DTdcABmAADgNdho3WWgQCJhAHQA6ABqD2MAcgAA4DXYzNzjCuQRUC4AAFQuAABYLmIuAAAAAGMubS5wLnQuAAAAAIguki4AAJouJxIqEnQAcgDpAB0ScgAA4DXYNd0AAUFhWy5eLnIA8gDnAnIA8gCTB75jAAFBYWYuaS5yAPIA4AJyAPIAjAdhAPAAeh5pAHMAAKD7IoABZHB0APgReS6DLgABZmx9LoAuAOA12GnddQDzAP8RaQBtAOUABBIAAUFhiy6OLnIA8gDuAnIA8gCaBwABY3GVLgoScgAA4DXYzdwAAXB0nS6hLmwAdQDzACUScgDpACASAARhY2VmaW9zdbEuvC7ELsguzC7PLtQu2S5jAAABdXm2LrsudABlADuA/QD9QE9kAAFpecAuwy5yAGMAd2FLZG4AO4ClAKVAcgAA4DXYNt1jAHkAV2RwAGYAAOA12GrdYwByAADgNdjO3AABY23dLt8ueQBOZGwAO4D/AP9AAAVhY2RlZmhpb3N38y73Lv8uAi8MLxAvEy8YLx0vIi9jInV0ZQB6YQABYXn7Lv4u8iFvbn5hN2RvAHQAfGEAAWV0Bi8KL3QAcgDmAB8QYQC2Y3IAAOA12DfdYwB5ADZk5yJyYXJyAKDdIXAAZgAA4DXYa91jAHIAAOA12M/cAAFqbiYvKC8AoA0gagAAoAwg");function D(e){return e>=h.ZERO&&e<=h.NINE}(o=u||(u={}))[o.VALUE_LENGTH=49152]="VALUE_LENGTH",o[o.FLAG13=8192]="FLAG13",o[o.BRANCH_LENGTH=8064]="BRANCH_LENGTH",o[o.JUMP_TABLE=127]="JUMP_TABLE",(s=h||(h={}))[s.NUM=35]="NUM",s[s.SEMI=59]="SEMI",s[s.EQUALS=61]="EQUALS",s[s.ZERO=48]="ZERO",s[s.NINE=57]="NINE",s[s.LOWER_A=97]="LOWER_A",s[s.LOWER_F=102]="LOWER_F",s[s.LOWER_X=120]="LOWER_X",s[s.LOWER_Z=122]="LOWER_Z",s[s.UPPER_A=65]="UPPER_A",s[s.UPPER_F=70]="UPPER_F",s[s.UPPER_Z=90]="UPPER_Z",(l=p||(p={}))[l.EntityStart=0]="EntityStart",l[l.NumericStart=1]="NumericStart",l[l.NumericDecimal=2]="NumericDecimal",l[l.NumericHex=3]="NumericHex",l[l.NamedEntity=4]="NamedEntity",(c=d||(d={}))[c.Legacy=0]="Legacy",c[c.Strict=1]="Strict",c[c.Attribute=2]="Attribute";class Q{decodeTree;emitCodePoint;errors;constructor(e,t,r){this.decodeTree=e,this.emitCodePoint=t,this.errors=r}state=p.EntityStart;consumed=1;result=0;treeIndex=0;excess=1;decodeMode=d.Strict;runConsumed=0;startEntity(e){this.decodeMode=e,this.state=p.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1,this.runConsumed=0}write(e,t){switch(this.state){case p.EntityStart:if(e.charCodeAt(t)===h.NUM)return this.state=p.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1);return this.state=p.NamedEntity,this.stateNamedEntity(e,t);case p.NumericStart:return this.stateNumericStart(e,t);case p.NumericDecimal:return this.stateNumericDecimal(e,t);case p.NumericHex:return this.stateNumericHex(e,t);case p.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(32|e.charCodeAt(t))===h.LOWER_X?(this.state=p.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=p.NumericDecimal,this.stateNumericDecimal(e,t))}stateNumericHex(e,t){for(;t<e.length;){var r;let n=e.charCodeAt(t);if(!D(n)&&(!((r=n)>=h.UPPER_A)||!(r<=h.UPPER_F))&&(!(r>=h.LOWER_A)||!(r<=h.LOWER_F)))return this.emitNumericEntity(n,3);{let e=n<=h.NINE?n-h.ZERO:(32|n)-h.LOWER_A+10;this.result=16*this.result+e,this.consumed++,t++}}return -1}stateNumericDecimal(e,t){for(;t<e.length;){let r=e.charCodeAt(t);if(!D(r))return this.emitNumericEntity(r,2);this.result=10*this.result+(r-h.ZERO),this.consumed++,t++}return -1}emitNumericEntity(e,t){var r;if(this.consumed<=t)return this.errors?.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===h.SEMI)this.consumed+=1;else if(this.decodeMode===d.Strict)return 0;return this.emitCodePoint((r=this.result)>=55296&&r<=57343||r>1114111?65533:E.get(r)??r,this.consumed),this.errors&&(e!==h.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){let{decodeTree:r}=this,n=r[this.treeIndex],i=(n&u.VALUE_LENGTH)>>14;for(;t<e.length;){if(0===i&&(n&u.FLAG13)!=0){let a=(n&u.BRANCH_LENGTH)>>7;if(0===this.runConsumed){let r=n&u.JUMP_TABLE;if(e.charCodeAt(t)!==r)return 0===this.result?0:this.emitNotTerminatedNamedEntity();t++,this.excess++,this.runConsumed++}for(;this.runConsumed<a;){if(t>=e.length)return -1;let n=this.runConsumed-1,i=r[this.treeIndex+1+(n>>1)],a=n%2==0?255&i:i>>8&255;if(e.charCodeAt(t)!==a)return this.runConsumed=0,0===this.result?0:this.emitNotTerminatedNamedEntity();t++,this.excess++,this.runConsumed++}this.runConsumed=0,this.treeIndex+=1+(a>>1),i=((n=r[this.treeIndex])&u.VALUE_LENGTH)>>14}if(t>=e.length)break;let a=e.charCodeAt(t);if(a===h.SEMI&&0!==i&&(n&u.FLAG13)!=0)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);if(this.treeIndex=function(e,t,r,n){let i=(t&u.BRANCH_LENGTH)>>7,a=t&u.JUMP_TABLE;if(0===i)return 0!==a&&n===a?r:-1;if(a){let t=n-a;return t<0||t>=i?-1:e[r+t]-1}let o=i+1>>1,s=0,l=i-1;for(;s<=l;){let t=s+l>>>1,i=e[r+(t>>1)]>>(1&t)*8&255;if(i<n)s=t+1;else{if(!(i>n))return e[r+o+t];l=t-1}}return -1}(r,n,this.treeIndex+Math.max(1,i),a),this.treeIndex<0)return 0===this.result||this.decodeMode===d.Attribute&&(0===i||function(e){var t;return e===h.EQUALS||(t=e)>=h.UPPER_A&&t<=h.UPPER_Z||t>=h.LOWER_A&&t<=h.LOWER_Z||D(t)}(a))?0:this.emitNotTerminatedNamedEntity();if(0!=(i=((n=r[this.treeIndex])&u.VALUE_LENGTH)>>14)){if(a===h.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==d.Strict&&(n&u.FLAG13)==0&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}t++,this.excess++}return -1}emitNotTerminatedNamedEntity(){let{result:e,decodeTree:t}=this,r=(t[e]&u.VALUE_LENGTH)>>14;return this.emitNamedEntityData(e,r,this.consumed),this.errors?.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,r){let{decodeTree:n}=this;return this.emitCodePoint(1===t?n[e]&~(u.VALUE_LENGTH|u.FLAG13):n[e+1],r),3===t&&this.emitCodePoint(n[e+2],r),r}end(){switch(this.state){case p.NamedEntity:return 0!==this.result&&(this.decodeMode!==d.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case p.NumericDecimal:return this.emitNumericEntity(0,2);case p.NumericHex:return this.emitNumericEntity(0,3);case p.NumericStart:return this.errors?.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case p.EntityStart:return 0}}}let $=(n="",i=new Q(Y,e=>n+=String.fromCodePoint(e)),function(e,t){let r=0,a=0;for(;(a=e.indexOf("&",a))>=0;){n+=e.slice(r,a),i.startEntity(t);let o=i.write(e,a+1);if(o<0){r=a+i.end();break}r=a+o,a=0===o?r+1:r}let o=n+e.slice(r);return n="",o});function B(e){return $(e,d.Strict)}var Z=class{src_Any=k.source;src_Cc=F.source;src_Z=V.source;src_P=U.source;src_ZPCc=[this.src_Z,this.src_P,this.src_Cc].join("|");src_ZCc=[this.src_Z,this.src_Cc].join("|");cache={};opts={maxLength:1e4,urlAuth:!1,schema_names:[]};constructor(e={}){this.opts={...this.opts,...e}}set(e={}){return this.opts={...this.opts,...e},this.cache={},this}escapeRE(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}nestedPairRE(e,t,r=4){let n=this.escapeRE(e),i=this.escapeRE(t),a=`(?:(?!${this.src_ZCc}|${n}|${i}).)`,o=`${n}${a}{0,1000}${i}`;for(let e=2;e<=r;e++)o=`${n}(?:${a}|${o}){0,1000}${i}`;return o}get_text_separators(){return this.cache.text_separators??=/[><\uff5c]/}get_pseudo_letter(){return this.cache.src_pseudo_letter??=RegExp(`(?:(?!${this.get_text_separators().source}|${this.src_ZPCc})${this.src_Any})`)}get_ipv4_addr(){return this.cache.src_ip4??=RegExp("(?:(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])[.]){3}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])")}get_ipv6_addr(){let e="[0-9A-Fa-f]{1,4}",t=`(?:(?:${e}:${e})|${this.get_ipv4_addr().source})`;return this.cache.src_ip6_addr??=RegExp(`(?:(?:${e}:){6}${t}|::(?:${e}:){5}${t}|(?:${e})?::(?:${e}:){4}${t}|(?:(?:${e}:){0,1}${e})?::(?:${e}:){3}${t}|(?:(?:${e}:){0,2}${e})?::(?:${e}:){2}${t}|(?:(?:${e}:){0,3}${e})?::${e}:${t}|(?:(?:${e}:){0,4}${e})?::${t}|(?:(?:${e}:){0,5}${e})?::${e}|(?:(?:${e}:){0,6}${e})?::)`)}get_ipv6_url_host(){return this.cache.src_ip6_host??=RegExp(`\\[${this.get_ipv6_addr().source}\\]`)}get_ipv6_mail_host(){return this.cache.src_ipv6_mail_host??=RegExp(`\\[IPv6:${this.get_ipv6_addr().source}\\]`)}get_auth(){return this.cache.src_auth??=RegExp(`(?:(?:(?!${this.src_ZCc}|[@/\\[\\]()]).){1,50}@)?`)}get_port(){return this.cache.src_port??=RegExp("(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?")}get_host_terminator(){return this.cache.src_host_terminator??=RegExp(`(?=$|${this.get_text_separators().source}|${this.src_ZPCc})(?!${this.opts["---"]?"-(?!--)|":"-|"}_|:\\d|\\.-|\\.(?!$|${this.src_ZPCc}))`)}get_path_terminator(){return this.cache.src_path_terminator??=RegExp(`${this.src_ZPCc}|${this.get_text_separators().source}`)}get_path(){return this.cache.src_path??=RegExp(`(?:[/?#](?:${this.nestedPairRE("[","]")}|${this.nestedPairRE("(",")")}|${this.nestedPairRE("{","}")}|\\"(?:(?!${this.src_ZCc}|["]).){1,100}\\"|\\'(?:(?!${this.src_ZCc}|[']).){1,100}\\'|\\'(?=${this.get_pseudo_letter().source}|[-])|\\.{2,20}[:]?[a-zA-Z0-9%/&]|\\.(?!${this.src_ZCc}|[.]|$)|`+(this.opts["---"]?"\\-(?!--(?:[^-]|$))(?:-{0,19})|":"\\-{1,20}|")+`,(?!${this.src_ZCc}|$)|;(?!${this.src_ZCc}|$)|\\!{1,20}(?!${this.src_ZCc}|[!]|$)|\\?(?!${this.src_ZCc}|[?]|$)|`+this.get_path_extra().source+`[\\\\/:%@#&=_~*]|(?!${this.get_path_terminator().source}).){1,${this.opts.maxLength}}|\\/)?`)}get_mail_name(){return this.cache.src_mail_name??=RegExp("[-!#$%&'*+/=?^_`{|}~a-zA-Z0-9](?:[-!#$%&'*+/=?^_`{|}~a-zA-Z0-9]|[.](?=[-!#$%&'*+/=?^_`{|}~a-zA-Z0-9])){0,63}")}get_xn(){return this.cache.src_xn??=RegExp("xn--[a-z0-9\\-]{1,59}")}get_tld(){if(this.cache.tld)return this.cache.tld;let e=[...new Set(this.opts.tlds||[])].sort().reverse().join("|");return this.cache.tld=RegExp(`${e||"$#none#$"}|${this.get_xn().source}`),this.cache.tld}get_domain_root(){return this.cache.src_domain_root??=RegExp("(?:"+this.get_xn().source+`|${this.get_pseudo_letter().source}{1,63})`)}get_domain(){return this.cache.src_domain??=RegExp("(?:"+this.get_xn().source+`|(?:${this.get_pseudo_letter().source})|(?:${this.get_pseudo_letter().source}(?:-|${this.get_pseudo_letter().source}){0,61}${this.get_pseudo_letter().source}))`)}get_url_host_port(){return this.cache.url_host_port??=RegExp("(?:"+this.get_ipv6_url_host().source+`|(?:(?:(?:${this.get_domain().source})\\.){0,10}${this.get_domain().source}))`+this.get_port().source+this.get_host_terminator().source)}get_fuzzy_url_host_port(){return this.cache.fuzzy_url_host_port??=RegExp("(?:"+(this.opts.fuzzyIP?this.get_ipv4_addr().source+"|":"")+`(?:(?:(?:${this.get_domain().source})\\.){1,10}(?:${this.get_tld().source})))`+this.get_host_terminator().source)}get_mail_host(){return this.cache.src_mail_host??=RegExp("(?:"+this.get_ipv6_mail_host().source+`|(?:(?:(?:${this.get_domain().source})\\.){0,4}${this.get_domain().source}))`+this.get_host_terminator().source)}get_fuzzy_mail_host(){return this.cache.src_fuzzy_mail_host??=RegExp("(?:"+this.get_ipv6_mail_host().source+`|(?:(?:(?:${this.get_domain().source})[.]){1,4}${this.get_domain_root().source}))`+this.get_host_terminator().source)}get_path_extra(){return this.cache.src_path_extra??=RegExp("")}get_fuzzy_mail_host_search(){return this.cache.mail_fuzzy_host_search??=RegExp(`@${this.get_fuzzy_mail_host().source}`,"ig")}get_fuzzy_link_search(){return this.cache.link_fuzzy_search??=RegExp(`(^|(?![.:/\\-_@])(?:[$+<=>^\`|\uff5c]|${this.src_ZPCc}))(?:(?![$+<=>^\`|\uff5c])${this.get_fuzzy_url_host_port().source}${this.get_path().source})`,"ig")}get_http_validator(){return this.cache.http_validator??=RegExp("\\/\\/"+(this.opts.urlAuth?this.get_auth().source:"")+this.get_url_host_port().source+this.get_path().source,"iy")}get_relative_proto_validator(){return this.cache.relative_proto_validator??=RegExp((this.opts.urlAuth?this.get_auth().source:"")+`(?:localhost|${this.get_ipv6_url_host().source}|(?:(?:${this.get_domain().source})[.]){1,10}${this.get_domain_root().source})`+this.get_port().source+this.get_host_terminator().source+this.get_path().source,"iy")}get_mail_name_validator(){return this.cache.mail_name_validator??=RegExp(`(?:^|${this.get_text_separators().source}|"|\\(|${this.src_ZCc})(${this.get_mail_name().source})$`)}get_mailto_validator(){return this.cache.mailto_validator??=RegExp(`${this.get_mail_name().source}@${this.get_mail_host().source}`,"iy")}get_schema_names(){return this.cache.schema_names??=new RegExp((this.opts.schema_names||[]).map(e=>this.escapeRE(e)).join("|"))}get_schema_search(){return this.cache.schema_search??=RegExp(`(^|(?!_)(?:[><\uff5c]|${this.src_ZPCc}))(${this.get_schema_names().source})`,"ig")}get_schema_at_start(){return this.cache.schema_at_start??=RegExp(`^${this.get_schema_search().source}`,"i")}},K={validate:(e,t,r)=>{let n=r.re.get_http_validator();n.lastIndex=t;let i=n.exec(e);return i?i[0].length:0},normalize:(e,t)=>t.normalize(e)},G={"http:":K,"https:":K,"ftp:":K,"//":{validate:function(e,t,r){let n=r.re.get_relative_proto_validator();n.lastIndex=t;let i=n.exec(e);return i?t>=3&&":"===e[t-3]||t>=3&&"/"===e[t-3]?0:i[0].length:0},normalize:(e,t)=>t.normalize(e)},"mailto:":{validate:function(e,t,r){let n=r.re.get_mailto_validator();n.lastIndex=t;let i=n.exec(e);return i?i[0].length:0},normalize:(e,t)=>t.normalize(e)}},H={fuzzyLink:!1,fuzzyEmail:!0,fuzzyIP:!1,"---":!1,tlds:(a="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|"),"a:cdefgilmnoqrstuwxz|b:abdefghijmnorstvwyz|c:acdfghiklmnoruvwxyz|d:ejkmoz|e:cegrstu|f:ijkmor|g:abdefghilmnpqrstuwy|h:kmnrtu|i:delmnoqrst|j:emop|k:eghimnprwyz|l:abcikrstuvy|m:acdeghklmnopqrstuvwxyz|n:acefgilopruz|o:m|p:aefghklmnrstwy|q:a|r:eosuw|s:abcdeghijklmnortuvxyz|t:cdfghjklmnortvwz|u:agksyz|v:aceginu|w:fs|y:et|z:amw".split("|").forEach(e=>{let t=e.indexOf(":"),r=e.slice(0,t);for(let n of e.slice(t+1))a.push(r+n)}),a),urlAuth:!1,maxLength:1e4},z=class{schema;index;lastIndex;raw;text;url;constructor(e,t,r,n){let i=e.slice(r,n);this.schema=t.toLowerCase(),this.index=r,this.lastIndex=n,this.raw=i,this.text=i,this.url=i}},J=class{__opts__;__schemas__;re;constructor(e={}){let{rebuilder:t,...r}=e;this.__opts__={...H,...r},this.__schemas__={...G},this.re=t||new Z,this.re.set({...this.__opts__,schema_names:Object.keys(this.__schemas__)})}add(e,t=null){if(t){let r={normalize:(e,t)=>t.normalize(e),...t};this.__schemas__[e]=r}else delete this.__schemas__[e];return this.re.set({...this.__opts__,schema_names:Object.keys(this.__schemas__)}),this}set(e={}){return this.__opts__={...this.__opts__,...e},this.re.set({...this.__opts__,schema_names:Object.keys(this.__schemas__)}),this}test(e){let t,r;if(!e.length)return!1;for((r=this.re.get_schema_search()).lastIndex=0;null!==(t=r.exec(e));)if(this.testSchemaAt(e,t[2],r.lastIndex))return!0;if(this.__opts__.fuzzyLink&&this.__schemas__["http:"]&&((r=this.re.get_fuzzy_link_search()).lastIndex=0,null!==r.exec(e)))return!0;if(this.__opts__.fuzzyEmail&&this.__schemas__["mailto:"]&&e.indexOf("@")>=0){let r=this.re.get_fuzzy_mail_host_search(),n=this.re.get_mail_name_validator();for(r.lastIndex=0;null!==(t=r.exec(e));){let r=e.slice(Math.max(0,t.index-65),t.index);if(n.test(r))return!0}}return!1}testSchemaAt(e,t,r){return this.__schemas__[t.toLowerCase()]?this.__schemas__[t.toLowerCase()].validate(e.slice(0,r+this.__opts__.maxLength),r,this):0}match(e){let t,r,n,i,a,o,s=[],l=this.re.get_schema_search(),c=!1,u=!1,h=!1,p=0;if(!e.length)return null;for(l.lastIndex=0,this.__opts__.fuzzyLink&&this.__schemas__["http:"]&&((t=this.re.get_fuzzy_link_search()).lastIndex=0),this.__opts__.fuzzyEmail&&this.__schemas__["mailto:"]&&((r=this.re.get_fuzzy_mail_host_search()).lastIndex=0,n=this.re.get_mail_name_validator());;){let d,f=Math.max(p-1,0);if(r&&n&&!h&&(!a||a.index<p))for(r.lastIndex<f&&(r.lastIndex=f);;){let t=r.exec(e);if(!t){h=!0,a=void 0;break}let i=n.exec(e.slice(Math.max(0,t.index-65),t.index));if(i){if((a={schema:"mailto:",index:t.index-i[1].length,lastIndex:t.index+t[0].length}).index>=p)break;r.lastIndex<f&&(r.lastIndex=f)}}if(t&&!u&&(!i||i.index<p))for(t.lastIndex<f&&(t.lastIndex=f);;){let r=t.exec(e);if(!r){u=!0,i=void 0;break}if((i={schema:"",index:r.index+r[1].length,lastIndex:r.index+r[0].length}).index>=p)break;t.lastIndex<f&&(t.lastIndex=f)}let m=a;if((!m||i&&(i.index<m.index||i.index===m.index&&i.lastIndex>m.lastIndex))&&(m=i),!c)for(;;){if(!o){l.lastIndex<f&&(l.lastIndex=f);let t=l.exec(e);if(!t){c=!0;break}o={schema:t[2],index:t.index+t[1].length,lastIndex:t.index+t[0].length}}if(o.index<p){o=void 0;continue}if(m&&o.index>m.index)break;let t=o;o=void 0;let r=this.testSchemaAt(e,t.schema,t.lastIndex);if(r){d={schema:t.schema,index:t.index,lastIndex:t.lastIndex+r};break}}let g=d;if((!g||a&&(a.index<g.index||a.index===g.index&&a.lastIndex>g.lastIndex))&&(g=a),(!g||i&&(i.index<g.index||i.index===g.index&&i.lastIndex>g.lastIndex))&&(g=i),!g)break;g===a?a=void 0:g===i&&(i=void 0);let A=new z(e,g.schema,g.index,g.lastIndex);A.schema?this.__schemas__[A.schema].normalize(A,this):this.normalize(A),s.push(A),p=g.lastIndex}return s.length?s:null}matchAtStart(e){if(!e.length)return null;let t=this.re.get_schema_at_start().exec(e);if(!t)return null;let r=this.testSchemaAt(e,t[2],t[0].length);if(!r)return null;let n=new z(e,t[2],t.index+t[1].length,t.index+t[0].length+r);return this.__schemas__[n.schema].normalize(n,this),n}tlds(e,t=!1){return e=Array.isArray(e)?e:[e],t?this.__opts__.tlds=this.__opts__.tlds.concat(e):this.__opts__.tlds=e,this.re.set({...this.__opts__,schema_names:Object.keys(this.__schemas__)}),this}normalize(e){e.schema||(e.url=`http://${e.url}`),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url=`mailto:${e.url}`)}};let j=/^xn--/,q=/[^\0-\x7F]/,ee=/[\x2E\u3002\uFF0E\uFF61]/g,et={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},er=Math.floor,en=String.fromCharCode;function ei(e){throw RangeError(et[e])}function ea(e,t){let r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+(function(e,t){let r=[],n=e.length;for(;n--;)r[n]=t(e[n]);return r})((e=e.replace(ee,".")).split("."),t).join(".")}let eo=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},es=function(e,t,r){let n=0;for(e=r?er(e/700):e>>1,e+=er(e/t);e>455;n+=36)e=er(e/35);return er(n+36*e/(e+38))},el=function(e){let t=[],r=e.length,n=0,i=128,a=72,o=e.lastIndexOf("-");o<0&&(o=0);for(let r=0;r<o;++r)e.charCodeAt(r)>=128&&ei("not-basic"),t.push(e.charCodeAt(r));for(let l=o>0?o+1:0;l<r;){let o=n;for(let t=1,i=36;;i+=36){var s;l>=r&&ei("invalid-input");let o=(s=e.charCodeAt(l++))>=48&&s<58?26+(s-48):s>=65&&s<91?s-65:s>=97&&s<123?s-97:36;o>=36&&ei("invalid-input"),o>er((0x7fffffff-n)/t)&&ei("overflow"),n+=o*t;let c=i<=a?1:i>=a+26?26:i-a;if(o<c)break;let u=36-c;t>er(0x7fffffff/u)&&ei("overflow"),t*=u}let c=t.length+1;a=es(n-o,c,0==o),er(n/c)>0x7fffffff-i&&ei("overflow"),i+=er(n/c),n%=c,t.splice(n++,0,i)}return String.fromCodePoint(...t)},ec=function(e){let t=[],r=(e=function(e){let t=[],r=0,n=e.length;for(;r<n;){let i=e.charCodeAt(r++);if(i>=55296&&i<=56319&&r<n){let n=e.charCodeAt(r++);(64512&n)==56320?t.push(((1023&i)<<10)+(1023&n)+65536):(t.push(i),r--)}else t.push(i)}return t}(e)).length,n=128,i=0,a=72;for(let r of e)r<128&&t.push(en(r));let o=t.length,s=o;for(o&&t.push("-");s<r;){let r=0x7fffffff;for(let t of e)t>=n&&t<r&&(r=t);let l=s+1;for(let c of(r-n>er((0x7fffffff-i)/l)&&ei("overflow"),i+=(r-n)*l,n=r,e))if(c<n&&++i>0x7fffffff&&ei("overflow"),c===n){let e=i;for(let r=36;;r+=36){let n=r<=a?1:r>=a+26?26:r-a;if(e<n)break;let i=e-n,o=36-n;t.push(en(eo(n+i%o,0))),e=er(i/o)}t.push(en(eo(e,0))),a=es(i,l,s===o),i=0,++s}++i,++n}return t.join("")};var eu=Object.defineProperty,eh=(e,t)=>{let r={};for(var n in e)eu(r,n,{get:e[n],enumerable:!0});return t||eu(r,Symbol.toStringTag,{value:"Module"}),r},ep=eh({arrayReplaceAt:()=>ef,asciiTrim:()=>eX,callable:()=>ed,escapeHtml:()=>eO,escapeRE:()=>eN,fromCodePoint:()=>eg,isMdAsciiPunct:()=>eI,isPunctChar:()=>eP,isPunctCharCode:()=>eC,isSpace:()=>e_,isValidEntityCode:()=>em,isWhiteSpace:()=>eT,lib:()=>eU,normalizeReference:()=>ek,unescapeAll:()=>eb,unescapeMd:()=>eR});function ed(e){let t=function(...r){return Reflect.construct(e,r,new.target&&new.target!==t?new.target:e)};return Object.defineProperty(t,"name",{value:e.name}),Object.setPrototypeOf(t,e),t.prototype=e.prototype,t}function ef(e,t,r){return[].concat(e.slice(0,t),r,e.slice(t+1))}function em(e){return(!(e>=55296)||!(e<=57343))&&(!(e>=64976)||!(e<=65007))&&(65535&e)!=65535&&(65535&e)!=65534&&(!(e>=0)||!(e<=8))&&11!==e&&(!(e>=14)||!(e<=31))&&(!(e>=127)||!(e<=159))&&!(e>1114111)&&!0}function eg(e){return e>65535?String.fromCharCode(55296+((e-=65536)>>10),56320+(1023&e)):String.fromCharCode(e)}var eA=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,ey=RegExp(`${eA.source}|${/&([a-z#][a-z0-9]{1,31});/gi.source}`,"gi"),ev=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function eR(e){return 0>e.indexOf("\\")?e:e.replace(eA,"$1")}function eb(e){return 0>e.indexOf("\\")&&0>e.indexOf("&")?e:e.replace(ey,function(e,t,r){if(t)return t;if(35===r.charCodeAt(0)&&ev.test(r)){let t="x"===r[1].toLowerCase()?parseInt(r.slice(2),16):parseInt(r.slice(1),10);return em(t)?eg(t):e}let n=B(e);return n!==e?n:e})}var ex=/[&<>"]/,eM=/[&<>"]/g,eS={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function ew(e){return eS[e]}function eO(e){return ex.test(e)?e.replace(eM,ew):e}var eL=/[.?*+^$[\]\\(){}|-]/g;function eN(e){return e.replace(eL,"\\$&")}function e_(e){switch(e){case 9:case 32:return!0}return!1}function eT(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function eP(e){return U.test(e)||W.test(e)}function eC(e){return eP(eg(e))}function eI(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function ek(e){return(e=e.trim().replace(/\s+/g," ")).toLowerCase().toUpperCase()}function eF(e){return 32===e||9===e||10===e||13===e}function eX(e){let t=0;for(;t<e.length&&eF(e.charCodeAt(t));t++);let r=e.length-1;for(;r>=t&&eF(e.charCodeAt(r));r--);return e.slice(t,r+1)}var eU={mdurl:f,ucmicro:m};function eW(e,t,r){let n,i,a,o,s=e.posMax,l=e.pos;for(e.pos=t+1,n=1;e.pos<s;){if(93===(a=e.src.charCodeAt(e.pos))&&0==--n){i=!0;break}if(o=e.pos,e.md.inline.skipToken(e),91===a){if(o===e.pos-1)n++;else if(r)return e.pos=l,-1}}let c=-1;return i&&(c=e.pos),e.pos=l,c}function eV(e,t,r){let n,i=t,a={ok:!1,pos:0,str:""};if(60===e.charCodeAt(i)){for(i++;i<r&&10!==(n=e.charCodeAt(i))&&60!==n;){if(62===n){a.pos=i+1,a.str=eb(e.slice(t+1,i)),a.ok=!0;break}if(92===n&&i+1<r){i+=2;continue}i++}return a}let o=0;for(;i<r&&32!==(n=e.charCodeAt(i))&&!(n<32)&&127!==n;){if(92===n&&i+1<r){if(32===e.charCodeAt(i+1)){i++;continue}i+=2;continue}if(40===n&&++o>32)return a;if(41===n){if(0===o)break;o--}i++}return t===i||0!==o||(a.str=eb(e.slice(t,i)),a.pos=i,a.ok=!0),a}function eE(e,t,r,n){let i,a=t,o={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(n)o.str=n.str,o.marker=n.marker;else{if(a>=r)return o;let n=e.charCodeAt(a);if(34!==n&&39!==n&&40!==n)return o;t++,a++,40===n&&(n=41),o.marker=n}for(;a<r;){if((i=e.charCodeAt(a))===o.marker)return o.pos=a+1,o.str+=eb(e.slice(t,a)),o.ok=!0,o;if(40===i&&41===o.marker)return o;92===i&&a+1<r&&a++,a++}return o.can_continue=!0,o.str+=eb(e.slice(t,a)),o}var eY=eh({parseLinkDestination:()=>eV,parseLinkLabel:()=>eW,parseLinkTitle:()=>eE});function eD(e){return(eD="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function eQ(e,t,r){var n;return(n=function(e,t){if("object"!=eD(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=eD(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==eD(n)?n:n+"")in e)?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var e$=class{constructor(e,t,r){eQ(this,"map",null),eQ(this,"level",0),eQ(this,"children",null),eQ(this,"content",""),eQ(this,"markup",""),eQ(this,"info",""),eQ(this,"block",!1),eQ(this,"hidden",!1),this.type=e,this.tag=t,this.attrs=null,this.nesting=r,this.meta=null}attrIndex(e){if(!this.attrs)return -1;let t=this.attrs;for(let r=0,n=t.length;r<n;r++)if(t[r][0]===e)return r;return -1}attrPush(e){this.attrs?this.attrs.push(e):this.attrs=[e]}attrSet(e,t){let r=this.attrIndex(e),n=[e,t];r<0?this.attrPush(n):this.attrs[r]=n}attrGet(e){let t=this.attrIndex(e),r=null;return t>=0&&(r=this.attrs[t][1]),r}attrJoin(e,t){let r=this.attrIndex(e);r<0?this.attrPush([e,t]):this.attrs[r][1]=`${this.attrs[r][1]} ${t}`}},eB=class{constructor(){eQ(this,"__rules__",[]),eQ(this,"__cache__",null)}__find__(e){for(let t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return -1}__compile__(){let e=new Set;this.__rules__.forEach(t=>{t.enabled&&t.alt.forEach(t=>{t&&e.add(t)})}),this.__cache__=Object.create(null),this.__cache__[""]=[],this.__rules__.forEach(e=>{e.enabled&&this.__cache__[""].push(e.fn)}),e.forEach(e=>{this.__cache__[e]=[],this.__rules__.forEach(t=>{t.enabled&&t.alt.indexOf(e)>=0&&this.__cache__[e].push(t.fn)})})}at(e,t,r={}){let n=this.__find__(e);if(-1===n)throw Error(`Parser rule not found: ${e}`);this.__rules__[n].fn=t,this.__rules__[n].alt=r.alt||[],this.__cache__=null}before(e,t,r,n={}){let i=this.__find__(e);if(-1===i)throw Error(`Parser rule not found: ${e}`);this.__rules__.splice(i,0,{name:t,enabled:!0,fn:r,alt:n.alt||[]}),this.__cache__=null}after(e,t,r,n={}){let i=this.__find__(e);if(-1===i)throw Error(`Parser rule not found: ${e}`);this.__rules__.splice(i+1,0,{name:t,enabled:!0,fn:r,alt:n.alt||[]}),this.__cache__=null}push(e,t,r={}){this.__rules__.push({name:e,enabled:!0,fn:t,alt:r.alt||[]}),this.__cache__=null}enable(e,t=!1){Array.isArray(e)||(e=[e]);let r=[];return e.forEach(e=>{let n=this.__find__(e);if(n<0){if(t)return;throw Error(`Rules manager: invalid rule name ${e}`)}this.__rules__[n].enabled=!0,r.push(e)}),this.__cache__=null,r}enableOnly(e,t=!1){Array.isArray(e)||(e=[e]),this.__rules__.forEach(e=>{e.enabled=!1}),this.enable(e,t)}disable(e,t=!1){Array.isArray(e)||(e=[e]);let r=[];return e.forEach(e=>{let n=this.__find__(e);if(n<0){if(t)return;throw Error(`Rules manager: invalid rule name ${e}`)}this.__rules__[n].enabled=!1,r.push(e)}),this.__cache__=null,r}getRules(e){return this.__cache__||this.__compile__(),this.__cache__[e]||[]}},eZ={};eZ.code_inline=function(e,t,r,n,i){let a=e[t];return`<code${i.renderAttrs(a)}>${eO(a.content)}</code>`},eZ.code_block=function(e,t,r,n,i){let a=e[t];return`<pre${i.renderAttrs(a)}><code>${eO(e[t].content)}</code></pre>
152
152
  `},eZ.fence=function(e,t,r,n,i){let a,o=e[t],s=o.info?eb(o.info).trim():"",l="",c="";if(s){let e=s.split(/(\s+)/g);l=e[0],c=e.slice(2).join("")}if(0===(a=r.highlight&&r.highlight(o.content,l,c)||eO(o.content)).indexOf("<pre"))return a+"\n";if(s){let e=o.attrIndex("class"),t=o.attrs?o.attrs.slice():[];return e<0?t.push(["class",`${r.langPrefix}${l}`]):(t[e]=[t[e][0],t[e][1]],t[e][1]+=` ${r.langPrefix}${l}`),`<pre><code${i.renderAttrs({attrs:t})}>${a}</code></pre>
153
153
  `}return`<pre><code${i.renderAttrs(o)}>${a}</code></pre>
154
- `},eZ.image=function(e,t,r,n,i){let a=e[t];return a.attrs[a.attrIndex("alt")][1]=i.renderInlineAsText(a.children,r,n),i.renderToken(e,t,r)},eZ.hardbreak=function(e,t,r){return r.xhtmlOut?"<br />\n":"<br>\n"},eZ.softbreak=function(e,t,r){return r.breaks?r.xhtmlOut?"<br />\n":"<br>\n":"\n"},eZ.text=function(e,t){return eO(e[t].content)},eZ.html_block=function(e,t){return e[t].content},eZ.html_inline=function(e,t){return e[t].content};var eK=class{constructor(){eQ(this,"rules",Object.assign({},eZ))}renderAttrs(e){let t,r,n;if(!e.attrs)return"";for(t=0,n="",r=e.attrs.length;t<r;t++)n+=` ${eO(e.attrs[t][0])}="${eO(String(e.attrs[t][1]))}"`;return n}renderToken(e,t,r){let n=e[t],i="";if(n.hidden)return"";let a=t-1;for(;a>=0&&e[a].hidden&&0===e[a].nesting;)a--;n.block&&-1!==n.nesting&&a>=0&&e[a].hidden&&-1===e[a].nesting&&(i+="\n"),i+=(-1===n.nesting?"</":"<")+n.tag,i+=this.renderAttrs(n),0===n.nesting&&r.xhtmlOut&&(i+=" /");let o=!1;if(n.block&&(o=!0,1===n.nesting)){let r=t+1;for(;r<e.length&&e[r].hidden&&0===e[r].nesting;)r++;if(r<e.length){let t=e[r];"inline"===t.type||t.hidden?o=!1:-1===t.nesting&&t.tag===n.tag&&(o=!1)}}return i+(o?">\n":">")}renderInline(e,t,r){let n="",i=this.rules;for(let a=0,o=e.length;a<o;a++){let o=e[a].type;void 0!==i[o]?n+=i[o](e,a,t,r,this):n+=this.renderToken(e,a,t)}return n}renderInlineAsText(e,t,r){let n="";for(let i=0,a=e.length;i<a;i++)switch(e[i].type){case"text":case"code_inline":case"html_inline":case"html_block":n+=e[i].content;break;case"image":n+=this.renderInlineAsText(e[i].children,t,r);break;case"softbreak":case"hardbreak":n+="\n"}return n}render(e,t,r){let n="",i=this.rules;for(let a=0,o=e.length;a<o;a++){let o=e[a].type;"inline"===o?n+=this.renderInline(e[a].children,t,r):void 0!==i[o]?n+=i[o](e,a,t,r,this):n+=this.renderToken(e,a,t)}return n}},eG=class{constructor(e,t,r){eQ(this,"tokens",[]),eQ(this,"inlineMode",!1),eQ(this,"Token",e$),this.src=e,this.env=r,this.md=t}},eH=/\r\n?|\n/g,ez=/\0/g,eJ=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,ej=/\((c|tm|r)\)/i,eq=/\((c|tm|r)\)/gi,e0={c:"©",r:"®",tm:"™"};function e1(e,t){return e0[t.toLowerCase()]}var e2=/['"]/,e3=/['"]/g;function e5(e,t,r,n){e[t]||(e[t]=[]),e[t].push({pos:r,ch:n})}var e4=[["normalize",function(e){let t;t=(t=e.src.replace(eH,"\n")).replace(ez,"�"),e.src=t}],["block",function(e){let t;e.inlineMode?((t=new e.Token("inline","",0)).content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}],["strip_references",function(e){let t=e.tokens,r=0;for(let e=0;e<t.length;e++)"reference_definition"!==t[e].type&&(e!==r&&(t[r]=t[e]),r++);t.length!==r&&(t.length=r)}],["inline",function(e){let t=e.tokens;for(let r=0,n=t.length;r<n;r++){let n=t[r];"inline"===n.type&&e.md.inline.parse(n.content,e.md,e.env,n.children)}}],["linkify",function(e){let t=e.tokens;if(e.md.options.linkify)for(let i=0,a=t.length;i<a;i++){if("inline"!==t[i].type||!e.md.linkify.test(t[i].content))continue;let a=t[i].children,o=0;for(let s=a.length-1;s>=0;s--){let l=a[s];if("link_close"===l.type){for(s--;a[s].level!==l.level&&"link_open"!==a[s].type;)s--;continue}if("html_inline"===l.type){var r,n;r=l.content,/^<a[>\s]/i.test(r)&&o>0&&o--,n=l.content,/^<\/a\s*>/i.test(n)&&o++}if(!(o>0)&&"text"===l.type&&e.md.linkify.test(l.content)){let r=l.content,n=e.md.linkify.match(r),o=[],c=l.level,u=0;n.length>0&&0===n[0].index&&s>0&&"text_special"===a[s-1].type&&(n=n.slice(1));for(let t=0;t<n.length;t++){let i=n[t].url,a=e.md.normalizeLink(i);if(!e.md.validateLink(a))continue;let s=n[t].text;s=n[t].schema?"mailto:"!==n[t].schema||/^mailto:/i.test(s)?e.md.normalizeLinkText(s):e.md.normalizeLinkText(`mailto:${s}`).replace(/^mailto:/,""):e.md.normalizeLinkText(`http://${s}`).replace(/^http:\/\//,"");let l=n[t].index;if(l>u){let t=new e.Token("text","",0);t.content=r.slice(u,l),t.level=c,o.push(t)}let h=new e.Token("link_open","a",1);h.attrs=[["href",a]],h.level=c++,h.markup="linkify",h.info="auto",o.push(h);let p=new e.Token("text","",0);p.content=s,p.level=c,o.push(p);let d=new e.Token("link_close","a",-1);d.level=--c,d.markup="linkify",d.info="auto",o.push(d),u=n[t].lastIndex}if(u<r.length){let t=new e.Token("text","",0);t.content=r.slice(u),t.level=c,o.push(t)}t[i].children=a=ef(a,s,o)}}}}],["replacements",function(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&(ej.test(e.tokens[t].content)&&function(e){let t=0;for(let r=e.length-1;r>=0;r--){let n=e[r];"text"!==n.type||t||(n.content=n.content.replace(eq,e1)),"link_open"===n.type&&"auto"===n.info&&t--,"link_close"===n.type&&"auto"===n.info&&t++}}(e.tokens[t].children),eJ.test(e.tokens[t].content)&&function(e){let t=0;for(let r=e.length-1;r>=0;r--){let n=e[r];"text"===n.type&&!t&&eJ.test(n.content)&&(n.content=n.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/gm,"$1—").replace(/(^|\s)--(?=\s|$)/gm,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,"$1–")),"link_open"===n.type&&"auto"===n.info&&t--,"link_close"===n.type&&"auto"===n.info&&t++}}(e.tokens[t].children))}],["smartquotes",function(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&e2.test(e.tokens[t].content)&&function(e,t){let r,n=[],i={};for(let a=0;a<e.length;a++){let o=e[a],s=e[a].level;for(r=n.length-1;r>=0&&!(n[r].level<=s);r--);if(n.length=r+1,"text"!==o.type)continue;let l=o.content,c=0,u=l.length;i:for(;c<u;){e3.lastIndex=c;let o=e3.exec(l);if(!o)break;let h=!0,p=!0;c=o.index+1;let d="'"===o[0],f=32;if(o.index-1>=0)f=l.charCodeAt(o.index-1);else for(r=a-1;r>=0&&"softbreak"!==e[r].type&&"hardbreak"!==e[r].type;r--)if(e[r].content){f=e[r].content.charCodeAt(e[r].content.length-1);break}let m=32;if(c<u)m=l.charCodeAt(c);else for(r=a+1;r<e.length&&"softbreak"!==e[r].type&&"hardbreak"!==e[r].type;r++)if(e[r].content){m=e[r].content.charCodeAt(0);break}let g=eI(f)||eC(f),A=eI(m)||eC(m),y=eT(f),v=eT(m);if(v?h=!1:A&&!(y||g)&&(h=!1),y?p=!1:g&&!(v||A)&&(p=!1),34===m&&'"'===o[0]&&f>=48&&f<=57&&(p=h=!1),h&&p&&(h=g,p=A),!h&&!p){d&&e5(i,a,o.index,"’");continue}if(p)for(r=n.length-1;r>=0;r--){let e=n[r];if(n[r].level<s)break;if(e.single===d&&n[r].level===s){let s,l;e=n[r],d?(s=t.md.options.quotes[2],l=t.md.options.quotes[3]):(s=t.md.options.quotes[0],l=t.md.options.quotes[1]),e5(i,a,o.index,l),e5(i,e.token,e.pos,s),n.length=r;continue i}}h?n.push({token:a,pos:o.index,single:d,level:s}):p&&d&&e5(i,a,o.index,"’")}}Object.keys(i).forEach(function(t){let r=Number(t);e[r].content=function(e,t){let r="",n=0;t.sort((e,t)=>e.pos-t.pos);for(let i=0;i<t.length;i++){let a=t[i];r+=e.slice(n,a.pos)+a.ch,n=a.pos+1}return r+e.slice(n)}(e[r].content,i[t])})}(e.tokens[t].children,e)}],["text_join",function(e){let t,r,n=e.tokens,i=n.length;for(let e=0;e<i;e++){if("inline"!==n[e].type)continue;let i=n[e].children,a=i.length;for(t=0;t<a;t++)"text_special"===i[t].type&&(i[t].type="text"),i[t].children&&function(e){let t,r,n=e.length;for(t=0;t<n;t++)"text_special"===e[t].type&&(e[t].type="text");for(t=r=0;t<n;t++)"text"===e[t].type&&t+1<n&&"text"===e[t+1].type?e[t+1].content=e[t].content+e[t+1].content:(t!==r&&(e[r]=e[t]),r++);t!==r&&(e.length=r)}(i[t].children);for(t=r=0;t<a;t++)"text"===i[t].type&&t+1<a&&"text"===i[t+1].type?i[t+1].content=i[t].content+i[t+1].content:(t!==r&&(i[r]=i[t]),r++);t!==r&&(i.length=r)}}]],e6=class{constructor(){eQ(this,"ruler",new eB),eQ(this,"State",eG);for(let e=0;e<e4.length;e++)this.ruler.push(e4[e][0],e4[e][1])}process(e){let t=this.ruler.getRules("");for(let r=0,n=t.length;r<n;r++)t[r](e)}},e8=class{constructor(e,t,r,n){eQ(this,"bMarks",[]),eQ(this,"eMarks",[]),eQ(this,"tShift",[]),eQ(this,"sCount",[]),eQ(this,"bsCount",[]),eQ(this,"blkIndent",0),eQ(this,"line",0),eQ(this,"lineMax",0),eQ(this,"tight",!1),eQ(this,"listIndent",-1),eQ(this,"parentType","root"),eQ(this,"level",0),eQ(this,"Token",e$),this.src=e,this.md=t,this.env=r,this.tokens=n;let i=this.src;for(let e=0,t=0,r=0,n=0,a=i.length,o=!1;t<a;t++){let s=i.charCodeAt(t);if(!o)if(e_(s)){r++,9===s?n+=4-n%4:n++;continue}else o=!0;(10===s||t===a-1)&&(10!==s&&t++,this.bMarks.push(e),this.eMarks.push(t),this.tShift.push(r),this.sCount.push(n),this.bsCount.push(0),o=!1,r=0,n=0,e=t+1)}this.bMarks.push(i.length),this.eMarks.push(i.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}push(e,t,r){let n=new e$(e,t,r);return n.block=!0,r<0&&this.level--,n.level=this.level,r>0&&this.level++,this.tokens.push(n),n}isEmpty(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]}skipEmptyLines(e){for(let t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e}skipSpaces(e){for(let t=this.src.length;e<t&&e_(this.src.charCodeAt(e));e++);return e}skipSpacesBack(e,t){if(e<=t)return e;for(;e>t;)if(!e_(this.src.charCodeAt(--e)))return e+1;return e}skipChars(e,t){for(let r=this.src.length;e<r&&this.src.charCodeAt(e)===t;e++);return e}skipCharsBack(e,t,r){if(e<=r)return e;for(;e>r;)if(t!==this.src.charCodeAt(--e))return e+1;return e}getLines(e,t,r,n){if(e>=t)return"";let i=Array(t-e);for(let a=0,o=e;o<t;o++,a++){let e,s=0,l=this.bMarks[o],c=l;for(e=o+1<t||n?this.eMarks[o]+1:this.eMarks[o];c<e&&s<r;){let e=this.src.charCodeAt(c);if(e_(e))9===e?s+=4-(s+this.bsCount[o])%4:s++;else if(c-l<this.tShift[o])s++;else break;c++}s>r?i[a]=Array(s-r+1).join(" ")+this.src.slice(c,e):i[a]=this.src.slice(c,e)}return i.join("")}};function e9(e,t){let r=e.bMarks[t]+e.tShift[t],n=e.eMarks[t];return e.src.slice(r,n)}function e7(e){let t=[],r=e.length,n=0,i=e.charCodeAt(n),a=!1,o=0,s="";for(;n<r;)124===i&&(a?(s+=e.substring(o,n-1),o=n):(t.push(s+e.substring(o,n)),s="",o=n+1)),a=92===i,n++,i=e.charCodeAt(n);return t.push(s+e.substring(o)),t}function te(e,t){let r=e.eMarks[t],n=e.bMarks[t]+e.tShift[t],i=e.src.charCodeAt(n++);return 42!==i&&45!==i&&43!==i||n<r&&!e_(e.src.charCodeAt(n))?-1:n}function tt(e,t){let r=e.bMarks[t]+e.tShift[t],n=e.eMarks[t],i=r;if(i+1>=n)return -1;let a=e.src.charCodeAt(i++);if(a<48||a>57)return -1;for(;;){if(i>=n)return -1;if((a=e.src.charCodeAt(i++))>=48&&a<=57){if(i-r>=10)return -1;continue}if(41===a||46===a)break;return -1}return i<n&&!e_(a=e.src.charCodeAt(i))?-1:i}var tr="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",tn="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",ti=RegExp(`^(?:${tr}|${tn}|<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->|<[?][\\s\\S]*?[?]>|<![A-Za-z][^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)`),ta=RegExp(`^(?:${tr}|${tn})`),to=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Za-z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[RegExp("^</?(address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h1|h2|h3|h4|h5|h6|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul)(?=(\\s|/?>|$))","i"),/^$/,!0],[RegExp(`${ta.source}\\s*$`),/^$/,!1]],ts=[["table",function(e,t,r,n){let i;if(t+2>r)return!1;let a=t+1;if(e.sCount[a]<e.blkIndent||e.sCount[a]-e.blkIndent>=4)return!1;let o=e.bMarks[a]+e.tShift[a];if(o>=e.eMarks[a])return!1;let s=e.src.charCodeAt(o++);if(124!==s&&45!==s&&58!==s||o>=e.eMarks[a])return!1;let l=e.src.charCodeAt(o++);if(124!==l&&45!==l&&58!==l&&!e_(l)||45===s&&e_(l))return!1;for(;o<e.eMarks[a];){let t=e.src.charCodeAt(o);if(124!==t&&45!==t&&58!==t&&!e_(t))return!1;o++}let c=e9(e,t+1),u=c.split("|"),h=[];for(let e=0;e<u.length;e++){let t=u[e].trim();if(!t)if(0===e||e===u.length-1)continue;else return!1;if(!/^:?-+:?$/.test(t))return!1;58===t.charCodeAt(t.length-1)?h.push(58===t.charCodeAt(0)?"center":"right"):58===t.charCodeAt(0)?h.push("left"):h.push("")}if(-1===(c=e9(e,t).trim()).indexOf("|")||e.sCount[t]-e.blkIndent>=4)return!1;(u=e7(c)).length&&""===u[0]&&u.shift(),u.length&&""===u[u.length-1]&&u.pop();let p=u.length;if(0===p||p!==h.length)return!1;if(n)return!0;let d=e.parentType;e.parentType="table";let f=e.md.block.ruler.getRules("blockquote"),m=e.push("table_open","table",1),g=[t,0];m.map=g,e.push("thead_open","thead",1).map=[t,t+1],e.push("tr_open","tr",1).map=[t,t+1];for(let t=0;t<u.length;t++){let r=e.push("th_open","th",1);h[t]&&(r.attrs=[["style",`text-align:${h[t]}`]]);let n=e.push("inline","",0);n.content=u[t].trim(),n.children=[],e.push("th_close","th",-1)}e.push("tr_close","tr",-1),e.push("thead_close","thead",-1);let A=0;for(a=t+2;a<r&&!(e.sCount[a]<e.blkIndent);a++){let n=!1;for(let t=0,i=f.length;t<i;t++)if(f[t](e,a,r,!0)){n=!0;break}if(n||!(c=e9(e,a).trim())||e.sCount[a]-e.blkIndent>=4||((u=e7(c)).length&&""===u[0]&&u.shift(),u.length&&""===u[u.length-1]&&u.pop(),(A+=p-u.length)>65536))break;a===t+2&&(e.push("tbody_open","tbody",1).map=i=[t+2,0]),e.push("tr_open","tr",1).map=[a,a+1];for(let t=0;t<p;t++){let r=e.push("td_open","td",1);h[t]&&(r.attrs=[["style",`text-align:${h[t]}`]]);let n=e.push("inline","",0);n.content=u[t]?u[t].trim():"",n.children=[],e.push("td_close","td",-1)}e.push("tr_close","tr",-1)}return i&&(e.push("tbody_close","tbody",-1),i[1]=a),e.push("table_close","table",-1),g[1]=a,e.parentType=d,e.line=a,!0},["paragraph","reference"]],["code",function(e,t,r){if(e.sCount[t]-e.blkIndent<4)return!1;let n=t+1,i=n;for(;n<r;){if(e.isEmpty(n)){n++;continue}if(e.sCount[n]-e.blkIndent>=4){i=++n;continue}break}e.line=i;let a=e.push("code_block","code",0);return a.content=e.getLines(t,i,4+e.blkIndent,!1)+"\n",a.map=[t,e.line],!0}],["fence",function(e,t,r,n){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||i+3>a)return!1;let o=e.src.charCodeAt(i);if(126!==o&&96!==o)return!1;let s=i,l=(i=e.skipChars(i,o))-s;if(l<3)return!1;let c=e.src.slice(s,i),u=e.src.slice(i,a);if(96===o&&u.indexOf(String.fromCharCode(o))>=0)return!1;if(n)return!0;let h=t,p=!1;for(;!(++h>=r)&&(!((i=s=e.bMarks[h]+e.tShift[h])<(a=e.eMarks[h]))||!(e.sCount[h]<e.blkIndent));){;if(!(e.src.charCodeAt(i)!==o||e.sCount[h]-e.blkIndent>=4||(i=e.skipChars(i,o))-s<l)&&!((i=e.skipSpaces(i))<a)){p=!0;break}}l=e.sCount[t],e.line=h+ +!!p;let d=e.push("fence","code",0);return d.info=u,d.content=e.getLines(t+1,h,l,!0),d.markup=c,d.map=[t,e.line],!0},["paragraph","reference","blockquote","list"]],["blockquote",function(e,t,r,n){let i,a=e.bMarks[t]+e.tShift[t],o=e.eMarks[t],s=e.lineMax;if(e.sCount[t]-e.blkIndent>=4||62!==e.src.charCodeAt(a))return!1;if(n)return!0;let l=[],c=[],u=[],h=[],p=e.md.block.ruler.getRules("blockquote"),d=e.parentType;e.parentType="blockquote";let f=!1;for(i=t;i<r;i++){let t=e.sCount[i]<e.blkIndent;if((a=e.bMarks[i]+e.tShift[i])>=(o=e.eMarks[i]))break;if(62===e.src.charCodeAt(a++)&&!t){let t,r,n=e.sCount[i]+1;32===e.src.charCodeAt(a)?(a++,n++,r=!1,t=!0):9===e.src.charCodeAt(a)?(t=!0,(e.bsCount[i]+n)%4==3?(a++,n++,r=!1):r=!0):t=!1;let s=n;for(l.push(e.bMarks[i]),e.bMarks[i]=a;a<o;){let t=e.src.charCodeAt(a);if(e_(t))9===t?s+=4-(s+e.bsCount[i]+ +!!r)%4:s++;else break;a++}f=a>=o,c.push(e.bsCount[i]),e.bsCount[i]=e.sCount[i]+1+ +!!t,u.push(e.sCount[i]),e.sCount[i]=s-n,h.push(e.tShift[i]),e.tShift[i]=a-e.bMarks[i];continue}if(f)break;let n=!1;for(let t=0,a=p.length;t<a;t++)if(p[t](e,i,r,!0)){n=!0;break}if(n){e.lineMax=i,0!==e.blkIndent&&(l.push(e.bMarks[i]),c.push(e.bsCount[i]),h.push(e.tShift[i]),u.push(e.sCount[i]),e.sCount[i]-=e.blkIndent);break}l.push(e.bMarks[i]),c.push(e.bsCount[i]),h.push(e.tShift[i]),u.push(e.sCount[i]),e.sCount[i]=-1}let m=e.blkIndent;e.blkIndent=0;let g=e.push("blockquote_open","blockquote",1);g.markup=">";let A=[t,0];g.map=A,e.md.block.tokenize(e,t,i),e.push("blockquote_close","blockquote",-1).markup=">",e.lineMax=s,e.parentType=d,A[1]=e.line;for(let r=0;r<h.length;r++)e.bMarks[r+t]=l[r],e.tShift[r+t]=h[r],e.sCount[r+t]=u[r],e.bsCount[r+t]=c[r];return e.blkIndent=m,!0},["paragraph","reference","blockquote","list"]],["hr",function(e,t,r,n){let i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let a=e.bMarks[t]+e.tShift[t],o=e.src.charCodeAt(a++);if(42!==o&&45!==o&&95!==o)return!1;let s=1;for(;a<i;){let t=e.src.charCodeAt(a++);if(t!==o&&!e_(t))return!1;t===o&&s++}if(s<3)return!1;if(n)return!0;e.line=t+1;let l=e.push("hr","hr",0);return l.map=[t,e.line],l.markup=Array(s+1).join(String.fromCharCode(o)),!0},["paragraph","reference","blockquote","list"]],["list",function(e,t,r,n){let i,a,o,s,l,c,u,h=t,p=!0;if(e.sCount[h]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[h]-e.listIndent>=4&&e.sCount[h]<e.blkIndent)return!1;let d=!1;if(n&&"paragraph"===e.parentType&&e.sCount[h]>=e.blkIndent&&(d=!0),(u=tt(e,h))>=0){if(l=!0,o=e.bMarks[h]+e.tShift[h],c=Number(e.src.slice(o,u-1)),d&&1!==c)return!1}else{if(!((u=te(e,h))>=0))return!1;l=!1}if(d&&e.skipSpaces(u)>=e.eMarks[h])return!1;if(n)return!0;let f=e.src.charCodeAt(u-1),m=e.tokens.length;l?(s=e.push("ordered_list_open","ol",1),1!==c&&(s.attrs=[["start",c]])):s=e.push("bullet_list_open","ul",1);let g=[h,0];s.map=g,s.markup=String.fromCharCode(f);let A=!1,y=e.md.block.ruler.getRules("list"),v=e.parentType;for(e.parentType="list";h<r;){let t;a=u,i=e.eMarks[h];let n=e.sCount[h]+u-(e.bMarks[h]+e.tShift[h]),c=n;for(;a<i;){let t=e.src.charCodeAt(a);if(9===t)c+=4-(c+e.bsCount[h])%4;else if(32===t)c++;else break;a++}let d=a;(t=d>=i?1:c-n)>4&&(t=1);let m=n+t;(s=e.push("list_item_open","li",1)).markup=String.fromCharCode(f);let g=[h,0];s.map=g,l&&(s.info=e.src.slice(o,u-1));let v=e.tight,R=e.tShift[h],b=e.sCount[h],x=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=m,e.tight=!0,e.tShift[h]=d-e.bMarks[h],e.sCount[h]=c,d>=i&&e.isEmpty(h+1)?e.line=Math.min(e.line+2,r):e.md.block.tokenize(e,h,r),(!e.tight||A)&&(p=!1),A=e.line-h>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=x,e.tShift[h]=R,e.sCount[h]=b,e.tight=v,(s=e.push("list_item_close","li",-1)).markup=String.fromCharCode(f),h=e.line,g[1]=h,h>=r||e.sCount[h]<e.blkIndent||e.sCount[h]-e.blkIndent>=4)break;let M=!1;for(let t=0,n=y.length;t<n;t++)if(y[t](e,h,r,!0)){M=!0;break}if(M)break;if(l){if((u=tt(e,h))<0)break;o=e.bMarks[h]+e.tShift[h]}else if((u=te(e,h))<0)break;if(f!==e.src.charCodeAt(u-1))break}return(s=l?e.push("ordered_list_close","ol",-1):e.push("bullet_list_close","ul",-1)).markup=String.fromCharCode(f),g[1]=h,e.line=h,e.parentType=v,p&&function(e,t){let r=e.level+2;for(let n=t+2,i=e.tokens.length-2;n<i;n++)e.tokens[n].level===r&&"paragraph_open"===e.tokens[n].type&&(e.tokens[n+2].hidden=!0,e.tokens[n].hidden=!0,n+=2)}(e,m),!0},["paragraph","reference","blockquote"]],["reference",function(e,t,r,n){let i,a=e.bMarks[t]+e.tShift[t],o=e.eMarks[t],s=t+1;if(e.sCount[t]-e.blkIndent>=4||91!==e.src.charCodeAt(a))return!1;function l(t){let r=e.lineMax;if(t>=r||e.isEmpty(t))return null;let n=!1;if(e.sCount[t]-e.blkIndent>3&&(n=!0),e.sCount[t]<0&&(n=!0),!n){let n=e.md.block.ruler.getRules("reference"),i=e.parentType;e.parentType="reference";let a=!1;for(let i=0,o=n.length;i<o;i++)if(n[i](e,t,r,!0)){a=!0;break}if(e.parentType=i,a)return null}let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];return e.src.slice(i,a+1)}let c=e.src.slice(a,o+1);o=c.length;let u=-1;for(a=1;a<o;a++){let e=c.charCodeAt(a);if(91===e)return!1;if(93===e){u=a;break}if(10===e){let e=l(s);null!==e&&(c+=e,o=c.length,s++)}else if(92===e&&++a<o&&10===c.charCodeAt(a)){let e=l(s);null!==e&&(c+=e,o=c.length,s++)}}if(u<0||58!==c.charCodeAt(u+1))return!1;for(a=u+2;a<o;a++){let e=c.charCodeAt(a);if(10===e){let e=l(s);null!==e&&(c+=e,o=c.length,s++)}else if(e_(e));else break}let h=e.md.helpers.parseLinkDestination(c,a,o);if(!h.ok)return!1;let p=e.md.normalizeLink(h.str);if(!e.md.validateLink(p))return!1;let d=a=h.pos,f=s,m=a;for(;a<o;a++){let e=c.charCodeAt(a);if(10===e){let e=l(s);null!==e&&(c+=e,o=c.length,s++)}else if(e_(e));else break}let g=e.md.helpers.parseLinkTitle(c,a,o);for(;g.can_continue;){let t=l(s);if(null===t)break;c+=t,a=o,o=c.length,s++,g=e.md.helpers.parseLinkTitle(c,a,o,g)}for(a<o&&m!==a&&g.ok?(i=g.str,a=g.pos):(i="",a=d,s=f);a<o&&e_(c.charCodeAt(a));)a++;if(a<o&&10!==c.charCodeAt(a)&&i)for(i="",a=d,s=f;a<o&&e_(c.charCodeAt(a));)a++;if(a<o&&10!==c.charCodeAt(a))return!1;let A=ek(c.slice(1,u));if(!A)return!1;if(n)return!0;void 0===e.env.references&&(e.env.references={}),void 0===e.env.references[A]&&(e.env.references[A]={title:i,href:p});let y=e.push("reference_definition","",0);y.map=[t,s],y.hidden=!0;let v=Object.create(null);return v.label=A,y.meta=v,e.line=s,!0}],["html_block",function(e,t,r,n){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||60!==e.src.charCodeAt(i))return!1;let o=e.src.slice(i,a),s=0;for(;s<to.length&&!to[s][0].test(o);s++);if(s===to.length)return!1;if(n)return to[s][2];let l=t+1,c=to[s][1].test("");if(!to[s][1].test(o)){for(;l<r&&(!(e.sCount[l]<e.blkIndent)||!c&&e.isEmpty(l));l++)if(i=e.bMarks[l]+e.tShift[l],a=e.eMarks[l],o=e.src.slice(i,a),to[s][1].test(o)){0!==o.length&&l++;break}}e.line=l;let u=e.push("html_block","",0);return u.map=[t,l],u.content=e.getLines(t,l,e.blkIndent,!0),!0},["paragraph","reference","blockquote"]],["heading",function(e,t,r,n){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let o=e.src.charCodeAt(i);if(35!==o||i>=a)return!1;let s=1;for(o=e.src.charCodeAt(++i);35===o&&i<a&&s<=6;)s++,o=e.src.charCodeAt(++i);if(s>6||i<a&&!e_(o))return!1;if(n)return!0;a=e.skipSpacesBack(a,i);let l=e.skipCharsBack(a,35,i);l>i&&e_(e.src.charCodeAt(l-1))&&(a=l),e.line=t+1;let c=e.push("heading_open",`h${s}`,1);c.markup="########".slice(0,s),c.map=[t,e.line];let u=e.push("inline","",0);return u.content=eX(e.src.slice(i,a)),u.map=[t,e.line],u.children=[],e.push("heading_close",`h${s}`,-1).markup="########".slice(0,s),!0},["paragraph","reference","blockquote"]],["lheading",function(e,t,r){let n,i=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;let a=e.parentType;e.parentType="paragraph";let o=0,s=t+1;for(;s<r&&!e.isEmpty(s);s++){if(e.sCount[s]-e.blkIndent>3)continue;if(e.sCount[s]>=e.blkIndent){let t=e.bMarks[s]+e.tShift[s],r=e.eMarks[s];if(t<r&&(45===(n=e.src.charCodeAt(t))||61===n)&&(t=e.skipChars(t,n),(t=e.skipSpaces(t))>=r)){o=61===n?1:2;break}}if(e.sCount[s]<0)continue;let t=!1;for(let n=0,a=i.length;n<a;n++)if(i[n](e,s,r,!0)){t=!0;break}if(t)break}if(!o)return e.parentType=a,!1;let l=eX(e.getLines(t,s,e.blkIndent,!1));e.line=s+1;let c=e.push("heading_open",`h${o}`,1);c.markup=String.fromCharCode(n),c.map=[t,e.line];let u=e.push("inline","",0);return u.content=l,u.map=[t,e.line-1],u.children=[],e.push("heading_close",`h${o}`,-1).markup=String.fromCharCode(n),e.parentType=a,!0}],["paragraph",function(e,t,r){let n=e.md.block.ruler.getRules("paragraph"),i=e.parentType,a=t+1;for(e.parentType="paragraph";a<r&&!e.isEmpty(a);a++){if(e.sCount[a]-e.blkIndent>3||e.sCount[a]<0)continue;let t=!1;for(let i=0,o=n.length;i<o;i++)if(n[i](e,a,r,!0)){t=!0;break}if(t)break}let o=eX(e.getLines(t,a,e.blkIndent,!1));e.line=a,e.push("paragraph_open","p",1).map=[t,e.line];let s=e.push("inline","",0);return s.content=o,s.map=[t,e.line],s.children=[],e.push("paragraph_close","p",-1),e.parentType=i,!0}]],tl=class{constructor(){eQ(this,"ruler",new eB),eQ(this,"State",e8);for(let e=0;e<ts.length;e++)this.ruler.push(ts[e][0],ts[e][1],{alt:(ts[e][2]||[]).slice()})}tokenize(e,t,r){let n=this.ruler.getRules(""),i=n.length,a=e.md.options.maxNesting,o=t,s=!1;for(;o<r&&(e.line=o=e.skipEmptyLines(o),!(o>=r)&&!(e.sCount[o]<e.blkIndent));){if(e.level>=a){e.line=r;break}let t=e.line,l=!1;for(let a=0;a<i;a++)if(l=n[a](e,o,r,!1)){if(t>=e.line)throw Error("block rule didn't increment state.line");break}if(!l)throw Error("none of the block rules matched");e.tight=!s,e.isEmpty(e.line-1)&&(s=!0),(o=e.line)<r&&e.isEmpty(o)&&(s=!0,e.line=++o)}}parse(e,t,r,n){if(!e)return;let i=new this.State(e,t,r,n);this.tokenize(i,i.line,i.lineMax)}},tc=class{constructor(e,t,r,n){eQ(this,"pos",0),eQ(this,"level",0),eQ(this,"pending",""),eQ(this,"pendingLevel",0),eQ(this,"cache",{}),eQ(this,"backticks",{}),eQ(this,"backticksScanned",!1),eQ(this,"linkLevel",0),eQ(this,"delimiters",[]),eQ(this,"_prev_delimiters",[]),eQ(this,"Token",e$),this.src=e,this.env=r,this.md=t,this.tokens=n,this.tokens_meta=Array(n.length),this.posMax=this.src.length}pushPending(){let e=new e$("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e}push(e,t,r){let n;this.pending&&this.pushPending();let i=new e$(e,t,r);return r<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),i.level=this.level,r>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],n={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(i),this.tokens_meta.push(n),i}scanDelims(e,t){let r,n=this.posMax,i=this.src.charCodeAt(e);if(0===e)r=32;else if(1===e)(63488&(r=this.src.charCodeAt(0)))==55296&&(r=65533);else if((64512&(r=this.src.charCodeAt(e-1)))==56320){let t=this.src.charCodeAt(e-2);r=(64512&t)==55296?65536+(t-55296<<10)+(r-56320):65533}else(64512&r)==55296&&(r=65533);let a=e;for(;a<n&&this.src.charCodeAt(a)===i;)a++;let o=a-e,s=a<n?this.src.charCodeAt(a):32;if((64512&s)==55296){let e=this.src.charCodeAt(a+1);s=(64512&e)==56320?65536+(s-55296<<10)+(e-56320):65533}else(64512&s)==56320&&(s=65533);let l=eI(r)||eC(r),c=eI(s)||eC(s),u=eT(r),h=eT(s),p=!h&&(!c||u||l),d=!u&&(!l||h||c);return{can_open:p&&(t||!d||l),can_close:d&&(t||!p||c),length:o}}},tu=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i,th=[];for(let e=0;e<256;e++)th.push(0);function tp(e,t){let r,n=[],i=t.length;for(let a=0;a<i;a++){let i=t[a];if(126!==i.marker||-1===i.end)continue;let o=t[i.end];(r=e.tokens[i.token]).type="s_open",r.tag="s",r.nesting=1,r.markup="~~",r.content="",(r=e.tokens[o.token]).type="s_close",r.tag="s",r.nesting=-1,r.markup="~~",r.content="","text"===e.tokens[o.token-1].type&&"~"===e.tokens[o.token-1].content&&n.push(o.token-1)}for(;n.length;){let t=n.pop(),i=t+1;for(;i<e.tokens.length&&"s_close"===e.tokens[i].type;)i++;t!==--i&&(r=e.tokens[i],e.tokens[i]=e.tokens[t],e.tokens[t]=r)}}"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){th[e.charCodeAt(0)]=1});function td(e,t){let r=t.length;for(let n=r-1;n>=0;n--){let r=t[n];if(95!==r.marker&&42!==r.marker||-1===r.end)continue;let i=t[r.end],a=n>0&&t[n-1].end===r.end+1&&t[n-1].marker===r.marker&&t[n-1].token===r.token-1&&t[r.end+1].token===i.token+1,o=String.fromCharCode(r.marker),s=e.tokens[r.token];s.type=a?"strong_open":"em_open",s.tag=a?"strong":"em",s.nesting=1,s.markup=a?o+o:o,s.content="";let l=e.tokens[i.token];l.type=a?"strong_close":"em_close",l.tag=a?"strong":"em",l.nesting=-1,l.markup=a?o+o:o,l.content="",a&&(e.tokens[t[n-1].token].content="",e.tokens[t[r.end+1].token].content="",n--)}}var tf=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,tm=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/,tg=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,tA=/^&([a-z][a-z0-9]{1,31});/i;function ty(e){let t={},r=e.length;if(!r)return;let n=0,i=-2,a=[];for(let o=0;o<r;o++){let r=e[o];if(a.push(0),(e[n].marker!==r.marker||i!==r.token-1)&&(n=o),i=r.token,r.length=r.length||0,!r.close)continue;t.hasOwnProperty(r.marker)||(t[r.marker]=[-1,-1,-1,-1,-1,-1]);let s=t[r.marker][3*!!r.open+r.length%3],l=n-a[n]-1,c=l;for(;l>s;l-=a[l]+1){let t=e[l];if(t.marker===r.marker&&t.open&&t.end<0){let n=!1;if((t.close||r.open)&&(t.length+r.length)%3==0&&(t.length%3!=0||r.length%3!=0)&&(n=!0),!n){let n=l>0&&!e[l-1].open?a[l-1]+1:0;a[o]=o-l+n,a[l]=n,r.open=!1,t.end=o,t.close=!1,c=-1,i=-2;break}}}-1!==c&&(t[r.marker][3*!!r.open+(r.length||0)%3]=c)}}var tv=[["text",function(e,t){let r=e.pos;for(;r<e.posMax&&!function(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}(e.src.charCodeAt(r));)r++;return r!==e.pos&&(t||(e.pending+=e.src.slice(e.pos,r)),e.pos=r,!0)}],["linkify",function(e,t){if(!e.md.options.linkify||e.linkLevel>0)return!1;let r=e.pos;if(r+3>e.posMax||58!==e.src.charCodeAt(r)||47!==e.src.charCodeAt(r+1)||47!==e.src.charCodeAt(r+2))return!1;let n=e.pending.match(tu);if(!n)return!1;let i=n[1],a=e.md.linkify.matchAtStart(e.src.slice(r-i.length));if(!a)return!1;let o=a.url;if(o.length<=i.length)return!1;let s=o.length;for(;s>0&&42===o.charCodeAt(s-1);)s--;s!==o.length&&(o=o.slice(0,s));let l=e.md.normalizeLink(o);if(!e.md.validateLink(l))return!1;if(!t){e.pending=e.pending.slice(0,-i.length);let t=e.push("link_open","a",1);t.attrs=[["href",l]],t.markup="linkify",t.info="auto",e.push("text","",0).content=e.md.normalizeLinkText(o);let r=e.push("link_close","a",-1);r.markup="linkify",r.info="auto"}return e.pos+=o.length-i.length,!0}],["newline",function(e,t){let r=e.pos;if(10!==e.src.charCodeAt(r))return!1;let n=e.pending.length-1,i=e.posMax;if(!t)if(n>=0&&32===e.pending.charCodeAt(n))if(n>=1&&32===e.pending.charCodeAt(n-1)){let t=n-1;for(;t>=1&&32===e.pending.charCodeAt(t-1);)t--;e.pending=e.pending.slice(0,t),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(r++;r<i&&e_(e.src.charCodeAt(r));)r++;return e.pos=r,!0}],["escape",function(e,t){let r=e.pos,n=e.posMax;if(92!==e.src.charCodeAt(r)||++r>=n)return!1;let i=e.src.charCodeAt(r);if(10===i){for(t||e.push("hardbreak","br",0),r++;r<n&&e_(i=e.src.charCodeAt(r));)r++;return e.pos=r,!0}if(32===i){if(!t){let t=e.push("text_special","",0);t.content="\\",t.markup="\\",t.info="escape"}return e.pos=r,!0}let a=e.src[r];if(i>=55296&&i<=56319&&r+1<n){let t=e.src.charCodeAt(r+1);t>=56320&&t<=57343&&(a+=e.src[r+1],r++)}let o="\\"+a;if(!t){let t=e.push("text_special","",0);i<256&&0!==th[i]?t.content=a:t.content=o,t.markup=o,t.info="escape"}return e.pos=r+1,!0}],["backticks",function(e,t){let r,n=e.pos;if(96!==e.src.charCodeAt(n))return!1;let i=n;n++;let a=e.posMax;for(;n<a&&96===e.src.charCodeAt(n);)n++;let o=e.src.slice(i,n),s=o.length;if(e.backticksScanned&&(e.backticks[s]||0)<=i)return t||(e.pending+=o),e.pos+=s,!0;let l=n;for(;-1!==(r=e.src.indexOf("`",l));){for(l=r+1;l<a&&96===e.src.charCodeAt(l);)l++;let i=l-r;if(i===s){if(!t){let t=e.push("code_inline","code",0);t.markup=o,t.content=e.src.slice(n,r).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return e.pos=l,!0}e.backticks[i]=r}return e.backticksScanned=!0,t||(e.pending+=o),e.pos+=s,!0}],["strikethrough",function(e,t){let r=e.pos,n=e.src.charCodeAt(r);if(t||126!==n)return!1;let i=e.scanDelims(e.pos,!0),a=i.length,o=String.fromCharCode(n);if(a<2)return!1;a%2&&(e.push("text","",0).content=o,a--);for(let t=0;t<a;t+=2)e.push("text","",0).content=o+o,e.delimiters.push({marker:n,length:0,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return e.pos+=i.length,!0}],["emphasis",function(e,t){let r=e.pos,n=e.src.charCodeAt(r);if(t||95!==n&&42!==n)return!1;let i=e.scanDelims(e.pos,42===n);for(let t=0;t<i.length;t++)e.push("text","",0).content=String.fromCharCode(n),e.delimiters.push({marker:n,length:i.length,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return e.pos+=i.length,!0}],["link",function(e,t){let r,n,i,a,o="",s="",l=e.pos,c=!0;if(91!==e.src.charCodeAt(e.pos))return!1;let u=e.pos,h=e.posMax,p=e.pos+1,d=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(d<0)return!1;let f=d+1;if(f<h&&40===e.src.charCodeAt(f)){for(c=!1,f++;f<h&&(e_(r=e.src.charCodeAt(f))||10===r);f++);if(f>=h)return!1;if(l=f,(i=e.md.helpers.parseLinkDestination(e.src,f,e.posMax)).ok){for(o=e.md.normalizeLink(i.str),e.md.validateLink(o)?f=i.pos:o="",l=f;f<h&&(e_(r=e.src.charCodeAt(f))||10===r);f++);if(i=e.md.helpers.parseLinkTitle(e.src,f,e.posMax),f<h&&l!==f&&i.ok)for(s=i.str,f=i.pos;f<h&&(e_(r=e.src.charCodeAt(f))||10===r);f++);}(f>=h||41!==e.src.charCodeAt(f))&&(c=!0),f++}if(c){if(void 0===e.env.references)return!1;if(f<h&&91===e.src.charCodeAt(f)?(l=f+1,(f=e.md.helpers.parseLinkLabel(e,f))>=0?n=e.src.slice(l,f++):f=d+1):f=d+1,n||(n=e.src.slice(p,d)),n=ek(n),!(a=e.env.references[n]))return e.pos=u,!1;o=a.href,s=a.title}if(!t){e.pos=p,e.posMax=d;let t=e.push("link_open","a",1),r=[["href",o]];if(t.attrs=r,s&&r.push(["title",s]),n){let e=Object.create(null);e.label=n,t.meta=e}e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=f,e.posMax=h,!0}],["image",function(e,t){let r,n,i,a,o,s,l,c,u="",h=e.pos,p=e.posMax;if(33!==e.src.charCodeAt(e.pos)||91!==e.src.charCodeAt(e.pos+1))return!1;let d=e.pos+2,f=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(f<0)return!1;if((a=f+1)<p&&40===e.src.charCodeAt(a)){for(a++;a<p&&(e_(r=e.src.charCodeAt(a))||10===r);a++);if(a>=p)return!1;for(c=a,(s=e.md.helpers.parseLinkDestination(e.src,a,e.posMax)).ok&&(u=e.md.normalizeLink(s.str),e.md.validateLink(u)?a=s.pos:u=""),c=a;a<p&&(e_(r=e.src.charCodeAt(a))||10===r);a++);if(s=e.md.helpers.parseLinkTitle(e.src,a,e.posMax),a<p&&c!==a&&s.ok)for(l=s.str,a=s.pos;a<p&&(e_(r=e.src.charCodeAt(a))||10===r);a++);else l="";if(a>=p||41!==e.src.charCodeAt(a))return e.pos=h,!1;a++}else{if(void 0===e.env.references)return!1;if(a<p&&91===e.src.charCodeAt(a)?(c=a+1,(a=e.md.helpers.parseLinkLabel(e,a))>=0?i=e.src.slice(c,a++):a=f+1):a=f+1,i||(i=e.src.slice(d,f)),i=ek(i),!(o=e.env.references[i]))return e.pos=h,!1;u=o.href,l=o.title}if(!t){n=e.src.slice(d,f);let t=[];e.md.inline.parse(n,e.md,e.env,t);let r=e.push("image","img",0),a=[["src",u],["alt",""]];if(r.attrs=a,r.children=t,r.content=n,l&&a.push(["title",l]),i){let e=Object.create(null);e.label=i,r.meta=e}}return e.pos=a,e.posMax=p,!0}],["autolink",function(e,t){let r=e.pos;if(60!==e.src.charCodeAt(r))return!1;let n=e.pos,i=e.posMax;for(;;){if(++r>=i)return!1;let t=e.src.charCodeAt(r);if(60===t)return!1;if(62===t)break}let a=e.src.slice(n+1,r);if(tm.test(a)){let r=e.md.normalizeLink(a);if(!e.md.validateLink(r))return!1;if(!t){let t=e.push("link_open","a",1);t.attrs=[["href",r]],t.markup="autolink",t.info="auto",e.push("text","",0).content=e.md.normalizeLinkText(a);let n=e.push("link_close","a",-1);n.markup="autolink",n.info="auto"}return e.pos+=a.length+2,!0}if(tf.test(a)){let r=e.md.normalizeLink(`mailto:${a}`);if(!e.md.validateLink(r))return!1;if(!t){let t=e.push("link_open","a",1);t.attrs=[["href",r]],t.markup="autolink",t.info="auto",e.push("text","",0).content=e.md.normalizeLinkText(a);let n=e.push("link_close","a",-1);n.markup="autolink",n.info="auto"}return e.pos+=a.length+2,!0}return!1}],["html_inline",function(e,t){let r;if(!e.md.options.html)return!1;let n=e.posMax,i=e.pos;if(60!==e.src.charCodeAt(i)||i+2>=n)return!1;let a=e.src.charCodeAt(i+1);if(33!==a&&63!==a&&47!==a&&(!((r=32|a)>=97)||!(r<=122)))return!1;let o=e.src.slice(i).match(ti);if(!o)return!1;if(!t){var s,l;let t=e.push("html_inline","",0);t.content=o[0],s=t.content,/^<a[>\s]/i.test(s)&&e.linkLevel++,l=t.content,/^<\/a\s*>/i.test(l)&&e.linkLevel--}return e.pos+=o[0].length,!0}],["entity",function(e,t){let r=e.pos,n=e.posMax;if(38!==e.src.charCodeAt(r)||r+1>=n)return!1;if(35===e.src.charCodeAt(r+1)){let n=e.src.slice(r).match(tg);if(n){if(!t){let t="x"===n[1][0].toLowerCase()?parseInt(n[1].slice(1),16):parseInt(n[1],10),r=e.push("text_special","",0);r.content=em(t)?eg(t):eg(65533),r.markup=n[0],r.info="entity"}return e.pos+=n[0].length,!0}}else{let n=e.src.slice(r).match(tA);if(n){let r=B(n[0]);if(r!==n[0]){if(!t){let t=e.push("text_special","",0);t.content=r,t.markup=n[0],t.info="entity"}return e.pos+=n[0].length,!0}}}return!1}]],tR=[["balance_pairs",function(e){let t=e.tokens_meta,r=e.tokens_meta.length;ty(e.delimiters);for(let e=0;e<r;e++){var n;let r=null==(n=t[e])?void 0:n.delimiters;r&&ty(r)}}],["strikethrough",function(e){let t=e.tokens_meta,r=e.tokens_meta.length;tp(e,e.delimiters);for(let i=0;i<r;i++){var n;let r=null==(n=t[i])?void 0:n.delimiters;r&&tp(e,r)}}],["emphasis",function(e){let t=e.tokens_meta,r=e.tokens_meta.length;td(e,e.delimiters);for(let i=0;i<r;i++){var n;let r=null==(n=t[i])?void 0:n.delimiters;r&&td(e,r)}}],["fragments_join",function(e){let t,r,n=0,i=e.tokens,a=e.tokens.length;for(t=r=0;t<a;t++)i[t].nesting<0&&n--,i[t].level=n,i[t].nesting>0&&n++,"text"===i[t].type&&t+1<a&&"text"===i[t+1].type?i[t+1].content=i[t].content+i[t+1].content:(t!==r&&(i[r]=i[t]),r++);t!==r&&(i.length=r)}]],tb=class{constructor(){eQ(this,"ruler",new eB),eQ(this,"ruler2",new eB),eQ(this,"State",tc);for(let e=0;e<tv.length;e++)this.ruler.push(tv[e][0],tv[e][1]);for(let e=0;e<tR.length;e++)this.ruler2.push(tR[e][0],tR[e][1])}skipToken(e){let t=e.pos,r=this.ruler.getRules(""),n=r.length,i=e.md.options.maxNesting,a=e.cache;if(void 0!==a[t]){e.pos=a[t];return}let o=!1;if(e.level<i){for(let i=0;i<n;i++)if(e.level++,o=r[i](e,!0),e.level--,o){if(t>=e.pos)throw Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;!o&&e.pos++,a[t]=e.pos}tokenize(e){let t=this.ruler.getRules(""),r=t.length,n=e.posMax,i=e.md.options.maxNesting;for(;e.pos<n;){let a=e.pos,o=!1;if(e.level<i){for(let n=0;n<r;n++)if(o=t[n](e,!1)){if(a>=e.pos)throw Error("inline rule didn't increment state.pos");break}}if(o){if(e.pos>=n)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()}parse(e,t,r,n){let i=new this.State(e,t,r,n);this.tokenize(i);let a=this.ruler2.getRules(""),o=a.length;for(let e=0;e<o;e++)a[e](i)}},tx={default:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},zero:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","strip_references","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},commonmark:{options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","strip_references","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}}},tM=/^(vbscript|javascript|file|data):/,tS=/^data:image\/(gif|png|jpeg|webp);/,tw=["http:","https:","mailto:"],tO=class{validateLink(e){let t=e.trim().toLowerCase();return!tM.test(t)||tS.test(t)}normalizeLink(e){let t=I(e,!0);if(t.hostname&&(!t.protocol||tw.indexOf(t.protocol)>=0))try{var r;r=t.hostname,t.hostname=ea(r,function(e){return q.test(e)?"xn--"+ec(e):e})}catch(e){}return b(x(t))}normalizeLinkText(e){let t=I(e,!0);if(t.hostname&&(!t.protocol||tw.indexOf(t.protocol)>=0))try{var r;r=t.hostname,t.hostname=ea(r,function(e){return j.test(e)?el(e.slice(4).toLowerCase()):e})}catch(e){}return y(x(t),y.defaultChars+"%")}constructor(...e){eQ(this,"inline",new tb),eQ(this,"block",new tl),eQ(this,"core",new e6),eQ(this,"renderer",new eK),eQ(this,"linkify",new J),eQ(this,"utils",ep),eQ(this,"helpers",Object.assign({},eY));let[t,r]=e;"string"==typeof t?(this.configure(t),r&&this.set(r)):(this.configure("default"),this.set(t||{}))}set(e){return Object.assign(this.options,e),this}configure(e){let t;if("string"==typeof e){if(!(t=tx[e]))throw Error(`Wrong 'markdown-it' preset "${e}", check name`)}else t=e;if(!t)throw Error("Wrong `markdown-it` preset, can't be empty");t.options&&(this.options={...t.options});let r=t.components;if(r){var n;["core","block","inline"].forEach(e=>{var t;let n=null==(t=r[e])?void 0:t.rules;n&&this[e].ruler.enableOnly(n)});let e=null==(n=r.inline)?void 0:n.rules2;e&&this.inline.ruler2.enableOnly(e)}return this}enable(e,t=!1){let r=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(t=>{r=r.concat(this[t].ruler.enable(e,!0))}),r=r.concat(this.inline.ruler2.enable(e,!0));let n=e.filter(e=>0>r.indexOf(e));if(n.length&&!t)throw Error(`MarkdownIt. Failed to enable unknown rule(s): ${n}`);return this}disable(e,t=!1){let r=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(t=>{r=r.concat(this[t].ruler.disable(e,!0))}),r=r.concat(this.inline.ruler2.disable(e,!0));let n=e.filter(e=>0>r.indexOf(e));if(n.length&&!t)throw Error(`MarkdownIt. Failed to disable unknown rule(s): ${n}`);return this}use(e,...t){return e.apply(e,[this,...t]),this}parse(e,t){if("string"!=typeof e)throw Error("Input data should be a String");let r=new this.core.State(e,this,t);return this.core.process(r),r.tokens}render(e,t={}){return this.renderer.render(this.parse(e,t),this.options,t)}parseInline(e,t){let r=new this.core.State(e,this,t);return r.inlineMode=!0,this.core.process(r),r.tokens}renderInline(e,t={}){return this.renderer.render(this.parseInline(e,t),this.options,t)}};eQ(tO,"Token",e$),eQ(tO,"Ruler",eB),eQ(tO,"Renderer",eK),eQ(tO,"ParserCore",e6),eQ(tO,"StateCore",eG),eQ(tO,"ParserBlock",tl),eQ(tO,"StateBlock",e8),eQ(tO,"ParserInline",tb),eQ(tO,"StateInline",tc);var tL=ed(tO)},95802(e,t,r){let n,i,a=new Uint16Array(("Ȁaglq \x15\x18\x1bɭ\x0f\0\0\x12p;䀦os;䀧t;䀾t;䀼uot;䀢".split("")).map(e=>e.charCodeAt(0))),o=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),s=null!=(k=String.fromCodePoint)?k:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e)};function l(e){return e>=F.ZERO&&e<=F.NINE}(T=F||(F={}))[T.NUM=35]="NUM",T[T.SEMI=59]="SEMI",T[T.EQUALS=61]="EQUALS",T[T.ZERO=48]="ZERO",T[T.NINE=57]="NINE",T[T.LOWER_A=97]="LOWER_A",T[T.LOWER_F=102]="LOWER_F",T[T.LOWER_X=120]="LOWER_X",T[T.LOWER_Z=122]="LOWER_Z",T[T.UPPER_A=65]="UPPER_A",T[T.UPPER_F=70]="UPPER_F",T[T.UPPER_Z=90]="UPPER_Z",(P=X||(X={}))[P.VALUE_LENGTH=49152]="VALUE_LENGTH",P[P.BRANCH_LENGTH=16256]="BRANCH_LENGTH",P[P.JUMP_TABLE=127]="JUMP_TABLE",(C=U||(U={}))[C.EntityStart=0]="EntityStart",C[C.NumericStart=1]="NumericStart",C[C.NumericDecimal=2]="NumericDecimal",C[C.NumericHex=3]="NumericHex",C[C.NamedEntity=4]="NamedEntity",(I=W||(W={}))[I.Legacy=0]="Legacy",I[I.Strict=1]="Strict",I[I.Attribute=2]="Attribute";let c=(n="",i=new class e{constructor(e,t,r){this.decodeTree=e,this.emitCodePoint=t,this.errors=r,this.state=U.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=W.Strict}startEntity(e){this.decodeMode=e,this.state=U.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case U.EntityStart:if(e.charCodeAt(t)===F.NUM)return this.state=U.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1);return this.state=U.NamedEntity,this.stateNamedEntity(e,t);case U.NumericStart:return this.stateNumericStart(e,t);case U.NumericDecimal:return this.stateNumericDecimal(e,t);case U.NumericHex:return this.stateNumericHex(e,t);case U.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(32|e.charCodeAt(t))===F.LOWER_X?(this.state=U.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=U.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,r,n){if(t!==r){let i=r-t;this.result=this.result*Math.pow(n,i)+Number.parseInt(e.substr(t,i),n),this.consumed+=i}}stateNumericHex(e,t){let r=t;for(;t<e.length;){var n;let i=e.charCodeAt(t);if(!l(i)&&(!((n=i)>=F.UPPER_A)||!(n<=F.UPPER_F))&&(!(n>=F.LOWER_A)||!(n<=F.LOWER_F)))return this.addToNumericResult(e,r,t,16),this.emitNumericEntity(i,3);t+=1}return this.addToNumericResult(e,r,t,16),-1}stateNumericDecimal(e,t){let r=t;for(;t<e.length;){let n=e.charCodeAt(t);if(!l(n))return this.addToNumericResult(e,r,t,10),this.emitNumericEntity(n,2);t+=1}return this.addToNumericResult(e,r,t,10),-1}emitNumericEntity(e,t){var r,n,i;if(this.consumed<=t)return null==(r=this.errors)||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===F.SEMI)this.consumed+=1;else if(this.decodeMode===W.Strict)return 0;return this.emitCodePoint((n=this.result)>=55296&&n<=57343||n>1114111?65533:null!=(i=o.get(n))?i:n,this.consumed),this.errors&&(e!==F.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){let{decodeTree:r}=this,n=r[this.treeIndex],i=(n&X.VALUE_LENGTH)>>14;for(;t<e.length;t++,this.excess++){let a=e.charCodeAt(t);if(this.treeIndex=function(e,t,r,n){let i=(t&X.BRANCH_LENGTH)>>7,a=t&X.JUMP_TABLE;if(0===i)return 0!==a&&n===a?r:-1;if(a){let t=n-a;return t<0||t>=i?-1:e[r+t]-1}let o=r,s=o+i-1;for(;o<=s;){let t=o+s>>>1,r=e[t];if(r<n)o=t+1;else{if(!(r>n))return e[t+i];s=t-1}}return -1}(r,n,this.treeIndex+Math.max(1,i),a),this.treeIndex<0)return 0===this.result||this.decodeMode===W.Attribute&&(0===i||function(e){var t;return e===F.EQUALS||(t=e)>=F.UPPER_A&&t<=F.UPPER_Z||t>=F.LOWER_A&&t<=F.LOWER_Z||l(t)}(a))?0:this.emitNotTerminatedNamedEntity();if(0!=(i=((n=r[this.treeIndex])&X.VALUE_LENGTH)>>14)){if(a===F.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==W.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return -1}emitNotTerminatedNamedEntity(){var e;let{result:t,decodeTree:r}=this,n=(r[t]&X.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,n,this.consumed),null==(e=this.errors)||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,r){let{decodeTree:n}=this;return this.emitCodePoint(1===t?n[e]&~X.VALUE_LENGTH:n[e+1],r),3===t&&this.emitCodePoint(n[e+2],r),r}end(){var e;switch(this.state){case U.NamedEntity:return 0!==this.result&&(this.decodeMode!==W.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case U.NumericDecimal:return this.emitNumericEntity(0,2);case U.NumericHex:return this.emitNumericEntity(0,3);case U.NumericStart:return null==(e=this.errors)||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case U.EntityStart:return 0}}}(a,e=>n+=s(e)),function(e,t){let r=0,a=0;for(;(a=e.indexOf("&",a))>=0;){n+=e.slice(r,a),i.startEntity(t);let o=i.write(e,a+1);if(o<0){r=a+i.end();break}r=a+o,a=0===o?r+1:r}let o=n+e.slice(r);return n="",o});function u(e){return c(e,W.Strict)}let h=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?("[^"]*"|'[^']*')/g;function p(e,t={}){let r={type:"tag",name:"",voidElement:!1,attribs:{},children:[]},n=e.match(/<\/?([^\s]+?)[/\s>]/);if(n&&(r.name=n[1],"/"===e.charAt(e.length-2)&&(r.voidElement=!0),r.name.startsWith("!--"))){let t=e.indexOf("--\x3e");return{type:"comment",comment:-1!==t?e.slice(4,t):""}}let i=new RegExp(h),a=null;for(;null!==(a=i.exec(e));)if(a[0].trim()){if(a[1]){let e=a[1].trim(),t=[e,""];e.indexOf("=")>-1&&(t=e.split("=")),r.attribs[t[0]]=t[1],i.lastIndex--}else if(a[2]){let e=a[3].trim().substring(1,a[3].length-1);r.attribs[a[2]]=t.disableDecode?e:u(e)}}return r}let d=/<[a-zA-Z0-9\-!/](?:"[^"]*"|'[^']*'|[^'">])*>/g,f=/^\s*$/,m=["mtext","mi","mn","mo","ms"],g=Object.create(null);function A(e,t){return t.disableDecode?e:u(e)}function y(e){if(e?.name==="m:t")return e;Array.isArray(e.children)||(e.children=[]);let t=e.children[e.children.length-1];if(t?.name==="m:r"){let e=t.children[t.children.length-1];if(e?.name==="m:t")return e}let r={name:"m:t",type:"tag",attribs:{"xml:space":"preserve"},children:[]};return e.children.push({name:"m:r",type:"tag",attribs:{},children:[r]}),r}function v(e,t=!0){let r="";if("text"===e.type){let n=e.data.replace(/[\u2062]|[\u200B]/g,"");t&&(n=n.trim()),r+=n}else e.children&&e.children.forEach(e=>{r+=v(e,t)});return r}let R=/^[\u220f-\u2211]|[\u2229-\u2233]|[\u22c0-\u22c3]$/,b=/^\u220f|\u2211|[\u2229-\u222b]|\u222e|\u222f|\u2232|\u2233|[\u22c0-\u22c3]$/;function x(e){let t=e?.children;if(!t?.length)return null;let r=t[t.length-1];return r?.name!=="m:nary"?null:r.children[r.children.length-1]||null}function M(e){let t=v(e);return!!R.test(t)&&t}function S(e,t,r,n=!1,i=!1){let a=t.attribs?.stretchy,o="true"===a?"on":"false"===a?"off":b.test(e)?"on":"off";return{type:"tag",name:"m:nary",attribs:{},children:[{type:"tag",name:"m:naryPr",attribs:{},children:[{type:"tag",name:"m:chr",attribs:{"m:val":e},children:[]},{type:"tag",name:"m:limLoc",attribs:{"m:val":r},children:[]},{type:"tag",name:"m:grow",attribs:{"m:val":o},children:[]},{type:"tag",name:"m:subHide",attribs:{"m:val":n?"on":"off"},children:[]},{type:"tag",name:"m:supHide",attribs:{"m:val":i?"on":"off"},children:[]}]}]}}let w=Symbol("pendingBrk"),O={bold:"b",italic:"i","bold-italic":"bi"};function L(e,t,r,n,i,a){let o;if(Array.isArray(t.children)||(t.children=[]),r.isNary){let e=x(t);e&&(t=e)}let s=e.children?.find(e=>"mglyph"===e.name),l=function(e,t,r={}){let n=e.attribs||{},i=n.mathcolor||t.find(e=>"mstyle"===e.name&&e.attribs&&e.attribs.color)?.attribs.color||"",a=n.mathsize||t.find(e=>"mstyle"===e.name&&e.attribs&&e.attribs.mathsize)?.attribs.mathsize||"",o=n.scriptlevel||t.find(e=>"mstyle"===e.name&&e.attribs&&e.attribs.scriptlevel)?.attribs.scriptlevel||"",s=n.mathbackground||t.find(e=>"mstyle"===e.name&&e.attribs&&e.attribs.mathbackground)?.attribs.mathbackground||"",l=n.mathvariant||t.find(e=>"mstyle"===e.name&&e.attribs&&e.attribs.mathvariant)?.attribs.mathvariant||"";"b-i"===l&&(l="bold-italic");let c=n.fontweight||t.find(e=>"mstyle"===e.name&&e.attribs&&e.attribs.fontweight)?.attribs.fontweight||"";"bold"!==c||["bold","bold-italic"].includes(l)?"normal"===c&&["bold","bold-italic"].includes(l)&&(l=l.includes("italic")?"italic":""):l=l.includes("italic")?"bold-italic":"bold";let u=n.fontstyle||t.find(e=>"mstyle"===e.name&&e.attribs&&e.attribs.fontstyle)?.attribs.fontstyle||"";if("italic"!==u||["italic","bold-italic"].includes(l)?"normal"===u&&["italic","bold-italic"].includes(l)&&(l=l.includes("bold")?"bold":""):l=l.includes("bold")?"bold-italic":"italic",!n.mathvariant){let t=v(e);""===r.variant&&("mi"===e.name&&t.length>1||"mn"===e.name&&!/^\d+\.\d+$/.test(t))?l="":["mi","mn","mo"].includes(e.name)&&["italic","bold-italic"].includes(r.variant)&&(l="bold"===c?"bold-italic":"italic")}return{color:i,variant:l,size:a,scriptlevel:o,background:s,fontstyle:u}}(e,i,r?.style);e.style=l,e.hasMglyphChild=s;let c=Object.keys(l).every(e=>{let t=r?.style;return t&&l[e]===t[e]})&&r?.hasMglyphChild===s,u=a===r?.name||["mi","mn","mo"].includes(a)&&["mi","mn","mo"].includes(r?.name),h=t.children[t.children.length-1];if(u&&c&&!s&&!t[w]&&h?.name==="m:r")o=h.children[h.children.length-1];else{let r={name:"m:r",type:"tag",attribs:{},children:[]};if(l.variant){let e={name:"m:rPr",type:"tag",attribs:{},children:[]},t=O[l.variant];t?e.children.push({name:"m:sty",type:"tag",attribs:{"m:val":t},children:[]}):e.children.push({name:"m:nor",type:"tag",attribs:{},children:[]}),r.children.push(e);let n={name:"w:rPr",type:"tag",attribs:{},children:[]};l.variant.includes("bold")&&n.children.push({name:"w:b",type:"tag",attribs:{},children:[]}),l.variant.includes("italic")&&n.children.push({name:"w:i",type:"tag",attribs:{},children:[]}),n.children.length&&r.children.push(n)}else s||"mtext"===a?r.children.push({name:"m:rPr",type:"tag",attribs:{},children:[{name:"m:nor",type:"tag",attribs:{},children:[]}]}):("normal"===l.fontstyle||"ms"===a&&""===l.fontstyle)&&r.children.push({name:"m:rPr",type:"tag",attribs:{},children:[{name:"m:sty",type:"tag",attribs:{"m:val":"p"},children:[]}]});o={name:"m:t",type:"tag",attribs:{"xml:space":"preserve"},children:[]},e.children.length<1&&o.children.push({type:"text",data:"​"}),function(e,t){if(!e[w])return;e[w]=!1;let r=t.children.find(e=>"m:rPr"===e.name);if(!r){r={name:"m:rPr",type:"tag",attribs:{},children:[]};let e=t.children.findIndex(e=>"w:rPr"===e.name);t.children.splice(e+1,0,r)}r.children.push({name:"m:brk",type:"tag",attribs:{},children:[]})}(t,r),r.children.push(o),t.children.push(r)}return o}let N={"←":"⃖","⟵":"⃖","→":"⃗","⟶":"⃗","´":"́","˝":"̋","˘":"̆",ˇ:"̌","¸":"̒","^":"̂","¨":"̈","˙":"̇","`":"̀","-":"̅","¯":"̅","−":"̅",".":"̇","~":"̃","˜":"̃"};function _(e,t,r,n,i,a){if(2!==e.children.length)return t;(i=[...i]).unshift(e);let o=e.children[0],s=e.children[1],l=M(o);if(l&&e.attribs?.accent?.toLowerCase()!=="true"&&e.attribs?.accentunder?.toLowerCase()!=="true"){let r=S(l,e,"undOvr","over"===a,"under"===a);e.isNary=!0;let n={name:"m:sub",type:"tag",attribs:{},children:[]},o={name:"m:sup",type:"tag",attribs:{},children:[]};Y(s,"under"===a?n:o,!1,!1,i),r.children.push(n),r.children.push(o),r.children.push({type:"tag",name:"m:e",attribs:{},children:[]}),t.children.push(r);return}let c=v(s),u={name:"m:e",type:"tag",attribs:{},children:[]};if(Y(o,u,!1,!1,i),"under"===a&&"mo"===s.name&&["̲","_"].includes(c)||"over"===a&&"mo"===s.name&&["̅","¯"].includes(c))return void t.children.push({type:"tag",name:"m:bar",attribs:{},children:[{type:"tag",name:"m:barPr",attribs:{},children:[{type:"tag",name:"m:pos",attribs:{"m:val":"under"===a?"bot":"top"},children:[]}]},{type:"tag",name:"m:e",attribs:{},children:[{type:"tag",name:"under"===a?"m:sSub":"m:sSup",attribs:{},children:[{type:"tag",name:"under"===a?"m:sSubPr":"m:sSupPr",attribs:{},children:[{type:"tag",name:"m:ctrlPr",attribs:{},children:[]}]},u,{type:"tag",name:"m:sub",attribs:{},children:[]}]}]}]});if("under"===a&&e.attribs?.accentunder?.toLowerCase()==="true"&&"mo"===s.name&&c.length<2||"over"===a&&e.attribs?.accent?.toLowerCase()==="true"&&"mo"===s.name&&c.length<2)return void t.children.push({type:"tag",name:"m:acc",attribs:{},children:[{type:"tag",name:"m:accPr",attribs:{},children:[{type:"tag",name:"m:chr",attribs:{"m:val":N[c]||c},children:[]}]},u]});if(e.attribs?.accent?.toLowerCase()!=="true"&&e.attribs?.accentunder?.toLowerCase()!=="true"&&"mo"===s.name&&"mrow"===o.name&&1===c.length)return void t.children.push({type:"tag",name:"m:groupChr",attribs:{},children:[{type:"tag",name:"m:groupChrPr",attribs:{},children:[{type:"tag",name:"m:chr",attribs:{"m:val":c},children:[]},{type:"tag",name:"m:pos",attribs:{"m:val":"under"===a?"bot":"top"},children:[]}]},u]});let h={name:"m:lim",type:"tag",attribs:{},children:[]};Y(s,h,!1,!1,i),t.children.push({type:"tag",name:"under"===a?"m:limLow":"m:limUpp",attribs:{},children:[u,h]})}var T,P,C,I,k,F,X,U,W,V=Object.freeze({__proto__:null,math:function(e,t,r,n,i){return t.name="m:oMath",t.attribs={"xmlns:m":"http://schemas.openxmlformats.org/officeDocument/2006/math","xmlns:w":"http://schemas.openxmlformats.org/wordprocessingml/2006/main"},t.type="tag",t.children=[],t},menclose:function(e,t,r,n,i){let a=e.attribs?.notation?.split(" ")[0]||"longdiv",o={type:"tag",name:"m:e",attribs:{},children:[]};if("longdiv"===a)t.children.push({type:"tag",name:"m:rad",attribs:{},children:[{type:"tag",name:"m:radPr",attribs:{},children:[{type:"tag",name:"m:degHide",attribs:{"m:val":"on"},children:[]}]},{type:"tag",name:"m:deg",attribs:{},children:[]},o]});else{let e={type:"tag",name:"m:hideTop",attribs:{"m:val":"on"},children:[]},r={type:"tag",name:"m:hideBot",attribs:{"m:val":"on"},children:[]},n={type:"tag",name:"m:hideLeft",attribs:{"m:val":"on"},children:[]},i={type:"tag",name:"m:hideRight",attribs:{"m:val":"on"},children:[]},s={type:"tag",name:"m:borderBoxPr",attribs:{},children:[]},l={type:"tag",name:"m:borderBox",attribs:{},children:[]};switch(a){case"actuarial":case"radical":case"box":l.children=[o];break;case"left":case"roundedbox":s.children=[e,r,i],l.children=[s,o];break;case"right":case"circle":s.children=[e,r,n],l.children=[s,o];break;case"top":s.children=[r,n,i],l.children=[s,o];break;case"bottom":s.children=[e,n,i],l.children=[s,o];break;case"updiagonalstrike":s.children=[e,r,n,i,{type:"tag",name:"m:strikeBLTR",attribs:{"m:val":"on"},children:[]}],l.children=[s,o];break;case"downdiagonalstrike":s.children=[e,r,n,i,{type:"tag",name:"m:strikeTLBR",attribs:{"m:val":"on"},children:[]}],l.children=[s,o];break;case"verticalstrike":s.children=[e,r,n,i,{type:"tag",name:"m:strikeV",attribs:{"m:val":"on"},children:[]}],l.children=[s,o];break;case"horizontalstrike":s.children=[e,r,n,i,{type:"tag",name:"m:strikeH",attribs:{"m:val":"on"},children:[]}],l.children=[s,o];break;default:s.children=[e,r,n,i],l.children=[s,o]}t.children.push(l)}return o},mfrac:function(e,t,r,n,i){if(2!==e.children.length)return t;let a=e.children[0],o=e.children[1],s={name:"m:num",type:"tag",attribs:{},children:[]},l={name:"m:den",type:"tag",attribs:{},children:[]};(i=[...i]).unshift(e),Y(a,s,!1,!1,i),Y(o,l,!1,!1,i);let c=e.attribs?.linethickness?.trim(),u=void 0!==c&&/^0+(\.0*)?([a-z%]+)?$/i.test(c)?"noBar":e.attribs?.bevelled==="true"?"skw":"bar";t.children.push({type:"tag",name:"m:f",attribs:{},children:[{type:"tag",name:"m:fPr",attribs:{},children:[{type:"tag",name:"m:type",attribs:{"m:val":u},children:[]}]},s,l]})},mglyph:function(e,t,r,n,i){e.attribs?.alt&&y(t).children.push({type:"text",data:e.attribs.alt})},mi:function(e,t,r,n,i){return L(e,t,r,n,i,"mi")},mmultiscripts:function(e,t,r,n,i){if(0===e.children.length)return;let a=e.children[0],o=[],s=[],l=[],c=[],u=e.children.slice(1),h=!1;u.forEach((e,t)=>{"mprescripts"===e.name?h=!0:"none"!==e.name&&(t%2?h?l.push(e):s.push(e):h?c.push(e):o.push(e))}),(i=[...i]).unshift(e);let p={children:[]};Y(a,p,!1,!1,i);let d=p.children[0];if(o.length||s.length){let e={name:"m:sub",type:"tag",attribs:{},children:[]};o.forEach(t=>Y(t,e,!1,!1,i));let t={name:"m:sup",type:"tag",attribs:{},children:[]};s.forEach(e=>Y(e,t,!1,!1,i));let r={type:"tag",attribs:{},children:[{type:"tag",name:"m:e",attribs:{},children:[d]}]};o.length&&s.length?(r.name="m:sSubSup",r.children.push(e),r.children.push(t)):o.length?(r.name="m:sSub",r.children.push(e)):(r.name="m:sSup",r.children.push(t)),d=r}if(l.length||c.length){let e={name:"m:sub",type:"tag",attribs:{},children:[]};l.forEach(t=>Y(t,e,!1,!1,i));let t={name:"m:sup",type:"tag",attribs:{},children:[]};c.forEach(e=>Y(e,t,!1,!1,i)),d={name:"m:sPre",type:"tag",attribs:{},children:[{name:"m:e",type:"tag",attribs:{},children:[d]},e,t]}}t.children.push(d)},mn:function(e,t,r,n,i){return L(e,t,r,n,i,"mn")},mo:function(e,t,r,n,i){return L(e,t,r,n,i,"mo")},mover:function(e,t,r,n,i){return _(e,t,r,n,i,"over")},mroot:function(e,t,r,n,i){if(2!==e.children.length)return t;(i=[...i]).unshift(e);let a=e.children[0],o=e.children[1],s={type:"tag",name:"m:e",attribs:{},children:[]};Y(a,s,!1,!1,i);let l={type:"tag",name:"m:deg",attribs:{},children:[]};Y(o,l,!1,!1,i);let c=v(o);t.children.push({type:"tag",name:"m:rad",attribs:{},children:[{type:"tag",name:"m:radPr",attribs:{},children:[{type:"tag",name:"m:degHide",attribs:{"m:val":c.length?"off":"on"},children:[]}]},l,s]})},mrow:function(e,t,r,n,i){if(r.isNary){let e=x(t);if(e)return e}return t},ms:function(e,t,r,n,i){return L(e,t,r,n,i,"ms")},mspace:function(e,t){e.attribs?.linebreak==="newline"?t[w]=!0:t.children.push({name:"m:r",type:"tag",attribs:{},children:[{name:"m:t",type:"tag",attribs:{"xml:space":"preserve"},children:[{type:"text",data:" "}]}]})},msqrt:function(e,t,r,n,i){let a={name:"m:e",type:"tag",attribs:{},children:[]};return t.children.push({name:"m:rad",type:"tag",attribs:{},children:[{name:"m:radPr",type:"tag",attribs:{},children:[{name:"m:degHide",type:"tag",attribs:{"m:val":"on"},children:[]}]},{name:"m:deg",type:"tag",attribs:{},children:[]},a]}),a},mstyle:function(e,t,r,n,i){return t},msub:function(e,t,r,n,i){let a;if(2!==e.children.length)return t;(i=[...i]).unshift(e);let o=e.children[0],s=e.children[1],l=M(o);if(l&&e.attribs?.accent?.toLowerCase()!=="true"&&e.attribs?.accentunder?.toLowerCase()!=="true")a=S(l,e,"subSup",!1,!0),e.isNary=!0;else{let e={name:"m:e",type:"tag",attribs:{},children:[]};Y(o,e,!1,!1,i),a={type:"tag",name:"m:sSub",attribs:{},children:[{type:"tag",name:"m:sSubPr",attribs:{},children:[{type:"tag",name:"m:ctrlPr",attribs:{},children:[]}]},e]}}let c={name:"m:sub",type:"tag",attribs:{},children:[]};Y(s,c,!1,!1,i),a.children.push(c),e.isNary&&(a.children.push({type:"tag",name:"m:sup",attribs:{},children:[]}),a.children.push({type:"tag",name:"m:e",attribs:{},children:[]})),t.children.push(a)},msubsup:function(e,t,r,n,i){let a;if(3!==e.children.length)return t;(i=[...i]).unshift(e);let o=e.children[0],s=e.children[1],l=e.children[2],c=M(o);if(c&&e.attribs?.accent?.toLowerCase()!=="true"&&e.attribs?.accentunder?.toLowerCase()!=="true")a=S(c,e,"subSup"),e.isNary=!0;else{let e={name:"m:e",type:"tag",attribs:{},children:[]};Y(o,e,!1,!1,i),a={type:"tag",name:"m:sSubSup",attribs:{},children:[{type:"tag",name:"m:sSubSupPr",attribs:{},children:[{type:"tag",name:"m:ctrlPr",attribs:{},children:[]}]},e]}}let u={name:"m:sub",type:"tag",attribs:{},children:[]},h={name:"m:sup",type:"tag",attribs:{},children:[]};Y(s,u,!1,!1,i),Y(l,h,!1,!1,i),a.children.push(u),a.children.push(h),e.isNary&&a.children.push({type:"tag",name:"m:e",attribs:{},children:[]}),t.children.push(a)},msup:function(e,t,r,n,i){let a;if(2!==e.children.length)return t;(i=[...i]).unshift(e);let o=e.children[0],s=e.children[1],l=M(o);if(l&&e.attribs?.accent?.toLowerCase()!=="true"&&e.attribs?.accentunder?.toLowerCase()!=="true")a=S(l,e,"subSup",!0),e.isNary=!0,a.children.push({type:"tag",name:"m:sub",attribs:{},children:[]});else{let e={name:"m:e",type:"tag",attribs:{},children:[]};Y(o,e,!1,!1,i),a={type:"tag",name:"m:sSup",attribs:{},children:[{type:"tag",name:"m:sSupPr",attribs:{},children:[{type:"tag",name:"m:ctrlPr",attribs:{},children:[]}]},e]}}let c={name:"m:sup",type:"tag",attribs:{},children:[]};Y(s,c,!1,!1,i),a.children.push(c),e.isNary&&a.children.push({type:"tag",name:"m:e",attribs:{},children:[]}),t.children.push(a)},mtable:function(e,t,r,n,i){let a=Math.max(0,...e.children.map(e=>e.children.length));for(let t of e.children)for(;t.children?.length<a;)t.children.push({name:"mtd",type:"tag",attribs:{},children:[]});let o={name:"m:m",type:"tag",attribs:{},children:[{name:"m:mPr",type:"tag",attribs:{},children:[{name:"m:baseJc",type:"tag",attribs:{"m:val":"center"},children:[]},{name:"m:plcHide",type:"tag",attribs:{"m:val":"on"},children:[]},{name:"m:mcs",type:"tag",attribs:{},children:[{name:"m:mc",type:"tag",attribs:{},children:[{name:"m:mcPr",type:"tag",attribs:{},children:[{name:"m:count",type:"tag",attribs:{"m:val":a.toString()},children:[]},{name:"m:mcJc",type:"tag",attribs:{"m:val":"center"},children:[]}]}]}]}]}]};return t.children.push(o),o},mtd:function(e,t,r,n,i){let a={name:"m:e",type:"tag",attribs:{},children:[]};return t.children.push(a),a},mtext:function(e,t,r,n,i){return L(e,t,r,n,i,"mtext")},mtr:function(e,t,r,n,i){let a={name:"m:mr",type:"tag",attribs:{},children:[]};return t.children.push(a),a},munder:function(e,t,r,n,i){return _(e,t,r,n,i,"under")},munderover:function(e,t,r,n,i){if(3!==e.children.length)return t;(i=[...i]).unshift(e);let a=e.children[0],o=e.children[1],s=e.children[2],l=M(a);if(l&&e.attribs?.accent?.toLowerCase()!=="true"&&e.attribs?.accentunder?.toLowerCase()!=="true"){let r=S(l,e,"undOvr");e.isNary=!0;let n={name:"m:sub",type:"tag",attribs:{},children:[]},a={name:"m:sup",type:"tag",attribs:{},children:[]};Y(o,n,!1,!1,i),Y(s,a,!1,!1,i),r.children.push(n),r.children.push(a),r.children.push({type:"tag",name:"m:e",attribs:{},children:[]}),t.children.push(r);return}let c={name:"m:e",type:"tag",attribs:{},children:[]};Y(a,c,!1,!1,i);let u={name:"m:lim",type:"tag",attribs:{},children:[]},h={name:"m:lim",type:"tag",attribs:{},children:[]};Y(o,u,!1,!1,i),Y(s,h,!1,!1,i),t.children.push({type:"tag",name:"m:limUpp",attribs:{},children:[{type:"tag",name:"m:e",attribs:{},children:[{type:"tag",name:"m:limLow",attribs:{},children:[c,u]}]},h]})},semantics:function(e,t,r,n,i){return t},text:function(e,t,r,n,i){let a=e.data.replace(/[\u2061-\u2064\u200B]/g,"");if(i.find(e=>["mi","mn","mo"].includes(e.name)))a=a.replace(/\s/g,"");else{let e=i.find(e=>"ms"===e.name);e&&(a=(e.attribs?.lquote||'"')+a+(e.attribs?.rquote||'"'))}if(a.length){let e=y(t);return e.children.length&&"text"===e.children[e.children.length-1].type?e.children[e.children.length-1].data+=a:e.children.push({type:"text",data:a}),e}return t}});let E=["annotation","annotation-xml"];function Y(e,t,r=!1,n=!1,i=[]){var a;let o,s;if(E.includes(e.name))return;!r&&["m:deg","m:den","m:e","m:fName","m:lim","m:num","m:sub","m:sup"].includes(t.name)&&(a=i,["0","1","2"].includes(s=a.find(e=>e.attribs?.scriptlevel)?.attribs?.scriptlevel)&&t.children.unshift({type:"tag",name:"m:argPr",attribs:{},children:[{type:"tag",name:"m:scrLvl",attribs:{"m:val":s},children:[]}]}));let l=e.name||e.type;if(V[l]?o=V[l](e,t,r,n,i):(l&&"root"!==l&&console.warn(`Type not supported: ${l}`),o=t),o&&e.children?.length){(i=[...i]).unshift(e);for(let t=0;t<e.children.length;t++)Y(e.children[t],o,e.children[t-1],e.children[t+1],i),function(e){if(!e[w])return;let t=e.children;if(!t?.length)return;let r=t[t.length-1];"m:r"!==r.name&&(e[w]=!1,t[t.length-1]={name:"m:box",type:"tag",attribs:{},children:[{name:"m:boxPr",type:"tag",attribs:{},children:[{name:"m:brk",type:"tag",attribs:{},children:[]}]},{name:"m:e",type:"tag",attribs:{},children:[r]}]})}(o)}}class D{constructor(e,t={}){this.inString=e,this.inXML=function(e,t={}){let r,n=t.components||g,i=[],a=[],o=-1,s=!1,l=[],c=d.exec(e);for(;c;)l.push(c),c=d.exec(e);return l.forEach((e,t)=>{let r=e[0];if(!r||r.startsWith("\x3c!--"))return;let n=0,i=0,a=-1,o=null;for(let e=0;e<r.length;e++){let t=r.charAt(e);o?t===o&&(o=null):'"'===t||"'"===t?o=t:"<"===t?2==++n&&(a=e):">"===t&&i++}let s=a>-1&&/[a-zA-Z0-9\-!/]/.test(r.charAt(a+1));if(n>i&&s){let e=r.substring(0,a),n=r.substring(e.length);l[t][0]=n,l[t].index+=e.length}}),l.forEach((c,u)=>{let h,d,g=c[0];if(!g)return;let y=c.index;if(s){if(g!==`</${r.name}>`)return;s=!1}let v="/"!==g.charAt(1),R=g.startsWith("\x3c!--"),b=y+g.length,x=e.charAt(b),M=l[u+1];if("<"===x&&M){let t=e.substring(b,M.index);h=t.split("<").length>t.split(">").length}if(R){let r=p(g,t);if(o<0)return i.push(r),i;if((d=a[o]).children.push(r),m.includes(d.name)){let r=e.slice(b,M?M.index:void 0).trim();r.length>0&&d.children.push({type:"text",data:A(r,t)})}return i}if(v){if(o++,"tag"===(r=p(g,t)).type&&n[r.name]&&(r.type="component",s=!0),m.includes(r.name)&&!r.voidElement&&!s&&x&&"<"!==x){let n=e.slice(b,M?M.index:void 0).trim();r.children.push({type:"text",data:A(n,t)})}0===o&&i.push(r),(d=a[o-1])&&d.children.push(r),a[o]=r}if((!v||r.voidElement)&&(o>-1&&(r.voidElement||r.name===g.slice(2,-1))&&(r=-1==--o?i:a[o]),!s&&o>-1&&m.includes(a[o].name)&&("<"!==x||h)&&x)){d=a[o].children;let r=M?M.index:-1,n=e.slice(b,-1===r?void 0:r);f.test(n)&&(n=" "),(r>-1&&o+d.length>=0||" "!==n)&&d.push({type:"text",data:A(n,t)})}}),i}(e,t),this.outXML=!1,this.outString=!1}run(){let e={};Y({children:this.inXML,type:"root"},e),this.outXML=e}getResult(){return this.outString=[this.outXML].reduce((e,t)=>e+function e(t,r){switch(r.type){case"text":return t+String(r.data).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\u200B/g,"&#x200B;");case"tag":{let n=r.voidElement||!r.children.length&&"preserve"!==r.attribs["xml:space"];if(t+=`<${r.name}${r.attribs?function(e){let t=[];for(let r in e)t.push(`${r}="${String(e[r]).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}"`);return t.length?` ${t.join(" ")}`:""}(r.attribs):""}${n?"/>":">"}`,n)return t;return`${t+r.children.reduce(e,"")}</${r.name}>`}case"comment":return t+`<!--${r.comment}-->`}}("",t),""),this.outString}}r.d(t,{},{Q:(e,t)=>{let r=new D(e,t);return r.run(),r.getResult()}})},27380(e,t,r){function n(e){return{all:e=e||new Map,on:function(t,r){var n=e.get(t);n?n.push(r):e.set(t,[r])},off:function(t,r){var n=e.get(t);n&&(r?n.splice(n.indexOf(r)>>>0,1):e.set(t,[]))},emit:function(t,r){var n=e.get(t);n&&n.slice().map(function(e){e(r)}),(n=e.get("*"))&&n.slice().map(function(e){e(t,r)})}}}r.d(t,{A:()=>n})},41884(e,t,r){r.d(t,{d_:()=>i,Ak:()=>a});let n=e=>crypto.getRandomValues(new Uint8Array(e)),i=(e,t=21)=>((e,t,r)=>{let n=256-256%e.length;if(256===n){let n=e.length-1;return (i=t)=>{if(!i)return"";let a="";for(;;){let t=r(i),o=i;for(;o--;)if((a+=e[t[o]&n]).length>=i)return a}}}let i=Math.ceil(409.6*t/n);return (a=t)=>{if(!a)return"";let o="";for(;;){let t=r(i),s=i;for(;s--;)if(t[s]<n&&(o+=e[t[s]%e.length]).length>=a)return o}}})(e,0|t,n),a=(e=21)=>{let t="",r=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[63&r[e]];return t}},93591(e,t,r){let n,i,a,o=(e,t)=>{let r,{o:n,i:i,u:a}=e,o=n,s=(e,t)=>{let n=o,s=t||(i?!i(n,e):n!==e);return(s||a)&&(o=e,r=n),[o,s,r]};return[t?e=>s(t(o,r),e):s,e=>[o,!!e,r]]},s="u">typeof window&&"u">typeof HTMLElement&&window.document?window:{},l=Math.max,c=Math.min,u=Math.round,h=Math.abs,p=Math.sign,d=s.cancelAnimationFrame,f=s.requestAnimationFrame,m=s.setTimeout,g=s.clearTimeout,A=e=>void 0!==s[e]?s[e]:void 0,y=A("MutationObserver"),v=A("IntersectionObserver"),R=A("ResizeObserver"),b=A("ScrollTimeline"),x=e=>"object"==typeof e&&!Array.isArray(e)&&null!==e,M=e=>{let t=!!e&&e.length;return!(!Array.isArray(e)&&("function"==typeof e||!("number"==typeof t&&t>-1&&t%1==0)))&&(!(t>0&&x(e))||t-1 in e)},S=e=>!!e&&e.constructor===Object;function w(e,t){if(M(e))for(let r=0;r<e.length&&!1!==t(e[r],r,e);r++);else e&&w(Object.keys(e),r=>t(e[r],r,e));return e}let O=(e,t)=>e.indexOf(t)>=0,L=(e,t,r)=>("string"!=typeof t&&M(t)?Array.prototype.push.apply(e,t):e.push(t),e),N=e=>Array.from(e||[]),_=e=>Array.isArray(e)?e:"string"!=typeof e&&M(e)?N(e):[e],T=e=>!!e&&!e.length,P=e=>N(new Set(e)),C=(e,t,r)=>{w(e,e=>!e||e.apply(void 0,t||[])),r||(e.length=0)},I="paddingTop",k="paddingRight",F="paddingLeft",X="paddingBottom",U="marginLeft",W="marginRight",V="marginBottom",E="overflowX",Y="overflowY",D="width",Q="height",$="visible",B="hidden",Z="scroll",K=(e,t,r,n)=>{if(e&&t){let n=!0;return w(r,r=>{e[r]!==t[r]&&(n=!1)}),n}return!1},G=(e,t)=>K(e,t,["w","h"]),H=(e,t)=>K(e,t,["x","y"]),z=(e,t)=>K(e,t,["t","r","b","l"]),J=(e,...t)=>e.bind(0,...t),j=e=>{let t,r=e?m:f,n=e?g:d;return[i=>{n(t),t=r(()=>i(),"function"==typeof e?e():e)},()=>n(t)]},q=e=>{let t="function"==typeof e?e():e;if("number"==typeof t){let e=t?m:f,r=t?g:d;return n=>{let i=e(()=>n(),t);return()=>{r(i)}}}return t&&t._},ee=(e,t)=>{let r,n,i,a,{p:o,v:s,S:l,m:c}=t||{},u=function(t){n&&n(),r&&r(),a=n=r=i=void 0,e.apply(this,t)},h=e=>c&&i?c(i,e):e,p=()=>{n&&i&&u(h(i)||i)},d=function(){let e=N(arguments),t=q(o);if(t){let o="function"==typeof l?l():l,c=q(s),d=h(e)||e,f=u.bind(0,d);n&&n(),o&&!a?(f(),a=!0,n=t(()=>a=void 0)):(n=t(f),c&&!r&&(r=c(p))),i=d}else u(e)};return d.O=p,d},et=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),er=e=>e?Object.keys(e):[],en=(e,t,r,n,i,a,o)=>(("object"!=typeof e||null===e)&&"function"!=typeof e&&(e={}),w([t,r,n,i,a,o],t=>{w(t,(r,n)=>{let i=t[n];if(e===i)return!0;let a=Array.isArray(i);if(i&&S(i)){let t=e[n],r=t;a&&!Array.isArray(t)?r=[]:a||S(t)||(r={}),e[n]=en(r,i)}else e[n]=a?i.slice():i})}),e),ei=(e,t)=>w(en({},e),(e,t,r)=>{void 0===e?delete r[t]:e&&S(e)&&(r[t]=ei(e))}),ea=()=>{},eo=(e,t,r)=>l(e,c(t,r)),es=e=>P((Array.isArray(e)?e:(e||"").split(" ")).filter(e=>e)),el=(e,t)=>e&&e.getAttribute(t),ec=(e,t)=>e&&e.hasAttribute(t),eu=(e,t,r)=>{w(es(t),t=>{e&&e.setAttribute(t,String(r||""))})},eh=(e,t)=>{w(es(t),t=>e&&e.removeAttribute(t))},ep=(e,t)=>{let r=es(el(e,t)),n=J(eu,e,t),i=(e,t)=>{let n=new Set(r);return w(es(e),e=>{n[t](e)}),N(n).join(" ")};return{C:e=>n(i(e,"delete")),$:e=>n(i(e,"add")),H:e=>{let t=es(e);return t.reduce((e,t)=>e&&r.includes(t),t.length>0)}}},ed=(e,t,r)=>(ep(e,t).C(r),J(ef,e,t,r)),ef=(e,t,r)=>(ep(e,t).$(r),J(ed,e,t,r)),em=(e,t,r,n)=>(n?ef:ed)(e,t,r),eg=(e,t,r)=>ep(e,t).H(r),eA=(e,t)=>{ep(e,"class").C(t)},ey=(e,t)=>(ep(e,"class").$(t),J(eA,e,t)),ev=(e,t)=>{let r=t?t instanceof Element&&t:document;return r?N(r.querySelectorAll(e)):[]},eR=(e,t)=>e instanceof Element&&e.matches(t),eb=e=>e?N(e.childNodes):[],ex=(e,t)=>e instanceof Element&&e.closest(t),eM=e=>{w(_(e),e=>{let t=e&&e.parentElement;e&&t&&t.removeChild(e)})},eS=(e,t)=>J(eM,e&&t&&w(_(t),t=>{t&&e.appendChild(t)})),ew=e=>{let t=document.createElement("div");return eu(t,"class",e),t},eO=e=>{let t=ew(),r=n,i=e.trim();return t.innerHTML=r?r.createHTML(i):i,w(eb(t),e=>eM(e))},eL=(e,t)=>e.getPropertyValue(t)||e[t]||"",eN=e=>{let t=e||0;return isFinite(t)?t:0},e_=e=>eN(parseFloat(e||"")),eT=e=>Math.round(1e4*e)/1e4,eP=e=>`${eT(eN(e))}px`;function eC(e,t){e&&t&&w(t,(t,r)=>{try{let n=e.style,i=null===t||"boolean"==typeof t?"":"number"==typeof t?eP(t):t;0===r.indexOf("--")?n.setProperty(r,i):n[r]=i}catch(e){}})}function eI(e,t,r){let n="string"==typeof t,i=n?"":{};if(e){let a=s.getComputedStyle(e,r)||e.style;i=n?eL(a,t):N(t).reduce((e,t)=>(e[t]=eL(a,t),e),i)}return i}let ek=(e,t,r)=>{let n=t?`${t}-`:"",i=r?`-${r}`:"",a=`${n}top${i}`,o=`${n}right${i}`,s=`${n}bottom${i}`,l=`${n}left${i}`,c=eI(e,[a,o,s,l]);return{t:e_(c[a]),r:e_(c[o]),b:e_(c[s]),l:e_(c[l])}},eF=(e,t)=>`translate${x(e)?`(${e.x},${e.y})`:`${t?"X":"Y"}(${e})`}`,eX={w:0,h:0},eU=(e,t)=>t?{w:t[`${e}Width`],h:t[`${e}Height`]}:eX,eW=J(eU,"offset"),eV=J(eU,"client"),eE=J(eU,"scroll"),eY=e=>{let t=parseFloat(eI(e,D))||0,r=parseFloat(eI(e,Q))||0;return{w:t-u(t),h:r-u(r)}},eD=e=>e.getBoundingClientRect(),eQ=e=>!!(e&&(e[Q]||e[D])),e$=(e,t)=>{let r=eQ(e);return!eQ(t)&&r},eB=(e,t,r,n)=>{w(es(t),t=>{e&&e.removeEventListener(t,r,n)})},eZ=(e,t,r,n)=>{var i;let a=null==(i=n&&n.D)||i,o=n&&n.I||!1,s=n&&n.A||!1,l={passive:a,capture:o};return J(C,es(t).map(t=>{let n=s?i=>{eB(e,t,n,o),r&&r(i)}:r;return e&&e.addEventListener(t,n,l),J(eB,e,t,n,o)}))},eK=e=>e.stopPropagation()||e.preventDefault(),eG=(e,t)=>{let{x:r,y:n}="number"==typeof t?{x:t,y:t}:t||{};"number"==typeof r&&(e.scrollLeft=r),"number"==typeof n&&(e.scrollTop=n)},eH=e=>({x:e.scrollLeft,y:e.scrollTop}),ez=()=>({T:{x:0,y:0},k:{x:0,y:0}}),eJ=({T:e,k:t})=>{let r=(e,t)=>0===e&&e<=t;return{x:r(e.x,t.x),y:r(e.y,t.y)}},ej=({T:e,k:t},r)=>{let n=(e,t,r)=>eo(0,1,(e-r)/(e-t)||0);return{x:n(e.x,t.x,r.x),y:n(e.y,t.y,r.y)}},eq=e=>{e&&e.focus&&e.focus({preventScroll:!0,focusVisible:!1})},e0=(e,t)=>{w(_(t),e)},e1=e=>{let t=new Map,r=(e,r)=>{if(e){let n=t.get(e);e0(e=>{n&&n[e?"delete":"clear"](e)},r)}else t.forEach(e=>{e.clear()}),t.clear()},n=(e,i)=>{if("string"==typeof e){let n=t.get(e)||new Set;return t.set(e,n),e0(e=>{"function"==typeof e&&n.add(e)},i),J(r,e,i)}"boolean"==typeof i&&i&&r();let a=er(e),o=[];return w(a,t=>{let r=e[t];r&&L(o,n(t,r))}),J(C,o)};return n(e||{}),[n,r,(e,r)=>{w(N(t.get(e)),e=>{r&&!T(r)?e.apply(0,r):e()})}]},e2={},e3={},e5=(e,t,r)=>er(e).map(n=>{let{static:i,instance:a}=e[n],[o,s,l]=r||[],c=r?a:i;if(c){let e=r?c(o,s,t):c(t);return(l||e3)[n]=e}}),e4=e=>e3[e],e6="data-overlayscrollbars",e8="os-environment",e9=`${e8}-scrollbar-hidden`,e7=`${e6}-initialize`,te="noClipping",tt=`${e6}-body`,tr=`${e6}-viewport`,tn="measuring",ti="scrollbarHidden",ta=`${e6}-padding`,to=`${e6}-content`,ts="os-size-observer",tl=`${ts}-appear`,tc=`${ts}-listener`,tu="os-scrollbar",th=`${tu}-rtl`,tp=`${tu}-horizontal`,td=`${tu}-vertical`,tf=`${tu}-track`,tm=`${tu}-handle`,tg=`${tu}-visible`,tA=`${tu}-cornerless`,ty=`${tu}-interaction`,tv=`${tu}-unusable`,tR=`${tu}-auto-hide`,tb=`${tR}-hidden`,tx=`${tu}-wheel`,tM=`${tf}-interactive`,tS=`${tm}-interactive`,tw=e=>0===e.indexOf($),tO=(e,t)=>{if("auto"===e)return t?Z:B;let r=e||B;return[B,Z,$].includes(r)?r:B},tL="__osScrollbarsHidingPlugin",tN=e=>JSON.stringify(e,(e,t)=>{if("function"==typeof t)throw 0;return t}),t_=(e,t)=>e?`${t}`.split(".").reduce((e,t)=>e&&et(e,t)?e[t]:void 0,e):void 0,tT=[33,99],tP=[222,666,!0],tC={paddingAbsolute:!1,showNativeOverlaidScrollbars:!1,update:{elementEvents:[["img","load"]],debounce:{mutation:[0,33],resize:null,event:tT,env:tP},attributes:null,ignoreMutation:null,flowDirectionStyles:null},overflow:{x:"scroll",y:"scroll"},scrollbars:{theme:"os-theme-dark",visibility:"auto",autoHide:"never",autoHideDelay:1300,autoHideSuspend:!1,dragScroll:!0,clickScroll:!1,pointers:["mouse","touch","pen"]}},tI=(e,t)=>{let r,n,i={};return w((r=er(t),n=er(e),r.concat(n)),r=>{let n=e[r],a=t[r];if(x(n)&&x(a))en(i[r]={},tI(n,a)),er(i[r]).length||delete i[r];else if(et(t,r)&&a!==n){let e=!0;if(Array.isArray(n)||Array.isArray(a))try{tN(n)===tN(a)&&(e=!1)}catch(e){}e&&(i[r]=a)}}),i},tk=(e,t,r)=>n=>[t_(e,n),r||void 0!==t_(t,n)],tF=()=>(a||(a=(()=>{let e=(e,t,r)=>{eS(document.body,e),eS(document.body,e);let n=eV(e),i=eW(e),a=eY(t);return r&&eM(e),{x:i.h-n.h+a.h,y:i.w-n.w+a.w}},t=`.${e8}{scroll-behavior:auto!important;position:fixed;opacity:0;visibility:hidden;overflow:scroll;height:200px;width:200px;z-index:-1}.${e8} div{width:200%;height:200%;margin:10px 0}.${e9}{scrollbar-width:none!important}.${e9}::-webkit-scrollbar,.${e9}::-webkit-scrollbar-corner{appearance:none!important;display:none!important;width:0!important;height:0!important}`,r=eO(`<div class="${e8}"><div></div><style>${t}</style></div>`)[0],n=r.firstChild,a=r.lastChild,l=i;l&&(a.nonce=l);let[c,,u]=e1(),[h,p]=o({o:e(r,n),i:H},J(e,r,n,!0)),[d]=p(),f=(e=>{let t=!1,r=ey(e,e9);try{t="none"===eI(e,"scrollbar-width")||"none"===eI(e,"display","::-webkit-scrollbar")}catch(e){}return r(),t})(r),m={x:0===d.x,y:0===d.y},g={elements:{host:null,padding:!f,viewport:e=>f&&eR(e,"body")&&e,content:!1},scrollbars:{slot:!0},cancel:{nativeScrollbarsOverlaid:!1,body:null}},A=en({},tC),y=J(en,{},A),v=J(en,{},g),R={U:d,M:m,P:f,J:!!b,G:J(c,"r"),K:v,Z:e=>en(g,e)&&v(),tt:y,nt:e=>en(A,e)&&y(),ot:en({},g),st:en({},A)};if(eh(r,"style"),eM(r),eZ(s,"resize",()=>{u("r",[])}),"function"==typeof s.matchMedia&&!f&&(!m.x||!m.y)){let e=t=>{eZ(s.matchMedia(`(resolution: ${s.devicePixelRatio}dppx)`),"change",()=>{t(),e(t)},{A:!0})};e(()=>{let[e,t]=h();en(R.U,e),u("r",[t])})}return R})()),a),tX=(e,t,r,n)=>{var i;let a,o,s,l=!1,{et:c,ct:u,rt:h,it:p,lt:d,ut:f}=n||{},[m,g]=(i=()=>l&&r(!0),a=!1,o=!!h&&new WeakMap,(s=t=>{o&&h&&w(h.map(r=>{let[n,i]=r||[];return[i&&n?(t||ev)(n,e):[],i]}),t=>w(t[0],r=>{let n=t[1],s=o.get(r)||[];if(e.contains(r)&&n){let e=eZ(r,n,t=>{a?(e(),o.delete(r)):i()});o.set(r,L(s,e))}else C(s),o.delete(r)}))})(),[()=>{a=!0},s]),A=u||[],v=(c||[]).concat(A),R=(i,a)=>{if(!T(a)){let o=d||ea,s=f||ea,l=[],c=[],u=!1,h=!1;if(w(a,r=>{let{attributeName:i,target:a,type:d,oldValue:f,addedNodes:m,removedNodes:g}=r,y="attributes"===d,v=e===a,R=y&&i,b=R&&el(a,i||""),x="string"==typeof b?b:null,M=R&&f!==x,S=O(A,i)&&M;if(t&&("childList"===d||!v)){let t=y&&M,c=t&&p&&eR(a,p),u=(c?!o(a,i,f,x):!y||t)&&!s(r,!!c,e,n);w(m,e=>L(l,e)),w(g,e=>L(l,e)),h=h||u}!t&&v&&M&&!o(a,i,f,x)&&(L(c,i),u=u||S)}),g(e=>P(l).reduce((t,r)=>(L(t,ev(e,r)),eR(r,e)?L(t,r):t),[])),t)return!i&&h&&r(!1),[!1];if(!T(c)||u){let e=[P(c),u];return i||r.apply(0,e),e}}},b=new y(J(R,!1));return[()=>(b.observe(e,{attributes:!0,attributeOldValue:!0,attributeFilter:v,subtree:t,childList:t,characterData:t}),l=!0,()=>{l&&(m(),b.disconnect(),l=!1)}),()=>{if(l)return R(!0,b.takeRecords())}]},tU=null,tW=(e,t,r)=>{let{ft:n}=r||{},i=e4("__osSizeObserverPlugin"),[a]=o({o:!1,u:!0});return()=>{let r=[],o=eO(`<div class="${ts}"><div class="${tc}"></div></div>`)[0],s=o.firstChild,l=e=>{let r=Array.isArray(e)&&!T(e),n=!1,i=!1;if(r){let[t,,r]=a(e[0].contentRect),o=eQ(t);n=!(i=e$(t,r))&&!o}else i=!0===e;n||t({_t:!0,ft:i})};if(R){if("boolean"!=typeof tU){let t=new R(ea);t.observe(e,{get box(){tU=!0}}),tU=tU||!1,t.disconnect()}let t=ee(l,{p:0,v:0}),n=e=>t(e),i=new R(n);if(i.observe(tU?e:s),L(r,[()=>{i.disconnect()},!tU&&eS(e,o)]),tU){let t=new R(n);t.observe(e,{box:"border-box"}),L(r,()=>t.disconnect())}}else{if(!i)return ea;let t,[a,c]=i(s,l,n);L(r,(t=[ey(o,tl),eZ(o,"animationstart",a),eS(e,o)],t.concat(c)))}return J(C,r)}},tV=(e,t)=>"function"==typeof t?t.apply(0,e):t,tE=(e,t,r,n)=>tV(e,void 0===n?r:n)||t.apply(0,e),tY=(e,t,r,n)=>{let i=tV(e,void 0===n?r:n);return!!i&&(i instanceof HTMLElement?i:t.apply(0,e))},tD=new WeakMap,tQ=(e,t,r)=>{let{tt:n}=tF(),i=e instanceof HTMLElement,a=i?e:e.target,c=tD.get(a);if(t&&!c){let c=[],d={},g=e=>{let t=ei(e),r=e4("__osOptionsValidationPlugin");return r?r(t,!0):t},A=en({},n(),g(t)),[y,x,M]=e1(),[N,_,T]=e1(r),q=(e,t)=>{T(e,t),M(e,t)},[et,es,ep,ed,ev,eO,eL]=((e,t,r,n)=>{let i=!1,a={Kt:!1,pn:!1},c=tk(t,{}),[d,g,A,y,x]=(e=>{let[t,r,n]=(e=>{let t,r,n,i,{K:a,P:o}=tF(),{elements:l}=a(),{padding:c,viewport:u,content:h}=l,p=e instanceof HTMLElement,d=p?{}:e,{elements:f}=d,{padding:m,viewport:g,content:A}=f||{},y=p?e:d.target,v=eR(y,"body"),R=y.ownerDocument,b=R.documentElement,x=()=>R.defaultView||s,M=J(tE,[y]),S=J(tY,[y]),w=J(ew,""),N=J(M,w,u),_=J(S,w,h),T=N(g),P=T===y,I=P&&v,k=!P&&_(A),F=I?b:T,X=I?F:y,U=!P&&S(w,c,m),W=!(!P&&T===k)&&k,V=[W,F,U,X].map(e=>e instanceof HTMLElement&&!(e&&e.parentElement)&&e),D=F&&O(V,F)||(t=eW(F),r=eE(F),n=eI(F,E),i=eI(F,Y),(!(r.w-t.w>0)||tw(n))&&(!(r.h-t.h>0)||tw(i)))?y:F,Q=I?b:F,$=I?R:F,B={dt:y,vt:X,L:F,ln:U,ht:W,gt:Q,Qt:$,an:v?b:D,Gt:R,bt:v,At:p,V:P,un:x,yt:e=>eg(F,tr,e),wt:(e,t)=>em(F,tr,e,t),St:()=>em(Q,tr,"scrolling",!0)},{dt:Z,vt:K,ln:G,L:H,ht:z}=B,j=[()=>{eh(K,[e6,e7]),eh(Z,e7),v&&eh(b,[e7,e6])}],q=eb([z,H,G,K,Z].find(e=>e&&!(e&&O(V,e)))),ee=I?Z:z||H,et=J(C,j);return[B,()=>{let e=x(),t=document.activeElement,r=e=>{eS(e&&e.parentElement,eb(e)),eM(e)},n=e=>eZ(e,"focusin focusout focus blur",eK,{I:!0,D:!1}),i="tabindex",a=el(H,i),s=n(t);return eu(K,e6,P?"":"host"),eu(G,ta,""),eu(H,tr,""),eu(z,to,""),!P&&(eu(H,i,a||"-1"),v&&eu(b,tt,"")),eS(ee,q),eS(K,G),eS(G||K,!P&&H),eS(H,z),L(j,[s,()=>{let e=document.activeElement,t=H&&O(V,H),o=t&&e===H?Z:e,s=n(o);eh(G,ta),eh(z,to),eh(H,tr),v&&eh(b,tt),a?eu(H,i,a):eh(H,i),z&&O(V,z)&&r(z),t&&r(H),G&&O(V,G)&&r(G),eq(o),s()}]),o&&!P&&(ef(H,tr,ti),L(j,J(eh,H,tr))),eq(!P&&v&&t===Z&&e.top===e?H:t),s(),q=0,et},et]})(e),i={ln:{t:0,r:0,b:0,l:0},_n:!1,F:{[W]:0,[V]:0,[U]:0,[I]:0,[k]:0,[X]:0,[F]:0},Vt:{x:0,y:0},Rt:{x:0,y:0},rn:{x:B,y:B},j:{x:!1,y:!1},Tt:ez()},{dt:a,gt:c,V:u,St:d}=t,{P:m,M:g}=tF(),A=!m&&(g.x||g.y),y=[(({ht:e})=>({Zt:t,fn:r,It:n})=>{let{$t:i}=t||{},{Ot:a}=r;e&&(i||n)&&eC(e,{[Q]:a&&"100%"})})(t),(({vt:e,ln:t,L:r,V:n},i)=>{let[a,s]=o({i:z,o:ek()},J(ek,e,"padding",""));return({Dt:e,Zt:o,fn:l,It:c})=>{let[u,h]=s(c),{P:p}=tF(),{_t:d,xt:f,Ct:m}=o||{},{B:g}=l,[A,y]=e("paddingAbsolute"),v=c||f;(d||h||v)&&([u,h]=a(c));let R=!n&&(y||m||h);if(R){let e=!A||!t&&!p,n=u.r+u.l,a=u.t+u.b,o={[W]:e&&!g?-n:0,[V]:e?-a:0,[U]:e&&g?-n:0,top:e?-u.t:0,right:e?g?-u.r:"auto":0,left:e?g?"auto":-u.l:0,[D]:e&&`calc(100% + ${n}px)`},s={[I]:e?u.t:0,[k]:e?u.r:0,[X]:e?u.b:0,[F]:e?u.l:0};eC(t||r,o),eC(r,s),en(i,{ln:u,_n:!e,F:t?s:en({},o,s)})}return{dn:R}}})(t,i),((e,t)=>{let r=tF(),{vt:n,ln:i,L:a,V:c,Qt:u,gt:d,bt:m,wt:g,un:A}=e,{P:y}=r,v=m&&c,R=J(l,0),b={display:()=>!1,direction:e=>"ltr"!==e,flexDirection:e=>e.endsWith("-reverse"),writingMode:e=>"horizontal-tb"!==e},x=er(b),M={i:G,o:{w:0,h:0}},S={i:H,o:{}},w=e=>{g(tn,!v&&e)},[O,L]=o(M,J(eY,a)),[N,_]=o(M,J(eE,a)),[T,C]=o(M),[I]=o(S),[k,F]=o(M),[X]=o(S),[U]=o({i:(e,t)=>{let r,n;return K(e,t,P((r=er(e),n=er(t),r.concat(n))))},o:{}}),[W,V]=o({i:(e,t)=>H(e.T,t.T)&&H(e.k,t.k),o:ez()}),D=e4(tL),Q=(e,t)=>{let r,n=t?E:Y;return`${n}${(r=String(e||""))?r[0].toUpperCase()+r.slice(1):""}`};return({Dt:o,Zt:l,fn:c,It:m},{dn:M})=>{var S;let P,{_t:K,Ht:G,xt:H,Ct:z,ft:J,Et:j}=l||{},{X:q,Y:ee,W:et}=D&&D.R(e,t,c,r,o)||{},[ei,ea]=((e,t)=>{let{M:r}=t,[n,i]=e("showNativeOverlaidScrollbars");return[n&&r.x&&r.y,i]})(o,r),[eo,es]=o("overflow"),el=tw(eo.x),ec=tw(eo.y),eu=K||M||H||z||j||ea,eh=L(m),ep=_(m),ed=C(m),ef=F(m);if(ea&&y&&g(ti,!ei),eu){let e,t;eg(n,e6,te)&&w(!0);let r=ee&&ee(),[i]=eh=O(m),[o]=ep=N(m),l=eV(a),c=v&&eU("inner",A()||s),u={w:R(o.w+i.w),h:R(o.h+i.h)},h={w:R((c?c.w:l.w+R(l.w-o.w))+i.w),h:R((c?c.h:l.h+R(l.h-o.h))+i.h)};r&&r(),ef=k(h),ed=T((e=+(s.devicePixelRatio%1!=0),{w:(t={w:R(u.w-h.w),h:R(u.h-h.h)}).w>e?t.w:0,h:t.h>e?t.h:0}),m)}let[eA,ey]=ef,[ev,eR]=ed,[eb,ex]=ep,[eM,eS]=eh,[ew]=I({x:ev.w>0,y:ev.h>0}),eO=el&&ec&&(ew.x||ew.y)||el&&ew.x&&!ew.y||ec&&ew.y&&!ew.x,eL=M||z||j||eS||ex||ey||eR||es||ea||eu||G&&v,[eN]=o("update.flowDirectionStyles"),[e_,eT]=U(eN?eN(a)||{}:eI(a,x),m),[eP,ek]=z||J||eT||m?W(((e,t)=>{let r=!er(e).length,n=!!t||x.some(t=>{let r=e[t];return"string"==typeof r&&b[t](r)});if(r||!n||!(a&&(a.offsetWidth||a.offsetHeight||a.getClientRects().length)))return{T:{x:0,y:0},k:{x:1,y:1}};w(!0);let i=eH(d),o=eZ(u,Z,e=>{let t=eH(d);e.isTrusted&&t.x===i.x&&t.y===i.y&&e.stopPropagation()},{I:!0,A:!0}),s=g("noContent",!0);eG(d,{x:0,y:0}),s();let l=eH(d),c=eE(d);eG(d,{x:c.w,y:c.h});let p=eH(d),m={x:p.x-l.x,y:p.y-l.y};eG(d,{x:-c.w,y:-c.h});let A=eH(d),y={x:A.x-l.x,y:A.y-l.y},v={x:h(m.x)>=h(y.x)?p.x:A.x,y:h(m.y)>=h(y.y)?p.y:A.y};return eG(d,i),f(()=>o()),{T:l,k:v}})(e_,!!eN),m):V(),eF={x:(P=(e,t,r,n)=>{let i=e===$?B:e.replace(`${$}-`,""),a=tw(e),o=tw(r);if(!t&&!n)return B;if(a&&o)return $;if(a){let e=t?$:B;return t&&n?i:e}let s=o&&n?$:B;return t?i:s})(eo.x,ew.x,eo.y,ew.y),y:P(eo.y,ew.y,eo.x,ew.x)};if(w(!1),eL){let e;S=eF,g((e=e=>[$,B,Z].map(t=>Q(tO(t),e)))(!0).concat(e()).join(" ")),g(er(S).map(e=>Q(S[e],"x"===e)).join(" "),!0),eF=((e,t)=>{let{overflowX:r,overflowY:n}=eI(e,[E,Y]);return{x:tO(r,t.x),y:tO(n,t.y)}})(a,ew),et&&q&&(q(eF,eb,eM),eC(a,et(eF)))}let[eX,eW]=X(eF);return em(n,e6,te,eO),em(i,ta,te,eO),en(t,{rn:eX,Vt:{x:eA.w,y:eA.h},Rt:{x:ev.w,y:ev.h},j:ew,Tt:((e,t)=>{let{T:r,k:n}=e,{w:i,h:a}=t,o=(e,t,r)=>{let n=p(e)*r,i=p(t)*r;if(n===i){let r=h(e),a=h(t);i=r>a?0:i,n=r<a?0:n}return[(n=n===i?0:n)+0,i+0]},[s,l]=o(r.x,n.x,i),[c,u]=o(r.y,n.y,a);return{T:{x:s,y:c},k:{x:l,y:u}}})(eP,ev)}),{en:eW,nn:ey,sn:eR,cn:ek||eR}}})(t,i)];return[r,e=>{let t={},r=A&&eH(c),n=r&&d();return w(y,r=>{en(t,r(e,t)||{})}),eG(c,r),n&&n(),u||eG(a,0),t},i,t,n]})(e),[M,N,_]=((e,t,r,n)=>{let i,a,s,l,c,u,h,p,d,f,m,g,A,y=`[${e6}]`,b=`[${tr}]`,x=["id","class","style","open","wrap","cols","rows"],{dt:M,vt:w,L:O,gt:N,ht:_,V:T,bt:P,yt:I,wt:k,St:F}=e,X={Ot:!1,B:"rtl"===eI(M,"direction")},U=tF(),W=e4(tL),[V]=o({i:G,o:{w:0,h:0}},()=>{let n=W&&W.R(e,t,X,U,r).Y,i=!(P&&T)&&eg(w,e6,te),a=!T&&I("arrange"),o=a&&eH(N),s=o&&F(),l=k(tn,i),c=a&&n&&n(),u=eE(O),h=eY(O);return c&&c(),eG(N,o),s&&s(),i&&l(),{w:u.w+h.w,h:u.h+h.h}}),E=(g=ee(n,{p:()=>d,v:()=>f,S:()=>m,m(e,t){let r,n,[i]=e,[a]=t;return[(r=er(i),n=er(a),r.concat(n)).reduce((e,t)=>(e[t]=i[t]||a[t],e),{})]}}),(A=(e,t)=>{if(Array.isArray(t)){let[e,r,n]=t;d=e,f=r,m=n}else"number"==typeof t?d=t:d=!1,f=!1,m=!1;g(e)}).O=g.O,A),Y=e=>{let t="rtl"===eI(M,"direction");en(e,{Ct:p!==t}),en(X,{B:t}),p=t},D=(e,t)=>{let[r,i]=e,a={$t:i};return en(X,{Ot:r}),t||n(a),a},Q=({_t:e,ft:t})=>{let r=t?n:E,i={_t:e||t,ft:t};Y(i),r(i,a)},$=(e,t)=>{let[,r]=V(),n={xt:r};return Y(n),r&&!t&&E(n,e?s:i),n},B=(e,t,r)=>{let n={Ht:t};return Y(n),t&&!r&&E(n,i),n},[Z,K]=_?((e,t)=>{let r,n=ew("os-trinsic-observer"),[i]=o({o:!1}),a=(e,r)=>{if(e){let n=i(0===e.h||e.isIntersecting||e.intersectionRatio>0),[,a]=n;return a&&!r&&t(n)&&[n]}},s=(e,t)=>a(t.pop(),e);return[()=>{let t=[];if(v)(r=new v(J(s,!1),{root:e})).observe(n),L(t,()=>{r.disconnect()});else{let e=()=>{a(eW(n))};L(t,tW(n,e)()),e()}return J(C,L(t,eS(e,n)))},()=>r&&s(!0,r.takeRecords())]})(w,D):[],H=!T&&tW(w,Q,{ft:!0}),[z,j]=tX(w,!1,B,{ct:x,et:x}),q=T&&R&&new R(e=>{let t=e[e.length-1].contentRect;Q({_t:!0,ft:e$(t,h)}),h=t});return[()=>{q&&q.observe(w);let e=H&&H(),t=Z&&Z(),r=z(),n=U.G(e=>{let[,t]=V();E({Et:e,xt:t,_t:P},l)});return()=>{q&&q.disconnect(),e&&e(),t&&t(),u&&u(),r(),n()}},({Dt:e,zt:t,It:r})=>{let n={},[o]=e("update.ignoreMutation"),[h,p]=e("update.attributes"),[d,f]=e("update.elementEvents"),[m,g]=e("update.debounce"),A=t||r;if(f||p){let e;c&&c(),u&&u();let[t,r]=tX(_||O,!0,$,{et:(e=h||[],x.concat(e)),rt:d,it:y,ut:(e,t)=>{var r,n;let i,a,s,l,c,{target:u,attributeName:h}=e;return!t&&!!h&&!T&&(s=ex(u,y),c=ex(l=u&&(r=b,(i=(n=s)?n instanceof Element&&n:document)&&i.querySelector(r)),y)===s,!!s&&!!l&&(s===u||l===u||c&&ex(ex(u,b),y)!==s))||!!ex(u,`.${tu}`)||(a=e,"function"==typeof o&&!!o(a))}});u=t(),c=r}if(g&&(E.O(),Array.isArray(m)||"number"==typeof m?(i=m,a=!1,s=tT,l=tP):S(m)?(i=m.mutation,a=m.resize,s=m.event,l=m.env):(i=!1,a=!1,s=!1,l=!1)),A){let e=j(),t=K&&K(),r=c&&c();e&&en(n,B(e[0],e[1],A)),t&&en(n,D(t[0],A)),r&&en(n,$(r[0],A))}return Y(n),n},X]})(y,A,c,e=>{es({},e)}),[T,q,,et]=((e,t,r,n,i,a,o)=>{let s,l,c,p,d,f,g=ea,A=0,y=["mouse","pen"],v=e=>t=>{r.Kt||e(t)},[R,x]=j(),[M,S]=j(100),[O,N]=j(50),[_,T]=j(()=>A),[P,I]=((e,t,r,n)=>{let{K:i}=tF(),{scrollbars:a}=i(),{slot:o}=a,{dt:s,vt:l,L:c,At:u,gt:h,bt:p,V:d}=t,{scrollbars:f}=u?{}:e,{slot:m}=f||{},g=[],A=[],y=[],v=tY([s,l,c],()=>d&&p?s:l,o,m),R=e=>{if(b){let t=null,n=[],i=new b({source:h,axis:e}),a=()=>{t&&t.cancel(),t=null};return{Mt:o=>{let{Tt:s}=r,l=eJ(s)[e],c="x"===e,u=[eF(0,c),eF(`calc(-100% + 100cq${c?"w":"h"})`,c)],h=l?u:u.reverse();return n[0]===h[0]&&n[1]===h[1]||(n=h,a(),t=o.kt.animate({clear:["left"],transform:h},{timeline:i})),a}}}},x={x:R("x"),y:R("y")},M=(e,t,r)=>{let n=r?ey:eA;w(e,e=>{n(e.Lt,t)})},S=(e,t)=>{w(e,e=>{let[r,n]=t(e);eC(r,n)})},O=(e,t,r)=>{let n="boolean"==typeof r;(!n||r)&&M(A,e,t),n&&r||M(y,e,t)},N=e=>{let t=e?"x":"y",r=ew(`${tu} ${e?tp:td}`),i=ew(tf),a=ew(tm),o={Lt:r,Pt:i,kt:a},s=x[t];return L(e?A:y,o),L(g,[eS(r,i),eS(i,a),J(eM,r),s&&s.Mt(o),n(o,O,e)]),o},_=J(N,!0),T=J(N,!1);return _(),T(),[{Ut:()=>{let e=(()=>{let{Rt:e,Vt:t}=r,n=(e,t)=>eo(0,1,e/(e+t)||0);return{x:n(t.x,e.x),y:n(t.y,e.y)}})(),t=e=>t=>[t.Lt,{"--os-viewport-percent":eT(e)+""}];S(A,t(e.x)),S(y,t(e.y))},Nt:()=>{if(!b){let{Tt:e}=r,t=ej(e,eH(h)),n=e=>t=>[t.Lt,{"--os-scroll-percent":eT(e)+""}];S(A,n(t.x)),S(y,n(t.y))}},qt:()=>{let{Tt:e}=r,t=eJ(e),n=e=>t=>[t.Lt,{"--os-scroll-direction":e?"0":"1"}];S(A,n(t.x)),S(y,n(t.y)),b&&(A.forEach(x.x.Mt),y.forEach(x.y.Mt))},Bt:()=>{if(d&&!p){let{Rt:e,Tt:t}=r,n=eJ(t),i=ej(t,eH(h)),a=t=>{let{Lt:r}=t,a=(r&&r.parentElement)===c&&r,o=(e,t,r)=>{let n=t*e;return eP(r?n:-n)};return[a,a&&{transform:eF({x:o(i.x,e.x,n.x),y:o(i.y,e.y,n.y)})}]};S(A,a),S(y,a)}},Ft:O,jt:{Xt:A,Yt:_,Wt:J(S,A)},Jt:{Xt:y,Yt:T,Wt:J(S,y)}},()=>(eS(v,A[0].Lt),eS(v,y[0].Lt),J(C,g))]})(e,a,i,(s=e=>y.includes(e.pointerType)&&K(),(e,r,n)=>{let o,l,c,p,d,f,g,{vt:A,L:y,V:R,gt:b,Gt:x,St:M}=a,{Lt:S,Pt:w,kt:O}=e,[N,_]=j(333),[T,P]=j(444),I=e=>{"function"==typeof b.scrollBy&&b.scrollBy({behavior:"smooth",left:e.x,top:e.y})},k=!0;return J(C,[eZ(O,"pointermove pointerleave",v(s)),eZ(S,"pointerenter",v(()=>{r(ty,!0)})),eZ(S,"pointerleave pointercancel",v(()=>{r(ty,!1)})),eZ(S,"wheel",v(e=>{let{deltaX:t,deltaY:n,deltaMode:i}=e;k&&0===i&&(S&&S.parentElement)===A&&I({x:t,y:n}),k=!1,r(tx,!0),N(()=>{k=!0,r(tx)}),e.preventDefault()}),{D:!1,I:!0}),!R&&eZ(S,"mousedown",v(()=>{let e=document.activeElement;(ec(e,tr)||ec(e,e6)||e===document.body)&&m(J(eq,y),25)})),eZ(S,"pointerdown",()=>{let e=eZ(x,"click",e=>{t(),eK(e)},{A:!0,I:!0,D:!1}),t=eZ(x,"pointerup pointercancel",()=>{t(),setTimeout(e,150)},{I:!0,D:!0})},{I:!0,D:!0}),(o="pointerup pointercancel lostpointercapture",l=`client${n?"X":"Y"}`,c=n?D:Q,p=n?"left":"top",d=n?"w":"h",f=n?"x":"y",g=[],eZ(w,"pointerdown",v(e=>{let r=ex(e.target,`.${tm}`)===O,a=r?O:w,s=t.scrollbars,m=s[r?"dragScroll":"clickScroll"],{button:A,isPrimary:y,pointerType:v}=e,{pointers:R}=s;if(0===A&&y&&m&&(R||[]).includes(v)){C(g),P();let t=!r&&(e.shiftKey||"instant"===m),s=J(eD,O),A=J(eD,w),y=(e,t)=>(e||s())[p]-(t||A())[p],v=u(eD(b)[c])/eW(b)[d]||1,R=eH(b)[f],S=e=>{eG(b,{[f]:R+e})},N=e=>{let{Rt:t}=i;S(1/v*e/(eW(w)[d]-eW(O)[d])*t[f])},_=e[l],k=s(),F=A(),X=k[c],U=y(k,F)+X/2,W=_-F[p]-U,V=r?0:W,E=e=>{C(Q),a.releasePointerCapture(e.pointerId)},Y=r||t,D=M(),Q=[eZ(x,o,E),eZ(x,"selectstart",e=>e.preventDefault(),{D:!1}),eZ(w,o,E),Y&&eZ(w,"pointermove",e=>N(V+e[l]-_)),Y&&(()=>{let e=eH(b);D();let t=eH(b),r={x:t.x-e.x,y:t.y-e.y};(h(r.x)>3||h(r.y)>3)&&(M(),eG(b,e),I(r),T(D))})];if(a.setPointerCapture(e.pointerId),t)N(W);else if(!r){let e=e4("__osClickScrollPlugin");if(e){let{Vt:t}=i,r=e(S,N,J(y),W,t[f],m,!!n,e=>{e?D():L(Q,D)});L(Q,r),L(g,J(r,!0))}}}}))),_,P])})),{vt:k,Qt:F,bt:X}=a,{Ft:U,Ut:W,Nt:V,qt:E,Bt:Y}=P,B=(e,t)=>{T();let n=e=>{r.Kt||U(tb,e)};if(e)n();else{let e=!p||!l;A>0&&!t?_(J(n,e)):n(e)}},K=()=>{(p?l:d)||(B(!0),M(()=>{B(!1)}))},G=e=>{y.includes(e.pointerType)&&(l=!0,!r.Kt&&p&&B(!0))},H=e=>{U(tR,e,!0),U(tR,e,!1)},z=[T,S,N,x,()=>g(),eZ(k,"pointerover",G,{A:!0}),eZ(k,"pointerenter",G),eZ(k,"pointerleave",e=>{y.includes(e.pointerType)&&(l=!1,!r.Kt&&p&&B(!1))}),eZ(k,"pointermove",v(e=>{y.includes(e.pointerType)&&c&&K()})),eZ(F,"scroll",v(e=>{R(()=>{V(),K()}),o(e),Y()}))],q=e4(tL);return[()=>J(C,L(z,I())),({Dt:e,It:t,Zt:r,tn:a})=>{let{nn:o,sn:s,en:l,cn:u}=a||{},{Ct:h,ft:m}=r||{},{B:y}=n,{M:R,P:b}=tF(),{rn:x,j:M}=i,[S,w]=e("showNativeOverlaidScrollbars"),[L,N]=e("scrollbars.theme"),[_,T]=e("scrollbars.visibility"),[P,C]=e("scrollbars.autoHide"),[I,k]=e("scrollbars.autoHideSuspend"),[D]=e("scrollbars.autoHideDelay"),[Q,K]=e("scrollbars.dragScroll"),[G,z]=e("scrollbars.clickScroll"),[j,ee]=e("overflow"),et=m&&!t,er=S&&R.x&&R.y,en=!b&&!q,ei=(e,t,r)=>{let n=e.includes(Z)&&(_===$||"auto"===_&&t===Z);return U(tg,n,r),n};if(A=D,(w||en)&&U("os-theme-none",er||en),N&&(U(f),U(L,!0),f=L),(k||et)&&(H(!I),et&&I&&(M.x||M.y?(g(),O(()=>{g=eZ(F,Z,v(J(H,!0)),{A:!0})})):H(!0))),C&&(c="move"===P,p="leave"===P,B(d="never"===P,!0)),K&&U(tS,Q),z&&U(tM,!!G),l||T||ee){let e=ei(j.x,x.x,!0),t=ei(j.y,x.y,!1);U(tA,!(e&&t))}(o||s||u||h||t)&&(V(),W(),Y(),u&&E(),U(tv,!M.x,!0),U(tv,!M.y,!1),U(th,y&&!X))},{},P]})(e,t,a,_,A,y,n),ei=e=>er(e).some(t=>!!e[t]),es=(e,n)=>{let{Kt:o,pn:s}=a;if(s||o&&i)return!1;let{vn:l,It:c,zt:u}=e,h=l||{},p=!!c||!i,d={Dt:tk(t,h,p),vn:h,It:p},f=n||N(en({},d,{zt:u})),m=g(en({},d,{fn:_,Zt:f}));q(en({},d,{Zt:f,tn:m}));let A=ei(f),y=ei(m),v=A||y||!!er(h).length||p;return i=!0,v&&r(e,{Zt:f,tn:m}),v};return[()=>{let{an:e,gt:t,St:r}=y,n=eH(e),i=[M(),d(),T(),()=>{a.pn=!0}],o=r();return eG(t,n),o(),J(C,i)},es,e=>{let t=a.Kt;a.Kt=e,e||t===e||es({It:!0,zt:!0})},()=>{q({Dt:tk(t,{},!1),vn:{},It:!1})},()=>({gn:a,hn:_,bn:A}),{yn:y,wn:et},x]})(e,A,({vn:e,It:t},{Zt:r,tn:n})=>{let{_t:i,Ct:a,$t:o,xt:s,Ht:l,ft:c}=r,{nn:u,sn:h,en:p,cn:d}=n;q("updated",[e_,{updateHints:{sizeChanged:!!i,directionChanged:!!a,heightIntrinsicChanged:!!o,overflowEdgeChanged:!!u,overflowAmountChanged:!!h,overflowStyleChanged:!!p,scrollCoordinatesChanged:!!d,contentMutation:!!s,hostMutation:!!l,appear:!!c},changedOptions:e||{},force:!!t}])},e=>q("scroll",[e_,e])),eN=e=>{let{gn:t}=ev(),{pn:r}=t;!r&&(tD.delete(a),C(c),q("destroyed",[e_,e]),x(),_())},e_={options(e,t){if(e){let r=tI(A,en(t?n():{},g(e)));er(r).length&&(en(A,r),es({vn:r}))}return en({},A)},on:N,off:(e,t)=>{e&&t&&_(e,t)},state(){let{gn:e,hn:t,bn:r}=ev(),{pn:n,Kt:i}=e,{B:a}=t,{Vt:o,Rt:s,rn:l,j:c,ln:u,_n:h,Tt:p}=r;return en({},{overflowEdge:o,overflowAmount:s,overflowStyle:l,hasOverflow:c,scrollCoordinates:{start:p.T,end:p.k},padding:u,paddingAbsolute:h,directionRTL:a,sleeping:i,destroyed:n})},elements(){let{dt:e,vt:t,ln:r,L:n,ht:i,gt:a,Qt:o}=eO.yn,{jt:s,Jt:l}=eO.wn,c=e=>{let{kt:t,Pt:r,Lt:n}=e;return{scrollbar:n,track:r,handle:t}},u=e=>{let{Xt:t,Yt:r}=e;return en({},c(t[0]),{clone:()=>{let e=c(r());return ed(),e}})};return en({},{target:e,host:t,padding:r||n,viewport:n,content:i||n,scrollOffsetElement:a,scrollEventElement:o,scrollbarHorizontal:u(s),scrollbarVertical:u(l)})},update:e=>es({It:e,zt:!0}),destroy:J(eN,!1),sleep:ep,plugin:e=>d[er(e)[0]]};return(L(c,[eL]),tD.set(a,e_),e5(e2,tQ,[e_,y,d]),((e,t)=>{let{nativeScrollbarsOverlaid:r,body:n}=t||{},{M:i,P:a,K:o}=tF(),{nativeScrollbarsOverlaid:s,body:l}=o().cancel,c=void 0===n?l:n,u=(i.x||i.y)&&(null!=r?r:s);return!!u||!!(e&&(null===c?!a:c))})(eO.yn.bt,!i&&e.cancel))?eN(!0):(L(c,et()),q("initialized",[e_]),e_.update()),e_}return c};tQ.plugin=e=>{let t=Array.isArray(e),r=t?e:[e],n=r.map(e=>e5(e,tQ)[0]);return w(r,e=>w(e,(t,r)=>{e2[r]=e[r]})),t?n:n[0]},tQ.valid=e=>{let t,r=e&&e.elements,n="function"==typeof r&&r();return S(n)&&(t=n.target,!!tD.get(t))},tQ.env=()=>{let{U:e,M:t,P:r,J:n,ot:i,st:a,K:o,Z:s,tt:l,nt:c}=tF();return en({},{scrollbarsSize:e,scrollbarsOverlaid:t,scrollbarsHiding:r,scrollTimeline:n,staticDefaultInitialization:i,staticDefaultOptions:a,getDefaultInitialization:o,setDefaultInitialization:s,getDefaultOptions:l,setDefaultOptions:c})},tQ.nonce=e=>{i=e},tQ.trustedTypePolicy=e=>{n=e},r.d(t,{},{ae:tQ})},42451(e,t,r){let{PI:n}=Math,i=n+1e-4,a=.5,o=[1,1];function s(e,t,r,n=e=>e){return e*n(.5-t*(.5-r))}let{min:l}=Math;function c(e,t,r){let n=l(1,t/r);return l(1,e+(l(1,1-n)-e)*(.275*n))}function u(e,t){return[e[0]+t[0],e[1]+t[1]]}function h(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e}function p(e,t){return[e[0]-t[0],e[1]-t[1]]}function d(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e}function f(e,t){return[e[0]*t,e[1]*t]}function m(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e}function g(e){return[e[1],-e[0]]}function A(e,t){let r=t[0];return e[0]=t[1],e[1]=-r,e}function y(e,t){return e[0]*t[0]+e[1]*t[1]}function v(e,t){let r=e[0]-t[0],n=e[1]-t[1];return r*r+n*n}function R(e){var t;return t=Math.hypot(e[0],e[1]),[e[0]/t,e[1]/t]}function b(e,t,r){let n=Math.sin(r),i=Math.cos(r),a=e[0]-t[0],o=e[1]-t[1];return[a*i-o*n+t[0],a*n+o*i+t[1]]}function x(e,t,r,n){let i=Math.sin(n),a=Math.cos(n),o=t[0]-r[0],s=t[1]-r[1];return e[0]=o*a-s*i+r[0],e[1]=o*i+s*a+r[1],e}function M(e,t,r){return u(e,f(p(t,e),r))}let S=[0,0],w=[0,0],O=[0,0];function L(e,t,r){return!1===e||void 0===e?0:!0===e?Math.max(t,r):e}let N=[0,0];function _(e){return null!=e&&e>=0}function T(e,t={}){return function(e,t={}){var r,n;let{size:a=16,smoothing:o=.5,thinning:l=.5,simulatePressure:M=!0,easing:N=e=>e,start:_={},end:T={},last:P=!1}=t,{cap:C=!0,easing:I=e=>e*(2-e)}=_,{cap:k=!0,easing:F=e=>--e*e*e+1}=T;if(0===e.length||a<=0)return[];let X=e[e.length-1].runningLength,U=L(_.taper,a,X),W=L(T.taper,a,X),V=(a*o)**2,E=[],Y=[],D=e.slice(0,10).reduce((e,t)=>{let r=t.pressure;return M&&(r=c(e,t.distance,a)),(e+r)/2},e[0].pressure),Q=s(a,l,e[e.length-1].pressure,N),$,B=e[0].vector,Z=e[0].point,K=Z,G=Z,H=K,z=!1;for(let t=0;t<e.length;t++){let{pressure:r}=e[t],{point:n,vector:o,distance:f,runningLength:g}=e[t],R=t===e.length-1;if(!R&&X-g<3)continue;l?(M&&(r=c(D,f,a)),Q=s(a,l,r,N)):Q=a/2,void 0===$&&($=Q),Q=Math.max(.01,Q*Math.min(g<U?I(g/U):1,X-g<W?F((X-g)/W):1));let b=(R?e[t]:e[t+1]).vector,L=R?1:y(o,b),_=0>y(o,B)&&!z,T=null!==L&&L<0;if(_||T){A(S,B),m(S,S,Q);for(let e=0;e<=1;e+=.07692307692307693)d(w,n,S),x(w,w,n,i*e),G=[w[0],w[1]],E.push(G),h(O,n,S),x(O,O,n,-(i*e)),H=[O[0],O[1]],Y.push(H);Z=G,K=H,T&&(z=!0);continue}if(z=!1,R){A(S,o),m(S,S,Q),E.push(p(n,S)),Y.push(u(n,S));continue}(function(e,t,r,n){let i=r[0]-t[0],a=r[1]-t[1];e[0]=t[0]+i*n,e[1]=t[1]+a*n})(S,b,o,L),A(S,S),m(S,S,Q),d(w,n,S),G=[w[0],w[1]],(t<=1||v(Z,G)>V)&&(E.push(G),Z=G),h(O,n,S),H=[O[0],O[1]],(t<=1||v(K,H)>V)&&(Y.push(H),K=H),D=r,B=o}let J=[e[0].point[0],e[0].point[1]],j=e.length>1?[e[e.length-1].point[0],e[e.length-1].point[1]]:u(e[0].point,[1,1]),q=[],ee=[];if(1===e.length){if(!(U||W)||P)return function(e,t){var r;let n=(r=R(g(p(e,u(e,[1,1])))),u(e,f(r,-t))),a=[],o=1/13;for(let t=o;t<=1;t+=o)a.push(b(n,e,2*i*t));return a}(J,$||Q)}else{let t,a,o;U||W&&1===e.length||(C?q.push(...function(e,t){let r=[],n=1/13;for(let a=n;a<=1;a+=n)r.push(b(t,e,i*a));return r}(J,Y[0])):q.push(...(a=f(t=p(E[0],Y[0]),.5),o=f(t,.51),[p(J,a),p(J,o),u(J,o),u(J,a)])));let s=g([-(r=e[e.length-1].vector)[0],-r[1]]);W||U&&1===e.length?ee.push(j):k?ee.push(...function(e,t,r){let n=[],a=u(e,f(t,r)),o=1/29;for(let t=o;t<1;t+=o)n.push(b(a,e,3*i*t));return n}(j,s,Q)):ee.push(u(j,f(s,n=Q)),u(j,f(s,.99*n)),p(j,f(s,.99*n)),p(j,f(s,n)))}return E.concat(ee,Y.reverse(),q)}(function(e,t={}){let{streamline:r=.5,size:n=16,last:i=!1}=t;if(0===e.length)return[];let s=.15+(1-r)*.85,l=Array.isArray(e[0])?e:e.map(({x:e,y:t,pressure:r=a})=>[e,t,r]);if(2===l.length){let e=l[1];l=l.slice(0,-1);for(let t=1;t<5;t++)l.push(M(l[0],e,t/4))}1===l.length&&(l=[...l,[...u(l[0],o),...l[0].slice(2)]]);let c=[{point:[l[0][0],l[0][1]],pressure:_(l[0][2])?l[0][2]:.25,vector:[...o],distance:0,runningLength:0}],h=!1,p=0,f=c[0],m=l.length-1;for(let e=1;e<l.length;e++){var g,A;let t=i&&e===m?[l[e][0],l[e][1]]:M(f.point,l[e],s);if(g=f.point,g[0]===t[0]&&g[1]===t[1])continue;let r=(A=f.point,Math.hypot(t[1]-A[1],t[0]-A[0]));if(p+=r,e<m&&!h){if(p<n)continue;h=!0}d(N,f.point,t),f={point:t,pressure:_(l[e][2])?l[e][2]:a,vector:R(N),distance:r,runningLength:p},c.push(f)}return c[0].vector=c[1]?.vector||[0,0],c}(e,t),t)}r.d(t,{$4:()=>T})},14870(e,t,r){r.d(t,{q:()=>ti});var n=r(71710),i=r(84140);let a={34:"''",35:"\\#",36:"\\$",37:"\\%",38:"\\&",60:"\\ensuremath{<}",62:"\\ensuremath{>}",92:"\\textbackslash",94:"\\textasciicircum",95:"\\_",123:"\\{",125:"\\}",126:"\\textasciitilde",160:"~",161:"\\textexclamdown",162:"\\textcent",163:"\\textsterling",164:"\\textcurrency",165:"\\textyen",166:"\\textbrokenbar",167:"\\textsection",168:"\\textasciidieresis",169:"\\textcopyright",170:"\\textordfeminine",171:"\\guillemotleft",172:"\\textlnot",173:"\\-",174:"\\textregistered",175:"\\textasciimacron",176:"\\textdegree",177:"\\ensuremath{\\pm}",178:"\\texttwosuperior",179:"\\textthreesuperior",180:"\\textasciiacute",181:"\\textmu",182:"\\textparagraph",183:"\\textperiodcentered",185:"\\textonesuperior",186:"\\textordmasculine",187:"\\guillemotright",188:"\\textonequarter",189:"\\textonehalf",190:"\\textthreequarters",191:"\\textquestiondown",192:"\\`A",193:"\\'A",194:"\\^A",195:"\\~A",196:'\\"A',197:"\\r{A}",198:"\\AE",199:"\\c{C}",200:"\\`E",201:"\\'E",202:"\\^E",203:'\\"E',204:"\\`I",205:"\\'I",206:"\\^I",207:'\\"I',208:"\\DH",209:"\\~N",210:"\\`O",211:"\\'O",212:"\\^O",213:"\\~O",214:'\\"O',215:"\\texttimes",216:"\\O",217:"\\`U",218:"\\'U",219:"\\^U",220:'\\"U',221:"\\'Y",222:"\\TH",223:"\\ss",224:"\\`a",225:"\\'a",226:"\\^a",227:"\\~a",228:'\\"a',229:"\\r{a}",230:"\\ae",231:"\\c{c}",232:"\\`e",233:"\\'e",234:"\\^e",235:'\\"e',236:"\\`\\i",237:"\\'\\i",238:"\\^\\i",239:'\\"\\i',240:"\\dh",241:"\\~n",242:"\\`o",243:"\\'o",244:"\\^o",245:"\\~o",246:'\\"o',247:"\\textdiv",248:"\\o",249:"\\`u",250:"\\'u",251:"\\^u",252:'\\"u',253:"\\'y",254:"\\th",255:'\\"y',256:"\\={A}",257:"\\={a}",258:"\\u{A}",259:"\\u{a}",260:"\\k{A}",261:"\\k{a}",262:"\\'C",263:"\\'c",264:"\\^{C}",265:"\\^{c}",266:"\\.{C}",267:"\\.{c}",268:"\\v{C}",269:"\\v{c}",270:"\\v{D}",271:"\\v{d}",272:"\\DJ",273:"\\dj",274:"\\={E}",275:"\\={e}",276:"\\u{E}",277:"\\u{e}",278:"\\.{E}",279:"\\.{e}",280:"\\k{E}",281:"\\k{e}",282:"\\v{E}",283:"\\v{e}",284:"\\^{G}",285:"\\^{g}",286:"\\u{G}",287:"\\u{g}",288:"\\.{G}",289:"\\.{g}",290:"\\c{G}",291:"\\c{g}",292:"\\^{H}",293:"\\^{h}",294:"\\={H}",295:"\\={h}",296:"\\~{I}",297:"\\~{i}",298:"\\={I}",299:"\\={i}",300:"\\u{I}",301:"\\u{i}",302:"\\k{I}",303:"\\k{i}",304:"\\.I",305:"\\i",306:"\\IJ",307:"\\ij",308:"\\^{J}",309:"\\^{j}",310:"\\c{K}",311:"\\c{k}",312:"\\textsc{k}",313:"\\'L",314:"\\'l",315:"\\c{L}",316:"\\c{l}",317:"\\v{L}",318:"\\v{l}",319:"\\.{L}",320:"\\.{l}",321:"\\L",322:"\\l",323:"\\'N",324:"\\'n",325:"\\c{N}",326:"\\c{n}",327:"\\v{N}",328:"\\v{n}",329:"\\nument{149}",330:"\\NG",331:"\\ng",332:"\\={O}",333:"\\={o}",334:"\\u{O}",335:"\\u{o}",336:"\\H{O}",337:"\\H{o}",338:"\\OE",339:"\\oe",340:"\\'R",341:"\\'r",342:"\\c{R}",343:"\\c{r}",344:"\\v{R}",345:"\\v{r}",346:"\\'S",347:"\\'s",348:"\\^{S}",349:"\\^{s}",350:"\\c{S}",351:"\\c{s}",352:"\\v{S}",353:"\\v{s}",354:"\\c{T}",355:"\\c{t}",356:"\\v{T}",357:"\\v{t}",358:"\\={T}",359:"\\={t}",360:"\\~{U}",361:"\\~{u}",362:"\\={U}",363:"\\={u}",364:"\\u{U}",365:"\\u{u}",366:"\\r{U}",367:"\\r{u}",368:"\\'{U}",369:"\\'{u}",370:"\\k{U}",371:"\\k{u}",372:"\\^{W}",373:"\\^{w}",374:"\\^{Y}",375:"\\^{y}",376:'\\"Y',377:"\\'Z",378:"\\'z",379:"\\.Z",380:"\\.z",381:"\\v{Z}",382:"\\v{z}",402:"\\textflorin",405:"\\texthvlig",414:"\\textnrleg",501:"\\'{g}",552:"\\c{E}",553:"\\c{e}",601:"\\textschwa",603:"\\varepsilon",632:"\\textphi",660:"\\textglotstop",670:"\\textturnk",695:"\\textsuperscript{w}",700:"'",710:"\\textasciicircum",711:"\\textasciicaron",728:"\\textasciibreve",729:"\\textperiodcentered",730:"\\r{}",731:"\\k{}",732:"\\textasciitilde",733:"\\textacutedbl",775:"\\ensuremath{\\dot{}}",776:"\\ensuremath{\\ddot{}}",902:"\\'{}A",904:"\\'{}E",905:"\\'{}H",906:"\\'{}I",908:"\\'{}O",910:"\\'{}Y",911:"\\'{}\\ensuremath{\\Omega}",912:"\\acute{\\ddot{\\iota}}",913:"A",914:"B",915:"\\ensuremath{\\Gamma}",916:"\\ensuremath{\\Delta}",917:"E",918:"Z",919:"H",920:"\\ensuremath{\\Theta}",921:"I",922:"K",923:"\\ensuremath{\\Lambda}",924:"M",925:"N",926:"\\ensuremath{\\Xi}",927:"O",928:"\\ensuremath{\\Pi}",929:"P",931:"\\ensuremath{\\Sigma}",932:"T",933:"\\ensuremath{\\Upsilon}",934:"\\ensuremath{\\Phi}",935:"X",936:"\\ensuremath{\\Psi}",937:"\\ensuremath{\\Omega}",938:"\\ensuremath{\\ddot{I}}",939:"\\ensuremath{\\ddot{Y}}",940:"\\ensuremath{\\acute\\alpha}",941:"\\ensuremath{\\acute\\epsilon}",942:"\\ensuremath{\\acute\\eta}",943:"\\ensuremath{\\acute\\iota}",944:"\\ensuremath{\\acute{\\ddot{\\upsilon}}}",945:"\\ensuremath{\\alpha}",946:"\\ensuremath{\\beta}",947:"\\ensuremath{\\gamma}",948:"\\ensuremath{\\delta}",949:"\\ensuremath{\\varepsilon}",950:"\\ensuremath{\\zeta}",951:"\\ensuremath{\\eta}",952:"\\ensuremath{\\theta}",953:"\\ensuremath{\\iota}",954:"\\ensuremath{\\kappa}",955:"\\ensuremath{\\lambda}",956:"\\ensuremath{\\mu}",957:"\\ensuremath{\\nu}",958:"\\ensuremath{\\xi}",959:"o",960:"\\ensuremath{\\pi}",961:"\\ensuremath{\\rho}",962:"\\ensuremath{\\varsigma}",963:"\\ensuremath{\\sigma}",964:"\\ensuremath{\\tau}",965:"\\ensuremath{\\upsilon}",966:"\\ensuremath{\\varphi}",967:"\\ensuremath{\\chi}",968:"\\ensuremath{\\psi}",969:"\\ensuremath{\\omega}",970:"\\ensuremath{\\ddot\\iota}",971:"\\ensuremath{\\ddot{\\upsilon}}",972:"\\'{o}",973:"\\ensuremath{\\acute\\upsilon}",974:"\\ensuremath{\\acute\\omega}",977:"\\ensuremath{\\vartheta}",978:"\\Upsilon",981:"\\ensuremath{\\phi}",982:"\\ensuremath{\\varpi}",1008:"\\ensuremath{\\varkappa}",1009:"\\ensuremath{\\varrho}",1013:"\\ensuremath{\\epsilon}",1014:"\\ensuremath{\\backepsilon}",1024:"\\`\\CYRE",1025:"\\CYRYO",1026:"\\CYRDJE",1027:"\\`\\CYRG",1028:"\\CYRIE",1029:"\\CYRDZE",1030:"\\CYRII",1031:"\\CYRYI",1032:"\\CYRJE",1033:"\\CYRLJE",1034:"\\CYRNJE",1035:"\\CYRTSHE",1036:"\\`\\CYRK",1037:"\\`\\CYRI",1038:"\\CYRUSHRT",1039:"\\CYRDZHE",1040:"\\CYRA",1041:"\\CYRB",1042:"\\CYRV",1043:"\\CYRG",1044:"\\CYRD",1045:"\\CYRE",1046:"\\CYRZH",1047:"\\CYRZ",1048:"\\CYRI",1049:"\\CYRISHRT",1050:"\\CYRK",1051:"\\CYRL",1052:"\\CYRM",1053:"\\CYRN",1054:"\\CYRO",1055:"\\CYRP",1056:"\\CYRR",1057:"\\CYRS",1058:"\\CYRT",1059:"\\CYRU",1060:"\\CYRF",1061:"\\CYRH",1062:"\\CYRC",1063:"\\CYRCH",1064:"\\CYRSH",1065:"\\CYRSHCH",1066:"\\CYRHRDSN",1067:"\\CYRERY",1068:"\\CYRSFTSN",1069:"\\CYREREV",1070:"\\CYRYU",1071:"\\CYRYA",1072:"\\cyra",1073:"\\cyrb",1074:"\\cyrv",1075:"\\cyrg",1076:"\\cyrd",1077:"\\cyre",1078:"\\cyrzh",1079:"\\cyrz",1080:"\\cyri",1081:"\\cyrishrt",1082:"\\cyrk",1083:"\\cyrl",1084:"\\cyrm",1085:"\\cyrn",1086:"\\cyro",1087:"\\cyrp",1088:"\\cyrr",1089:"\\cyrs",1090:"\\cyrt",1091:"\\cyru",1092:"\\cyrf",1093:"\\cyrh",1094:"\\cyrc",1095:"\\cyrch",1096:"\\cyrsh",1097:"\\cyrshch",1098:"\\cyrhrdsn",1099:"\\cyrery",1100:"\\cyrsftsn",1101:"\\cyrerev",1102:"\\cyryu",1103:"\\cyrya",1104:"\\`\\cyre",1105:"\\cyryo",1106:"\\cyrdje",1107:"\\`\\cyrg",1108:"\\cyrie",1109:"\\cyrdze",1110:"\\cyrii",1111:"\\cyryi",1112:"\\cyrje",1113:"\\cyrlje",1114:"\\cyrnje",1115:"\\cyrtshe",1116:"\\`\\cyrk",1117:"\\`\\cyri",1118:"\\cyrushrt",1119:"\\cyrdzhe",1120:"\\cyrchar\\CYROMEGA",1121:"\\cyrchar\\cyromega",1122:"\\CYRYAT",1123:"\\cyryat",1124:"\\cyrchar\\CYRIOTE",1125:"\\cyrchar\\cyriote",1126:"\\cyrchar\\CYRLYUS",1127:"\\cyrchar\\cyrlyus",1128:"\\cyrchar\\CYRIOTLYUS",1129:"\\cyrchar\\cyriotlyus",1130:"\\CYRBYUS",1131:"\\cyrbyus",1132:"\\cyrchar\\CYRIOTBYUS",1133:"\\cyrchar\\cyriotbyus",1134:"\\cyrchar\\CYRKSI",1135:"\\cyrchar\\cyrksi",1136:"\\cyrchar\\CYRPSI",1137:"\\cyrchar\\cyrpsi",1138:"\\CYRFITA",1139:"\\cyrfita",1140:"\\CYRIZH",1141:"\\cyrizh",1142:"\\C\\CYRIZH",1143:"\\C\\cyrizh",1144:"\\cyrchar\\CYRUK",1145:"\\cyrchar\\cyruk",1146:"\\cyrchar\\CYROMEGARND",1147:"\\cyrchar\\cyromegarnd",1148:"\\cyrchar\\CYROMEGATITLO",1149:"\\cyrchar\\cyromegatitlo",1150:"\\cyrchar\\CYROT",1151:"\\cyrchar\\cyrot",1152:"\\cyrchar\\CYRKOPPA",1153:"\\cyrchar\\cyrkoppa",1154:"\\cyrchar\\cyrthousands",1160:"\\cyrchar\\cyrhundredthousands",1161:"\\cyrchar\\cyrmillions",1164:"\\CYRSEMISFTSN",1165:"\\cyrsemisftsn",1166:"\\CYRRTICK",1167:"\\cyrrtick",1168:"\\CYRGUP",1169:"\\cyrgup",1170:"\\CYRGHCRS",1171:"\\cyrghcrs",1172:"\\CYRGHK",1173:"\\cyrghk",1174:"\\CYRZHDSC",1175:"\\cyrzhdsc",1176:"\\CYRZDSC",1177:"\\cyrzdsc",1178:"\\CYRKDSC",1179:"\\cyrkdsc",1180:"\\CYRKVCRS",1181:"\\cyrkvcrs",1182:"\\CYRKHCRS",1183:"\\cyrkhcrs",1184:"\\CYRKBEAK",1185:"\\cyrkbeak",1186:"\\CYRNDSC",1187:"\\cyrndsc",1188:"\\CYRNG",1189:"\\cyrng",1190:"\\CYRPHK",1191:"\\cyrphk",1192:"\\CYRABHHA",1193:"\\cyrabhha",1194:"\\CYRSDSC",1195:"\\cyrsdsc",1196:"\\CYRTDSC",1197:"\\cyrtdsc",1198:"\\CYRY",1199:"\\cyry",1200:"\\CYRYHCRS",1201:"\\cyryhcrs",1202:"\\CYRHDSC",1203:"\\cyrhdsc",1204:"\\CYRTETSE",1205:"\\cyrtetse",1206:"\\CYRCHRDSC",1207:"\\cyrchrdsc",1208:"\\CYRCHVCRS",1209:"\\cyrchvcrs",1210:"\\CYRSHHA",1211:"\\cyrshha",1212:"\\CYRABHCH",1213:"\\cyrabhch",1214:"\\CYRABHCHDSC",1215:"\\cyrabhchdsc",1216:"\\CYRpalochka",1217:"\\U\\CYRZH",1218:"\\U\\cyrzh",1219:"\\CYRKHK",1220:"\\cyrkhk",1221:"\\CYRLDSC",1222:"\\cyrldsc",1223:"\\CYRNHK",1224:"\\cyrnhk",1227:"\\CYRCHLDSC",1228:"\\cyrchldsc",1229:"\\CYRMDSC",1230:"\\cyrmdsc",1232:"\\U\\CYRA",1233:"\\U\\cyra",1234:'\\"\\CYRA',1235:'\\"\\cyra',1236:"\\CYRAE",1237:"\\cyrae",1238:"\\U\\CYRE",1239:"\\U\\cyre",1240:"\\CYRSCHWA",1241:"\\cyrschwa",1242:'\\"\\CYRSCHWA',1243:'\\"\\cyrschwa',1244:'\\"\\CYRZH',1245:'\\"\\cyrzh',1246:'\\"\\CYRZ',1247:'\\"\\cyrz',1248:"\\CYRABHDZE",1249:"\\cyrabhdze",1250:"\\=\\CYRI",1251:"\\=\\cyri",1252:'\\"\\CYRI',1253:'\\"\\cyri',1254:'\\"\\CYRO',1255:'\\"\\cyro',1256:"\\CYROTLD",1257:"\\cyrotld",1260:'\\"\\CYREREV',1261:'\\"\\cyrerev',1262:"\\=\\CYRU",1263:"\\=\\cyru",1264:'\\"\\CYRU',1265:'\\"\\cyru',1266:"\\H\\CYRU",1267:"\\H\\cyru",1268:'\\"\\CYRCH',1269:'\\"\\cyrch',1270:"\\CYRGDSC",1271:"\\cyrgdsc",1272:'\\"\\CYRERY',1273:'\\"\\cyrery',1274:"\\CYRGDSCHCRS",1275:"\\cyrgdschcrs",1276:"\\CYRHHK",1277:"\\cyrhhk",1278:"\\CYRHHCRS",1279:"\\cyrhhcrs",3647:"\\textbaht",8192:"\\enskip",8193:"\\quad",8194:"\\enskip",8195:"\\quad",8196:"\\hspace{0.33em}",8197:"\\hspace{0.25em}",8198:"\\hspace{0.167em}",8199:"~",8200:"\\;",8201:"\\,",8202:"\\hspace{1pt}",8204:"\\textcompwordmark",8208:"-",8209:"\\nobreakdash-",8210:"-",8211:"\\textendash",8212:"\\textemdash",8213:"\\textemdash",8214:"\\ensuremath{\\Vert}",8216:"\\textquoteleft",8217:"\\textquoteright",8218:"\\quotesinglbase",8220:"\\textquotedblleft",8221:"\\textquotedblright",8222:"\\quotedblbase",8224:"\\textdagger",8225:"\\textdaggerdbl",8226:"\\textbullet",8228:".",8229:"..",8230:"\\textellipsis",8240:"\\textperthousand",8241:"\\textpertenthousand",8242:"'",8243:"''",8244:"'''",8245:"\\ensuremath{\\backprime}",8249:"\\guilsinglleft",8250:"\\guilsinglright",8251:"\\textreferencemark",8253:"\\textinterrobang",8260:"\\textfractionsolidus",8270:"\\textasteriskcentered",8274:"\\textdiscount",8279:"''''",8287:"\\hspace{0.22em}",8288:"\\nolinebreak",8289:"",8353:"\\textcolonmonetary",8356:"\\textlira",8358:"\\textnaira",8361:"\\textwon",8363:"\\textdong",8364:"\\texteuro",8369:"\\textpeso",8450:"\\ensuremath{\\mathbb{C}}",8451:"\\textcelsius",8457:"\\ensuremath{^\\circ}F",8458:"\\ensuremath{g}",8459:"\\ensuremath{\\mathscr{H}}",8460:"\\ensuremath{\\mathfrak{H}}",8461:"\\ensuremath{\\mathbb{H}}",8462:"\\ensuremath{h}",8463:"\\ensuremath{\\hbar}",8464:"\\ensuremath{\\mathscr{I}}",8465:"\\ensuremath{\\mathfrak{I}}",8466:"\\ensuremath{\\mathscr{L}}",8467:"\\ensuremath{\\ell}",8469:"\\ensuremath{\\mathbb{N}}",8470:"\\textnumero",8471:"\\textcircledP",8472:"\\ensuremath{\\wp}",8473:"\\ensuremath{\\mathbb{P}}",8474:"\\ensuremath{\\mathbb{Q}}",8475:"\\ensuremath{\\mathscr{R}}",8476:"\\ensuremath{\\mathfrak{R}}",8477:"\\ensuremath{\\mathbb{R}}",8478:"\\textrecipe",8480:"\\textservicemark",8482:"\\texttrademark",8484:"\\ensuremath{\\mathbb{Z}}",8486:"\\textohm",8487:"\\textmho",8488:"\\ensuremath{\\mathfrak{Z}}",8490:"K",8491:"\\r{A}",8492:"\\ensuremath{\\mathscr{B}}",8493:"\\ensuremath{\\mathfrak{C}}",8494:"\\textestimated",8495:"\\ensuremath{e}",8496:"\\ensuremath{\\mathscr{E}}",8497:"\\ensuremath{\\mathscr{F}}",8499:"\\ensuremath{\\mathscr{M}}",8500:"\\ensuremath{o}",8501:"\\ensuremath{\\aleph}",8502:"\\ensuremath{\\beth}",8503:"\\ensuremath{\\gimel}",8504:"\\ensuremath{\\daleth}",8531:"\\textfrac{1}{3}",8532:"\\textfrac{2}{3}",8533:"\\textfrac{1}{5}",8534:"\\textfrac{2}{5}",8535:"\\textfrac{3}{5}",8536:"\\textfrac{4}{5}",8537:"\\textfrac{1}{6}",8538:"\\textfrac{5}{6}",8539:"\\textfrac{1}{8}",8540:"\\textfrac{3}{8}",8541:"\\textfrac{5}{8}",8542:"\\textfrac{7}{8}",8592:"\\textleftarrow",8593:"\\textuparrow",8594:"\\textrightarrow",8595:"\\textdownarrow",8596:"\\ensuremath{\\leftrightarrow}",8597:"\\ensuremath{\\updownarrow}",8598:"\\ensuremath{\\nwarrow}",8599:"\\ensuremath{\\nearrow}",8600:"\\ensuremath{\\searrow}",8601:"\\ensuremath{\\swarrow}",8602:"\\ensuremath{\\nleftarrow}",8603:"\\ensuremath{\\nrightarrow}",8604:"\\ensuremath{\\arrowwaveleft}",8605:"\\ensuremath{\\arrowwaveright}",8606:"\\ensuremath{\\twoheadleftarrow}",8608:"\\ensuremath{\\twoheadrightarrow}",8610:"\\ensuremath{\\leftarrowtail}",8611:"\\ensuremath{\\rightarrowtail}",8614:"\\ensuremath{\\mapsto}",8617:"\\ensuremath{\\hookleftarrow}",8618:"\\ensuremath{\\hookrightarrow}",8619:"\\ensuremath{\\looparrowleft}",8620:"\\ensuremath{\\looparrowright}",8621:"\\ensuremath{\\leftrightsquigarrow}",8622:"\\ensuremath{\\nleftrightarrow}",8624:"\\ensuremath{\\Lsh}",8625:"\\ensuremath{\\Rsh}",8630:"\\ensuremath{\\curvearrowleft}",8631:"\\ensuremath{\\curvearrowright}",8634:"\\ensuremath{\\circlearrowleft}",8635:"\\ensuremath{\\circlearrowright}",8636:"\\ensuremath{\\leftharpoonup}",8637:"\\ensuremath{\\leftharpoondown}",8638:"\\ensuremath{\\upharpoonright}",8639:"\\ensuremath{\\upharpoonleft}",8640:"\\ensuremath{\\rightharpoonup}",8641:"\\ensuremath{\\rightharpoondown}",8642:"\\ensuremath{\\downharpoonright}",8643:"\\ensuremath{\\downharpoonleft}",8644:"\\ensuremath{\\rightleftarrows}",8645:"\\ensuremath{\\dblarrowupdown}",8646:"\\ensuremath{\\leftrightarrows}",8647:"\\ensuremath{\\leftleftarrows}",8648:"\\ensuremath{\\upuparrows}",8649:"\\ensuremath{\\rightrightarrows}",8650:"\\ensuremath{\\downdownarrows}",8651:"\\ensuremath{\\leftrightharpoons}",8652:"\\ensuremath{\\rightleftharpoons}",8653:"\\ensuremath{\\nLeftarrow}",8654:"\\ensuremath{\\nLeftrightarrow}",8655:"\\ensuremath{\\nRightarrow}",8656:"\\ensuremath{\\Leftarrow}",8657:"\\ensuremath{\\Uparrow}",8658:"\\ensuremath{\\Rightarrow}",8659:"\\ensuremath{\\Downarrow}",8660:"\\ensuremath{\\Leftrightarrow}",8661:"\\ensuremath{\\Updownarrow}",8666:"\\ensuremath{\\Lleftarrow}",8667:"\\ensuremath{\\Rrightarrow}",8669:"\\ensuremath{\\rightsquigarrow}",8693:"\\ensuremath{\\DownArrowUpArrow}",8704:"\\ensuremath{\\forall}",8705:"\\ensuremath{\\complement}",8706:"\\ensuremath{\\partial}",8707:"\\ensuremath{\\exists}",8708:"\\ensuremath{\\nexists}",8709:"\\ensuremath{\\varnothing}",8710:"\\ensuremath{\\Delta}",8711:"\\ensuremath{\\nabla}",8712:"\\ensuremath{\\in}",8713:"\\ensuremath{\\notin}",8714:"\\ensuremath{\\in}",8715:"\\ensuremath{\\ni}",8716:"\\ensuremath{\\not\\ni}",8717:"\\ensuremath{\\ni}",8718:"\\ensuremath{\\blacksquare}",8719:"\\ensuremath{\\prod}",8720:"\\ensuremath{\\coprod}",8721:"\\ensuremath{\\sum}",8722:"\\ensuremath{-}",8723:"\\ensuremath{\\mp}",8724:"\\ensuremath{\\dotplus}",8725:"\\ensuremath{/}",8726:"\\ensuremath{\\smallsetminus}",8727:"\\ensuremath{*}",8728:"\\ensuremath{\\circ}",8729:"\\ensuremath{\\bullet}",8730:"\\ensuremath{\\sqrt{}}",8731:"\\ensuremath{\\sqrt[3]{}}",8732:"\\ensuremath{\\sqrt[4]{}}",8733:"\\ensuremath{\\propto}",8734:"\\ensuremath{\\infty}",8735:"\\ensuremath{\\rightangle}",8736:"\\ensuremath{\\angle}",8737:"\\ensuremath{\\measuredangle}",8738:"\\ensuremath{\\sphericalangle}",8739:"\\ensuremath{\\mid}",8740:"\\ensuremath{\\nmid}",8741:"\\ensuremath{\\parallel}",8742:"\\ensuremath{\\nparallel}",8743:"\\ensuremath{\\wedge}",8744:"\\ensuremath{\\vee}",8745:"\\ensuremath{\\cap}",8746:"\\ensuremath{\\cup}",8747:"\\ensuremath{\\int}",8748:"\\ensuremath{\\iint}",8749:"\\ensuremath{\\iiint}",8750:"\\ensuremath{\\oint}",8751:"\\ensuremath{\\surfintegral}",8752:"\\ensuremath{\\volintegral}",8753:"\\ensuremath{\\clwintegral}",8756:"\\ensuremath{\\therefore}",8757:"\\ensuremath{\\because}",8758:"\\ensuremath{:}",8759:"\\ensuremath{::}",8762:"\\ensuremath{\\mathbin{{:}\\!\\!{-}\\!\\!{:}}}",8763:"\\ensuremath{\\homothetic}",8764:"\\ensuremath{\\sim}",8765:"\\ensuremath{\\backsim}",8766:"\\ensuremath{\\lazysinv}",8768:"\\ensuremath{\\wr}",8769:"\\ensuremath{\\not\\sim}",8771:"\\ensuremath{\\simeq}",8772:"\\ensuremath{\\not\\simeq}",8773:"\\ensuremath{\\cong}",8774:"\\ensuremath{\\approxnotequal}",8775:"\\ensuremath{\\not\\cong}",8776:"\\ensuremath{\\approx}",8777:"\\ensuremath{\\not\\approx}",8778:"\\ensuremath{\\approxeq}",8779:"\\ensuremath{\\tildetrpl}",8780:"\\ensuremath{\\allequal}",8781:"\\ensuremath{\\asymp}",8782:"\\ensuremath{\\Bumpeq}",8783:"\\ensuremath{\\bumpeq}",8784:"\\ensuremath{\\doteq}",8785:"\\ensuremath{\\doteqdot}",8786:"\\ensuremath{\\fallingdotseq}",8787:"\\ensuremath{\\risingdotseq}",8788:"\\ensuremath{:=}",8789:"\\ensuremath{=:}",8790:"\\ensuremath{\\eqcirc}",8791:"\\ensuremath{\\circeq}",8793:"\\ensuremath{\\estimates}",8795:"\\ensuremath{\\starequal}",8796:"\\ensuremath{\\triangleq}",8800:"\\ensuremath{\\neq}",8801:"\\ensuremath{\\equiv}",8802:"\\ensuremath{\\not\\equiv}",8804:"\\ensuremath{\\leq}",8805:"\\ensuremath{\\geq}",8806:"\\ensuremath{\\leqq}",8807:"\\ensuremath{\\geqq}",8808:"\\ensuremath{\\lneqq}",8809:"\\ensuremath{\\gneqq}",8810:"\\ensuremath{\\ll}",8811:"\\ensuremath{\\gg}",8812:"\\ensuremath{\\between}",8813:"\\ensuremath{\\not\\kern-0.3em\\times}",8814:"\\ensuremath{\\nless}",8815:"\\ensuremath{\\ngtr}",8816:"\\ensuremath{\\nleq}",8817:"\\ensuremath{\\ngeq}",8818:"\\ensuremath{\\lesssim}",8819:"\\ensuremath{\\gtrsim}",8820:"\\ensuremath{\\not\\lesssim}",8821:"\\ensuremath{\\not\\gtrsim}",8822:"\\ensuremath{\\lessgtr}",8823:"\\ensuremath{\\gtrless}",8824:"\\ensuremath{\\notlessgreater}",8825:"\\ensuremath{\\notgreaterless}",8826:"\\ensuremath{\\prec}",8827:"\\ensuremath{\\succ}",8828:"\\ensuremath{\\preceq}",8829:"\\ensuremath{\\succeq}",8830:"\\ensuremath{\\precsim}",8831:"\\ensuremath{\\succsim}",8832:"\\ensuremath{\\nprec}",8833:"\\ensuremath{\\nsucc}",8834:"\\ensuremath{\\subset}",8835:"\\ensuremath{\\supset}",8836:"\\ensuremath{\\not\\subset}",8837:"\\ensuremath{\\not\\supset}",8838:"\\ensuremath{\\subseteq}",8839:"\\ensuremath{\\supseteq}",8840:"\\ensuremath{\\nsubseteq}",8841:"\\ensuremath{\\nsupseteq}",8842:"\\ensuremath{\\subsetneq}",8843:"\\ensuremath{\\supsetneq}",8846:"\\ensuremath{\\uplus}",8847:"\\ensuremath{\\sqsubset}",8848:"\\ensuremath{\\sqsupset}",8849:"\\ensuremath{\\sqsubseteq}",8850:"\\ensuremath{\\sqsupseteq}",8851:"\\ensuremath{\\sqcap}",8852:"\\ensuremath{\\sqcup}",8853:"\\ensuremath{\\oplus}",8854:"\\ensuremath{\\ominus}",8855:"\\ensuremath{\\otimes}",8856:"\\ensuremath{\\oslash}",8857:"\\ensuremath{\\odot}",8858:"\\ensuremath{\\circledcirc}",8859:"\\ensuremath{\\circledast}",8861:"\\ensuremath{\\circleddash}",8862:"\\ensuremath{\\boxplus}",8863:"\\ensuremath{\\boxminus}",8864:"\\ensuremath{\\boxtimes}",8865:"\\ensuremath{\\boxdot}",8866:"\\ensuremath{\\vdash}",8867:"\\ensuremath{\\dashv}",8868:"\\ensuremath{\\top}",8869:"\\ensuremath{\\perp}",8871:"\\ensuremath{\\truestate}",8872:"\\ensuremath{\\forcesextra}",8873:"\\ensuremath{\\Vdash}",8874:"\\ensuremath{\\Vvdash}",8875:"\\ensuremath{\\VDash}",8876:"\\ensuremath{\\nvdash}",8877:"\\ensuremath{\\nvDash}",8878:"\\ensuremath{\\nVdash}",8879:"\\ensuremath{\\nVDash}",8882:"\\ensuremath{\\vartriangleleft}",8883:"\\ensuremath{\\vartriangleright}",8884:"\\ensuremath{\\trianglelefteq}",8885:"\\ensuremath{\\trianglerighteq}",8886:"\\ensuremath{\\original}",8887:"\\ensuremath{\\image}",8888:"\\ensuremath{\\multimap}",8889:"\\ensuremath{\\hermitconjmatrix}",8890:"\\ensuremath{\\intercal}",8891:"\\ensuremath{\\veebar}",8894:"\\ensuremath{\\rightanglearc}",8896:"\\ensuremath{\\bigwedge}",8897:"\\ensuremath{\\bigvee}",8898:"\\ensuremath{\\bigcap}",8899:"\\ensuremath{\\bigcup}",8900:"\\ensuremath{\\diamond}",8901:"\\ensuremath{\\cdot}",8902:"\\ensuremath{\\star}",8903:"\\ensuremath{\\divideontimes}",8904:"\\ensuremath{\\bowtie}",8905:"\\ensuremath{\\ltimes}",8906:"\\ensuremath{\\rtimes}",8907:"\\ensuremath{\\leftthreetimes}",8908:"\\ensuremath{\\rightthreetimes}",8909:"\\ensuremath{\\backsimeq}",8910:"\\ensuremath{\\curlyvee}",8911:"\\ensuremath{\\curlywedge}",8912:"\\ensuremath{\\Subset}",8913:"\\ensuremath{\\Supset}",8914:"\\ensuremath{\\Cap}",8915:"\\ensuremath{\\Cup}",8916:"\\ensuremath{\\pitchfork}",8918:"\\ensuremath{\\lessdot}",8919:"\\ensuremath{\\gtrdot}",8920:"\\ensuremath{\\verymuchless}",8921:"\\ensuremath{\\verymuchgreater}",8922:"\\ensuremath{\\lesseqgtr}",8923:"\\ensuremath{\\gtreqless}",8926:"\\ensuremath{\\curlyeqprec}",8927:"\\ensuremath{\\curlyeqsucc}",8930:"\\ensuremath{\\not\\sqsubseteq}",8931:"\\ensuremath{\\not\\sqsupseteq}",8934:"\\ensuremath{\\lnsim}",8935:"\\ensuremath{\\gnsim}",8936:"\\ensuremath{\\precedesnotsimilar}",8937:"\\ensuremath{\\succnsim}",8938:"\\ensuremath{\\ntriangleleft}",8939:"\\ensuremath{\\ntriangleright}",8940:"\\ensuremath{\\ntrianglelefteq}",8941:"\\ensuremath{\\ntrianglerighteq}",8942:"\\ensuremath{\\vdots}",8943:"\\ensuremath{\\cdots}",8944:"\\ensuremath{\\udots}",8945:"\\ensuremath{\\ddots}",8965:"\\ensuremath{\\barwedge}",8966:"\\ensuremath{\\varperspcorrespond}",8968:"\\ensuremath{\\lceil}",8969:"\\ensuremath{\\rceil}",8970:"\\ensuremath{\\lfloor}",8971:"\\ensuremath{\\rfloor}",8981:"\\ensuremath{\\recorder}",8982:'\\ensuremath{\\mathchar"2208}',8988:"\\ensuremath{\\ulcorner}",8989:"\\ensuremath{\\urcorner}",8990:"\\ensuremath{\\llcorner}",8991:"\\ensuremath{\\lrcorner}",8994:"\\ensuremath{\\frown}",8995:"\\ensuremath{\\smile}",9001:"\\textlangle",9002:"\\textrangle",9136:"\\ensuremath{\\lmoustache}",9137:"\\ensuremath{\\rmoustache}",9250:"\\textblank",9251:"\\textvisiblespace",9632:"\\ensuremath{\\blacksquare}",9633:"\\ensuremath{\\square}",9642:"{\\small\\ensuremath{\\blacksquare}}",9645:"\\fbox{~~}",9651:"\\ensuremath{\\bigtriangleup}",9652:"\\ensuremath{\\blacktriangle}",9653:"\\ensuremath{\\vartriangle}",9656:"\\ensuremath{\\blacktriangleright}",9657:"\\ensuremath{\\triangleright}",9661:"\\ensuremath{\\bigtriangledown}",9662:"\\ensuremath{\\blacktriangledown}",9663:"\\ensuremath{\\triangledown}",9666:"\\ensuremath{\\blacktriangleleft}",9667:"\\ensuremath{\\triangleleft}",9674:"\\ensuremath{\\lozenge}",9675:"\\ensuremath{\\bigcirc}",9702:"\\textopenbullet",9711:"\\textbigcircle",9826:"\\ensuremath{\\diamond}",9833:"\\quarternote",9834:"\\textmusicalnote",9837:"\\flat",9838:"\\natural",9839:"\\sharp",10216:"\\ensuremath{\\langle}",10217:"\\ensuremath{\\rangle}",10229:"\\ensuremath{\\longleftarrow}",10230:"\\ensuremath{\\longrightarrow}",10231:"\\ensuremath{\\longleftrightarrow}",10232:"\\ensuremath{\\Longleftarrow}",10233:"\\ensuremath{\\Longrightarrow}",10234:"\\ensuremath{\\Longleftrightarrow}",10236:"\\ensuremath{\\longmapsto}",10239:"\\ensuremath{\\sim\\joinrel\\leadsto}",10643:"\\ensuremath{<\\kern-0.58em(}",10731:"\\ensuremath{\\blacklozenge}",10767:"\\ensuremath{\\clockoint}",10774:"\\ensuremath{\\sqrint}",10815:"\\ensuremath{\\amalg}",10862:"\\ensuremath{\\stackrel{*}{=}}",10869:"==",10877:"\\ensuremath{\\leqslant}",10878:"\\ensuremath{\\geqslant}",10885:"\\ensuremath{\\lessapprox}",10886:"\\ensuremath{\\gtrapprox}",10887:"\\ensuremath{\\lneq}",10888:"\\ensuremath{\\gneq}",10889:"\\ensuremath{\\lnapprox}",10890:"\\ensuremath{\\gnapprox}",10891:"\\ensuremath{\\lesseqqgtr}",10892:"\\ensuremath{\\gtreqqless}",10901:"\\ensuremath{\\eqslantless}",10902:"\\ensuremath{\\eqslantgtr}",10927:"\\ensuremath{\\preceq}",10928:"\\ensuremath{\\succeq}",10933:"\\ensuremath{\\precneqq}",10934:"\\ensuremath{\\succneqq}",10935:"\\ensuremath{\\precapprox}",10936:"\\ensuremath{\\succapprox}",10937:"\\ensuremath{\\precnapprox}",10938:"\\ensuremath{\\succnapprox}",10949:"\\ensuremath{\\subseteqq}",10950:"\\ensuremath{\\supseteqq}",10955:"\\ensuremath{\\subsetneqq}",10956:"\\ensuremath{\\supsetneqq}",11005:"\\ensuremath{{{/}\\!\\!{/}}}",12296:"\\ensuremath{\\langle}",12297:"\\ensuremath{\\rangle}",64256:"ff",64257:"fi",64258:"fl",64259:"ffi",64260:"ffl",119808:"\\ensuremath{\\mathbf{A}}",119809:"\\ensuremath{\\mathbf{B}}",119810:"\\ensuremath{\\mathbf{C}}",119811:"\\ensuremath{\\mathbf{D}}",119812:"\\ensuremath{\\mathbf{E}}",119813:"\\ensuremath{\\mathbf{F}}",119814:"\\ensuremath{\\mathbf{G}}",119815:"\\ensuremath{\\mathbf{H}}",119816:"\\ensuremath{\\mathbf{I}}",119817:"\\ensuremath{\\mathbf{J}}",119818:"\\ensuremath{\\mathbf{K}}",119819:"\\ensuremath{\\mathbf{L}}",119820:"\\ensuremath{\\mathbf{M}}",119821:"\\ensuremath{\\mathbf{N}}",119822:"\\ensuremath{\\mathbf{O}}",119823:"\\ensuremath{\\mathbf{P}}",119824:"\\ensuremath{\\mathbf{Q}}",119825:"\\ensuremath{\\mathbf{R}}",119826:"\\ensuremath{\\mathbf{S}}",119827:"\\ensuremath{\\mathbf{T}}",119828:"\\ensuremath{\\mathbf{U}}",119829:"\\ensuremath{\\mathbf{V}}",119830:"\\ensuremath{\\mathbf{W}}",119831:"\\ensuremath{\\mathbf{X}}",119832:"\\ensuremath{\\mathbf{Y}}",119833:"\\ensuremath{\\mathbf{Z}}",119834:"\\ensuremath{\\mathbf{a}}",119835:"\\ensuremath{\\mathbf{b}}",119836:"\\ensuremath{\\mathbf{c}}",119837:"\\ensuremath{\\mathbf{d}}",119838:"\\ensuremath{\\mathbf{e}}",119839:"\\ensuremath{\\mathbf{f}}",119840:"\\ensuremath{\\mathbf{g}}",119841:"\\ensuremath{\\mathbf{h}}",119842:"\\ensuremath{\\mathbf{i}}",119843:"\\ensuremath{\\mathbf{j}}",119844:"\\ensuremath{\\mathbf{k}}",119845:"\\ensuremath{\\mathbf{l}}",119846:"\\ensuremath{\\mathbf{m}}",119847:"\\ensuremath{\\mathbf{n}}",119848:"\\ensuremath{\\mathbf{o}}",119849:"\\ensuremath{\\mathbf{p}}",119850:"\\ensuremath{\\mathbf{q}}",119851:"\\ensuremath{\\mathbf{r}}",119852:"\\ensuremath{\\mathbf{s}}",119853:"\\ensuremath{\\mathbf{t}}",119854:"\\ensuremath{\\mathbf{u}}",119855:"\\ensuremath{\\mathbf{v}}",119856:"\\ensuremath{\\mathbf{w}}",119857:"\\ensuremath{\\mathbf{x}}",119858:"\\ensuremath{\\mathbf{y}}",119859:"\\ensuremath{\\mathbf{z}}",119860:"\\ensuremath{\\mathit{A}}",119861:"\\ensuremath{\\mathit{B}}",119862:"\\ensuremath{\\mathit{C}}",119863:"\\ensuremath{\\mathit{D}}",119864:"\\ensuremath{\\mathit{E}}",119865:"\\ensuremath{\\mathit{F}}",119866:"\\ensuremath{\\mathit{G}}",119867:"\\ensuremath{\\mathit{H}}",119868:"\\ensuremath{\\mathit{I}}",119869:"\\ensuremath{\\mathit{J}}",119870:"\\ensuremath{\\mathit{K}}",119871:"\\ensuremath{\\mathit{L}}",119872:"\\ensuremath{\\mathit{M}}",119873:"\\ensuremath{\\mathit{N}}",119874:"\\ensuremath{\\mathit{O}}",119875:"\\ensuremath{\\mathit{P}}",119876:"\\ensuremath{\\mathit{Q}}",119877:"\\ensuremath{\\mathit{R}}",119878:"\\ensuremath{\\mathit{S}}",119879:"\\ensuremath{\\mathit{T}}",119880:"\\ensuremath{\\mathit{U}}",119881:"\\ensuremath{\\mathit{V}}",119882:"\\ensuremath{\\mathit{W}}",119883:"\\ensuremath{\\mathit{X}}",119884:"\\ensuremath{\\mathit{Y}}",119885:"\\ensuremath{\\mathit{Z}}",119886:"\\ensuremath{\\mathit{a}}",119887:"\\ensuremath{\\mathit{b}}",119888:"\\ensuremath{\\mathit{c}}",119889:"\\ensuremath{\\mathit{d}}",119890:"\\ensuremath{\\mathit{e}}",119891:"\\ensuremath{\\mathit{f}}",119892:"\\ensuremath{\\mathit{g}}",119893:"\\ensuremath{\\mathit{h}}",119894:"\\ensuremath{\\mathit{i}}",119895:"\\ensuremath{\\mathit{j}}",119896:"\\ensuremath{\\mathit{k}}",119897:"\\ensuremath{\\mathit{l}}",119898:"\\ensuremath{\\mathit{m}}",119899:"\\ensuremath{\\mathit{n}}",119900:"\\ensuremath{\\mathit{o}}",119901:"\\ensuremath{\\mathit{p}}",119902:"\\ensuremath{\\mathit{q}}",119903:"\\ensuremath{\\mathit{r}}",119904:"\\ensuremath{\\mathit{s}}",119905:"\\ensuremath{\\mathit{t}}",119906:"\\ensuremath{\\mathit{u}}",119907:"\\ensuremath{\\mathit{v}}",119908:"\\ensuremath{\\mathit{w}}",119909:"\\ensuremath{\\mathit{x}}",119910:"\\ensuremath{\\mathit{y}}",119911:"\\ensuremath{\\mathit{z}}",119912:"\\ensuremath{\\boldsymbol{\\mathit{A}}}",119913:"\\ensuremath{\\boldsymbol{\\mathit{B}}}",119914:"\\ensuremath{\\boldsymbol{\\mathit{C}}}",119915:"\\ensuremath{\\boldsymbol{\\mathit{D}}}",119916:"\\ensuremath{\\boldsymbol{\\mathit{E}}}",119917:"\\ensuremath{\\boldsymbol{\\mathit{F}}}",119918:"\\ensuremath{\\boldsymbol{\\mathit{G}}}",119919:"\\ensuremath{\\boldsymbol{\\mathit{H}}}",119920:"\\ensuremath{\\boldsymbol{\\mathit{I}}}",119921:"\\ensuremath{\\boldsymbol{\\mathit{J}}}",119922:"\\ensuremath{\\boldsymbol{\\mathit{K}}}",119923:"\\ensuremath{\\boldsymbol{\\mathit{L}}}",119924:"\\ensuremath{\\boldsymbol{\\mathit{M}}}",119925:"\\ensuremath{\\boldsymbol{\\mathit{N}}}",119926:"\\ensuremath{\\boldsymbol{\\mathit{O}}}",119927:"\\ensuremath{\\boldsymbol{\\mathit{P}}}",119928:"\\ensuremath{\\boldsymbol{\\mathit{Q}}}",119929:"\\ensuremath{\\boldsymbol{\\mathit{R}}}",119930:"\\ensuremath{\\boldsymbol{\\mathit{S}}}",119931:"\\ensuremath{\\boldsymbol{\\mathit{T}}}",119932:"\\ensuremath{\\boldsymbol{\\mathit{U}}}",119933:"\\ensuremath{\\boldsymbol{\\mathit{V}}}",119934:"\\ensuremath{\\boldsymbol{\\mathit{W}}}",119935:"\\ensuremath{\\boldsymbol{\\mathit{X}}}",119936:"\\ensuremath{\\boldsymbol{\\mathit{Y}}}",119937:"\\ensuremath{\\boldsymbol{\\mathit{Z}}}",119938:"\\ensuremath{\\boldsymbol{\\mathit{a}}}",119939:"\\ensuremath{\\boldsymbol{\\mathit{b}}}",119940:"\\ensuremath{\\boldsymbol{\\mathit{c}}}",119941:"\\ensuremath{\\boldsymbol{\\mathit{d}}}",119942:"\\ensuremath{\\boldsymbol{\\mathit{e}}}",119943:"\\ensuremath{\\boldsymbol{\\mathit{f}}}",119944:"\\ensuremath{\\boldsymbol{\\mathit{g}}}",119945:"\\ensuremath{\\boldsymbol{\\mathit{h}}}",119946:"\\ensuremath{\\boldsymbol{\\mathit{i}}}",119947:"\\ensuremath{\\boldsymbol{\\mathit{j}}}",119948:"\\ensuremath{\\boldsymbol{\\mathit{k}}}",119949:"\\ensuremath{\\boldsymbol{\\mathit{l}}}",119950:"\\ensuremath{\\boldsymbol{\\mathit{m}}}",119951:"\\ensuremath{\\boldsymbol{\\mathit{n}}}",119952:"\\ensuremath{\\boldsymbol{\\mathit{o}}}",119953:"\\ensuremath{\\boldsymbol{\\mathit{p}}}",119954:"\\ensuremath{\\boldsymbol{\\mathit{q}}}",119955:"\\ensuremath{\\boldsymbol{\\mathit{r}}}",119956:"\\ensuremath{\\boldsymbol{\\mathit{s}}}",119957:"\\ensuremath{\\boldsymbol{\\mathit{t}}}",119958:"\\ensuremath{\\boldsymbol{\\mathit{u}}}",119959:"\\ensuremath{\\boldsymbol{\\mathit{v}}}",119960:"\\ensuremath{\\boldsymbol{\\mathit{w}}}",119961:"\\ensuremath{\\boldsymbol{\\mathit{x}}}",119962:"\\ensuremath{\\boldsymbol{\\mathit{y}}}",119963:"\\ensuremath{\\boldsymbol{\\mathit{z}}}",119964:"\\ensuremath{\\mathscr{A}}",119965:"\\ensuremath{\\mathscr{B}}",119966:"\\ensuremath{\\mathscr{C}}",119967:"\\ensuremath{\\mathscr{D}}",119968:"\\ensuremath{\\mathscr{E}}",119969:"\\ensuremath{\\mathscr{F}}",119970:"\\ensuremath{\\mathscr{G}}",119971:"\\ensuremath{\\mathscr{H}}",119972:"\\ensuremath{\\mathscr{I}}",119973:"\\ensuremath{\\mathscr{J}}",119974:"\\ensuremath{\\mathscr{K}}",119975:"\\ensuremath{\\mathscr{L}}",119976:"\\ensuremath{\\mathscr{M}}",119977:"\\ensuremath{\\mathscr{N}}",119978:"\\ensuremath{\\mathscr{O}}",119979:"\\ensuremath{\\mathscr{P}}",119980:"\\ensuremath{\\mathscr{Q}}",119981:"\\ensuremath{\\mathscr{R}}",119982:"\\ensuremath{\\mathscr{S}}",119983:"\\ensuremath{\\mathscr{T}}",119984:"\\ensuremath{\\mathscr{U}}",119985:"\\ensuremath{\\mathscr{V}}",119986:"\\ensuremath{\\mathscr{W}}",119987:"\\ensuremath{\\mathscr{X}}",119988:"\\ensuremath{\\mathscr{Y}}",119989:"\\ensuremath{\\mathscr{Z}}",119990:"\\ensuremath{\\mathscr{a}}",119991:"\\ensuremath{\\mathscr{b}}",119992:"\\ensuremath{\\mathscr{c}}",119993:"\\ensuremath{\\mathscr{d}}",119995:"\\ensuremath{\\mathscr{f}}",119997:"\\ensuremath{\\mathscr{h}}",119998:"\\ensuremath{\\mathscr{i}}",119999:"\\ensuremath{\\mathscr{j}}",12e4:"\\ensuremath{\\mathscr{k}}",120001:"\\ensuremath{\\mathscr{l}}",120002:"\\ensuremath{\\mathscr{m}}",120003:"\\ensuremath{\\mathscr{n}}",120005:"\\ensuremath{\\mathscr{p}}",120006:"\\ensuremath{\\mathscr{q}}",120007:"\\ensuremath{\\mathscr{r}}",120008:"\\ensuremath{\\mathscr{s}}",120009:"\\ensuremath{\\mathscr{t}}",120010:"\\ensuremath{\\mathscr{u}}",120011:"\\ensuremath{\\mathscr{v}}",120012:"\\ensuremath{\\mathscr{w}}",120013:"\\ensuremath{\\mathscr{x}}",120014:"\\ensuremath{\\mathscr{y}}",120015:"\\ensuremath{\\mathscr{z}}",120068:"\\ensuremath{\\mathfrak{A}}",120069:"\\ensuremath{\\mathfrak{B}}",120070:"\\ensuremath{\\mathfrak{C}}",120071:"\\ensuremath{\\mathfrak{D}}",120072:"\\ensuremath{\\mathfrak{E}}",120073:"\\ensuremath{\\mathfrak{F}}",120074:"\\ensuremath{\\mathfrak{G}}",120075:"\\ensuremath{\\mathfrak{H}}",120076:"\\ensuremath{\\mathfrak{I}}",120077:"\\ensuremath{\\mathfrak{J}}",120078:"\\ensuremath{\\mathfrak{K}}",120079:"\\ensuremath{\\mathfrak{L}}",120080:"\\ensuremath{\\mathfrak{M}}",120081:"\\ensuremath{\\mathfrak{N}}",120082:"\\ensuremath{\\mathfrak{O}}",120083:"\\ensuremath{\\mathfrak{P}}",120084:"\\ensuremath{\\mathfrak{Q}}",120085:"\\ensuremath{\\mathfrak{R}}",120086:"\\ensuremath{\\mathfrak{S}}",120087:"\\ensuremath{\\mathfrak{T}}",120088:"\\ensuremath{\\mathfrak{U}}",120089:"\\ensuremath{\\mathfrak{V}}",120090:"\\ensuremath{\\mathfrak{W}}",120091:"\\ensuremath{\\mathfrak{X}}",120092:"\\ensuremath{\\mathfrak{Y}}",120093:"\\ensuremath{\\mathfrak{Z}}",120094:"\\ensuremath{\\mathfrak{a}}",120095:"\\ensuremath{\\mathfrak{b}}",120096:"\\ensuremath{\\mathfrak{c}}",120097:"\\ensuremath{\\mathfrak{d}}",120098:"\\ensuremath{\\mathfrak{e}}",120099:"\\ensuremath{\\mathfrak{f}}",120100:"\\ensuremath{\\mathfrak{g}}",120101:"\\ensuremath{\\mathfrak{h}}",120102:"\\ensuremath{\\mathfrak{i}}",120103:"\\ensuremath{\\mathfrak{j}}",120104:"\\ensuremath{\\mathfrak{k}}",120105:"\\ensuremath{\\mathfrak{l}}",120106:"\\ensuremath{\\mathfrak{m}}",120107:"\\ensuremath{\\mathfrak{n}}",120108:"\\ensuremath{\\mathfrak{o}}",120109:"\\ensuremath{\\mathfrak{p}}",120110:"\\ensuremath{\\mathfrak{q}}",120111:"\\ensuremath{\\mathfrak{r}}",120112:"\\ensuremath{\\mathfrak{s}}",120113:"\\ensuremath{\\mathfrak{t}}",120114:"\\ensuremath{\\mathfrak{u}}",120115:"\\ensuremath{\\mathfrak{v}}",120116:"\\ensuremath{\\mathfrak{w}}",120117:"\\ensuremath{\\mathfrak{x}}",120118:"\\ensuremath{\\mathfrak{y}}",120119:"\\ensuremath{\\mathfrak{z}}",120120:"\\ensuremath{\\mathbb{A}}",120121:"\\ensuremath{\\mathbb{B}}",120122:"\\ensuremath{\\mathbb{C}}",120123:"\\ensuremath{\\mathbb{D}}",120124:"\\ensuremath{\\mathbb{E}}",120125:"\\ensuremath{\\mathbb{F}}",120126:"\\ensuremath{\\mathbb{G}}",120127:"\\ensuremath{\\mathbb{H}}",120128:"\\ensuremath{\\mathbb{I}}",120129:"\\ensuremath{\\mathbb{J}}",120130:"\\ensuremath{\\mathbb{K}}",120131:"\\ensuremath{\\mathbb{L}}",120132:"\\ensuremath{\\mathbb{M}}",120133:"\\ensuremath{\\mathbb{N}}",120134:"\\ensuremath{\\mathbb{O}}",120135:"\\ensuremath{\\mathbb{P}}",120136:"\\ensuremath{\\mathbb{Q}}",120137:"\\ensuremath{\\mathbb{R}}",120138:"\\ensuremath{\\mathbb{S}}",120139:"\\ensuremath{\\mathbb{T}}",120140:"\\ensuremath{\\mathbb{U}}",120141:"\\ensuremath{\\mathbb{V}}",120142:"\\ensuremath{\\mathbb{W}}",120143:"\\ensuremath{\\mathbb{X}}",120144:"\\ensuremath{\\mathbb{Y}}",120145:"\\ensuremath{\\mathbb{Z}}",120146:"\\ensuremath{\\mathbb{a}}",120147:"\\ensuremath{\\mathbb{b}}",120148:"\\ensuremath{\\mathbb{c}}",120149:"\\ensuremath{\\mathbb{d}}",120150:"\\ensuremath{\\mathbb{e}}",120151:"\\ensuremath{\\mathbb{f}}",120152:"\\ensuremath{\\mathbb{g}}",120153:"\\ensuremath{\\mathbb{h}}",120154:"\\ensuremath{\\mathbb{i}}",120155:"\\ensuremath{\\mathbb{j}}",120156:"\\ensuremath{\\mathbb{k}}",120157:"\\ensuremath{\\mathbb{l}}",120158:"\\ensuremath{\\mathbb{m}}",120159:"\\ensuremath{\\mathbb{n}}",120160:"\\ensuremath{\\mathbb{o}}",120161:"\\ensuremath{\\mathbb{p}}",120162:"\\ensuremath{\\mathbb{q}}",120163:"\\ensuremath{\\mathbb{r}}",120164:"\\ensuremath{\\mathbb{s}}",120165:"\\ensuremath{\\mathbb{t}}",120166:"\\ensuremath{\\mathbb{u}}",120167:"\\ensuremath{\\mathbb{v}}",120168:"\\ensuremath{\\mathbb{w}}",120169:"\\ensuremath{\\mathbb{x}}",120170:"\\ensuremath{\\mathbb{y}}",120171:"\\ensuremath{\\mathbb{z}}",120224:"\\ensuremath{\\mathsf{A}}",120225:"\\ensuremath{\\mathsf{B}}",120226:"\\ensuremath{\\mathsf{C}}",120227:"\\ensuremath{\\mathsf{D}}",120228:"\\ensuremath{\\mathsf{E}}",120229:"\\ensuremath{\\mathsf{F}}",120230:"\\ensuremath{\\mathsf{G}}",120231:"\\ensuremath{\\mathsf{H}}",120232:"\\ensuremath{\\mathsf{I}}",120233:"\\ensuremath{\\mathsf{J}}",120234:"\\ensuremath{\\mathsf{K}}",120235:"\\ensuremath{\\mathsf{L}}",120236:"\\ensuremath{\\mathsf{M}}",120237:"\\ensuremath{\\mathsf{N}}",120238:"\\ensuremath{\\mathsf{O}}",120239:"\\ensuremath{\\mathsf{P}}",120240:"\\ensuremath{\\mathsf{Q}}",120241:"\\ensuremath{\\mathsf{R}}",120242:"\\ensuremath{\\mathsf{S}}",120243:"\\ensuremath{\\mathsf{T}}",120244:"\\ensuremath{\\mathsf{U}}",120245:"\\ensuremath{\\mathsf{V}}",120246:"\\ensuremath{\\mathsf{W}}",120247:"\\ensuremath{\\mathsf{X}}",120248:"\\ensuremath{\\mathsf{Y}}",120249:"\\ensuremath{\\mathsf{Z}}",120250:"\\ensuremath{\\mathsf{a}}",120251:"\\ensuremath{\\mathsf{b}}",120252:"\\ensuremath{\\mathsf{c}}",120253:"\\ensuremath{\\mathsf{d}}",120254:"\\ensuremath{\\mathsf{e}}",120255:"\\ensuremath{\\mathsf{f}}",120256:"\\ensuremath{\\mathsf{g}}",120257:"\\ensuremath{\\mathsf{h}}",120258:"\\ensuremath{\\mathsf{i}}",120259:"\\ensuremath{\\mathsf{j}}",120260:"\\ensuremath{\\mathsf{k}}",120261:"\\ensuremath{\\mathsf{l}}",120262:"\\ensuremath{\\mathsf{m}}",120263:"\\ensuremath{\\mathsf{n}}",120264:"\\ensuremath{\\mathsf{o}}",120265:"\\ensuremath{\\mathsf{p}}",120266:"\\ensuremath{\\mathsf{q}}",120267:"\\ensuremath{\\mathsf{r}}",120268:"\\ensuremath{\\mathsf{s}}",120269:"\\ensuremath{\\mathsf{t}}",120270:"\\ensuremath{\\mathsf{u}}",120271:"\\ensuremath{\\mathsf{v}}",120272:"\\ensuremath{\\mathsf{w}}",120273:"\\ensuremath{\\mathsf{x}}",120274:"\\ensuremath{\\mathsf{y}}",120275:"\\ensuremath{\\mathsf{z}}",120432:"\\ensuremath{\\mathtt{A}}",120433:"\\ensuremath{\\mathtt{B}}",120434:"\\ensuremath{\\mathtt{C}}",120435:"\\ensuremath{\\mathtt{D}}",120436:"\\ensuremath{\\mathtt{E}}",120437:"\\ensuremath{\\mathtt{F}}",120438:"\\ensuremath{\\mathtt{G}}",120439:"\\ensuremath{\\mathtt{H}}",120440:"\\ensuremath{\\mathtt{I}}",120441:"\\ensuremath{\\mathtt{J}}",120442:"\\ensuremath{\\mathtt{K}}",120443:"\\ensuremath{\\mathtt{L}}",120444:"\\ensuremath{\\mathtt{M}}",120445:"\\ensuremath{\\mathtt{N}}",120446:"\\ensuremath{\\mathtt{O}}",120447:"\\ensuremath{\\mathtt{P}}",120448:"\\ensuremath{\\mathtt{Q}}",120449:"\\ensuremath{\\mathtt{R}}",120450:"\\ensuremath{\\mathtt{S}}",120451:"\\ensuremath{\\mathtt{T}}",120452:"\\ensuremath{\\mathtt{U}}",120453:"\\ensuremath{\\mathtt{V}}",120454:"\\ensuremath{\\mathtt{W}}",120455:"\\ensuremath{\\mathtt{X}}",120456:"\\ensuremath{\\mathtt{Y}}",120457:"\\ensuremath{\\mathtt{Z}}",120458:"\\ensuremath{\\mathtt{a}}",120459:"\\ensuremath{\\mathtt{b}}",120460:"\\ensuremath{\\mathtt{c}}",120461:"\\ensuremath{\\mathtt{d}}",120462:"\\ensuremath{\\mathtt{e}}",120463:"\\ensuremath{\\mathtt{f}}",120464:"\\ensuremath{\\mathtt{g}}",120465:"\\ensuremath{\\mathtt{h}}",120466:"\\ensuremath{\\mathtt{i}}",120467:"\\ensuremath{\\mathtt{j}}",120468:"\\ensuremath{\\mathtt{k}}",120469:"\\ensuremath{\\mathtt{l}}",120470:"\\ensuremath{\\mathtt{m}}",120471:"\\ensuremath{\\mathtt{n}}",120472:"\\ensuremath{\\mathtt{o}}",120473:"\\ensuremath{\\mathtt{p}}",120474:"\\ensuremath{\\mathtt{q}}",120475:"\\ensuremath{\\mathtt{r}}",120476:"\\ensuremath{\\mathtt{s}}",120477:"\\ensuremath{\\mathtt{t}}",120478:"\\ensuremath{\\mathtt{u}}",120479:"\\ensuremath{\\mathtt{v}}",120480:"\\ensuremath{\\mathtt{w}}",120481:"\\ensuremath{\\mathtt{x}}",120482:"\\ensuremath{\\mathtt{y}}",120483:"\\ensuremath{\\mathtt{z}}",120782:"\\ensuremath{\\mathbf{0}}",120783:"\\ensuremath{\\mathbf{1}}",120784:"\\ensuremath{\\mathbf{2}}",120785:"\\ensuremath{\\mathbf{3}}",120786:"\\ensuremath{\\mathbf{4}}",120787:"\\ensuremath{\\mathbf{5}}",120788:"\\ensuremath{\\mathbf{6}}",120789:"\\ensuremath{\\mathbf{7}}",120790:"\\ensuremath{\\mathbf{8}}",120791:"\\ensuremath{\\mathbf{9}}",120792:"\\ensuremath{\\mathbb{0}}",120793:"\\ensuremath{\\mathbb{1}}",120794:"\\ensuremath{\\mathbb{2}}",120795:"\\ensuremath{\\mathbb{3}}",120796:"\\ensuremath{\\mathbb{4}}",120797:"\\ensuremath{\\mathbb{5}}",120798:"\\ensuremath{\\mathbb{6}}",120799:"\\ensuremath{\\mathbb{7}}",120800:"\\ensuremath{\\mathbb{8}}",120801:"\\ensuremath{\\mathbb{9}}",120802:"\\ensuremath{\\mathsf{0}}",120803:"\\ensuremath{\\mathsf{1}}",120804:"\\ensuremath{\\mathsf{2}}",120805:"\\ensuremath{\\mathsf{3}}",120806:"\\ensuremath{\\mathsf{4}}",120807:"\\ensuremath{\\mathsf{5}}",120808:"\\ensuremath{\\mathsf{6}}",120809:"\\ensuremath{\\mathsf{7}}",120810:"\\ensuremath{\\mathsf{8}}",120811:"\\ensuremath{\\mathsf{9}}",120822:"\\ensuremath{\\mathtt{0}}",120823:"\\ensuremath{\\mathtt{1}}",120824:"\\ensuremath{\\mathtt{2}}",120825:"\\ensuremath{\\mathtt{3}}",120826:"\\ensuremath{\\mathtt{4}}",120827:"\\ensuremath{\\mathtt{5}}",120828:"\\ensuremath{\\mathtt{6}}",120829:"\\ensuremath{\\mathtt{7}}",120830:"\\ensuremath{\\mathtt{8}}",120831:"\\ensuremath{\\mathtt{9}}"},o=["{","}","_","^","#","&","$","%","~"],s={"̀":"\\grave{{{0}}}","́":"\\acute{{{0}}}","̂":"\\hat{{{0}}}","̃":"\\tilde{{{0}}}","̄":"\\bar{{{0}}}","̅":"\\overbar{{{0}}}","̆":"\\breve{{{0}}}","̇":"\\dot{{{0}}}","̈":"\\ddot{{{0}}}","̉":"\\ovhook{{{0}}}","̊":"\\ocirc{{{0}}}}","̌":"\\check{{{0}}}}","̐":"\\candra{{{0}}}","̒":"\\oturnedcomma{{{0}}}","̕":"\\ocommatopright{{{0}}}","̚":"\\droang{{{0}}}","̸":"\\not{{{0}}}","⃝":"\\enclosecircle{{{0}}}","⃞":"\\enclosesquare{{{0}}}","⃟":"\\enclosediamond{{{0}}}","⃤":"\\enclosetriangle{{{0}}}","⃐":"\\leftharpoonup{{{0}}}","⃑":"\\rightharpoonup{{{0}}}","⃒":"\\vertoverlay{{{0}}}","⃖":"\\LVec{{{0}}}","⃗":"\\vec{{{0}}}","⃛":"\\dddot{{{0}}}","⃜":"\\ddddot{{{0}}}","⃡":"\\overleftrightarrow{{{0}}}","⃧":"\\annuity{{{0}}}","⃩":"\\widebridgeabove{{{0}}}","⃰":"\\asteraccent{{{0}}}","̰":"\\wideutilde{{{0}}}","̱":"\\underbar{{{0}}}","⃨":"\\threeunderdot{{{0}}}","⃬":"\\underrightharpoondown{{{0}}}","⃭":"\\underleftharpoondown{{{0}}}","⃮":"\\underleftarrow{{{0}}}","⃯":"\\underrightarrow{{{0}}}","⎴":"\\overbracket{{{0}}}","⏜":"\\overparen{{{0}}}","⏞":"\\overbrace{{{0}}}","⎵":"\\underbracket{{{0}}}","⏝":"\\underparen{{{0}}}","⏟":"\\underbrace{{{0}}}"},l={"⅀":"\\Bbbsum","∏":"\\prod","∐":"\\coprod","∑":"\\sum","∫":"\\int","∬":"\\iint","∭":"\\iiint","⨌":"\\iiiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint","⨍":"\\fint","⨖":"\\sqint","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨅":"\\bigsqcap","⨆":"\\bigsqcup","⨉":"\\varprod"},c={"→":"\\rightarrow ",𝛼:"\\alpha ",𝛽:"\\beta ",𝛾:"\\gamma ",𝛿:"\\delta ",𝜀:"\\epsilon ",𝜁:"\\zeta ",𝜂:"\\eta ",𝜃:"\\theta ",𝜄:"\\iota ",𝜅:"\\kappa ",𝜆:"\\lambda ",𝜇:"\\mu ",𝜈:"\\nu ",𝜉:"\\xi ",𝜊:"\\omicron ",𝜋:"\\pi ",𝜌:"\\rho ",𝜍:"\\varsigma ",𝜎:"\\sigma ",𝜏:"\\tau ",𝜐:"\\upsilon ",𝜑:"\\phi ",𝜒:"\\chi ",𝜓:"\\psi ",𝜔:"\\omega ","𝜕":"\\partial ",𝜖:"\\varepsilon ",𝜗:"\\vartheta ",𝜘:"\\varkappa ",𝜙:"\\varphi ",𝜚:"\\varrho ",𝜛:"\\varpi ","←":"\\leftarrow ","↑":"\\uparrow ","↓":"\\downarrow ","↔":"\\leftrightarrow ","↕":"\\updownarrow ","↖":"\\nwarrow ","↗":"\\nearrow ","↘":"\\searrow ","↙":"\\swarrow ","⋮":"\\vdots ","⋯":"\\cdots ","⋰":"\\adots ","⋱":"\\ddots ","⇐":"\\Leftarrow ","⇒":"\\Rightarrow ","⇔":"\\Leftrightarrow ","⇑":"\\Uparrow ","⇓":"\\Downarrow ","⇕":"\\Updownarrow ","↦":"\\mapsto ","⟨":"\\langle ","⟩":"\\rangle ","⌈":"\\lceil ","⌉":"\\rceil ","⌊":"\\lfloor ","⌋":"\\rfloor ","‖":"\\Vert ","∥":"\\parallel ","≠":"\\ne ","≤":"\\leq ","≥":"\\geq ","≦":"\\leqq ","≧":"\\geqq ","≨":"\\lneqq ","≩":"\\gneqq ","≪":"\\ll ","≫":"\\gg ","∈":"\\in ","∉":"\\notin ","∋":"\\ni ","∌":"\\nni ","∞":"\\infty ","±":"\\pm ","∓":"\\mp ","·":"\\cdot ","⋅":"\\cdot ","×":"\\times ","÷":"\\div ","∗":"\\ast ","∘":"\\circ ","∙":"\\bullet ","−":"-","<":"<",">":">","=":"=","≈":"\\approx ","≡":"\\equiv ","≅":"\\cong ","∼":"\\sim ","≃":"\\simeq ","≐":"\\doteq ","∝":"\\propto ","∴":"\\therefore ","∵":"\\because ","∀":"\\forall ","∃":"\\exists ","∄":"\\nexists ","∅":"\\emptyset ","∇":"\\nabla ","∧":"\\wedge ","∨":"\\vee ","¬":"\\neg ","∩":"\\cap ","∪":"\\cup ","⊂":"\\subset ","⊃":"\\supset ","⊆":"\\subseteq ","⊇":"\\supseteq ","⊕":"\\oplus ","⊗":"\\otimes ","⊥":"\\perp ","°":"\\degree ","′":"\\prime ","″":"\\prime\\prime ","…":"\\ldots ",α:"\\alpha ",β:"\\beta ",γ:"\\gamma ",δ:"\\delta ",ε:"\\epsilon ",ζ:"\\zeta ",η:"\\eta ",θ:"\\theta ",ι:"\\iota ",κ:"\\kappa ",λ:"\\lambda ",μ:"\\mu ",ν:"\\nu ",ξ:"\\xi ",ο:"\\omicron ",π:"\\pi ",ρ:"\\rho ",ς:"\\varsigma ",σ:"\\sigma ",τ:"\\tau ",υ:"\\upsilon ",φ:"\\phi ",χ:"\\chi ",ψ:"\\psi ",ω:"\\omega ","∂":"\\partial ",ϵ:"\\epsilon ",ϑ:"\\vartheta ",ϰ:"\\varkappa ",ϕ:"\\phi ",ϱ:"\\varrho ",ϖ:"\\varpi ",𝐴:"A",𝐵:"B",𝐶:"C",𝐷:"D",𝐸:"E",𝐹:"F",𝐺:"G",𝐻:"H",𝐼:"I",𝐽:"J",𝐾:"K",𝐿:"L",𝑀:"M",𝑁:"N",𝑂:"O",𝑃:"P",𝑄:"Q",𝑅:"R",𝑆:"S",𝑇:"T",𝑈:"U",𝑉:"V",𝑊:"W",𝑋:"X",𝑌:"Y",𝑍:"Z",𝑎:"a",𝑏:"b",𝑐:"c",𝑑:"d",𝑒:"e",𝑓:"f",𝑔:"g",𝑖:"i",𝑗:"j",𝑘:"k",𝑙:"l",𝑚:"m",𝑛:"n",𝑜:"o",𝑝:"p",𝑞:"q",𝑟:"r",𝑠:"s",𝑡:"t",𝑢:"u",𝑣:"v",𝑤:"w",𝑥:"x",𝑦:"y",𝑧:"z",𝒉:"h",𝛢:"A",𝛣:"B",𝛤:"\\Gamma ",𝛥:"\\Delta ",𝛦:"E",𝛧:"Z",𝛨:"H",𝛩:"\\Theta ",𝛪:"I",𝛫:"K",𝛬:"\\Lambda ",𝛭:"M",𝛮:"N",𝛯:"\\Xi ",𝛰:"O",𝛱:"\\Pi ",𝛲:"P",𝛴:"\\Sigma ",𝛵:"T",𝛶:"\\Upsilon ",𝛷:"\\Phi ",𝛸:"X",𝛹:"\\Psi ",𝛺:"\\Omega "},u={sin:"\\sin({fe})",cos:"\\cos({fe})",tan:"\\tan({fe})",cot:"\\cot({fe})",sec:"\\sec({fe})",csc:"\\csc({fe})",arcsin:"\\arcsin({fe})",arccos:"\\arccos({fe})",arctan:"\\arctan({fe})",arccot:"\\arccot({fe})",arcsec:"\\arcsec({fe})",arccsc:"\\arccsc({fe})",sinh:"\\sinh({fe})",cosh:"\\cosh({fe})",tanh:"\\tanh({fe})",coth:"\\coth({fe})",sech:"\\sech({fe})",csch:"\\csch({fe})",arcsinh:"\\arcsinh({fe})",arccosh:"\\arccosh({fe})",arctanh:"\\arctanh({fe})",arccoth:"\\arccoth({fe})",arcsech:"\\arcsech({fe})",arccsch:"\\arccsch({fe})",log:"\\log{{fe}}",ln:"\\ln{{fe}}",lg:"\\lg{{fe}}",exp:"\\exp({fe})",arg:"\\arg({fe})",deg:"\\deg({fe})",det:"\\det({fe})",dim:"\\dim({fe})",gcd:"\\gcd({fe})",hom:"\\hom({fe})",ker:"\\ker({fe})",mod:"\\bmod({fe})",Pr:"\\Pr({fe})"},h={top:"\\overline{{{0}}}",bot:"\\underline{{{0}}}"},p={bar:"\\frac{{{num}}}{{{den}}}",skw:"^{{{num}}}/_{{{den}}}",noBar:"\\genfrac{{}}{{}}{{0pt}}{{}}{{{num}}}{{{den}}}",lin:"{{{num}}}/{{{den}}}"},d="\\frac{{{num}}}{{{den}}}",f={left:"\\begin{{array}}{{l}}{text}\\end{{array}}",right:"\\begin{{array}}{{r}}{text}\\end{{array}}",center:"\\begin{{matrix}}{text}\\end{{matrix}}"},m={lim:"\\lim_{{{lim}}}",max:"\\max_{{{lim}}}",min:"\\min_{{{lim}}}",sup:"\\sup_{{{lim}}}",inf:"\\inf_{{{lim}}}",limsup:"\\limsup_{{{lim}}}",liminf:"\\liminf_{{{lim}}}",injlim:"\\injlim_{{{lim}}}",projlim:"\\projlim_{{{lim}}}"},g=["\\rightarrow","\\to"];function A(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function y(e){let t=e.indexOf(":");return -1===t?e:e.slice(t+1)}function v(e){return"string"!=typeof e}function R(e){let t="";for(let r of e.children)t+="string"==typeof r?r:R(r);return t}function b(e,t=[],r={}){let n="",i=0,a=e.length;for(;i<a;){let a=e[i];if("{"===a){if("{"===e[i+1]){n+="{",i+=2;continue}let o=e.indexOf("}",i+1);if(-1===o){n+=a,i+=1;continue}let s=e.slice(i+1,o);/^\d+$/.test(s)?n+=t[Number(s)]??"":n+=r[s]??"",i=o+1;continue}if("}"===a&&"}"===e[i+1]){n+="}",i+=2;continue}n+=a,i+=1}return n}function x(e){let t=e.split("\\\\").join("\\"),r="",n=null;for(let e of t)o.includes(e)&&"\\"!==n?r+="\\"+e:r+=e,n=e;return r}function M(e,t,r){return void 0!==e?r&&void 0!==r[e]?r[e]:e:t}function S(e,t=!1){if(void 0===e)return t;let r=e.toLowerCase();return"on"===r||"1"===r||"true"===r}let w=new Set(["chr","pos","begChr","endChr","sepChr","type","show","smallFrac","limLoc","intLim","naryLim","mcJc","degHide"]);class O{get(e){return this.attrs[e]}constructor(e,t){for(let t of(A(this,"text",""),A(this,"attrs",{}),e.children)){if(!v(t))continue;let e=y(t.tagName);"brk"===e?(this.attrs.brk="\\\\",this.text+="\\\\"):w.has(e)&&(this.attrs[e]=L(t,"val"))}}}function L(e,t){for(let r of Object.keys(e.attributes))if(y(r)===t){let t=e.attributes[r];return null==t?void 0:t}}let N=new Set(["box","sSub","sSup","sSubSup","num","den","deg","e"]);class _{convert(e){let t=this.oMath(e);for(let e of this.unsupported)this.options.onUnsupported?.(e);return t}noteUnsupported(e){this.unsupported.add(e)}oMath(e){return this.processChildren(e)}processChildrenList(e,t){let r=[];for(let n of e.children){if(!v(n))continue;let e=y(n.tagName);if(t&&!t.has(e))continue;let i=this.dispatch(e,n);(null!=i||null!=(i=this.processUnknown(e,n)))&&r.push({stag:e,value:i,node:n})}return r}processChildrenDict(e,t){let r={};for(let{stag:n,value:i}of this.processChildrenList(e,t))r[n]=i;return r}processChildren(e,t){let r="";for(let{value:n}of this.processChildrenList(e,t))r+=n instanceof O?n.text:String(n);return r}dispatch(e,t){switch(e){case"acc":return this.doAcc(t);case"r":return this.doR(t);case"bar":return this.doBar(t);case"sub":return this.doSub(t);case"sup":return this.doSup(t);case"f":return this.doF(t);case"func":return this.doFunc(t);case"fName":return this.doFName(t);case"groupChr":return this.doGroupChr(t);case"d":return this.doD(t);case"rad":return this.doRad(t);case"eqArr":return this.doEqArr(t);case"limLow":return this.doLimLow(t);case"limUpp":return this.doLimUpp(t);case"lim":return this.doLim(t);case"m":return this.doM(t);case"mr":return this.doMr(t);case"nary":return this.doNary(t);case"borderBox":return this.doBorderBox(t);case"phant":return this.doPhant(t);case"sPre":return this.doSPre(t);default:return null}}processUnknown(e,t){return N.has(e)?this.processChildren(t):e.endsWith("Pr")?new O(t,this):(this.noteUnsupported(e),R(t))}doAcc(e){let t=this.processChildrenDict(e),r=t.accPr;return b(M(r?.get("chr"),"\\hat{{{0}}}",s)??"",[t.e??""])}doBar(e){let t=this.processChildrenDict(e),r=t.barPr,n=M(r?.get("pos"),"\\overline{{{0}}}",h)??"",i=t.e??"";return(r?.text??"")+b(n,[i])}doD(e){let t=this.processChildrenDict(e).dPr,r=M(t?.get("begChr"),"(",c),n=M(t?.get("endChr"),")",c),i=M(t?.get("sepChr"),"|",c),a=this.processChildrenList(e,new Set(["e"])).map(e=>String(e.value)),o=i?x(i):"",s=a.join(o);return(t?.text??"")+b("\\left{left}{text}\\right{right}",[],{left:r?x(r):".",text:s,right:n?x(n):"."})}doSub(e){return b(T,[this.processChildren(e)])}doSup(e){return b(P,[this.processChildren(e)])}doF(e){let t=this.processChildrenDict(e),r=t.fPr,n=M(r?.get("type"),d,p)??"";n===d&&S(r?.get("smallFrac"))&&(n="\\tfrac{{{num}}}{{{den}}}");let i=t.num??"",a=t.den??"";return(r?.text??"")+b(n,[],{num:i,den:a})}doFunc(e){let t=this.processChildrenDict(e),r=t.fName??"",n=t.e??"";return r.split("{fe}").join(n)}doFName(e){let t=[];for(let{stag:r,value:n}of this.processChildrenList(e))if("r"===r){let e=String(n).trim();void 0!==u[e]?t.push(u[e]):(this.noteUnsupported("fName:"+e),t.push(String(n)))}else t.push(String(n));let r=t.join("");return r.includes("{fe}")?r:r+"{fe}"}doGroupChr(e){let t=this.processChildrenDict(e),r=t.groupChrPr,n=M(r?.get("chr"),void 0,s)??"",i=t.e??"";return(r?.text??"")+b(n,[i])}doRad(e){let t=this.processChildrenDict(e),r=t.e??"",n=t.deg;return n?b("\\sqrt[{deg}]{{{text}}}",[],{deg:n,text:r}):b("\\sqrt{{{text}}}",[],{text:r})}doEqArr(e){return b("\\begin{{array}}{{c}}{text}\\end{{array}}",[],{text:this.processChildrenList(e,new Set(["e"])).map(e=>String(e.value)).join("\\\\")})}doLimLow(e){let t=this.processChildrenDict(e,new Set(["e","lim"])),r=t.e??"",n=t.lim??"",i=m[r];return i?b(i,[],{lim:n}):(this.noteUnsupported("limLow:"+r),r+n)}doLimUpp(e){let t=this.processChildrenDict(e,new Set(["e","lim"]));return b("\\overset{{{lim}}}{{{text}}}",[],{lim:t.lim??"",text:t.e??""})}doLim(e){return this.processChildren(e).split(g["0"]).join(g["1"])}doM(e){let t=[],r="\\begin{{matrix}}{text}\\end{{matrix}}";for(let{stag:n,value:i,node:a}of this.processChildrenList(e)){if("mPr"===n){let e=function e(t,r,n){for(let i of t.children){if(!v(i))continue;if(y(i.tagName)===r){let e=L(i,n);if(void 0!==e)return e}let t=e(i,r,n);if(void 0!==t)return t}}(a,"mcJc","val");e&&f[e]&&(r=f[e]);continue}"mr"===n&&t.push(String(i))}return b(r,[],{text:t.join("\\\\")})}doMr(e){return this.processChildrenList(e,new Set(["e"])).map(e=>String(e.value)).join("&")}doNary(e){let t=[],r="",n="";for(let{stag:i,value:a}of this.processChildrenList(e))"naryPr"===i?(r=M(a.get("chr"),void 0,l)??"",n=a.get("naryLim")??a.get("limLoc")??a.get("intLim")??""):t.push(String(a));return r+("undOvr"===n?"\\limits":"")+t.join("")}doBorderBox(e){return b("\\boxed{{{0}}}",[this.processChildrenDict(e).e??""])}doPhant(e){let t=this.processChildrenDict(e),r=t.phantPr,n=t.e??"";return S(r?.get("show"),!0)?n:b("\\phantom{{{0}}}",[n])}doSPre(e){let t=this.processChildrenDict(e),r=t.e??"",n=t.sub??"",i=t.sup??"";return`{}${n}${i}{${r}}`}processUnicode(e){let t="";for(let r of e.normalize("NFC")){let e=c[r];void 0!==e?t+=e:o.includes(r)?t+=r:t+=function(e){let t=String(e).normalize("NFC"),r="";for(let e of t){let t=a[e.codePointAt(0)];void 0!==t?r+="{"+t+"}":r+=e}return r}(r)}return t}doR(e){let t=[],r=[];for(let n of e.children){if(!v(n)||"t"!==y(n.tagName))continue;let e=R(n);t.push(this.processUnicode(e)),r.push(e)}let n=x(t.join("")),i=r.join("");return!i.includes("{")&&n.includes("\\{")&&(n=n.split("\\{").join("{")),!i.includes("}")&&n.includes("\\}")&&(n=n.split("\\}").join("}")),n}constructor(e={}){A(this,"options",void 0),A(this,"unsupported",void 0),this.options=e,this.unsupported=new Set}}let T="_{{{0}}}",P="^{{{0}}}";function C(e){return e.replace(/&(#x[0-9a-fA-F]+|#\d+|amp|lt|gt|quot|apos);/g,function(e,t){if("amp"===t)return"&";if("lt"===t)return"<";if("gt"===t)return">";if("quot"===t)return'"';if("apos"===t)return"'";if("#"===t[0]){var r="x"===t[1]||"X"===t[1],n=parseInt(t.slice(r?2:1),r?16:10);if(!Number.isNaN(n)&&n>=0&&n<=1114111)try{return String.fromCodePoint(n)}catch(e){}}return e})}var I=r(49705).hp;let k=0,F=new Set(["m:oMath","m:oMathPara"]);async function X(e,t){try{let r=e.file(t);if(!r)return null;let n=await r.async("string");return function e(t,r={}){let n={};if(!t.length)return n;if(1===t.length&&"string"==typeof t[0])return Object.keys(r).length?{attrs:{order:k++,...r},value:t[0]}:t[0];for(let r of t){if("string"==typeof r&&""===r.trim())continue;if("object"!=typeof r)return;if("?xml"===r.tagName)continue;n[r.tagName]||(n[r.tagName]=[]);let t=e(r.children||[],r.attributes);"object"==typeof t&&(t.attrs?t.attrs.order=k++:t.attrs={order:k++},F.has(r.tagName)&&Object.defineProperty(t,"__rawNode",{value:r,enumerable:!1})),Object.keys(r.attributes||{}).length&&(t.attrs={...t.attrs,...r.attributes}),n[r.tagName].push(t)}for(let e in n)1===n[e].length&&(n[e]=n[e][0]);return n}(function e(t,r){var n=(r=r||{}).pos||0,i=!!r.keepComments,a=!!r.keepWhitespace,o=!!r.decodeEntities,s=!!r.skipXmlDeclaration;function l(e){return"string"==typeof e&&"?xml"===e.toLowerCase()}function c(e){for(var r=[];t[n];)if(60==t.charCodeAt(n)){if(47===t.charCodeAt(n+1)){var c=n+2;if(n=t.indexOf(">",n),-1==t.substring(c,n).indexOf(e)){var u=t.substring(0,n).split("\n");throw Error("Unexpected close tag\nLine: "+(u.length-1)+"\nColumn: "+(u[u.length-1].length+1)+"\nChar: "+t[n])}return n+1&&(n+=1),r}if(33===t.charCodeAt(n+1)){if(45==t.charCodeAt(n+2)){let e=n;for(;-1!==n&&(62!==t.charCodeAt(n)||45!=t.charCodeAt(n-1)||45!=t.charCodeAt(n-2)||-1==n);)n=t.indexOf(">",n+1);-1===n&&(n=t.length),i&&r.push(t.substring(e,n+1))}else{if(91===t.charCodeAt(n+2)&&91===t.charCodeAt(n+8)&&"cdata"===t.substr(n+3,5).toLowerCase()){var h=t.indexOf("]]>",n);-1==h?(r.push(t.substr(n+9)),n=t.length):(r.push(t.substring(n+9,h)),n=h+3);continue}{let e=n+1;n+=2;for(var p=!1;(62!==t.charCodeAt(n)||!0===p)&&t[n];)91===t.charCodeAt(n)?p=!0:!0===p&&93===t.charCodeAt(n)&&(p=!1),n++;r.push(t.substring(e,n))}}n++;continue}var d=f();if(s&&l(d.tagName))continue;r.push(d)}else{var m=function(){var e=n;-2==(n=t.indexOf("<",n)-1)&&(n=t.length);var r=t.slice(e,n+1);return o?C(r):r}();if(a)m.length>0&&r.push(m);else{var g=m.trim();g.length>0&&r.push(g)}n++}return r}var u="\r\n >/= ";function h(){for(var e=n;-1===u.indexOf(t[n])&&t[n];)n++;return t.slice(e,n)}var p,d=r.selfClosingTags||r.noChildNodes||["img","br","input","meta","link","hr"];function f(){n++;let e=h(),r="?"===e[0],i=n,a={},s=[];for(;t[n]&&62!==t.charCodeAt(n)&&(!r||63!==t.charCodeAt(n)||62!==t.charCodeAt(n+1));){var l=t.charCodeAt(n);if(l>64&&l<91||l>96&&l<123){for(var p=h(),f=null;32===t.charCodeAt(n)||9===t.charCodeAt(n)||10===t.charCodeAt(n)||13===t.charCodeAt(n);)n++;if(61===t.charCodeAt(n)){for(n++;32===t.charCodeAt(n)||9===t.charCodeAt(n)||10===t.charCodeAt(n)||13===t.charCodeAt(n);)n++;var m=t.charCodeAt(n);if(39===m||34===m){if(f=function(){var e=t[n],r=n+1;n=t.indexOf(e,r);var i=t.slice(r,n);return o?C(i):i}(),-1===n)return{tagName:e,attributes:a,children:s}}else if(m&&62!==m){for(var g=n;t[n]&&-1===u.indexOf(t[n]);)n++;f=t.slice(g,n),o&&(f=C(f))}}a[p]=f}else n++}if(r){var A=t.slice(i,n).trim();return A.length>0&&0===Object.keys(a).length&&(s=[A]),63===t.charCodeAt(n)&&62===t.charCodeAt(n+1)?n+=2:62===t.charCodeAt(n)&&(n+=1),{tagName:e,attributes:a,children:s}}if(47!==t.charCodeAt(n-1)&&63!==t.charCodeAt(n-1))if("script"==e){var y=n+1;n=t.indexOf("<\/script>",n),s=[t.slice(y,n)],n+=9}else"style"==e?(y=n+1,n=t.indexOf("</style>",n),s=[t.slice(y,n)],n+=8):-1===d.indexOf(e)?(n++,s=c(e)):n++;else n++;return{tagName:e,attributes:a,children:s}}if(void 0!==r.attrValue)for(r.attrName=r.attrName||"id",p=[];-1!==(n=function(){if(!r||!r.attrName||!r.attrValue)return -1;var e=RegExp("\\s"+r.attrName+"\\s*=['\"]"+r.attrValue+"['\"]").exec(t);return e?e.index:-1}());)-1!==(n=t.lastIndexOf("<",n))&&p.push(f()),t=t.substr(n),n=0;else if(r.parseNode)for(p=f();s&&"object"==typeof p&&p&&l(p.tagName);)p=f();else p=c("");return(r.filter&&Array.isArray(p)&&(p=function e(t,r,n=0,i=""){var a=[];return t.forEach(function(t,o){if("object"==typeof t&&r(t,o,n,i)&&a.push(t),"object"==typeof t&&t.children){var s=e(t.children,r,n+1,(i?i+".":"")+o+"."+t.tagName);a=a.concat(s)}}),a}(p,r.filter)),r.simplify)?function t(r){if("string"==typeof r)return t(e(r));if(!Array.isArray(r))throw TypeError("simplify() expects parsed node array or XML string");var n={};if(!r.length)return"";if(1===r.length&&"string"==typeof r[0])return r[0];for(var i in r.forEach(function(e){if("object"==typeof e){n[e.tagName]||(n[e.tagName]=[]);var r=t(e.children);n[e.tagName].push(r),Object.keys(e.attributes).length&&"object"==typeof r&&!Array.isArray(r)&&(r._attributes=e.attributes)}}),n)1==n[i].length&&(n[i]=n[i][0]);return n}(Array.isArray(p)?p:[p]):(r.setPos&&"object"==typeof p&&!Array.isArray(p)&&(p.pos=n),p)}(n,{keepWhitespace:!0}))}catch{return null}}function U(e){return"1"===e||"true"===e}function W(e){return e.substr((~-e.lastIndexOf(".")>>>0)+2)}function V(e,t){if(!e)return e;let r="";if(e.constructor===Array)for(let n=0;n<e.length;n++)r+=t(e[n],n);else r+=t(e,0);return r}function E(e,t){if(!e)return e;for(let r of t)if(!(e=e[r]))break;return e}function Y(e){return e?Math.round(e/6e4):0}function D(e){let t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#039;"};return e.replace(/[&<>"']/g,e=>t[e])}function Q(e){let t=e.toString(16);for(;t.length<2;)t="0"+t;return t}function $(e,t=4){return parseFloat(e.toFixed(t))}function B(e,t,r,n){let i,a;if(r)a=r;else{let e=E(t.slideContent,["p:sld","p:clrMapOvr","a:overrideClrMapping","attrs"]);a=e||(e=E(t.slideLayoutContent,["p:sldLayout","p:clrMapOvr","a:overrideClrMapping","attrs"]))||E(t.slideMasterContent,["p:sldMaster","p:clrMap","attrs"])}let o=e.substr(2);if("phClr"===o&&n)i=n;else{if(a)switch(o){case"tx1":case"tx2":case"bg1":case"bg2":e="a:"+a[o]}else switch(o){case"tx1":e="a:dk1";break;case"tx2":e="a:dk2";break;case"bg1":e="a:lt1";break;case"bg2":e="a:lt2"}let r=E(t.themeContent,["a:theme","a:themeElements","a:clrScheme",e]);(i=E(r,["a:srgbClr","attrs","val"]))||!r||(i=E(r,["a:sysClr","attrs","lastClr"]))}return i}function Z(e,t,r){return(r<0&&(r+=6),r>=6&&(r-=6),r<1)?(t-e)*r+e:r<3?t:r<4?(t-e)*(4-r)+e:e}function K(e,t,r){let n=(0,i.A)(e).toHsl();t>=1&&(t=1);let a=n.l*t+(1-t);return r?(0,i.A)({h:n.h,s:n.s,l:a,a:n.a}).toHex8():(0,i.A)({h:n.h,s:n.s,l:a,a:n.a}).toHex()}function G(e){let t="";return e["a:noFill"]&&(t="NO_FILL"),e["a:solidFill"]&&(t="SOLID_FILL"),e["a:gradFill"]&&(t="GRADIENT_FILL"),e["a:pattFill"]&&(t="PATTERN_FILL"),e["a:blipFill"]&&(t="PIC_FILL"),e["a:grpFill"]&&(t="GROUP_FILL"),t}function H(e=""){return{ref:e,base64:"",blob:"",align:{t:0,b:0,l:0,r:0},alignType:"stretch"}}function z(e=""){return{ref:e,blob:""}}async function J(e,t,r,n="base64"){let i;if(!e||"base64"!==n&&"blob"!==n)return"";let a=D(e),o=(i=t[r]||{},t[r]=i,i),s=o[a]||{base64:"",blob:""};if(o[a]=s,s[n])return s[n];let l=a.split(".").pop().toLowerCase();if("xml"===l)return"";let c=t.zip.file(a);if(!c)return"";let u=await c.async("arraybuffer"),h=function(e){let t="";switch(e.toLowerCase()){case"jpg":case"jpeg":t="image/jpeg";break;case"png":t="image/png";break;case"gif":t="image/gif";break;case"emf":t="image/x-emf";break;case"wmf":t="image/x-wmf";break;case"svg":t="image/svg+xml";break;case"mp4":t="video/mp4";break;case"webm":t="video/webm";break;case"ogg":t="video/ogg";break;case"avi":t="video/avi";break;case"mpg":t="video/mpg";break;case"wmv":t="video/wmv";break;case"mp3":t="audio/mpeg";break;case"wav":t="audio/wav";break;case"tif":case"tiff":t="image/tiff"}return t}(l);if("emf"===l){let e=function(e){if("u"<typeof document)return"";let t=function(e){if(!e||e.length<44)return null;let t=new DataView(e.buffer,e.byteOffset,e.byteLength);if(0x464d4520!==t.getUint32(40,!0))return null;let r=0;for(;r+8<=e.length;){let n=t.getUint32(r,!0),i=t.getUint32(r+4,!0);if(i<8||r+i>e.length||14===n)break;if(81===n&&i>80){let n=function(e,t,r){if(r+80>e.length)return null;let n=t.getUint32(r+48,!0),i=t.getUint32(r+52,!0),a=t.getUint32(r+56,!0),o=t.getUint32(r+60,!0);if(0===i||0===o)return null;let s=r+n;if(s+40>e.length)return null;let l=t.getInt32(s+4,!0),c=t.getInt32(s+8,!0),u=t.getUint16(s+14,!0);if(0!==t.getUint32(s+16,!0)||24!==u&&32!==u)return null;let h=Math.abs(l),p=Math.abs(c);if(0===h||0===p||h>8192||p>8192)return null;let d=r+a;if(d+o>e.length)return null;let f=e.subarray(d,d+o),m=c<0,g=new Uint8ClampedArray(h*p*4),A=u/8,y=4*Math.ceil(h*A/4);for(let e=0;e<p;e++){let t=(m?e:p-1-e)*y,r=e*h*4;for(let e=0;e<h;e++){let n=t+e*A;if(n+A>f.length)break;g[r+4*e+0]=f[n+2],g[r+4*e+1]=f[n+1],g[r+4*e+2]=f[n+0],g[r+4*e+3]=32===u?f[n+3]:255}}return{width:h,height:p,data:g}}(e,t,r);if(n)return n}r+=i}return null}(e);if(!t)return"";let r=document.createElement("canvas");r.width=t.width,r.height=t.height;let n=r.getContext("2d");return n?(n.putImageData(new ImageData(t.data,t.width,t.height),0,0),r.toDataURL("image/png")):""}(new Uint8Array(u));if(e){if("base64"===n)s.base64=e;else{let t=Uint8Array.from(atob(e.split(",")[1]),e=>e.charCodeAt(0));s.blob=URL.createObjectURL(new Blob([t],{type:"image/png"}))}return s[n]}}return"base64"===n?s.base64=`data:${h};base64,${function(e){let t,r,n,i,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=new Uint8Array(e),s=o.byteLength,l=s%3,c=s-l,u="";for(let e=0;e<c;e+=3)t=(0xfc0000&(i=o[e]<<16|o[e+1]<<8|o[e+2]))>>18,u+=a[t]+a[r=(258048&i)>>12]+a[n=(4032&i)>>6]+a[63&i];return 1===l?(t=(252&(i=o[c]))>>2,u+=a[t]+a[r=(3&i)<<4]+"=="):2===l&&(t=(64512&(i=o[c]<<8|o[c+1]))>>10,u+=a[t]+a[r=(1008&i)>>4]+a[n=(15&i)<<2]+"="),u}(u)}`:"blob"===n&&(s.blob=URL.createObjectURL(new Blob([u],h?{type:h}:void 0))),s[n]}async function j(e,t,r="base64"){return await J(e,t,"loadedImages",r)}async function q(e,t,r="blob"){return"blob"!==r?"":await J(e,t,"loadedVideos","blob")}async function ee(e,t,r="blob"){return"blob"!==r?"":await J(e,t,"loadedAudios","blob")}async function et(e,t){let r,n=H(e||"");if(!e)return n;let i="blob"===(r=E(t,["options","imageMode"]))||"both"===r||"none"===r?r:"base64";return("base64"===i||"both"===i)&&(n.base64=await j(e,t,"base64")),("blob"===i||"both"===i)&&(n.blob=await j(e,t,"blob")),n}async function er(e,t){let r=z(e||"");return e?("blob"==("blob"===E(t,["options","videoMode"])?"blob":"none")&&(r.blob=await q(e,t,"blob")),r):r}async function en(e,t){let r=z(e||"");return e?("blob"==("blob"===E(t,["options","audioMode"])?"blob":"none")&&(r.blob=await ee(e,t,"blob")),r):r}async function ei(e,t,r){let n;if(!t)return H();let i=E(t,["a:blip","attrs","r:embed"]);if("slideBg"===e||"slide"===e?n=E(r,["slideResObj",i,"target"]):"slideLayoutBg"===e?n=E(r,["layoutResObj",i,"target"]):"slideMasterBg"===e?n=E(r,["masterResObj",i,"target"]):"themeBg"===e?n=E(r,["themeResObj",i,"target"]):"diagramBg"===e&&(n=E(r,["diagramResObj",i,"target"])),!n)return H();let a=await et(n,r),o={t:0,b:0,l:0,r:0},s="stretch";if(t["a:stretch"]){s="stretch";let e=E(t,["a:stretch","a:fillRect","attrs"]);e&&(e.t&&(o.t=parseInt(e.t)/1e3),e.b&&(o.b=parseInt(e.b)/1e3),e.l&&(o.l=parseInt(e.l)/1e3),e.r&&(o.r=parseInt(e.r)/1e3))}else if(t["a:tile"]){s="tile";let e=E(t,["a:tile","attrs"]);e&&(e.t&&(o.t=parseInt(e.t)/1e3),e.b&&(o.b=parseInt(e.b)/1e3),e.l&&(o.l=parseInt(e.l)/1e3),e.r&&(o.r=parseInt(e.r)/1e3))}else t["a:scale"]&&(s="scale");return a.align=o,a.alignType=s,a}function ea(e){let t=E(e["a:blip"],["a:alphaModFix","attrs"]),r=1;return t&&t.amt&&""!==t.amt&&(r=parseInt(t.amt)/1e5),r}async function eo(e,t,r){let n=await ei(t,e["a:blipFill"],r),i=E(e["a:blipFill"]["a:blip"],["a:alphaModFix","attrs"]),a=1;return i&&i.amt&&""!==i.amt&&(a=parseInt(i.amt)/1e5),{ref:n.ref,base64:n.base64,blob:n.blob,opacity:a}}function es(e,t){if(!e["a:gsLst"])return null;let r=e["a:gsLst"]["a:gs"],n=[];for(let e=0;e<r.length;e++){let i=ef(r[e],void 0,void 0,t),a=E(r[e],["attrs","pos"]);n[e]={pos:a?a/1e3+"%":"",color:i}}let i=e["a:lin"],a=0,o="line";if(i)a=Y(i.attrs.ang);else{let t=e["a:path"];t&&t.attrs&&t.attrs.path&&(o=t.attrs.path)}return{rot:a,path:o,colors:n.sort((e,t)=>parseInt(e.pos)-parseInt(t.pos))}}function el(e,t){if(!e)return null;let r=e["a:pattFill"];if(!r)return null;let n=E(r,["attrs","prst"]),i=r["a:fgClr"],a=r["a:bgClr"],o="#000000",s="#FFFFFF";return i&&(o=ef(i,void 0,void 0,t)),a&&(s=ef(a,void 0,void 0,t)),{type:n,foregroundColor:o,backgroundColor:s}}function ec(e,t,r,n){if(e){let i=e["a:gradFill"],a=i["a:gsLst"]["a:gs"],o=[];for(let e=0;e<a.length;e++){let i=ef(a[e],r["p:sldMaster"]["p:clrMap"].attrs,t,n),s=E(a[e],["attrs","pos"]);o[e]={pos:s?s/1e3+"%":"",color:i}}let s=i["a:lin"],l=0,c="line";if(s)l=Y(s.attrs.ang)+0;else{let e=i["a:path"];e&&e.attrs&&e.attrs.path&&(c=e.attrs.path)}return{rot:l,path:c,colors:o.sort((e,t)=>parseInt(e.pos)-parseInt(t.pos))}}return t?-1===t.indexOf("#")?`#${t}`:t:null}async function eu(e){let t=e.slideContent,r=e.slideLayoutContent,n=e.slideMasterContent,i=E(t,["p:sld","p:cSld","p:bg","p:bgPr"]),a=E(t,["p:sld","p:cSld","p:bg","p:bgRef"]),o="#fff",s="color";if(i){let a=G(i);if("SOLID_FILL"===a){let a,s=i["a:solidFill"],l=E(t,["p:sld","p:clrMapOvr","a:overrideClrMapping","attrs"]);o=ef(s,a=l?l:E(r,["p:sldLayout","p:clrMapOvr","a:overrideClrMapping","attrs"])||E(n,["p:sldMaster","p:clrMap","attrs"]),void 0,e)}else if("GRADIENT_FILL"===a){let t=ec(i,void 0,n,e);"string"==typeof t?o=t:t&&(o=t,s="gradient")}else if("PIC_FILL"===a)o=await eo(i,"slideBg",e),s="image";else if("PATTERN_FILL"===a){let t=el(i,e);t&&(o=t,s="pattern")}}else if(a){let i,l=E(t,["p:sld","p:clrMapOvr","a:overrideClrMapping","attrs"]),c=ef(a,i=l?l:E(r,["p:sldLayout","p:clrMapOvr","a:overrideClrMapping","attrs"])||E(n,["p:sldMaster","p:clrMap","attrs"]),void 0,e),u=Number(a.attrs.idx);if(u>1e3){let t=e.themeContent["a:theme"]["a:themeElements"]["a:fmtScheme"]["a:bgFillStyleLst"],r=[];Object.keys(t).forEach(e=>{let n=t[e];if("attrs"!==e)if(n.constructor===Array)for(let t=0;t<n.length;t++){let i={};i[e]=n[t],n[t].attrs&&(i.idex=n[t].attrs.order,i.attrs={order:n[t].attrs.order}),r.push(i)}else{let t={};t[e]=n,n.attrs&&(t.idex=n.attrs.order,t.attrs={order:n.attrs.order}),r.push(t)}});let a=r.slice(0);a.sort((e,t)=>e.idex-t.idex);let l=a[u-1e3-1],h=G(l);if("SOLID_FILL"===h)o=ef(l["a:solidFill"],i,c,e);else if("GRADIENT_FILL"===h){let t=ec(l,c,n,e);"string"==typeof t?o=t:t&&(o=t,s="gradient")}}}else{let t;if(i=E(r,["p:sldLayout","p:cSld","p:bg","p:bgPr"]),a=E(r,["p:sldLayout","p:cSld","p:bg","p:bgRef"]),t=E(r,["p:sldLayout","p:clrMapOvr","a:overrideClrMapping","attrs"])||E(n,["p:sldMaster","p:clrMap","attrs"]),i){let r=G(i);if("SOLID_FILL"===r)o=ef(i["a:solidFill"],t,void 0,e);else if("GRADIENT_FILL"===r){let t=ec(i,void 0,n,e);"string"==typeof t?o=t:t&&(o=t,s="gradient")}else if("PIC_FILL"===r)o=await eo(i,"slideLayoutBg",e),s="image";else if("PATTERN_FILL"===r){let t=el(i,e);t&&(o=t,s="pattern")}}else if(a){let r=ef(a,t,void 0,e),i=Number(a.attrs.idx);if(i>1e3){let a=e.themeContent["a:theme"]["a:themeElements"]["a:fmtScheme"]["a:bgFillStyleLst"],l=[];Object.keys(a).forEach(e=>{let t=a[e];if("attrs"!==e)if(t.constructor===Array)for(let r=0;r<t.length;r++){let n={};n[e]=t[r],t[r].attrs&&(n.idex=t[r].attrs.order,n.attrs={order:t[r].attrs.order}),l.push(n)}else{let r={};r[e]=t,t.attrs&&(r.idex=t.attrs.order,r.attrs={order:t.attrs.order}),l.push(r)}});let c=l.slice(0);c.sort((e,t)=>e.idex-t.idex);let u=c[i-1e3-1],h=G(u);if("SOLID_FILL"===h)o=ef(u["a:solidFill"],t,r,e);else if("GRADIENT_FILL"===h){let t=ec(u,r,n,e);"string"==typeof t?o=t:t&&(o=t,s="gradient")}else if("PIC_FILL"===h)o=await eo(u,"themeBg",e),s="image";else if("PATTERN_FILL"===h){let t=el(u,e);t&&(o=t,s="pattern")}}}else{i=E(n,["p:sldMaster","p:cSld","p:bg","p:bgPr"]),a=E(n,["p:sldMaster","p:cSld","p:bg","p:bgRef"]);let r=E(n,["p:sldMaster","p:clrMap","attrs"]);if(i){let t=G(i);if("SOLID_FILL"===t)o=ef(i["a:solidFill"],r,void 0,e);else if("GRADIENT_FILL"===t){let t=ec(i,void 0,n,e);"string"==typeof t?o=t:t&&(o=t,s="gradient")}else if("PIC_FILL"===t)o=await eo(i,"slideMasterBg",e),s="image";else if("PATTERN_FILL"===t){let t=el(i,e);t&&(o=t,s="pattern")}}else if(a){let i=ef(a,r,void 0,e),l=Number(a.attrs.idx);if(l>1e3){let r=e.themeContent["a:theme"]["a:themeElements"]["a:fmtScheme"]["a:bgFillStyleLst"],a=[];Object.keys(r).forEach(e=>{let t=r[e];if("attrs"!==e)if(t.constructor===Array)for(let r=0;r<t.length;r++){let n={};n[e]=t[r],t[r].attrs&&(n.idex=t[r].attrs.order,n.attrs={order:t[r].attrs.order}),a.push(n)}else{let r={};r[e]=t,t.attrs&&(r.idex=t.attrs.order,r.attrs={order:t.attrs.order}),a.push(r)}});let c=a.slice(0);c.sort((e,t)=>e.idex-t.idex);let u=c[l-1e3-1],h=G(u);if("SOLID_FILL"===h)o=ef(u["a:solidFill"],t,i,e);else if("GRADIENT_FILL"===h){let t=ec(u,i,n,e);"string"==typeof t?o=t:t&&(o=t,s="gradient")}else if("PIC_FILL"===h)o=await eo(u,"themeBg",e),s="image";else if("PATTERN_FILL"===h){let t=el(u,e);t&&(o=t,s="pattern")}}}}}return{type:s,value:o}}async function eh(e,t,r,n){if(!e)return{state:"missing"};let i=E(e,["p:spPr"]),a=i?G(i):"",o="color",s="";if("NO_FILL"===a)return{state:"none"};if("SOLID_FILL"===a)s=ef(i["a:solidFill"],void 0,void 0,t),o="color";else if("GRADIENT_FILL"===a)s=es(i["a:gradFill"],t),o="gradient";else if("PIC_FILL"===a){let e=i["a:blipFill"],n=await ei(r,e,t),a=ea(e);s={ref:n.ref,base64:n.base64,blob:n.blob,opacity:a,align:n.align,alignType:n.alignType},o="image"}else if("PATTERN_FILL"===a)s=el({"a:pattFill":i["a:pattFill"]},t),o="pattern";else if("GROUP_FILL"===a){let e=await ed(n,t,r);return e?{state:"found",fill:e}:{state:"none"}}if(!s){let r=E(e,["attrs","useBgFill"]);if("1"===r||"true"===r){let e=await eu(t);return e?{state:"found",fill:e}:{state:"none"}}let n=E(e,["p:style","a:fillRef"]);if(n&&0===Number(E(n,["attrs","idx"])))return{state:"none"};s=ef(n,void 0,void 0,t),o="color"}return s?{state:"found",fill:{type:o,value:s}}:{state:"missing"}}async function ep(e,t,r,n={}){let i,{groupHierarchy:a=[],slideLayoutSpNode:o,slideMasterSpNode:s}=n;for(let n of(i=[{node:e,source:r}],o&&i.push({node:o,source:"slideLayoutBg"}),s&&i.push({node:s,source:"slideMasterBg"}),i)){let e=await eh(n.node,t,n.source,a);if("none"===e.state)break;if("found"===e.state)return e.fill}return null}async function ed(e,t,r){for(let n of e){if(!n||!n["p:grpSpPr"])continue;let e=n["p:grpSpPr"],i=G(e);if("SOLID_FILL"===i){let r=ef(e["a:solidFill"],void 0,void 0,t);if(r)return{type:"color",value:r}}else if("GRADIENT_FILL"===i){let r=es(e["a:gradFill"],t);if(r)return{type:"gradient",value:r}}else if("PIC_FILL"===i){let n=e["a:blipFill"],i=await ei(r,n,t),a=ea(n);if(i.ref||i.base64||i.blob)return{type:"image",value:{ref:i.ref,base64:i.base64,blob:i.blob,opacity:a,align:i.align,alignType:i.alignType}}}else if("PATTERN_FILL"===i){let r=el({"a:pattFill":e["a:pattFill"]},t);if(r)return{type:"pattern",value:r}}else if("GROUP_FILL"===i)continue;else if("NO_FILL"===i)return null}return{type:"slide-background"}}function ef(e,t,r,n){var a,o,s,l,c,u,h,p,d,f,m,g,A;let y,v,R,b,x,M,S,w,O,L,N;if(!e)return"";let _="";if(e["a:srgbClr"])_=E(y=e["a:srgbClr"],["attrs","val"]);else if(e["a:schemeClr"])_=B("a:"+E(y=e["a:schemeClr"],["attrs","val"]),n,t,r)||"";else if(e["a:scrgbClr"]){let t=(y=e["a:scrgbClr"]).attrs,r=-1!==t.r.indexOf("%")?t.r.split("%").shift():t.r,n=-1!==t.g.indexOf("%")?t.g.split("%").shift():t.g,i=-1!==t.b.indexOf("%")?t.b.split("%").shift():t.b;_=Q(255*(Number(r)/100))+Q(255*(Number(n)/100))+Q(255*(Number(i)/100))}else if(e["a:prstClr"]){let t,r,n;r=E(y=e["a:prstClr"],["attrs","val"]).toLowerCase(),-1!==(n=["AliceBlue","AntiqueWhite","Aqua","Aquamarine","Azure","Beige","Bisque","black","BlanchedAlmond","Blue","BlueViolet","Brown","BurlyWood","CadetBlue","Chartreuse","Chocolate","Coral","CornflowerBlue","Cornsilk","Crimson","Cyan","DarkBlue","DarkCyan","DarkGoldenRod","DarkGray","DarkGrey","DarkGreen","DarkKhaki","DarkMagenta","DarkOliveGreen","DarkOrange","DarkOrchid","DarkRed","DarkSalmon","DarkSeaGreen","DarkSlateBlue","DarkSlateGray","DarkSlateGrey","DarkTurquoise","DarkViolet","DeepPink","DeepSkyBlue","DimGray","DimGrey","DodgerBlue","FireBrick","FloralWhite","ForestGreen","Fuchsia","Gainsboro","GhostWhite","Gold","GoldenRod","Gray","Grey","Green","GreenYellow","HoneyDew","HotPink","IndianRed","Indigo","Ivory","Khaki","Lavender","LavenderBlush","LawnGreen","LemonChiffon","LightBlue","LightCoral","LightCyan","LightGoldenRodYellow","LightGray","LightGrey","LightGreen","LightPink","LightSalmon","LightSeaGreen","LightSkyBlue","LightSlateGray","LightSlateGrey","LightSteelBlue","LightYellow","Lime","LimeGreen","Linen","Magenta","Maroon","MediumAquaMarine","MediumBlue","MediumOrchid","MediumPurple","MediumSeaGreen","MediumSlateBlue","MediumSpringGreen","MediumTurquoise","MediumVioletRed","MidnightBlue","MintCream","MistyRose","Moccasin","NavajoWhite","Navy","OldLace","Olive","OliveDrab","Orange","OrangeRed","Orchid","PaleGoldenRod","PaleGreen","PaleTurquoise","PaleVioletRed","PapayaWhip","PeachPuff","Peru","Pink","Plum","PowderBlue","Purple","RebeccaPurple","Red","RosyBrown","RoyalBlue","SaddleBrown","Salmon","SandyBrown","SeaGreen","SeaShell","Sienna","Silver","SkyBlue","SlateBlue","SlateGray","SlateGrey","Snow","SpringGreen","SteelBlue","Tan","Teal","Thistle","Tomato","Turquoise","Violet","Wheat","White","WhiteSmoke","Yellow","YellowGreen"].findIndex(e=>e.toLowerCase()===r))&&(t=["f0f8ff","faebd7","00ffff","7fffd4","f0ffff","f5f5dc","ffe4c4","000000","ffebcd","0000ff","8a2be2","a52a2a","deb887","5f9ea0","7fff00","d2691e","ff7f50","6495ed","fff8dc","dc143c","00ffff","00008b","008b8b","b8860b","a9a9a9","a9a9a9","006400","bdb76b","8b008b","556b2f","ff8c00","9932cc","8b0000","e9967a","8fbc8f","483d8b","2f4f4f","2f4f4f","00ced1","9400d3","ff1493","00bfff","696969","696969","1e90ff","b22222","fffaf0","228b22","ff00ff","dcdcdc","f8f8ff","ffd700","daa520","808080","808080","008000","adff2f","f0fff0","ff69b4","cd5c5c","4b0082","fffff0","f0e68c","e6e6fa","fff0f5","7cfc00","fffacd","add8e6","f08080","e0ffff","fafad2","d3d3d3","d3d3d3","90ee90","ffb6c1","ffa07a","20b2aa","87cefa","778899","778899","b0c4de","ffffe0","00ff00","32cd32","faf0e6","ff00ff","800000","66cdaa","0000cd","ba55d3","9370db","3cb371","7b68ee","00fa9a","48d1cc","c71585","191970","f5fffa","ffe4e1","ffe4b5","ffdead","000080","fdf5e6","808000","6b8e23","ffa500","ff4500","da70d6","eee8aa","98fb98","afeeee","db7093","ffefd5","ffdab9","cd853f","ffc0cb","dda0dd","b0e0e6","800080","663399","ff0000","bc8f8f","4169e1","8b4513","fa8072","f4a460","2e8b57","fff5ee","a0522d","c0c0c0","87ceeb","6a5acd","708090","708090","fffafa","00ff7f","4682b4","d2b48c","008080","d8bfd8","ff6347","40e0d0","ee82ee","f5deb3","ffffff","f5f5f5","ffff00","9acd32"][n]),_=t}else if(e["a:hslClr"]){let t,r,n,i=(y=e["a:hslClr"]).attrs,o=Number(i.hue)/1e5,s=Number(-1!==i.sat.indexOf("%")?i.sat.split("%").shift():i.sat)/100,l=Number(-1!==i.lum.indexOf("%")?i.lum.split("%").shift():i.lum)/100,c=(a=o/60,t=l<=.5?l*(s+1):l+s-l*s,n=255*Z(r=2*l-t,t,a+2),{r:n,g:255*Z(r,t,a),b:255*Z(r,t,a-2)});_=Q(c.r)+Q(c.g)+Q(c.b)}else if(e["a:sysClr"]){let t=E(y=e["a:sysClr"],["attrs","lastClr"]);t&&(_=t)}let T=!1,P=parseInt(E(y,["a:alpha","attrs","val"]))/1e5;if(!isNaN(P)){let e=(0,i.A)(_);e.setAlpha(P),_=e.toHex8(),T=!0}let C=parseInt(E(y,["a:hueMod","attrs","val"]))/1e5;isNaN(C)||(o=_,s=T,(R=(v=(0,i.A)(o).toHsl()).h*C)>=360&&(R-=360),_=s?(0,i.A)({h:R,s:v.s,l:v.l,a:v.a}).toHex8():(0,i.A)({h:R,s:v.s,l:v.l,a:v.a}).toHex());let I=parseInt(E(y,["a:lumMod","attrs","val"]))/1e5;isNaN(I)||(l=_,c=T,(x=(b=(0,i.A)(l).toHsl()).l*I)>=1&&(x=1),_=c?(0,i.A)({h:b.h,s:b.s,l:x,a:b.a}).toHex8():(0,i.A)({h:b.h,s:b.s,l:x,a:b.a}).toHex());let k=parseInt(E(y,["a:lumOff","attrs","val"]))/1e5;isNaN(k)||(m=_,g=k,A=T,_=(N=g+(L=(0,i.A)(m).toHsl()).l)>=1?A?(0,i.A)({h:L.h,s:L.s,l:1,a:L.a}).toHex8():(0,i.A)({h:L.h,s:L.s,l:1,a:L.a}).toHex():A?(0,i.A)({h:L.h,s:L.s,l:N,a:L.a}).toHex8():(0,i.A)({h:L.h,s:L.s,l:N,a:L.a}).toHex());let F=parseInt(E(y,["a:satMod","attrs","val"]))/1e5;isNaN(F)||(u=_,h=T,(S=(M=(0,i.A)(u).toHsl()).s*F)>=1&&(S=1),_=h?(0,i.A)({h:M.h,s:S,l:M.l,a:M.a}).toHex8():(0,i.A)({h:M.h,s:S,l:M.l,a:M.a}).toHex());let X=parseInt(E(y,["a:shade","attrs","val"]))/1e5;isNaN(X)||(p=_,d=X,f=T,w=(0,i.A)(p).toHsl(),d>=1&&(d=1),O=Math.min(w.l*d,1),_=f?(0,i.A)({h:w.h,s:w.s,l:O,a:w.a}).toHex8():(0,i.A)({h:w.h,s:w.s,l:O,a:w.a}).toHex());let U=parseInt(E(y,["a:tint","attrs","val"]))/1e5;return isNaN(U)||(_=K(_,U,T)),_&&-1===_.indexOf("#")&&(_="#"+_),_}function em(e){let t=E(e,["attrs"]);if(!t)return;let r={type:t.type||"none"};return t.w&&(r.width=t.w),t.len&&(r.length=t.len),r}function eg(e,t,r){let n=E(e,["p:spPr","a:ln"]),i=E(e,["p:style","a:lnRef"]),a=n;if(!a&&i){let e=E(i,["attrs","idx"]);a=r.themeContent["a:theme"]["a:themeElements"]["a:fmtScheme"]["a:lnStyleLst"]["a:ln"][Number(e)-1]}a||(a=e);let o=E(a,["a:noFill"]),s=a["a:solidFill"]||a["a:gradFill"],l=void 0!==E(a,["attrs","w"]),c=o?0:parseInt(E(a,["attrs","w"]))/12700;isNaN(c)&&(c=a&&a!==e&&(s||l)?.75:0);let u=null;if(a["a:solidFill"]){let e=ef(a["a:solidFill"],void 0,void 0,r);e&&(u={type:"color",value:e})}if(!u&&!n&&i){let e=ef(i,void 0,void 0,r);e&&(u={type:"color",value:e})}if(!u&&a["a:gradFill"]){let e=es(a["a:gradFill"],r);e&&e.colors&&e.colors.length>0&&(u={type:"gradient",value:e})}u||(u={type:"color",value:"transparent"});let h=E(a,["a:prstDash","attrs","val"]),p="solid",d="0";switch(h){case"solid":p="solid",d="0";break;case"dash":p="dashed",d="5";break;case"dashDot":p="dashed",d="5, 5, 1, 5";break;case"dot":p="dotted",d="1, 5";break;case"lgDash":p="dashed",d="10, 5";break;case"lgDashDotDot":p="dotted",d="10, 5, 1, 5, 1, 5";break;case"sysDash":p="dashed",d="5, 2";break;case"sysDashDot":p="dotted",d="5, 2, 1, 5";break;case"sysDashDotDot":p="dotted",d="5, 2, 1, 5, 1, 5";break;case"sysDot":p="dotted",d="2, 5"}return{borderColor:u,borderWidth:c,borderType:p,strokeDasharray:d,headEnd:em(E(a,["a:headEnd"])),tailEnd:em(E(a,["a:tailEnd"]))}}function eA(e,t){if(!e)return[];e.constructor!==Array&&(e=[e]);let r=[];for(let n of e){let e=E(n,["c:spPr","a:solidFill","a:schemeClr"]);e||(e=E(n,["c:spPr","a:ln","a:solidFill","a:schemeClr"])),e||(e=E(n,["c:marker","c:spPr","a:ln","a:solidFill","a:schemeClr"]));let i=E(e,["attrs","val"]);if(i){i=E(t.themeContent,["a:theme","a:themeElements","a:clrScheme",`a:${i}`,"a:srgbClr","attrs","val"]);let r=E(e,["a:tint","attrs","val"])/1e5;i&&!isNaN(r)&&(i=K(i,r))}else i=E(n,["c:spPr","a:solidFill","a:srgbClr","attrs","val"]);i&&(i="#"+i),r.push(i)}return r}function ey(e){let t=[];return e&&V(e,(e,r)=>{let n=[],i=E(e,["c:tx","c:strRef","c:strCache","c:pt","c:v"])||r,a={};return E(e,["c:cat","c:strRef","c:strCache","c:pt"])?V(e["c:cat"]["c:strRef"]["c:strCache"]["c:pt"],e=>(a[e.attrs.idx]=e["c:v"],"")):E(e,["c:cat","c:numRef","c:numCache","c:pt"])&&V(e["c:cat"]["c:numRef"]["c:numCache"]["c:pt"],e=>(a[e.attrs.idx]=e["c:v"],"")),E(e,["c:val","c:numRef","c:numCache","c:pt"])&&V(e["c:val"]["c:numRef"]["c:numCache"]["c:pt"],e=>(n.push({x:e.attrs.idx,y:parseFloat(e["c:v"])}),"")),t.push({key:i,values:n,xlabels:a}),""}),t}function ev(e){let t=[];if(!e)return t;let r=e.constructor===Array?e:[e],n=r[0],i=[];for(let e of(V(n["c:xVal"]["c:numRef"]["c:numCache"]["c:pt"],e=>(i.push(parseFloat(e["c:v"])),"")),t.push(i),r)){let r=[];V(e["c:yVal"]["c:numRef"]["c:numCache"]["c:pt"],e=>(r.push(parseFloat(e["c:v"])),"")),t.push(r)}return t}let eR=72/914400;function eb(e){let t=1,r=E(e,["a:pPr","attrs","lvl"]);return void 0!==r&&(t=parseInt(r)+1),t}function ex(e,t){if(!e)return"";let r=E(e,["p:txBody","a:lstStyle",t,"attrs","algn"]);return r||(r=E(e,["p:txBody","a:p","a:pPr","attrs","algn"])),r||""}function eM(e,t){t&&e.push(t)}function eS(e,t,r){t&&(eM(e,E(t,["p:txBody","a:lstStyle",`a:lvl${r}pPr`])),eM(e,E(t,["p:txBody","a:p","a:pPr"])))}function ew(e,t,r,n,i,a,o){var s;if(!e)return null;let l=e["a:pPr"],c=eb(e),u=[];return eM(u,l),t&&eM(u,E(t,["a:lstStyle",`a:lvl${c}pPr`])),eS(u,r,c),eS(u,n,c),!function(e,t,r,n){if(!n)return;let i=`a:lvl${r}pPr`;"title"===t||"ctrTitle"===t||"subTitle"===t?(eM(e,E(n,["p:titleStyle",i])),"subTitle"===t&&eM(e,E(n,["p:bodyStyle",i]))):"body"===t?eM(e,E(n,["p:bodyStyle",i])):eM(e,E(n,["p:otherStyle",i]))}(u,i,c,a),s=E(o,["defaultTextStyle"]),s&&(eM(u,E(s,[`a:lvl${c}pPr`])),eM(u,E(s,["a:defPPr"]))),u}function eO(e){let t=E(e,["a:spcPct","attrs","val"]),r=E(e,["a:spcPts","attrs","val"]);return t?parseInt(t)/1e5+"em":r?parseInt(r)/100+"pt":void 0}function eL(e,t){let r=E(e,["attrs",t]);if(void 0!==r&&""!==r)return $(parseInt(r)*eR)+"pt"}function eN(e,t,r,n){let i=E(e,["p:txBody","a:bodyPr","attrs",n]);return null!=i&&""!==i||null!=(i=E(t,["p:txBody","a:bodyPr","attrs",n]))&&""!==i?i:E(r,["p:txBody","a:bodyPr","attrs",n])}function e_(e){if(null==e||""===e)return null;let t=parseInt(e,10);return Number.isFinite(t)?$(t*eR):null}function eT(e,t,r){let n;return(e?n=e["a:off"].attrs:t?n=t["a:off"].attrs:r&&(n=r["a:off"].attrs),n)?{top:$(parseInt(n.y)*eR),left:$(parseInt(n.x)*eR)}:{top:0,left:0}}function eP(e,t,r){let n;return(e?n=e["a:ext"].attrs:t?n=t["a:ext"].attrs:r&&(n=r["a:ext"].attrs),n)?{width:$(parseInt(n.cx)*eR),height:$(parseInt(n.cy)*eR)}:{width:0,height:0}}function eC(e){let t=e&&e.__rawNode;return t?(function(e,t={}){return new _(t).convert(e)})(function e(t){if(!t||"object"!=typeof t)return null;if("oMath"===function(e){if(!e)return"";let t=e.indexOf(":");return t>=0?e.slice(t+1):e}(t.tagName))return t;for(let r of t.children||[])if("object"==typeof r){let t=e(r);if(t)return t}return null}(t)||t).replaceAll(/&lt;/g,"<").replaceAll(/&gt;/g,">").replaceAll(/&amp;/g,"&").replaceAll(/&apos;/g,"'").replaceAll(/&quot;/g,'"').trim():""}let eI=e=>e?Array.isArray(e)?e:[e]:[];function ek(e){let t=eI(e&&e["m:oMath"]);if(t.length)return t;let r=[];for(let t of eI(e&&e["m:oMathPara"])){let e=eI(t["m:oMath"]);e.length?r.push(...e):r.push(t)}return r}let eF=(e,t)=>{if(!e||"object"!=typeof e)return null;if(e["a:rPr"]){let t=e["a:rPr"];return Array.isArray(t)?t[0]:t}for(let[r,n]of Object.entries(e))if("attrs"!==r&&(!t||"m:ctrlPr"!==r))for(let e of eI(n)){let r=eF(e,t);if(r)return r}return null};function eX(e,t){let r=ef(e,void 0,void 0,t),n=e.attrs,i=n.dir?parseInt(n.dir)/6e4:0,a=n.dist?parseInt(n.dist)*eR:0,o=n.blurRad?parseInt(n.blurRad)*eR:"",s=a*Math.sin(i*Math.PI/180);return{h:a*Math.cos(i*Math.PI/180),v:s,blur:o,color:r}}function eU(e,t){t&&e.push(t)}function eW(e){return`a:lvl${e}pPr`}function eV(e,t,r){t&&(eU(e,E(t,["p:txBody","a:lstStyle",eW(r),"a:defRPr"])),eU(e,E(t,["p:txBody","a:p","a:pPr","a:defRPr"])))}function eE(e,t,r,n){if(!n)return;let i=eW(r);"title"===t||"ctrTitle"===t||"subTitle"===t?(eU(e,E(n,["p:titleStyle",i,"a:defRPr"])),"subTitle"===t&&eU(e,E(n,["p:bodyStyle",i,"a:defRPr"]))):"body"===t?eU(e,E(n,["p:bodyStyle",i,"a:defRPr"])):eU(e,E(n,["p:otherStyle",i,"a:defRPr"]))}function eY(e,t,r,n,i,a){let o=[],s=E(e,["a:rPr"]);return eU(o,s),s||eU(o,E(t,["a:endParaRPr"])),eU(o,E(t,["a:pPr","a:defRPr"])),r&&eU(o,E(r,["a:lstStyle",eW(a),"a:defRPr"])),eV(o,n,a),eV(o,i,a),o}function eD(e,t,r,n,i,a,o,s){let l=eY(e,t,r,n,i,s);return eE(l,a,s,o),l}function eQ(e,t){for(let r of e){let e=E(r,["attrs",t]);if(void 0!==e&&""!==e)return e}return""}function e$(e){return/[\u2E80-\u9FFF\uF900-\uFAFF\uFF00-\uFF60\uFFE0-\uFFE6\u3000-\u303F]/.test(e)}function eB(e,t){for(let r of e){let e=function(e,t){if(!e)return"";let r=G(e);return"SOLID_FILL"===r?ef(e["a:solidFill"],void 0,void 0,t):"GRADIENT_FILL"===r?es(e["a:gradFill"],t):""}(r,t);if(e)return e}return""}function eZ(e,t,r,n,i,a,o,s,l,c){let u=E(e,["a:rPr"]);if(u&&"NO_FILL"===G(u))return"transparent";let h=eY(e,t,r,n,i,s),p=eB(h,c);if(!p){if(l&&(p=ef(l,void 0,void 0,c)),!p){let e=E(n,["p:style","a:fontRef"]);e&&(p=ef(e,void 0,void 0,c))}if(!p){let e=E(i,["p:style","a:fontRef"]);e&&(p=ef(e,void 0,void 0,c))}}return p||(eE(h,a,s,o),p=eB(h,c)),p||""}function eK(e,t,r,n,i,a,o,s,l){let c=eD(e,t,r,n,i,a,o,s);l&&(eU(c,E(l,[eW(s),"a:defRPr"])),eU(c,E(l,["a:defPPr","a:defRPr"])));let u=eQ(c,"sz"),h=u?parseInt(u)/100:void 0;return(isNaN(h)||!h)&&("dt"===a||"sldNum"===a)&&(h=12),(h=isNaN(h)||!h?18:h)+"pt"}function eG(e){return"string"==typeof e?e:e&&"string"==typeof e.value?e.value:void 0}function eH(e,t,r,n,i,a){if(!e)return"";let o="",s=E(t,["p:style","a:fontRef"]),l=t&&t["a:tcPr"]?void 0:a.slideMasterTextStyles,c=t&&t["a:tcPr"]?a.defaultTextStyle:void 0,u=e["a:p"],h=u.constructor===Array?u:[u],p=[];for(let u of h){let h=u["a:r"],d=u["a:fld"],f=u["a:br"];h&&(h=h.constructor===Array?h:[h],d&&(d=d.constructor===Array?d:[d],h=h.concat(d)),f&&((f=f.constructor===Array?f:[f]).forEach(e=>e.type="br"),f.length>1&&f.shift(),(h=h.concat(f)).sort((e,t)=>!e.attrs||!t.attrs||e.attrs.order-t.attrs.order)));let m=function(e){let t=[],r=(e,r)=>{let n=eC(e);n&&t.push({type:"math",latex:n,node:e,attrs:{order:r}})};for(let t of eI(e["a14:m"])){let e=t&&t.attrs&&t.attrs.order||0;for(let n of ek(t))r(n,e)}for(let t of ek(e))r(t,t&&t.attrs&&t.attrs.order||0);return t}(u);m.length&&(h=(h||[]).concat(m)).sort((e,t)=>(e.attrs&&e.attrs.order||0)-(t.attrs&&t.attrs.order||0));let g=function(e,t,r,n,i,a){let o=E(e,["a:pPr","attrs","algn"]);if(o||(o=E(t,["p:txBody","a:p","a:pPr","attrs","algn"])),!o){let t="a:lvl"+eb(e)+"pPr";(o=ex(n,t))||(o=ex(i,t)),o||"title"!==r&&"ctrTitle"!==r&&"subTitle"!==r?o||"body"!==r?o||(o=E(a,["slideMasterTextStyles","p:otherStyle",t,"attrs","algn"])):o=E(a,["slideMasterTextStyles","p:bodyStyle",t,"attrs","algn"]):(o=E(a,["slideMasterTextStyles","p:titleStyle",t,"attrs","algn"]))||"subTitle"!==r||(o=E(a,["slideMasterTextStyles","p:bodyStyle",t,"attrs","algn"]))}let s="left";if(o)switch(o){case"l":s="left";break;case"r":s="right";break;case"ctr":s="center";break;case"just":s="justify";break;case"dist":s="distribute";break;default:s="inherit"}return s}(u,t,i,r,n,a),A=function(e,t,r,n,i,a,o){let s=ew(e,t,r,n,i,a,o);if(!s)return null;let l={};for(let e of s){if(void 0===l.lineSpacing){let t=function(e){let t=E(e,["a:spcPct","attrs","val"]),r=E(e,["a:spcPts","attrs","val"]);return t?Math.round(parseInt(t)/1e3/100*120)/100:r?parseInt(r)/100+"pt":void 0}(e["a:lnSpc"]);void 0!==t&&(l.lineSpacing=t)}if(void 0===l.spaceBefore){let t=eO(e["a:spcBef"]);void 0!==t&&(l.spaceBefore=t)}if(void 0===l.spaceAfter){let t=eO(e["a:spcAft"]);void 0!==t&&(l.spaceAfter=t)}}let c=function(e,t,r){for(let n of[e,t&&t["p:txBody"],r&&r["p:txBody"]]){let e=E(n,["a:bodyPr","a:normAutofit","attrs","lnSpcReduction"]);if(void 0!==e)return parseInt(e)}}(t,r,n);if(void 0!==c){let e=c/1e5;void 0!==l.lineSpacing?"number"==typeof l.lineSpacing&&(l.lineSpacing=Math.round(l.lineSpacing*(1-e)*100)/100):l.lineSpacing=Math.round((1-e)*100)/100}return Object.keys(l).length>0?l:null}(u,e,r,n,i,l,a),y=function(e,t,r,n,i,a,o){let s=ew(e,t,r,n,i,a,o);if(!s)return null;let l={};for(let e of s){if(void 0===l.marginLeft){let t=eL(e,"marL");void 0!==t&&(l.marginLeft=t)}if(void 0===l.textIndent){let t=eL(e,"indent");void 0!==t&&(l.textIndent=t)}}return Object.keys(l).length>0?l:null}(u,e,r,n,i,l,a),v=function(e,t,r,n,i,a,o){if(!(e["a:r"]||e["a:br"]||e["a:fld"]))return"";let s=ew(e,t,r,n,i,a,o);if(!s)return"";for(let e of s){if(e["a:buNone"])break;if(e["a:buChar"]||e["a:buBlip"])return"ul";if(e["a:buAutoNum"])return"ol"}return""}(u,e,r,n,i,l,a),R=function(e){let t=e["a:pPr"];if(!t)return 0;let r=E(t,["attrs","lvl"]);return void 0!==r?parseInt(r):0}(u),b=g;"distribute"===g&&(b="justify");let x=`text-align: ${b};`;if("distribute"===g&&(x+="text-align-last: justify;text-justify: distribute;"),A?(A.lineSpacing?x+=`line-height: ${A.lineSpacing};`:x+="line-height: 1.2;",A.spaceBefore&&(x+=`margin-top: ${A.spaceBefore};`),A.spaceAfter&&(x+=`margin-bottom: ${A.spaceAfter};`)):x+="line-height: 1.2;",y&&(!v&&y.marginLeft&&(x+=`margin-left: ${y.marginLeft};`),!v&&y.textIndent&&(x+=`text-indent: ${y.textIndent};`)),v){for(;p.length>R+1;){let e=p.pop();o+=`</${e}>`}void 0===p[R]?(o+=`<${v}>`,p[R]=v):p[R]!==v&&(o+=`</${p[R]}>`,o+=`<${v}>`,p[R]=v),o+=`<li><p style="${x}">`}else{for(;p.length>0;){let e=p.pop();o+=`</${e}>`}o+=`<p style="${x}">`}if(h){let t=null,p="",d=h.find(e=>!e.type),f=null;for(let m of h){if("math"===m.type){if(p&&t){let e=p.replace(/\t/g,"&nbsp;&nbsp;&nbsp;&nbsp;").replace(/\s/g,"&nbsp;");o+=`<span style="${t.styleText}">${e}</span>`}p="",t=null;let h=D(m.latex),g=function(e,t,r,n,i,a,o,s,l,c,u){let h,p,d,f,m=1,g=E(r,["a:pPr","attrs","lvl"]);void 0!==g&&(m=parseInt(g)+1);let A=(p=eF(h=e&&e.node,!0)||eF(h,!1))?{"a:rPr":p}:{},y=(d=A&&A["a:rPr"])&&d.attrs&&d.attrs.sz||!t?A:t,v=(f=A&&A["a:rPr"])&&(f["a:solidFill"]||f["a:gradFill"]||f["a:pattFill"])||!t?A:t,R=eK(y,r,n,a,o,s,l,m,c),b=eZ(v,r,n,a,o,s,l,m,i,u),x="";return R&&(x+=`font-size: ${R};`),b&&"string"==typeof b&&(x+=`color: ${b};`),x}(m,f||d,u,e,s,r,n,i,l,c,a);o+=`<span class="omml-math" data-latex="${h}"${g?` style="${g}"`:""}>${h}</span>`;continue}m.type||(f=m);let h=ez(m,u,e,s,r,n,i,l,c,a);if(!t||t.styleText!==h.styleText||t.hasLink!==h.hasLink||h.hasLink){if(p){let e=p.replace(/\t/g,"&nbsp;&nbsp;&nbsp;&nbsp;").replace(/\s/g,"&nbsp;");o+=`<span style="${t.styleText}">${e}</span>`,p=""}if(h.hasLink){let e=h.text.replace(/\t/g,"&nbsp;&nbsp;&nbsp;&nbsp;").replace(/\s/g,"&nbsp;");o+=`<span style="${h.styleText}"><a href="${h.linkURL}" target="_blank">${e}</a></span>`,t=null}else t=h,p=h.text}else p+=h.text}if(p&&t){let e=p.replace(/\t/g,"&nbsp;&nbsp;&nbsp;&nbsp;").replace(/\s/g,"&nbsp;");o+=`<span style="${t.styleText}">${e}</span>`}}else o+=function(e,t,r,n,i,a,o,s,l,c){let{styleText:u,text:h,hasLink:p,linkURL:d}=ez(e,t,r,n,i,a,o,s,l,c),f=h.replace(/\t/g,"&nbsp;&nbsp;&nbsp;&nbsp;").replace(/\s/g,"&nbsp;");return p?`<span style="${u}"><a href="${d}" target="_blank">${f}</a></span>`:`<span style="${u}">${f}</span>`}(u,t,e,s,r,n,i,l,c,a);v?o+="</p></li>":o+="</p>"}for(;p.length>0;){let e=p.pop();o+=`</${e}>`}return o}function ez(e,t,r,n,i,a,o,s,l,c){let u,h,p=1,d=E(t["a:pPr"],["attrs","lvl"]);void 0!==d&&(p=parseInt(d)+1);let f=eG(e["a:t"]);"string"!=typeof f&&(f=eG(E(e,["a:fld","a:t"]))),"string"!=typeof f&&(f="&nbsp;");let m="",g=eZ(e,t,r,i,a,o,s,p,n,c),A=eK(e,t,r,i,a,o,s,p,l),y=function(e,t,r,n,i,a,o,s,l,c){let u=e$(c),h=function(e,t){let r=e$(t);for(let t of e){let e=E(t,["a:latin","attrs","typeface"]),n=E(t,["a:ea","attrs","typeface"]),i=E(t,["a:cs","attrs","typeface"]),a=E(t,["a:sym","attrs","typeface"]);if(r&&n)return n;if(e)return e;if(n)return n;if(i)return i;if(a)return a}return""}(eD(e,t,r,n,i,a,o,s),c);if(!h||h.startsWith("+")){let e=E(l.themeContent,["a:theme","a:themeElements","a:fontScheme"]);if(e&&h&&h.startsWith("+"))switch(h){case"+mj-lt":return E(e,["a:majorFont","a:latin","attrs","typeface"]);case"+mn-lt":return E(e,["a:minorFont","a:latin","attrs","typeface"]);case"+mj-ea":return E(e,["a:majorFont","a:ea","attrs","typeface"]);case"+mn-ea":return E(e,["a:minorFont","a:ea","attrs","typeface"]);case"+mj-cs":return E(e,["a:majorFont","a:cs","attrs","typeface"]);case"+mn-cs":return E(e,["a:minorFont","a:cs","attrs","typeface"]);default:return h.replace(/^\+/,"")}h="title"===a||"subTitle"===a||"ctrTitle"===a?(u?E(e,["a:majorFont","a:ea","attrs","typeface"]):"")||E(e,["a:majorFont","a:latin","attrs","typeface"])||E(e,["a:majorFont","a:ea","attrs","typeface"]):(u?E(e,["a:minorFont","a:ea","attrs","typeface"]):"")||E(e,["a:minorFont","a:latin","attrs","typeface"])||E(e,["a:minorFont","a:ea","attrs","typeface"])}return h||""}(e,t,r,i,a,o,s,p,c,f),v=U(eQ(eD(e,t,r,i,a,o,s,p),"b"))?"bold":"",R=U(eQ(eD(e,t,r,i,a,o,s,p),"i"))?"italic":"",b="sng"===eQ(eD(e,t,r,i,a,o,s,p),"u")?"underline":"",x="sngStrike"===eQ(eD(e,t,r,i,a,o,s,p),"strike")?"line-through":"",M=(u=eQ(eD(e,t,r,i,a,o,s,p),"spc"))&&0!==parseInt(u)?parseInt(u)/100+"pt":"",S=function(e,t,r,n,i,a,o,s,l){let c=function(e,t){for(let r of e){let e=E(r,["a:effectLst","a:outerShdw"]);if(!e)continue;let n=eX(e,t);if(n)return n}return null}(eD(e,t,r,n,i,a,o,s),l);if(c){let{h:e,v:t,blur:r,color:n}=c;if(!isNaN(t)&&!isNaN(e))return e+"pt "+t+"pt "+(r?r+"pt":"")+" "+n}return""}(e,t,r,i,a,o,s,p,c),w=(h=eQ(eD(e,t,r,i,a,o,s,p),"baseline"))&&0!==parseInt(h)?parseInt(h)>0?"super":"sub":"";if(g){if("string"==typeof g)m+=`color: ${g};`;else if(g.colors){let{colors:e,rot:t}=g,r=e.map(e=>`${e.color} ${e.pos}`).join(", "),n=`linear-gradient(${t+90}deg, ${r})`;m+=`background: ${n}; background-clip: text; color: transparent;`}}A&&(m+=`font-size: ${A};`),y&&(m+=`font-family: ${y};`),v&&(m+=`font-weight: ${v};`),R&&(m+=`font-style: ${R};`),b&&(m+=`text-decoration: ${b};`),x&&(m+=`text-decoration-line: ${x};`),M&&(m+=`letter-spacing: ${M};`),w&&(m+=`vertical-align: ${w};`),S&&(m+=`text-shadow: ${S};`);let O=E(e,["a:rPr","a:hlinkClick","attrs","r:id"]),L=O&&c.slideResObj[O];return L&&(m=function(e,t,r){let n=e,i=E(t,["a:rPr"]),a=i?G(i):"";if("SOLID_FILL"!==a&&"GRADIENT_FILL"!==a){var o;let e=((o=B("a:hlink",r))?o.startsWith("#")?o:`#${o}`:"")||"#0563C1";/color\s*:/.test(n)?n=n.replace(/color\s*:\s*[^;]+;/,`color: ${e};`):n+=`color: ${e};`}return"none"===E(t,["a:rPr","attrs","u"])||/text-decoration\s*:\s*underline/.test(n)||(n+="text-decoration: underline;"),n}(m,e,c)),{styleText:m,text:f,hasLink:L,linkURL:L?c.slideResObj[O].target:null}}function eJ(e,t,r){let n=E(e,["a:pathLst"]),i=E(n,["a:path"]);Array.isArray(i)&&(i=i.shift());let a=parseInt(i.attrs.w)||0,o=parseInt(i.attrs.h)||0,s=0===a?0:1/a*t,l=0===o?0:1/o*r,c="",u=E(i,["a:moveTo"]),h=i["a:lnTo"],p=i["a:cubicBezTo"],d=i["a:quadBezTo"],f=i["a:arcTo"],m=E(i,["a:close"]);Array.isArray(u)||(u=[u]);let g=[];if(u.length>0){if(Object.keys(u).forEach(e=>{if(!u[e])return;let t=u[e]["a:pt"];t&&Object.keys(t).forEach(e=>{let r=t[e],n=r.x,i=r.y,a=r.order;g.push({type:"movto",x:n,y:i,order:a})})}),h&&(Array.isArray(h)||(h=[h]),Object.keys(h).forEach(e=>{if(!h[e])return;let t=h[e]["a:pt"];t&&Object.keys(t).forEach(e=>{let r=t[e],n=r.x,i=r.y,a=r.order;g.push({type:"lnto",x:n,y:i,order:a})})})),p){let e=[];Array.isArray(p)||(p=[p]),Object.keys(p).forEach(t=>{p[t]&&p[t]["a:pt"]&&e.push(p[t]["a:pt"])}),e.forEach(e=>{let t=[];e.forEach(e=>{let r={x:e.attrs.x,y:e.attrs.y};t.push(r)});let r=e[0].attrs.order;g.push({type:"cubicBezTo",cubBzPt:t,order:r})})}if(d){let e=[];Array.isArray(d)||(d=[d]),Object.keys(d).forEach(t=>{d[t]&&d[t]["a:pt"]&&e.push(d[t]["a:pt"])}),e.forEach(e=>{let t=[];e.forEach(e=>{let r={x:e.attrs.x,y:e.attrs.y};t.push(r)});let r=e[0].attrs.order;g.push({type:"quadBezTo",quadBzPt:t,order:r})})}f&&(Array.isArray(f)?f:[f]).forEach(e=>{let t=e.attrs,r=t.order,n=t.hR,i=t.wR,a=t.stAng,o=t.swAng,s=0,l=0,c=E(e,["a:pt","attrs"]);c&&(s=c.x,l=c.y),g.push({type:"arcTo",hR:n,wR:i,stAng:a,swAng:o,shftX:s,shftY:l,order:r})}),m&&(Array.isArray(m)||(m=[m]),Object.keys(m).forEach(()=>{g.push({type:"close",order:1/0})})),g.sort((e,t)=>e.order-t.order);let e=0;for(;e<g.length;){if("movto"===g[e].type)c+=" M"+parseInt(g[e].x)*s+","+parseInt(g[e].y)*l;else if("lnto"===g[e].type)c+=" L"+parseInt(g[e].x)*s+","+parseInt(g[e].y)*l;else if("cubicBezTo"===g[e].type)c+=" C"+parseInt(g[e].cubBzPt[0].x)*s+","+parseInt(g[e].cubBzPt[0].y)*l+" "+parseInt(g[e].cubBzPt[1].x)*s+","+parseInt(g[e].cubBzPt[1].y)*l+" "+parseInt(g[e].cubBzPt[2].x)*s+","+parseInt(g[e].cubBzPt[2].y)*l;else if("quadBezTo"===g[e].type)c+=" Q"+parseInt(g[e].quadBzPt[0].x)*s+","+parseInt(g[e].quadBzPt[0].y)*l+" "+parseInt(g[e].quadBzPt[1].x)*s+","+parseInt(g[e].quadBzPt[1].y)*l;else if("arcTo"===g[e].type){let t=parseInt(g[e].hR)*s,r=parseInt(g[e].wR)*l,n=parseInt(g[e].stAng)/6e4,i=n+parseInt(g[e].swAng)/6e4;c+=function(e,t,r,n,i,a,o){let s,l=i;if(a>=i)for(;l<=a;){let a=Math.PI/180*l,o=e+Math.cos(a)*r,c=t+Math.sin(a)*n;l===i&&(s=" M"+o+" "+c),s+=" L"+o+" "+c,l++}else for(;l>a;){let a=Math.PI/180*l,o=e+Math.cos(a)*r,c=t+Math.sin(a)*n;l===i&&(s=" M "+o+" "+c),s+=" L "+o+" "+c,l--}return s+(o?" z":"")}(r,t,r,t,n,i,!1)}else"close"===g[e].type&&(c+="z");e++}}return c}function ej(e){return e?Array.isArray(e)?e:[e]:[]}async function eq(e,t){let r=t.split("/").pop();try{let n=e.file(t);if(!n||!r.toLowerCase().endsWith(".fntdata")&&!r.toLowerCase().endsWith(".eot"))return"";let i=await n.async("arraybuffer"),a=function(e){let t=new DataView(e),r=new Uint8Array(e);try{let e=t.getUint32(0,!0),n=t.getUint32(4,!0),i=t.getUint32(8,!0),a=t.getUint16(34,!0);if(20556!==a||65536!==i&&131073!==i&&131074!==i)return null;let o=e-n;if(o<0||o>=e)return null;let s=r.slice(o,e);if(s.length>=4){let e=s[0]<<24|s[1]<<16|s[2]<<8|s[3];if(65536!==e&&0x4f54544f!==e)return null}return s}catch(e){return null}}(i);if(!a)return"";let o=new Blob([a],{type:"font/ttf"});return URL.createObjectURL(o)}catch(e){return""}}let e0={微软雅黑:"Microsoft YaHei, PingFang SC, Noto Sans CJK SC, sans-serif","Microsoft YaHei":"Microsoft YaHei, PingFang SC, Noto Sans CJK SC, sans-serif","Microsoft YaHei UI":"Microsoft YaHei UI, Microsoft YaHei, PingFang SC, sans-serif","微软雅黑 UI":"Microsoft YaHei UI, Microsoft YaHei, PingFang SC, sans-serif",宋体:"SimSun, STSong, serif",SimSun:"SimSun, STSong, serif",新宋体:"NSimSun, SimSun, STSong, serif",NSimSun:"NSimSun, SimSun, serif",黑体:"SimHei, STHeiti, Heiti SC, sans-serif",SimHei:"SimHei, STHeiti, sans-serif",仿宋:"FangSong, STFangSong, serif",FangSong:"FangSong, STFangSong, serif",楷体:"KaiTi, STKaiti, serif",KaiTi:"KaiTi, STKaiti, serif",仿宋_GB2312:"FangSong_GB2312, FangSong, serif",楷体_GB2312:"KaiTi_GB2312, KaiTi, serif",方正舒体:"FZShuTi, STSong, serif",方正姚体:"FZYaoti, STSong, serif",华文细黑:"STXihei, Microsoft YaHei, sans-serif",华文楷体:"STKaiti, KaiTi, serif",华文宋体:"STSong, SimSun, serif",STSong:"STSong, SimSun, serif",华文中宋:"STZhongsong, SimSun, serif",华文仿宋:"STFangSong, FangSong, serif",华文彩云:"STCaiyun, STSong, serif",华文琥珀:"STHupo, STSong, serif",华文隶书:"STLiti, serif",华文行楷:"STXingkai, serif",华文新魏:"STXinwei, serif",STHeiti:"STHeiti, SimHei, sans-serif",苹方:"PingFang SC, Helvetica Neue, sans-serif","PingFang SC":"PingFang SC, Helvetica Neue, sans-serif","PingFang TC":"PingFang TC, PingFang SC, sans-serif","PingFang HK":"PingFang HK, PingFang SC, sans-serif",冬青黑体:"Hiragino Sans GB, Microsoft YaHei, sans-serif","Hiragino Sans GB":"Hiragino Sans GB, Microsoft YaHei, sans-serif",幼圆:"YouYuan, SimSun, sans-serif",YouYuan:"YouYuan, SimSun, sans-serif",隶书:"LiSu, STLiti, serif",LiSu:"LiSu, STLiti, serif","Noto Sans CJK SC":"Noto Sans CJK SC, Microsoft YaHei, sans-serif","Noto Serif CJK SC":"Noto Serif CJK SC, SimSun, serif","Source Han Sans CN":"Source Han Sans CN, Microsoft YaHei, sans-serif","Source Han Serif CN":"Source Han Serif CN, SimSun, serif",Meiryo:"Meiryo, Microsoft YaHei, sans-serif","Meiryo UI":"Meiryo UI, Meiryo, sans-serif","MS Gothic":"MS Gothic, monospace","MS PGothic":"MS PGothic, sans-serif","MS Mincho":"MS Mincho, serif","Yu Gothic":"Yu Gothic, Meiryo, sans-serif","Yu Mincho":"Yu Mincho, serif","Malgun Gothic":"Malgun Gothic, Apple SD Gothic Neo, sans-serif",Batang:"Batang, serif",Gulim:"Gulim, sans-serif",Dotum:"Dotum, sans-serif",Calibri:"Calibri, Carlito, Helvetica Neue, Arial, sans-serif",Cambria:"Cambria, Georgia, serif","Cambria Math":"Cambria Math, Cambria, Georgia, serif",Candara:"Candara, Optima, sans-serif",Consolas:"Consolas, Menlo, monospace",Constantia:"Constantia, Palatino, serif",Corbel:"Corbel, Skia, sans-serif","Franklin Gothic Medium":"Franklin Gothic Medium, Arial Narrow, sans-serif","Gill Sans MT":"Gill Sans MT, Gill Sans, sans-serif","Gill Sans":"Gill Sans, Optima, sans-serif",Verdana:"Verdana, Geneva, Tahoma, sans-serif",Tahoma:"Tahoma, Verdana, sans-serif",Arial:"Arial, Helvetica, sans-serif","Arial Black":"Arial Black, Gadget, sans-serif","Arial Narrow":"Arial Narrow, Arial, sans-serif","Arial Unicode MS":"Arial Unicode MS, Arial, sans-serif","Times New Roman":"Times New Roman, Times, serif","Courier New":"Courier New, Courier, monospace",Georgia:"Georgia, Times New Roman, serif","Palatino Linotype":"Palatino Linotype, Palatino, Book Antiqua, serif","Book Antiqua":"Book Antiqua, Palatino, serif",Garamond:"Garamond, Hoefler Text, serif",Century:"Century, Times New Roman, serif","Century Gothic":"Century Gothic, Futura, sans-serif","Comic Sans MS":"Comic Sans MS, Chalkboard, cursive",Impact:"Impact, Charcoal, sans-serif","Lucida Console":"Lucida Console, Monaco, monospace","Lucida Sans Unicode":"Lucida Sans Unicode, Lucida Grande, sans-serif",Symbol:"Symbol, serif",Wingdings:"Wingdings, Zapf Dingbats, sans-serif","Wingdings 2":"Wingdings 2, sans-serif","Wingdings 3":"Wingdings 3, sans-serif",Webdings:"Webdings, sans-serif","Segoe UI":"Segoe UI, Helvetica Neue, Arial, sans-serif","Segoe UI Light":"Segoe UI Light, Segoe UI, sans-serif","Segoe UI Semibold":"Segoe UI Semibold, Segoe UI, sans-serif","Segoe UI Black":"Segoe UI Black, Segoe UI, sans-serif","Segoe Print":"Segoe Print, Comic Sans MS, cursive","Segoe Script":"Segoe Script, Comic Sans MS, cursive","Trebuchet MS":"Trebuchet MS, Helvetica, sans-serif",Palatino:"Palatino, Palatino Linotype, serif",Helvetica:"Helvetica, Arial, sans-serif","Helvetica Neue":"Helvetica Neue, Helvetica, Arial, sans-serif",Futura:"Futura, Century Gothic, sans-serif",Optima:"Optima, Segoe UI, sans-serif",Monaco:"Monaco, Consolas, monospace",Menlo:"Menlo, Consolas, monospace",Roboto:"Roboto, Helvetica Neue, Arial, sans-serif","Open Sans":"Open Sans, Helvetica Neue, Arial, sans-serif",Lato:"Lato, Helvetica Neue, Arial, sans-serif",Oswald:"Oswald, Impact, sans-serif",Raleway:"Raleway, Helvetica Neue, Arial, sans-serif",Nunito:"Nunito, Helvetica Neue, Arial, sans-serif","Hiragino Mincho Pro":"Hiragino Mincho Pro, STSong, serif","Hiragino Kaku Gothic Pro":"Hiragino Kaku Gothic Pro, Microsoft YaHei, sans-serif","Hiragino Kaku Gothic ProN":"Hiragino Kaku Gothic ProN, sans-serif","Apple LiGothic":"Apple LiGothic, Microsoft YaHei, sans-serif","Apple LiSung":"Apple LiSung, STSong, serif","LiHei Pro":"LiHei Pro, Microsoft YaHei, sans-serif","LiSong Pro":"LiSong Pro, STSong, serif"};function e1(e,t){if(e)return ef(e["a:solidFill"]||e,void 0,void 0,t)}async function e2(e,t,r,n){let i,a,o,s,l=E(e,["attrs","rowSpan"]),c=E(e,["attrs","gridSpan"]),u=E(e,["attrs","vMerge"]),h=E(e,["attrs","hMerge"]),p=E(e,["a:tcPr","attrs","anchor"]),d=E(e,["a:tcPr"]);if(d){let e=await ep({"p:spPr":d},n,"slide");e&&"color"===e.type&&e.value&&(i=e.value)}if(!i){let e;r&&(e=E(t,[r,"a:tcStyle","a:fill","a:solidFill"])),e&&(i=ef(e,void 0,void 0,n))}r&&(s=E(t,[r,"a:tcTxStyle"])),s&&(a=e1(s,n),"on"===E(s,["attrs","b"])&&(o=!0));let f=E(e,["a:tcPr","a:lnB"]);!f&&(r&&(f=E(t&&t[r],["a:tcStyle","a:tcBdr","a:bottom","a:ln"])),f||(f=E(t,["a:wholeTbl","a:tcStyle","a:tcBdr","a:bottom","a:ln"])));let m=E(e,["a:tcPr","a:lnT"]);!m&&(r&&(m=E(t&&t[r],["a:tcStyle","a:tcBdr","a:top","a:ln"])),m||(m=E(t,["a:wholeTbl","a:tcStyle","a:tcBdr","a:top","a:ln"])));let g=E(e,["a:tcPr","a:lnL"]);!g&&(r&&(g=E(t&&t[r],["a:tcStyle","a:tcBdr","a:left","a:ln"])),g||(g=E(t,["a:wholeTbl","a:tcStyle","a:tcBdr","a:left","a:ln"])));let A=E(e,["a:tcPr","a:lnR"]);!A&&(r&&(A=E(t&&t[r],["a:tcStyle","a:tcBdr","a:right","a:ln"])),A||(A=E(t,["a:wholeTbl","a:tcStyle","a:tcBdr","a:right","a:ln"])));let y={};return f&&(y.bottom=eg(f,void 0,n)),m&&(y.top=eg(m,void 0,n)),g&&(y.left=eg(g,void 0,n)),A&&(y.right=eg(A,void 0,n)),{fillColor:i,fontColor:a,fontBold:o,borders:y,vAlign:"ctr"===p?"mid":"b"===p?"down":"up",rowSpan:l?+l:void 0,colSpan:c?+c:void 0,vMerge:u?+u:void 0,hMerge:h?+h:void 0}}function e3(e,t,r,n,i,a,o){let s="",l=a>=i?1:-1,c=i,u=e=>l>0?e<=a:e>=a;for(;u(c);){let a=Math.PI/180*c,o=e+Math.cos(a)*r,u=t+Math.sin(a)*n;c===i&&(s=` M${o} ${u}`),s+=` L${o} ${u}`,c+=l}return o&&(s+=" z"),s}function e5(e,t,r,n){let i="";switch(e){case"rect":case"actionButtonBlank":case"leftRightCircularArrow":case"chartPlus":case"chartStar":case"chartX":case"cornerTabs":case"flowChartOfflineStorage":case"folderCorner":case"funnel":case"lineInv":case"nonIsoscelesTrapezoid":case"plaqueTabs":case"squareTabs":case"upDownArrowCallout":default:i=`M 0 0 L ${t} 0 L ${t} ${r} L 0 ${r} Z`;break;case"flowChartPredefinedProcess":i=`M 0 0 L ${t} 0 L ${t} ${r} L 0 ${r} Z M ${1/8*t} 0 L ${1/8*t} ${r} M ${7/8*t} 0 L ${7/8*t} ${r}`;break;case"flowChartInternalStorage":i=`M 0 0 L ${t} 0 L ${t} ${r} L 0 ${r} Z M ${1/8*t} 0 L ${1/8*t} ${r} M 0 ${1/8*r} L ${t} ${1/8*r}`;break;case"flowChartCollate":i=`M 0,0 L ${t},0 L 0,${r} L ${t},${r} z`;break;case"flowChartDocument":{let e=10800*t/21600,n=17322*r/21600,a=20172*r/21600,o=23922*r/21600;i=`M 0,0 L ${t},0 L ${t},${n} C ${e},${n} ${e},${o} 0,${a} z`}break;case"flowChartMultidocument":{let e=18022*r/21600,n=3675*r/21600,a=23542*r/21600,o=1815*r/21600,s=16252*r/21600,l=16352*r/21600,c=14392*r/21600,u=20782*r/21600,h=14467*r/21600,p=1532*t/21600,d=2e4*t/21600,f=9298*t/21600,m=19298*t/21600,g=18595*t/21600,A=2972*t/21600,y=20800*t/21600;i=`M 0,${n} L ${g},${n} L ${g},${e} C ${f},${e} ${f},${a} 0,${u} z M ${p},${n} L ${p},${o} L ${d},${o} L ${d},${s} C ${m},${s} ${g},${l} ${g},${l} M ${A},${o} L ${A},0 L ${t},0 L ${t},${c} C ${y},${c} ${d},${h} ${d},${h}`}break;case"actionButtonBackPrevious":{let e=t/2,n=r/2,a=3*Math.min(t,r)/8,o=e+a;i=`M 0,0 L ${t},0 L ${t},${r} L 0,${r} z M ${e-a},${n} L ${o},${n-a} L ${o},${n+a} z`}break;case"actionButtonBeginning":{let e=t/2,n=r/2,a=Math.min(t,r),o=3*a/8,s=n-o,l=n+o,c=e-o,u=e+o,h=3*a/4,p=c+h/8;i=`M 0,0 L ${t},0 L ${t},${r} L 0,${r} z M ${c+h/4},${n} L ${u},${s} L ${u},${l} z M ${p},${s} L ${c},${s} L ${c},${l} L ${p},${l} z`}break;case"actionButtonDocument":{let e=t/2,n=r/2,a=Math.min(t,r),o=3*a/8,s=n-o,l=n+o,c=9*a/32,u=e-c,h=e+c,p=3*a/16,d=h-p,f=s+p;i=`M 0,0 L ${t},0 L ${t},${r} L 0,${r} z M ${u},${s} L ${d},${s} L ${h},${f} L ${h},${l} L ${u},${l} z M ${d},${s} L ${d},${f} L ${h},${f} z`}break;case"actionButtonEnd":{let e=t/2,n=r/2,a=Math.min(t,r),o=3*a/8,s=n-o,l=n+o,c=e-o,u=e+o,h=3*a/4,p=c+7*h/8;i=`M 0,${r} L ${t},${r} L ${t},0 L 0,0 z M ${p},${s} L ${u},${s} L ${u},${l} L ${p},${l} z M ${c+3*h/4},${n} L ${c},${s} L ${c},${l} z`}break;case"actionButtonForwardNext":{let e=t/2,n=r/2,a=3*Math.min(t,r)/8,o=e-a;i=`M 0,${r} L ${t},${r} L ${t},0 L 0,0 z M ${e+a},${n} L ${o},${n-a} L ${o},${n+a} z`}break;case"actionButtonHelp":{let e=t/2,n=r/2,a=Math.min(t,r),o=3*a/8,s=n-o,l=e-o,c=3*a/4,u=c/7,h=3*c/14,p=2*c/7,d=s+p,f=s+17*c/28,m=s+21*c/28,g=s+11*c/14,A=l+h,y=l+3*c/7,v=l+4*c/7,R=c/14,b=3*c/28,x=A+p,M=y+u,S=g+b,w=(v+y+p)/2;i=`M 0,0 L ${t},0 L ${t},${r} L 0,${r} z M ${A},${d} ${e3(x,d,p,p,180,360,!1).replace("M","L")} ${e3(w,d,u,h,0,90,!1).replace("M","L")} ${e3(w,f,R,b,270,180,!1).replace("M","L")} L ${v},${m} L ${y},${m} L ${y},${f} ${e3(M,f,u,h,180,270,!1).replace("M","L")} ${e3(v,d,R,b,90,0,!1).replace("M","L")} ${e3(x,d,u,u,0,-180,!1).replace("M","L")} z M ${e},${g} ${e3(e,S,b,b,270,630,!1).replace("M","L")} z`}break;case"actionButtonHome":{let e=t/2,n=r/2,a=Math.min(t,r),o=3*a/8,s=n-o,l=n+o,c=e-o,u=3*a/4,h=s+u/16,p=s+3*u/4,d=c+u/8,f=c+7*u/16,m=c+9*u/16,g=c+11*u/16,A=c+13*u/16,y=c+7*u/8;i=`M 0,0 L ${t},0 L ${t},${r} L 0,${r} z M ${e},${s} L ${c},${n} L ${d},${n} L ${d},${l} L ${y},${l} L ${y},${n} L ${e+o},${n} L ${A},${s+5*u/16} L ${A},${h} L ${g},${h} L ${g},${s+3*u/16} z M ${f},${p} L ${m},${p} L ${m},${l} L ${f},${l} z`}break;case"actionButtonInformation":{let e=t/2,n=r/2,a=Math.min(t,r),o=3*a/8,s=n-o,l=e-o,c=3*a/4,u=5*c/16,h=s+c/32,p=s+u,d=s+3*c/8,f=s+13*c/16,m=s+7*c/8,g=l+u,A=l+13*c/32,y=l+19*c/32,v=l+11*c/16,R=3*c/32,b=s+o,x=h+R;i=`M 0,0 L ${t},0 L ${t},${r} L 0,${r} z M ${e},${s} ${e3(e,b,o,o,270,630,!1).replace("M","L")} z M ${e},${h} ${e3(e,x,R,R,270,630,!1).replace("M","L")} M ${g},${p} L ${y},${p} L ${y},${f} L ${v},${f} L ${v},${m} L ${g},${m} L ${g},${f} L ${A},${f} L ${A},${d} L ${g},${d} z`}break;case"actionButtonMovie":{let e=t/2,n=r/2,a=Math.min(t,r),o=e-3*a/8,s=n-3*a/8,l=e+3*a/8,c=3*a/4,u=o+1455*c/21600,h=o+1905*c/21600,p=o+2325*c/21600,d=o+17010*c/21600,f=o+20595*c/21600,m=s+5280*c/21600,g=s+5730*c/21600,A=s+6630*c/21600,y=s+7492*c/21600,v=s+9067*c/21600,R=s+9555*c/21600,b=s+13342*c/21600,x=s+14580*c/21600,M=s+15592*c/21600;i=`M 0,${r} L ${t},${r} L ${t},0 L 0,0 z M ${o},${m} L ${o},${R} L ${u},${R} L ${h},${v} L ${p},${v} L ${p},${M} L ${d},${M} L ${d},${b} L ${o+19335*c/21600},${b} L ${f},${x} L ${l},${x} L ${l},${A} L ${f},${A} L ${o+19725*c/21600},${y} L ${d},${y} L ${d},${A} L ${o+16155*c/21600},${g} L ${h},${g} L ${u},${m} z`}break;case"actionButtonReturn":{let e=t/2,n=r/2,a=Math.min(t,r),o=3*a/8,s=n-o,l=n+o,c=e-o,u=e+o,h=3*a/4,p=3*h/4,d=5*h/8,f=3*h/8,m=h/4,g=s+p,A=s+d,y=s+m,v=c+d,R=c+f,b=h/8,x=v-b,M=g-b,S=c+f,w=l-f;i=`M 0,${r} L ${t},${r} L ${t},0 L 0,0 z M ${u},${y} L ${c+p},${s} L ${e},${y} L ${v},${y} L ${v},${A} ${e3(x,A,b,b,0,90,!1).replace("M","L")} L ${R},${g} ${e3(R,M,b,b,90,180,!1).replace("M","L")} L ${c+m},${y} L ${c},${y} L ${c},${A} ${e3(S,A,f,f,180,90,!1).replace("M","L")} L ${e},${l} ${e3(e,w,f,f,90,0,!1).replace("M","L")} L ${c+7*h/8},${y} z`}break;case"actionButtonSound":{let e=t/2,n=r/2,a=Math.min(t,r),o=3*a/8,s=n-o,l=e-o,c=e+o,u=3*a/4,h=5*u/16,p=s+h,d=s+11*u/16,f=l+h,m=l+5*u/8,g=l+3*u/4;i=`M 0,0 L ${t},0 L ${t},${r} L 0,${r} z M ${l},${p} L ${f},${p} L ${m},${s} L ${m},${n+o} L ${f},${d} L ${l},${d} z M ${g},${p} L ${c},${s+u/8} M ${g},${n} L ${c},${n} M ${g},${d} L ${c},${s+7*u/8}`}break;case"irregularSeal1":i=`M ${10800*t/21600},${5800*r/21600} L ${14522*t/21600},0 L ${14155*t/21600},${5325*r/21600} L ${18380*t/21600},${4457*r/21600} L ${16702*t/21600},${7315*r/21600} L ${21097*t/21600},${8137*r/21600} L ${17607*t/21600},${10475*r/21600} L ${t},${13290*r/21600} L ${16837*t/21600},${12942*r/21600} L ${18145*t/21600},${18095*r/21600} L ${14020*t/21600},${14457*r/21600} L ${13247*t/21600},${19737*r/21600} L ${10532*t/21600},${14935*r/21600} L ${8485*t/21600},${r} L ${7715*t/21600},${15627*r/21600} L ${4762*t/21600},${17617*r/21600} L ${5667*t/21600},${13937*r/21600} L ${135*t/21600},${14587*r/21600} L ${3722*t/21600},${11775*r/21600} L 0,${8615*r/21600} L ${4627*t/21600},${7617*r/21600} L ${370*t/21600},${2295*r/21600} L ${7312*t/21600},${6320*r/21600} L ${8352*t/21600},${2295*r/21600} z`;break;case"irregularSeal2":i=`M ${11462*t/21600},${4342*r/21600} L ${14790*t/21600},0 L ${14525*t/21600},${5777*r/21600} L ${18007*t/21600},${3172*r/21600} L ${16380*t/21600},${6532*r/21600} L ${t},${6645*r/21600} L ${16985*t/21600},${9402*r/21600} L ${18270*t/21600},${11290*r/21600} L ${16380*t/21600},${12310*r/21600} L ${18877*t/21600},${15632*r/21600} L ${14640*t/21600},${14350*r/21600} L ${14942*t/21600},${17370*r/21600} L ${12180*t/21600},${15935*r/21600} L ${11612*t/21600},${18842*r/21600} L ${9872*t/21600},${17370*r/21600} L ${8700*t/21600},${19712*r/21600} L ${7527*t/21600},${18125*r/21600} L ${4917*t/21600},${r} L ${4805*t/21600},${18240*r/21600} L ${1285*t/21600},${17825*r/21600} L ${3330*t/21600},${15370*r/21600} L 0,${12877*r/21600} L ${3935*t/21600},${11592*r/21600} L ${1172*t/21600},${8270*r/21600} L ${5372*t/21600},${7817*r/21600} L ${4502*t/21600},${3625*r/21600} L ${8550*t/21600},${6382*r/21600} L ${9722*t/21600},${1887*r/21600} z`;break;case"flowChartTerminator":{let e=3475*t/21600,n=18125*t/21600,a=10800*r/21600;i=`M ${e},0 L ${n},0 ${e3(n,r/2,e,a,270,450,!1).replace("M","L")} L ${e},${r} ${e3(e,r/2,e,a,90,270,!1).replace("M","L")} z`}break;case"flowChartPunchedTape":{let e=5*t/20,n=2*r/20,a=18*r/20;i=`M 0,${n} ${e3(e,n,e,n,180,0,!1).replace("M","L")} ${e3(.75*t,n,e,n,180,360,!1).replace("M","L")} L ${t},${a} ${e3(.75*t,a,e,n,0,-180,!1).replace("M","L")} ${e3(e,a,e,n,0,180,!1).replace("M","L")} z`}break;case"flowChartOnlineStorage":{let e=t/6,n=3*r/6;i=`M ${e},0 L ${t},0 ${e3(t,r/2,e,n,270,90,!1).replace("M","L")} L ${e},${r} ${e3(e,r/2,e,n,90,270,!1).replace("M","L")} z`}break;case"flowChartDisplay":{let e=t/6,n=5*t/6,a=3*r/6;i=`M 0,${a} L ${e},0 L ${n},0 ${e3(t,r/2,e,a,270,450,!1).replace("M","L")} L ${e},${r} z`}break;case"flowChartDelay":{let e=t/2,n=r/2;i=`M 0,0 L ${e},0 ${e3(e,n,e,n,270,450,!1).replace("M","L")} L 0,${r} z`}break;case"flowChartMagneticTape":{let e=t/2,n=r/2,a=n*Math.sin(Math.PI/4),o=n+a,s=180*Math.atan(r/t)/Math.PI;i=`M ${e},${r} ${e3(e,n,e,n,90,180,!1).replace("M","L")} ${e3(e,n,e,n,180,270,!1).replace("M","L")} ${e3(e,n,e,n,270,360,!1).replace("M","L")} ${e3(e,n,e,n,0,s,!1).replace("M","L")} L ${t},${o} L ${t},${r} z`}break;case"ellipse":case"flowChartConnector":case"flowChartSummingJunction":case"flowChartOr":{let n=t/2,a=r/2,o=t/2,s=r/2;if(i=`M ${n-o},${a} A ${o},${s} 0 1,0 ${n+o},${a} A ${o},${s} 0 1,0 ${n-o},${a} Z`,"flowChartOr"===e)i+=` M ${t/2} 0 L ${t/2} ${r} M 0 ${r/2} L ${t} ${r/2}`;else if("flowChartSummingJunction"===e){let e=Math.PI/4,o=t/2*Math.cos(e),s=r/2*Math.sin(e),l=n-o,c=n+o,u=a-s,h=a+s;i+=` M ${l} ${u} L ${c} ${h} M ${c} ${u} L ${l} ${h}`}}break;case"roundRect":case"round1Rect":case"round2DiagRect":case"round2SameRect":case"snip1Rect":case"snip2DiagRect":case"snip2SameRect":case"flowChartAlternateProcess":case"flowChartPunchedCard":{let a,o,s,l,c=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]);if(c&&Array.isArray(c))for(let e of c){let t=E(e,["attrs","name"]);"adj1"===t?a=parseInt(E(e,["attrs","fmla"]).substring(4))/5e4:"adj2"===t&&(o=parseInt(E(e,["attrs","fmla"]).substring(4))/5e4)}else c&&(a=parseInt(E(c,["attrs","fmla"]).substring(4))/5e4,o=0);switch(e){case"roundRect":case"flowChartAlternateProcess":s="round",l="cornrAll",void 0===a&&(a=.33334),o=0;break;case"round1Rect":s="round",l="cornr1",void 0===a&&(a=.33334),o=0;break;case"round2DiagRect":s="round",l="diag",void 0===a&&(a=.33334),void 0===o&&(o=0);break;case"round2SameRect":s="round",l="cornr2",void 0===a&&(a=.33334),void 0===o&&(o=0);break;case"snip1Rect":s="snip",l="cornr1",void 0===a&&(a=.33334),o=0;break;case"flowChartPunchedCard":s="snip",l="cornrTL",void 0===a&&(a=.33334),o=0;break;case"snip2DiagRect":s="snip",l="diag",void 0===a&&(a=0),void 0===o&&(o=.33334);break;case"snip2SameRect":s="snip",l="cornr2",void 0===a&&(a=.33334),void 0===o&&(o=0)}i=function(e,t,r,n,i,a){let o,s,l,c;switch(a){case"cornr1":o=0,s=0,l=0,c=r;break;case"cornr2":o=r,s=n,l=n,c=r;break;case"cornrAll":o=r,s=r,l=r,c=r;break;case"diag":o=r,s=n,l=r,c=n;break;case"cornrTL":o=r,s=0,l=0,c=0;break;default:o=s=l=c=0}let u=Math.min(e,t)/2*o,h=Math.min(e,t)/2*s,p=Math.min(e,t)/2*l,d=Math.min(e,t)/2*c;return"round"===i?`M0,${t-h} Q0,${t} ${h},${t} L${e-p},${t} Q${e},${t} ${e},${t-p} L${e},${d} Q${e},0 ${e-d},0 L${u},0 Q0,0 0,${u} z`:"snip"===i?`M0,${u} L0,${t-h} L${h},${t} L${e-p},${t} L${e},${t-p} L${e},${d} L${e-d},0 L${u},0 z`:""}(t,r,a,o,s,l)}break;case"snipRoundRect":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=.33334,o=.33334;if(e)for(let t of e){let e=E(t,["attrs","name"]);"adj1"===e?a=parseInt(E(t,["attrs","fmla"]).substring(4))/5e4:"adj2"===e&&(o=parseInt(E(t,["attrs","fmla"]).substring(4))/5e4)}i=`M0,${r} L${t},${r} L${t},${r/2*o} L${t/2+t/2*(1-o)},0 L${t/2*a},0 Q0,0 0,${r/2*a} z`}break;case"bentConnector2":i=`M ${t} 0 L ${t} ${r} L 0 ${r}`;break;case"rtTriangle":i=`M 0 0 L 0 ${r} L ${t} ${r} Z`;break;case"triangle":case"flowChartExtract":case"flowChartMerge":{let a=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),o=.5;a&&(o=parseInt(a.substring(4))*eR);let s=t*o,l=0,c=0,u=r,h=t,p=r;"flowChartMerge"===e&&([s,l]=[t-s,r-l],[c,u]=[t-c,r-u],[h,p]=[t-h,r-p]),i=`M ${s} ${l} L ${c} ${u} L ${h} ${p} Z`}break;case"diamond":case"flowChartDecision":case"flowChartSort":i=`M ${t/2} 0 L 0 ${r/2} L ${t/2} ${r} L ${t} ${r/2} Z`,"flowChartSort"===e&&(i+=` M 0 ${r/2} L ${t} ${r/2}`);break;case"trapezoid":case"flowChartManualOperation":case"flowChartManualInput":{let a=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),o=.2;if(a){let e=Math.min(t,r),n=Math.max(0,Math.min(parseInt(a.substring(4)),5e4*t/e));o=e*n/1e5/t}let s=t*o,l=0,c=0,u=r,h=t,p=r,d=(1-o)*t,f=0;"flowChartManualInput"===e&&(o=0,l=r/5,s=t*o,d=(1-o)*t),"flowChartManualOperation"===e&&([s,l]=[t-s,r-l],[c,u]=[t-c,r-u],[h,p]=[t-h,r-p],[d,f]=[t-d,r-f]),i=`M ${s} ${l} L ${c} ${u} L ${h} ${p} L ${d} ${f} Z`}break;case"parallelogram":case"flowChartInputOutput":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),a=.25;if(e){let n=Math.min(t,r),i=Math.max(0,Math.min(parseInt(e.substring(4)),1e5*t/n));a=n*i/2e5/t}i=`M ${a*t} 0 L 0 ${r} L ${(1-a)*t} ${r} L ${t} 0 Z`}break;case"pentagon":i=`M ${.5*t} 0 L 0 ${.375*r} L ${.15*t} ${r} L ${.85*t} ${r} L ${t} ${.375*r} Z`;break;case"hexagon":case"flowChartPreparation":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),a=25e3*eR;e&&(a=parseInt(e.substring(4))*eR);let o=1e5*eR,s=Math.min(t,r),l=5e4*eR*t/s,c=s*(a<0?0:a>l?l:a)/o,u=t-c,h=115470*eR*(r/2)/o*Math.sin(60*Math.PI/180),p=r/2,d=p-h,f=p+h;i=`M 0,${p} L ${c},${d} L ${u},${d} L ${t},${p} L ${u},${f} L ${c},${f} z`}break;case"heptagon":i=`M ${.5*t} 0 L ${t/8} ${r/4} L 0 ${5/8*r} L ${t/4} ${r} L ${.75*t} ${r} L ${t} ${5/8*r} L ${7/8*t} ${r/4} Z`;break;case"octagon":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),a=.25;e&&(a=parseInt(e.substring(4))/1e5);let o=1-a;i=`M ${a*t} 0 L 0 ${a*r} L 0 ${o*r} L ${a*t} ${r} L ${o*t} ${r} L ${t} ${o*r} L ${t} ${a*r} L ${o*t} 0 Z`}break;case"decagon":i=`M ${3/8*t} 0 L ${t/8} ${r/8} L 0 ${r/2} L ${t/8} ${7/8*r} L ${3/8*t} ${r} L ${5/8*t} ${r} L ${7/8*t} ${7/8*r} L ${t} ${r/2} L ${7/8*t} ${r/8} L ${5/8*t} 0 Z`;break;case"dodecagon":i=`M ${3/8*t} 0 L ${t/8} ${r/8} L 0 ${3/8*r} L 0 ${5/8*r} L ${t/8} ${7/8*r} L ${3/8*t} ${r} L ${5/8*t} ${r} L ${7/8*t} ${7/8*r} L ${t} ${5/8*r} L ${t} ${3/8*r} L ${7/8*t} ${r/8} L ${5/8*t} 0 Z`;break;case"star4":{let e=t/2,a=r/2,o=t/2,s=r/2,l=19098*eR,c=5e4*eR,u=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]);u&&"adj"===u.attrs.name&&(l=parseInt(u.attrs.fmla.substring(4))*eR);let h=l<0?0:l>c?c:l,p=o*h/c*.7071067811847432,d=s*h/c*.7071067811883519,f=e-p,m=e+p,g=a-d,A=a+d;i=`M 0,${a} L ${f},${g} L ${e},0 L ${m},${g} L ${t},${a} L ${m},${A} L ${e},${r} L ${f},${A} z`}break;case"star5":{let e=t/2,a=r/2,o=t/2,s=r/2,l=19098*eR,c=105146*eR,u=110557*eR,h=5e4*eR,p=1e5*eR,d=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]);d&&Object.keys(d).forEach(e=>{let t=d[e].attrs.name;"adj"===t?l=parseInt(d[e].attrs.fmla.substring(4))*eR:"hf"===t?c=parseInt(d[e].attrs.fmla.substring(4))*eR:"vf"===t&&(u=parseInt(d[e].attrs.fmla.substring(4))*eR)});let f=l<0?0:l>h?h:l,m=o*c/p,g=s*u/p,A=a*u/p,y=.9510565162948381*m,v=.5877852522903303*m,R=A-.3090169943759181*g,b=A- -.8090169943765043*g,x=m*f/h,M=g*f/h,S=.9510565162887857*x,w=.5877852522899959*x,O=A-.8090169943767472*M,L=A- -.3090169943945457*M;i=`M ${e-y},${R} L ${e-w},${O} L ${e},0 L ${e+w},${O} L ${e+y},${R} L ${e+S},${L} L ${e+v},${b} L ${e},${A+M} L ${e-v},${b} L ${e-S},${L} z`}break;case"star6":{let e=t/2,a=r/2,o=t/2,s=r/2,l=r/4,c=28868*eR,u=115470*eR,h=5e4*eR,p=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]);p&&Object.keys(p).forEach(e=>{let t=p[e].attrs.name;"adj"===t?c=parseInt(p[e].attrs.fmla.substring(4))*eR:"hf"===t&&(u=parseInt(p[e].attrs.fmla.substring(4))*eR)});let d=c<0?0:c>h?h:c,f=o*u/(1e5*eR),m=.866025403783588*f,g=e-m,A=e+m,y=a+l,v=f*d/h,R=v/2,b=e-R,x=e+R,M=s*d/h*.8660254037861398,S=a-M,w=a+M;i=`M ${g},${l} L ${b},${S} L ${e},0 L ${x},${S} L ${A},${l} L ${e+v},${a} L ${A},${y} L ${x},${w} L ${e},${r} L ${b},${w} L ${g},${y} L ${e-v},${a} z`}break;case"star7":{let e=t/2,a=r/2,o=t/2,s=r/2,l=34601*eR,c=102572*eR,u=105210*eR,h=5e4*eR,p=1e5*eR,d=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]);d&&Object.keys(d).forEach(e=>{let t=d[e].attrs.name;"adj"===t?l=parseInt(d[e].attrs.fmla.substring(4))*eR:"hf"===t?c=parseInt(d[e].attrs.fmla.substring(4))*eR:"vf"===t&&(u=parseInt(d[e].attrs.fmla.substring(4))*eR)});let f=l<0?0:l>h?h:l,m=o*c/p,g=s*u/p,A=a*u/p,y=97493*m/1e5,v=78183*m/1e5,R=43388*m/1e5,b=A-62349*g/1e5,x=A+22252*g/1e5,M=A+90097*g/1e5,S=m*f/h,w=g*f/h,O=97493*S/1e5,L=78183*S/1e5,N=43388*S/1e5,_=A-90097*w/1e5,T=A-22252*w/1e5,P=A+62349*w/1e5;i=`M ${e-y},${x} L ${e-O},${T} L ${e-v},${b} L ${e-N},${_} L ${e},0 L ${e+N},${_} L ${e+v},${b} L ${e+O},${T} L ${e+y},${x} L ${e+L},${P} L ${e+R},${M} L ${e},${A+w} L ${e-R},${M} L ${e-L},${P} z`}break;case"star8":{let e=t/2,a=r/2,o=t/2,s=r/2,l=37500*eR,c=5e4*eR,u=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]);u&&"adj"===u.attrs.name&&(l=parseInt(u.attrs.fmla.substring(4))*eR);let h=l<0?0:l>c?c:l,p=.7071067811847432*o,d=e-p,f=e+p,m=.7071067811883519*s,g=a-m,A=a+m,y=o*h/c,v=s*h/c,R=92388*y/1e5,b=38268*y/1e5,x=92388*v/1e5,M=38268*v/1e5,S=e-R,w=e-b,O=e+b,L=e+R,N=a-x,_=a-M,T=a+M,P=a+x;i=`M 0,${a} L ${S},${_} L ${d},${g} L ${w},${N} L ${e},0 L ${O},${N} L ${f},${g} L ${L},${_} L ${t},${a} L ${L},${T} L ${f},${A} L ${O},${P} L ${e},${r} L ${w},${P} L ${d},${A} L ${S},${T} z`}break;case"star10":{let e=t/2,a=r/2,o=t/2,s=r/2,l=42533*eR,c=105146*eR,u=5e4*eR,h=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]);h&&Object.keys(h).forEach(e=>{let t=h[e].attrs.name;"adj"===t?l=parseInt(h[e].attrs.fmla.substring(4))*eR:"hf"===t&&(c=parseInt(h[e].attrs.fmla.substring(4))*eR)});let p=l<0?0:l>u?u:l,d=o*c/(1e5*eR),f=95106*d/1e5,m=58779*d/1e5,g=e-f,A=e-m,y=e+m,v=e+f,R=80902*s/1e5,b=30902*s/1e5,x=a-R,M=a-b,S=a+b,w=a+R,O=d*p/u,L=s*p/u,N=80902*O/1e5,_=30902*O/1e5,T=95106*L/1e5,P=58779*L/1e5,C=e-N,I=e-_,k=e+_,F=e+N,X=a-T,U=a-P,W=a+P,V=a+T;i=`M ${g},${M} L ${C},${U} L ${A},${x} L ${I},${X} L ${e},0 L ${k},${X} L ${y},${x} L ${F},${U} L ${v},${M} L ${e+O},${a} L ${v},${S} L ${F},${W} L ${y},${w} L ${k},${V} L ${e},${r} L ${I},${V} L ${A},${w} L ${C},${W} L ${g},${S} L ${e-O},${a} z`}break;case"star12":{let e=t/2,a=r/2,o=t/2,s=r/2,l=r/4,c=t/4,u=37500*eR,h=5e4*eR,p=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]);p&&"adj"===p.attrs.name&&(u=parseInt(p.attrs.fmla.substring(4))*eR);let d=u<0?0:u>h?h:u,f=.866025403783588*o,m=.8660254037861398*s,g=e-f,A=3*t/4,y=e+f,v=a-m,R=3*r/4,b=a+m,x=o*d/h,M=s*d/h,S=.9659258262888482*x,w=.7071067811847432*x,O=.2588190450984128*x,L=.965925826290169*M,N=.7071067811883519*M,_=.25881904510334236*M,T=e-S,P=e-w,C=e-O,I=e+O,k=e+w,F=e+S,X=a-L,U=a-N,W=a-_,V=a+_,Y=a+N,D=a+L;i=`M 0,${a} L ${T},${W} L ${g},${l} L ${P},${U} L ${c},${v} L ${C},${X} L ${e},0 L ${I},${X} L ${A},${v} L ${k},${U} L ${y},${l} L ${F},${W} L ${t},${a} L ${F},${V} L ${y},${R} L ${k},${Y} L ${A},${b} L ${I},${D} L ${e},${r} L ${C},${D} L ${c},${b} L ${P},${Y} L ${g},${R} L ${T},${V} z`}break;case"star16":{let e=t/2,a=r/2,o=t/2,s=r/2,l=37500*eR,c=5e4*eR,u=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]);u&&"adj"===u.attrs.name&&(l=parseInt(u.attrs.fmla.substring(4))*eR);let h=l<0?0:l>c?c:l,p=92388*o/1e5,d=70711*o/1e5,f=38268*o/1e5,m=92388*s/1e5,g=70711*s/1e5,A=38268*s/1e5,y=e-p,v=e-d,R=e-f,b=e+f,x=e+d,M=e+p,S=a-m,w=a-g,O=a-A,L=a+A,N=a+g,_=a+m,T=o*h/c,P=s*h/c,C=98079*T/1e5,I=83147*T/1e5,k=55557*T/1e5,F=19509*T/1e5,X=98079*P/1e5,U=83147*P/1e5,W=55557*P/1e5,V=19509*P/1e5,Y=e-C,D=e-I,Q=e-k,$=e-F,B=e+F,Z=e+k,K=e+I,G=e+C,H=a-X,z=a-U,J=a-W,j=a-V,q=a+V,ee=a+W,et=a+U,er=a+X;i=`M 0,${a} L ${Y},${j} L ${y},${O} L ${D},${J} L ${v},${w} L ${Q},${z} L ${R},${S} L ${$},${H} L ${e},0 L ${B},${H} L ${b},${S} L ${Z},${z} L ${x},${w} L ${K},${J} L ${M},${O} L ${G},${j} L ${t},${a} L ${G},${q} L ${M},${L} L ${K},${ee} L ${x},${N} L ${Z},${et} L ${b},${_} L ${B},${er} L ${e},${r} L ${$},${er} L ${R},${_} L ${Q},${et} L ${v},${N} L ${D},${ee} L ${y},${L} L ${Y},${q} z`}break;case"star24":{let e=t/2,a=r/2,o=t/2,s=r/2,l=r/4,c=t/4,u=37500*eR,h=5e4*eR,p=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]);p&&"adj"===p.attrs.name&&(u=parseInt(p.attrs.fmla.substring(4))*eR);let d=u<0?0:u>h?h:u,f=.9659258262888482*o,m=.866025403783588*o,g=.7071067811847432*o,A=.2588190450984128*o,y=.965925826290169*s,v=.8660254037861398*s,R=.7071067811883519*s,b=.25881904510334236*s,x=e-f,M=e-m,S=e-g,w=e-c,O=e-A,L=e+A,N=e+c,_=e+g,T=e+m,P=e+f,C=a-y,I=a-v,k=a-R,F=a-l,X=a-b,U=a+b,W=a+l,V=a+R,Y=a+v,D=a+y,Q=o*d/h,$=s*d/h,B=99144*Q/1e5,Z=92388*Q/1e5,K=79335*Q/1e5,G=60876*Q/1e5,H=38268*Q/1e5,z=13053*Q/1e5,J=99144*$/1e5,j=92388*$/1e5,q=79335*$/1e5,ee=60876*$/1e5,et=38268*$/1e5,er=13053*$/1e5,en=e-B,ei=e-Z,ea=e-K,eo=e-G,es=e-H,el=e-z,ec=e+z,eu=e+H,eh=e+G,ep=e+K,ed=e+Z,ef=e+B,em=a-J,eg=a-j,eA=a-q,ey=a-ee,ev=a-et,eb=a-er,ex=a+er,eM=a+et,eS=a+ee,ew=a+q,eO=a+j,eL=a+J;i=`M 0,${a} L ${en},${eb} L ${x},${X} L ${ei},${ev} L ${M},${F} L ${ea},${ey} L ${S},${k} L ${eo},${eA} L ${w},${I} L ${es},${eg} L ${O},${C} L ${el},${em} L ${e},0 L ${ec},${em} L ${L},${C} L ${eu},${eg} L ${N},${I} L ${eh},${eA} L ${_},${k} L ${ep},${ey} L ${T},${F} L ${ed},${ev} L ${P},${X} L ${ef},${eb} L ${t},${a} L ${ef},${ex} L ${P},${U} L ${ed},${eM} L ${T},${W} L ${ep},${eS} L ${_},${V} L ${eh},${ew} L ${N},${Y} L ${eu},${eO} L ${L},${D} L ${ec},${eL} L ${e},${r} L ${el},${eL} L ${O},${D} L ${es},${eO} L ${w},${Y} L ${eo},${ew} L ${S},${V} L ${ea},${eS} L ${M},${W} L ${ei},${eM} L ${x},${U} L ${en},${ex} z`}break;case"star32":{let e=t/2,a=r/2,o=t/2,s=r/2,l=37500*eR,c=5e4*eR,u=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]);u&&"adj"===u.attrs.name&&(l=parseInt(u.attrs.fmla.substring(4))*eR);let h=l<0?0:l>c?c:l,p=98079*o/1e5,d=92388*o/1e5,f=83147*o/1e5,m=.7071067811847432*o,g=55557*o/1e5,A=38268*o/1e5,y=19509*o/1e5,v=98079*s/1e5,R=92388*s/1e5,b=83147*s/1e5,x=.7071067811883519*s,M=55557*s/1e5,S=38268*s/1e5,w=19509*s/1e5,O=e-p,L=e-d,N=e-f,_=e-m,T=e-g,P=e-A,C=e-y,I=e+y,k=e+A,F=e+g,X=e+m,U=e+f,W=e+d,V=e+p,Y=a-v,D=a-R,Q=a-b,$=a-x,B=a-M,Z=a-S,K=a-w,G=a+w,H=a+S,z=a+M,J=a+x,j=a+b,q=a+R,ee=a+v,et=o*h/c,er=s*h/c,en=99518*et/1e5,ei=95694*et/1e5,ea=88192*et/1e5,eo=77301*et/1e5,es=63439*et/1e5,el=47140*et/1e5,ec=29028*et/1e5,eu=9802*et/1e5,eh=99518*er/1e5,ep=95694*er/1e5,ed=88192*er/1e5,ef=77301*er/1e5,em=63439*er/1e5,eg=47140*er/1e5,eA=29028*er/1e5,ey=9802*er/1e5,ev=e-en,eb=e-ei,ex=e-ea,eM=e-eo,eS=e-es,ew=e-el,eO=e-ec,eL=e-eu,eN=e+eu,e_=e+ec,eT=e+el,eP=e+es,eC=e+eo,eI=e+ea,ek=e+ei,eF=e+en,eX=a-eh,eU=a-ep,eW=a-ed,eV=a-ef,eE=a-em,eY=a-eg,eD=a-eA,eQ=a-ey,e$=a+ey,eB=a+eA,eZ=a+eg,eK=a+em,eG=a+ef,eH=a+ed,ez=a+ep,eJ=a+eh;i=`M 0,${a} L ${ev},${eQ} L ${O},${K} L ${eb},${eD} L ${L},${Z} L ${ex},${eY} L ${N},${B} L ${eM},${eE} L ${_},${$} L ${eS},${eV} L ${T},${Q} L ${ew},${eW} L ${P},${D} L ${eO},${eU} L ${C},${Y} L ${eL},${eX} L ${e},0 L ${eN},${eX} L ${I},${Y} L ${e_},${eU} L ${k},${D} L ${eT},${eW} L ${F},${Q} L ${eP},${eV} L ${X},${$} L ${eC},${eE} L ${U},${B} L ${eI},${eY} L ${W},${Z} L ${ek},${eD} L ${V},${K} L ${eF},${eQ} L ${t},${a} L ${eF},${e$} L ${V},${G} L ${ek},${eB} L ${W},${H} L ${eI},${eZ} L ${U},${z} L ${eC},${eK} L ${X},${J} L ${eP},${eG} L ${F},${j} L ${eT},${eH} L ${k},${q} L ${e_},${ez} L ${I},${ee} L ${eN},${eJ} L ${e},${r} L ${eL},${eJ} L ${C},${ee} L ${eO},${ez} L ${P},${q} L ${ew},${eH} L ${T},${j} L ${eS},${eG} L ${_},${J} L ${eM},${eK} L ${N},${z} L ${ex},${eZ} L ${L},${H} L ${eb},${eB} L ${O},${G} L ${ev},${e$} z`}break;case"pie":case"pieWedge":case"arc":{var a,o,s,l;let c,u,h,p,d,f,m,g,A,y,v,R,b,x,M,S,w,O=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]);if("pie"===e?(c=0,u=270,h=r,p=!0):"pieWedge"===e?(c=180,u=270,h=2*r,p=!0):"arc"===e&&(c=270,u=0,h=r,p=!1),O)for(let e of Array.isArray(O)?O:[O]){let t=E(e,["attrs","name"]),r=E(e,["attrs","fmla"]);t&&r&&("adj1"===t?c=parseInt(r.substring(4))/6e4:"adj2"===t&&(u=parseInt(r.substring(4))/6e4))}a=h,o=c,s=u,l=p,m=parseFloat(s),g=parseFloat(o),A=parseFloat(a)/2,y=t/2,(v=m-g)<0&&(v=360+v),R=g*Math.PI/180,b=(g+(v=Math.min(Math.max(v,0),360)))*Math.PI/180,x=y+Math.cos(R)*y,M=A+Math.sin(R)*A,S=y+Math.cos(b)*y,w=A+Math.sin(b)*A,l?(d=v<=180?0:1,f=`M${y},${A} L${x},${M} A${y},${A} 0 ${d},1 ${S},${w} z`):(d=v<=180?0:1,f=`M${x},${M} A${y},${A} 0 ${d},1 ${S},${w}`),i=f}break;case"chord":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=45,o=270;if(e)for(let t of e){let e=E(t,["attrs","name"]);"adj1"===e?a=parseInt(E(t,["attrs","fmla"]).substring(4))/6e4:"adj2"===e&&(o=parseInt(E(t,["attrs","fmla"]).substring(4))/6e4)}let s=r/2,l=t/2;i=e3(l,s,l,s,a,o,!0)}break;case"frame":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),a=12500*eR,o=5e4*eR;e&&(a=parseInt(e.substring(4))*eR);let s=Math.min(t,r)*(a<0?0:a>o?o:a)/(1e5*eR),l=t-s,c=r-s;i=`M 0,0 L ${t},0 L ${t},${r} L 0,${r} z M ${s},${s} L ${s},${c} L ${l},${c} L ${l},${s} z`}break;case"donut":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),a=25e3*eR,o=5e4*eR;e&&(a=parseInt(e.substring(4))*eR);let s=Math.min(t,r)*(a<0?0:a>o?o:a)/(1e5*eR),l=t/2-s,c=r/2-s,u=`M ${t/2-t/2},${r/2} A ${t/2},${r/2} 0 1,0 ${t/2+t/2},${r/2} A ${t/2},${r/2} 0 1,0 ${t/2-t/2},${r/2} Z`,h=`M ${t/2+l},${r/2} A ${l},${c} 0 1,0 ${t/2-l},${r/2} A ${l},${c} 0 1,0 ${t/2+l},${r/2} Z`;i=`${u} ${h}`}break;case"noSmoking":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),a=18750*eR,o=5e4*eR;e&&(a=parseInt(e.substring(4))*eR);let s=Math.min(t,r)*(a<0?0:a>o?o:a)/(1e5*eR),l=t/2-s,c=r/2-s,u=Math.atan(r/t),h=c*Math.cos(u),p=l*Math.sin(u),d=Math.atan(s/2/(l*c/Math.sqrt(h*h+p*p))),f=-Math.PI+2*d,m=u-d,g=m-Math.PI,A=c*Math.cos(m),y=l*Math.sin(m),v=l*c/Math.sqrt(A*A+y*y),R=v*Math.cos(m),b=v*Math.sin(m),x=t/2+R,M=r/2+b,S=t/2-R,w=r/2-b,O=180*m/Math.PI,L=180*g/Math.PI,N=180*f/Math.PI,_=`M ${t/2-t/2},${r/2} A ${t/2},${r/2} 0 1,0 ${t/2+t/2},${r/2} A ${t/2},${r/2} 0 1,0 ${t/2-t/2},${r/2} Z`,T=`M ${x},${M} ${e3(t/2,r/2,l,c,O,O+N,!1).replace("M","L")} z`,P=`M ${S},${w} ${e3(t/2,r/2,l,c,L,L+N,!1).replace("M","L")} z`;i=`${_} ${T} ${P}`}break;case"halfFrame":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=3.5,o=3.5,s=1e5*eR;if(e)for(let t of e){let e=E(t,["attrs","name"]);"adj1"===e?a=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj2"===e&&(o=parseInt(E(t,["attrs","fmla"]).substring(4))*eR)}let l=Math.min(t,r),c=s*t/l,u=l*(o<0?0:o>c?c:o)/s,h=s*(r-r*u/t)/l,p=l*(a<0?0:a>h?h:a)/s,d=t-p*t/r,f=r-u*r/t;i=`M 0,0 L ${t},0 L ${d},${p} L ${u},${p} L ${u},${f} L 0,${r} z`}break;case"blockArc":{let e,a,o,s,l=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),c=180,u=0,h=25e3*eR,p=5e4*eR;if(l)for(let e of l){let t=E(e,["attrs","name"]);"adj1"===t?c=parseInt(E(e,["attrs","fmla"]).substring(4))/6e4:"adj2"===t?u=parseInt(E(e,["attrs","fmla"]).substring(4))/6e4:"adj3"===t&&(h=parseInt(E(e,["attrs","fmla"]).substring(4))*eR)}let d=c<0?0:c>360?360:c,f=u<0?0:u>360?360:u,m=h<0?0:h>p?p:h,g=f-d,A=g>0?g:g+360,y=d+A,v=d*Math.PI/180,R=f*Math.PI/180,b=t/2,x=r/2,M=t/2,S=r/2;if(d>90&&d<270){let t=b*Math.sin(Math.PI/2-v),r=x*Math.cos(Math.PI/2-v),n=b*Math.cos(Math.atan(r/t)),i=x*Math.sin(Math.atan(r/t));e=M-n,a=S-i}else{let t=b*Math.sin(v),r=x*Math.cos(v),n=b*Math.cos(Math.atan(t/r)),i=x*Math.sin(Math.atan(t/r));e=M+n,a=S+i}let w=Math.min(t,r)*m/(1e5*eR),O=b-w,L=x-w;if(y<=450&&y>270||y>=630&&y<720){let e=O*Math.sin(R),t=L*Math.cos(R),r=O*Math.cos(Math.atan(e/t)),n=L*Math.sin(Math.atan(e/t));o=M+r,s=S+n}else{let e=O*Math.sin(Math.PI/2-R),t=L*Math.cos(Math.PI/2-R),r=O*Math.cos(Math.atan(t/e)),n=L*Math.sin(Math.atan(t/e));o=M-r,s=S-n}i=`M ${e},${a} ${e3(b,x,b,x,d,y,!1).replace("M","L")} L ${o},${s} ${e3(b,x,O,L,f,f+-A,!1).replace("M","L")} z`}break;case"bracePair":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),a=8333*eR,o=25e3*eR;e&&(a=parseInt(e.substring(4))*eR);let s=r/2,l=a<0?0:a>o?o:a,c=Math.min(t,r),u=c*l/(1e5*eR),h=c*l/(5e4*eR),p=t-h,d=t-u,f=s-u,m=s+u,g=r-u;i=`M ${h},${r} ${e3(h,g,u,u,90,180,!1).replace("M","L")} L ${u},${m} ${e3(0,m,u,u,0,-90,!1).replace("M","L")} ${e3(0,f,u,u,90,0,!1).replace("M","L")} L ${u},${u} ${e3(h,u,u,u,180,270,!1).replace("M","L")} M ${p},0 ${e3(p,u,u,u,270,360,!1).replace("M","L")} L ${d},${f} ${e3(t,f,u,u,180,90,!1).replace("M","L")} ${e3(t,m,u,u,270,180,!1).replace("M","L")} L ${d},${g} ${e3(p,g,u,u,0,90,!1).replace("M","L")}`}break;case"leftBrace":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=8333*eR,o=5e4*eR,s=1e5*eR;if(e)for(let t of e){let e=E(t,["attrs","name"]);"adj1"===e?a=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj2"===e&&(o=parseInt(E(t,["attrs","fmla"]).substring(4))*eR)}let l=o<0?0:o>s?s:o,c=Math.min(t,r),u=s-l,h=(u<l?u:l)/2*r/c,p=c*(a<0?0:a>h?h:a)/s,d=r*l/s,f=d-p,m=d+p;i=`M ${t},${r} ${e3(t,r-p,t/2,p,90,180,!1).replace("M","L")} L ${t/2},${m} ${e3(0,m,t/2,p,0,-90,!1).replace("M","L")} ${e3(0,f,t/2,p,90,0,!1).replace("M","L")} L ${t/2},${p} ${e3(t,p,t/2,p,180,270,!1).replace("M","L")}`}break;case"rightBrace":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=8333*eR,o=5e4*eR,s=1e5*eR;if(e)for(let t of e){let e=E(t,["attrs","name"]);"adj1"===e?a=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj2"===e&&(o=parseInt(E(t,["attrs","fmla"]).substring(4))*eR)}let l=o<0?0:o>s?s:o,c=Math.min(t,r),u=s-l,h=(u<l?u:l)/2*r/c,p=c*(a<0?0:a>h?h:a)/s,d=r*l/s,f=d-p,m=r-p;i=`M 0,0 ${e3(0,p,t/2,p,270,360,!1).replace("M","L")} L ${t/2},${f} ${e3(t,f,t/2,p,180,90,!1).replace("M","L")} ${e3(t,d+p,t/2,p,270,180,!1).replace("M","L")} L ${t/2},${m} ${e3(0,m,t/2,p,0,90,!1).replace("M","L")}`}break;case"bracketPair":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),a=16667*eR,o=5e4*eR;e&&(a=parseInt(e.substring(4))*eR);let s=Math.min(t,r)*(a<0?0:a>o?o:a)/(1e5*eR),l=t-s,c=r-s;i=`${e3(s,s,s,s,270,180,!1)} ${e3(s,c,s,s,180,90,!1).replace("M","L")} ${e3(l,s,s,s,270,360,!1)} ${e3(l,c,s,s,0,90,!1).replace("M","L")}`}break;case"leftBracket":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),a=8333*eR,o=5e4*eR*r/Math.min(t,r);e&&(a=parseInt(e.substring(4))*eR);let s=Math.min(t,r)*(a<0?0:a>o?o:a)/(1e5*eR);s>t&&(s=t);let l=r-s;i=`M ${t},${r} ${e3(s,l,s,s,90,180,!1).replace("M","L")} L 0,${s} ${e3(s,s,s,s,180,270,!1).replace("M","L")} L ${t},0`}break;case"rightBracket":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),a=8333*eR,o=5e4*eR*r/Math.min(t,r);e&&(a=parseInt(e.substring(4))*eR);let s=Math.min(t,r)*(a<0?0:a>o?o:a)/(1e5*eR),l=r-s,c=t-s;i=`M 0,${r} ${e3(c,l,s,s,90,0,!1).replace("M","L")} L ${t},${r/2} ${e3(c,s,s,s,360,270,!1).replace("M","L")} L 0,0`}break;case"moon":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),a=.5;e&&(a=parseInt(e.substring(4))/1e5);let o=r/2,s=(1-a)*t;i=`M ${t},${r} ${e3(t,o,t,o,90,270,!1).replace("M","L")} ${e3(t,o,s,o,270,90,!1).replace("M","L")} z`}break;case"corner":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=5e4*eR,o=5e4*eR,s=1e5*eR;if(e)for(let t of e){let e=E(t,["attrs","name"]);"adj1"===e?a=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj2"===e&&(o=parseInt(E(t,["attrs","fmla"]).substring(4))*eR)}let l=Math.min(t,r),c=s*r/l,u=s*t/l,h=l*(o<0?0:o>u?u:o)/s,p=r-l*(a<0?0:a>c?c:a)/s;i=`M 0,0 L ${h},0 L ${h},${p} L ${t},${p} L ${t},${r} L 0,${r} z`}break;case"diagStripe":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),a=5e4*eR,o=1e5*eR;e&&(a=parseInt(e.substring(4))*eR);let s=a<0?0:a>o?o:a,l=t*s/o,c=r*s/o;i=`M 0,${c} L ${l},0 L ${t},0 L 0,${r} z`}break;case"gear6":case"gear9":i=function(e,t){let r=1.5*e,n=2*Math.PI,i=n/(2*t),a=35*i*.005,o=50*i*.005,s=i,l=!1,c=" M"+(r+r*Math.cos(o))+" "+(r+r*Math.sin(o));for(;s<=n+i;s+=i)l?c+=" L"+(r+e*Math.cos(s-a))+","+(r+e*Math.sin(s-a))+(" L"+(r+r*Math.cos(s+o))+",")+(r+r*Math.sin(s+o)):c+=" L"+(r+r*Math.cos(s-o))+","+(r+r*Math.sin(s-o))+(" L"+(r+e*Math.cos(s+a))+",")+(r+e*Math.sin(s+a)),l=!l;return c+" "}(t,r/3.5,parseInt(e.substring(4)));break;case"bentConnector3":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),a=.5;e&&(a=parseInt(e.substring(4))/1e5),i=`M 0 0 L ${a*t} 0 L ${a*t} ${r} L ${t} ${r}`}break;case"plus":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),a=.25;e&&(a=parseInt(e.substring(4))/1e5);let o=1-a;i=`M ${a*t} 0 L ${a*t} ${a*r} L 0 ${a*r} L 0 ${o*r} L ${a*t} ${o*r} L ${a*t} ${r} L ${o*t} ${r} L ${o*t} ${o*r} L ${t} ${o*r} L ${t} ${a*r} L ${o*t} ${a*r} L ${o*t} 0 Z`}break;case"teardrop":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),a=1e5*eR,o=a,s=2e5*eR;e&&(a=parseInt(e.substring(4))*eR);let l=a<0?0:a>s?s:a,c=Math.sqrt(2),u=t/2*c,h=r/2*c,p=45*Math.PI/180,d=t/2+u*l/o*Math.cos(p),f=r/2-h*l/o*Math.cos(p),m=(t/2+d)/2,g=(r/2+f)/2;i=`${e3(t/2,r/2,t/2,r/2,180,270,!1)} Q ${m},0 ${d},${f} Q ${t},${g} ${t},${r/2} ${e3(t/2,r/2,t/2,r/2,0,90,!1).replace("M","L")} ${e3(t/2,r/2,t/2,r/2,90,180,!1).replace("M","L")} z`}break;case"plaque":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),a=16667*eR,o=5e4*eR;e&&(a=parseInt(e.substring(4))*eR);let s=(a<0?0:a>o?o:a)*Math.min(t,r)/(1e5*eR),l=t-s,c=r-s;i=`M 0,${s} ${e3(0,0,s,s,90,0,!1).replace("M","L")} L ${l},0 ${e3(t,0,s,s,180,90,!1).replace("M","L")} L ${t},${c} ${e3(t,r,s,s,270,180,!1).replace("M","L")} L ${s},${r} ${e3(0,r,s,s,0,-90,!1).replace("M","L")} z`}break;case"sun":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),a=25e3*eR,o=12500*eR,s=46875*eR;e&&(a=parseInt(e.substring(4))*eR);let l=a<o?o:a>s?s:a,c=5e4*eR,u=1e5*eR,h=c-l,p=3*(c-30274*h/32768)/4,d=3*(c-12540*h/32768)/4,f=p+3662*eR,m=d+36620*eR,g=d+12500*eR,A=u-p,y=u-f,v=u-m,R=u-g,b=18436*t/21600,x=3163*r/21600,M=3163*t/21600,S=18436*r/21600,w=t*p/u,O=t*f/u,L=t*m/u,N=t*g/u,_=t*A/u,T=t*y/u,P=t*v/u,C=t*R/u,I=t*l/u,k=t*h/u,F=r*h/u,X=r*p/u,U=r*f/u,W=r*m/u,V=r*g/u,Y=r*A/u,D=r*y/u,Q=r*v/u,$=r*R/u;i=`M ${t},${r/2} L ${_},${$} L ${_},${V} z M ${b},${x} L ${T},${Q} L ${L},${U} z M ${t/2},0 L ${C},${X} L ${N},${X} z M ${M},${x} L ${P},${U} L ${O},${Q} z M 0,${r/2} L ${w},${V} L ${w},${$} z M ${M},${S} L ${O},${W} L ${P},${D} z M ${t/2},${r} L ${N},${Y} L ${C},${Y} z M ${b},${S} L ${L},${D} L ${T},${W} z M ${I},${r/2} ${e3(t/2,r/2,k,F,180,540,!1).replace("M","L")} z`}break;case"heart":{let e=49*t/48,n=10*t/48,a=t/2-e,o=t/2-n,s=t/2+n,l=t/2+e,c=-r/3;i=`M ${t/2},${r/4} C ${s},${c} ${l},${r/4} ${t/2},${r} C ${a},${r/4} ${o},${c} ${t/2},${r/4} z`}break;case"lightningBolt":{let e=5022*t/21600,n=11050*t/21600,a=8472*t/21600,o=10012*t/21600,s=14767*t/21600,l=12222*t/21600,c=12860*t/21600,u=7602*t/21600,h=16577*t/21600,p=3890*r/21600,d=6080*r/21600,f=6797*r/21600,m=12877*r/21600,g=9705*r/21600,A=12007*r/21600,y=13987*r/21600,v=8382*r/21600,R=14915*r/21600;i=`M ${a},0 L ${c},${d} L ${n},${f} L ${h},${A} L ${s},${m} L ${t},${r} L ${o},${R} L ${l},${y} L ${e},${g} L ${u},${v} L 0,${p} z`}break;case"cube":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),a=25e3*eR;e&&(a=parseInt(e.substring(4))*eR);let o=1e5*eR,s=Math.min(t,r)*(a<0?0:a>o?o:a)/o,l=r-s,c=t-s;i=`M 0,${s} L ${s},0 L ${t},0 L ${t},${l} L ${c},${r} L 0,${r} z M 0,${s} L ${c},${s} M ${c},${s} L ${t},0 M ${c},${s} L ${c},${r}`}break;case"bevel":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),a=12500*eR;e&&(a=parseInt(e.substring(4))*eR);let o=5e4*eR,s=Math.min(t,r)*(a<0?0:a>o?o:a)/(1e5*eR),l=t-s,c=r-s;i=`M 0,0 L ${t},0 L ${t},${r} L 0,${r} z M ${s},${s} L ${l},${s} L ${l},${c} L ${s},${c} z M 0,0 L ${s},${s} M 0,${r} L ${s},${c} M ${t},0 L ${l},${s} M ${t},${r} L ${l},${c}`}break;case"foldedCorner":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),a=16667*eR;e&&(a=parseInt(e.substring(4))*eR);let o=5e4*eR,s=Math.min(t,r)*(a<0?0:a>o?o:a)/(1e5*eR),l=s/5,c=t-s,u=r-s;i=`M ${c},${r} L ${c+l},${u+l} L ${t},${u} L ${c},${r} L 0,${r} L 0,0 L ${t},0 L ${t},${u}`}break;case"cloud":case"cloudCallout":{let a=3900*t/43200,o=14370*r/43200,s=6753*t/43200,l=9190*r/43200,c=5333*t/43200,u=7267*r/43200,h=5945*r/43200,p=(e,t,r,n,i,a)=>e3(e-r*Math.cos(i*Math.PI/180),t-n*Math.sin(i*Math.PI/180),r,n,i,i+a,!1).replace("M","L"),d=`M ${a},${o}`,f=[a,o];for(let e of[[s,l,-0xae6581/6e4,7426832/6e4],[c,u,-8646143/6e4,5396714/6e4],[4365*t/43200,h,-8748475/6e4,5983381/6e4],[4857*t/43200,6595*r/43200,-7859164/6e4,7034504/6e4],[c,7273*r/43200,-4722533/6e4,6541615/6e4],[6775*t/43200,9220*r/43200,-46.26725,130.269],[5785*t/43200,7867*r/43200,37501/6e4,6842e3/6e4],[6752*t/43200,9215*r/43200,22.4516,115.17255],[7720*t/43200,10543*r/43200,3974558/6e4,4542661/6e4],[4360*t/43200,5918*r/43200,-0xfbb78d/6e4,8804134/6e4],[4345*t/43200,h,-246.8285,152.51885]]){let t=p(f[0],f[1],...e);d+=t;let r=t.lastIndexOf("L"),n=t.substring(r+1).split(" ");f=[parseFloat(n[0]),parseFloat(n[1])]}if(d+=" z","cloudCallout"===e){let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),i=-20833*eR,a=62500*eR;if(e)for(let t of e){let e=E(t,["attrs","name"]);"adj1"===e?i=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj2"===e&&(a=parseInt(E(t,["attrs","fmla"]).substring(4))*eR)}let o=1e5*eR,s=Math.min(t,r),l=t/2,c=r/2,u=t*i/o,h=r*a/o,p=l+u,f=c+h,m=c*Math.cos(Math.atan(h/u)),g=l*Math.sin(Math.atan(h/u)),A=l*Math.cos(Math.atan(g/m)),y=c*Math.sin(Math.atan(g/m)),v=(i>=0?l+A:l-A)-p,R=(i>=0?c+y:c-y)-f,b=Math.sqrt(v*v+R*R),x=(b-6600*s/21600)/3,M=1800*s/21600,S=x+M,w=S*R/b+f,O=4800*s/21600+2*x,L=O*R/b+f,N=1200*s/21600,_=600*s/21600,T=p+_,P=S*v/b+p+N,C=O*v/b+p+M;d+=`${e3(T-_,f,_,_,0,360,!0)} M ${P},${w} ${e3(P-N,w,N,N,0,360,!0).replace("M","L")} M ${C},${L} ${e3(C-M,L,M,M,0,360,!0).replace("M","L")}`}i=d}break;case"smileyFace":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),a=4653*eR;e&&(a=parseInt(e.substring(4))*eR);let o=4653*eR,s=t/2,l=r/2,c=a<-o?-o:a>o?o:a,u=6215*t/21600,h=13135*t/21600,p=16640*t/21600,d=7570*r/21600,f=16515*r/21600,m=r*c/(1e5*eR),g=f-m,A=f+m+r*c/(5e4*eR),y=1125*t/21600,v=1125*r/21600,R=4969*t/21699;i=`${e3(u,d,y,v,0,360,!0)} ${e3(h,d,y,v,0,360,!0)} M ${R},${g} Q ${s},${A} ${p},${g} Q ${s},${A} ${R},${g} M 0,${l} ${e3(s,l,s,l,180,540,!1).replace("M","L")} z`}break;case"verticalScroll":case"horizontalScroll":{let a=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),o=12500*eR;a&&(o=parseInt(a.substring(4))*eR);let s=25e3*eR,l=Math.min(t,r)*(o<0?0:o>s?s:o)/(1e5*eR),c=l/2,u=l/4;if("verticalScroll"===e){let e=l+c,n=t-l,a=t-c,o=n-c,s=r-l,h=r-c;i=`M ${l},${s} L ${l},${c} ${e3(e,c,c,c,180,270,!1).replace("M","L")} L ${a},0 ${e3(a,c,c,c,270,450,!1).replace("M","L")} L ${n},${l} L ${n},${h} ${e3(o,h,c,c,0,90,!1).replace("M","L")} L ${c},${r} ${e3(c,h,c,c,90,270,!1).replace("M","L")} z M ${e},0 ${e3(e,c,c,c,270,450,!1).replace("M","L")} ${e3(e,e/2,u,u,90,270,!1).replace("M","L")} L ${l+l},${c} M ${n},${l} L ${e},${l} M ${l},${h} ${e3(c,h,c,c,0,270,!1).replace("M","L")} ${e3(c,(h+s)/2,u,u,270,450,!1).replace("M","L")} z M ${l},${h} L ${l},${s}`}else if("horizontalScroll"===e){let e=l+c,n=r-l,a=r-c,o=n-c,s=t-l,h=t-c;i=`M 0,${e} ${e3(c,e,c,c,180,270,!1).replace("M","L")} L ${s},${l} L ${s},${c} ${e3(h,c,c,c,180,360,!1).replace("M","L")} L ${t},${o} ${e3(h,o,c,c,0,90,!1).replace("M","L")} L ${l},${n} L ${l},${a} ${e3(c,a,c,c,0,180,!1).replace("M","L")} z M ${h},${l} ${e3(h,c,c,c,90,-180,!1).replace("M","L")} ${e3((s+h)/2,c,u,u,180,0,!1).replace("M","L")} z M ${h},${l} L ${s},${l} M ${c},${l+l} L ${c},${e} ${e3(e/2,e,u,u,180,360,!1).replace("M","L")} ${e3(c,e,c,c,0,180,!1).replace("M","L")} M ${l},${e} L ${l},${n}`}}break;case"wedgeEllipseCallout":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=-20833*eR,o=62500*eR;if(e)for(let t of e){let e=E(t,["attrs","name"]);"adj1"===e?a=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj2"===e&&(o=parseInt(E(t,["attrs","fmla"]).substring(4))*eR)}let s=1e5*eR,l=11*Math.PI/180,c=r/2,u=t/2,h=t*a/s,p=r*o/s,d=u+h,f=c+p,m=Math.atan2(p*t,h*r),g=m+l,A=m-l,y=u*Math.cos(g),v=c*Math.sin(g),R=u*Math.cos(A),b=c*Math.sin(A),x=u+y,M=c+v,S=u+R,w=c+b;i=`M ${x},${M} L ${d},${f} L ${S},${w} ${e3(u,c,u,c,180*A/Math.PI,180*g/Math.PI,!0).replace("M","L")}`}break;case"wedgeRectCallout":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=-20833*eR,o=62500*eR;if(e)for(let t of e){let e=E(t,["attrs","name"]);"adj1"===e?a=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj2"===e&&(o=parseInt(E(t,["attrs","fmla"]).substring(4))*eR)}let s=1e5*eR,l=r/2,c=t/2,u=t*a/s,h=r*o/s,p=c+u,d=l+h,f=Math.abs(h)-Math.abs(u*r/t),m=t*(u>0?7:2)/12,g=t*(u>0?10:5)/12,A=r*(h>0?7:2)/12,y=r*(h>0?10:5)/12,v=f>0?t:u>0?p:t,R=f>0&&h>0?d:r;i=`M 0,0 L ${m},0 L ${f>0?h>0?m:p:m},${f>0?h>0?0:d:0} L ${g},0 L ${t},0 L ${t},${A} L ${v},${f>0?A:u>0?d:A} L ${t},${y} L ${t},${r} L ${g},${r} L ${f>0&&h>0?p:m},${R} L ${m},${r} L 0,${r} L 0,${y} L ${f>0||u>0?0:p},${f>0||u>0?A:d} L 0,${A} z`}break;case"wedgeRoundRectCallout":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=-20833*eR,o=62500*eR,s=16667*eR;if(e)for(let t of e){let e=E(t,["attrs","name"]);"adj1"===e?a=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj2"===e?o=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj3"===e&&(s=parseInt(E(t,["attrs","fmla"]).substring(4))*eR)}let l=1e5*eR,c=Math.min(t,r),u=r/2,h=t/2,p=t*a/l,d=r*o/l,f=h+p,m=u+d,g=Math.abs(d)-Math.abs(p*r/t),A=t*(p>0?7:2)/12,y=t*(p>0?10:5)/12,v=r*(d>0?7:2)/12,R=r*(d>0?10:5)/12,b=g>0?t:p>0?f:t,x=g>0&&d>0?m:r,M=c*s/l,S=t-M,w=r-M;i=`M 0,${M} ${e3(M,M,M,M,180,270,!1).replace("M","L")} L ${A},0 L ${g>0?d>0?A:f:A},${g>0?d>0?0:m:0} L ${y},0 L ${S},0 ${e3(S,M,M,M,270,360,!1).replace("M","L")} L ${t},${v} L ${b},${g>0?v:p>0?m:v} L ${t},${R} L ${t},${w} ${e3(S,w,M,M,0,90,!1).replace("M","L")} L ${y},${r} L ${g>0&&d>0?f:A},${x} L ${A},${r} L ${M},${r} ${e3(M,w,M,M,90,180,!1).replace("M","L")} L 0,${R} L ${g>0||p>0?0:f},${g>0||p>0?v:m} L 0,${v} z`}break;case"accentBorderCallout1":case"accentBorderCallout2":case"accentBorderCallout3":case"borderCallout1":case"borderCallout2":case"borderCallout3":case"accentCallout1":case"accentCallout2":case"accentCallout3":case"callout1":case"callout2":case"callout3":{let a,o,s,l,c,u,h,p,d=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),f=18750*eR,m=-8333*eR,g=18750*eR,A=-16667*eR,y=1e5*eR,v=-16667*eR,R=112963*eR,b=-8333*eR;if(d)for(let e of d){let t=E(e,["attrs","name"]);"adj1"===t?f=parseInt(E(e,["attrs","fmla"]).substring(4))*eR:"adj2"===t?m=parseInt(E(e,["attrs","fmla"]).substring(4))*eR:"adj3"===t?g=parseInt(E(e,["attrs","fmla"]).substring(4))*eR:"adj4"===t?A=parseInt(E(e,["attrs","fmla"]).substring(4))*eR:"adj5"===t?y=parseInt(E(e,["attrs","fmla"]).substring(4))*eR:"adj6"===t?v=parseInt(E(e,["attrs","fmla"]).substring(4))*eR:"adj7"===t?R=parseInt(E(e,["attrs","fmla"]).substring(4))*eR:"adj8"===t&&(b=parseInt(E(e,["attrs","fmla"]).substring(4))*eR)}let x=1e5*eR,M=`M 0,0 L ${t},0 L ${t},${r} L 0,${r} z`;switch(e){case"borderCallout1":case"callout1":d||(f=18750*eR,m=-8333*eR,g=112500*eR,A=-38333*eR),o=r*f/x,a=t*m/x,l=r*g/x,s=t*A/x,i=`${M} M ${a},${o} L ${s},${l}`;break;case"borderCallout2":case"callout2":d||(f=18750*eR,m=-8333*eR,g=18750*eR,A=-16667*eR,y=112500*eR,v=-46667*eR),o=r*f/x,a=t*m/x,l=r*g/x,s=t*A/x,u=r*y/x,c=t*v/x,i=`${M} M ${a},${o} L ${s},${l} L ${c},${u}`;break;case"borderCallout3":case"callout3":d||(f=18750*eR,m=-8333*eR,g=18750*eR,A=-16667*eR,y=1e5*eR,v=-16667*eR,R=112963*eR,b=-8333*eR),o=r*f/x,a=t*m/x,l=r*g/x,s=t*A/x,u=r*y/x,c=t*v/x,p=r*R/x,h=t*b/x,i=`${M} M ${a},${o} L ${s},${l} L ${c},${u} L ${h},${p}`;break;case"accentBorderCallout1":case"accentCallout1":d||(f=18750*eR,m=-8333*eR,g=112500*eR,A=-38333*eR),o=r*f/x,a=t*m/x,l=r*g/x,s=t*A/x,i=`${M} M ${a},${o} L ${s},${l} M ${a},0 L ${a},${r}`;break;case"accentBorderCallout2":case"accentCallout2":d||(f=18750*eR,m=-8333*eR,g=18750*eR,A=-16667*eR,y=112500*eR,v=-46667*eR),o=r*f/x,a=t*m/x,l=r*g/x,s=t*A/x,u=r*y/x,c=t*v/x,i=`${M} M ${a},${o} L ${s},${l} L ${c},${u} M ${a},0 L ${a},${r}`;break;case"accentBorderCallout3":case"accentCallout3":d||(f=18750*eR,m=-8333*eR,g=18750*eR,A=-16667*eR,y=1e5*eR,v=-16667*eR,R=112963*eR,b=-8333*eR),o=r*f/x,a=t*m/x,l=r*g/x,s=t*A/x,u=r*y/x,c=t*v/x,p=r*R/x,h=t*b/x,i=`${M} M ${a},${o} L ${s},${l} L ${c},${u} L ${h},${p} M ${a},0 L ${a},${r}`}}break;case"leftRightRibbon":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=5e4*eR,o=5e4*eR,s=16667*eR;if(e)for(let t of e){let e=E(t,["attrs","name"]);"adj1"===e?a=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj2"===e?o=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj3"===e&&(s=parseInt(E(t,["attrs","fmla"]).substring(4))*eR)}let l=33333*eR,c=1e5*eR,u=2e5*eR,h=Math.min(t,r),p=t/2,d=r/2,f=s<0?0:s>l?l:s,m=c-f,g=c*(p-t/32)/h,A=h*(o<0?0:o>g?g:o)/c,y=t-A,v=r*(a<0?0:a>m?m:a)/u,R=-(r*f/u),b=d+R-v,x=d+v-R,M=b+v,S=r-M,w=2*M,O=r-(w-b),L=f*h/(4e5*eR),N=p-t/32,_=p+t/32,T=b+L,P=O-L;i=`M 0,${M} L ${A},0 L ${A},${b} L ${p},${b} ${e3(p,T,t/32,L,270,450,!1).replace("M","L")} ${e3(p,P,t/32,L,270,90,!1).replace("M","L")} L ${y},${O} L ${y},${r-w} L ${t},${S} L ${y},${r} L ${y},${x} L ${p},${x} ${e3(p,x-L,t/32,L,90,180,!1).replace("M","L")} L ${N},${w-b} L ${A},${w-b} L ${A},${w} z M ${_},${T} L ${_},${O} M ${N},${P} L ${N},${w-b}`}break;case"ribbon":case"ribbon2":{let a=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),o=16667*eR,s=5e4*eR;if(a)for(let e of a){let t=E(e,["attrs","name"]);"adj1"===t?o=parseInt(E(e,["attrs","fmla"]).substring(4))*eR:"adj2"===t&&(s=parseInt(E(e,["attrs","fmla"]).substring(4))*eR)}let l=25e3*eR,c=33333*eR,u=75e3*eR,h=1e5*eR,p=2e5*eR,d=t/2,f=t/8,m=t/32,g=o<0?0:o>c?c:o,A=t-f,y=t*(s<l?l:s>u?u:s)/p,v=d-y,R=d+y,b=v+m,x=R-m,M=v+f,S=R-f,w=M-m,O=S+m,L=r*g/(4e5*eR);if("ribbon2"===e){let e=r*g/p,n=r-e,a=r*g/h,o=r-a,s=0+a,l=(s+r)/2,c=r-L,u=n-L;i=`M 0,${r} L ${f},${l} L 0,${s} L ${v},${s} L ${v},${L} ${e3(b,L,m,L,180,270,!1).replace("M","L")} L ${x},0 ${e3(x,L,m,L,270,360,!1).replace("M","L")} L ${R},${s} L ${t},${s} L ${A},${l} L ${t},${r} L ${O},${r} ${e3(O,c,m,L,90,270,!1).replace("M","L")} L ${x},${n} ${e3(x,u,m,L,90,-90,!1).replace("M","L")} L ${b},${o} ${e3(b,u,m,L,270,90,!1).replace("M","L")} L ${w},${n} ${e3(w,c,m,L,270,450,!1).replace("M","L")} z M ${M},${o} L ${M},${c} M ${S},${c} L ${S},${o} M ${v},${u} L ${v},${s} M ${R},${s} L ${R},${u}`}else if("ribbon"===e){let e=r*g/p,n=r*g/h,a=r-n,o=a/2,s=r-L,l=n-L;i=`M 0,0 L ${w},0 ${e3(w,L,m,L,270,450,!1).replace("M","L")} L ${b},${e} ${e3(b,l,m,L,270,90,!1).replace("M","L")} L ${x},${n} ${e3(x,l,m,L,90,-90,!1).replace("M","L")} L ${O},${e} ${e3(O,L,m,L,90,270,!1).replace("M","L")} L ${t},0 L ${A},${o} L ${t},${a} L ${R},${a} L ${R},${s} ${e3(x,s,m,L,0,90,!1).replace("M","L")} L ${b},${r} ${e3(b,s,m,L,90,180,!1).replace("M","L")} L ${v},${a} L 0,${a} L ${f},${o} z M ${M},${L} L ${M},${n} M ${S},${n} L ${S},${L} M ${v},${a} L ${v},${l} M ${R},${l} L ${R},${a}`}}break;case"doubleWave":case"wave":{let a=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),o="doubleWave"===e?6250*eR:12500*eR,s=0;if(a)for(let e of a){let t=E(e,["attrs","name"]);"adj1"===t?o=parseInt(E(e,["attrs","fmla"]).substring(4))*eR:"adj2"===t&&(s=parseInt(E(e,["attrs","fmla"]).substring(4))*eR)}let l=-1e4*eR,c=5e4*eR,u=1e5*eR;if("doubleWave"===e){let e=12500*eR,n=s<l?l:s>u?u:s,a=r*(o<0?0:o>e?e:o)/u,h=10*a/3,p=a-h,d=a+h,f=r-a,m=f-h,g=f+h,A=t*n/c,y=A>0?0:A,v=0-y,R=A>0?A:0,b=t-R,x=(y+b)/6,M=(y+b)/3,S=(v+b)/2,w=S+x,O=0+R,L=t+y,N=(O+L)/2,_=N+x;i=`M ${v},${a} C ${v+x},${p} ${v+M},${d} ${S},${a} C ${w},${p} ${(w+b)/2},${d} ${b},${a} L ${L},${f} C ${(_+L)/2},${g} ${_},${m} ${N},${f} C ${O+M},${g} ${O+x},${m} ${O},${f} z`}else if("wave"===e){let e=2e4*eR,n=s<l?l:s>u?u:s,a=r*(o<0?0:o>e?e:o)/u,h=10*a/3,p=r-a,d=t*n/c,f=d>0?0:d,m=0-f,g=d>0?d:0,A=t-g,y=(f+A)/3,v=m+y,R=0+g,b=t+f,x=R+y;i=`M ${m},${a} C ${v},${a-h} ${(v+A)/2},${a+h} ${A},${a} L ${b},${p} C ${(x+b)/2},${p+h} ${x},${p-h} ${R},${p} z`}}break;case"ellipseRibbon":case"ellipseRibbon2":{let a=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),o=25e3*eR,s=5e4*eR,l=12500*eR;if(a)for(let e of a){let t=E(e,["attrs","name"]);"adj1"===t?o=parseInt(E(e,["attrs","fmla"]).substring(4))*eR:"adj2"===t?s=parseInt(E(e,["attrs","fmla"]).substring(4))*eR:"adj3"===t&&(l=parseInt(E(e,["attrs","fmla"]).substring(4))*eR)}let c=25e3*eR,u=75e3*eR,h=1e5*eR,p=t/2,d=t/8,f=o<0?0:o>h?h:o,m=h-f,g=f-m/2>0?f-m/2:0,A=p-t*(s<c?c:s>u?u:s)/(2e5*eR),y=A+d,v=t-y,R=t-A,b=t-d,x=r*(l<g?g:l>f?f:l)/h,M=4*x/t,S=y-y*y/t,w=y/2,O=t-w,L=r*f/h,N=L-x,_=M*(A-A*A/t),T=r-L,P=14*x/16,C=A/2,I=M*C,k=t-C;if("ellipseRibbon"===e){let e=M*S,r=M*w,n=_+N,a=x+N-n+x+N,o=(P+T)/2,s=_+T,l=n+T,c=I+T,u=e+N;i=`M 0,0 Q ${w},${r} ${y},${e} L ${A},${n} Q ${p},${a} ${R},${n} L ${v},${e} Q ${O},${r} ${t},0 L ${b},${o} L ${t},${T} Q ${k},${c} ${R},${s} L ${R},${l} Q ${p},${a+T} ${A},${l} L ${A},${s} Q ${C},${c} 0,${T} L ${d},${o} z M ${A},${s} L ${A},${n} M ${R},${n} L ${R},${s} M ${y},${e} L ${y},${u} M ${v},${u} L ${v},${e}`}else if("ellipseRibbon2"===e){let e=M*S,n=r-e,a=r-M*w,o=_+N,s=r-o,l=x+N-o+x+N,c=r-l,u=r-(P+T)/2,h=r-(_+T),f=r-(o+T),m=r-(I+T),g=r-(l+T),F=r-(e+N);i=`M 0,${r} L ${d},${u} L 0,${L} Q ${C},${m} ${A},${h} L ${A},${f} Q ${p},${g} ${R},${f} L ${R},${h} Q ${k},${m} ${t},${L} L ${b},${u} L ${t},${r} Q ${O},${a} ${v},${n} L ${R},${s} Q ${p},${c} ${A},${s} L ${y},${n} Q ${w},${a} 0,${r} z M ${A},${s} L ${A},${h} M ${R},${h} L ${R},${s} M ${y},${F} L ${y},${n} M ${v},${n} L ${v},${F}`}}break;case"line":case"straightConnector1":case"bentConnector4":case"bentConnector5":case"curvedConnector2":case"curvedConnector3":case"curvedConnector4":case"curvedConnector5":i=`M 0 0 L ${t} ${r}`;break;case"rightArrow":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=.25,o=.5;if(e){let n=t/r;for(let t of e){let e=E(t,["attrs","name"]);"adj1"===e?a=.5-parseInt(E(t,["attrs","fmla"]).substring(4))/2e5:"adj2"===e&&(o=1-parseInt(E(t,["attrs","fmla"]).substring(4))/1e5/n)}}i=`M ${t} ${r/2} L ${o*t} 0 L ${o*t} ${a*r} L 0 ${a*r} L 0 ${(1-a)*r} L ${o*t} ${(1-a)*r} L ${o*t} ${r} Z`}break;case"leftArrow":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=.25,o=.5;if(e){let n=t/r;for(let t of e){let e=E(t,["attrs","name"]);"adj1"===e?a=.5-parseInt(E(t,["attrs","fmla"]).substring(4))/2e5:"adj2"===e&&(o=parseInt(E(t,["attrs","fmla"]).substring(4))/1e5/n)}}i=`M 0 ${r/2} L ${o*t} ${r} L ${o*t} ${(1-a)*r} L ${t} ${(1-a)*r} L ${t} ${a*r} L ${o*t} ${a*r} L ${o*t} 0 Z`}break;case"downArrow":case"flowChartOffpageConnector":{let a=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),o=.25,s=.5;if(a){let e=r/t;for(let t of a){let r=E(t,["attrs","name"]);"adj1"===r?o=parseInt(E(t,["attrs","fmla"]).substring(4))/2e5:"adj2"===r&&(s=parseInt(E(t,["attrs","fmla"]).substring(4))/1e5/e)}}"flowChartOffpageConnector"===e&&(o=.5,s=.212),i=`M ${(.5-o)*t} 0 L ${(.5-o)*t} ${(1-s)*r} L 0 ${(1-s)*r} L ${t/2} ${r} L ${t} ${(1-s)*r} L ${(.5+o)*t} ${(1-s)*r} L ${(.5+o)*t} 0 Z`}break;case"upArrow":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=.25,o=.5;if(e){let n=r/t;for(let t of e){let e=E(t,["attrs","name"]);"adj1"===e?a=parseInt(E(t,["attrs","fmla"]).substring(4))/2e5:"adj2"===e&&(o=parseInt(E(t,["attrs","fmla"]).substring(4))/1e5/n)}}i=`M ${t/2} 0 L 0 ${o*r} L ${(.5-a)*t} ${o*r} L ${(.5-a)*t} ${r} L ${(.5+a)*t} ${r} L ${(.5+a)*t} ${o*r} L ${t} ${o*r} Z`}break;case"leftRightArrow":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=.25,o=.25;if(e){let n=t/r;for(let t of e){let e=E(t,["attrs","name"]);"adj1"===e?a=.5-parseInt(E(t,["attrs","fmla"]).substring(4))/2e5:"adj2"===e&&(o=parseInt(E(t,["attrs","fmla"]).substring(4))/1e5/n)}}i=`M 0 ${r/2} L ${o*t} ${r} L ${o*t} ${(1-a)*r} L ${(1-o)*t} ${(1-a)*r} L ${(1-o)*t} ${r} L ${t} ${r/2} L ${(1-o)*t} 0 L ${(1-o)*t} ${a*r} L ${o*t} ${a*r} L ${o*t} 0 Z`}break;case"upDownArrow":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=.25,o=.25;if(e){let n=r/t;for(let t of e){let e=E(t,["attrs","name"]);"adj1"===e?a=.5-parseInt(E(t,["attrs","fmla"]).substring(4))/2e5:"adj2"===e&&(o=parseInt(E(t,["attrs","fmla"]).substring(4))/1e5/n)}}i=`M ${t/2} 0 L 0 ${o*r} L ${a*t} ${o*r} L ${a*t} ${(1-o)*r} L 0 ${(1-o)*r} L ${t/2} ${r} L ${t} ${(1-o)*r} L ${(1-a)*t} ${(1-o)*r} L ${(1-a)*t} ${o*r} L ${t} ${o*r} Z`}break;case"quadArrow":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=22500*eR,o=22500*eR,s=22500*eR,l=5e4*eR,c=1e5*eR;if(e)for(let t of e){let e=E(t,["attrs","name"]);"adj1"===e?a=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj2"===e?o=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj3"===e&&(s=parseInt(E(t,["attrs","fmla"]).substring(4))*eR)}let u=r/2,h=t/2,p=Math.min(t,r),d=o<0?0:o>l?l:o,f=2*d,m=a<0?0:a>f?f:a,g=(c-f)/2,A=p*(s<0?0:s>g?g:s)/c,y=p*d/c,v=h-y,R=h+y,b=p*m/(2e5*eR),x=h-b,M=h+b,S=t-A,w=u-y,O=u+y,L=u-b,N=u+b,_=r-A;i=`M 0,${u} L ${A},${w} L ${A},${L} L ${x},${L} L ${x},${A} L ${v},${A} L ${h},0 L ${R},${A} L ${M},${A} L ${M},${L} L ${S},${L} L ${S},${w} L ${t},${u} L ${S},${O} L ${S},${N} L ${M},${N} L ${M},${_} L ${R},${_} L ${h},${r} L ${v},${_} L ${x},${_} L ${x},${N} L ${A},${N} L ${A},${O} z`}break;case"leftRightUpArrow":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=25e3*eR,o=25e3*eR,s=25e3*eR,l=5e4*eR,c=1e5*eR;if(e)for(let t of e){let e=E(t,["attrs","name"]);"adj1"===e?a=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj2"===e?o=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj3"===e&&(s=parseInt(E(t,["attrs","fmla"]).substring(4))*eR)}let u=t/2,h=Math.min(t,r),p=o<0?0:o>l?l:o,d=2*p,f=a<0?0:a>d?d:a,m=(c-d)/2,g=h*(s<0?0:s>m?m:s)/c,A=h*p/c,y=h*f/(2e5*eR),v=u-y,R=u+y,b=t-g,x=r-h*p/l,M=r-A,S=M-y,w=M+y;i=`M 0,${M} L ${g},${x} L ${g},${S} L ${v},${S} L ${v},${g} L ${u-A},${g} L ${u},0 L ${u+A},${g} L ${R},${g} L ${R},${S} L ${b},${S} L ${b},${x} L ${t},${M} L ${b},${r} L ${b},${w} L ${g},${w} L ${g},${r} z`}break;case"leftUpArrow":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=25e3*eR,o=25e3*eR,s=25e3*eR,l=5e4*eR,c=1e5*eR;if(e)for(let t of e){let e=E(t,["attrs","name"]);"adj1"===e?a=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj2"===e?o=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj3"===e&&(s=parseInt(E(t,["attrs","fmla"]).substring(4))*eR)}let u=Math.min(t,r),h=o<0?0:o>l?l:o,p=2*h,d=a<0?0:a>p?p:a,f=c-p,m=u*(s<0?0:s>f?f:s)/c,g=u*h/l,A=t-g,y=r-g,v=u*h/c,R=t-v,b=r-v,x=u*d/(2e5*eR),M=R-x,S=R+x,w=b-x,O=b+x;i=`M 0,${b} L ${m},${y} L ${m},${w} L ${M},${w} L ${M},${m} L ${A},${m} L ${R},0 L ${t},${m} L ${S},${m} L ${S},${O} L ${m},${O} L ${m},${r} z`}break;case"bentUpArrow":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=25e3*eR,o=25e3*eR,s=25e3*eR,l=5e4*eR,c=1e5*eR;if(e)for(let t of e){let e=E(t,["attrs","name"]);"adj1"===e?a=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj2"===e?o=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj3"===e&&(s=parseInt(E(t,["attrs","fmla"]).substring(4))*eR)}let u=Math.min(t,r),h=a<0?0:a>l?l:a,p=o<0?0:o>l?l:o,d=u*(s<0?0:s>l?l:s)/c,f=t-u*p/l,m=t-u*p/c,g=u*h/(2e5*eR),A=m-g,y=m+g,v=r-u*h/c;i=`M 0,${v} L ${A},${v} L ${A},${d} L ${f},${d} L ${m},0 L ${t},${d} L ${y},${d} L ${y},${r} L 0,${r} z`}break;case"bentArrow":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=25e3*eR,o=25e3*eR,s=25e3*eR,l=43750*eR,c=5e4*eR,u=1e5*eR;if(e)for(let t of e){let e=E(t,["attrs","name"]);"adj1"===e?a=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj2"===e?o=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj3"===e?s=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj4"===e&&(l=parseInt(E(t,["attrs","fmla"]).substring(4))*eR)}let h=Math.min(t,r),p=o<0?0:o>c?c:o,d=2*p,f=h*(a<0?0:a>d?d:a)/u,m=h*p/u,g=m-f/2,A=h*(s<0?0:s>c?c:s)/u,y=t-A,v=r-g,R=u*(y<v?y:v)/h,b=h*(l<0?0:l>R?R:l)/u,x=b-f,M=x>0?x:0,S=f+M,w=t-A,O=g+f,L=g+b,N=O+M;i=`M 0,${r} L 0,${L} ${e3(b,L,b,b,180,270,!1).replace("M","L")} L ${w},${g} L ${w},0 L ${t},${m} L ${w},${O+g} L ${w},${O} L ${S},${O} ${e3(S,N,M,M,270,180,!1).replace("M","L")} L ${f},${r} z`}break;case"uturnArrow":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=25e3*eR,o=25e3*eR,s=25e3*eR,l=43750*eR,c=75e3*eR,u=25e3*eR,h=1e5*eR;if(e)for(let t of e){let e=E(t,["attrs","name"]);"adj1"===e?a=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj2"===e?o=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj3"===e?s=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj4"===e?l=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj5"===e&&(c=parseInt(E(t,["attrs","fmla"]).substring(4))*eR)}let p=Math.min(t,r),d=o<0?0:o>u?u:o,f=2*d,m=a<0?0:a>f?f:a,g=(h-m*p/r)*r/p,A=s<0?0:s>g?g:s,y=(A+m)*p/r,v=c<y?y:c>h?h:c,R=p*m/h,b=p*d/h,x=b-R/2,M=r*v/h,S=M-p*A/h,w=t-x,O=w/2,L=h*(O<S?O:S)/p,N=p*(l<0?0:l>L?L:l)/h,_=N-R,T=_>0?_:0,P=R+T,C=t-b,I=C-b,k=I+x,F=w-N,X=k-T;i=`M 0,${r} L 0,${N} ${e3(N,N,N,N,180,270,!1).replace("M","L")} L ${F},0 ${e3(F,N,N,N,270,360,!1).replace("M","L")} L ${w},${S} L ${t},${S} L ${C},${M} L ${I},${S} L ${k},${S} L ${k},${P} ${e3(X,P,T,T,0,-90,!1).replace("M","L")} L ${P},${R} ${e3(P,P,T,T,270,180,!1).replace("M","L")} L ${R},${r} z`}break;case"stripedRightArrow":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=5e4*eR,o=5e4*eR,s=1e5*eR;if(e)for(let t of e){let e=E(t,["attrs","name"]);"adj1"===e?a=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj2"===e&&(o=parseInt(E(t,["attrs","fmla"]).substring(4))*eR)}let l=r/2,c=Math.min(t,r),u=84375*eR*t/c,h=a<0?0:a>s?s:a,p=5*c/32,d=t-c*(o<0?0:o>u?u:o)/s,f=r*h/(2e5*eR),m=l-f,g=l+f,A=c/8,y=c/16,v=c/32;i=`M 0,${m} L ${v},${m} L ${v},${g} L 0,${g} z M ${y},${m} L ${A},${m} L ${A},${g} L ${y},${g} z M ${p},${m} L ${d},${m} L ${d},0 L ${t},${l} L ${d},${r} L ${d},${g} L ${p},${g} z`}break;case"notchedRightArrow":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=5e4*eR,o=5e4*eR,s=1e5*eR;if(e)for(let t of e){let e=E(t,["attrs","name"]);"adj1"===e?a=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj2"===e&&(o=parseInt(E(t,["attrs","fmla"]).substring(4))*eR)}let l=r/2,c=Math.min(t,r),u=s*t/c,h=a<0?0:a>s?s:a,p=c*(o<0?0:o>u?u:o)/s,d=t-p,f=r*h/(2e5*eR),m=l-f,g=l+f;i=`M 0,${m} L ${d},${m} L ${d},0 L ${t},${l} L ${d},${r} L ${d},${g} L 0,${g} L ${f*p/l},${l} z`}break;case"homePlate":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),a=5e4*eR,o=1e5*eR;e&&(a=parseInt(e.substring(4))*eR);let s=r/2,l=Math.min(t,r),c=o*t/l,u=t-l*(a<0?0:a>c?c:a)/o;i=`M 0,0 L ${u},0 L ${t},${s} L ${u},${r} L 0,${r} z`}break;case"chevron":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),a=5e4*eR,o=1e5*eR;e&&(a=parseInt(e.substring(4))*eR);let s=r/2,l=Math.min(t,r),c=o*t/l,u=l*(a<0?0:a>c?c:a)/o,h=t-u;i=`M 0,0 L ${h},0 L ${t},${s} L ${h},${r} L 0,${r} L ${u},${s} z`}break;case"rightArrowCallout":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=25e3*eR,o=25e3*eR,s=25e3*eR,l=64977*eR,c=1e5*eR;if(e)for(let t of e){let e=E(t,["attrs","name"]);"adj1"===e?a=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj2"===e?o=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj3"===e?s=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj4"===e&&(l=parseInt(E(t,["attrs","fmla"]).substring(4))*eR)}let u=r/2,h=Math.min(t,r),p=5e4*eR*r/h,d=o<0?0:o>p?p:o,f=2*d,m=c*t/h,g=s<0?0:s>m?m:s,A=c-g*h/t,y=h*d/c,v=h*(a<0?0:a>f?f:a)/(2e5*eR),R=u-v,b=u+v,x=t-h*g/c,M=t*(l<0?0:l>A?A:l)/c;i=`M 0,0 L ${M},0 L ${M},${R} L ${x},${R} L ${x},${u-y} L ${t},${u} L ${x},${u+y} L ${x},${b} L ${M},${b} L ${M},${r} L 0,${r} z`}break;case"downArrowCallout":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=25e3*eR,o=25e3*eR,s=25e3*eR,l=64977*eR,c=1e5*eR;if(e)for(let t of e){let e=E(t,["attrs","name"]);"adj1"===e?a=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj2"===e?o=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj3"===e?s=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj4"===e&&(l=parseInt(E(t,["attrs","fmla"]).substring(4))*eR)}let u=t/2,h=Math.min(t,r),p=5e4*eR*t/h,d=o<0?0:o>p?p:o,f=2*d,m=c*r/h,g=s<0?0:s>m?m:s,A=c-g*h/r,y=h*d/c,v=h*(a<0?0:a>f?f:a)/(2e5*eR),R=u-v,b=u+v,x=r-h*g/c,M=r*(l<0?0:l>A?A:l)/c;i=`M 0,0 L ${t},0 L ${t},${M} L ${b},${M} L ${b},${x} L ${u+y},${x} L ${u},${r} L ${u-y},${x} L ${R},${x} L ${R},${M} L 0,${M} z`}break;case"leftArrowCallout":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=25e3*eR,o=25e3*eR,s=25e3*eR,l=64977*eR,c=1e5*eR;if(e)for(let t of e){let e=E(t,["attrs","name"]);"adj1"===e?a=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj2"===e?o=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj3"===e?s=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj4"===e&&(l=parseInt(E(t,["attrs","fmla"]).substring(4))*eR)}let u=r/2,h=Math.min(t,r),p=5e4*eR*r/h,d=o<0?0:o>p?p:o,f=2*d,m=c*t/h,g=s<0?0:s>m?m:s,A=c-g*h/t,y=h*d/c,v=h*(a<0?0:a>f?f:a)/(2e5*eR),R=u-v,b=u+v,x=h*g/c,M=t*(l<0?0:l>A?A:l)/c,S=t-M;i=`M 0,${u} L ${x},${u-y} L ${x},${R} L ${S},${R} L ${S},0 L ${t},0 L ${t},${r} L ${S},${r} L ${S},${b} L ${x},${b} L ${x},${u+y} z`}break;case"upArrowCallout":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=25e3*eR,o=25e3*eR,s=25e3*eR,l=64977*eR,c=1e5*eR;if(e)for(let t of e){let e=E(t,["attrs","name"]);"adj1"===e?a=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj2"===e?o=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj3"===e?s=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj4"===e&&(l=parseInt(E(t,["attrs","fmla"]).substring(4))*eR)}let u=t/2,h=Math.min(t,r),p=5e4*eR*t/h,d=o<0?0:o>p?p:o,f=2*d,m=c*r/h,g=s<0?0:s>m?m:s,A=c-g*h/r,y=h*d/c,v=h*(a<0?0:a>f?f:a)/(2e5*eR),R=u-v,b=u+v,x=h*g/c,M=r*(l<0?0:l>A?A:l)/c,S=r-M;i=`M 0,${S} L ${R},${S} L ${R},${x} L ${u-y},${x} L ${u},0 L ${u+y},${x} L ${b},${x} L ${b},${S} L ${t},${S} L ${t},${r} L 0,${r} z`}break;case"leftRightArrowCallout":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=25e3*eR,o=25e3*eR,s=25e3*eR,l=48123*eR,c=5e4*eR,u=1e5*eR,h=2e5*eR;if(e)for(let t of e){let e=E(t,["attrs","name"]);"adj1"===e?a=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj2"===e?o=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj3"===e?s=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj4"===e&&(l=parseInt(E(t,["attrs","fmla"]).substring(4))*eR)}let p=r/2,d=t/2,f=Math.min(t,r),m=c*r/f,g=o<0?0:o>m?m:o,A=2*g,y=c*t/f,v=s<0?0:s>y?y:s,R=u-v*f/(t/2),b=f*g/u,x=f*(a<0?0:a>A?A:a)/h,M=p-b,S=p-x,w=p+x,O=p+b,L=f*v/u,N=t-L,_=t*(l<0?0:l>R?R:l)/h,T=d-_,P=d+_;i=`M 0,${p} L ${L},${M} L ${L},${S} L ${T},${S} L ${T},0 L ${P},0 L ${P},${S} L ${N},${S} L ${N},${M} L ${t},${p} L ${N},${O} L ${N},${w} L ${P},${w} L ${P},${r} L ${T},${r} L ${T},${w} L ${L},${w} L ${L},${O} z`}break;case"quadArrowCallout":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=18515*eR,o=18515*eR,s=18515*eR,l=48123*eR,c=5e4*eR,u=1e5*eR,h=2e5*eR;if(e)for(let t of e){let e=E(t,["attrs","name"]);"adj1"===e?a=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj2"===e?o=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj3"===e?s=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj4"===e&&(l=parseInt(E(t,["attrs","fmla"]).substring(4))*eR)}let p=r/2,d=t/2,f=Math.min(t,r),m=o<0?0:o>c?c:o,g=2*m,A=a<0?0:a>g?g:a,y=c-m,v=s<0?0:s>y?y:s,R=u-2*v,b=l<A?A:l>R?R:l,x=f*m/u,M=f*A/h,S=f*v/u,w=t*b/h,O=r*b/h,L=t-S,N=d-w,_=d+w,T=d-x,P=d+x,C=d-M,I=d+M,k=r-S,F=p-O,X=p+O,U=p-x,W=p+x,V=p-M,Y=p+M;i=`M 0,${p} L ${S},${U} L ${S},${V} L ${N},${V} L ${N},${F} L ${C},${F} L ${C},${S} L ${T},${S} L ${d},0 L ${P},${S} L ${I},${S} L ${I},${F} L ${_},${F} L ${_},${V} L ${L},${V} L ${L},${U} L ${t},${p} L ${L},${W} L ${L},${Y} L ${_},${Y} L ${_},${X} L ${I},${X} L ${I},${k} L ${P},${k} L ${d},${r} L ${T},${k} L ${C},${k} L ${C},${X} L ${N},${X} L ${N},${Y} L ${S},${Y} L ${S},${W} z`}break;case"curvedDownArrow":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=25e3*eR,o=5e4*eR,s=25e3*eR,l=1e5*eR;if(e)for(let t of e){let e=E(t,["attrs","name"]);"adj1"===e?a=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj2"===e?o=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj3"===e&&(s=parseInt(E(t,["attrs","fmla"]).substring(4))*eR)}let c=t/2,u=Math.min(t,r),h=5e4*eR*t/u,p=u*(a<0?0:a>l?l:a)/l,d=u*(o<0?0:o>h?h:o)/l,f=c-(p+d)/4,m=2*f,g=Math.sqrt(m*m-p*p)*r/m,A=l*g/u,y=u*(s<0?0:s>A?A:s)/l,v=f+p,R=Math.sqrt(r*r-y*y)*f/r,b=f+R,x=v+R,M=(d-p)/2,S=t-d/2,w=r-y,O=180*Math.atan(R/y)/Math.PI,L=180*Math.atan(p/2/g)/Math.PI,N=270+O,_=270-L;i=`M ${S},${r} L ${b-M},${w} L ${b},${w} ${e3(f,r,f,r,N,N+-O,!1).replace("M","L")} L ${v},0 ${e3(v,r,f,r,270,270+O,!1).replace("M","L")} L ${b+p},${w} L ${x+M},${w} z M ${v},0 ${e3(v,r,f,r,_,_+(L-90),!1).replace("M","L")} ${e3(f,r,f,r,180,180+(90+L),!1).replace("M","L")}`}break;case"curvedLeftArrow":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=25e3*eR,o=5e4*eR,s=25e3*eR,l=1e5*eR;if(e)for(let t of e){let e=E(t,["attrs","name"]);"adj1"===e?a=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj2"===e?o=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj3"===e&&(s=parseInt(E(t,["attrs","fmla"]).substring(4))*eR)}let c=r/2,u=Math.min(t,r),h=5e4*eR*r/u,p=o<0?0:o>h?h:o,d=u*(a<0?0:a>p?p:a)/l,f=u*p/l,m=c-(d+f)/4,g=2*m,A=Math.sqrt(g*g-d*d)*t/g,y=l*A/u,v=u*(s<0?0:s>y?y:s)/l,R=m+d,b=Math.sqrt(t*t-v*v)*m/t,x=m+b,M=R+b,S=(f-d)/2,w=r-f/2,O=0+v,L=Math.atan(b/v),N=180*L/Math.PI,_=180*(Math.atan(d/2/A)-L)/Math.PI;i=`M ${t},${R} ${e3(0,m,t,m,0,-90,!1).replace("M","L")} L 0,0 ${e3(0,R,t,m,270,360,!1).replace("M","L")} L ${t},${R} ${e3(0,R,t,m,0,N,!1).replace("M","L")} L ${O},${M} L ${O},${M+S} L 0,${w} L ${O},${x-S} L ${O},${x} ${e3(0,m,t,m,N,N+_,!1).replace("M","L")} ${e3(0,m,t,m,0,-90,!1).replace("M","L")} ${e3(0,R,t,m,270,360,!1).replace("M","L")}`}break;case"curvedRightArrow":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=25e3*eR,o=5e4*eR,s=25e3*eR,l=1e5*eR;if(e)for(let t of e){let e=E(t,["attrs","name"]);"adj1"===e?a=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj2"===e?o=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj3"===e&&(s=parseInt(E(t,["attrs","fmla"]).substring(4))*eR)}let c=r/2,u=Math.min(t,r),h=5e4*eR*r/u,p=o<0?0:o>h?h:o,d=u*(a<0?0:a>p?p:a)/l,f=u*p/l,m=c-(d+f)/4,g=2*m,A=Math.sqrt(g*g-d*d)*t/g,y=l*A/u,v=u*(s<0?0:s>y?y:s)/l,R=m+d,b=Math.sqrt(t*t-v*v)*m/t,x=m+b,M=R+b,S=(f-d)/2,w=r-f/2,O=t-v,L=Math.atan(b/v),N=180*(Math.PI-L)/Math.PI,_=-(180*L)/Math.PI,T=180*L/Math.PI,P=180*(Math.atan(d/2/A)-Math.PI/2)/Math.PI;i=`M 0,${m} ${e3(t,m,t,m,180,180+_,!1).replace("M","L")} L ${O},${x} L ${O},${x-S} L ${t},${w} L ${O},${M+S} L ${O},${M} ${e3(t,R,t,m,N,N+T,!1).replace("M","L")} L 0,${m} ${e3(t,m,t,m,180,270,!1).replace("M","L")} L ${t},${d} ${e3(t,R,t,m,270,270+P,!1).replace("M","L")}`}break;case"curvedUpArrow":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=25e3*eR,o=5e4*eR,s=25e3*eR,l=1e5*eR;if(e)for(let t of e){let e=E(t,["attrs","name"]);"adj1"===e?a=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj2"===e?o=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj3"===e&&(s=parseInt(E(t,["attrs","fmla"]).substring(4))*eR)}let c=t/2,u=Math.min(t,r),h=5e4*eR*t/u,p=u*(a<0?0:a>l?l:a)/l,d=u*(o<0?0:o>h?h:o)/l,f=c-(p+d)/4,m=2*f,g=Math.sqrt(m*m-p*p)*r/m,A=l*g/u,y=u*(s<0?0:s>A?A:s)/l,v=f+p,R=Math.sqrt(r*r-y*y)*f/r,b=f+R,x=v+R,M=(d-p)/2,S=t-d/2,w=0+y,O=Math.atan(R/y),L=Math.atan(p/2/g),N=Math.PI/2-O,_=180*(Math.PI/2-L)/Math.PI,T=180*(L-O)/Math.PI,P=180*N/Math.PI,C=180*O/Math.PI;i=`${e3(f,0,f,r,_,_+T,!1)} L ${b},${w} L ${b-M},${w} L ${S},0 L ${x+M},${w} L ${x},${w} ${e3(v,0,f,r,P,P+C,!1).replace("M","L")} L ${f},${r} ${e3(f,0,f,r,90,180,!1).replace("M","L")} L ${p},0 ${e3(v,0,f,r,180,90,!1).replace("M","L")}`}break;case"mathDivide":case"mathEqual":case"mathMinus":case"mathMultiply":case"mathNotEqual":case"mathPlus":{let a,o,s,l=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]);if(l)if(Array.isArray(l))for(let e of l){let t=E(e,["attrs","name"]);"adj1"===t?a=parseInt(E(e,["attrs","fmla"]).substring(4)):"adj2"===t?o=parseInt(E(e,["attrs","fmla"]).substring(4)):"adj3"===t&&(s=parseInt(E(e,["attrs","fmla"]).substring(4)))}else a=parseInt(E(l,["attrs","fmla"]).substring(4));let c=5e4*eR,u=1e5*eR,h=2e5*eR,p=t/2,d=r/2,f=r/2;if("mathNotEqual"===e){void 0===a&&(a=23520),void 0===o&&(o=66e5),void 0===s&&(s=11760),a*=eR,o=o/6e4*Math.PI/180,s*=eR;let e=70*Math.PI/180,n=110*Math.PI/180,l=a<0?0:a>c?c:a,m=u-2*l,g=r*l/u,A=r*(s<0?0:s>m?m:s)/h,y=73490*eR*t/h,v=p-y,R=p+y,b=d-A,x=d+A,M=b-g,S=x+g,w=(o<e?e:o>n?n:o)-Math.PI/2,O=f*Math.tan(w),L=Math.sqrt(O*O+f*f),N=L*g/f,_=p+O-N/2,T=_-O*M/f,P=_-O*b/f,C=_-O*x/f,I=_-O*S/f,k=g*f/L,F=w>0?_+k:_+N,X=w>0?_:_+N-k,U=g*O/L,W=w>0?U:0,V=w>0?0:-U,E=t-F,Y=t-X,D=r-W,Q=r-V;i=`M ${v},${M} L ${T},${M} L ${X},${V} L ${F},${W} L ${T+N},${M} L ${R},${M} L ${R},${b} L ${P+N},${b} L ${C+N},${x} L ${R},${x} L ${R},${S} L ${I+N},${S} L ${Y},${Q} L ${E},${D} L ${I},${S} L ${v},${S} L ${v},${x} L ${C},${x} L ${P},${b} L ${v},${b} z`}else if("mathDivide"===e){void 0===a&&(a=23520),void 0===o&&(o=5880),void 0===s&&(s=11760),a*=eR,o*=eR,s*=eR;let e=1e3*eR,n=36745*eR,l=73490*eR,c=a<e?e:a>n?n:a,f=(l-c)/4,m=n*t/r,g=f<m?f:m,A=s<e?e:s>g?g:s,y=l-4*A-c,v=r*c/h,R=r*(o<0?0:o>y?y:o)/u,b=r*A/u,x=t*l/h,M=d-v,S=d+v,w=M-(R+b)-b,O=r-w,L=p-x,N=p+x;i=`M ${p},${w} A ${b},${b} 0 1,0 ${p},${w+2*b} A ${b},${b} 0 1,0 ${p},${w} z M ${p},${O} A ${b},${b} 0 1,1 ${p},${O-2*b} A ${b},${b} 0 1,1 ${p},${O} z M ${L},${M} L ${N},${M} L ${N},${S} L ${L},${S} z`}else if("mathEqual"===e){void 0===a&&(a=23520),void 0===o&&(o=11760),a*=eR,o*=eR;let e=36745*eR,n=a<0?0:a>e?e:a,s=u-2*n,l=r*n/u,c=r*(o<0?0:o>s?s:o)/h,f=73490*eR*t/h,m=d-c,g=d+c,A=m-l,y=g+l,v=p-f,R=p+f;i=`M ${v},${A} L ${R},${A} L ${R},${m} L ${v},${m} z M ${v},${g} L ${R},${g} L ${R},${y} L ${v},${y} z`}else if("mathMinus"===e){void 0===a&&(a=23520);let e=r*((a*=eR)<0?0:a>u?u:a)/h,n=73490*eR*t/h,o=d-e,s=d+e,l=p-n,c=p+n;i=`M ${l},${o} L ${c},${o} L ${c},${s} L ${l},${s} z`}else if("mathMultiply"===e){void 0===a&&(a=23520),a*=eR;let e=51965*eR,n=Math.min(t,r)*(a<0?0:a>e?e:a)/u,o=Math.atan(r/t),s=Math.sin(o),l=Math.cos(o),c=Math.tan(o),h=Math.sqrt(t*t+r*r),f=h-h*e/u,m=l*f/2,g=s*f/2,A=s*n/2,y=l*n/2,v=m-A,R=g+y,b=m+A,x=g-y,M=(p-b)*c+x,S=t-b,w=t-v,O=r-R,L=r-x,N=r-M;i=`M ${v},${R} L ${b},${x} L ${p},${M} L ${S},${x} L ${w},${R} L ${w-(d-R)/c},${d} L ${w},${O} L ${S},${L} L ${p},${N} L ${b},${L} L ${v},${O} L ${v+(d-R)/c},${d} z`}else if("mathPlus"===e){void 0===a&&(a=23520),a*=eR;let e=73490*eR,n=Math.min(t,r),o=a<0?0:a>e?e:a,s=t*e/h,l=r*e/h,c=n*o/h,u=p-s,f=p-c,m=p+c,g=p+s,A=d-l,y=d-c,v=d+c,R=d+l;i=`M ${u},${y} L ${f},${y} L ${f},${A} L ${m},${A} L ${m},${y} L ${g},${y} L ${g},${v} L ${m},${v} L ${m},${R} L ${f},${R} L ${f},${v} L ${u},${v} z`}}break;case"can":case"flowChartMagneticDisk":case"flowChartMagneticDrum":{let a=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),o=25e3*eR;a&&(o=parseInt(a.substring(4))*eR),("flowChartMagneticDisk"===e||"flowChartMagneticDrum"===e)&&(o=5e4*eR);let s=Math.min(t,r),l=5e4*eR*r/s,c=s*(o<0?0:o>l?l:o)/(2e5*eR),u=r-c,h=t/2,p=`${e3(h,c,h,c,0,180,!1)} ${e3(h,c,h,c,180,360,!1).replace("M","L")} L ${t},${u} ${e3(h,u,h,c,0,180,!1).replace("M","L")} L 0,${c}`;"flowChartMagneticDrum"===e&&(p=p.replace(/([MLQC])\s*([-\d.e]+)\s*([-\d.e]+)/gi,(e,n,i,a)=>{let o=t/2-(parseFloat(a)-r/2),s=r/2+(parseFloat(i)-t/2);return`${n}${o} ${s}`}).replace(/([MLQC])\s*([-\d.e]+)\s*([-\d.e]+)\s*([-\d.e]+)\s*([-\d.e]+)/gi,(e,n,i,a,o,s)=>{let l=t/2-(parseFloat(a)-r/2),c=r/2+(parseFloat(i)-t/2),u=t/2-(parseFloat(s)-r/2),h=r/2+(parseFloat(o)-t/2);return`${n}${l} ${c} ${u} ${h}`})),i=p}break;case"swooshArrow":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=25e3*eR,o=16667*eR;if(e)for(let t of e){let e=E(t,["attrs","name"]);"adj1"===e?a=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj2"===e&&(o=parseInt(E(t,["attrs","fmla"]).substring(4))*eR)}let s=+eR,l=75e3*eR,c=1e5*eR,u=Math.min(t,r),h=u/8,p=r/6,d=7e4*eR*t/u,f=r*(a<s?s:a>l?l:a)/c,m=t-u*(o<0?0:o>d?d:o)/c,g=Math.PI/2/14,A=h*Math.tan(g),y=f*Math.tan(g),v=h+f,R=m+y,b=v+h,x=r/20,M=t/6,S=t/4;i=`M 0,${r} Q ${M},${p+p} ${m},${h} L ${m-A},0 L ${t},${b/2-x} L ${R+A},${b} L ${R},${v} Q ${S},${v+p/2} 0,${r} z`}break;case"circularArrow":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=12500*eR,o=19.03865*Math.PI/180,s=340.96135*Math.PI/180,l=180*Math.PI/180,c=12500*eR;if(e)for(let t of e){let e=E(t,["attrs","name"]);"adj1"===e?a=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj2"===e?o=parseInt(E(t,["attrs","fmla"]).substring(4))/6e4*Math.PI/180:"adj3"===e?s=parseInt(E(t,["attrs","fmla"]).substring(4))/6e4*Math.PI/180:"adj4"===e?l=parseInt(E(t,["attrs","fmla"]).substring(4))/6e4*Math.PI/180:"adj5"===e&&(c=parseInt(E(t,["attrs","fmla"]).substring(4))*eR)}let u=t/2,h=r/2,p=t/2,d=r/2,f=Math.min(t,r),m=25e3*eR,g=1e5*eR,A=1/6e4*Math.PI/180,y=0x14996ff/6e4*Math.PI/180,v=2*Math.PI,R=c<0?0:c>m?m:c,b=2*R,x=s<A?A:s>y?y:s,M=l<0?0:l>y?y:l,S=f*(a<0?0:a>b?b:a)/g,w=f*R/g,O=S/2,L=p+O-w,N=d+O-w,_=L-S,T=N-S,P=_+O,C=T+O,I=P*Math.sin(x),k=C*Math.cos(x),F=P*Math.cos(Math.atan2(I,k)),X=C*Math.sin(Math.atan2(I,k)),U=u+F,W=h+X,V=Math.min(_,T),Y=(1+Math.sqrt(1-(F*F-V*V)*(X*X-V*V)/(F*F*X*X)))/((F*F-V*V)/F/X),D=Math.atan2(Y,1)>0?Math.atan2(Y,1):Math.atan2(Y,1)+v,Q=D-x>0?D-x:D-x+v,$=Math.abs(Q-Math.PI>0?Q-v:Q),B=x+(o<0?0:o>$?$:o),Z=P*Math.sin(B),K=C*Math.cos(B),G=P*Math.cos(Math.atan2(Z,K)),H=C*Math.sin(Math.atan2(Z,K)),z=U+w*Math.cos(B),J=W+w*Math.sin(B),j=U-w*Math.cos(B),q=W-w*Math.sin(B),ee=j-u,et=q-h,er=z-u,en=J-h,ei=Math.min(L,N),ea=ee*ei/L,eo=et*ei/N,es=er*ei/L,el=en*ei/N,ec=es-ea,eu=el-eo,eh=Math.sqrt(ec*ec+eu*eu),ep=ea*el-es*eo,ed=Math.sqrt(Math.max(0,ei*ei*eh*eh-ep*ep)),ef=-1*eu>0?-1:1,em=(ep*eu+ef*ec*ed)/(eh*eh),eg=(ep*eu-ef*ec*ed)/(eh*eh),eA=(-ep*ec+Math.abs(eu)*ed)/(eh*eh),ey=(-ep*ec-Math.abs(eu)*ed)/(eh*eh),ev=Math.sqrt((es-eg)**2+(el-ey)**2)-Math.sqrt((es-em)**2+(el-eA)**2),eb=u+(ev>0?em:eg)*L/ei,ex=h+(ev>0?eA:ey)*N/ei,eM=ee*V/_,eS=et*V/T,ew=er*V/_,eO=en*V/T,eL=ew-eM,eN=eO-eS,e_=Math.sqrt(eL*eL+eN*eN),eT=eM*eO-ew*eS,eP=Math.sqrt(Math.max(0,V*V*e_*e_-eT*eT)),eC=(eT*eN+ef*eL*eP)/(e_*e_),eI=(eT*eN-ef*eL*eP)/(e_*e_),ek=(-eT*eL+Math.abs(eN)*eP)/(e_*e_),eF=(-eT*eL-Math.abs(eN)*eP)/(e_*e_),eX=Math.sqrt((eM-eI)**2+(eS-eF)**2)-Math.sqrt((eM-eC)**2+(eS-ek)**2),eU=eX>0?eC:eI,eW=eX>0?ek:eF,eV=u+eU*_/V,eE=h+eW*T/V,eY=Math.atan2(eW*T/V,eU*_/V),eD=eY>0?eY:eY+v,eQ=M-eD,e$=Math.sqrt((eb-eV)**2+(ex-eE)**2)/2-w,eB=Math.atan2(ex-h,eb-u),eZ=(eB>0?eB:eB+v)-M,eK=180*M/Math.PI,eG=eK+180*(eZ>0?eZ:eZ+v)/Math.PI,eH=180*eD/Math.PI,ez=eH+180*(eQ>0?eQ-v:eQ)/Math.PI;i=`${e3(t/2,r/2,L,N,eK,eG,!1)} L ${e$>0?eb:z},${e$>0?ex:J} L ${u+G},${h+H} L ${e$>0?eV:j},${e$>0?eE:q} L ${eV},${eE} ${e3(t/2,r/2,_,T,eH,ez,!1).replace("M","L")} z`}break;case"leftCircularArrow":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=12500*eR,o=-19.03865*Math.PI/180,s=19.03865*Math.PI/180,l=180*Math.PI/180,c=12500*eR;if(e)for(let t of e){let e=E(t,["attrs","name"]);"adj1"===e?a=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj2"===e?o=parseInt(E(t,["attrs","fmla"]).substring(4))/6e4*Math.PI/180:"adj3"===e?s=parseInt(E(t,["attrs","fmla"]).substring(4))/6e4*Math.PI/180:"adj4"===e?l=parseInt(E(t,["attrs","fmla"]).substring(4))/6e4*Math.PI/180:"adj5"===e&&(c=parseInt(E(t,["attrs","fmla"]).substring(4))*eR)}let u=t/2,h=r/2,p=t/2,d=r/2,f=Math.min(t,r),m=25e3*eR,g=1e5*eR,A=1/6e4*Math.PI/180,y=0x14996ff/6e4*Math.PI/180,v=2*Math.PI,R=c<0?0:c>m?m:c,b=2*R,x=s<A?A:s>y?y:s,M=l<0?0:l>y?y:l,S=f*(a<0?0:a>b?b:a)/g,w=f*R/g,O=S/2,L=p+O-w,N=d+O-w,_=L-S,T=N-S,P=_+O,C=T+O,I=P*Math.cos(x),k=C*Math.sin(x),F=u+I,X=h+k,U=Math.min(_,T),W=(1+Math.sqrt(1-(I*I-U*U)*(k*k-U*U)/(I*I*k*k)))/((I*I-U*U)/I/k),V=Math.atan2(W,1)>0?Math.atan2(W,1):Math.atan2(W,1)+v,Y=V-x>0?V-x:V-x+v,D=-Math.abs(Y-Math.PI>0?Y-v:Y),Q=x+(o<D?D:o>0?0:o),$=P*Math.cos(Q),B=C*Math.sin(Q),Z=L*Math.cos(M),K=N*Math.sin(M),G=_*Math.cos(M),H=T*Math.sin(M),z=F+w*Math.cos(Q),J=X+w*Math.sin(Q),j=F-w*Math.cos(Q),q=X-w*Math.sin(Q),ee=j-u,et=q-h,er=z-u,en=J-h,ei=Math.min(L,N),ea=ee*ei/L,eo=et*ei/N,es=er*ei/L,el=en*ei/N,ec=es-ea,eu=el-eo,eh=Math.sqrt(ec*ec+eu*eu),ep=ea*el-es*eo,ed=Math.sqrt(Math.max(0,ei*ei*eh*eh-ep*ep)),ef=-1*eu>0?-1:1,em=(ep*eu+ef*ec*ed)/(eh*eh),eg=(ep*eu-ef*ec*ed)/(eh*eh),eA=(-ep*ec+Math.abs(eu)*ed)/(eh*eh),ey=(-ep*ec-Math.abs(eu)*ed)/(eh*eh),ev=Math.sqrt((es-eg)**2+(el-ey)**2)-Math.sqrt((es-em)**2+(el-eA)**2),eb=u+(ev>0?em:eg)*L/ei,ex=h+(ev>0?eA:ey)*N/ei,eM=ee*U/_,eS=et*U/T,ew=er*U/_,eO=en*U/T,eL=ew-eM,eN=eO-eS,e_=Math.sqrt(eL*eL+eN*eN),eT=eM*eO-ew*eS,eP=Math.sqrt(Math.max(0,U*U*e_*e_-eT*eT)),eC=(eT*eN+ef*eL*eP)/(e_*e_),eI=(eT*eN-ef*eL*eP)/(e_*e_),ek=(-eT*eL+Math.abs(eN)*eP)/(e_*e_),eF=(-eT*eL-Math.abs(eN)*eP)/(e_*e_),eX=Math.sqrt((eM-eI)**2+(eS-eF)**2)-Math.sqrt((eM-eC)**2+(eS-ek)**2),eU=eX>0?eC:eI,eW=eX>0?ek:eF,eV=u+eU*_/U,eE=h+eW*T/U,eY=Math.atan2(eW*T/U,eU*_/U),eD=eY>0?eY:eY+v,eQ=M-eD,e$=eQ>0?eQ:eQ+v,eB=Math.sqrt((eb-eV)**2+(ex-eE)**2)/2-w,eZ=Math.atan2(ex-h,eb-u),eK=(eZ>0?eZ:eZ+v)-M,eG=180*(M+(eK>0?eK-v:eK))/Math.PI,eH=180*M/Math.PI,ez=180*(eD+e$)/Math.PI,eJ=ez+-(180*e$)/Math.PI;i=`M ${u+Z},${h+K} L ${u+G},${h+H} ${e3(t/2,r/2,_,T,ez,eJ,!1).replace("M","L")} L ${eB>0?eV:j},${eB>0?eE:q} L ${u+$},${h+B} L ${eB>0?eb:z},${eB>0?ex:J} L ${eb},${ex} ${e3(t/2,r/2,L,N,eG,eH,!1).replace("M","L")} z`}}return i}function e4(e,t){if(!e||!t)return null;let r=E(e,[t,"p:transition"]);return r||(r=E(e,[t,"mc:AlternateContent","mc:Choice","p:transition"]))?r:r=E(e,[t,"mc:AlternateContent","mc:Fallback","p:transition"])}let e6=new Set(["entr","exit","emph","path","verb","mediacall"]),e8={clickEffect:"onClick",withEffect:"withPrevious",afterEffect:"afterPrevious",clickPar:"onClick",withGroup:"withPrevious",afterGroup:"afterPrevious",interactiveSeq:"onClick"};function e9(e){return null==e?[]:Array.isArray(e)?e:[e]}function e7(e){if(null==e||""===e||"indefinite"===e)return null;let t=parseInt(e,10);return Number.isFinite(t)?t:null}async function te(e,t,r=!1){if(!t)return null;let n=`${r?"drawing:":"xml:"}${t}`;if(e.diagramFileCache[n])return e.diagramFileCache[n];let i=await X(e.zip,t);return i&&r&&(i=JSON.parse(JSON.stringify(i).replace(/dsp:/g,"p:"))),e.diagramFileCache[n]=i,i}async function tt(e,t){let r=E(e,["a:graphic","a:graphicData","dgm:relIds","attrs"])||{},n={data:null,layout:null,quickStyle:null,colors:null,drawing:null},i={},a={},o=E(t.slideResObj,[r["r:dm"],"target"]),s=E(t.slideResObj,[r["r:lo"],"target"]),l=E(t.slideResObj,[r["r:qs"],"target"]),c=E(t.slideResObj,[r["r:cs"],"target"]);o&&(n.data=await te(t,o)),s&&(n.layout=await te(t,s)),l&&(n.quickStyle=await te(t,l)),c&&(n.colors=await te(t,c));let u=n.data?function(e){let t=E(e,["dgm:dataModel","dgm:extLst","a:ext"]);if(!t)return"";for(let e of(Array.isArray(t)||(t=[t]),t)){let t=E(e,["dsp:dataModelExt","attrs","relId"]);if(t)return t}return""}(n.data):"",h=E(t.slideResObj,[u,"target"]);if(h){n.drawing=i=await te(t,h,!0)||{};let e=h.split("/").pop(),r=h.replace(e,"_rels/"+e)+".rels",o=await X(t.zip,r);if(o){let t=o.Relationships.Relationship;if(t&&t.constructor!==Array&&(t=[t]),t)for(let r of t){let t=r.attrs.Target;t=0===(t=t.replace(/\\/g,"/")).indexOf("/ppt/")?t.substr(1):-1!==t.indexOf("../")?t.replace("../","ppt/"):h.replace(e,"")+t,a[r.attrs.Id]={type:r.attrs.Type.replace("http://schemas.openxmlformats.org/officeDocument/2006/relationships/",""),target:t}}}}return{...t,digramFileContent:i,diagramResObj:a,diagramContent:n}}let tr=["http://schemas.openxmlformats.org/officeDocument/2006/relationships/","http://schemas.microsoft.com/office/2007/relationships/"];function tn(e){if(!e)return"";for(let t of tr)if(0===e.indexOf(t))return e.replace(t,"");return e}async function ti(e,t={}){let r,i=[],a={},o={},s={},l={},c={...t,imageMode:t.imageMode||"base64",videoMode:t.videoMode||"none",audioMode:t.audioMode||"none"};if(e instanceof ArrayBuffer?r=new Uint8Array(e):"u">typeof File&&e instanceof File?r=new Uint8Array(await e.arrayBuffer()):"u">typeof I&&I.isBuffer(e)&&(r=new Uint8Array(e)),r&&208===r[0]&&207===r[1]&&17===r[2]&&224===r[3])throw Error("ENCRYPTED_FILE");let u=await n.loadAsync(e),h=await th(u),{width:p,height:d,defaultTextStyle:f}=await td(u),{themeContent:m,themeColors:g}=await tf(u),A=await tp(u);for(let e of h.slides){let t=await tg(u,e,m,f,a,o,s,c,l);t&&i.push(t)}return{slides:i,usedFonts:A,themeColors:g,size:{width:p,height:d}}}function ta(e){return e?e.constructor===Array?e:[e]:[]}function to(e,t){return(/(\d+)\.xml/.exec(e)?.[1]||0)-(/(\d+)\.xml/.exec(t)?.[1]||0)}function ts(e){return String(e||"").replace(/\\/g,"/").replace(/^\//,"")}function tl(e,t){let r=String(t||"").replace(/\\/g,"/");if(!r)return"";if(r.startsWith("/"))return ts(r);let n=ts(e),i=n.lastIndexOf("/"),a=-1===i?"":n.slice(0,i+1),o=[];for(let e of`${a}${r}`.split("/"))e&&"."!==e&&(".."===e?o.pop():o.push(e));return o.join("/")}async function tc(e){for(let t of ta(E(await X(e,"_rels/.rels"),["Relationships","Relationship"]))){let e=E(t,["attrs","Type"]),r=E(t,["attrs","Target"]),n=E(t,["attrs","TargetMode"]);if((!n||"external"!==String(n).toLowerCase())&&"officeDocument"===tn(e)&&r){let e=tl("",r);if(e)return e}}return"ppt/presentation.xml"}async function tu(e){let t,r,n,i,a=await tc(e),o=ta(E(await X(e,(n=-1===(r=(t=ts(a)).lastIndexOf("/"))?"":t.slice(0,r+1),i=-1===r?t:t.slice(r+1),`${n}_rels/${i}.rels`)),["Relationships","Relationship"])),s={},l=[];for(let e of o){let t=E(e,["attrs","Id"]),r=E(e,["attrs","Type"]),n=E(e,["attrs","Target"]),i=E(e,["attrs","TargetMode"]);if(!t||!n||i&&"external"===String(i).toLowerCase())continue;let o=tl(a,n);o&&(s[t]=o,"slide"===tn(r)&&l.push(o))}let c=ta(E(await X(e,a),["p:presentation","p:sldIdLst","p:sldId"])),u=[];for(let e of c){var h;let t=(h=e?.attrs)&&(h["r:id"]||h.rId)||"";t&&s[t]&&u.push(s[t])}return u.length?u:l}async function th(e){let t=ta(E(await X(e,"[Content_Types].xml"),["Types","Override"])),r=[],n=[];for(let e of t){let t=e?.attrs?.ContentType,i=e?.attrs?.PartName;if(!t||!i)continue;let a=String(i).replace(/^\//,"");switch(t){case"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":r.push(a);break;case"application/vnd.openxmlformats-officedocument.presentationml.slideLayout+xml":n.push(a)}}n=n.sort(to);let i=await tu(e);return i.length||(i=r.sort(to)),{slides:i,slideLayouts:n}}async function tp(e){let t=E(await X(e,"ppt/presentation.xml"),["p:presentation","p:embeddedFontLst","p:embeddedFont"]),r=[];if(!t)return r;let n=t.constructor===Array?t:[t],i=await X(e,"ppt/_rels/presentation.xml.rels"),a={};if(i){let e=E(i,["Relationships","Relationship"]);if(e)for(let t of(e.constructor!==Array&&(e=[e]),e)){let e=E(t,["attrs","Id"]),r=E(t,["attrs","Target"]);e&&r&&(a[e]=r)}}let o=["p:regular","p:bold","p:italic","p:boldItalic"];for(let t of n){let n=E(t,["p:font","attrs","typeface"]);if(!n)continue;let i="";for(let r of o){let n=t[r];if(!n)continue;let o=E(n,["attrs","r:id"]);if(!o)continue;let s=a[o];if(!s)continue;let l=s;if(l=l.startsWith("../")?l.substring(3):"ppt/"+l,i=await eq(e,l))break}r.push({name:n,fontFamily:function(e){if(!e)return"";if(e0[e])return e0[e];let t=e.toLowerCase();for(let[e,r]of Object.entries(e0))if(e.toLowerCase()===t)return r;for(let[r,n]of Object.entries(e0))if(t.startsWith(r.toLowerCase()))return`${e}, ${n}`;return function(e){let t=e.toLowerCase();return t.includes("mono")||t.includes("code")||t.includes("console")||t.includes("courier")||t.includes("terminal")||t.includes("fixed")?`${e}, monospace`:t.includes("serif")||t.includes("roman")||t.includes("mincho")||t.includes("song")||t.includes("sung")||t.includes("ming")||t.includes("times")||t.includes("georgia")?`${e}, serif`:t.includes("script")||t.includes("cursive")||t.includes("hand")||t.includes("writing")||t.includes("kai")||t.includes("shu")?`${e}, cursive`:`${e}, sans-serif`}(e)}(n),blob:i})}return r}async function td(e){let t=await X(e,"ppt/presentation.xml"),r=t["p:presentation"]["p:sldSz"].attrs,n=t["p:presentation"]["p:defaultTextStyle"];return{width:parseInt(r.cx)*eR,height:parseInt(r.cy)*eR,defaultTextStyle:n}}async function tf(e){let t,r=null,n=(await X(e,"ppt/_rels/presentation.xml.rels")).Relationships.Relationship;if(n.constructor===Array){for(let e of n)if("http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme"===e.attrs.Type){t=e.attrs.Target;break}}else"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme"===n.attrs.Type&&(t=n.attrs.Target);if(!t){let r=await X(e,"ppt/slideMasters/_rels/slideMaster1.xml.rels");if(r){let e=r.Relationships.Relationship;if(e.constructor===Array){for(let r of e)if("http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme"===r.attrs.Type){t=r.attrs.Target;break}}else"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme"===e.attrs.Type&&(t=e.attrs.Target)}}if(t){(t=t.replace(/\\/g,"/")).startsWith("../")&&(t=t.substring(3));let n=0===t.indexOf("/ppt/")?t.substr(1):"ppt/"+t;r=await X(e,n)}let i=[];if(r){let e=E(r,["a:theme","a:themeElements","a:clrScheme"]);if(e)for(let t=1;t<=6&&void 0!==e[`a:accent${t}`];t++){let r=E(e,[`a:accent${t}`,"a:srgbClr","attrs","val"]);r&&i.push("#"+r)}}return{themeContent:r,themeColors:i}}async function tm(e,t,r){if(!t)return null;if(Object.prototype.hasOwnProperty.call(r,t))return r[t];let n=await X(e,t);return r[t]=n,n}async function tg(e,t,r,n,i,a,o,s,l){let c,u=t.replace("slides/slide","slides/_rels/slide")+".rels",h=await X(e,u);if(!h)return null;let p=h.Relationships.Relationship;p.constructor!==Array&&(p=[p]);let d="",f="",m="",g="",A={},y={},v={},R={};for(let e of p){let t=tn(e.attrs.Type),r=e.attrs.Target;"External"!==e.attrs.TargetMode&&(r=0===(r=r.replace(/\\/g,"/")).indexOf("/ppt/")?r.substr(1):-1!==r.indexOf("../")?r.replace("../","ppt/"):"ppt/slides/"+r),"slideLayout"===t?f=r:"notesSlide"===t&&(d=r),A[e.attrs.Id]={type:t,target:r}}let b=function(e){let t="",r=E(e,["p:notes","p:cSld","p:spTree","p:sp"]);if(!r)return"";for(let e of(r.constructor!==Array&&(r=[r]),r)){if("body"!==E(e,["p:nvSpPr","p:nvPr","p:ph","attrs","type"]))continue;let r=E(e,["p:txBody"]);if(!r)continue;let n=r["a:p"];if(!n)continue;n.constructor!==Array&&(n=[n]);let i=[];for(let e of n){let r=e["a:pPr"],n=E(r,["attrs","algn"]),a="left";if(n)switch(n){case"r":a="right";break;case"ctr":a="center";break;case"just":case"dist":a="justify"}let o="";r&&(r["a:buChar"]?o="ul":r["a:buAutoNum"]&&(o="ol"));let s=E(r,["attrs","lvl"]),l=void 0!==s?parseInt(s):0;if(o){for(;i.length>l+1;)t+=`</${i.pop()}>`;void 0===i[l]?(t+=`<${o}>`,i[l]=o):i[l]!==o&&(t+=`</${i[l]}>`,t+=`<${o}>`,i[l]=o),t+=`<li><p style="text-align:${a};">`}else{for(;i.length>0;)t+=`</${i.pop()}>`;t+=`<p style="text-align:${a};">`}let c=e["a:r"];if(c)for(let e of(c.constructor!==Array&&(c=[c]),c)){let r=eG(E(e,["a:t"]));r&&"string"==typeof r&&(t+=r)}o?t+="</p></li>":t+="</p>"}for(;i.length>0;)t+=`</${i.pop()}>`}return t}(await X(e,d)),x=await tm(e,f,l),M=tv(x),S=f.replace("slideLayouts/slideLayout","slideLayouts/_rels/slideLayout")+".rels",w=await tm(e,S,l);if(w&&(p=w.Relationships.Relationship))for(let e of(p.constructor!==Array&&(p=[p]),p)){let t=tn(e.attrs.Type),r=e.attrs.Target;r=0===(r=r.replace(/\\/g,"/")).indexOf("/ppt/")?r.substr(1):-1!==r.indexOf("../")?r.replace("../","ppt/"):"ppt/slideLayouts/"+r,"slideMaster"===t?m=r:y[e.attrs.Id]={type:t,target:r}}let O=await tm(e,m,l),L=E(O,["p:sldMaster","p:txStyles"]),N=tv(O),_=m.replace("slideMasters/slideMaster","slideMasters/_rels/slideMaster")+".rels",T=await tm(e,_,l);if(T&&(p=T.Relationships.Relationship))for(let e of(p.constructor!==Array&&(p=[p]),p)){let t=tn(e.attrs.Type),r=e.attrs.Target;r=0===(r=r.replace(/\\/g,"/")).indexOf("/ppt/")?r.substr(1):-1!==r.indexOf("../")?r.replace("../","ppt/"):"ppt/slideMasters/"+r,"theme"===t?g=r:v[e.attrs.Id]={type:t,target:r}}let P=r;if(g){P=await tm(e,g,l)||P;let t=g.split("/").pop(),r=g.replace(t,"_rels/"+t)+".rels",n=await X(e,r);if(n&&(p=n.Relationships.Relationship))for(let e of(p.constructor!==Array&&(p=[p]),p)){let t=e.attrs.Target;t=0===(t=t.replace(/\\/g,"/")).indexOf("/ppt/")?t.substr(1):t.replace("../","ppt/"),R[e.attrs.Id]={type:tn(e.attrs.Type),target:t}}}let C=await tm(e,"ppt/tableStyles.xml",l),I=await X(e,t);if(!I)return null;let k=I["p:sld"]["p:cSld"]["p:spTree"],F={zip:e,loadedImages:i,loadedVideos:a,loadedAudios:o,options:s,slideLayoutContent:x,slideLayoutTables:M,slideMasterContent:O,slideMasterTables:N,slideContent:I,tableStyles:C,slideResObj:A,slideMasterTextStyles:L,layoutResObj:y,masterResObj:v,themeContent:P,themeResObj:R,diagramFileCache:{},defaultTextStyle:n},U=await ty(F),W=await eu(F),V=[];for(let e in k)for(let t of(k[e].constructor!==Array&&(k[e]=[k[e]]),k[e])){let r=await tR(e,t,F,"slide");r&&V.push(r)}let Y=e4(I,"p:sld");Y||(Y=e4(x,"p:sldLayout")),Y||(Y=e4(O,"p:sldMaster"));let D=function(e){if(!e)return null;let t={type:"none",duration:1e3,direction:null},r=e.attrs||{},n=!1,i=/^p\d{2}:dur$/;for(let e in r)if(i.test(e)&&!isNaN(parseInt(r[e],10))){t.duration=parseInt(r[e],10),n=!0;break}if(!n&&r.spd)switch(r.spd){case"slow":default:t.duration=1e3;break;case"med":t.duration=800;break;case"fast":t.duration=500}"0"===r.advClick&&r.advTm&&(t.autoNextAfter=parseInt(r.advTm,10));let a=/^(p|p\d{2}):/;for(let r in e)if("attrs"!==r&&a.test(r)){let i=e[r];if(t.type=r.substring(r.indexOf(":")+1),i&&i.attrs){let e=i.attrs;!e.dur||isNaN(parseInt(e.dur,10))||n||(t.duration=parseInt(e.dur,10)),e.dir&&(t.direction=e.dir)}break}return t}(Y),{animations:Q,builds:$}=(c=I?E(I,["p:sld","p:timing"])||E(I,["p:sld","mc:AlternateContent","mc:Choice","p:timing"])||E(I,["p:sld","mc:AlternateContent","mc:Fallback","p:timing"]):null)?{animations:function e(t,r="onClick",n=0,i=[]){if(!t||"object"!=typeof t)return i;let a=t.attrs||{},o=e8[a.nodeType]||r,s=function(e,t=0){let r=e7(e?.attrs?.delay);if(null!=r&&r>=0)return r;let n=e?.["p:stCondLst"];for(let e of e9(n?.["p:cond"]||n)){let t=e7(e?.attrs?.delay);if(null!=t&&t>=0)return t}return t}(t,n);if(a.presetClass&&e6.has(a.presetClass)){let e,r,n,l,c=[...new Set(function e(t,r=[]){if(!t||"object"!=typeof t)return r;let n=t.attrs?.spid;for(let i of(null!=n&&""!==n&&r.push(String(n)),Object.keys(t)))if("attrs"!==i&&"value"!==i)for(let n of e9(t[i]))e(n,r);return r}(t))],u=(e=null,(r=t=>{if(!t||"object"!=typeof t)return;let n=e7(t.attrs?.dur);for(let i of(null!=n&&n>=0&&(e=n),Object.keys(t)))if("attrs"!==i&&"value"!==i)for(let e of e9(t[i]))r(e)})(t),e),h=(n="",(l=e=>{if(e&&"object"==typeof e){for(let t of(e.attrs?.filter&&(n=e.attrs.filter),Object.keys(e)))if("attrs"!==t&&"value"!==t)for(let r of e9(e[t]))l(r)}})(t),n),p=e8[a.nodeType]||o;for(let e of c){let t={spid:e,trigger:p,class:a.presetClass,presetId:parseInt(a.presetID||"0",10)||0,presetSubtype:parseInt(a.presetSubtype||"0",10)||0,duration:null!=u?u:1e3,delay:s};h&&(t.filter=h),i.push(t)}return i}for(let r of Object.keys(t))if("attrs"!==r&&"value"!==r)for(let n of e9(t[r]))e(n,o,s,i);return i}(c),builds:function(e){let t=e?.["p:bldLst"];if(!t)return[];let r=[];for(let[e,n]of[["p:bldP","paragraph"],["p:bldDgm","diagram"],["p:bldGraphic","graphic"],["p:bldOleChart","oleChart"]])for(let i of e9(t[e])){let e=i?.attrs?.spid;if(null==e||""===e)continue;let t={spid:String(e),type:n};(i.attrs?.animBg==="1"||i.attrs?.animBg==="true")&&(t.animBg=!0),r.push(t)}return r}(c)}:{animations:[],builds:[]},B=E(I,["p:sld","attrs","showMasterSp"]);return{fill:W,elements:V,layoutElements:U,note:b,transition:D,hideBackground:"0"===B||"false"===B,animations:Q,builds:$}}function tA(e,t){let r=E(e,["a:hlinkClick","attrs"]);if(!r)return null;let n=r["r:id"];if(!n)return null;let i=t.slideResObj[n];if(!i||"hyperlink"!==i.type)return null;let a=i.target;return a&&/^https?:\/\//.test(a)?a:null}async function ty(e){let t=[],r=e.slideLayoutContent,n=e.slideMasterContent,i=E(r,["p:sldLayout","p:cSld","p:spTree"]),a=E(n,["p:sldMaster","p:cSld","p:spTree"]),o=E(r,["p:sldLayout","attrs","showMasterSp"]);if(i){for(let r in i)if(i[r].constructor===Array){for(let n=0;n<i[r].length;n++)if(!E(i[r][n],["p:nvSpPr","p:nvPr","p:ph"])){let a=await tR(r,i[r][n],e,"slideLayoutBg");a&&t.push(a)}}else if(!E(i[r],["p:nvSpPr","p:nvPr","p:ph"])){let n=await tR(r,i[r],e,"slideLayoutBg");n&&t.push(n)}}if(a&&"0"!==o){for(let r in a)if(a[r].constructor===Array){for(let n=0;n<a[r].length;n++)if(!E(a[r][n],["p:nvSpPr","p:nvPr","p:ph"])){let i=await tR(r,a[r][n],e,"slideMasterBg");i&&t.push(i)}}else if(!E(a[r],["p:nvSpPr","p:nvPr","p:ph"])){let n=await tR(r,a[r],e,"slideMasterBg");n&&t.push(n)}}return t}function tv(e){if(!e)return{idTable:{},idxTable:{},typeTable:{}};let t=Object.keys(e),r=e[t[0]]?.["p:cSld"]?.["p:spTree"];if(!r)return{idTable:{},idxTable:{},typeTable:{}};let n={},i={},a={};for(let e in r){if("p:nvGrpSpPr"===e||"p:grpSpPr"===e)continue;let t=r[e];if(t.constructor===Array)for(let e of t){let t=e["p:nvSpPr"],r=E(t,["p:cNvPr","attrs","id"]),o=E(t,["p:nvPr","p:ph","attrs","idx"]),s=E(t,["p:nvPr","p:ph","attrs","type"]);r&&(n[r]=e),o&&(i[o]=e),s&&!a[s]&&(a[s]=e)}else{let e=t["p:nvSpPr"],r=E(e,["p:cNvPr","attrs","id"]),o=E(e,["p:nvPr","p:ph","attrs","idx"]),s=E(e,["p:nvPr","p:ph","attrs","type"]);r&&(n[r]=t),o&&(i[o]=t),s&&!a[s]&&(a[s]=t)}}return{idTable:n,idxTable:i,typeTable:a}}async function tR(e,t,r,n,i=[]){let a;switch(e){case"p:sp":a=await tM(t,r,n,i);break;case"p:cxnSp":a=await tS(t,r,n);break;case"p:pic":a=await tO(t,r,n);break;case"p:graphicFrame":a=await tL(t,r,n);break;case"p:grpSp":a=await tx(t,r,n,i);break;case"mc:AlternateContent":E(t,["mc:Fallback","p:grpSpPr","a:xfrm"])?a=await tx(E(t,["mc:Fallback"]),r,n,i):E(t,["mc:Choice"])&&(a=await tb(t,r,n))}if(a&&"object"==typeof a&&!a.id){let e=E(t,["p:nvSpPr","p:cNvPr","attrs","id"])||E(t,["p:nvPicPr","p:cNvPr","attrs","id"])||E(t,["p:nvCxnSpPr","p:cNvPr","attrs","id"])||E(t,["p:nvGrpSpPr","p:cNvPr","attrs","id"])||E(t,["p:nvGraphicFramePr","p:cNvPr","attrs","id"])||E(t,["mc:Choice","p:sp","p:nvSpPr","p:cNvPr","attrs","id"])||E(t,["mc:Fallback","p:sp","p:nvSpPr","p:cNvPr","attrs","id"])||E(t,["mc:Fallback","p:nvGrpSpPr","p:cNvPr","attrs","id"]);a.id=e||""}return a}async function tb(e,t,r){let n=E(e,["mc:Choice"]),i=E(e,["mc:Fallback"]),a=e.attrs.order,o=E(n,["p:sp","p:spPr","a:xfrm"]),{top:s,left:l}=eT(o,void 0,void 0),{width:c,height:u}=eP(o,void 0,void 0),h=function e(t){let r=[];return"object"!=typeof t||(t["m:oMath"]&&(r=r.concat(t["m:oMath"])),Object.values(t).forEach(t=>{(Array.isArray(t)||"object"==typeof t)&&(r=r.concat(e(t)))})),r}(n)[0];if(!h)return null;let p=eC(h),d=E(i,["p:sp","p:spPr","a:blipFill"]),f=await ei(r,d,t),m="";if(E(n,["p:sp","p:txBody","a:p","a:r"])){let e=E(n,["p:sp"]);m=eH(e["p:txBody"],e,void 0,void 0,void 0,t)}return{type:"math",top:s,left:l,width:c,height:u,latex:p,picRef:f.ref,picBase64:f.base64,picBlob:f.blob,text:m,order:a}}async function tx(e,t,r,n=[]){let i=e.attrs.order,a=E(e,["p:grpSpPr","a:xfrm"]);if(!a)return null;let o=parseInt(a["a:off"].attrs.x)*eR,s=parseInt(a["a:off"].attrs.y)*eR,l=parseInt(a["a:chOff"].attrs.x)*eR,c=parseInt(a["a:chOff"].attrs.y)*eR,u=parseInt(a["a:ext"].attrs.cx)*eR,h=parseInt(a["a:ext"].attrs.cy)*eR,p=parseInt(a["a:chExt"].attrs.cx)*eR,d=parseInt(a["a:chExt"].attrs.cy)*eR,f=U(E(a,["attrs","flipV"])),m=U(E(a,["attrs","flipH"])),g=E(a,["attrs","rot"])||0;g&&(g=Y(g));let A=0===p?0:u/p,y=0===d?0:h/d,v=[...n,e],R=[];for(let n in e)if(e[n].constructor===Array)for(let i of e[n]){let e=await tR(n,i,t,r,v);e&&R.push(e)}else{let i=await tR(n,e[n],t,r,v);i&&R.push(i)}let b=(e,t=0,r=0)=>{let n=((e.rotate||0)%360+360)%360,i=1e-6>Math.abs(A-y),a=90===n||270===n,o=e.left+e.width/2,s=e.top+e.height/2,l=e.width*(a&&!i?y:A),c=e.height*(a&&!i?A:y);return{...e,left:$((o-t)*A-l/2),top:$((s-r)*y-c/2),width:$(l),height:$(c)}},x=R.map(e=>({...b(e,l,c),..."group"===e.type&&e.elements?{elements:function e(t,r=0){return r>10?t:t.map(t=>{let n=b(t);return"group"===t.type&&t.elements&&(n.elements=e(t.elements,r+1)),n})}(e.elements)}:{}}));return{type:"group",top:$(s),left:$(o),width:$(u),height:$(h),rotate:g,order:i,isFlipV:f,isFlipH:m,elements:x}}async function tM(e,t,r,n=[]){let i,a,o=E(e,["p:nvSpPr","p:cNvPr"]),s=E(o,["attrs","name"]),l=E(e,["p:nvSpPr","p:nvPr","p:ph","attrs","idx"]),c=E(e,["p:nvSpPr","p:nvPr","p:ph","attrs","type"]),u=E(e,["attrs","order"]);c?l?(i=t.slideLayoutTables.idxTable[l],a=t.slideMasterTables.idxTable[l],i||(i=t.slideLayoutTables.typeTable[c]),a||(a=t.slideMasterTables.typeTable[c])):(i=t.slideLayoutTables.typeTable[c],a=t.slideMasterTables.typeTable[c]):l&&(i=t.slideLayoutTables.idxTable[l],a=t.slideMasterTables.idxTable[l]),!c&&U(E(e,["p:nvSpPr","p:cNvSpPr","attrs","txBox"]))&&(c="text"),c||(c=E(i,["p:nvSpPr","p:nvPr","p:ph","attrs","type"])),c||(c=E(a,["p:nvSpPr","p:nvPr","p:ph","attrs","type"])),a||"ctrTitle"!==c||(a=t.slideMasterTables.typeTable.title),c||(c="diagramBg"===r?"diagram":"obj");let h=tA(o,t);return await tw(e,i,a,s,c,u,t,r,h,n)}async function tS(e,t,r){let n=E(e,["p:nvCxnSpPr","p:cNvPr"]),i=E(n,["attrs","name"]),a=void 0===e["p:nvCxnSpPr"]["p:nvPr"]["p:ph"]?void 0:e["p:nvCxnSpPr"]["p:nvPr"]["p:ph"].attrs.type,o=e.attrs.order,s=tA(n,t);return await tw(e,void 0,void 0,i,a,o,t,r,s)}async function tw(e,t,r,n,i,a,o,s,l,c=[]){let u,h,p,d=["p:spPr","a:xfrm"],f=E(e,d),m=E(t,d),g=E(r,d),A=E(e,["p:spPr","a:prstGeom","attrs","prst"]),y=E(e,["p:spPr","a:custGeom"]),v={};if(A){let t=E(e,["p:spPr","a:prstGeom","a:avLst","a:gd"]);if(t)for(let e of Array.isArray(t)?t:[t]){let t=E(e,["attrs","name"]),r=E(e,["attrs","fmla"]);t&&r&&r.startsWith("val ")&&(v[t]=parseInt(r.substring(4))/5e4)}}let{top:R,left:b}=eT(f,m,g),{width:x,height:M}=eP(f,m,g),S={x:0,y:0,width:x,height:M},w=U(E(f,["attrs","flipV"])),O=U(E(f,["attrs","flipH"])),L=Y(E(f,["attrs","rot"])),N=E(e,["p:txXfrm"]);if(N){let e=E(N,["attrs","rot"]);e&&(u=Y(e)+90)}else u=L;let _="";e["p:txBody"]&&(_=eH(e["p:txBody"],e,t,r,i,o));let{borderColor:T,borderWidth:P,borderType:C,strokeDasharray:I,headEnd:k,tailEnd:F}=eg(e,i,o),X=await ep(e,o,s,{groupHierarchy:c,slideLayoutSpNode:t,slideMasterSpNode:r}),W=E(e,["p:spPr","a:effectLst","a:outerShdw"]);W&&(h=eX(W,o));let V=((p=E(e,["p:txBody","a:bodyPr","attrs","anchor"]))||!(p=E(t,["p:txBody","a:bodyPr","attrs","anchor"]))&&((p=E(r,["p:txBody","a:bodyPr","attrs","anchor"]))||(p="t")),"ctr"===p?"mid":"b"===p?"down":"up"),D="horz"!==function(e,t,r){for(let n of[e,t,r]){let e=E(n,["p:txBody","a:bodyPr","attrs","vert"]);if(e)return e}return"horz"}(e,t,r),Q="none"!==E(e,["p:txBody","a:bodyPr","attrs","wrap"]),$=function(e,t,r){function n(e){if(!e)return null;if(e["a:noAutofit"])return{result:null};if(e["a:spAutoFit"])return{result:{type:"shape",wrapText:"none"!==E(e,["attrs","wrap"])}};if(e["a:normAutofit"]){let t=E(e["a:normAutofit"],["attrs","fontScale"]);return t?{result:{type:"text",fontScale:parseInt(t)/1e3}}:{result:{type:"text"}}}return null}let i=n(E(e,["p:txBody","a:bodyPr"]));if(i)return i.result;let a=n(E(t,["p:txBody","a:bodyPr"]));if(a)return a.result;let o=n(E(r,["p:txBody","a:bodyPr"]));return o?o.result:null}(e,t,r),B=function(e,t,r){let n=E(e,["p:txBody","a:bodyPr"]),i=E(t,["p:txBody","a:bodyPr"]),a=E(r,["p:txBody","a:bodyPr"]);if(!n&&!i&&!a)return null;let o=eN(e,t,r,"lIns");(null==o||""===o)&&(o=91440);let s=eN(e,t,r,"tIns");(null==s||""===s)&&(s=45720);let l=eN(e,t,r,"rIns");(null==l||""===l)&&(l=91440);let c=eN(e,t,r,"bIns");(null==c||""===c)&&(c=45720);let u=e_(o);null===u&&(u=0);let h=e_(s);null===h&&(h=0);let p=e_(l);null===p&&(p=0);let d=e_(c);return null===d&&(d=0),{l:u,t:h,r:p,b:d}}(e,t,r),Z={left:b,top:R,width:x,height:M,borderColor:T,borderWidth:P,borderType:C,borderStrokeDasharray:I,fill:X,content:_,isFlipV:w,isFlipH:O,rotate:L,vAlign:V,wrap:Q,name:n,order:a};h&&(Z.shadow=h),$&&(Z.autoFit=$),l&&(Z.link=l),B&&(Z.textInset=B),k&&(Z.headEnd=k),F&&(Z.tailEnd=F);let K=Z.content&&function(e){if("u"<typeof DOMParser)return""!==e.replace(/<[^>]+>/g,"").replace(/\s+/g," ").trim();let t=new DOMParser().parseFromString(e,"text/html");return""!==(t.body.textContent||t.body.innerText).trim()}(Z.content);if(y&&"diagram"!==i){let e=eJ(y,x,M);K||(Z.content="");let t={...Z,type:"shape",isVertical:D,shapType:"custom",path:e,pathViewBox:S};return function(e){let t=E(e,["a:pathLst","a:path"]);if(!t)return!1;let r=Array.isArray(t)?t:[t];return 1===r.length&&"none"===E(r[0],["attrs","fill"])}(y)&&(t.strokeOnly=!0),t}let G="";A&&(G=e5(A,x,M,e));let H=["arc","leftBrace","rightBrace","bracePair","leftBracket","rightBracket","bracketPair"].includes(A);if(A&&("obj"===i||!i||"rect"!==A)){K||(Z.content="");let e={...Z,type:"shape",isVertical:D,shapType:A,path:G,pathViewBox:S,keypoints:v};return H&&(e.strokeOnly=!0),e}if(A&&!K&&(X||P)){let e={...Z,type:"shape",isVertical:D,content:"",shapType:A,path:G,pathViewBox:S,keypoints:v};return H&&(e.strokeOnly=!0),e}return{...Z,type:"text",isVertical:D,rotate:u}}async function tO(e,t,r){let n,i,a,o,s,l;n="slideMasterBg"===r?t.masterResObj:"slideLayoutBg"===r?t.layoutResObj:t.slideResObj;let c=tA(E(e,["p:nvPicPr","p:cNvPr"]),t),u=e.attrs.order,h=e["p:blipFill"]["a:blip"].attrs["r:embed"];if(!h||!n[h])return null;let p=n[h].target,d=e["p:spPr"]["a:xfrm"];if(!d){let r=E(e,["p:nvPicPr","p:nvPr","p:ph","attrs","idx"]);r&&(d=E(t.slideLayoutTables,["idxTable",r,"p:spPr","a:xfrm"]))}let{top:f,left:m}=eT(d,void 0,void 0),{width:g,height:A}=eP(d,void 0,void 0),y=await et(p,t),v=U(E(d,["attrs","flipV"])),R=U(E(d,["attrs","flipH"])),b=0,x=E(e,["p:spPr","a:xfrm","attrs","rot"]);x&&(b=Y(x));let M=E(e,["p:nvPicPr","p:nvPr","a:videoFile"]),S={ref:"",blob:""},w=!1;if(M){var O;(O=i=n[M.attrs["r:link"]].target,/^(https?|ftp):\/\/([a-zA-Z0-9.-]+(:[a-zA-Z0-9.&%$-]+)*@)*((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]?)(\.(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|([a-zA-Z0-9-]+\.)+[a-zA-Z]{2,})(:[0-9]+)*(\/($|[a-zA-Z0-9.,?'\\+&%$#=~_-]+))*$/.test(O))?(i=D(i),w=!0):S="mp4"===(a=W(i).toLowerCase())||"webm"===a||"ogg"===a?await er(i,t):{ref:i,blob:""},w&&(S={ref:i,blob:""})}let L=E(e,["p:nvPicPr","p:nvPr","a:audioFile"]),N={ref:"",blob:""};if(L&&(N="mp3"===(s=W(o=n[L.attrs["r:link"]].target).toLowerCase())||"wav"===s||"ogg"===s?await en(o,t):{ref:o,blob:""}),M&&!w||M&&w)return{type:"video",top:f,left:m,width:g,height:A,rotate:b,ref:S.ref,blob:S.blob,order:u};if(L)return{type:"audio",top:f,left:m,width:g,height:A,rotate:b,ref:N.ref,blob:N.blob,order:u};let _=E(e,["p:blipFill","a:srcRect","attrs"]);_&&(_.t||_.b||_.l||_.r)&&(l={},_.t&&(l.t=_.t/1e3),_.b&&(l.b=_.b/1e3),_.l&&(l.l=_.l/1e3),_.r&&(l.r=_.r/1e3));let T=E(e,["p:spPr","a:prstGeom","attrs","prst"]),P=E(e,["p:spPr","a:custGeom"]),{borderColor:C,borderWidth:I,borderType:k,strokeDasharray:F}=eg(e,void 0,t),X=function(e){if(!e)return null;let t=e["a:blip"];if(!t)return null;let r={},n=t["a:extLst"];if(n&&n["a:ext"])for(let e of Array.isArray(n["a:ext"])?n["a:ext"]:[n["a:ext"]]){if(!e["a14:imgProps"]||!e["a14:imgProps"]["a14:imgLayer"])continue;let t=e["a14:imgProps"]["a14:imgLayer"]["a14:imgEffect"];if(t)for(let e of Array.isArray(t)?t:[t]){if(e["a14:saturation"]){let t=E(e,["a14:saturation","attrs","sat"]);t&&(r.saturation=parseInt(t)/1e5)}if(e["a14:brightnessContrast"]){let t=E(e,["a14:brightnessContrast","attrs","bright"]),n=E(e,["a14:brightnessContrast","attrs","contrast"]);t&&(r.brightness=parseInt(t)/1e5),n&&(r.contrast=parseInt(n)/1e5)}if(e["a14:sharpenSoften"]){let t=E(e,["a14:sharpenSoften","attrs","amount"]);if(t){let e=parseInt(t)/1e5;e>0?r.sharpen=e:r.soften=Math.abs(e)}}if(e["a14:colorTemperature"]){let t=E(e,["a14:colorTemperature","attrs","colorTemp"]);t&&(r.colorTemperature=parseInt(t))}}}return Object.keys(r).length>0?r:null}(e["p:blipFill"]),V=ea(e["p:blipFill"]);if(T||P){let t,r;if(P){let e=function(e){var t,r,n;let i,a=e["a:pathLst"];if(!a||!a["a:path"])return"custom";let o=a["a:path"],s=parseInt(o.attrs?.w)||0,l=parseInt(o.attrs?.h)||0,c=function(e){let t=[];if(e["a:moveTo"]){let r=e["a:moveTo"]["a:pt"];r&&t.push({type:"moveTo",points:[{x:parseInt(r.attrs?.x)||0,y:parseInt(r.attrs?.y)||0}]})}return ej(e["a:lnTo"]).forEach(e=>{let r=e["a:pt"];r&&t.push({type:"lineTo",points:[{x:parseInt(r.attrs?.x)||0,y:parseInt(r.attrs?.y)||0}]})}),ej(e["a:cubicBezTo"]).forEach(e=>{let r=ej(e["a:pt"]).map(e=>({x:parseInt(e.attrs?.x)||0,y:parseInt(e.attrs?.y)||0}));3===r.length&&t.push({type:"cubicBezTo",points:r})}),ej(e["a:arcTo"]).forEach(e=>{t.push({type:"arcTo",wR:parseInt(e.attrs?.wR)||0,hR:parseInt(e.attrs?.hR)||0,stAng:parseInt(e.attrs?.stAng)||0,swAng:parseInt(e.attrs?.swAng)||0})}),ej(e["a:quadBezTo"]).forEach(e=>{let r=ej(e["a:pt"]).map(e=>({x:parseInt(e.attrs?.x)||0,y:parseInt(e.attrs?.y)||0}));t.push({type:"quadBezTo",points:r})}),e["a:close"]&&t.push({type:"close"}),t}(o);return 0===c.length?"custom":function(e){let{lineCount:t,curveCount:r,isClosed:n,vertices:i,hasCurves:a,isCircular:o,pathWidth:s,pathHeight:l}=e;if(o||e.arcCount>=2&&n&&0===t)return"ellipse";if(!a&&n&&i.length>=3){let e;var c=i;let t=(e=[],c.forEach(t=>{e.some(e=>100>Math.abs(e.x-t.x)&&100>Math.abs(e.y-t.y))||e.push(t)}),e),r=t.length;switch(r){case 3:return"triangle";case 4:return function(e){var t,r,n;let i,a,o,s,l,c,u,h,p,d,f,m;if(4!==e.length)return"custom";let g=[];for(let t=0;t<4;t++){let r=e[t],n=e[(t+1)%4];g.push({dx:n.x-r.x,dy:n.y-r.y,length:Math.sqrt((n.x-r.x)**2+(n.y-r.y)**2)})}return!function(e){let t=Math.abs(e[0].length-e[2].length)/Math.max(e[0].length,e[2].length)<.1,r=Math.abs(e[1].length-e[3].length)/Math.max(e[1].length,e[3].length)<.1;if(!t||!r)return!1;for(let t=0;t<4;t++){let r=e[t],n=e[(t+1)%4];if(Math.abs((r.dx*n.dx+r.dy*n.dy)/(r.length*n.length))>.1)return!1}return!0}(g)?(i=(t=g).reduce((e,t)=>e+t.length,0)/4,t.every(e=>Math.abs(e.length-i)/i<.1))?"rhombus":(a=0!==(r=g)[0].dx?r[0].dy/r[0].dx:1/0,o=0!==r[2].dx?r[2].dy/r[2].dx:1/0,s=0!==r[1].dx?r[1].dy/r[1].dx:1/0,c=.15>Math.abs(s-(l=0!==r[3].dx?r[3].dy/r[3].dx:1/0))||Math.abs(s)>1e3&&Math.abs(l)>1e3,(.15>Math.abs(a-o)||Math.abs(a)>1e3&&Math.abs(o)>1e3)&&c)?"parallelogram":(u=0!==(n=g)[0].dx?n[0].dy/n[0].dx:1/0,h=0!==n[2].dx?n[2].dy/n[2].dx:1/0,p=0!==n[1].dx?n[1].dy/n[1].dx:1/0,d=0!==n[3].dx?n[3].dy/n[3].dx:1/0,f=.15>Math.abs(u-h)||Math.abs(u)>1e3&&Math.abs(h)>1e3,m=.15>Math.abs(p-d)||Math.abs(p)>1e3&&Math.abs(d)>1e3,f&&!m||!f&&m)?"trapezoid":"custom":"roundRect"}(t);case 5:return"pentagon";case 6:return"hexagon";case 7:return"heptagon";case 8:return"octagon";default:if(r>8)return"ellipse";return"custom"}}if(4===t&&4===r&&n)return"roundRect";if(t>=3&&r>0&&r<=t&&n){let e=function(e){switch(e){case 3:return"triangle";case 4:return"rectangle";case 5:return"pentagon";case 6:return"hexagon";case 7:return"heptagon";case 8:return"octagon";default:return"custom"}}(t);if("custom"!==e)return"rectangle"===e?"roundRect":e}return"custom"}((t=c,r=s,i={lineCount:0,curveCount:0,arcCount:0,isClosed:!1,vertices:[],aspectRatio:0!==(n=l)?r/n:1,pathWidth:r,pathHeight:n,hasCurves:!1,isCircular:!1,commands:t},t.forEach(e=>{switch(e.type){case"moveTo":i.vertices.push(e.points[0]);break;case"lineTo":i.lineCount++,i.vertices.push(e.points[0]);break;case"cubicBezTo":i.curveCount++,i.hasCurves=!0,3===e.points.length&&i.vertices.push(e.points[2]);break;case"quadBezTo":i.curveCount++,i.hasCurves=!0,e.points.length>=2&&i.vertices.push(e.points[e.points.length-1]);break;case"arcTo":i.arcCount++,i.hasCurves=!0;break;case"close":i.isClosed=!0}}),4===i.curveCount&&0===i.lineCount&&i.isClosed&&(i.isCircular=function(e,t,r){let n=e.filter(e=>"cubicBezTo"===e.type);if(4!==n.length)return!1;let i=n.map(e=>e.points[2]),a=i.some(e=>Math.abs(e.y)<.1*r),o=i.some(e=>Math.abs(e.y-r)<.1*r),s=i.some(e=>Math.abs(e.x)<.1*t),l=i.some(e=>Math.abs(e.x-t)<.1*t);return(a||o)&&(s||l)}(t,r,n)),i))}(P);t="custom"!==e?`custom:${e}`:"custom",r=eJ(P,g,A)}else t=T,r=e5(T,g,A,e)||"";let n={type:"shape",shapType:t,path:r,top:f,left:m,width:g,height:A,rotate:b,isFlipV:v,isFlipH:R,order:u,fill:{type:"image",value:{ref:y.ref,base64:y.base64,blob:y.blob,opacity:V,rect:l}},content:"",borderColor:C,borderWidth:I,borderType:k,borderStrokeDasharray:F};return X&&(n.filters=X),c&&(n.link=c),n}let Q={type:"image",top:f,left:m,width:g,height:A,rotate:b,ref:y.ref,base64:y.base64,blob:y.blob,isFlipV:v,isFlipH:R,order:u,rect:l,geom:"rect",borderColor:C,borderWidth:I,borderType:k,borderStrokeDasharray:F,opacity:V};return X&&(Q.filters=X),c&&(Q.link=c),Q}async function tL(e,t,r){let n;switch(E(e,["a:graphic","a:graphicData","attrs","uri"])){case"http://schemas.openxmlformats.org/drawingml/2006/table":n=await tN(e,t);break;case"http://schemas.openxmlformats.org/drawingml/2006/chart":n=await t_(e,t);break;case"http://schemas.openxmlformats.org/drawingml/2006/diagram":n=await tT(e,t);break;case"http://schemas.openxmlformats.org/presentationml/2006/ole":let i=E(e,["a:graphic","a:graphicData","mc:AlternateContent","mc:Fallback","p:oleObj"]);i||(i=E(e,["a:graphic","a:graphicData","p:oleObj"])),i&&(n=await tx(i,t,r))}return n}async function tN(e,t){let r,n,i=e.attrs.order,a=E(e,["a:graphic","a:graphicData","a:tbl"]),o=E(e,["p:xfrm"]),{top:s,left:l}=eT(o,void 0,void 0),{width:c,height:u}=eP(o,void 0,void 0),h=E(e,["a:graphic","a:graphicData","a:tbl","a:tblPr"]),p=E(e,["a:graphic","a:graphicData","a:tbl","a:tblGrid","a:gridCol"]);p.constructor!==Array&&(p=[p]);let d=[];if(p)for(let e of p){let t=parseInt(E(e,["attrs","w"])||0)*eR;d.push(t)}let f=h.attrs?h.attrs.firstRow:void 0,m=h.attrs?h.attrs.firstCol:void 0,g=h.attrs?h.attrs.lastRow:void 0,A=h.attrs?h.attrs.lastCol:void 0,y=h.attrs?h.attrs.bandRow:void 0,v=h.attrs?h.attrs.bandCol:void 0,R={isFrstRowAttr:+!!U(f),isFrstColAttr:+!!U(m),isLstRowAttr:+!!U(g),isLstColAttr:+!!U(A),isBandRowAttr:+!!U(y),isBandColAttr:+!!U(v)},b=h["a:tableStyleId"];if(b){let e=t.tableStyles["a:tblStyleLst"]["a:tblStyle"];if(e)if(e.constructor===Array)for(let t=0;t<e.length;t++)e[t].attrs.styleId===b&&(r=e[t]);else e.attrs.styleId===b&&(r=e)}r&&(r.tblStylAttrObj=R);let x={},M=E(r,["a:wholeTbl","a:tcStyle"]),S=E(M,["a:tcBdr"]);S&&(n={},S["a:bottom"]&&(n.bottom=eg({"p:spPr":{"a:ln":S["a:bottom"]["a:ln"]}},void 0,t)),S["a:top"]&&(n.top=eg({"p:spPr":{"a:ln":S["a:top"]["a:ln"]}},void 0,t)),S["a:right"]&&(n.right=eg({"p:spPr":{"a:ln":S["a:right"]["a:ln"]}},void 0,t)),S["a:left"]&&(n.left=eg({"p:spPr":{"a:ln":S["a:left"]["a:ln"]}},void 0,t)),x=n);let w="",O=E(r,["a:tblBg","a:fillRef"]);O&&(w=ef(O,void 0,void 0,t)),void 0===O&&(w=ef(O=E(r,["a:wholeTbl","a:tcStyle","a:fill","a:solidFill"]),void 0,void 0,t));let L=a["a:tr"];L.constructor!==Array&&(L=[L]);let N=[],_=[];for(let e=0;e<L.length;e++){let n=L[e],i=parseInt(E(L[e],["attrs","h"])||0)*eR;_.push(i);let{fillColor:a,fontColor:o,fontBold:s}=function(e,t,r,n,i){let a,o,s;if(n&&n["a:wholeTbl"]){let e=E(n,["a:wholeTbl","a:tcStyle","a:fill","a:solidFill"]);if(e){let t=ef(e,void 0,void 0,i);t&&(a=t)}let t=E(n,["a:wholeTbl","a:tcTxStyle"]);if(t){let e=e1(t,i);e&&(o=e),"on"===E(t,["attrs","b"])&&(s=!0)}}if(0===t&&1===r.isFrstRowAttr&&n){let e=E(n,["a:firstRow","a:tcStyle","a:fill","a:solidFill"]);if(e){let t=ef(e,void 0,void 0,i);t&&(a=t)}let t=E(n,["a:firstRow","a:tcTxStyle"]);if(t){let e=e1(t,i);e&&(o=e),"on"===E(t,["attrs","b"])&&(s=!0)}}else if(t>0&&1===r.isBandRowAttr&&n){if(a="",t%2==0&&n["a:band2H"]){let e=E(n,["a:band2H","a:tcStyle","a:fill","a:solidFill"]);if(e){let t=ef(e,void 0,void 0,i);t&&(a=t)}let t=E(n,["a:band2H","a:tcTxStyle"]);if(t){let e=e1(t,i);e&&(o=e)}"on"===E(t,["attrs","b"])&&(s=!0)}if(t%2!=0&&n["a:band1H"]){let e=E(n,["a:band1H","a:tcStyle","a:fill","a:solidFill"]);if(e){let t=ef(e,void 0,void 0,i);t&&(a=t)}let t=E(n,["a:band1H","a:tcTxStyle"]);if(t){let e=e1(t,i);e&&(o=e),"on"===E(t,["attrs","b"])&&(s=!0)}}}if(t===e.length-1&&1===r.isLstRowAttr&&n){let e=E(n,["a:lastRow","a:tcStyle","a:fill","a:solidFill"]);if(e){let t=ef(e,void 0,void 0,i);t&&(a=t)}let t=E(n,["a:lastRow","a:tcTxStyle"]);if(t){let e=e1(t,i);e&&(o=e),"on"===E(t,["attrs","b"])&&(s=!0)}}return{fillColor:a,fontColor:o,fontBold:s}}(L,e,R,r,t),l=n["a:tc"],c=[];if(l.constructor===Array)for(let n=0;n<l.length;n++){let i,u=l[n];if(0===n&&1===R.isFrstColAttr)i="a:firstCol",1===R.isLstRowAttr&&e===L.length-1&&E(r,["a:seCell"])?i="a:seCell":1===R.isFrstRowAttr&&0===e&&E(r,["a:neCell"])&&(i="a:neCell");else if(n>0&&1===R.isBandColAttr&&(1!==R.isFrstColAttr||0!==e)&&(1!==R.isLstRowAttr||e!==L.length-1)&&n!==l.length-1&&n%2!=0){let e=E(r,["a:band2V"]);void 0===e?(e=E(r,["a:band1V"]))&&(i="a:band2V"):i="a:band2V"}n===l.length-1&&1===R.isLstColAttr&&(i="a:lastCol",1===R.isLstRowAttr&&e===L.length-1&&E(r,["a:swCell"])?i="a:swCell":1===R.isFrstRowAttr&&0===e&&E(r,["a:nwCell"])&&(i="a:nwCell"));let h=eH(u["a:txBody"],u,void 0,void 0,void 0,t),p=await e2(u,r,i,t),d={text:h};p.rowSpan&&(d.rowSpan=p.rowSpan),p.colSpan&&(d.colSpan=p.colSpan),p.vMerge&&(d.vMerge=p.vMerge),p.hMerge&&(d.hMerge=p.hMerge),p.vAlign&&(d.vAlign=p.vAlign),(p.fontBold||s)&&(d.fontBold=p.fontBold||s),(p.fontColor||o)&&(d.fontColor=p.fontColor||o),(p.fillColor||a||w)&&(d.fillColor=p.fillColor||a||w),p.borders&&(d.borders=p.borders),c.push(d)}else{let e;if(1===R.isFrstColAttr&&1!==R.isLstRowAttr)e="a:firstCol";else if(1===R.isBandColAttr&&1!==R.isLstRowAttr){let t=E(r,["a:band2V"]);t?e="a:band2V":(t=E(r,["a:band1V"]))&&(e="a:band2V")}1===R.isLstColAttr&&1!==R.isLstRowAttr&&(e="a:lastCol");let n=eH(l["a:txBody"],l,void 0,void 0,void 0,t),i=await e2(l,r,e,t),u={text:n};i.rowSpan&&(u.rowSpan=i.rowSpan),i.colSpan&&(u.colSpan=i.colSpan),i.vMerge&&(u.vMerge=i.vMerge),i.hMerge&&(u.hMerge=i.hMerge),i.vAlign&&(u.vAlign=i.vAlign),(i.fontBold||s)&&(u.fontBold=i.fontBold||s),(i.fontColor||o)&&(u.fontColor=i.fontColor||o),(i.fillColor||a||w)&&(u.fillColor=i.fillColor||a||w),i.borders&&(u.borders=i.borders),c.push(u)}N.push(c)}let T=d.reduce((e,t)=>e+t,0);return T&&(T=$(T)),{type:"table",top:s,left:l,width:T||c,height:u,data:N,order:i,borders:x,rowHeights:_,colWidths:d}}async function t_(e,t){let r=e.attrs.order,n=E(e,["p:xfrm"]),{top:i,left:a}=eT(n,void 0,void 0),{width:o,height:s}=eP(n,void 0,void 0),l=e["a:graphic"]["a:graphicData"]["c:chart"].attrs["r:id"],c=E(t.slideResObj,[l,"target"]);if(c||(c=E(t.layoutResObj,[l,"target"])),c||(c=E(t.masterResObj,[l,"target"])),!c)return null;let u=function(e,t){let r=null;for(let n in e)if(e[n]["c:ser"])switch(n){case"c:lineChart":r={type:"lineChart",data:ey(e[n]["c:ser"]),colors:eA(e[n]["c:ser"],t),grouping:E(e[n],["c:grouping","attrs","val"]),marker:!!e[n]["c:marker"]};break;case"c:line3DChart":r={type:"line3DChart",data:ey(e[n]["c:ser"]),colors:eA(e[n]["c:ser"],t),grouping:E(e[n],["c:grouping","attrs","val"])};break;case"c:barChart":r={type:"barChart",data:ey(e[n]["c:ser"]),colors:eA(e[n]["c:ser"],t),grouping:E(e[n],["c:grouping","attrs","val"]),barDir:E(e[n],["c:barDir","attrs","val"])};break;case"c:bar3DChart":r={type:"bar3DChart",data:ey(e[n]["c:ser"]),colors:eA(e[n]["c:ser"],t),grouping:E(e[n],["c:grouping","attrs","val"]),barDir:E(e[n],["c:barDir","attrs","val"])};break;case"c:pieChart":r={type:"pieChart",data:ey(e[n]["c:ser"]),colors:eA(e[n]["c:ser"]["c:dPt"],t)};break;case"c:pie3DChart":r={type:"pie3DChart",data:ey(e[n]["c:ser"]),colors:eA(e[n]["c:ser"]["c:dPt"],t)};break;case"c:doughnutChart":r={type:"doughnutChart",data:ey(e[n]["c:ser"]),colors:eA(e[n]["c:ser"]["c:dPt"],t),holeSize:E(e[n],["c:holeSize","attrs","val"])};break;case"c:areaChart":r={type:"areaChart",data:ey(e[n]["c:ser"]),colors:eA(e[n]["c:ser"],t),grouping:E(e[n],["c:grouping","attrs","val"])};break;case"c:area3DChart":r={type:"area3DChart",data:ey(e[n]["c:ser"]),colors:eA(e[n]["c:ser"],t),grouping:E(e[n],["c:grouping","attrs","val"])};break;case"c:scatterChart":r={type:"scatterChart",data:ev(e[n]["c:ser"]),colors:eA(e[n]["c:ser"],t),style:E(e[n],["c:scatterStyle","attrs","val"])};break;case"c:bubbleChart":r={type:"bubbleChart",data:ev(e[n]["c:ser"]),colors:eA(e[n]["c:ser"],t)};break;case"c:radarChart":r={type:"radarChart",data:ey(e[n]["c:ser"]),colors:eA(e[n]["c:ser"],t),style:E(e[n],["c:radarStyle","attrs","val"])};break;case"c:surfaceChart":r={type:"surfaceChart",data:ey(e[n]["c:ser"]),colors:eA(e[n]["c:ser"],t)};break;case"c:surface3DChart":r={type:"surface3DChart",data:ey(e[n]["c:ser"]),colors:eA(e[n]["c:ser"],t)};break;case"c:stockChart":r={type:"stockChart",data:ey(e[n]["c:ser"]),colors:[]}}return r}(E(await X(t.zip,c),["c:chartSpace","c:chart","c:plotArea"]),t);if(!u)return null;let h={type:"chart",top:i,left:a,width:o,height:s,data:u.data,colors:u.colors,chartType:u.type,order:r};return void 0!==u.marker&&(h.marker=u.marker),void 0!==u.barDir&&(h.barDir=u.barDir),void 0!==u.holeSize&&(h.holeSize=u.holeSize),void 0!==u.grouping&&(h.grouping=u.grouping),void 0!==u.style&&(h.style=u.style),h}async function tT(e,t){let r=e.attrs.order,n=E(e,["p:xfrm"]),{left:i,top:a}=eT(n,void 0,void 0),{width:o,height:s}=eP(n,void 0,void 0),l=await tt(e,t),c=E(l.digramFileContent,["p:drawing","p:spTree","p:sp"]),u=[],h=[];if(c)for(let e of Array.isArray(c)?c:[c]){let t=await tM(e,l,"diagramBg");t&&u.push(t)}return l.diagramContent&&l.diagramContent.data&&(h=function(e){let t=[],r=E(e,["dgm:dataModel","dgm:ptLst","dgm:pt"]);if(!r)return t;for(let e of(Array.isArray(r)||(r=[r]),r)){let r=E(e,["dgm:t"]);if(r){let e="",n=E(r,["a:p"]);n&&(Array.isArray(n)||(n=[n]),n.forEach(t=>{let r=E(t,["a:r"]);r&&(Array.isArray(r)||(r=[r]),r.forEach(t=>{let r=eG(E(t,["a:t"]));r&&"string"==typeof r&&(e+=r)})),e.length>0&&(e+="\n")}));let i=e.trim();i&&t.push(i)}}return t}(l.diagramContent.data)),{type:"diagram",left:i,top:a,width:o,height:s,elements:u,textList:h,order:r}}},46762(e,t,r){var n=r(38262),i=r(96294),a=r(42845);let o=(e,t)=>!e.selection.empty&&(t&&t(e.tr.deleteSelection().scrollIntoView()),!0);function s(e,t,r=!1){for(let n=e;n;n="start"==t?n.firstChild:n.lastChild){if(n.isTextblock)return!0;if(r&&1!=n.childCount)break}return!1}function l(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){if(e.index(t)>0)return e.doc.resolve(e.before(t+1));if(e.node(t).type.spec.isolating)break}return null}function c(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){let r=e.node(t);if(e.index(t)+1<r.childCount)return e.doc.resolve(e.after(t+1));if(r.type.spec.isolating)break}return null}let u=(e,t)=>{let{$head:r,$anchor:n}=e.selection;return!!r.parent.type.spec.code&&!!r.sameParent(n)&&(t&&t(e.tr.insertText("\n").scrollIntoView()),!0)};function h(e){for(let t=0;t<e.edgeCount;t++){let{type:r}=e.edge(t);if(r.isTextblock&&!r.hasRequiredAttrs())return r}return null}let p=(e,t)=>{let r=e.selection,{$from:n,$to:i}=r;if(r instanceof a.i5||n.parent.inlineContent||i.parent.inlineContent)return!1;let o=h(i.parent.contentMatchAt(i.indexAfter()));if(!o||!o.isTextblock)return!1;if(t){let r=(!n.parentOffset&&i.index()<i.parent.childCount?n:i).pos,s=e.tr.insert(r,o.createAndFill());s.setSelection(a.U3.create(s.doc,r+1)),t(s.scrollIntoView())}return!0},d=(e,t)=>{let{$cursor:r}=e.selection;if(!r||r.parent.content.size)return!1;if(r.depth>1&&r.after()!=r.end(-1)){let i=r.before();if((0,n.zy)(e.doc,i))return t&&t(e.tr.split(i).scrollIntoView()),!0}let i=r.blockRange(),a=i&&(0,n.jP)(i);return null!=a&&(t&&t(e.tr.lift(i,a).scrollIntoView()),!0)},f=(e,t)=>{if(e.selection instanceof a.nh&&e.selection.node.isBlock){let{$from:r}=e.selection;return!!r.parentOffset&&!!(0,n.zy)(e.doc,r.pos)&&(t&&t(e.tr.split(r.pos).scrollIntoView()),!0)}if(!e.selection.$from.depth)return!1;let r=e.tr;!e.selection.empty&&(e.selection instanceof a.U3||e.selection instanceof a.i5)&&r.deleteSelection();let{$from:i}=r.selection,o=r.steps.length,s=[],l,c,u=!1,p=!1;for(let e=i.depth;;e--){if(i.node(e).isBlock){let t;u=i.end(e)==i.pos+(i.depth-e),p=i.start(e)==i.pos-(i.depth-e),c=h(i.node(e-1).contentMatchAt(i.indexAfter(e-1)));s.unshift(t||(u&&c?{type:c}:null)),l=e;break}if(1==e)return!1;s.unshift(null)}let d=i.pos,f=(0,n.zy)(r.doc,d,s.length,s);if(f||(s[0]=c?{type:c}:null,f=(0,n.zy)(r.doc,d,s.length,s)),!f)return!1;if(r.split(d,s.length,s),!u&&p&&i.node(l).type!=c){let e=r.mapping.slice(o),t=e.map(i.before(l)),n=r.doc.resolve(t);c&&i.node(l-1).canReplaceWith(n.index(),n.index()+1,c)&&r.setNodeMarkup(e.map(i.before(l)),c)}return t&&t(r.scrollIntoView()),!0},m=(e,t)=>(t&&t(e.tr.setSelection(new a.i5(e.doc))),!0);function g(e,t,r,o){let l,c,u,h=t.nodeBefore,p=t.nodeAfter,d,f,m=h.type.spec.isolating||p.type.spec.isolating;if(!m&&(l=t.nodeBefore,c=t.nodeAfter,u=t.index(),l&&c&&l.type.compatibleContent(c.type)&&(!l.content.size&&t.parent.canReplace(u-1,u)?(r&&r(e.tr.delete(t.pos-l.nodeSize,t.pos).scrollIntoView()),!0):!!t.parent.canReplace(u,u+1)&&!!(c.isTextblock||(0,n.n9)(e.doc,t.pos))&&(r&&r(e.tr.join(t.pos).scrollIntoView()),!0))))return!0;let g=!m&&t.parent.canReplace(t.index(),t.index()+1);if(g&&(d=(f=h.contentMatchAt(h.childCount)).findWrapping(p.type))&&f.matchType(d[0]||p.type).validEnd){if(r){let a=t.pos+p.nodeSize,o=i.FK.empty;for(let e=d.length-1;e>=0;e--)o=i.FK.from(d[e].create(null,o));o=i.FK.from(h.copy(o));let s=e.tr.step(new n.Wg(t.pos-1,a,t.pos,a,new i.Ji(o,1,0),d.length,!0)),l=s.doc.resolve(a+2*d.length);l.nodeAfter&&l.nodeAfter.type==h.type&&(0,n.n9)(s.doc,l.pos)&&s.join(l.pos),r(s.scrollIntoView())}return!0}let A=p.type.spec.isolating||o>0&&m?null:a.LN.findFrom(t,1),y=A&&A.$from.blockRange(A.$to),v=y&&(0,n.jP)(y);if(null!=v&&v>=t.depth)return r&&r(e.tr.lift(y,v).scrollIntoView()),!0;if(g&&s(p,"start",!0)&&s(h,"end")){let a=h,o=[];for(;o.push(a),!a.isTextblock;)a=a.lastChild;let s=p,l=1;for(;!s.isTextblock;s=s.firstChild)l++;if(a.canReplace(a.childCount,a.childCount,s.content)){if(r){let a=i.FK.empty;for(let e=o.length-1;e>=0;e--)a=i.FK.from(o[e].copy(a));r(e.tr.step(new n.Wg(t.pos-o.length,t.pos+p.nodeSize,t.pos+l,t.pos+p.nodeSize-l,new i.Ji(a,o.length,0),0,!0)).scrollIntoView())}return!0}}return!1}function A(e){return function(t,r){let n=t.selection,i=e<0?n.$from:n.$to,o=i.depth;for(;i.node(o).isInline;){if(!o)return!1;o--}return!!i.node(o).isTextblock&&(r&&r(t.tr.setSelection(a.U3.create(t.doc,e<0?i.start(o):i.end(o)))),!0)}}let y=A(-1),v=A(1);function R(e,t=null){return function(r,i){let{$from:a,$to:o}=r.selection,s=a.blockRange(o),l=s&&(0,n.oM)(s,e,t);return!!l&&(i&&i(r.tr.wrap(s,l).scrollIntoView()),!0)}}function b(e,t=null,r){let n=!1!==(r&&r.removeWhenPresent),i=!1!==(r&&r.enterInlineAtoms),o=!(r&&r.includeWhitespace);return function(r,s){let{empty:l,$cursor:c,ranges:u}=r.selection;if(l&&!c||!function(e,t,r,n){for(let i=0;i<t.length;i++){let{$from:a,$to:o}=t[i],s=0==a.depth&&e.inlineContent&&e.type.allowsMarkType(r);if(e.nodesBetween(a.pos,o.pos,(e,t)=>{if(s||!n&&e.isAtom&&e.isInline&&t>=a.pos&&t+e.nodeSize<=o.pos)return!1;s=e.inlineContent&&e.type.allowsMarkType(r)}),s)return!0}return!1}(r.doc,u,e,i))return!1;if(s)if(c)s(e.isInSet(r.storedMarks||c.marks())?r.tr.removeStoredMark(e):r.tr.addStoredMark(e.create(t)));else{let l,c=r.tr;i||(u=function(e){let t=[];for(let r=0;r<e.length;r++){let{$from:n,$to:i}=e[r];n.doc.nodesBetween(n.pos,i.pos,(e,r)=>{if(e.isAtom&&e.content.size&&e.isInline&&r>=n.pos&&r+e.nodeSize<=i.pos)return r+1>n.pos&&t.push(new a.yn(n,n.doc.resolve(r+1))),n=n.doc.resolve(r+1+e.content.size),!1}),n.pos<i.pos&&t.push(new a.yn(n,i))}return t}(u)),l=n?!u.some(t=>r.doc.rangeHasMark(t.$from.pos,t.$to.pos,e)):!u.every(t=>{let r=!1;return c.doc.nodesBetween(t.$from.pos,t.$to.pos,(n,i,a)=>{if(r)return!1;r=!e.isInSet(n.marks)&&!!a&&a.type.allowsMarkType(e)&&!(n.isText&&/^\s*$/.test(n.textBetween(Math.max(0,t.$from.pos-i),Math.min(n.nodeSize,t.$to.pos-i))))}),!r});for(let r=0;r<u.length;r++){let{$from:n,$to:i}=u[r];if(l){let r=n.pos,a=i.pos,s=n.nodeAfter,l=i.nodeBefore,u=o&&s&&s.isText?/^\s*/.exec(s.text)[0].length:0,h=o&&l&&l.isText?/\s*$/.exec(l.text)[0].length:0;r+u<a&&(r+=u,a-=h),c.addMark(r,a,e.create(t))}else c.removeMark(n.pos,i.pos,e)}s(c.scrollIntoView())}return!0}}function x(...e){return function(t,r,n){for(let i=0;i<e.length;i++)if(e[i](t,r,n))return!0;return!1}}let M=x(o,(e,t,r)=>{let o=function(e,t){let{$cursor:r}=e.selection;return r&&(t?t.endOfTextblock("backward",e):!(r.parentOffset>0))?r:null}(e,r);if(!o)return!1;let c=l(o);if(!c){let r=o.blockRange(),i=r&&(0,n.jP)(r);return null!=i&&(t&&t(e.tr.lift(r,i).scrollIntoView()),!0)}let u=c.nodeBefore;if(g(e,c,t,-1))return!0;if(0==o.parent.content.size&&(s(u,"end")||a.nh.isSelectable(u)))for(let r=o.depth;;r--){let l=(0,n.$L)(e.doc,o.before(r),o.after(r),i.Ji.empty);if(l&&l.slice.size<l.to-l.from){if(t){let r=e.tr.step(l);r.setSelection(s(u,"end")?a.LN.findFrom(r.doc.resolve(r.mapping.map(c.pos,-1)),-1):a.nh.create(r.doc,c.pos-u.nodeSize)),t(r.scrollIntoView())}return!0}if(1==r||o.node(r-1).childCount>1)break}return!!u.isAtom&&c.depth==o.depth-1&&(t&&t(e.tr.delete(c.pos-u.nodeSize,c.pos).scrollIntoView()),!0)},(e,t,r)=>{let{$head:n,empty:i}=e.selection,o=n;if(!i)return!1;if(n.parent.isTextblock){if(r?!r.endOfTextblock("backward",e):n.parentOffset>0)return!1;o=l(n)}let s=o&&o.nodeBefore;return!!s&&!!a.nh.isSelectable(s)&&(t&&t(e.tr.setSelection(a.nh.create(e.doc,o.pos-s.nodeSize)).scrollIntoView()),!0)}),S=x(o,(e,t,r)=>{let o=function(e,t){let{$cursor:r}=e.selection;return r&&(t?t.endOfTextblock("forward",e):!(r.parentOffset<r.parent.content.size))?r:null}(e,r);if(!o)return!1;let l=c(o);if(!l)return!1;let u=l.nodeAfter;if(g(e,l,t,1))return!0;if(0==o.parent.content.size&&(s(u,"start")||a.nh.isSelectable(u))){let r=(0,n.$L)(e.doc,o.before(),o.after(),i.Ji.empty);if(r&&r.slice.size<r.to-r.from){if(t){let n=e.tr.step(r);n.setSelection(s(u,"start")?a.LN.findFrom(n.doc.resolve(n.mapping.map(l.pos)),1):a.nh.create(n.doc,n.mapping.map(l.pos))),t(n.scrollIntoView())}return!0}}return!!u.isAtom&&l.depth==o.depth-1&&(t&&t(e.tr.delete(l.pos,l.pos+u.nodeSize).scrollIntoView()),!0)},(e,t,r)=>{let{$head:n,empty:i}=e.selection,o=n;if(!i)return!1;if(n.parent.isTextblock){if(r?!r.endOfTextblock("forward",e):n.parentOffset<n.parent.content.size)return!1;o=c(n)}let s=o&&o.nodeAfter;return!!s&&!!a.nh.isSelectable(s)&&(t&&t(e.tr.setSelection(a.nh.create(e.doc,o.pos)).scrollIntoView()),!0)}),w={Enter:x(u,p,d,f),"Mod-Enter":(e,t)=>{let{$head:r,$anchor:n}=e.selection;if(!r.parent.type.spec.code||!r.sameParent(n))return!1;let i=r.node(-1),o=r.indexAfter(-1),s=h(i.contentMatchAt(o));if(!s||!i.canReplaceWith(o,o,s))return!1;if(t){let n=r.after(),i=e.tr.replaceWith(n,n,s.createAndFill());i.setSelection(a.LN.near(i.doc.resolve(n),1)),t(i.scrollIntoView())}return!0},Backspace:M,"Mod-Backspace":M,"Shift-Backspace":M,Delete:S,"Mod-Delete":S,"Mod-a":m},O={"Ctrl-h":w.Backspace,"Alt-Backspace":w["Mod-Backspace"],"Ctrl-d":w.Delete,"Ctrl-Alt-Backspace":w["Mod-Delete"],"Alt-Delete":w["Mod-Delete"],"Alt-d":w["Mod-Delete"],"Ctrl-a":y,"Ctrl-e":v};for(let e in w)O[e]=w[e];let L=("u">typeof navigator?/Mac|iP(hone|[oa]d)/.test(navigator.platform):"u">typeof os&&!!os.platform&&"darwin"==os.platform())?O:w;r.d(t,{Im:()=>R,st:()=>x,wh:()=>b},{BS:(e,t)=>f(e,t&&(r=>{let n=e.storedMarks||e.selection.$to.parentOffset&&e.selection.$from.marks();n&&r.ensureMarks(n),t(r)})),G2:(e,t)=>{let r=e.selection,i=r instanceof a.nh,o;if(i){if(r.node.isTextblock||!(0,n.n9)(e.doc,r.from))return!1;o=r.from}else if(null==(o=(0,n.N0)(e.doc,r.from,-1)))return!1;if(t){let r=e.tr.join(o);i&&r.setSelection(a.nh.create(r.doc,o-e.doc.resolve(o).nodeBefore.nodeSize)),t(r.scrollIntoView())}return!0},RV:L,Ub:m,Z1:p,bh:(e,t)=>{let r=e.selection,i;if(r instanceof a.nh){if(r.node.isTextblock||!(0,n.n9)(e.doc,r.to))return!1;i=r.to}else if(null==(i=(0,n.N0)(e.doc,r.to,1)))return!1;return t&&t(e.tr.join(i).scrollIntoView()),!0},hy:(e,t)=>{let{$from:r,to:n}=e.selection,i,o=r.sharedDepth(n);return 0!=o&&(i=r.before(o),t&&t(e.tr.setSelection(a.nh.create(e.doc,i))),!0)},iz:d,pC:u,yY:(e,t)=>{let{$from:r,$to:i}=e.selection,a=r.blockRange(i),o=a&&(0,n.jP)(a);return null!=o&&(t&&t(e.tr.lift(a,o).scrollIntoView()),!0)}})},73337(e,t,r){var n=r(42845),i=r(38262);function a(e={}){return new n.k_({view:t=>new o(t,e)})}class o{constructor(e,t){var r;this.editorView=e,this.cursorPos=null,this.element=null,this.timeout=-1,this.lastDragEvent=null,this.width=null!=(r=t.width)?r:1,this.color=!1===t.color?void 0:t.color||"black",this.class=t.class,this.handlers=["dragover","dragend","drop","dragleave"].map(t=>{let r=e=>{this[t](e)};return e.dom.addEventListener(t,r),{name:t,handler:r}})}destroy(){this.handlers.forEach(({name:e,handler:t})=>this.editorView.dom.removeEventListener(e,t))}update(e,t){if(null!=this.cursorPos&&t.doc!=e.state.doc)if(this.lastDragEvent){let e=this.computeTarget(this.lastDragEvent);e==this.cursorPos?this.updateOverlay():this.setCursor(e)}else this.updateOverlay()}setCursor(e){e!=this.cursorPos&&(this.cursorPos=e,null==e?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let e,t,r=this.editorView.state.doc.resolve(this.cursorPos),n=!r.parent.inlineContent,i,a=this.editorView.dom,o=a.getBoundingClientRect(),s=o.width/a.offsetWidth,l=o.height/a.offsetHeight;if(n){let e=r.nodeBefore,t=r.nodeAfter;if(e||t){let r=this.editorView.nodeDOM(this.cursorPos-(e?e.nodeSize:0));if(r){let n=r.getBoundingClientRect(),a=e?n.bottom:n.top;e&&t&&(a=(a+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2);let o=this.width/2*l;i={left:n.left,right:n.right,top:a-o,bottom:a+o}}}}if(!i){let e=this.editorView.coordsAtPos(this.cursorPos),t=this.width/2*s;i={left:e.left-t,right:e.left+t,top:e.top,bottom:e.bottom}}let c=this.editorView.dom.offsetParent;if(!this.element&&(this.element=c.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",n),this.element.classList.toggle("prosemirror-dropcursor-inline",!n),c&&(c!=document.body||"static"!=getComputedStyle(c).position)){let r=c.getBoundingClientRect(),n=r.width/c.offsetWidth,i=r.height/c.offsetHeight;e=r.left-c.scrollLeft*n,t=r.top-c.scrollTop*i}else e=-pageXOffset,t=-pageYOffset;this.element.style.left=(i.left-e)/s+"px",this.element.style.top=(i.top-t)/l+"px",this.element.style.width=(i.right-i.left)/s+"px",this.element.style.height=(i.bottom-i.top)/l+"px"}scheduleRemoval(e){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),e)}computeTarget(e){let t=this.editorView.posAtCoords({left:e.clientX,top:e.clientY}),r=t&&t.inside>=0&&this.editorView.state.doc.nodeAt(t.inside),n=r&&r.type.spec.disableDropCursor,a="function"==typeof n?n(this.editorView,t,e):n;if(!t||a)return null;let o=t.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let e=(0,i.Um)(this.editorView.state.doc,o,this.editorView.dragging.slice);null!=e&&(o=e)}return o}dragover(e){if(!this.editorView.editable)return;this.lastDragEvent=e;let t=this.computeTarget(e);null!=t&&(this.setCursor(t),this.scheduleRemoval(5e3))}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(e){this.editorView.dom.contains(e.relatedTarget)||this.setCursor(null)}}r.d(t,{A:()=>a})},89552(e,t,r){var n=r(14413),i=r(42845),a=r(96294),o=r(1575);class s extends i.LN{constructor(e){super(e,e)}map(e,t){let r=e.resolve(t.map(this.head));return s.valid(r)?new s(r):i.LN.near(r)}content(){return a.Ji.empty}eq(e){return e instanceof s&&e.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(e,t){if("number"!=typeof t.pos)throw RangeError("Invalid input for GapCursor.fromJSON");return new s(e.resolve(t.pos))}getBookmark(){return new l(this.anchor)}static valid(e){let t=e.parent;if(t.inlineContent||!function(e){for(let t=e.depth;t>=0;t--){let r=e.index(t),n=e.node(t);if(0==r){if(n.type.spec.isolating)return!0;continue}for(let e=n.child(r-1);;e=e.lastChild){if(0==e.childCount&&!e.inlineContent||c(e.type))return!0;if(e.inlineContent)return!1}}return!0}(e)||!function(e){for(let t=e.depth;t>=0;t--){let r=e.indexAfter(t),n=e.node(t);if(r==n.childCount){if(n.type.spec.isolating)return!0;continue}for(let e=n.child(r);;e=e.firstChild){if(0==e.childCount&&!e.inlineContent||c(e.type))return!0;if(e.inlineContent)return!1}}return!0}(e))return!1;let r=t.type.spec.allowGapCursor;if(null!=r)return r;let n=t.contentMatchAt(e.index()).defaultType;return n&&n.isTextblock}static findGapCursorFrom(e,t,r=!1){a:for(;;){if(!r&&s.valid(e))return e;let n=e.pos,a=null;for(let r=e.depth;;r--){let i=e.node(r);if(t>0?e.indexAfter(r)<i.childCount:e.index(r)>0){a=i.child(t>0?e.indexAfter(r):e.index(r)-1);break}if(0==r)return null;n+=t;let o=e.doc.resolve(n);if(s.valid(o))return o}for(;;){let o=t>0?a.firstChild:a.lastChild;if(!o){if(a.isAtom&&!a.isText&&!i.nh.isSelectable(a)){e=e.doc.resolve(n+a.nodeSize*t),r=!1;continue a}break}a=o,n+=t;let l=e.doc.resolve(n);if(s.valid(l))return l}return null}}}s.prototype.visible=!1,s.findFrom=s.findGapCursorFrom,i.LN.jsonID("gapcursor",s);class l{constructor(e){this.pos=e}map(e){return new l(e.map(this.pos))}resolve(e){let t=e.resolve(this.pos);return s.valid(t)?new s(t):i.LN.near(t)}}function c(e){return e.isAtom||e.spec.isolating||e.spec.createGapCursor}function u(){return new i.k_({props:{decorations:m,createSelectionBetween:(e,t,r)=>t.pos==r.pos&&s.valid(r)?new s(r):null,handleClick:d,handleKeyDown:h,handleDOMEvents:{beforeinput:f}}})}let h=(0,n.K)({ArrowLeft:p("horiz",-1),ArrowRight:p("horiz",1),ArrowUp:p("vert",-1),ArrowDown:p("vert",1)});function p(e,t){let r="vert"==e?t>0?"down":"up":t>0?"right":"left";return function(e,n,a){let o=e.selection,l=t>0?o.$to:o.$from,c=o.empty;if(o instanceof i.U3){if(!a.endOfTextblock(r)||0==l.depth)return!1;c=!1,l=e.doc.resolve(t>0?l.after():l.before())}let u=s.findGapCursorFrom(l,t,c);return!!u&&(n&&n(e.tr.setSelection(new s(u))),!0)}}function d(e,t,r){if(!e||!e.editable)return!1;let n=e.state.doc.resolve(t);if(!s.valid(n))return!1;let a=e.posAtCoords({left:r.clientX,top:r.clientY});return!(a&&a.inside>-1&&i.nh.isSelectable(e.state.doc.nodeAt(a.inside)))&&(e.dispatch(e.state.tr.setSelection(new s(n))),!0)}function f(e,t){if("insertCompositionText"!=t.inputType||!(e.state.selection instanceof s))return!1;let{$from:r}=e.state.selection,n=r.parent.contentMatchAt(r.index()).findWrapping(e.state.schema.nodes.text);if(!n)return!1;let o=a.FK.empty;for(let e=n.length-1;e>=0;e--)o=a.FK.from(n[e].createAndFill(null,o));let l=e.state.tr.replace(r.pos,r.pos,new a.Ji(o,0,0));return l.setSelection(i.U3.near(l.doc.resolve(r.pos+1))),e.dispatch(l),!1}function m(e){if(!(e.selection instanceof s))return null;let t=document.createElement("div");return t.className="ProseMirror-gapcursor",o.zF.create(e.doc,[o.NZ.widget(e.selection.head,t,{key:"gapcursor"})])}r.d(t,{z:()=>u})},53034(e,t,r){r.d(t,{b6:()=>v,ZS:()=>x,tN:()=>b});var n=function(){};n.prototype.append=function(e){return e.length?(e=n.from(e),!this.length&&e||e.length<200&&this.leafAppend(e)||this.length<200&&e.leafPrepend(this)||this.appendInner(e)):this},n.prototype.prepend=function(e){return e.length?n.from(e).append(this):this},n.prototype.appendInner=function(e){return new a(this,e)},n.prototype.slice=function(e,t){return(void 0===e&&(e=0),void 0===t&&(t=this.length),e>=t)?n.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,t))},n.prototype.get=function(e){if(!(e<0)&&!(e>=this.length))return this.getInner(e)},n.prototype.forEach=function(e,t,r){void 0===t&&(t=0),void 0===r&&(r=this.length),t<=r?this.forEachInner(e,t,r,0):this.forEachInvertedInner(e,t,r,0)},n.prototype.map=function(e,t,r){void 0===t&&(t=0),void 0===r&&(r=this.length);var n=[];return this.forEach(function(t,r){return n.push(e(t,r))},t,r),n},n.from=function(e){return e instanceof n?e:e&&e.length?new i(e):n.empty};var i=function(e){function t(t){e.call(this),this.values=t}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var r={length:{configurable:!0},depth:{configurable:!0}};return t.prototype.flatten=function(){return this.values},t.prototype.sliceInner=function(e,r){return 0==e&&r==this.length?this:new t(this.values.slice(e,r))},t.prototype.getInner=function(e){return this.values[e]},t.prototype.forEachInner=function(e,t,r,n){for(var i=t;i<r;i++)if(!1===e(this.values[i],n+i))return!1},t.prototype.forEachInvertedInner=function(e,t,r,n){for(var i=t-1;i>=r;i--)if(!1===e(this.values[i],n+i))return!1},t.prototype.leafAppend=function(e){if(this.length+e.length<=200)return new t(this.values.concat(e.flatten()))},t.prototype.leafPrepend=function(e){if(this.length+e.length<=200)return new t(e.flatten().concat(this.values))},r.length.get=function(){return this.values.length},r.depth.get=function(){return 0},Object.defineProperties(t.prototype,r),t}(n);n.empty=new i([]);var a=function(e){function t(t,r){e.call(this),this.left=t,this.right=r,this.length=t.length+r.length,this.depth=Math.max(t.depth,r.depth)+1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},t.prototype.getInner=function(e){return e<this.left.length?this.left.get(e):this.right.get(e-this.left.length)},t.prototype.forEachInner=function(e,t,r,n){var i=this.left.length;if(t<i&&!1===this.left.forEachInner(e,t,Math.min(r,i),n)||r>i&&!1===this.right.forEachInner(e,Math.max(t-i,0),Math.min(this.length,r)-i,n+i))return!1},t.prototype.forEachInvertedInner=function(e,t,r,n){var i=this.left.length;if(t>i&&!1===this.right.forEachInvertedInner(e,t-i,Math.max(r,i)-i,n+i)||r<i&&!1===this.left.forEachInvertedInner(e,Math.min(t,i),r,n))return!1},t.prototype.sliceInner=function(e,t){if(0==e&&t==this.length)return this;var r=this.left.length;return t<=r?this.left.slice(e,t):e>=r?this.right.slice(e-r,t-r):this.left.slice(e,r).append(this.right.slice(0,t-r))},t.prototype.leafAppend=function(e){var r=this.right.leafAppend(e);if(r)return new t(this.left,r)},t.prototype.leafPrepend=function(e){var r=this.left.leafPrepend(e);if(r)return new t(r,this.right)},t.prototype.appendInner=function(e){return this.left.depth>=Math.max(this.right.depth,e.depth)+1?new t(this.left,new t(this.right,e)):new t(this,e)},t}(n),o=r(38262),s=r(42845);class l{constructor(e,t){this.items=e,this.eventCount=t}popEvent(e,t){let r,n,i,a;if(0==this.eventCount)return null;let o=this.items.length;for(;;o--)if(this.items.get(o-1).selection){--o;break}t&&(n=(r=this.remapping(o,this.items.length)).maps.length);let s=e.tr,u=[],h=[];return this.items.forEach((e,t)=>{if(!e.step){r||(n=(r=this.remapping(o,t+1)).maps.length),n--,h.push(e);return}if(r){h.push(new c(e.map));let t=e.step.map(r.slice(n)),i;t&&s.maybeStep(t).doc&&(i=s.mapping.maps[s.mapping.maps.length-1],u.push(new c(i,void 0,void 0,u.length+h.length))),n--,i&&r.appendMap(i,n)}else s.maybeStep(e.step);if(e.selection)return i=r?e.selection.map(r.slice(n)):e.selection,a=new l(this.items.slice(0,o).append(h.reverse().concat(u)),this.eventCount-1),!1},this.items.length,0),{remaining:a,transform:s,selection:i}}addTransform(e,t,r,n){var i,a;let o,s=[],u=this.eventCount,p=this.items,d=!n&&p.length?p.get(p.length-1):null;for(let r=0;r<e.steps.length;r++){let i=e.steps[r].invert(e.docs[r]),a=new c(e.mapping.maps[r],i,t),o;(o=d&&d.merge(a))&&(a=o,r?s.pop():p=p.slice(0,p.length-1)),s.push(a),t&&(u++,t=void 0),n||(d=a)}let f=u-r.depth;return f>h&&(i=p,a=f,i.forEach((e,t)=>{if(e.selection&&0==a--)return o=t,!1}),p=i.slice(o),u-=f),new l(p.append(s),u)}remapping(e,t){let r=new o.X9;return this.items.forEach((t,n)=>{let i=null!=t.mirrorOffset&&n-t.mirrorOffset>=e?r.maps.length-t.mirrorOffset:void 0;r.appendMap(t.map,i)},e,t),r}addMaps(e){return 0==this.eventCount?this:new l(this.items.append(e.map(e=>new c(e))),this.eventCount)}rebased(e,t){if(!this.eventCount)return this;let r=[],n=Math.max(0,this.items.length-t),i=e.mapping,a=e.steps.length,o=this.eventCount;this.items.forEach(e=>{e.selection&&o--},n);let s=t;this.items.forEach(t=>{let n=i.getMirror(--s);if(null==n)return;a=Math.min(a,n);let l=i.maps[n];if(t.step){let a=e.steps[n].invert(e.docs[n]),u=t.selection&&t.selection.map(i.slice(s+1,n));u&&o++,r.push(new c(l,a,u))}else r.push(new c(l))},n);let u=[];for(let e=t;e<a;e++)u.push(new c(i.maps[e]));let h=new l(this.items.slice(0,n).append(u).append(r),o);return h.emptyItemCount()>500&&(h=h.compress(this.items.length-r.length)),h}emptyItemCount(){let e=0;return this.items.forEach(t=>{!t.step&&e++}),e}compress(e=this.items.length){let t=this.remapping(0,e),r=t.maps.length,i=[],a=0;return this.items.forEach((n,o)=>{if(o>=e)i.push(n),n.selection&&a++;else if(n.step){let e=n.step.map(t.slice(r)),o=e&&e.getMap();if(r--,o&&t.appendMap(o,r),e){let s=n.selection&&n.selection.map(t.slice(r));s&&a++;let l=new c(o.invert(),e,s),u,h=i.length-1;(u=i.length&&i[h].merge(l))?i[h]=u:i.push(l)}}else n.map&&r--},this.items.length,0),new l(n.from(i.reverse()),a)}}l.empty=new l(n.empty,0);class c{constructor(e,t,r,n){this.map=e,this.step=t,this.selection=r,this.mirrorOffset=n}merge(e){if(this.step&&e.step&&!e.selection){let t=e.step.merge(this.step);if(t)return new c(t.getMap().invert(),t,this.selection)}}}class u{constructor(e,t,r,n,i){this.done=e,this.undone=t,this.prevRanges=r,this.prevTime=n,this.prevComposition=i}}let h=20;function p(e){let t=[];for(let r=e.length-1;r>=0&&0==t.length;r--)e[r].forEach((e,r,n,i)=>t.push(n,i));return t}function d(e,t){if(!e)return null;let r=[];for(let n=0;n<e.length;n+=2){let i=t.map(e[n],1),a=t.map(e[n+1],-1);i<=a&&r.push(i,a)}return r}let f=!1,m=null;function g(e){let t=e.plugins;if(m!=t){f=!1,m=t;for(let e=0;e<t.length;e++)if(t[e].spec.historyPreserveItems){f=!0;break}}return f}let A=new s.hs("history"),y=new s.hs("closeHistory");function v(e={}){return e={depth:e.depth||100,newGroupDelay:e.newGroupDelay||500},new s.k_({key:A,state:{init:()=>new u(l.empty,l.empty,null,0,-1),apply:(t,r,n)=>(function(e,t,r,n){let i=r.getMeta(A),a;if(i)return i.historyState;r.getMeta(y)&&(e=new u(e.done,e.undone,null,0,-1));let o=r.getMeta("appendedTransaction");if(0==r.steps.length)return e;if(o&&o.getMeta(A))if(o.getMeta(A).redo)return new u(e.done.addTransform(r,void 0,n,g(t)),e.undone,p(r.mapping.maps),e.prevTime,e.prevComposition);else return new u(e.done,e.undone.addTransform(r,void 0,n,g(t)),null,e.prevTime,e.prevComposition);if(!1===r.getMeta("addToHistory")||o&&!1===o.getMeta("addToHistory"))if(a=r.getMeta("rebased"))return new u(e.done.rebased(r,a),e.undone.rebased(r,a),d(e.prevRanges,r.mapping),e.prevTime,e.prevComposition);else return new u(e.done.addMaps(r.mapping.maps),e.undone.addMaps(r.mapping.maps),d(e.prevRanges,r.mapping),e.prevTime,e.prevComposition);{let i=r.getMeta("composition"),a=0==e.prevTime||!o&&e.prevComposition!=i&&(e.prevTime<(r.time||0)-n.newGroupDelay||!function(e,t){if(!t)return!1;if(!e.docChanged)return!0;let r=!1;return e.mapping.maps[0].forEach((e,n)=>{for(let i=0;i<t.length;i+=2)e<=t[i+1]&&n>=t[i]&&(r=!0)}),r}(r,e.prevRanges)),s=o?d(e.prevRanges,r.mapping):p(r.mapping.maps);return new u(e.done.addTransform(r,a?t.selection.getBookmark():void 0,n,g(t)),l.empty,s,r.time,null==i?e.prevComposition:i)}})(r,n,t,e)},config:e,props:{handleDOMEvents:{beforeinput(e,t){let r=t.inputType,n="historyUndo"==r?b:"historyRedo"==r?x:null;return!!n&&!!e.editable&&(t.preventDefault(),n(e.state,e.dispatch))}}}})}function R(e,t){return(r,n)=>{let i=A.getState(r);if(!i||0==(e?i.undone:i.done).eventCount)return!1;if(n){let a=function(e,t,r){let n=g(t),i=A.get(t).spec.config,a=(r?e.undone:e.done).popEvent(t,n);if(!a)return null;let o=a.selection.resolve(a.transform.doc),s=(r?e.done:e.undone).addTransform(a.transform,t.selection.getBookmark(),i,n),l=new u(r?s:a.remaining,r?a.remaining:s,null,0,-1);return a.transform.setSelection(o).setMeta(A,{redo:r,historyState:l})}(i,r,e);a&&n(t?a.scrollIntoView():a)}return!0}}let b=R(!1,!0),x=R(!0,!0)},38341(e,t,r){var n=r(42845),i=r(38262);class a{constructor(e,t,r={}){var n;this.match=e,this.match=e,this.handler="string"==typeof t?(n=t,function(e,t,r,i){let a=n;if(t[1]){let e=t[0].lastIndexOf(t[1]);a+=t[0].slice(e+t[1].length);let n=(r+=e)-i;n>0&&(a=t[0].slice(e-n,e)+a,r=i)}return e.tr.insertText(a,r,i)}):t,this.undoable=!1!==r.undoable,this.inCode=r.inCode||!1,this.inCodeMark=!1!==r.inCodeMark}}function o({rules:e}){let t=new n.k_({state:{init:()=>null,apply(e,t){let r=e.getMeta(this);return r||(e.selectionSet||e.docChanged?null:t)}},props:{handleTextInput:(r,n,i,a)=>s(r,n,i,a,e,t),handleDOMEvents:{compositionend:r=>{setTimeout(()=>{let{$cursor:n}=r.state.selection;n&&s(r,n.pos,n.pos,"",e,t)})}}},isInputRules:!0});return t}function s(e,t,r,n,i,a){if(e.composing)return!1;let o=e.state,s=o.doc.resolve(t),l=s.parent.textBetween(Math.max(0,s.parentOffset-500),s.parentOffset,null,"")+n;for(let c=0;c<i.length;c++){let u=i[c];if(!u.inCodeMark&&s.marks().some(e=>e.type.spec.code))continue;if(s.parent.type.spec.code){if(!u.inCode)continue}else if("only"===u.inCode)continue;let h=u.match.exec(l);if(!h||h[0].length<n.length)continue;let p=t-(h[0].length-n.length);if(!u.inCodeMark){let e=!1;if(o.doc.nodesBetween(p,s.pos,t=>{t.isInline&&t.marks.some(e=>e.type.spec.code)&&(e=!0)}),e)continue}let d=u.handler(o,h,p,r);if(d)return u.undoable&&d.setMeta(a,{transform:d,from:t,to:r,text:n}),e.dispatch(d),!0}return!1}let l=new a(/--$/,"—",{inCodeMark:!1}),c=new a(/\.\.\.$/,"…",{inCodeMark:!1}),u=new a(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(")$/,"“",{inCodeMark:!1}),h=new a(/"$/,"”",{inCodeMark:!1}),p=new a(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(')$/,"‘",{inCodeMark:!1}),d=new a(/'$/,"’",{inCodeMark:!1});function f(e,t,r=null,n){return new a(e,(e,a,o,s)=>{let l=r instanceof Function?r(a):r,c=e.tr.delete(o,s),u=c.doc.resolve(o).blockRange(),h=u&&(0,i.oM)(u,t,l);if(!h)return null;c.wrap(u,h);let p=c.doc.resolve(o-1).nodeBefore;return p&&p.type==t&&(0,i.n9)(c.doc,o-1)&&(!n||n(a,p))&&c.join(o-1),c})}r.d(t,{fV:()=>a,sM:()=>o,tG:()=>f},{Fr:[u,h,p,d],P8:l,dv:(e,t)=>{let r=e.plugins;for(let n=0;n<r.length;n++){let i=r[n],a;if(i.spec.isInputRules&&(a=i.getState(e))){if(t){let r=e.tr,n=a.transform;for(let e=n.steps.length-1;e>=0;e--)r.step(n.steps[e].invert(n.docs[e]));if(a.text){let t=r.doc.resolve(a.from).marks();r.replaceWith(a.from,a.to,e.schema.text(a.text,t))}else r.delete(a.from,a.to);t(r)}return!0}}return!1},gO:c})},14413(e,t,r){var n=r(62534),i=r(42845);let a="u">typeof navigator&&/Mac|iP(hone|[oa]d)/.test(navigator.platform),o="u">typeof navigator&&/Win/.test(navigator.platform);function s(e,t,r=!0){return t.altKey&&(e="Alt-"+e),t.ctrlKey&&(e="Ctrl-"+e),t.metaKey&&(e="Meta-"+e),r&&t.shiftKey&&(e="Shift-"+e),e}function l(e){return new i.k_({props:{handleKeyDown:c(e)}})}function c(e){let t=function(e){let t=Object.create(null);for(let r in e)t[function(e){let t,r,n,i,o=e.split(/-(?!$)/),s=o[o.length-1];"Space"==s&&(s=" ");for(let e=0;e<o.length-1;e++){let s=o[e];if(/^(cmd|meta|m)$/i.test(s))i=!0;else if(/^a(lt)?$/i.test(s))t=!0;else if(/^(c|ctrl|control)$/i.test(s))r=!0;else if(/^s(hift)?$/i.test(s))n=!0;else if(/^mod$/i.test(s))a?i=!0:r=!0;else throw Error("Unrecognized modifier name: "+s)}return t&&(s="Alt-"+s),r&&(s="Ctrl-"+s),i&&(s="Meta-"+s),n&&(s="Shift-"+s),s}(r)]=e[r];return t}(e);return function(e,r){let i=(0,n.xT)(r),a,l=t[s(i,r)];if(l&&l(e.state,e.dispatch,e))return!0;if(1==i.length&&" "!=i){if(r.shiftKey){let n=t[s(i,r,!1)];if(n&&n(e.state,e.dispatch,e))return!0}if((r.altKey||r.metaKey||r.ctrlKey)&&!(o&&r.ctrlKey&&r.altKey)&&(a=n.E3[r.keyCode])&&a!=i){let n=t[s(a,r)];if(n&&n(e.state,e.dispatch,e))return!0}}return!1}}r.d(t,{K:()=>c,w:()=>l})},96294(e,t,r){function n(e){this.content=e}function i(e){return e>=56320&&e<57344}function a(e){return e>=55296&&e<56320}r.d(t,{S4:()=>D,ZF:()=>J,FK:()=>o,CU:()=>u,sX:()=>V,bP:()=>w,u$:()=>M,vI:()=>h,Sj:()=>E,Ji:()=>p}),n.prototype={constructor:n,find:function(e){for(var t=0;t<this.content.length;t+=2)if(this.content[t]===e)return t;return -1},get:function(e){var t=this.find(e);return -1==t?void 0:this.content[t+1]},update:function(e,t,r){var i=r&&r!=e?this.remove(r):this,a=i.find(e),o=i.content.slice();return -1==a?o.push(r||e,t):(o[a+1]=t,r&&(o[a]=r)),new n(o)},remove:function(e){var t=this.find(e);if(-1==t)return this;var r=this.content.slice();return r.splice(t,2),new n(r)},addToStart:function(e,t){return new n([e,t].concat(this.remove(e).content))},addToEnd:function(e,t){var r=this.remove(e).content.slice();return r.push(e,t),new n(r)},addBefore:function(e,t,r){var i=this.remove(t),a=i.content.slice(),o=i.find(e);return a.splice(-1==o?a.length:o,0,t,r),new n(a)},forEach:function(e){for(var t=0;t<this.content.length;t+=2)e(this.content[t],this.content[t+1])},prepend:function(e){return(e=n.from(e)).size?new n(e.content.concat(this.subtract(e).content)):this},append:function(e){return(e=n.from(e)).size?new n(this.subtract(e).content.concat(e.content)):this},subtract:function(e){var t=this;e=n.from(e);for(var r=0;r<e.content.length;r+=2)t=t.remove(e.content[r]);return t},toObject:function(){var e={};return this.forEach(function(t,r){e[t]=r}),e},get size(){return this.content.length>>1}},n.from=function(e){if(e instanceof n)return e;var t=[];if(e)for(var r in e)t.push(r,e[r]);return new n(t)};class o{constructor(e,t){if(this.content=e,this.size=t||0,null==t)for(let t=0;t<e.length;t++)this.size+=e[t].nodeSize}nodesBetween(e,t,r,n=0,i){for(let a=0,o=0;o<t;a++){let s=this.content[a],l=o+s.nodeSize;if(l>e&&!1!==r(s,n+o,i||null,a)&&s.content.size){let i=o+1;s.nodesBetween(Math.max(0,e-i),Math.min(s.content.size,t-i),r,n+i)}o=l}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,r,n){let i="",a=!0;return this.nodesBetween(e,t,(o,s)=>{let l=o.isText?o.text.slice(Math.max(e,s)-s,t-s):o.isLeaf?n?"function"==typeof n?n(o):n:o.type.spec.leafText?o.type.spec.leafText(o):"":"";o.isBlock&&(o.isLeaf&&l||o.isTextblock)&&r&&(a?a=!1:i+=r),i+=l},0),i}append(e){if(!e.size)return this;if(!this.size)return e;let t=this.lastChild,r=e.firstChild,n=this.content.slice(),i=0;for(t.isText&&t.sameMarkup(r)&&(n[n.length-1]=t.withText(t.text+r.text),i=1);i<e.content.length;i++)n.push(e.content[i]);return new o(n,this.size+e.size)}cut(e,t=this.size){if(0==e&&t==this.size)return this;let r=[],n=0;if(t>e)for(let i=0,a=0;a<t;i++){let o=this.content[i],s=a+o.nodeSize;s>e&&((a<e||s>t)&&(o=o.isText?o.cut(Math.max(0,e-a),Math.min(o.text.length,t-a)):o.cut(Math.max(0,e-a-1),Math.min(o.content.size,t-a-1))),r.push(o),n+=o.nodeSize),a=s}return new o(r,n)}cutByIndex(e,t){return e==t?o.empty:0==e&&t==this.content.length?this:new o(this.content.slice(e,t))}replaceChild(e,t){let r=this.content[e];if(r==t)return this;let n=this.content.slice(),i=this.size+t.nodeSize-r.nodeSize;return n[e]=t,new o(n,i)}addToStart(e){return new o([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new o(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let t=0;t<this.content.length;t++)if(!this.content[t].eq(e.content[t]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let t=this.content[e];if(!t)throw RangeError("Index "+e+" out of range for "+this);return t}maybeChild(e){return this.content[e]||null}forEach(e){for(let t=0,r=0;t<this.content.length;t++){let n=this.content[t];e(n,r,t),r+=n.nodeSize}}findDiffStart(e,t=0){return function e(t,r,n){for(let o=0;;o++){if(o==t.childCount||o==r.childCount)return t.childCount==r.childCount?null:n;let s=t.child(o),l=r.child(o);if(s==l){n+=s.nodeSize;continue}if(!s.sameMarkup(l))return n;if(s.isText&&s.text!=l.text){let e=s.text,t=l.text,r=0;for(;e[r]==t[r];r++)n++;return r&&r<e.length&&r<t.length&&a(e.charCodeAt(r-1))&&i(e.charCodeAt(r))&&n--,n}if(s.content.size||l.content.size){let t=e(s.content,l.content,n+1);if(null!=t)return t}n+=s.nodeSize}}(this,e,t)}findDiffEnd(e,t=this.size,r=e.size){return function e(t,r,n,o){for(let s=t.childCount,l=r.childCount;;){if(0==s||0==l)return s==l?null:{a:n,b:o};let c=t.child(--s),u=r.child(--l),h=c.nodeSize;if(c==u){n-=h,o-=h;continue}if(!c.sameMarkup(u))return{a:n,b:o};if(c.isText&&c.text!=u.text){let e=c.text,t=u.text,r=e.length,s=t.length;for(;r>0&&s>0&&e[r-1]==t[s-1];)r--,s--,n--,o--;return r&&s&&r<e.length&&a(e.charCodeAt(r-1))&&i(e.charCodeAt(r))&&(n++,o++),{a:n,b:o}}if(c.content.size||u.content.size){let t=e(c.content,u.content,n-1,o-1);if(t)return t}n-=h,o-=h}}(this,e,t,r)}findIndex(e){if(0==e)return l(0,e);if(e==this.size)return l(this.content.length,e);if(e>this.size||e<0)throw RangeError(`Position ${e} outside of fragment (${this})`);for(let t=0,r=0;;t++){let n=r+this.child(t).nodeSize;if(n>=e){if(n==e)return l(t+1,n);return l(t,r)}r=n}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,t){if(!t)return o.empty;if(!Array.isArray(t))throw RangeError("Invalid input for Fragment.fromJSON");return o.fromArray(t.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return o.empty;let t,r=0;for(let n=0;n<e.length;n++){let i=e[n];r+=i.nodeSize,n&&i.isText&&e[n-1].sameMarkup(i)?(t||(t=e.slice(0,n)),t[t.length-1]=i.withText(t[t.length-1].text+i.text)):t&&t.push(i)}return new o(t||e,r)}static from(e){if(!e)return o.empty;if(e instanceof o)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new o([e],e.nodeSize);throw RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}o.empty=new o([],0);let s={index:0,offset:0};function l(e,t){return s.index=e,s.offset=t,s}function c(e,t){if(e===t)return!0;if(!(e&&"object"==typeof e)||!(t&&"object"==typeof t))return!1;let r=Array.isArray(e);if(Array.isArray(t)!=r)return!1;if(r){if(e.length!=t.length)return!1;for(let r=0;r<e.length;r++)if(!c(e[r],t[r]))return!1}else{for(let r in e)if(!(r in t)||!c(e[r],t[r]))return!1;for(let r in t)if(!(r in e))return!1}return!0}class u{constructor(e,t){this.type=e,this.attrs=t}addToSet(e){let t,r=!1;for(let n=0;n<e.length;n++){let i=e[n];if(this.eq(i))return e;if(this.type.excludes(i.type))t||(t=e.slice(0,n));else{if(i.type.excludes(this.type))return e;!r&&i.type.rank>this.type.rank&&(t||(t=e.slice(0,n)),t.push(this),r=!0),t&&t.push(i)}}return t||(t=e.slice()),r||t.push(this),t}removeFromSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return e.slice(0,t).concat(e.slice(t+1));return e}isInSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return!0;return!1}eq(e){return this==e||this.type==e.type&&c(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,t){if(!t)throw RangeError("Invalid input for Mark.fromJSON");let r=e.marks[t.type];if(!r)throw RangeError(`There is no mark type ${t.type} in this schema`);let n=r.create(t.attrs);return r.checkAttrs(n.attrs),n}static sameSet(e,t){if(e==t)return!0;if(e.length!=t.length)return!1;for(let r=0;r<e.length;r++)if(!e[r].eq(t[r]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&0==e.length)return u.none;if(e instanceof u)return[e];let t=e.slice();return t.sort((e,t)=>e.type.rank-t.type.rank),t}}u.none=[];class h extends Error{}class p{constructor(e,t,r){this.content=e,this.openStart=t,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,t){let r=function e(t,r,n,i,a,o){let{index:s,offset:l}=t.findIndex(r),c=t.maybeChild(s);if(l==r||c.isText)return o&&i<=0&&a<=0&&!o.canReplace(s,s,n)?null:t.cut(0,r).append(n).append(t.cut(r));let u=e(c.content,r-l-1,n,0==s?i-1:0,s==t.childCount-1?a-1:0,c);return u&&t.replaceChild(s,c.copy(u))}(this.content,e+this.openStart,t,this.openStart+1,this.openEnd+1);return r&&new p(r,this.openStart,this.openEnd)}removeBetween(e,t){return new p(function e(t,r,n){let{index:i,offset:a}=t.findIndex(r),o=t.maybeChild(i),{index:s,offset:l}=t.findIndex(n);if(a==r||o.isText){if(l!=n&&!t.child(s).isText)throw RangeError("Removing non-flat range");return t.cut(0,r).append(t.cut(n))}if(i!=s)throw RangeError("Removing non-flat range");return t.replaceChild(i,o.copy(e(o.content,r-a-1,n-a-1)))}(this.content,e+this.openStart,t+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,t){if(!t)return p.empty;let r=t.openStart||0,n=t.openEnd||0;if("number"!=typeof r||"number"!=typeof n)throw RangeError("Invalid input for Slice.fromJSON");return new p(o.fromJSON(e,t.content),r,n)}static maxOpen(e,t=!0){let r=0,n=0;for(let n=e.firstChild;n&&!n.isLeaf&&(t||!n.type.spec.isolating);n=n.firstChild)r++;for(let r=e.lastChild;r&&!r.isLeaf&&(t||!r.type.spec.isolating);r=r.lastChild)n++;return new p(e,r,n)}}function d(e,t){if(!t.type.compatibleContent(e.type))throw new h("Cannot join "+t.type.name+" onto "+e.type.name)}function f(e,t,r){let n=e.node(r);return d(n,t.node(r)),n}function m(e,t){let r=t.length-1;r>=0&&e.isText&&e.sameMarkup(t[r])?t[r]=e.withText(t[r].text+e.text):t.push(e)}function g(e,t,r,n){let i=(t||e).node(r),a=0,o=t?t.index(r):i.childCount;e&&(a=e.index(r),e.depth>r?a++:e.textOffset&&(m(e.nodeAfter,n),a++));for(let e=a;e<o;e++)m(i.child(e),n);t&&t.depth==r&&t.textOffset&&m(t.nodeBefore,n)}function A(e,t){if(!e.type.validContent(t))throw new h("Invalid content for node "+e.type.name);return e.copy(t)}function y(e,t,r){let n=[];return g(null,e,r,n),e.depth>r&&m(A(f(e,t,r+1),y(e,t,r+1)),n),g(t,null,r,n),new o(n)}p.empty=new p(o.empty,0,0);class v{constructor(e,t,r){this.pos=e,this.path=t,this.parentOffset=r,this.depth=t.length/3-1}resolveDepth(e){return null==e?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[3*this.resolveDepth(e)]}index(e){return this.path[3*this.resolveDepth(e)+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e!=this.depth||this.textOffset?1:0)}start(e){return 0==(e=this.resolveDepth(e))?0:this.path[3*e-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(!(e=this.resolveDepth(e)))throw RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]}after(e){if(!(e=this.resolveDepth(e)))throw RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]+this.path[3*e].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;let r=this.pos-this.path[this.path.length-1],n=e.child(t);return r?e.child(t).cut(r):n}get nodeBefore(){let e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):0==e?null:this.parent.child(e-1)}posAtIndex(e,t){t=this.resolveDepth(t);let r=this.path[3*t],n=0==t?0:this.path[3*t-1]+1;for(let t=0;t<e;t++)n+=r.child(t).nodeSize;return n}marks(){let e=this.parent,t=this.index();if(0==e.content.size)return u.none;if(this.textOffset)return e.child(t).marks;let r=e.maybeChild(t-1),n=e.maybeChild(t);if(!r){let e=r;r=n,n=e}let i=r.marks;for(var a=0;a<i.length;a++)!1!==i[a].type.spec.inclusive||n&&i[a].isInSet(n.marks)||(i=i[a--].removeFromSet(i));return i}marksAcross(e){let t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;let r=t.marks,n=e.parent.maybeChild(e.index());for(var i=0;i<r.length;i++)!1!==r[i].type.spec.inclusive||n&&r[i].isInSet(n.marks)||(r=r[i--].removeFromSet(r));return r}sharedDepth(e){for(let t=this.depth;t>0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}blockRange(e=this,t){if(e.pos<this.pos)return e.blockRange(this);for(let r=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);r>=0;r--)if(e.pos<=this.end(r)&&(!t||t(this.node(r))))return new M(this,e,r);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let t=1;t<=this.depth;t++)e+=(e?"/":"")+this.node(t).type.name+"_"+this.index(t-1);return e+":"+this.parentOffset}static resolve(e,t){if(!(t>=0&&t<=e.content.size))throw RangeError("Position "+t+" out of range");let r=[],n=0,i=t;for(let t=e;;){let{index:e,offset:a}=t.content.findIndex(i),o=i-a;if(r.push(t,e,n+a),!o||(t=t.child(e)).isText)break;i=o-1,n+=a+1}return new v(t,r,i)}static resolveCached(e,t){let r=x.get(e);if(r)for(let e=0;e<r.elts.length;e++){let n=r.elts[e];if(n.pos==t)return n}else x.set(e,r=new R);let n=r.elts[r.i]=v.resolve(e,t);return r.i=(r.i+1)%b,n}}class R{constructor(){this.elts=[],this.i=0}}let b=12,x=new WeakMap;class M{constructor(e,t,r){this.$from=e,this.$to=t,this.depth=r}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}let S=Object.create(null);class w{constructor(e,t,r,n=u.none){this.type=e,this.attrs=t,this.marks=n,this.content=r||o.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,t,r,n=0){this.content.nodesBetween(e,t,r,n,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,t,r,n){return this.content.textBetween(e,t,r,n)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,t,r){return this.type==e&&c(this.attrs,t||e.defaultAttrs||S)&&u.sameSet(this.marks,r||u.none)}copy(e=null){return e==this.content?this:new w(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new w(this.type,this.attrs,this.content,e)}cut(e,t=this.content.size){return 0==e&&t==this.content.size?this:this.copy(this.content.cut(e,t))}slice(e,t=this.content.size,r=!1){if(e==t)return p.empty;let n=this.resolve(e),i=this.resolve(t),a=r?0:n.sharedDepth(t),o=n.start(a);return new p(n.node(a).content.cut(n.pos-o,i.pos-o),n.depth-a,i.depth-a)}replace(e,t,r){var n=this.resolve(e),i=this.resolve(t);if(r.openStart>n.depth)throw new h("Inserted content deeper than insertion position");if(n.depth-r.openStart!=i.depth-r.openEnd)throw new h("Inconsistent open depths");return function e(t,r,n,i){let a=t.index(i),s=t.node(i);if(a==r.index(i)&&i<t.depth-n.openStart){let o=e(t,r,n,i+1);return s.copy(s.content.replaceChild(a,o))}if(!n.content.size)return A(s,y(t,r,i));if(n.openStart||n.openEnd||t.depth!=i||r.depth!=i){let{start:e,end:a}=function(e,t){let r=t.depth-e.openStart,n=t.node(r).copy(e.content);for(let e=r-1;e>=0;e--)n=t.node(e).copy(o.from(n));return{start:n.resolveNoCache(e.openStart+r),end:n.resolveNoCache(n.content.size-e.openEnd-r)}}(n,t);return A(s,function e(t,r,n,i,a){let s=t.depth>a&&f(t,r,a+1),l=i.depth>a&&f(n,i,a+1),c=[];return g(null,t,a,c),s&&l&&r.index(a)==n.index(a)?(d(s,l),m(A(s,e(t,r,n,i,a+1)),c)):(s&&m(A(s,y(t,r,a+1)),c),g(r,n,a,c),l&&m(A(l,y(n,i,a+1)),c)),g(i,null,a,c),new o(c)}(t,e,a,r,i))}{let e=t.parent,i=e.content;return A(e,i.cut(0,t.parentOffset).append(n.content).append(i.cut(r.parentOffset)))}}(n,i,r,0)}nodeAt(e){for(let t=this;;){let{index:r,offset:n}=t.content.findIndex(e);if(!(t=t.maybeChild(r)))return null;if(n==e||t.isText)return t;e-=n+1}}childAfter(e){let{index:t,offset:r}=this.content.findIndex(e);return{node:this.content.maybeChild(t),index:t,offset:r}}childBefore(e){if(0==e)return{node:null,index:0,offset:0};let{index:t,offset:r}=this.content.findIndex(e);if(r<e)return{node:this.content.child(t),index:t,offset:r};let n=this.content.child(t-1);return{node:n,index:t-1,offset:r-n.nodeSize}}resolve(e){return v.resolveCached(this,e)}resolveNoCache(e){return v.resolve(this,e)}rangeHasMark(e,t,r){let n=!1;return t>e&&this.nodesBetween(e,t,e=>(r.isInSet(e.marks)&&(n=!0),!n)),n}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),L(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw Error("Called contentMatchAt on a node with invalid content");return t}canReplace(e,t,r=o.empty,n=0,i=r.childCount){let a=this.contentMatchAt(e).matchFragment(r,n,i),s=a&&a.matchFragment(this.content,t);if(!s||!s.validEnd)return!1;for(let e=n;e<i;e++)if(!this.type.allowsMarks(r.child(e).marks))return!1;return!0}canReplaceWith(e,t,r,n){if(n&&!this.type.allowsMarks(n))return!1;let i=this.contentMatchAt(e).matchType(r),a=i&&i.matchFragment(this.content,t);return!!a&&a.validEnd}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let e=u.none;for(let t=0;t<this.marks.length;t++){let r=this.marks[t];r.type.checkAttrs(r.attrs),e=r.addToSet(e)}if(!u.sameSet(e,this.marks))throw RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(e=>e.type.name)}`);this.content.forEach(e=>e.check())}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(e=>e.toJSON())),e}static fromJSON(e,t){let r;if(!t)throw RangeError("Invalid input for Node.fromJSON");if(t.marks){if(!Array.isArray(t.marks))throw RangeError("Invalid mark data for Node.fromJSON");r=t.marks.map(e.markFromJSON)}if("text"==t.type){if("string"!=typeof t.text)throw RangeError("Invalid text node in JSON");return e.text(t.text,r)}let n=o.fromJSON(e,t.content),i=e.nodeType(t.type).create(t.attrs,n,r);return i.type.checkAttrs(i.attrs),i}}w.prototype.text=void 0;class O extends w{constructor(e,t,r,n){if(super(e,t,null,n),!r)throw RangeError("Empty text nodes are not allowed");this.text=r}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):L(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return this.text.slice(e,t)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new O(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new O(this.type,this.attrs,e,this.marks)}cut(e=0,t=this.text.length){return 0==e&&t==this.text.length?this:this.withText(this.text.slice(e,t))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function L(e,t){for(let r=e.length-1;r>=0;r--)t=e[r].type.name+"("+t+")";return t}class N{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,t){var r;let n,i=new _(e,t);if(null==i.next)return N.empty;let a=function e(t){let r=[];do r.push(function(t){let r=[];do r.push(function(t){let r=function(t){if(t.eat("(")){let r=e(t);return t.eat(")")||t.err("Missing closing paren"),r}if(/\W/.test(t.next))t.err("Unexpected token '"+t.next+"'");else{let e=(function(e,t){let r=e.nodeTypes,n=r[t];if(n)return[n];let i=[];for(let e in r){let n=r[e];n.isInGroup(t)&&i.push(n)}return 0==i.length&&e.err("No node type or group '"+t+"' found"),i})(t,t.next).map(e=>(null==t.inline?t.inline=e.isInline:t.inline!=e.isInline&&t.err("Mixing inline and block content"),{type:"name",value:e}));return t.pos++,1==e.length?e[0]:{type:"choice",exprs:e}}}(t);for(;;)if(t.eat("+"))r={type:"plus",expr:r};else if(t.eat("*"))r={type:"star",expr:r};else if(t.eat("?"))r={type:"opt",expr:r};else if(t.eat("{"))r=function(e,t){let r=T(e),n=r;return e.eat(",")&&(n="}"!=e.next?T(e):-1),e.eat("}")||e.err("Unclosed braced range"),{type:"range",min:r,max:n,expr:t}}(t,r);else break;return r}(t));while(t.next&&")"!=t.next&&"|"!=t.next)return 1==r.length?r[0]:{type:"seq",exprs:r}}(t));while(t.eat("|"))return 1==r.length?r[0]:{type:"choice",exprs:r}}(i);i.next&&i.err("Unexpected trailing text");let o=(r=function(e){let t=[[]];return i(function e(t,a){if("choice"==t.type)return t.exprs.reduce((t,r)=>t.concat(e(r,a)),[]);if("seq"==t.type)for(let n=0;;n++){let o=e(t.exprs[n],a);if(n==t.exprs.length-1)return o;i(o,a=r())}else if("star"==t.type){let o=r();return n(a,o),i(e(t.expr,o),o),[n(o)]}else if("plus"==t.type){let o=r();return i(e(t.expr,a),o),i(e(t.expr,o),o),[n(o)]}else if("opt"==t.type)return[n(a)].concat(e(t.expr,a));else if("range"==t.type){let o=a;for(let n=0;n<t.min;n++){let n=r();i(e(t.expr,o),n),o=n}if(-1==t.max)i(e(t.expr,o),o);else for(let a=t.min;a<t.max;a++){let a=r();n(o,a),i(e(t.expr,o),a),o=a}return[n(o)]}else if("name"==t.type)return[n(a,void 0,t.value)];else throw Error("Unknown expr type")}(e,0),r()),t;function r(){return t.push([])-1}function n(e,r,n){let i={term:n,to:r};return t[e].push(i),i}function i(e,t){e.forEach(e=>e.to=t)}}(a),n=Object.create(null),function e(t){let i=[];t.forEach(e=>{r[e].forEach(({term:e,to:t})=>{let n;if(e){for(let t=0;t<i.length;t++)i[t][0]==e&&(n=i[t][1]);C(r,t).forEach(t=>{n||i.push([e,n=[]]),-1==n.indexOf(t)&&n.push(t)})}})});let a=n[t.join(",")]=new N(t.indexOf(r.length-1)>-1);for(let t=0;t<i.length;t++){let r=i[t][1].sort(P);a.next.push({type:i[t][0],next:n[r.join(",")]||e(r)})}return a}(C(r,0)));return function(e,t){for(let r=0,n=[e];r<n.length;r++){let e=n[r],i=!e.validEnd,a=[];for(let t=0;t<e.next.length;t++){let{type:r,next:o}=e.next[t];a.push(r.name),i&&!(r.isText||r.hasRequiredAttrs())&&(i=!1),-1==n.indexOf(o)&&n.push(o)}i&&t.err("Only non-generatable nodes ("+a.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}(o,i),o}matchType(e){for(let t=0;t<this.next.length;t++)if(this.next[t].type==e)return this.next[t].next;return null}matchFragment(e,t=0,r=e.childCount){let n=this;for(let i=t;n&&i<r;i++)n=n.matchType(e.child(i).type);return n}get inlineContent(){return 0!=this.next.length&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:t}=this.next[e];if(!(t.isText||t.hasRequiredAttrs()))return t}return null}compatible(e){for(let t=0;t<this.next.length;t++)for(let r=0;r<e.next.length;r++)if(this.next[t].type==e.next[r].type)return!0;return!1}fillBefore(e,t=!1,r=0){let n=[this];return function i(a,s){let l=a.matchFragment(e,r);if(l&&(!t||l.validEnd))return o.from(s.map(e=>e.createAndFill()));for(let e=0;e<a.next.length;e++){let{type:t,next:r}=a.next[e];if(!(t.isText||t.hasRequiredAttrs())&&-1==n.indexOf(r)){n.push(r);let e=i(r,s.concat(t));if(e)return e}}return null}(this,[])}findWrapping(e){for(let t=0;t<this.wrapCache.length;t+=2)if(this.wrapCache[t]==e)return this.wrapCache[t+1];let t=this.computeWrapping(e);return this.wrapCache.push(e,t),t}computeWrapping(e){let t=Object.create(null),r=[{match:this,type:null,via:null}];for(;r.length;){let n=r.shift(),i=n.match;if(i.matchType(e)){let e=[];for(let t=n;t.type;t=t.via)e.push(t.type);return e.reverse()}for(let e=0;e<i.next.length;e++){let{type:a,next:o}=i.next[e];a.isLeaf||a.hasRequiredAttrs()||a.name in t||n.type&&!o.validEnd||(r.push({match:a.contentMatch,type:a,via:n}),t[a.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];return!function t(r){e.push(r);for(let n=0;n<r.next.length;n++)-1==e.indexOf(r.next[n].next)&&t(r.next[n].next)}(this),e.map((t,r)=>{let n=r+(t.validEnd?"*":" ")+" ";for(let r=0;r<t.next.length;r++)n+=(r?", ":"")+t.next[r].type.name+"->"+e.indexOf(t.next[r].next);return n}).join("\n")}}N.empty=new N(!0);class _{constructor(e,t){this.string=e,this.nodeTypes=t,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),""==this.tokens[this.tokens.length-1]&&this.tokens.pop(),""==this.tokens[0]&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw SyntaxError(e+" (in content expression '"+this.string+"')")}}function T(e){/\D/.test(e.next)&&e.err("Expected number, got '"+e.next+"'");let t=Number(e.next);return e.pos++,t}function P(e,t){return t-e}function C(e,t){let r=[];return function t(n){let i=e[n];if(1==i.length&&!i[0].term)return t(i[0].to);r.push(n);for(let e=0;e<i.length;e++){let{term:n,to:a}=i[e];n||-1!=r.indexOf(a)||t(a)}}(t),r.sort(P)}function I(e){let t=Object.create(null);for(let r in e){let n=e[r];if(!n.hasDefault)return null;t[r]=n.default}return t}function k(e,t){let r=Object.create(null);for(let n in e){let i=t&&t[n];if(void 0===i){let t=e[n];if(t.hasDefault)i=t.default;else throw RangeError("No value supplied for attribute "+n)}r[n]=i}return r}function F(e,t,r,n){for(let i in t)if(!(i in e))throw RangeError(`Unsupported attribute ${i} for ${r} of type ${n}`);for(let r in e)e[r].validate&&e[r].validate(t[r])}function X(e,t){let r=Object.create(null);if(t)for(let n in t)r[n]=new W(e,n,t[n]);return r}class U{constructor(e,t,r){this.name=e,this.schema=t,this.spec=r,this.markSet=null,this.groups=r.group?r.group.split(" "):[],this.attrs=X(e,r.attrs),this.defaultAttrs=I(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(r.inline||"text"==e),this.isText="text"==e}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==N.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(e){return this.groups.indexOf(e)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:k(this.attrs,e)}create(e=null,t,r){if(this.isText)throw Error("NodeType.create can't construct text nodes");return new w(this,this.computeAttrs(e),o.from(t),u.setFrom(r))}createChecked(e=null,t,r){return t=o.from(t),this.checkContent(t),new w(this,this.computeAttrs(e),t,u.setFrom(r))}createAndFill(e=null,t,r){if(e=this.computeAttrs(e),(t=o.from(t)).size){let e=this.contentMatch.fillBefore(t);if(!e)return null;t=e.append(t)}let n=this.contentMatch.matchFragment(t),i=n&&n.fillBefore(o.empty,!0);return i?new w(this,e,t.append(i),u.setFrom(r)):null}validContent(e){let t=this.contentMatch.matchFragment(e);if(!t||!t.validEnd)return!1;for(let t=0;t<e.childCount;t++)if(!this.allowsMarks(e.child(t).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}checkAttrs(e){F(this.attrs,e,"node",this.name)}allowsMarkType(e){return null==this.markSet||this.markSet.indexOf(e)>-1}allowsMarks(e){if(null==this.markSet)return!0;for(let t=0;t<e.length;t++)if(!this.allowsMarkType(e[t].type))return!1;return!0}allowedMarks(e){let t;if(null==this.markSet)return e;for(let r=0;r<e.length;r++)this.allowsMarkType(e[r].type)?t&&t.push(e[r]):t||(t=e.slice(0,r));return t?t.length?t:u.none:e}static compile(e,t){let r=Object.create(null);e.forEach((e,n)=>r[e]=new U(e,t,n));let n=t.spec.topNode||"doc";if(!r[n])throw RangeError("Schema is missing its top node type ('"+n+"')");if(!r.text)throw RangeError("Every schema needs a 'text' type");for(let e in r.text.attrs)throw RangeError("The text node type should not have attributes");return r}}class W{constructor(e,t,r){let n;this.hasDefault=Object.prototype.hasOwnProperty.call(r,"default"),this.default=r.default,this.validate="string"==typeof r.validate?(n=r.validate.split("|"),r=>{let i=null===r?"null":typeof r;if(0>n.indexOf(i))throw RangeError(`Expected value of type ${n} for attribute ${t} on type ${e}, got ${i}`)}):r.validate}get isRequired(){return!this.hasDefault}}class V{constructor(e,t,r,n){this.name=e,this.rank=t,this.schema=r,this.spec=n,this.attrs=X(e,n.attrs),this.excluded=null;let i=I(this.attrs);this.instance=i?new u(this,i):null}create(e=null){return!e&&this.instance?this.instance:new u(this,k(this.attrs,e))}static compile(e,t){let r=Object.create(null),n=0;return e.forEach((e,i)=>r[e]=new V(e,n++,t,i)),r}removeFromSet(e){for(var t=0;t<e.length;t++)e[t].type==this&&(e=e.slice(0,t).concat(e.slice(t+1)),t--);return e}isInSet(e){for(let t=0;t<e.length;t++)if(e[t].type==this)return e[t]}checkAttrs(e){F(this.attrs,e,"mark",this.name)}excludes(e){return this.excluded.indexOf(e)>-1}}class E{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let t=this.spec={};for(let r in e)t[r]=e[r];t.nodes=n.from(e.nodes),t.marks=n.from(e.marks||{}),this.nodes=U.compile(this.spec.nodes,this),this.marks=V.compile(this.spec.marks,this);let r=Object.create(null);for(let e in this.nodes){if(e in this.marks)throw RangeError(e+" can not be both a node and a mark");let t=this.nodes[e],n=t.spec.content||"",i=t.spec.marks;if(t.contentMatch=r[n]||(r[n]=N.parse(n,this.nodes)),t.inlineContent=t.contentMatch.inlineContent,t.spec.linebreakReplacement){if(this.linebreakReplacement)throw RangeError("Multiple linebreak nodes defined");if(!t.isInline||!t.isLeaf)throw RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=t}t.markSet="_"==i?null:i?Y(this,i.split(" ")):""!=i&&t.inlineContent?null:[]}for(let e in this.marks){let t=this.marks[e],r=t.spec.excludes;t.excluded=null==r?[t]:""==r?[]:Y(this,r.split(" "))}this.nodeFromJSON=e=>w.fromJSON(this,e),this.markFromJSON=e=>u.fromJSON(this,e),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,t=null,r,n){if("string"==typeof e)e=this.nodeType(e);else if(e instanceof U){if(e.schema!=this)throw RangeError("Node type from different schema used ("+e.name+")")}else throw RangeError("Invalid node type: "+e);return e.createChecked(t,r,n)}text(e,t){let r=this.nodes.text;return new O(r,r.defaultAttrs,e,u.setFrom(t))}mark(e,t){return"string"==typeof e&&(e=this.marks[e]),e.create(t)}nodeType(e){let t=this.nodes[e];if(!t)throw RangeError("Unknown node type: "+e);return t}}function Y(e,t){let r=[];for(let n=0;n<t.length;n++){let i=t[n],a=e.marks[i],o=a;if(a)r.push(a);else for(let t in e.marks){let n=e.marks[t];("_"==i||n.spec.group&&n.spec.group.split(" ").indexOf(i)>-1)&&r.push(o=n)}if(!o)throw SyntaxError("Unknown mark type: '"+t[n]+"'")}return r}class D{constructor(e,t){this.schema=e,this.rules=t,this.tags=[],this.styles=[];let r=this.matchedStyles=[];t.forEach(e=>{if(null!=e.tag)this.tags.push(e);else if(null!=e.style){let t=/[^=]*/.exec(e.style)[0];0>r.indexOf(t)&&r.push(t),this.styles.push(e)}}),this.normalizeLists=!this.tags.some(t=>{if(!/^(ul|ol)\b/.test(t.tag)||!t.node)return!1;let r=e.nodes[t.node];return r.contentMatch.matchType(r)})}parse(e,t={}){let r=new G(this,t,!1);return r.addAll(e,u.none,t.from,t.to),r.finish()}parseSlice(e,t={}){let r=new G(this,t,!0);return r.addAll(e,u.none,t.from,t.to),p.maxOpen(r.finish())}matchTag(e,t,r){for(let a=r?this.tags.indexOf(r)+1:0;a<this.tags.length;a++){var n,i;let r=this.tags[a];if(n=e,i=r.tag,(n.matches||n.msMatchesSelector||n.webkitMatchesSelector||n.mozMatchesSelector).call(n,i)&&(void 0===r.namespace||e.namespaceURI==r.namespace)&&(!r.context||t.matchesContext(r.context))){if(r.getAttrs){let t=r.getAttrs(e);if(!1===t)continue;r.attrs=t||void 0}return r}}}matchStyle(e,t,r,n){for(let i=n?this.styles.indexOf(n)+1:0;i<this.styles.length;i++){let n=this.styles[i],a=n.style;if(0==a.indexOf(e)&&(!n.context||r.matchesContext(n.context))&&(!(a.length>e.length)||61==a.charCodeAt(e.length)&&a.slice(e.length+1)==t)){if(n.getAttrs){let e=n.getAttrs(t);if(!1===e)continue;n.attrs=e||void 0}return n}}}static schemaRules(e){let t=[];function r(e){let r=null==e.priority?50:e.priority,n=0;for(;n<t.length;n++){let e=t[n];if((null==e.priority?50:e.priority)<r)break}t.splice(n,0,e)}for(let t in e.marks){let n=e.marks[t].spec.parseDOM;n&&n.forEach(e=>{r(e=H(e)),e.mark||e.ignore||e.clearMark||(e.mark=t)})}for(let t in e.nodes){let n=e.nodes[t].spec.parseDOM;n&&n.forEach(e=>{r(e=H(e)),e.node||e.ignore||e.mark||(e.node=t)})}return t}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new D(e,D.schemaRules(e)))}}let Q={address:!0,article:!0,aside:!0,blockquote:!0,body:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},$={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},B={ol:!0,ul:!0};function Z(e,t,r){return null!=t?!!t|2*("full"===t):e&&"pre"==e.whitespace?3:-5&r}class K{constructor(e,t,r,n,i,a){this.type=e,this.attrs=t,this.marks=r,this.solid=n,this.options=a,this.content=[],this.activeMarks=u.none,this.match=i||(4&a?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let t=this.type.contentMatch.fillBefore(o.from(e));if(t)this.match=this.type.contentMatch.matchFragment(t);else{let t=this.type.contentMatch,r;return(r=t.findWrapping(e.type))?(this.match=t,r):null}}return this.match.findWrapping(e.type)}finish(e){if(!(1&this.options)){let e=this.content[this.content.length-1],t;e&&e.isText&&(t=/[ \t\r\n\u000c]+$/.exec(e.text))&&(e.text.length==t[0].length?this.content.pop():this.content[this.content.length-1]=e.withText(e.text.slice(0,e.text.length-t[0].length)))}let t=o.from(this.content);return!e&&this.match&&(t=t.append(this.match.fillBefore(o.empty,!0))),this.type?this.type.create(this.attrs,t,this.marks):t}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!Q.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class G{constructor(e,t,r){this.parser=e,this.options=t,this.isOpen=r,this.open=0,this.localPreserveWS=!1;let n=t.topNode,i,a=Z(null,t.preserveWhitespace,0)|4*!!r;i=n?new K(n.type,n.attrs,u.none,!0,t.topMatch||n.type.contentMatch,a):r?new K(null,null,u.none,!0,null,a):new K(e.schema.topNodeType,null,u.none,!0,null,a),this.nodes=[i],this.find=t.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e,t){3==e.nodeType?this.addTextNode(e,t):1==e.nodeType&&this.addElement(e,t)}addTextNode(e,t){let r=e.nodeValue,n=this.top,i=2&n.options?"full":this.localPreserveWS||(1&n.options)>0,{schema:a}=this.parser;if("full"===i||n.inlineContext(e)||/[^ \t\r\n\u000c]/.test(r)){if(i)if("full"===i)r=r.replace(/\r\n?/g,"\n");else if(a.linebreakReplacement&&/[\r\n]/.test(r)&&this.top.findWrapping(a.linebreakReplacement.create())){let e=r.split(/\r?\n|\r/);for(let r=0;r<e.length;r++)r&&this.insertNode(a.linebreakReplacement.create(),t,!0),e[r]&&this.insertNode(a.text(e[r]),t,!/\S/.test(e[r]));r=""}else r=r.replace(/\r?\n|\r/g," ");else if(r=r.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(r)&&this.open==this.nodes.length-1){let t=n.content[n.content.length-1],i=e.previousSibling;(!t||i&&"BR"==i.nodeName||t.isText&&/[ \t\r\n\u000c]$/.test(t.text))&&(r=r.slice(1))}r&&this.insertNode(a.text(r),t,!/\S/.test(r)),this.findInText(e)}else this.findInside(e)}addElement(e,t,r){let n=this.localPreserveWS,i=this.top;("PRE"==e.tagName||/pre/.test(e.style&&e.style.whiteSpace))&&(this.localPreserveWS=!0);let a=e.nodeName.toLowerCase(),o;B.hasOwnProperty(a)&&this.parser.normalizeLists&&function(e){for(let t=e.firstChild,r=null;t;t=t.nextSibling){let e=1==t.nodeType?t.nodeName.toLowerCase():null;e&&B.hasOwnProperty(e)&&r?(r.appendChild(t),t=r):"li"==e?r=t:e&&(r=null)}}(e);let s=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(o=this.parser.matchTag(e,this,r));o:if(s?s.ignore:$.hasOwnProperty(a))this.findInside(e),this.ignoreFallback(e,t);else if(!s||s.skip||s.closeParent){s&&s.closeParent?this.open=Math.max(0,this.open-1):s&&s.skip.nodeType&&(e=s.skip);let r,n=this.needsBlock;if(Q.hasOwnProperty(a))i.content.length&&i.content[0].isInline&&this.open&&(this.open--,i=this.top),r=!0,i.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e,t);break o}let o=s&&s.skip?t:this.readStyles(e,t);o&&this.addAll(e,o),r&&this.sync(i),this.needsBlock=n}else{let r=this.readStyles(e,t);r&&this.addElementByRule(e,s,r,!1===s.consuming?o:void 0)}this.localPreserveWS=n}leafFallback(e,t){"BR"==e.nodeName&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode("\n"),t)}ignoreFallback(e,t){"BR"!=e.nodeName||this.top.type&&this.top.type.inlineContent||this.findPlace(this.parser.schema.text("-"),t,!0)}readStyles(e,t){let r=e.style;if(r&&r.length)for(let e=0;e<this.parser.matchedStyles.length;e++){let n=this.parser.matchedStyles[e],i=r.getPropertyValue(n);if(i)for(let e;;){let r=this.parser.matchStyle(n,i,this,e);if(!r)break;if(r.ignore)return null;if(t=r.clearMark?t.filter(e=>!r.clearMark(e)):t.concat(this.parser.schema.marks[r.mark].create(r.attrs)),!1===r.consuming)e=r;else break}}return t}addElementByRule(e,t,r,n){let i,a;if(t.node)if((a=this.parser.schema.nodes[t.node]).isLeaf)this.insertNode(a.create(t.attrs),r,"BR"==e.nodeName)||this.leafFallback(e,r);else{let e=this.enter(a,t.attrs||null,r,t.preserveWhitespace);e&&(i=!0,r=e)}else{let e=this.parser.schema.marks[t.mark];r=r.concat(e.create(t.attrs))}let o=this.top;if(a&&a.isLeaf)this.findInside(e);else if(n)this.addElement(e,r,n);else if(t.getContent)this.findInside(e),t.getContent(e,this.parser.schema).forEach(e=>this.insertNode(e,r,!1));else{let n=e;"string"==typeof t.contentElement?n=e.querySelector(t.contentElement):"function"==typeof t.contentElement?n=t.contentElement(e):t.contentElement&&(n=t.contentElement),this.findAround(e,n,!0),this.addAll(n,r),this.findAround(e,n,!1)}i&&this.sync(o)&&this.open--}addAll(e,t,r,n){let i=r||0;for(let a=r?e.childNodes[r]:e.firstChild,o=null==n?null:e.childNodes[n];a!=o;a=a.nextSibling,++i)this.findAtPoint(e,i),this.addDOM(a,t);this.findAtPoint(e,i)}findPlace(e,t,r){let n,i;for(let t=this.open,a=0;t>=0;t--){let o=this.nodes[t],s=o.findWrapping(e);if(s&&(!n||n.length>s.length+a)&&(n=s,i=o,!s.length))break;if(o.solid){if(r)break;a+=2}}if(!n)return null;this.sync(i);for(let e=0;e<n.length;e++)t=this.enterInner(n[e],null,t,!1);return t}insertNode(e,t,r){if(e.isInline&&this.needsBlock&&!this.top.type){let e=this.textblockFromContext();e&&(t=this.enterInner(e,null,t))}let n=this.findPlace(e,t,r);if(n){this.closeExtra();let t=this.top;t.match&&(t.match=t.match.matchType(e.type));let r=u.none;for(let i of n.concat(e.marks))(t.type?t.type.allowsMarkType(i.type):z(i.type,e.type))&&(r=i.addToSet(r));return t.content.push(e.mark(r)),!0}return!1}enter(e,t,r,n){let i=this.findPlace(e.create(t),r,!1);return i&&(i=this.enterInner(e,t,r,!0,n)),i}enterInner(e,t,r,n=!1,i){this.closeExtra();let a=this.top;a.match=a.match&&a.match.matchType(e);let o=Z(e,i,a.options);4&a.options&&0==a.content.length&&(o|=4);let s=u.none;return r=r.filter(t=>(a.type?!a.type.allowsMarkType(t.type):!z(t.type,e))||(s=t.addToSet(s),!1)),this.nodes.push(new K(e,t,s,n,null,o)),this.open++,r}closeExtra(e=!1){let t=this.nodes.length-1;if(t>this.open){for(;t>this.open;t--)this.nodes[t-1].content.push(this.nodes[t].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!!(this.isOpen||this.options.topOpen))}sync(e){for(let t=this.open;t>=0;t--)if(this.nodes[t]==e)return this.open=t,!0;else this.localPreserveWS&&(this.nodes[t].options|=1);return!1}get currentPos(){this.closeExtra();let e=0;for(let t=this.open;t>=0;t--){let r=this.nodes[t].content;for(let t=r.length-1;t>=0;t--)e+=r[t].nodeSize;t&&e++}return e}findAtPoint(e,t){if(this.find)for(let r=0;r<this.find.length;r++)this.find[r].node==e&&this.find[r].offset==t&&(this.find[r].pos=this.currentPos)}findInside(e){if(this.find)for(let t=0;t<this.find.length;t++)null==this.find[t].pos&&1==e.nodeType&&e.contains(this.find[t].node)&&(this.find[t].pos=this.currentPos)}findAround(e,t,r){if(e!=t&&this.find)for(let n=0;n<this.find.length;n++)null==this.find[n].pos&&1==e.nodeType&&e.contains(this.find[n].node)&&t.compareDocumentPosition(this.find[n].node)&(r?2:4)&&(this.find[n].pos=this.currentPos)}findInText(e){if(this.find)for(let t=0;t<this.find.length;t++)this.find[t].node==e&&(this.find[t].pos=this.currentPos-(e.nodeValue.length-this.find[t].offset))}matchesContext(e){if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let t=e.split("/"),r=this.options.context,n=!this.isOpen&&(!r||r.parent.type==this.nodes[0].type),i=-(r?r.depth+1:0)+ +!n,a=(e,o)=>{for(;e>=0;e--){let s=t[e];if(""==s){if(e==t.length-1||0==e)continue;for(;o>=i;o--)if(a(e-1,o))return!0;return!1}{let e=o>0||0==o&&n?this.nodes[o].type:r&&o>=i?r.node(o-i).type:null;if(!e||e.name!=s&&!e.isInGroup(s))return!1;o--}}return!0};return a(t.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let t=e.depth;t>=0;t--){let r=e.node(t).contentMatchAt(e.indexAfter(t)).defaultType;if(r&&r.isTextblock&&r.defaultAttrs)return r}for(let e in this.parser.schema.nodes){let t=this.parser.schema.nodes[e];if(t.isTextblock&&t.defaultAttrs)return t}}}function H(e){let t={};for(let r in e)t[r]=e[r];return t}function z(e,t){let r=t.schema.nodes;for(let n in r){let i=r[n];if(!i.allowsMarkType(e))continue;let a=[],o=e=>{a.push(e);for(let r=0;r<e.edgeCount;r++){let{type:n,next:i}=e.edge(r);if(n==t||0>a.indexOf(i)&&o(i))return!0}};if(o(i.contentMatch))return!0}}class J{constructor(e,t){this.nodes=e,this.marks=t}serializeFragment(e,t={},r){r||(r=q(t).createDocumentFragment());let n=r,i=[];return e.forEach(e=>{if(i.length||e.marks.length){let r=0,a=0;for(;r<i.length&&a<e.marks.length;){let t=e.marks[a];if(!this.marks[t.type.name]){a++;continue}if(!t.eq(i[r][0])||!1===t.type.spec.spanning)break;r++,a++}for(;r<i.length;)n=i.pop()[1];for(;a<e.marks.length;){let r=e.marks[a++],o=this.serializeMark(r,e.isInline,t);o&&(i.push([r,n]),n.appendChild(o.dom),n=o.contentDOM||o.dom)}}n.appendChild(this.serializeNodeInner(e,t))}),r}serializeNodeInner(e,t){if(e.isText)return q(t).createTextNode(e.text);let{dom:r,contentDOM:n}=et(q(t),this.nodes[e.type.name](e),null,e.attrs);if(n){if(e.isLeaf)throw RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(e.content,t,n)}return r}serializeNode(e,t={}){let r=this.serializeNodeInner(e,t);for(let n=e.marks.length-1;n>=0;n--){let i=this.serializeMark(e.marks[n],e.isInline,t);i&&((i.contentDOM||i.dom).appendChild(r),r=i.dom)}return r}serializeMark(e,t,r={}){let n=this.marks[e.type.name];return n&&et(q(r),n(e,t),null,e.attrs)}static renderSpec(e,t,r=null,n){return"string"==typeof t?{dom:e.createTextNode(t)}:et(e,t,r,n)}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new J(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let t=j(e.nodes);return t.text||(t.text=e=>e.text),t}static marksFromSchema(e){return j(e.marks)}}function j(e){let t={};for(let r in e){let n=e[r].spec.toDOM;n&&(t[r]=n)}return t}function q(e){return e.document||window.document}let ee=new WeakMap;function et(e,t,r,n){let i,a,o;if(1==t.nodeType)return{dom:t};if(t.dom&&1==t.dom.nodeType)return t;let s=t[0],l;if("string"!=typeof s)throw RangeError("Invalid array passed to renderSpec");if(n&&(void 0===(a=ee.get(n))&&ee.set(n,(o=null,!function e(t){if(t&&"object"==typeof t)if(Array.isArray(t))if("string"==typeof t[0])o||(o=[]),o.push(t);else for(let r=0;r<t.length;r++)e(t[r]);else for(let r in t)e(t[r])}(n),a=o)),l=a)&&l.indexOf(t)>-1)throw RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");let c=s.indexOf(" ");c>0&&(r=s.slice(0,c),s=s.slice(c+1));let u=r?e.createElementNS(r,s):e.createElement(s),h=t[1],p=1;if(h&&"object"==typeof h&&null==h.nodeType&&!Array.isArray(h)){for(let e in p=2,h)if(null!=h[e]){let t=e.indexOf(" ");t>0?u.setAttributeNS(e.slice(0,t),e.slice(t+1),h[e]):"style"==e&&u.style?u.style.cssText=h[e]:u.setAttribute(e,h[e])}}for(let a=p;a<t.length;a++){let o=t[a];if(0===o){if(a<t.length-1||a>p)throw RangeError("Content hole must be the only child of its parent node");return{dom:u,contentDOM:u}}if("string"==typeof o)u.appendChild(e.createTextNode(o));else{let{dom:t,contentDOM:a}=et(e,o,r,n);if(u.appendChild(t),a){if(i)throw RangeError("Multiple content holes");i=a}}}return{dom:u,contentDOM:i}}},57644(e,t,r){var n=r(96294);let i=["p",0],a=["blockquote",0],o=["hr"],s=["pre",["code",0]],l=["br"],c={doc:{content:"block+"},paragraph:{content:"inline*",group:"block",parseDOM:[{tag:"p"}],toDOM:()=>i},blockquote:{content:"block+",group:"block",defining:!0,parseDOM:[{tag:"blockquote"}],toDOM:()=>a},horizontal_rule:{group:"block",parseDOM:[{tag:"hr"}],toDOM:()=>o},heading:{attrs:{level:{default:1,validate:"number"}},content:"inline*",group:"block",defining:!0,parseDOM:[{tag:"h1",attrs:{level:1}},{tag:"h2",attrs:{level:2}},{tag:"h3",attrs:{level:3}},{tag:"h4",attrs:{level:4}},{tag:"h5",attrs:{level:5}},{tag:"h6",attrs:{level:6}}],toDOM:e=>["h"+e.attrs.level,0]},code_block:{content:"text*",marks:"",group:"block",code:!0,defining:!0,parseDOM:[{tag:"pre",preserveWhitespace:"full"}],toDOM:()=>s},text:{group:"inline"},image:{inline:!0,attrs:{src:{validate:"string"},alt:{default:null,validate:"string|null"},title:{default:null,validate:"string|null"}},group:"inline",draggable:!0,parseDOM:[{tag:"img[src]",getAttrs:e=>({src:e.getAttribute("src"),title:e.getAttribute("title"),alt:e.getAttribute("alt")})}],toDOM(e){let{src:t,alt:r,title:n}=e.attrs;return["img",{src:t,alt:r,title:n}]}},hard_break:{inline:!0,group:"inline",selectable:!1,parseDOM:[{tag:"br"}],toDOM:()=>l}},u=["em",0],h=["strong",0],p=["code",0],d={link:{attrs:{href:{validate:"string"},title:{default:null,validate:"string|null"}},inclusive:!1,parseDOM:[{tag:"a[href]",getAttrs:e=>({href:e.getAttribute("href"),title:e.getAttribute("title")})}],toDOM(e){let{href:t,title:r}=e.attrs;return["a",{href:t,title:r},0]}},em:{parseDOM:[{tag:"i"},{tag:"em"},{style:"font-style=italic"},{style:"font-style=normal",clearMark:e=>"em"==e.type.name}],toDOM:()=>u},strong:{parseDOM:[{tag:"strong"},{tag:"b",getAttrs:e=>"normal"!=e.style.fontWeight&&null},{style:"font-weight=400",clearMark:e=>"strong"==e.type.name},{style:"font-weight",getAttrs:e=>/^(bold(er)?|[5-9]\d{2,})$/.test(e)&&null}],toDOM:()=>h},code:{code:!0,parseDOM:[{tag:"code"}],toDOM:()=>p}};new n.Sj({nodes:c,marks:d}),r.d(t,{},{Z8:d,a9:c})},3772(e,t,r){var n=r(38262),i=r(96294),a=r(42845);let o=["li",0];function s(e,t=null){return function(r,a){let{$from:o,$to:s}=r.selection,l=o.blockRange(s);if(!l)return!1;let c=a?r.tr:null;return!!function(e,t,r,a=null){let o=!1,s=t,l=t.$from.doc;if(t.depth>=2&&t.$from.node(t.depth-1).type.compatibleContent(r)&&0==t.startIndex){if(0==t.$from.index(t.depth-1))return!1;let e=l.resolve(t.start-2);s=new i.u$(e,e,t.depth),t.endIndex<t.parent.childCount&&(t=new i.u$(t.$from,l.resolve(t.$to.end(t.depth)),t.depth)),o=!0}let c=(0,n.oM)(s,r,a,t);return!!c&&(e&&function(e,t,r,a,o){let s=i.FK.empty;for(let e=r.length-1;e>=0;e--)s=i.FK.from(r[e].type.create(r[e].attrs,s));e.step(new n.Wg(t.start-2*!!a,t.end,t.start,t.end,new i.Ji(s,0,0),r.length,!0));let l=0;for(let e=0;e<r.length;e++)r[e].type==o&&(l=e+1);let c=r.length-l,u=t.start+r.length-2*!!a,h=t.parent;for(let r=t.startIndex,i=t.endIndex,a=!0;r<i;r++,a=!1)!a&&(0,n.zy)(e.doc,u,c)&&(e.split(u,c),u+=2*c),u+=h.child(r).nodeSize}(e,t,c,o,r),!0)}(c,l,e,t)&&(a&&a(c.scrollIntoView()),!0)}}function l(e,t){return function(r,o){let{$from:s,$to:l,node:c}=r.selection;if(c&&c.isBlock||s.depth<2||!s.sameParent(l))return!1;let u=s.node(-1);if(u.type!=e)return!1;if(0==s.parent.content.size&&s.node(-1).childCount==s.indexAfter(-1)){if(3==s.depth||s.node(-3).type!=e||s.index(-2)!=s.node(-2).childCount-1)return!1;if(o){let t=i.FK.empty,n=s.index(-1)?1:s.index(-2)?2:3;for(let e=s.depth-n;e>=s.depth-3;e--)t=i.FK.from(s.node(e).copy(t));let l=s.indexAfter(-1)<s.node(-2).childCount?1:s.indexAfter(-2)<s.node(-3).childCount?2:3;t=t.append(i.FK.from(e.createAndFill()));let c=s.before(s.depth-(n-1)),u=r.tr.replace(c,s.after(-l),new i.Ji(t,4-n,0)),h=-1;u.doc.nodesBetween(c,u.doc.content.size,(e,t)=>{if(h>-1)return!1;e.isTextblock&&0==e.content.size&&(h=t+1)}),h>-1&&u.setSelection(a.LN.near(u.doc.resolve(h))),o(u.scrollIntoView())}return!0}let h=l.pos==s.end()?u.contentMatchAt(0).defaultType:null,p=r.tr.delete(s.pos,l.pos),d=h?[t?{type:e,attrs:t}:null,{type:h}]:void 0;return!!(0,n.zy)(p.doc,s.pos,2,d)&&(o&&o(p.split(s.pos,2,d).scrollIntoView()),!0)}}function c(e){return function(t,r){let{$from:a,$to:o}=t.selection,s=a.blockRange(o,t=>t.childCount>0&&t.firstChild.type==e);return!!s&&(!r||(a.node(s.depth-1).type==e?function(e,t,r,a){let o=e.tr,s=a.end,l=a.$to.end(a.depth);s<l&&(o.step(new n.Wg(s-1,l,s,l,new i.Ji(i.FK.from(r.create(null,a.parent.copy())),1,0),1,!0)),a=new i.u$(o.doc.resolve(a.$from.pos),o.doc.resolve(l),a.depth));let c=(0,n.jP)(a);if(null==c)return!1;o.lift(a,c);let u=o.doc.resolve(o.mapping.map(s,-1)-1);return(0,n.n9)(o.doc,u.pos)&&u.nodeBefore.type==u.nodeAfter.type&&o.join(u.pos),t(o.scrollIntoView()),!0}(t,r,e,s):function(e,t,r){let a=e.tr,o=r.parent;for(let e=r.end,t=r.endIndex-1,n=r.startIndex;t>n;t--)e-=o.child(t).nodeSize,a.delete(e-1,e+1);let s=a.doc.resolve(r.start),l=s.nodeAfter;if(a.mapping.map(r.end)!=r.start+s.nodeAfter.nodeSize)return!1;let c=0==r.startIndex,u=r.endIndex==o.childCount,h=s.node(-1),p=s.index(-1);if(!h.canReplace(p+ +!c,p+1,l.content.append(u?i.FK.empty:i.FK.from(o))))return!1;let d=s.pos,f=d+l.nodeSize;return a.step(new n.Wg(d-!!c,f+ +!!u,d+1,f-1,new i.Ji((c?i.FK.empty:i.FK.from(o.copy(i.FK.empty))).append(u?i.FK.empty:i.FK.from(o.copy(i.FK.empty))),+!c,+!u),+!c)),t(a.scrollIntoView()),!0}(t,r,s)))}}function u(e){return function(t,r){let{$from:a,$to:o}=t.selection,s=a.blockRange(o,t=>t.childCount>0&&t.firstChild.type==e);if(!s)return!1;let l=s.startIndex;if(0==l)return!1;let c=s.parent,u=c.child(l-1);if(u.type!=e)return!1;if(r){let a=u.lastChild&&u.lastChild.type==c.type,o=i.FK.from(a?e.create():null),l=new i.Ji(i.FK.from(e.create(null,i.FK.from(c.type.create(null,o)))),a?3:1,0),h=s.start,p=s.end;r(t.tr.step(new n.Wg(h-(a?3:1),p,h,p,l,1,!0)).scrollIntoView())}return!0}}r.d(t,{$B:()=>u,Sd:()=>s,T2:()=>c,wn:()=>l},{Aw:{parseDOM:[{tag:"li"}],toDOM:()=>o,defining:!0}})},42845(e,t,r){var n=r(96294),i=r(38262);let a=Object.create(null);class o{constructor(e,t,r){this.$anchor=e,this.$head=t,this.ranges=r||[new s(e.min(t),e.max(t))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let e=this.ranges;for(let t=0;t<e.length;t++)if(e[t].$from.pos!=e[t].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(e,t=n.Ji.empty){let r=t.content.lastChild,i=null;for(let e=0;e<t.openEnd;e++)i=r,r=r.lastChild;let a=e.steps.length,o=this.ranges;for(let s=0;s<o.length;s++){let{$from:l,$to:c}=o[s],u=e.mapping.slice(a);e.replaceRange(u.map(l.pos),u.map(c.pos),s?n.Ji.empty:t),0==s&&A(e,a,(r?r.isInline:i&&i.isTextblock)?-1:1)}}replaceWith(e,t){let r=e.steps.length,n=this.ranges;for(let i=0;i<n.length;i++){let{$from:a,$to:o}=n[i],s=e.mapping.slice(r),l=s.map(a.pos),c=s.map(o.pos);i?e.deleteRange(l,c):(e.replaceRangeWith(l,c,t),A(e,r,t.isInline?-1:1))}}static findFrom(e,t,r=!1){let n=e.parent.inlineContent?new u(e):g(e.node(0),e.parent,e.pos,e.index(),t,r);if(n)return n;for(let n=e.depth-1;n>=0;n--){let i=t<0?g(e.node(0),e.node(n),e.before(n+1),e.index(n),t,r):g(e.node(0),e.node(n),e.after(n+1),e.index(n)+1,t,r);if(i)return i}return null}static near(e,t=1){return this.findFrom(e,t)||this.findFrom(e,-t)||new f(e.node(0))}static atStart(e){return g(e,e,0,0,1)||new f(e)}static atEnd(e){return g(e,e,e.content.size,e.childCount,-1)||new f(e)}static fromJSON(e,t){if(!t||!t.type)throw RangeError("Invalid input for Selection.fromJSON");let r=a[t.type];if(!r)throw RangeError(`No selection type ${t.type} defined`);return r.fromJSON(e,t)}static jsonID(e,t){if(e in a)throw RangeError("Duplicate use of selection JSON ID "+e);return a[e]=t,t.prototype.jsonID=e,t}getBookmark(){return u.between(this.$anchor,this.$head).getBookmark()}}o.prototype.visible=!0;class s{constructor(e,t){this.$from=e,this.$to=t}}let l=!1;function c(e){l||e.parent.inlineContent||(l=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+e.parent.type.name+")"))}class u extends o{constructor(e,t=e){c(e),c(t),super(e,t)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(e,t){let r=e.resolve(t.map(this.head));if(!r.parent.inlineContent)return o.near(r);let n=e.resolve(t.map(this.anchor));return new u(n.parent.inlineContent?n:r,r)}replace(e,t=n.Ji.empty){if(super.replace(e,t),t==n.Ji.empty){let t=this.$from.marksAcross(this.$to);t&&e.ensureMarks(t)}}eq(e){return e instanceof u&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new h(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(e,t){if("number"!=typeof t.anchor||"number"!=typeof t.head)throw RangeError("Invalid input for TextSelection.fromJSON");return new u(e.resolve(t.anchor),e.resolve(t.head))}static create(e,t,r=t){let n=e.resolve(t);return new this(n,r==t?n:e.resolve(r))}static between(e,t,r){let n=e.pos-t.pos;if((!r||n)&&(r=n>=0?1:-1),!t.parent.inlineContent){let e=o.findFrom(t,r,!0)||o.findFrom(t,-r,!0);if(!e)return o.near(t,r);t=e.$head}return e.parent.inlineContent||(0==n?e=t:(e=(o.findFrom(e,-r,!0)||o.findFrom(e,r,!0)).$anchor).pos<t.pos!=n<0&&(e=t)),new u(e,t)}}o.jsonID("text",u);class h{constructor(e,t){this.anchor=e,this.head=t}map(e){return new h(e.map(this.anchor),e.map(this.head))}resolve(e){return u.between(e.resolve(this.anchor),e.resolve(this.head))}}class p extends o{constructor(e){let t=e.nodeAfter,r=e.node(0).resolve(e.pos+t.nodeSize);super(e,r),this.node=t}map(e,t){let{deleted:r,pos:n}=t.mapResult(this.anchor),i=e.resolve(n);return r?o.near(i):new p(i)}content(){return new n.Ji(n.FK.from(this.node),0,0)}eq(e){return e instanceof p&&e.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new d(this.anchor)}static fromJSON(e,t){if("number"!=typeof t.anchor)throw RangeError("Invalid input for NodeSelection.fromJSON");return new p(e.resolve(t.anchor))}static create(e,t){return new p(e.resolve(t))}static isSelectable(e){return!e.isText&&!1!==e.type.spec.selectable}}p.prototype.visible=!1,o.jsonID("node",p);class d{constructor(e){this.anchor=e}map(e){let{deleted:t,pos:r}=e.mapResult(this.anchor);return t?new h(r,r):new d(r)}resolve(e){let t=e.resolve(this.anchor),r=t.nodeAfter;return r&&p.isSelectable(r)?new p(t):o.near(t)}}class f extends o{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,t=n.Ji.empty){if(t==n.Ji.empty){e.delete(0,e.doc.content.size);let t=o.atStart(e.doc);t.eq(e.selection)||e.setSelection(t)}else super.replace(e,t)}toJSON(){return{type:"all"}}static fromJSON(e){return new f(e)}map(e){return new f(e)}eq(e){return e instanceof f}getBookmark(){return m}}o.jsonID("all",f);let m={map(){return this},resolve:e=>new f(e)};function g(e,t,r,n,i,a=!1){if(t.inlineContent)return u.create(e,r);for(let o=n-(i>0?0:1);i>0?o<t.childCount:o>=0;o+=i){let n=t.child(o);if(n.isAtom){if(!a&&p.isSelectable(n))return p.create(e,r-(i<0?n.nodeSize:0))}else{let t=g(e,n,r+i,i<0?n.childCount:0,i,a);if(t)return t}r+=n.nodeSize*i}return null}function A(e,t,r){let n,a=e.steps.length-1;if(a<t)return;let s=e.steps[a];(s instanceof i.Ln||s instanceof i.Wg)&&(e.mapping.maps[a].forEach((e,t,r,i)=>{null==n&&(n=i)}),e.setSelection(o.near(e.doc.resolve(n),r)))}class y extends i.dL{constructor(e){super(e.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=e.selection,this.storedMarks=e.storedMarks}get selection(){return this.curSelectionFor<this.steps.length&&(this.curSelection=this.curSelection.map(this.doc,this.mapping.slice(this.curSelectionFor)),this.curSelectionFor=this.steps.length),this.curSelection}setSelection(e){if(e.$from.doc!=this.doc)throw RangeError("Selection passed to setSelection must point at the current document");return this.curSelection=e,this.curSelectionFor=this.steps.length,this.updated=(1|this.updated)&-3,this.storedMarks=null,this}get selectionSet(){return(1&this.updated)>0}setStoredMarks(e){return this.storedMarks=e,this.updated|=2,this}ensureMarks(e){return n.CU.sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this}addStoredMark(e){return this.ensureMarks(e.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(e){return this.ensureMarks(e.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(2&this.updated)>0}addStep(e,t){super.addStep(e,t),this.updated=-3&this.updated,this.storedMarks=null}setTime(e){return this.time=e,this}replaceSelection(e){return this.selection.replace(this,e),this}replaceSelectionWith(e,t=!0){let r=this.selection;return t&&(e=e.mark(this.storedMarks||(r.empty?r.$from.marks():r.$from.marksAcross(r.$to)||n.CU.none))),r.replaceWith(this,e),this}deleteSelection(){return this.selection.replace(this),this}insertText(e,t,r){let n=this.doc.type.schema;if(null==t)return e?this.replaceSelectionWith(n.text(e),!0):this.deleteSelection();{if(null==r&&(r=t),!e)return this.deleteRange(t,r);let i=this.storedMarks;if(!i){let e=this.doc.resolve(t);i=r==t?e.marks():e.marksAcross(this.doc.resolve(r))}return this.replaceRangeWith(t,r,n.text(e,i)),this.selection.empty||this.selection.to!=t+e.length||this.setSelection(o.near(this.selection.$to)),this}}setMeta(e,t){return this.meta["string"==typeof e?e:e.key]=t,this}getMeta(e){return this.meta["string"==typeof e?e:e.key]}get isGeneric(){for(let e in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=4,this}get scrolledIntoView(){return(4&this.updated)>0}}function v(e,t){return t&&e?e.bind(t):e}class R{constructor(e,t,r){this.name=e,this.init=v(t.init,r),this.apply=v(t.apply,r)}}let b=[new R("doc",{init:e=>e.doc||e.schema.topNodeType.createAndFill(),apply:e=>e.doc}),new R("selection",{init:(e,t)=>e.selection||o.atStart(t.doc),apply:e=>e.selection}),new R("storedMarks",{init:e=>e.storedMarks||null,apply:(e,t,r,n)=>n.selection.$cursor?e.storedMarks:null}),new R("scrollToSelection",{init:()=>0,apply:(e,t)=>e.scrolledIntoView?t+1:t})];class x{constructor(e,t){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=b.slice(),t&&t.forEach(e=>{if(this.pluginsByKey[e.key])throw RangeError("Adding different instances of a keyed plugin ("+e.key+")");this.plugins.push(e),this.pluginsByKey[e.key]=e,e.spec.state&&this.fields.push(new R(e.key,e.spec.state,e))})}}class M{constructor(e){this.config=e}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(e){return this.applyTransaction(e).state}filterTransaction(e,t=-1){for(let r=0;r<this.config.plugins.length;r++)if(r!=t){let t=this.config.plugins[r];if(t.spec.filterTransaction&&!t.spec.filterTransaction.call(t,e,this))return!1}return!0}applyTransaction(e){if(!this.filterTransaction(e))return{state:this,transactions:[]};let t=[e],r=this.applyInner(e),n=null;for(;;){let i=!1;for(let a=0;a<this.config.plugins.length;a++){let o=this.config.plugins[a];if(o.spec.appendTransaction){let s=n?n[a].n:0,l=n?n[a].state:this,c=s<t.length&&o.spec.appendTransaction.call(o,s?t.slice(s):t,l,r);if(c&&r.filterTransaction(c,a)){if(c.setMeta("appendedTransaction",e),!n){n=[];for(let e=0;e<this.config.plugins.length;e++)n.push(e<a?{state:r,n:t.length}:{state:this,n:0})}t.push(c),r=r.applyInner(c),i=!0}n&&(n[a]={state:r,n:t.length})}}if(!i)return{state:r,transactions:t}}}applyInner(e){if(!e.before.eq(this.doc))throw RangeError("Applying a mismatched transaction");let t=new M(this.config),r=this.config.fields;for(let n=0;n<r.length;n++){let i=r[n];t[i.name]=i.apply(e,this[i.name],this,t)}return t}get tr(){return new y(this)}static create(e){let t=new x(e.doc?e.doc.type.schema:e.schema,e.plugins),r=new M(t);for(let n=0;n<t.fields.length;n++)r[t.fields[n].name]=t.fields[n].init(e,r);return r}reconfigure(e){let t=new x(this.schema,e.plugins),r=t.fields,n=new M(t);for(let t=0;t<r.length;t++){let i=r[t].name;n[i]=this.hasOwnProperty(i)?this[i]:r[t].init(e,n)}return n}toJSON(e){let t={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(t.storedMarks=this.storedMarks.map(e=>e.toJSON())),e&&"object"==typeof e)for(let r in e){if("doc"==r||"selection"==r)throw RangeError("The JSON fields `doc` and `selection` are reserved");let n=e[r],i=n.spec.state;i&&i.toJSON&&(t[r]=i.toJSON.call(n,this[n.key]))}return t}static fromJSON(e,t,r){if(!t)throw RangeError("Invalid input for EditorState.fromJSON");if(!e.schema)throw RangeError("Required config field 'schema' missing");let i=new x(e.schema,e.plugins),a=new M(i);return i.fields.forEach(i=>{if("doc"==i.name)a.doc=n.bP.fromJSON(e.schema,t.doc);else if("selection"==i.name)a.selection=o.fromJSON(a.doc,t.selection);else if("storedMarks"==i.name)t.storedMarks&&(a.storedMarks=t.storedMarks.map(e.schema.markFromJSON));else{if(r)for(let n in r){let o=r[n],s=o.spec.state;if(o.key==i.name&&s&&s.fromJSON&&Object.prototype.hasOwnProperty.call(t,n)){a[i.name]=s.fromJSON.call(o,e,t[n],a);return}}a[i.name]=i.init(e,a)}}),a}}class S{constructor(e){this.spec=e,this.props={},e.props&&function e(t,r,n){for(let i in t){let a=t[i];a instanceof Function?a=a.bind(r):"handleDOMEvents"==i&&(a=e(a,r,{})),n[i]=a}return n}(e.props,this,this.props),this.key=e.key?e.key.key:O("plugin")}getState(e){return e[this.key]}}let w=Object.create(null);function O(e){return e in w?e+"$"+ ++w[e]:(w[e]=0,e+"$")}class L{constructor(e="key"){this.key=O(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}r.d(t,{$t:()=>M,LN:()=>o,U3:()=>u,hs:()=>L,i5:()=>f,k_:()=>S,nh:()=>p,yn:()=>s})},38262(e,t,r){var n=r(96294);class i{constructor(e,t,r){this.pos=e,this.delInfo=t,this.recover=r}get deleted(){return(8&this.delInfo)>0}get deletedBefore(){return(5&this.delInfo)>0}get deletedAfter(){return(6&this.delInfo)>0}get deletedAcross(){return(4&this.delInfo)>0}}class a{constructor(e,t=!1){if(this.ranges=e,this.inverted=t,!e.length&&a.empty)return a.empty}recover(e){let t=0,r=65535&e;if(!this.inverted)for(let e=0;e<r;e++)t+=this.ranges[3*e+2]-this.ranges[3*e+1];return this.ranges[3*r]+t+(e-(65535&e))/65536}mapResult(e,t=1){return this._map(e,t,!1)}map(e,t=1){return this._map(e,t,!0)}_map(e,t,r){let n=0,a=this.inverted?2:1,o=this.inverted?1:2;for(let s=0;s<this.ranges.length;s+=3){let l=this.ranges[s]-(this.inverted?n:0);if(l>e)break;let c=this.ranges[s+a],u=this.ranges[s+o],h=l+c;if(e<=h){let a=c?e==l?-1:e==h?1:t:t,o=l+n+(a<0?0:u);if(r)return o;let p=e==(t<0?l:h)?null:s/3+(e-l)*65536,d=e==l?2:e==h?1:4;return(t<0?e!=l:e!=h)&&(d|=8),new i(o,d,p)}n+=u-c}return r?e+n:new i(e+n,0,null)}touches(e,t){let r=0,n=65535&t,i=this.inverted?2:1,a=this.inverted?1:2;for(let t=0;t<this.ranges.length;t+=3){let o=this.ranges[t]-(this.inverted?r:0);if(o>e)break;let s=this.ranges[t+i];if(e<=o+s&&t==3*n)return!0;r+=this.ranges[t+a]-s}return!1}forEach(e){let t=this.inverted?2:1,r=this.inverted?1:2;for(let n=0,i=0;n<this.ranges.length;n+=3){let a=this.ranges[n],o=a-(this.inverted?i:0),s=a+(this.inverted?0:i),l=this.ranges[n+t],c=this.ranges[n+r];e(o,o+l,s,s+c),i+=c-l}}invert(){return new a(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return 0==e?a.empty:new a(e<0?[0,-e,0]:[0,0,e])}}a.empty=new a([]);class o{constructor(e,t,r=0,n=e?e.length:0){this.mirror=t,this.from=r,this.to=n,this._maps=e||[],this.ownData=!(e||t)}get maps(){return this._maps}slice(e=0,t=this.maps.length){return new o(this._maps,this.mirror,e,t)}appendMap(e,t){this.ownData||(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),this.ownData=!0),this.to=this._maps.push(e),null!=t&&this.setMirror(this._maps.length-1,t)}appendMapping(e){for(let t=0,r=this._maps.length;t<e._maps.length;t++){let n=e.getMirror(t);this.appendMap(e._maps[t],null!=n&&n<t?r+n:void 0)}}getMirror(e){if(this.mirror){for(let t=0;t<this.mirror.length;t++)if(this.mirror[t]==e)return this.mirror[t+(t%2?-1:1)]}}setMirror(e,t){this.mirror||(this.mirror=[]),this.mirror.push(e,t)}appendMappingInverted(e){for(let t=e.maps.length-1,r=this._maps.length+e._maps.length;t>=0;t--){let n=e.getMirror(t);this.appendMap(e._maps[t].invert(),null!=n&&n>t?r-n-1:void 0)}}invert(){let e=new o;return e.appendMappingInverted(this),e}map(e,t=1){if(this.mirror)return this._map(e,t,!0);for(let r=this.from;r<this.to;r++)e=this._maps[r].map(e,t);return e}mapResult(e,t=1){return this._map(e,t,!1)}_map(e,t,r){let n=0;for(let r=this.from;r<this.to;r++){let i=this._maps[r].mapResult(e,t);if(null!=i.recover){let t=this.getMirror(r);if(null!=t&&t>r&&t<this.to){r=t,e=this._maps[t].recover(i.recover);continue}}n|=i.delInfo,e=i.pos}return r?e:new i(e,n,null)}}let s=Object.create(null);class l{getMap(){return a.empty}merge(e){return null}static fromJSON(e,t){if(!t||!t.stepType)throw RangeError("Invalid input for Step.fromJSON");let r=s[t.stepType];if(!r)throw RangeError(`No step type ${t.stepType} defined`);return r.fromJSON(e,t)}static jsonID(e,t){if(e in s)throw RangeError("Duplicate use of step JSON ID "+e);return s[e]=t,t.prototype.jsonID=e,t}}class c{constructor(e,t){this.doc=e,this.failed=t}static ok(e){return new c(e,null)}static fail(e){return new c(null,e)}static fromReplace(e,t,r,i){try{return c.ok(e.replace(t,r,i))}catch(e){if(e instanceof n.vI)return c.fail(e.message);throw e}}}function u(e,t,r){let i=[];for(let n=0;n<e.childCount;n++){let a=e.child(n);a.content.size&&(a=a.copy(u(a.content,t,a))),a.isInline&&(a=t(a,r,n)),i.push(a)}return n.FK.fromArray(i)}class h extends l{constructor(e,t,r){super(),this.from=e,this.to=t,this.mark=r}apply(e){let t=e.slice(this.from,this.to),r=e.resolve(this.from),i=r.node(r.sharedDepth(this.to)),a=new n.Ji(u(t.content,(e,t)=>e.isAtom&&t.type.allowsMarkType(this.mark.type)?e.mark(this.mark.addToSet(e.marks)):e,i),t.openStart,t.openEnd);return c.fromReplace(e,this.from,this.to,a)}invert(){return new p(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return t.deleted&&r.deleted||t.pos>=r.pos?null:new h(t.pos,r.pos,this.mark)}merge(e){return e instanceof h&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new h(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw RangeError("Invalid input for AddMarkStep.fromJSON");return new h(t.from,t.to,e.markFromJSON(t.mark))}}l.jsonID("addMark",h);class p extends l{constructor(e,t,r){super(),this.from=e,this.to=t,this.mark=r}apply(e){let t=e.slice(this.from,this.to),r=new n.Ji(u(t.content,e=>e.mark(this.mark.removeFromSet(e.marks)),e),t.openStart,t.openEnd);return c.fromReplace(e,this.from,this.to,r)}invert(){return new h(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return t.deleted&&r.deleted||t.pos>=r.pos?null:new p(t.pos,r.pos,this.mark)}merge(e){return e instanceof p&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new p(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw RangeError("Invalid input for RemoveMarkStep.fromJSON");return new p(t.from,t.to,e.markFromJSON(t.mark))}}l.jsonID("removeMark",p);class d extends l{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return c.fail("No node at mark step's position");let r=t.type.create(t.attrs,null,this.mark.addToSet(t.marks));return c.fromReplace(e,this.pos,this.pos+1,new n.Ji(n.FK.from(r),0,+!t.isLeaf))}invert(e){let t=e.nodeAt(this.pos);if(t){let e=this.mark.addToSet(t.marks);if(e.length==t.marks.length){for(let r=0;r<t.marks.length;r++)if(!t.marks[r].isInSet(e))return new d(this.pos,t.marks[r]);return new d(this.pos,this.mark)}}return new f(this.pos,this.mark)}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new d(t.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if("number"!=typeof t.pos)throw RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new d(t.pos,e.markFromJSON(t.mark))}}l.jsonID("addNodeMark",d);class f extends l{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return c.fail("No node at mark step's position");let r=t.type.create(t.attrs,null,this.mark.removeFromSet(t.marks));return c.fromReplace(e,this.pos,this.pos+1,new n.Ji(n.FK.from(r),0,+!t.isLeaf))}invert(e){let t=e.nodeAt(this.pos);return t&&this.mark.isInSet(t.marks)?new d(this.pos,this.mark):this}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new f(t.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if("number"!=typeof t.pos)throw RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new f(t.pos,e.markFromJSON(t.mark))}}l.jsonID("removeNodeMark",f);class m extends l{constructor(e,t,r,n=!1){super(),this.from=e,this.to=t,this.slice=r,this.structure=n}apply(e){return this.structure&&A(e,this.from,this.to)?c.fail("Structure replace would overwrite content"):c.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new a([this.from,this.to-this.from,this.slice.size])}invert(e){return new m(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}map(e){let t=e.mapResult(this.to,-1),r=this.from==this.to&&m.MAP_BIAS<0?t:e.mapResult(this.from,1);return r.deletedAcross&&t.deletedAcross?null:new m(r.pos,Math.max(r.pos,t.pos),this.slice,this.structure)}merge(e){if(!(e instanceof m)||e.structure||this.structure)return null;if(this.from+this.slice.size!=e.from||this.slice.openEnd||e.slice.openStart)if(e.to!=this.from||this.slice.openStart||e.slice.openEnd)return null;else{let t=this.slice.size+e.slice.size==0?n.Ji.empty:new n.Ji(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new m(e.from,this.to,t,this.structure)}{let t=this.slice.size+e.slice.size==0?n.Ji.empty:new n.Ji(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new m(this.from,this.to+(e.to-e.from),t,this.structure)}}toJSON(){let e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw RangeError("Invalid input for ReplaceStep.fromJSON");return new m(t.from,t.to,n.Ji.fromJSON(e,t.slice),!!t.structure)}}m.MAP_BIAS=1,l.jsonID("replace",m);class g extends l{constructor(e,t,r,n,i,a,o=!1){super(),this.from=e,this.to=t,this.gapFrom=r,this.gapTo=n,this.slice=i,this.insert=a,this.structure=o}apply(e){if(this.structure&&(A(e,this.from,this.gapFrom)||A(e,this.gapTo,this.to)))return c.fail("Structure gap-replace would overwrite content");let t=e.slice(this.gapFrom,this.gapTo);if(t.openStart||t.openEnd)return c.fail("Gap is not a flat range");let r=this.slice.insertAt(this.insert,t.content);return r?c.fromReplace(e,this.from,this.to,r):c.fail("Content does not fit in gap")}getMap(){return new a([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(e){let t=this.gapTo-this.gapFrom;return new g(this.from,this.from+this.slice.size+t,this.from+this.insert,this.from+this.insert+t,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(e){let t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1),n=this.from==this.gapFrom?t.pos:e.map(this.gapFrom,-1),i=this.to==this.gapTo?r.pos:e.map(this.gapTo,1);return t.deletedAcross&&r.deletedAcross||n<t.pos||i>r.pos?null:new g(t.pos,r.pos,n,i,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to||"number"!=typeof t.gapFrom||"number"!=typeof t.gapTo||"number"!=typeof t.insert)throw RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new g(t.from,t.to,t.gapFrom,t.gapTo,n.Ji.fromJSON(e,t.slice),t.insert,!!t.structure)}}function A(e,t,r){let n=e.resolve(t),i=r-t,a=n.depth;for(;i>0&&a>0&&n.indexAfter(a)==n.node(a).childCount;)a--,i--;if(i>0){let e=n.node(a).maybeChild(n.indexAfter(a));for(;i>0;){if(!e||e.isLeaf)return!0;e=e.firstChild,i--}}return!1}function y(e,t,r,i=r.contentMatch,a=!0){let o=e.doc.nodeAt(t),s=[],l=t+1;for(let t=0;t<o.childCount;t++){let c=o.child(t),u=l+c.nodeSize,h=i.matchType(c.type);if(h){i=h;for(let t=0;t<c.marks.length;t++)r.allowsMarkType(c.marks[t].type)||e.step(new p(l,u,c.marks[t]));if(a&&c.isText&&"pre"!=r.whitespace){let e,t=/\r?\n|\r/g,i;for(;e=t.exec(c.text);)i||(i=new n.Ji(n.FK.from(r.schema.text(" ",r.allowedMarks(c.marks))),0,0)),s.push(new m(l+e.index,l+e.index+e[0].length,i))}}else s.push(new m(l,u,n.Ji.empty));l=u}if(!i.validEnd){let t=i.fillBefore(n.FK.empty,!0);e.replace(l,l,new n.Ji(t,0,0))}for(let t=s.length-1;t>=0;t--)e.step(s[t])}function v(e){let t=e.parent.content.cutByIndex(e.startIndex,e.endIndex);for(let r=e.depth,n=0,i=0;;--r){let a=e.$from.node(r),o=e.$from.index(r)+n,s=e.$to.indexAfter(r)-i;if(r<e.depth&&a.canReplace(o,s,t))return r;if(0==r||a.type.spec.isolating||!((0==o||a.canReplace(o,a.childCount))&&(s==a.childCount||a.canReplace(0,s))))break;o&&(n=1),s<a.childCount&&(i=1)}return null}function R(e,t,r=null,n=e){let i=function(e,t){let{parent:r,startIndex:n,endIndex:i}=e,a=r.contentMatchAt(n).findWrapping(t);if(!a)return null;let o=a.length?a[0]:t;return r.canReplaceWith(n,i,o)?a:null}(e,t),a=i&&function(e,t){let{parent:r,startIndex:n,endIndex:i}=e,a=r.child(n),o=t.contentMatch.findWrapping(a.type);if(!o)return null;let s=(o.length?o[o.length-1]:t).contentMatch;for(let e=n;s&&e<i;e++)s=s.matchType(r.child(e).type);return s&&s.validEnd?o:null}(n,t);return a?i.map(b).concat({type:t,attrs:r}).concat(a.map(b)):null}function b(e){return{type:e,attrs:null}}function x(e,t,r,n){t.forEach((i,a)=>{if(i.isText){let o,s=/\r?\n|\r/g;for(;o=s.exec(i.text);){let i=e.mapping.slice(n).map(r+1+a+o.index);e.replaceWith(i,i+1,t.type.schema.linebreakReplacement.create())}}})}function M(e,t,r,n){t.forEach((i,a)=>{if(i.type==i.type.schema.linebreakReplacement){let i=e.mapping.slice(n).map(r+1+a);e.replaceWith(i,i+1,t.type.schema.text("\n"))}})}function S(e,t,r=1,n){let i=e.resolve(t),a=i.depth-r,o=n&&n[n.length-1]||i.parent;if(a<0||i.parent.type.spec.isolating||!i.parent.canReplace(i.index(),i.parent.childCount)||!o.type.validContent(i.parent.content.cutByIndex(i.index(),i.parent.childCount)))return!1;for(let e=i.depth-1,t=r-2;e>a;e--,t--){let r=i.node(e),a=i.index(e);if(r.type.spec.isolating)return!1;let o=r.content.cutByIndex(a,r.childCount),s=n&&n[t+1];s&&(o=o.replaceChild(0,s.type.create(s.attrs)));let l=n&&n[t]||r;if(!r.canReplace(a+1,r.childCount)||!l.type.validContent(o))return!1}let s=i.indexAfter(a),l=n&&n[0];return i.node(a).canReplaceWith(s,s,l?l.type:i.node(a+1).type)}function w(e,t){let r=e.resolve(t),n=r.index();return O(r.nodeBefore,r.nodeAfter)&&r.parent.canReplace(n,n+1)}function O(e,t){return!!(e&&t&&!e.isLeaf&&function(e,t){t.content.size||e.type.compatibleContent(t.type);let r=e.contentMatchAt(e.childCount),{linebreakReplacement:n}=e.type.schema;for(let i=0;i<t.childCount;i++){let a=t.child(i),o=a.type==n?e.type.schema.nodes.text:a.type;if(!(r=r.matchType(o))||!e.type.allowsMarks(a.marks))return!1}return r.validEnd}(e,t))}function L(e,t,r=-1){let n=e.resolve(t);for(let e=n.depth;;e--){let i,a,o=n.index(e);if(e==n.depth?(i=n.nodeBefore,a=n.nodeAfter):r>0?(i=n.node(e+1),o++,a=n.node(e).maybeChild(o)):(i=n.node(e).maybeChild(o-1),a=n.node(e+1)),i&&!i.isTextblock&&O(i,a)&&n.node(e).canReplace(o,o+1))return t;if(0==e)break;t=r<0?n.before(e):n.after(e)}}function N(e,t,r){let n=e.resolve(t);if(!r.content.size)return t;let i=r.content;for(let e=0;e<r.openStart;e++)i=i.firstChild.content;for(let e=1;e<=(0==r.openStart&&r.size?2:1);e++)for(let t=n.depth;t>=0;t--){let r=t==n.depth?0:n.pos<=(n.start(t+1)+n.end(t+1))/2?-1:1,a=n.index(t)+ +(r>0),o=n.node(t),s=!1;if(1==e)s=o.canReplace(a,a,i);else{let e=o.contentMatchAt(a).findWrapping(i.firstChild.type);s=e&&o.canReplaceWith(a,a,e[0])}if(s)return 0==r?n.pos:r<0?n.before(t+1):n.after(t+1)}return null}function _(e,t,r=t,i=n.Ji.empty){if(t==r&&!i.size)return null;let a=e.resolve(t),o=e.resolve(r);return T(a,o,i)?new m(t,r,i):new P(a,o,i).fit()}function T(e,t,r){return!r.openStart&&!r.openEnd&&e.start()==t.start()&&e.parent.canReplace(e.index(),t.index(),r.content)}l.jsonID("replaceAround",g);class P{constructor(e,t,r){this.$from=e,this.$to=t,this.unplaced=r,this.frontier=[],this.placed=n.FK.empty;for(let t=0;t<=e.depth;t++){let r=e.node(t);this.frontier.push({type:r.type,match:r.contentMatchAt(e.indexAfter(t))})}for(let t=e.depth;t>0;t--)this.placed=n.FK.from(e.node(t).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let e=this.findFittable();e?this.placeNodes(e):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),t=this.placed.size-this.depth-this.$from.depth,r=this.$from,i=this.close(e<0?this.$to:r.doc.resolve(e));if(!i)return null;let a=this.placed,o=r.depth,s=i.depth;for(;o&&s&&1==a.childCount;)a=a.firstChild.content,o--,s--;let l=new n.Ji(a,o,s);return e>-1?new g(r.pos,e,this.$to.pos,this.$to.end(),l,t):l.size||r.pos!=this.$to.pos?new m(r.pos,i.pos,l):null}findFittable(){let e=this.unplaced.openStart;for(let t=this.unplaced.content,r=0,n=this.unplaced.openEnd;r<e;r++){let i=t.firstChild;if(t.childCount>1&&(n=0),i.type.spec.isolating&&n<=r){e=r;break}t=i.content}for(let t=1;t<=2;t++)for(let r=1==t?e:this.unplaced.openStart;r>=0;r--){let e=null,i=(r?(e=k(this.unplaced.content,r-1).firstChild).content:this.unplaced.content).firstChild;for(let a=this.depth;a>=0;a--){let{type:o,match:s}=this.frontier[a],l,c=null;if(1==t&&(i?s.matchType(i.type)||(c=s.fillBefore(n.FK.from(i),!1)):e&&o.compatibleContent(e.type)))return{sliceDepth:r,frontierDepth:a,parent:e,inject:c};if(2==t&&i&&(l=s.findWrapping(i.type)))return{sliceDepth:r,frontierDepth:a,parent:e,wrap:l};if(e&&s.matchType(e.type))break}}}openMore(){let{content:e,openStart:t,openEnd:r}=this.unplaced,i=k(e,t);return!!i.childCount&&!i.firstChild.isLeaf&&(this.unplaced=new n.Ji(e,t+1,Math.max(r,i.size+t>=e.size-r?t+1:0)),!0)}dropNode(){let{content:e,openStart:t,openEnd:r}=this.unplaced,i=k(e,t);if(i.childCount<=1&&t>0){let a=e.size-t<=t+i.size;this.unplaced=new n.Ji(C(e,t-1,1),t-1,a?t-1:r)}else this.unplaced=new n.Ji(C(e,t,1),t,r)}placeNodes({sliceDepth:e,frontierDepth:t,parent:r,inject:i,wrap:a}){for(;this.depth>t;)this.closeFrontierNode();if(a)for(let e=0;e<a.length;e++)this.openFrontierNode(a[e]);let o=this.unplaced,s=r?r.content:o.content,l=o.openStart-e,c=0,u=[],{match:h,type:p}=this.frontier[t];if(i){for(let e=0;e<i.childCount;e++)u.push(i.child(e));h=h.matchFragment(i)}let d=s.size+e-(o.content.size-o.openEnd);for(;c<s.childCount;){let e=s.child(c),t=h.matchType(e.type);if(!t)break;(++c>1||0==l||e.content.size)&&(h=t,u.push(function e(t,r,i){if(r<=0)return t;let a=t.content;return r>1&&(a=a.replaceChild(0,e(a.firstChild,r-1,1==a.childCount?i-1:0))),r>0&&(a=t.type.contentMatch.fillBefore(a).append(a),i<=0&&(a=a.append(t.type.contentMatch.matchFragment(a).fillBefore(n.FK.empty,!0)))),t.copy(a)}(e.mark(p.allowedMarks(e.marks)),1==c?l:0,c==s.childCount?d:-1)))}let f=c==s.childCount;f||(d=-1),this.placed=I(this.placed,t,n.FK.from(u)),this.frontier[t].match=h,f&&d<0&&r&&r.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let e=0,t=s;e<d;e++){let e=t.lastChild;this.frontier.push({type:e.type,match:e.contentMatchAt(e.childCount)}),t=e.content}this.unplaced=f?0==e?n.Ji.empty:new n.Ji(C(o.content,e-1,1),e-1,d<0?o.openEnd:e-1):new n.Ji(C(o.content,e,c),o.openStart,o.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return -1;let e=this.frontier[this.depth],t;if(!e.type.isTextblock||!F(this.$to,this.$to.depth,e.type,e.match,!1)||this.$to.depth==this.depth&&(t=this.findCloseLevel(this.$to))&&t.depth==this.depth)return -1;let{depth:r}=this.$to,n=this.$to.after(r);for(;r>1&&n==this.$to.end(--r);)++n;return n}findCloseLevel(e){s:for(let t=Math.min(this.depth,e.depth);t>=0;t--){let{match:r,type:n}=this.frontier[t],i=t<e.depth&&e.end(t+1)==e.pos+(e.depth-(t+1)),a=F(e,t,n,r,i);if(a){for(let r=t-1;r>=0;r--){let{match:t,type:n}=this.frontier[r],i=F(e,r,n,t,!0);if(!i||i.childCount)continue s}return{depth:t,fit:a,move:i?e.doc.resolve(e.after(t+1)):e}}}}close(e){let t=this.findCloseLevel(e);if(!t)return null;for(;this.depth>t.depth;)this.closeFrontierNode();t.fit.childCount&&(this.placed=I(this.placed,t.depth,t.fit)),e=t.move;for(let r=t.depth+1;r<=e.depth;r++){let t=e.node(r),n=t.type.contentMatch.fillBefore(t.content,!0,e.index(r));this.openFrontierNode(t.type,t.attrs,n)}return e}openFrontierNode(e,t=null,r){let i=this.frontier[this.depth];i.match=i.match.matchType(e),this.placed=I(this.placed,this.depth,n.FK.from(e.create(t,r))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let e=this.frontier.pop().match.fillBefore(n.FK.empty,!0);e.childCount&&(this.placed=I(this.placed,this.frontier.length,e))}}function C(e,t,r){return 0==t?e.cutByIndex(r,e.childCount):e.replaceChild(0,e.firstChild.copy(C(e.firstChild.content,t-1,r)))}function I(e,t,r){return 0==t?e.append(r):e.replaceChild(e.childCount-1,e.lastChild.copy(I(e.lastChild.content,t-1,r)))}function k(e,t){for(let r=0;r<t;r++)e=e.firstChild.content;return e}function F(e,t,r,n,i){let a=e.node(t),o=i?e.indexAfter(t):e.index(t);if(o==a.childCount&&!r.compatibleContent(a.type))return null;let s=n.fillBefore(a.content,!0,o);return s&&!function(e,t,r){for(let n=r;n<t.childCount;n++)if(!e.allowsMarks(t.child(n).marks))return!0;return!1}(r,a.content,o)?s:null}function X(e,t){let r=[],n=Math.min(e.depth,t.depth);for(let i=n;i>=0;i--){let n=e.start(i);if(n<e.pos-(e.depth-i)||t.end(i)>t.pos+(t.depth-i)||e.node(i).type.spec.isolating||t.node(i).type.spec.isolating)break;(n==t.start(i)||i==e.depth&&i==t.depth&&e.parent.inlineContent&&t.parent.inlineContent&&i&&t.start(i-1)==n-1)&&r.push(i)}return r}class U extends l{constructor(e,t,r){super(),this.pos=e,this.attr=t,this.value=r}apply(e){let t=e.nodeAt(this.pos);if(!t)return c.fail("No node at attribute step's position");let r=Object.create(null);for(let e in t.attrs)r[e]=t.attrs[e];r[this.attr]=this.value;let i=t.type.create(r,null,t.marks);return c.fromReplace(e,this.pos,this.pos+1,new n.Ji(n.FK.from(i),0,+!t.isLeaf))}getMap(){return a.empty}invert(e){return new U(this.pos,this.attr,e.nodeAt(this.pos).attrs[this.attr])}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new U(t.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(e,t){if("number"!=typeof t.pos||"string"!=typeof t.attr)throw RangeError("Invalid input for AttrStep.fromJSON");return new U(t.pos,t.attr,t.value)}}l.jsonID("attr",U);class W extends l{constructor(e,t){super(),this.attr=e,this.value=t}apply(e){let t=Object.create(null);for(let r in e.attrs)t[r]=e.attrs[r];t[this.attr]=this.value;let r=e.type.create(t,e.content,e.marks);return c.ok(r)}getMap(){return a.empty}invert(e){return new W(this.attr,e.attrs[this.attr])}map(e){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(e,t){if("string"!=typeof t.attr)throw RangeError("Invalid input for DocAttrStep.fromJSON");return new W(t.attr,t.value)}}l.jsonID("docAttr",W);let V=class extends Error{};(V=function e(t){let r=Error.call(this,t);return r.__proto__=e.prototype,r}).prototype=Object.create(Error.prototype),V.prototype.constructor=V,V.prototype.name="TransformError";class E{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new o}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let t=this.maybeStep(e);if(t.failed)throw new V(t.failed);return this}maybeStep(e){let t=e.apply(this.doc);return t.failed||this.addStep(e,t.doc),t}get docChanged(){return this.steps.length>0}changedRange(){let e=1e9,t=-1e9;for(let r=0;r<this.mapping.maps.length;r++){let n=this.mapping.maps[r];r&&(e=n.map(e,1),t=n.map(t,-1)),n.forEach((r,n,i,a)=>{e=Math.min(e,i),t=Math.max(t,a)})}return 1e9==e?null:{from:e,to:t}}addStep(e,t){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=t}replace(e,t=e,r=n.Ji.empty){let i=_(this.doc,e,t,r);return i&&this.step(i),this}replaceWith(e,t,r){return this.replace(e,t,new n.Ji(n.FK.from(r),0,0))}delete(e,t){return this.replace(e,t,n.Ji.empty)}insert(e,t){return this.replaceWith(e,e,t)}replaceRange(e,t,r){return!function(e,t,r,i){if(!i.size)return e.deleteRange(t,r);let a=e.doc.resolve(t),o=e.doc.resolve(r);if(T(a,o,i))return e.step(new m(t,r,i));let s=X(a,o);0==s[s.length-1]&&s.pop();let l=-(a.depth+1);s.unshift(l);for(let e=a.depth,t=a.pos-1;e>0;e--,t--){let r=a.node(e).type.spec;if(r.defining||r.definingAsContext||r.isolating)break;s.indexOf(e)>-1?l=e:a.before(e)==t&&s.splice(1,0,-e)}let c=s.indexOf(l),u=[],h=i.openStart;for(let e=i.content,t=0;;t++){let r=e.firstChild;if(u.push(r),t==i.openStart)break;e=r.content}for(let e=h-1;e>=0;e--){var p;let t=u[e],r=(p=t.type).spec.defining||p.spec.definingForContent;if(r&&!t.sameMarkup(a.node(Math.abs(l)-1)))h=e;else if(r||!t.type.isTextblock)break}for(let t=i.openStart;t>=0;t--){let l=(t+h+1)%(i.openStart+1),p=u[l];if(p)for(let t=0;t<s.length;t++){let u=s[(t+c)%s.length],h=!0;u<0&&(h=!1,u=-u);let d=a.node(u-1),f=a.index(u-1);if(d.canReplaceWith(f,f,p.type,p.marks))return e.replace(a.before(u),h?o.after(u):r,new n.Ji(function e(t,r,i,a,o){if(r<i){let n=t.firstChild;t=t.replaceChild(0,n.copy(e(n.content,r+1,i,a,n)))}if(r>a){let e=o.contentMatchAt(0),r=e.fillBefore(t).append(t);t=r.append(e.matchFragment(r).fillBefore(n.FK.empty,!0))}return t}(i.content,0,i.openStart,l),l,i.openEnd))}}let d=e.steps.length;for(let n=s.length-1;n>=0&&(e.replace(t,r,i),!(e.steps.length>d));n--){let e=s[n];e<0||(t=a.before(e),r=o.after(e))}}(this,e,t,r),this}replaceRangeWith(e,t,r){var i=e,a=t;if(!r.isInline&&i==a&&this.doc.resolve(i).parent.content.size){let e=function(e,t,r){let n=e.resolve(t);if(n.parent.canReplaceWith(n.index(),n.index(),r))return t;if(0==n.parentOffset)for(let e=n.depth-1;e>=0;e--){let t=n.index(e);if(n.node(e).canReplaceWith(t,t,r))return n.before(e+1);if(t>0)return null}if(n.parentOffset==n.parent.content.size)for(let e=n.depth-1;e>=0;e--){let t=n.indexAfter(e);if(n.node(e).canReplaceWith(t,t,r))return n.after(e+1);if(t<n.node(e).childCount)break}return null}(this.doc,i,r.type);null!=e&&(i=a=e)}return this.replaceRange(i,a,new n.Ji(n.FK.from(r),0,0)),this}deleteRange(e,t){return!function(e,t,r){let n=e.doc.resolve(t),i=e.doc.resolve(r);if(n.parent.isTextblock&&i.parent.isTextblock&&n.start()!=i.start()&&0==n.parentOffset&&0==i.parentOffset){let a=n.sharedDepth(r),o=!1;for(let e=n.depth;e>a;e--)n.node(e).type.spec.isolating&&(o=!0);for(let e=i.depth;e>a;e--)i.node(e).type.spec.isolating&&(o=!0);if(!o){for(let e=n.depth;e>0&&t==n.start(e);e--)t=n.before(e);for(let e=i.depth;e>0&&r==i.start(e);e--)r=i.before(e);n=e.doc.resolve(t),i=e.doc.resolve(r)}}let a=X(n,i);for(let t=0;t<a.length;t++){let r=a[t],o=t==a.length-1;if(o&&0==r||n.node(r).type.contentMatch.validEnd)return e.delete(n.start(r),i.end(r));if(r>0&&(o||n.node(r-1).canReplace(n.index(r-1),i.indexAfter(r-1))))return e.delete(n.before(r),i.after(r))}for(let a=1;a<=n.depth&&a<=i.depth;a++)if(t-n.start(a)==n.depth-a&&r>n.end(a)&&i.end(a)-r!=i.depth-a&&n.start(a-1)==i.start(a-1)&&n.node(a-1).canReplace(n.index(a-1),i.index(a-1)))return e.delete(n.before(a),r);e.delete(t,r)}(this,e,t),this}lift(e,t){return!function(e,t,r){let{$from:i,$to:a,depth:o}=t,s=i.before(o+1),l=a.after(o+1),c=s,u=l,h=n.FK.empty,p=0;for(let e=o,t=!1;e>r;e--)t||i.index(e)>0?(t=!0,h=n.FK.from(i.node(e).copy(h)),p++):c--;let d=n.FK.empty,f=0;for(let e=o,t=!1;e>r;e--)t||a.after(e+1)<a.end(e)?(t=!0,d=n.FK.from(a.node(e).copy(d)),f++):u++;e.step(new g(c,u,s,l,new n.Ji(h.append(d),p,f),h.size-p,!0))}(this,e,t),this}join(e,t=1){return!function(e,t,r){let i=null,{linebreakReplacement:a}=e.doc.type.schema,o=e.doc.resolve(t-r),s=o.node().type;if(a&&s.inlineContent){let e="pre"==s.whitespace,t=!!s.contentMatch.matchType(a);e&&!t?i=!1:!e&&t&&(i=!0)}let l=e.steps.length;if(!1===i){let n=e.doc.resolve(t+r);M(e,n.node(),n.before(),l)}s.inlineContent&&y(e,t+r-1,s,o.node().contentMatchAt(o.index()),null==i);let c=e.mapping.slice(l),u=c.map(t-r);if(e.step(new m(u,c.map(t+r,-1),n.Ji.empty,!0)),!0===i){let t=e.doc.resolve(u);x(e,t.node(),t.before(),e.steps.length)}}(this,e,t),this}wrap(e,t){return!function(e,t,r){let i=n.FK.empty;for(let e=r.length-1;e>=0;e--){if(i.size){let t=r[e].type.contentMatch.matchFragment(i);if(!t||!t.validEnd)throw RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}i=n.FK.from(r[e].type.create(r[e].attrs,i))}let a=t.start,o=t.end;e.step(new g(a,o,a,o,new n.Ji(i,0,0),r.length,!0))}(this,e,t),this}setBlockType(e,t=e,r,i=null){var a=this;if(!r.isTextblock)throw RangeError("Type given to setBlockType should be a textblock");let o=a.steps.length;return a.doc.nodesBetween(e,t,(e,t)=>{var s,l,c;let u,h,p="function"==typeof i?i(e):i;if(e.isTextblock&&!e.hasMarkup(r,p)&&(s=a.doc,l=a.mapping.slice(o).map(t),c=r,h=(u=s.resolve(l)).index(),u.parent.canReplaceWith(h,h+1,c))){let i=null;if(r.schema.linebreakReplacement){let e="pre"==r.whitespace,t=!!r.contentMatch.matchType(r.schema.linebreakReplacement);e&&!t?i=!1:!e&&t&&(i=!0)}!1===i&&M(a,e,t,o),y(a,a.mapping.slice(o).map(t,1),r,void 0,null===i);let s=a.mapping.slice(o),l=s.map(t,1),c=s.map(t+e.nodeSize,1);return a.step(new g(l,c,l+1,c-1,new n.Ji(n.FK.from(r.create(p,null,e.marks)),0,0),1,!0)),!0===i&&x(a,e,t,o),!1}}),this}setNodeMarkup(e,t,r=null,i){return!function(e,t,r,i,a){let o=e.doc.nodeAt(t);if(!o)throw RangeError("No node at given position");r||(r=o.type);let s=r.create(i,null,a||o.marks);if(o.isLeaf)return e.replaceWith(t,t+o.nodeSize,s);if(!r.validContent(o.content))throw RangeError("Invalid content for node type "+r.name);e.step(new g(t,t+o.nodeSize,t+1,t+o.nodeSize-1,new n.Ji(n.FK.from(s),0,0),1,!0))}(this,e,t,r,i),this}setNodeAttribute(e,t,r){return this.step(new U(e,t,r)),this}setDocAttribute(e,t){return this.step(new W(e,t)),this}addNodeMark(e,t){return this.step(new d(e,t)),this}removeNodeMark(e,t){let r=this.doc.nodeAt(e);if(!r)throw RangeError("No node at position "+e);if(t instanceof n.CU)t.isInSet(r.marks)&&this.step(new f(e,t));else{let n=r.marks,i,a=[];for(;i=t.isInSet(n);)a.push(new f(e,i)),n=i.removeFromSet(n);for(let e=a.length-1;e>=0;e--)this.step(a[e])}return this}split(e,t=1,r){return!function(e,t,r=1,i){let a=e.doc.resolve(t),o=n.FK.empty,s=n.FK.empty;for(let e=a.depth,t=a.depth-r,l=r-1;e>t;e--,l--){o=n.FK.from(a.node(e).copy(o));let t=i&&i[l];s=n.FK.from(t?t.type.create(t.attrs,s):a.node(e).copy(s))}e.step(new m(t,t,new n.Ji(o.append(s),r,r),!0))}(this,e,t,r),this}addMark(e,t,r){var n;let i,a,o,s;return n=this,o=[],s=[],n.doc.nodesBetween(e,t,(n,l,c)=>{if(!n.isInline)return;let u=n.marks;if(!r.isInSet(u)&&c.type.allowsMarkType(r.type)){let c=Math.max(l,e),d=Math.min(l+n.nodeSize,t),f=r.addToSet(u);for(let e=0;e<u.length;e++)u[e].isInSet(f)||(i&&i.to==c&&i.mark.eq(u[e])?i.to=d:o.push(i=new p(c,d,u[e])));a&&a.to==c?a.to=d:s.push(a=new h(c,d,r))}}),o.forEach(e=>n.step(e)),s.forEach(e=>n.step(e)),this}removeMark(e,t,r){var i;let a,o;return i=this,a=[],o=0,i.doc.nodesBetween(e,t,(i,s)=>{if(!i.isInline)return;o++;let l=null;if(r instanceof n.sX){let e=i.marks,t;for(;t=r.isInSet(e);)(l||(l=[])).push(t),e=t.removeFromSet(e)}else r?r.isInSet(i.marks)&&(l=[r]):l=i.marks;if(l&&l.length){let r=Math.min(s+i.nodeSize,t);for(let t=0;t<l.length;t++){let n=l[t],i;for(let e=0;e<a.length;e++){let t=a[e];t.step==o-1&&n.eq(a[e].style)&&(i=t)}i?(i.to=r,i.step=o):a.push({style:n,from:Math.max(s,e),to:r,step:o})}}}),a.forEach(e=>i.step(new p(e.from,e.to,e.style))),this}clearIncompatible(e,t,r){return y(this,e,t,r),this}}r.d(t,{$L:()=>_,Ln:()=>m,N0:()=>L,Um:()=>N,Wg:()=>g,X9:()=>o,dL:()=>E,jP:()=>v,n9:()=>w,oM:()=>R,zy:()=>S})},1575(e,t,r){var n=r(42845),i=r(96294),a=r(38262);let o=function(e){for(var t=0;;t++)if(!(e=e.previousSibling))return t},s=function(e){let t=e.assignedSlot||e.parentNode;return t&&11==t.nodeType?t.host:t},l=null,c=function(e,t,r){let n=l||(l=document.createRange());return n.setEnd(e,null==r?e.nodeValue.length:r),n.setStart(e,t||0),n},u=function(){l=null},h=function(e,t,r,n){return r&&(d(e,t,r,n,-1)||d(e,t,r,n,1))},p=/^(img|br|input|textarea|hr)$/i;function d(e,t,r,n,i){for(var a;;){if(e==r&&t==n)return!0;if(t==(i<0?0:f(e))){let r=e.parentNode;if(!r||1!=r.nodeType||m(e)||p.test(e.nodeName)||"false"==e.contentEditable)return!1;t=o(e)+(i<0?0:1),e=r}else{if(1!=e.nodeType)return!1;let r=e.childNodes[t+(i<0?-1:0)];if(1==r.nodeType&&"false"==r.contentEditable)if(null==(a=r.pmViewDesc)||!a.ignoreForSelection)return!1;else t+=i;else e=r,t=i<0?f(e):0}}}function f(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function m(e){let t;for(let r=e;r&&!(t=r.pmViewDesc);r=r.parentNode);return t&&t.node&&t.node.isBlock&&(t.dom==e||t.contentDOM==e)}let g=function(e){return e.focusNode&&h(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)};function A(e,t){let r=document.createEvent("Event");return r.initEvent("keydown",!0,!0),r.keyCode=e,r.key=r.code=t,r}let y="u">typeof navigator?navigator:null,v="u">typeof document?document:null,R=y&&y.userAgent||"",b=/Edge\/(\d+)/.exec(R),x=/MSIE \d/.exec(R),M=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(R),S=!!(x||M||b),w=x?document.documentMode:M?+M[1]:b?+b[1]:0,O=!S&&/gecko\/(\d+)/i.test(R);O&&(/Firefox\/(\d+)/.exec(R)||[0,0])[1];let L=!S&&/Chrome\/(\d+)/.exec(R),N=!!L,_=L?+L[1]:0,T=!S&&!!y&&/Apple Computer/.test(y.vendor),P=T&&(/Mobile\/\w+/.test(R)||!!y&&y.maxTouchPoints>2),C=P||!!y&&/Mac/.test(y.platform),I=!!y&&/Win/.test(y.platform),k=/Android \d/.test(R),F=!!v&&"webkitFontSmoothing"in v.documentElement.style,X=F?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function U(e,t){return"number"==typeof e?e:e[t]}function W(e,t,r){if(!Q(t)&&0==t.left)return;let n=e.someProp("scrollThreshold")||0,i=e.someProp("scrollMargin")||5,a=e.dom.ownerDocument;for(let o=r||e.dom;o;){if(1!=o.nodeType){o=s(o);continue}let e=o,r=e==a.body,l=r?function(e){let t=e.defaultView&&e.defaultView.visualViewport;return t?{left:0,right:t.width,top:0,bottom:t.height}:{left:0,right:e.documentElement.clientWidth,top:0,bottom:e.documentElement.clientHeight}}(a):function(e){let t=e.getBoundingClientRect(),r=t.width/e.offsetWidth||1,n=t.height/e.offsetHeight||1;return{left:t.left,right:t.left+e.clientWidth*r,top:t.top,bottom:t.top+e.clientHeight*n}}(e),c=0,u=0;if(t.top<l.top+U(n,"top")?u=-(l.top-t.top+U(i,"top")):t.bottom>l.bottom-U(n,"bottom")&&(u=t.bottom-t.top>l.bottom-l.top?t.top+U(i,"top")-l.top:t.bottom-l.bottom+U(i,"bottom")),t.left<l.left+U(n,"left")?c=-(l.left-t.left+U(i,"left")):t.right>l.right-U(n,"right")&&(c=t.right-l.right+U(i,"right")),c||u)if(r)a.defaultView.scrollBy(c,u);else{let r=e.scrollLeft,n=e.scrollTop;u&&(e.scrollTop+=u),c&&(e.scrollLeft+=c);let i=e.scrollLeft-r,a=e.scrollTop-n;t={left:t.left-i,top:t.top-a,right:t.right-i,bottom:t.bottom-a}}let h=r?"fixed":getComputedStyle(o).position;if(/^(fixed|sticky)$/.test(h))break;o="absolute"==h?o.offsetParent:s(o)}}function V(e){let t=[],r=e.ownerDocument;for(let n=e;n&&(t.push({dom:n,top:n.scrollTop,left:n.scrollLeft}),e!=r);n=s(n));return t}function E(e,t){for(let r=0;r<e.length;r++){let{dom:n,top:i,left:a}=e[r];n.scrollTop!=i+t&&(n.scrollTop=i+t),n.scrollLeft!=a&&(n.scrollLeft=a)}}let Y=null;function D(e,t){return e.left>=t.left-1&&e.left<=t.right+1&&e.top>=t.top-1&&e.top<=t.bottom+1}function Q(e){return e.top<e.bottom||e.left<e.right}function $(e,t){let r=e.getClientRects();if(r.length){let e=r[t<0?0:r.length-1];if(Q(e))return e}return Array.prototype.find.call(r,Q)||e.getBoundingClientRect()}let B=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function Z(e,t,r){let{node:n,offset:i,atom:a}=e.docView.domFromPos(t,r<0?-1:1),o=F||O;if(3==n.nodeType)if(o&&(B.test(n.nodeValue)||(r<0?!i:i==n.nodeValue.length))){let e=$(c(n,i,i),r);if(O&&i&&/\s/.test(n.nodeValue[i-1])&&i<n.nodeValue.length){let t=$(c(n,i-1,i-1),-1);if(t.top==e.top){let r=$(c(n,i,i+1),-1);if(r.top!=e.top)return K(r,r.left<t.left)}}return e}else{let e=i,t=i,a=r<0?1:-1;return r<0&&!i?(t++,a=-1):r>=0&&i==n.nodeValue.length?(e--,a=1):r<0?e--:t++,K($(c(n,e,t),a),a<0)}if(!e.state.doc.resolve(t-(a||0)).parent.inlineContent){if(null==a&&i&&(r<0||i==f(n))){let e=n.childNodes[i-1];if(1==e.nodeType)return G(e.getBoundingClientRect(),!1)}if(null==a&&i<f(n)){let e=n.childNodes[i];if(1==e.nodeType)return G(e.getBoundingClientRect(),!0)}return G(n.getBoundingClientRect(),r>=0)}if(null==a&&i&&(r<0||i==f(n))){let e=n.childNodes[i-1],t=3==e.nodeType?c(e,f(e)-!o):1!=e.nodeType||"BR"==e.nodeName&&e.nextSibling?null:e;if(t)return K($(t,1),!1)}if(null==a&&i<f(n)){let e=n.childNodes[i];for(;e.pmViewDesc&&e.pmViewDesc.ignoreForCoords;)e=e.nextSibling;let t=e?3==e.nodeType?c(e,0,+!o):1==e.nodeType?e:null:null;if(t)return K($(t,-1),!0)}return K($(3==n.nodeType?c(n):n,-r),r>=0)}function K(e,t){if(0==e.width)return e;let r=t?e.left:e.right;return{top:e.top,bottom:e.bottom,left:r,right:r}}function G(e,t){if(0==e.height)return e;let r=t?e.top:e.bottom;return{top:r,bottom:r,left:e.left,right:e.right}}function H(e,t,r){let n=e.state,i=e.root.activeElement;n!=t&&e.updateState(t),i!=e.dom&&e.focus();try{return r()}finally{n!=t&&e.updateState(n),i!=e.dom&&i&&i.focus()}}let z=/[\u0590-\u08ac]/,J=null,j=null,q=!1;class ee{constructor(e,t,r,n){this.parent=e,this.children=t,this.dom=r,this.contentDOM=n,this.dirty=0,r.pmViewDesc=this}matchesWidget(e){return!1}matchesMark(e){return!1}matchesNode(e,t,r){return!1}matchesHack(e){return!1}parseRule(e){return null}stopEvent(e){return!1}get size(){let e=0;for(let t=0;t<this.children.length;t++)e+=this.children[t].size;return e}get border(){return 0}destroy(){this.parent=void 0,this.dom.pmViewDesc==this&&(this.dom.pmViewDesc=void 0);for(let e=0;e<this.children.length;e++)this.children[e].destroy()}posBeforeChild(e){for(let t=0,r=this.posAtStart;;t++){let n=this.children[t];if(n==e)return r;r+=n.size}}get posBefore(){return this.parent.posBeforeChild(this)}get posAtStart(){return this.parent?this.parent.posBeforeChild(this)+this.border:0}get posAfter(){return this.posBefore+this.size}get posAtEnd(){return this.posAtStart+this.size-2*this.border}localPosFromDOM(e,t,r){let n;if(this.contentDOM&&this.contentDOM.contains(1==e.nodeType?e:e.parentNode))if(r<0){let r,n;if(e==this.contentDOM)r=e.childNodes[t-1];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;r=e.previousSibling}for(;r&&!((n=r.pmViewDesc)&&n.parent==this);)r=r.previousSibling;return r?this.posBeforeChild(n)+n.size:this.posAtStart}else{let r,n;if(e==this.contentDOM)r=e.childNodes[t];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;r=e.nextSibling}for(;r&&!((n=r.pmViewDesc)&&n.parent==this);)r=r.nextSibling;return r?this.posBeforeChild(n):this.posAtEnd}if(e==this.dom&&this.contentDOM)n=t>o(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))n=2&e.compareDocumentPosition(this.contentDOM);else if(this.dom.firstChild){if(0==t)for(let t=e;;t=t.parentNode){if(t==this.dom){n=!1;break}if(t.previousSibling)break}if(null==n&&t==e.childNodes.length)for(let t=e;;t=t.parentNode){if(t==this.dom){n=!0;break}if(t.nextSibling)break}}return(null==n?r>0:n)?this.posAtEnd:this.posAtStart}nearestDesc(e,t=!1){for(let r=!0,n=e;n;n=n.parentNode){let i=this.getDesc(n),a;if(i&&(!t||i.node))if(!r||!(a=i.nodeDOM)||(1==a.nodeType?a.contains(1==e.nodeType?e:e.parentNode):a==e))return i;else r=!1}}getDesc(e){let t=e.pmViewDesc;for(let e=t;e;e=e.parent)if(e==this)return t}posFromDOM(e,t,r){for(let n=e;n;n=n.parentNode){let i=this.getDesc(n);if(i)return i.localPosFromDOM(e,t,r)}return -1}descAt(e){for(let t=0,r=0;t<this.children.length;t++){let n=this.children[t],i=r+n.size;if(r==e&&i!=r){for(;!n.border&&n.children.length;)for(let e=0;e<n.children.length;e++){let t=n.children[e];if(t.size){n=t;break}}return n}if(e<i)return n.descAt(e-r-n.border);r=i}}domFromPos(e,t){if(!this.contentDOM)return{node:this.dom,offset:0,atom:e+1};let r=0,n=0;for(let t=0;r<this.children.length;r++){let i=this.children[r],a=t+i.size;if(a>e||i instanceof es){n=e-t;break}t=a}if(n)return this.children[r].domFromPos(n-this.children[r].border,t);for(let e;r&&!(e=this.children[r-1]).size&&e instanceof et&&e.side>=0;r--);if(t<=0){let e,n=!0;for(;(e=r?this.children[r-1]:null)&&e.dom.parentNode!=this.contentDOM;r--,n=!1);return e&&t&&n&&!e.border&&!e.domAtom?e.domFromPos(e.size,t):{node:this.contentDOM,offset:e?o(e.dom)+1:0}}{let e,n=!0;for(;(e=r<this.children.length?this.children[r]:null)&&e.dom.parentNode!=this.contentDOM;r++,n=!1);return e&&n&&!e.border&&!e.domAtom?e.domFromPos(0,t):{node:this.contentDOM,offset:e?o(e.dom):this.contentDOM.childNodes.length}}}parseRange(e,t,r=0){if(0==this.children.length)return{node:this.contentDOM,from:e,to:t,fromOffset:0,toOffset:this.contentDOM.childNodes.length};let n=-1,i=-1;for(let a=r,s=0;;s++){let r=this.children[s],l=a+r.size;if(-1==n&&e<=l){let i=a+r.border;if(e>=i&&t<=l-r.border&&r.node&&r.contentDOM&&this.contentDOM.contains(r.contentDOM))return r.parseRange(e,t,i);e=a;for(let t=s;t>0;t--){let r=this.children[t-1];if(r.size&&r.dom.parentNode==this.contentDOM&&!r.emptyChildAt(1)){n=o(r.dom)+1;break}e-=r.size}-1==n&&(n=0)}if(n>-1&&(l>t||s==this.children.length-1)){t=l;for(let e=s+1;e<this.children.length;e++){let r=this.children[e];if(r.size&&r.dom.parentNode==this.contentDOM&&!r.emptyChildAt(-1)){i=o(r.dom);break}t+=r.size}-1==i&&(i=this.contentDOM.childNodes.length);break}a=l}return{node:this.contentDOM,from:e,to:t,fromOffset:n,toOffset:i}}emptyChildAt(e){if(this.border||!this.contentDOM||!this.children.length)return!1;let t=this.children[e<0?0:this.children.length-1];return 0==t.size||t.emptyChildAt(e)}domAfterPos(e){let{node:t,offset:r}=this.domFromPos(e,0);if(1!=t.nodeType||r==t.childNodes.length)throw RangeError("No node after pos "+e);return t.childNodes[r]}setSelection(e,t,r,n=!1){let i=Math.min(e,t),a=Math.max(e,t);for(let o=0,s=0;o<this.children.length;o++){let l=this.children[o],c=s+l.size;if(i>s&&a<c)return l.setSelection(e-s-l.border,t-s-l.border,r,n);s=c}let s=this.domFromPos(e,e?-1:1),l=t==e?s:this.domFromPos(t,t?-1:1),c=r.root.getSelection(),u=r.domSelectionRange(),p=!1;if((O||T)&&e==t){let{node:e,offset:t}=s;if(3==e.nodeType){if((p=!!(t&&"\n"==e.nodeValue[t-1]))&&t==e.nodeValue.length)for(let t=e,r;t;t=t.parentNode){if(r=t.nextSibling){"BR"==r.nodeName&&(s=l={node:r.parentNode,offset:o(r)+1});break}let e=t.pmViewDesc;if(e&&e.node&&e.node.isBlock)break}}else{let r=e.childNodes[t-1];p=r&&("BR"==r.nodeName||"false"==r.contentEditable)}}if(O&&u.focusNode&&u.focusNode!=l.node&&1==u.focusNode.nodeType){let e=u.focusNode.childNodes[u.focusOffset];e&&"false"==e.contentEditable&&(n=!0)}if(!(n||p&&T)&&h(s.node,s.offset,u.anchorNode,u.anchorOffset)&&h(l.node,l.offset,u.focusNode,u.focusOffset))return;let d=!1;if((c.extend||e==t)&&!(p&&O)){c.collapse(s.node,s.offset);try{e!=t&&c.extend(l.node,l.offset),d=!0}catch(e){}}if(!d){if(e>t){let e=s;s=l,l=e}let r=document.createRange();r.setEnd(l.node,l.offset),r.setStart(s.node,s.offset),c.removeAllRanges(),c.addRange(r)}}ignoreMutation(e){return!this.contentDOM&&"selection"!=e.type}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(e,t){for(let r=0,n=0;n<this.children.length;n++){let i=this.children[n],a=r+i.size;if(r==a?e<=a&&t>=r:e<a&&t>r){let n=r+i.border,o=a-i.border;if(e>=n&&t<=o){this.dirty=e==r||t==a?2:1,e==n&&t==o&&(i.contentLost||i.dom.parentNode!=this.contentDOM)?i.dirty=3:i.markDirty(e-n,t-n);return}i.dirty=i.dom!=i.contentDOM||i.dom.parentNode!=this.contentDOM||i.children.length?3:2}r=a}this.dirty=2}markParentsDirty(){let e=1;for(let t=this.parent;t;t=t.parent,e++){let r=1==e?2:1;t.dirty<r&&(t.dirty=r)}}get domAtom(){return!1}get ignoreForCoords(){return!1}get ignoreForSelection(){return!1}isText(e){return!1}}class et extends ee{constructor(e,t,r,n){let i,a=t.type.toDOM;if("function"==typeof a&&(a=a(r,()=>i?i.parent?i.parent.posBeforeChild(i):void 0:n)),!t.type.spec.raw){if(1!=a.nodeType){let e=document.createElement("span");e.appendChild(a),a=e}a.contentEditable="false",a.classList.add("ProseMirror-widget")}super(e,[],a,null),this.widget=t,this.widget=t,i=this}matchesWidget(e){return 0==this.dirty&&e.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(e){let t=this.widget.spec.stopEvent;return!!t&&t(e)}ignoreMutation(e){return"selection"!=e.type||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get ignoreForSelection(){return!!this.widget.type.spec.relaxedSide}get side(){return this.widget.type.side}}class er extends ee{constructor(e,t,r,n){super(e,[],t,null),this.textDOM=r,this.text=n}get size(){return this.text.length}localPosFromDOM(e,t){return e!=this.textDOM?this.posAtStart+(t?this.size:0):this.posAtStart+t}domFromPos(e){return{node:this.textDOM,offset:e}}ignoreMutation(e){return"characterData"===e.type&&e.target.nodeValue==e.oldValue}}class en extends ee{constructor(e,t,r,n,i){super(e,[],r,n),this.mark=t,this.spec=i}static create(e,t,r,n){let a=n.nodeViews[t.type.name],o=a&&a(t,n,r);return o&&o.dom||(o=i.ZF.renderSpec(document,t.type.spec.toDOM(t,r),null,t.attrs)),new en(e,t,o.dom,o.contentDOM||o.dom,o)}parseRule(){return 3&this.dirty||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(e){return 3!=this.dirty&&this.mark.eq(e)}markDirty(e,t){if(super.markDirty(e,t),0!=this.dirty){let e=this.parent;for(;!e.node;)e=e.parent;e.dirty<this.dirty&&(e.dirty=this.dirty),this.dirty=0}}slice(e,t,r){let n=en.create(this.parent,this.mark,!0,r),i=this.children,a=this.size;t<a&&(i=ey(i,t,a,r)),e>0&&(i=ey(i,0,e,r));for(let e=0;e<i.length;e++)i[e].parent=n;return n.children=i,n}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}}class ei extends ee{constructor(e,t,r,n,i,a,o){super(e,[],i,a),this.node=t,this.outerDeco=r,this.innerDeco=n,this.nodeDOM=o}static create(e,t,r,n,a,o){let s=a.nodeViews[t.type.name],l,c=s&&s(t,a,()=>l?l.parent?l.parent.posBeforeChild(l):void 0:o,r,n),u=c&&c.dom,h=c&&c.contentDOM;if(t.isText)if(u){if(3!=u.nodeType)throw RangeError("Text must be rendered as a DOM text node")}else u=document.createTextNode(t.text);else if(!u){let e=i.ZF.renderSpec(document,t.type.spec.toDOM(t),null,t.attrs);({dom:u,contentDOM:h}=e)}h||t.isText||"BR"==u.nodeName||(u.hasAttribute("contenteditable")||(u.contentEditable="false"),t.type.spec.draggable&&(u.draggable=!0));let p=u;return(u=ed(u,r,t),c)?l=new el(e,t,r,n,u,h||null,p,c):t.isText?new eo(e,t,r,n,u,p):new ei(e,t,r,n,u,h||null,p)}parseRule(e){if(this.node.type.spec.reparseInView)return null;let t={node:this.node.type.name,attrs:this.node.attrs};if("pre"==this.node.type.whitespace&&(t.preserveWhitespace="full"),this.contentDOM)if(this.contentLost){for(let e=this.children.length-1;e>=0;e--){let r=this.children[e];if(this.dom.contains(r.dom.parentNode)){t.contentElement=r.dom.parentNode;break}}if(!t.contentElement){let r=e&&e.find(t=>1==t.nodeType&&0>e.indexOf(t.parentNode)&&this.dom.contains(t));r?t.contentElement=r:t.getContent=()=>i.FK.empty}}else t.contentElement=this.contentDOM;else t.getContent=()=>this.node.content;return t}matchesNode(e,t,r){return 0==this.dirty&&e.eq(this.node)&&ef(t,this.outerDeco)&&r.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return+!this.node.isLeaf}updateChildren(e,t){let r=this.node.inlineContent,n=t,a=e.composing?this.localCompositionInfo(e,t):null,o=a&&a.pos>-1?a:null,s=a&&a.pos<0,l=new eg(this,o&&o.node,e);(function(e,t,r,n){let i=t.locals(e),a=0;if(0==i.length){for(let r=0;r<e.childCount;r++){let o=e.child(r);n(o,i,t.forChild(a,o),r),a+=o.nodeSize}return}let o=0,s=[],l=null;for(let c=0;;){let u,h,p,d;for(;o<i.length&&i[o].to==a;){let e=i[o++];e.widget&&(u?(h||(h=[u])).push(e):u=e)}if(u)if(h){h.sort(eA);for(let e=0;e<h.length;e++)r(h[e],c,!!l)}else r(u,c,!!l);if(l)d=-1,p=l,l=null;else if(c<e.childCount)d=c,p=e.child(c++);else break;for(let e=0;e<s.length;e++)s[e].to<=a&&s.splice(e--,1);for(;o<i.length&&i[o].from<=a&&i[o].to>a;)s.push(i[o++]);let f=a+p.nodeSize;if(p.isText){let e=f;o<i.length&&i[o].from<e&&(e=i[o].from);for(let t=0;t<s.length;t++)s[t].to<e&&(e=s[t].to);e<f&&(l=p.cut(e-a),p=p.cut(0,e-a),f=e,d=-1)}else for(;o<i.length&&i[o].to<f;)o++;let m=p.isInline&&!p.isLeaf?s.filter(e=>!e.inline):s.slice();n(p,m,t.forChild(a,p),d),a=f}})(this.node,this.innerDeco,(t,a,o)=>{t.spec.marks?l.syncToMarks(t.spec.marks,r,e,a):t.type.side>=0&&!o&&l.syncToMarks(a==this.node.childCount?i.CU.none:this.node.child(a).marks,r,e,a),l.placeWidget(t,e,n)},(t,i,o,c)=>{let u;l.syncToMarks(t.marks,r,e,c),l.findNodeMatch(t,i,o,c)||s&&e.state.selection.from>n&&e.state.selection.to<n+t.nodeSize&&(u=l.findIndexWithChild(a.node))>-1&&l.updateNodeAt(t,i,o,u,e)||l.updateNextNode(t,i,o,e,c,n)||l.addNode(t,i,o,e,n),n+=t.nodeSize}),l.syncToMarks([],r,e,0),this.node.isTextblock&&l.addTextblockHacks(),l.destroyRest(),(l.changed||2==this.dirty)&&(o&&this.protectLocalComposition(e,o),function e(t,r,n){let i=t.firstChild,a=!1;for(let o=0;o<r.length;o++){let s=r[o],l=s.dom;if(l.parentNode==t){for(;l!=i;)i=em(i),a=!0;i=i.nextSibling}else a=!0,t.insertBefore(l,i);if(s instanceof en){let r=i?i.previousSibling:t.lastChild;e(s.contentDOM,s.children,n),i=r?r.nextSibling:t.firstChild}}for(;i;)i=em(i),a=!0;a&&n.trackWrites==t&&(n.trackWrites=null)}(this.contentDOM,this.children,e),P&&function(e){if("UL"==e.nodeName||"OL"==e.nodeName){let t=e.style.cssText;e.style.cssText=t+"; list-style: square !important",window.getComputedStyle(e).listStyle,e.style.cssText=t}}(this.dom))}localCompositionInfo(e,t){let{from:r,to:i}=e.state.selection;if(!(e.state.selection instanceof n.U3)||r<t||i>t+this.node.content.size)return null;let a=e.input.compositionNode;if(!a||!this.dom.contains(a.parentNode))return null;if(!this.node.inlineContent)return{node:a,pos:-1,text:""};{let e=a.nodeValue,n=function(e,t,r,n){for(let i=0,a=0;i<e.childCount&&a<=n;){let o=e.child(i++),s=a;if(a+=o.nodeSize,!o.isText)continue;let l=o.text;for(;i<e.childCount;){let t=e.child(i++);if(a+=t.nodeSize,!t.isText)break;l+=t.text}if(a>=r){if(a>=n&&l.slice(n-t.length-s,n-s)==t)return n-t.length;let e=s<n?l.lastIndexOf(t,n-s-1):-1;if(e>=0&&e+t.length+s>=r)return s+e;if(r==n&&l.length>=n+t.length-s&&l.slice(n-s,n-s+t.length)==t)return n}}return -1}(this.node.content,e,r-t,i-t);return n<0?null:{node:a,pos:n,text:e}}}protectLocalComposition(e,{node:t,pos:r,text:n}){if(this.getDesc(t))return;let i=t;for(;i.parentNode!=this.contentDOM;i=i.parentNode){for(;i.previousSibling;)i.parentNode.removeChild(i.previousSibling);for(;i.nextSibling;)i.parentNode.removeChild(i.nextSibling);i.pmViewDesc&&(i.pmViewDesc=void 0)}let a=new er(this,i,t,n);e.input.compositionNodes.push(a),this.children=ey(this.children,r,r+n.length,e,a)}update(e,t,r,n){return 3!=this.dirty&&!!e.sameMarkup(this.node)&&(this.updateInner(e,t,r,n),!0)}updateInner(e,t,r,n){this.updateOuterDeco(t),this.node=e,this.innerDeco=r,this.contentDOM&&this.updateChildren(n,this.posAtStart),this.dirty=0}updateOuterDeco(e){if(ef(e,this.outerDeco))return;let t=1!=this.nodeDOM.nodeType,r=this.dom;this.dom=ep(this.dom,this.nodeDOM,eh(this.outerDeco,this.node,t),eh(e,this.node,t)),this.dom!=r&&(r.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=e}selectNode(){1==this.nodeDOM.nodeType&&(this.nodeDOM.classList.add("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&(this.nodeDOM.draggable=!0))}deselectNode(){1==this.nodeDOM.nodeType&&(this.nodeDOM.classList.remove("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&this.nodeDOM.removeAttribute("draggable"))}get domAtom(){return this.node.isAtom}}function ea(e,t,r,n,i){ed(n,t,e);let a=new ei(void 0,e,t,r,n,n,n);return a.contentDOM&&a.updateChildren(i,0),a}class eo extends ei{constructor(e,t,r,n,i,a){super(e,t,r,n,i,null,a)}parseRule(){let e=this.nodeDOM.parentNode;for(;e&&e!=this.dom&&!e.pmIsDeco;)e=e.parentNode;return{skip:e||!0}}update(e,t,r,n){return 3!=this.dirty&&(0==this.dirty||!!this.inParent())&&!!e.sameMarkup(this.node)&&(this.updateOuterDeco(t),(0!=this.dirty||e.text!=this.node.text)&&e.text!=this.nodeDOM.nodeValue&&(this.nodeDOM.nodeValue=e.text,n.trackWrites==this.nodeDOM&&(n.trackWrites=null)),this.node=e,this.dirty=0,!0)}inParent(){let e=this.parent.contentDOM;for(let t=this.nodeDOM;t;t=t.parentNode)if(t==e)return!0;return!1}domFromPos(e){return{node:this.nodeDOM,offset:e}}localPosFromDOM(e,t,r){return e==this.nodeDOM?this.posAtStart+Math.min(t,this.node.text.length):super.localPosFromDOM(e,t,r)}ignoreMutation(e){return"characterData"!=e.type&&"selection"!=e.type}slice(e,t,r){let n=this.node.cut(e,t),i=document.createTextNode(n.text);return new eo(this.parent,n,this.outerDeco,this.innerDeco,i,i)}markDirty(e,t){super.markDirty(e,t),this.dom!=this.nodeDOM&&(0==e||t==this.nodeDOM.nodeValue.length)&&(this.dirty=3)}get domAtom(){return!1}isText(e){return this.node.text==e}}class es extends ee{parseRule(){return{ignore:!0}}matchesHack(e){return 0==this.dirty&&this.dom.nodeName==e}get domAtom(){return!0}get ignoreForCoords(){return"IMG"==this.dom.nodeName}}class el extends ei{constructor(e,t,r,n,i,a,o,s){super(e,t,r,n,i,a,o),this.spec=s}update(e,t,r,n){if(3==this.dirty)return!1;if(this.spec.update&&(this.node.type==e.type||this.spec.multiType)){let i=this.spec.update(e,t,r);return i&&this.updateInner(e,t,r,n),i}return(!!this.contentDOM||!!e.isLeaf)&&super.update(e,t,r,n)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(e,t,r,n){this.spec.setSelection?this.spec.setSelection(e,t,r.root):super.setSelection(e,t,r,n)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(e){return!!this.spec.stopEvent&&this.spec.stopEvent(e)}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}}let ec=function(e){e&&(this.nodeName=e)};ec.prototype=Object.create(null);let eu=[new ec];function eh(e,t,r){if(0==e.length)return eu;let n=r?eu[0]:new ec,i=[n];for(let a=0;a<e.length;a++){let o=e[a].type.attrs;if(o)for(let e in o.nodeName&&i.push(n=new ec(o.nodeName)),o){let a=o[e];null!=a&&(r&&1==i.length&&i.push(n=new ec(t.isInline?"span":"div")),"class"==e?n.class=(n.class?n.class+" ":"")+a:"style"==e?n.style=(n.style?n.style+";":"")+a:"nodeName"!=e&&(n[e]=a))}}return i}function ep(e,t,r,n){if(r==eu&&n==eu)return t;let i=t;for(let t=0;t<n.length;t++){let a=n[t],o=r[t];if(t){let t;o&&o.nodeName==a.nodeName&&i!=e&&(t=i.parentNode)&&t.nodeName.toLowerCase()==a.nodeName||((t=document.createElement(a.nodeName)).pmIsDeco=!0,t.appendChild(i),o=eu[0]),i=t}!function(e,t,r){for(let n in t)"class"==n||"style"==n||"nodeName"==n||n in r||e.removeAttribute(n);for(let n in r)"class"!=n&&"style"!=n&&"nodeName"!=n&&r[n]!=t[n]&&e.setAttribute(n,r[n]);if(t.class!=r.class){let n=t.class?t.class.split(" ").filter(Boolean):[],i=r.class?r.class.split(" ").filter(Boolean):[];for(let t=0;t<n.length;t++)-1==i.indexOf(n[t])&&e.classList.remove(n[t]);for(let t=0;t<i.length;t++)-1==n.indexOf(i[t])&&e.classList.add(i[t]);0==e.classList.length&&e.removeAttribute("class")}if(t.style!=r.style){if(t.style){let r=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g,n;for(;n=r.exec(t.style);)e.style.removeProperty(n[1])}r.style&&(e.style.cssText+=r.style)}}(i,o||eu[0],a)}return i}function ed(e,t,r){return ep(e,e,eu,eh(t,r,1!=e.nodeType))}function ef(e,t){if(e.length!=t.length)return!1;for(let r=0;r<e.length;r++)if(!e[r].type.eq(t[r].type))return!1;return!0}function em(e){let t=e.nextSibling;return e.parentNode.removeChild(e),t}class eg{constructor(e,t,r){this.lock=t,this.view=r,this.index=0,this.stack=[],this.changed=!1,this.top=e,this.preMatch=function(e,t){let r=t,n=r.children.length,i=e.childCount,a=new Map,o=[];l:for(;i>0;){let s;for(;;)if(n){let e=r.children[n-1];if(e instanceof en)r=e,n=e.children.length;else{s=e,n--;break}}else if(r==t)break l;else n=r.parent.children.indexOf(r),r=r.parent;let l=s.node;if(l){if(l!=e.child(i-1))break;--i,a.set(s,i),o.push(s)}}return{index:i,matched:a,matches:o.reverse()}}(e.node.content,e)}destroyBetween(e,t){if(e!=t){for(let r=e;r<t;r++)this.top.children[r].destroy();this.top.children.splice(e,t-e),this.changed=!0}}destroyRest(){this.destroyBetween(this.index,this.top.children.length)}syncToMarks(e,t,r,n){let i=0,a=this.stack.length>>1,o=Math.min(a,e.length);for(;i<o&&(i==a-1?this.top:this.stack[i+1<<1]).matchesMark(e[i])&&!1!==e[i].type.spec.spanning;)i++;for(;i<a;)this.destroyRest(),this.top.dirty=0,this.index=this.stack.pop(),this.top=this.stack.pop(),a--;for(;a<e.length;){this.stack.push(this.top,this.index+1);let i=-1,o=this.top.children.length;n<this.preMatch.index&&(o=Math.min(this.index+3,o));for(let t=this.index;t<o;t++){let r=this.top.children[t];if(r.matchesMark(e[a])&&!this.isLocked(r.dom)){i=t;break}}if(i<0&&this.index<this.top.children.length){let t=this.top.children[this.index];t instanceof en&&3!=t.dirty&&t.mark.type==e[a].type&&t.spec.update&&!this.isLocked(t.dom)&&t.spec.update(e[a])&&(t.mark=e[a],i=this.index,this.changed=!0)}if(i>-1)i>this.index&&(this.changed=!0,this.destroyBetween(this.index,i)),this.top=this.top.children[this.index];else{let n=en.create(this.top,e[a],t,r);this.top.children.splice(this.index,0,n),this.top=n,this.changed=!0}this.index=0,a++}}findNodeMatch(e,t,r,n){let i=-1,a;if(n>=this.preMatch.index&&(a=this.preMatch.matches[n-this.preMatch.index]).parent==this.top&&a.matchesNode(e,t,r))i=this.top.children.indexOf(a,this.index);else for(let n=this.index,a=Math.min(this.top.children.length,n+5);n<a;n++){let a=this.top.children[n];if(a.matchesNode(e,t,r)&&!this.preMatch.matched.has(a)){i=n;break}}return!(i<0)&&(this.destroyBetween(this.index,i),this.index++,!0)}updateNodeAt(e,t,r,n,i){let a=this.top.children[n];return 3==a.dirty&&a.dom==a.contentDOM&&(a.dirty=2),!!a.update(e,t,r,i)&&(this.destroyBetween(this.index,n),this.index++,!0)}findIndexWithChild(e){for(;;){let t=e.parentNode;if(!t)return -1;if(t==this.top.contentDOM){let t=e.pmViewDesc;if(t){for(let e=this.index;e<this.top.children.length;e++)if(this.top.children[e]==t)return e}return -1}e=t}}updateNextNode(e,t,r,n,i,a){for(let o=this.index;o<this.top.children.length;o++){let s=this.top.children[o];if(s instanceof ei){let l=this.preMatch.matched.get(s);if(null!=l&&l!=i)return!1;let c=s.dom,u,h=this.isLocked(c)&&!(e.isText&&s.node&&s.node.isText&&s.nodeDOM.nodeValue==e.text&&3!=s.dirty&&ef(t,s.outerDeco));if(!h&&s.update(e,t,r,n))return this.destroyBetween(this.index,o),s.dom!=c&&(this.changed=!0),this.index++,!0;if(!h&&(u=this.recreateWrapper(s,e,t,r,n,a)))return this.destroyBetween(this.index,o),this.top.children[this.index]=u,u.contentDOM&&(u.dirty=2,u.updateChildren(n,a+1),u.dirty=0),this.changed=!0,this.index++,!0;break}}return!1}recreateWrapper(e,t,r,n,i,a){if(e.dirty||t.isAtom||!e.children.length||!e.node.content.eq(t.content)||!ef(r,e.outerDeco)||!n.eq(e.innerDeco))return null;let o=ei.create(this.top,t,r,n,i,a);if(o.contentDOM)for(let t of(o.children=e.children,e.children=[],o.children))t.parent=o;return e.destroy(),o}addNode(e,t,r,n,i){let a=ei.create(this.top,e,t,r,n,i);a.contentDOM&&a.updateChildren(n,i+1),this.top.children.splice(this.index++,0,a),this.changed=!0}placeWidget(e,t,r){let n=this.index<this.top.children.length?this.top.children[this.index]:null;if(n&&n.matchesWidget(e)&&(e==n.widget||!n.widget.type.toDOM.parentNode))this.index++;else{let n=new et(this.top,e,t,r);this.top.children.splice(this.index++,0,n),this.changed=!0}}addTextblockHacks(){let e=this.top.children[this.index-1],t=this.top;for(;e instanceof en;)e=(t=e).children[t.children.length-1];(!e||!(e instanceof eo)||/\n$/.test(e.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(e.node.text))&&((T||N)&&e&&"false"==e.dom.contentEditable&&this.addHackNode("IMG",t),this.addHackNode("BR",this.top))}addHackNode(e,t){if(t==this.top&&this.index<t.children.length&&t.children[this.index].matchesHack(e))this.index++;else{let r=document.createElement(e);"IMG"==e&&(r.className="ProseMirror-separator",r.alt=""),"BR"==e&&(r.className="ProseMirror-trailingBreak");let n=new es(this.top,[],r,null);t!=this.top?t.children.push(n):t.children.splice(this.index++,0,n),this.changed=!0}}isLocked(e){return this.lock&&(e==this.lock||1==e.nodeType&&e.contains(this.lock.parentNode))}}function eA(e,t){return e.type.side-t.type.side}function ey(e,t,r,n,i){let a=[];for(let o=0,s=0;o<e.length;o++){let l=e[o],c=s,u=s+=l.size;c>=r||u<=t?a.push(l):(c<t&&a.push(l.slice(0,t-c,n)),i&&(a.push(i),i=void 0),u>r&&a.push(l.slice(r-c,l.size,n)))}return a}function ev(e,t=null){let r=e.domSelectionRange(),i=e.state.doc;if(!r.focusNode)return null;let a=e.docView.nearestDesc(r.focusNode),s=a&&0==a.size,l=e.docView.posFromDOM(r.focusNode,r.focusOffset,1);if(l<0)return null;let c=i.resolve(l),u,h;if(g(r)){for(u=l;a&&!a.node;)a=a.parent;let e=a.node;if(a&&e.isAtom&&n.nh.isSelectable(e)&&a.parent&&!(e.isInline&&function(e,t,r){for(let n=0==t,i=t==f(e);n||i;){if(e==r)return!0;let t=o(e);if(!(e=e.parentNode))return!1;n=n&&0==t,i=i&&t==f(e)}}(r.focusNode,r.focusOffset,a.dom))){let e=a.posBefore;h=new n.nh(l==e?c:i.resolve(e))}}else{if(r instanceof e.dom.ownerDocument.defaultView.Selection&&r.rangeCount>1){let t=l,n=l;for(let i=0;i<r.rangeCount;i++){let a=r.getRangeAt(i);t=Math.min(t,e.docView.posFromDOM(a.startContainer,a.startOffset,1)),n=Math.max(n,e.docView.posFromDOM(a.endContainer,a.endOffset,-1))}if(t<0)return null;[u,l]=n==e.state.selection.anchor?[n,t]:[t,n],c=i.resolve(l)}else u=e.docView.posFromDOM(r.anchorNode,r.anchorOffset,1);if(u<0)return null}let p=i.resolve(u);if(!h){let r="pointer"==t||e.state.selection.head<c.pos&&!s?1:-1;h=eN(e,p,c,r)}return h}function eR(e){return e.editable?e.hasFocus():eT(e)&&document.activeElement&&document.activeElement.contains(e.dom)}function eb(e,t=!1){let r=e.state.selection;if(eO(e,r),!eR(e))return;let i=e.input.mouseDown;if(!t&&N&&i){let t=e.domSelectionRange(),r=e.domObserver.currentSelection;if(t.anchorNode&&r.anchorNode&&h(t.anchorNode,t.anchorOffset,r.anchorNode,r.anchorOffset)&&i.delaySelUpdate())return void e.domObserver.setCurSelection()}if(e.domObserver.disconnectSelection(),e.cursorWrapper)!function(e){let t=e.domSelection();if(!t)return;let r=e.cursorWrapper.dom,n="IMG"==r.nodeName;n?t.collapse(r.parentNode,o(r)+1):t.collapse(r,0),!n&&!e.state.selection.visible&&S&&w<=11&&(r.disabled=!0,r.disabled=!1)}(e);else{var a;let i,o,s,l,{anchor:c,head:u}=r,h,p;ex&&!(r instanceof n.U3)&&(r.$from.parent.inlineContent||(h=eM(e,r.from)),r.empty||r.$from.parent.inlineContent||(p=eM(e,r.to))),e.docView.setSelection(c,u,e,t),ex&&(h&&ew(h),p&&ew(p)),r.visible?e.dom.classList.remove("ProseMirror-hideselection"):(e.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&((i=(a=e).dom.ownerDocument).removeEventListener("selectionchange",a.input.hideSelectionGuard),s=(o=a.domSelectionRange()).anchorNode,l=o.anchorOffset,i.addEventListener("selectionchange",a.input.hideSelectionGuard=()=>{(o.anchorNode!=s||o.anchorOffset!=l)&&(i.removeEventListener("selectionchange",a.input.hideSelectionGuard),setTimeout(()=>{(!eR(a)||a.state.selection.visible)&&a.dom.classList.remove("ProseMirror-hideselection")},20))})))}e.domObserver.setCurSelection(),e.domObserver.connectSelection()}let ex=T||N&&_<63;function eM(e,t){let{node:r,offset:n}=e.docView.domFromPos(t,0),i=n<r.childNodes.length?r.childNodes[n]:null,a=n?r.childNodes[n-1]:null;if(T&&i&&"false"==i.contentEditable)return eS(i);if((!i||"false"==i.contentEditable)&&(!a||"false"==a.contentEditable)){if(i)return eS(i);else if(a)return eS(a)}}function eS(e){return e.contentEditable="true",T&&e.draggable&&(e.draggable=!1,e.wasDraggable=!0),e}function ew(e){e.contentEditable="false",e.wasDraggable&&(e.draggable=!0,e.wasDraggable=null)}function eO(e,t){if(t instanceof n.nh){let r=e.docView.descAt(t.from);r!=e.lastSelectedViewDesc&&(eL(e),r&&r.selectNode(),e.lastSelectedViewDesc=r)}else eL(e)}function eL(e){e.lastSelectedViewDesc&&(e.lastSelectedViewDesc.parent&&e.lastSelectedViewDesc.deselectNode(),e.lastSelectedViewDesc=void 0)}function eN(e,t,r,i){return e.someProp("createSelectionBetween",n=>n(e,t,r))||n.U3.between(t,r,i)}function e_(e){return(!e.editable||!!e.hasFocus())&&eT(e)}function eT(e){let t=e.domSelectionRange();if(!t.anchorNode)return!1;try{return e.dom.contains(3==t.anchorNode.nodeType?t.anchorNode.parentNode:t.anchorNode)&&(e.editable||e.dom.contains(3==t.focusNode.nodeType?t.focusNode.parentNode:t.focusNode))}catch(e){return!1}}function eP(e,t){let{$anchor:r,$head:i}=e.selection,a=t>0?r.max(i):r.min(i),o=a.parent.inlineContent?a.depth?e.doc.resolve(t>0?a.after():a.before()):null:a;return o&&n.LN.findFrom(o,t)}function eC(e,t){return e.dispatch(e.state.tr.setSelection(t).scrollIntoView()),!0}function eI(e,t,r){let i=e.state.selection;if(i instanceof n.U3){if(r.indexOf("s")>-1){let{$head:r}=i,a=r.textOffset?null:t<0?r.nodeBefore:r.nodeAfter;if(!a||a.isText||!a.isLeaf)return!1;let o=e.state.doc.resolve(r.pos+a.nodeSize*(t<0?-1:1));return eC(e,new n.U3(i.$anchor,o))}else if(!i.empty)return!1;else if(e.endOfTextblock(t>0?"forward":"backward")){let r=eP(e.state,t);return!!r&&r instanceof n.nh&&eC(e,r)}else if(!(C&&r.indexOf("m")>-1)){let r=i.$head,a=r.textOffset?null:t<0?r.nodeBefore:r.nodeAfter,o;if(!a||a.isText)return!1;let s=t<0?r.pos-a.nodeSize:r.pos;return!!(a.isAtom||(o=e.docView.descAt(s))&&!o.contentDOM)&&(n.nh.isSelectable(a)?eC(e,new n.nh(t<0?e.state.doc.resolve(r.pos-a.nodeSize):r)):!!F&&eC(e,new n.U3(e.state.doc.resolve(t<0?s:s+a.nodeSize))))}}else{if(i instanceof n.nh&&i.node.isInline)return eC(e,new n.U3(t>0?i.$to:i.$from));let r=eP(e.state,t);return!!r&&eC(e,r)}}function ek(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function eF(e,t){let r=e.pmViewDesc;return r&&0==r.size&&(t<0||e.nextSibling||"BR"!=e.nodeName)}function eX(e,t){return t<0?function(e){let t=e.domSelectionRange(),r=t.focusNode,n=t.focusOffset;if(!r)return;let i,a,s=!1;for(O&&1==r.nodeType&&n<ek(r)&&eF(r.childNodes[n],-1)&&(s=!0);;)if(n>0)if(1!=r.nodeType)break;else{let e=r.childNodes[n-1];if(eF(e,-1))i=r,a=--n;else if(3==e.nodeType)n=(r=e).nodeValue.length;else break}else if(eU(r))break;else{let t=r.previousSibling;for(;t&&eF(t,-1);)i=r.parentNode,a=o(t),t=t.previousSibling;if(t)n=ek(r=t);else{if((r=r.parentNode)==e.dom)break;n=0}}s?eW(e,r,n):i&&eW(e,i,a)}(e):function(e){let t,r,n=e.domSelectionRange(),i=n.focusNode,a=n.focusOffset;if(!i)return;let s=ek(i);for(;;)if(a<s){if(1!=i.nodeType)break;if(eF(i.childNodes[a],1))t=i,r=++a;else break}else if(eU(i))break;else{let n=i.nextSibling;for(;n&&eF(n,1);)t=n.parentNode,r=o(n)+1,n=n.nextSibling;if(n)a=0,s=ek(i=n);else{if((i=i.parentNode)==e.dom)break;a=s=0}}t&&eW(e,t,r)}(e)}function eU(e){let t=e.pmViewDesc;return t&&t.node&&t.node.isBlock}function eW(e,t,r){if(3!=t.nodeType){let e,n;(n=function(e,t){for(;e&&t==e.childNodes.length&&!m(e);)t=o(e)+1,e=e.parentNode;for(;e&&t<e.childNodes.length;){let r=e.childNodes[t];if(3==r.nodeType)return r;if(1==r.nodeType&&"false"==r.contentEditable)break;e=r,t=0}}(t,r))?(t=n,r=0):(e=function(e,t){for(;e&&!t&&!m(e);)t=o(e),e=e.parentNode;for(;e&&t;){let r=e.childNodes[t-1];if(3==r.nodeType)return r;if(1==r.nodeType&&"false"==r.contentEditable)break;t=(e=r).childNodes.length}}(t,r))&&(t=e,r=e.nodeValue.length)}let n=e.domSelection();if(!n)return;if(g(n)){let e=document.createRange();e.setEnd(t,r),e.setStart(t,r),n.removeAllRanges(),n.addRange(e)}else n.extend&&n.extend(t,r);e.domObserver.setCurSelection();let{state:i}=e;setTimeout(()=>{e.state==i&&eb(e)},50)}function eV(e,t){let r=e.state.doc.resolve(t);if(!(N||I)&&r.parent.inlineContent){let n=e.coordsAtPos(t);if(t>r.start()){let r=e.coordsAtPos(t-1),i=(r.top+r.bottom)/2;if(i>n.top&&i<n.bottom&&Math.abs(r.left-n.left)>1)return r.left<n.left?"ltr":"rtl"}if(t<r.end()){let r=e.coordsAtPos(t+1),i=(r.top+r.bottom)/2;if(i>n.top&&i<n.bottom&&Math.abs(r.left-n.left)>1)return r.left>n.left?"ltr":"rtl"}}return"rtl"==getComputedStyle(e.dom).direction?"rtl":"ltr"}function eE(e,t,r){let i=e.state.selection;if(i instanceof n.U3&&!i.empty||r.indexOf("s")>-1||C&&r.indexOf("m")>-1)return!1;let{$from:a,$to:o}=i;if(!a.parent.inlineContent||e.endOfTextblock(t<0?"up":"down")){let r=eP(e.state,t);if(r&&r instanceof n.nh)return eC(e,r)}if(!a.parent.inlineContent){let r=t<0?a:o,s=i instanceof n.i5?n.LN.near(r,t):n.LN.findFrom(r,t);return!!s&&eC(e,s)}return!1}function eY(e,t){if(!(e.state.selection instanceof n.U3))return!0;let{$head:r,$anchor:i,empty:a}=e.state.selection;if(!r.sameParent(i))return!0;if(!a)return!1;if(e.endOfTextblock(t>0?"forward":"backward"))return!0;let o=!r.textOffset&&(t<0?r.nodeBefore:r.nodeAfter);if(o&&!o.isText){let n=e.state.tr;return t<0?n.delete(r.pos-o.nodeSize,r.pos):n.delete(r.pos,r.pos+o.nodeSize),e.dispatch(n),!0}return!1}function eD(e,t,r){e.domObserver.stop(),t.contentEditable=r,e.domObserver.start()}function eQ(e,t){e.someProp("transformCopied",r=>{t=r(t,e)});let r=[],{content:n,openStart:a,openEnd:o}=t;for(;a>1&&o>1&&1==n.childCount&&1==n.firstChild.childCount;){a--,o--;let e=n.firstChild;r.push(e.type.name,e.attrs!=e.type.defaultAttrs?e.attrs:null),n=e.content}let s=e.someProp("clipboardSerializer")||i.ZF.fromSchema(e.state.schema),l=ez(),c=l.createElement("div");c.appendChild(s.serializeFragment(n,{document:l}));let u=c.firstChild,h,p=0;for(;u&&1==u.nodeType&&(h=eH[u.nodeName.toLowerCase()]);){for(let e=h.length-1;e>=0;e--){let t=l.createElement(h[e]);for(;c.firstChild;)t.appendChild(c.firstChild);c.appendChild(t),p++}u=c.firstChild}return u&&1==u.nodeType&&u.setAttribute("data-pm-slice",`${a} ${o}${p?` -${p}`:""} ${JSON.stringify(r)}`),{dom:c,text:e.someProp("clipboardTextSerializer",r=>r(t,e))||t.content.textBetween(0,t.content.size,"\n\n"),slice:t}}function e$(e,t,r,n,a){let o,s,l=a.parent.type.spec.code;if(!r&&!t)return null;let c=!!t&&(n||l||!r);if(c){if(e.someProp("transformPastedText",r=>{t=r(t,l||n,e)}),l)return s=new i.Ji(i.FK.from(e.state.schema.text(t.replace(/\r\n?/g,"\n"))),0,0),e.someProp("transformPasted",t=>{s=t(s,e,!0)}),s;let r=e.someProp("clipboardTextParser",r=>r(t,a,n,e));if(r)s=r;else{let r=a.marks(),{schema:n}=e.state,s=i.ZF.fromSchema(n);o=document.createElement("div"),t.split(/(?:\r\n?|\n)+/).forEach(e=>{let t=o.appendChild(document.createElement("p"));e&&t.appendChild(s.serializeNode(n.text(e,r)))})}}else e.someProp("transformPastedHTML",t=>{r=t(r,e)}),o=function(e){var t;let r,n=/^(\s*<meta [^>]*>)*/.exec(e);n&&(e=e.slice(n[0].length));let i=ez(),a=i.body,o=/<([a-z][^>\s]+)/i.exec(e),s;if((s=o&&eH[o[1].toLowerCase()])&&(e=s.map(e=>"<"+e+">").join("")+e+s.map(e=>"</"+e+">").reverse().join("")),a.innerHTML=(t=e,(r=window.trustedTypes)?(eJ||(eJ=r.defaultPolicy||r.createPolicy("ProseMirrorClipboard",{createHTML:e=>e})),eJ.createHTML(t)):t),s)for(let e=0;e<s.length;e++)a=a.querySelector(s[e])||a;for(let e=0;e<i.styleSheets.length;e++){let t=i.styleSheets[e];for(let e=0;e<t.rules.length;e++){let r=t.rules[e];if(r instanceof CSSStyleRule){let e=a.querySelectorAll(r.selectorText);for(let t=0;t<e.length;t++)e[t].style.cssText+=r.style.cssText}}}return a}(r),F&&function(e){let t=e.querySelectorAll(N?"span:not([class]):not([style])":"span.Apple-converted-space");for(let r=0;r<t.length;r++){let n=t[r];1==n.childNodes.length&&" "==n.textContent&&n.parentNode&&n.parentNode.replaceChild(e.ownerDocument.createTextNode(" "),n)}}(o);let u=o&&o.querySelector("[data-pm-slice]"),h=u&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(u.getAttribute("data-pm-slice")||"");if(h&&h[3])for(let e=+h[3];e>0;e--){let e=o.firstChild;for(;e&&1!=e.nodeType;)e=e.nextSibling;if(!e)break;o=e}if(s||(s=(e.someProp("clipboardParser")||e.someProp("domParser")||i.S4.fromSchema(e.state.schema)).parseSlice(o,{preserveWhitespace:!!(c||h),context:a,ruleFromNode:e=>"BR"!=e.nodeName||e.nextSibling||!e.parentNode||eB.test(e.parentNode.nodeName)?null:{ignore:!0}})),h)s=function(e,t){if(!e.size)return e;let r=e.content.firstChild.type.schema,n;try{n=JSON.parse(t)}catch(t){return e}let{content:a,openStart:o,openEnd:s}=e;for(let e=n.length-2;e>=0;e-=2){let t=r.nodes[n[e]];if(!t||t.hasRequiredAttrs())break;a=i.FK.from(t.create(n[e+1],a)),o++,s++}return new i.Ji(a,o,s)}(eG(s,+h[1],+h[2]),h[4]);else if((s=i.Ji.maxOpen(function(e,t){if(e.childCount<2)return e;for(let r=t.depth;r>=0;r--){let n=t.node(r).contentMatchAt(t.index(r)),a,o=[];if(e.forEach(e=>{if(!o)return;let t=n.findWrapping(e.type),r;if(!t)return o=null;if(r=o.length&&a.length&&function e(t,r,n,a,o){if(o<t.length&&o<r.length&&t[o]==r[o]){let s=e(t,r,n,a.lastChild,o+1);if(s)return a.copy(a.content.replaceChild(a.childCount-1,s));if(a.contentMatchAt(a.childCount).matchType(o==t.length-1?n.type:t[o+1]))return a.copy(a.content.append(i.FK.from(eZ(n,t,o+1))))}}(t,a,e,o[o.length-1],0))o[o.length-1]=r;else{o.length&&(o[o.length-1]=function e(t,r){if(0==r)return t;let n=t.content.replaceChild(t.childCount-1,e(t.lastChild,r-1)),a=t.contentMatchAt(t.childCount).fillBefore(i.FK.empty,!0);return t.copy(n.append(a))}(o[o.length-1],a.length));let r=eZ(e,t);o.push(r),n=n.matchType(r.type),a=t}}),o)return i.FK.from(o)}return e}(s.content,a),!0)).openStart||s.openEnd){let e=0,t=0;for(let t=s.content.firstChild;e<s.openStart&&!t.type.spec.isolating;e++,t=t.firstChild);for(let e=s.content.lastChild;t<s.openEnd&&!e.type.spec.isolating;t++,e=e.lastChild);s=eG(s,e,t)}return e.someProp("transformPasted",t=>{s=t(s,e,c)}),s}let eB=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function eZ(e,t,r=0){for(let n=t.length-1;n>=r;n--)e=t[n].create(null,i.FK.from(e));return e}function eK(e,t,r,n,a,o){let s=t<0?e.firstChild:e.lastChild,l=s.content;return e.childCount>1&&(o=0),a<n-1&&(l=eK(l,t,r,n,a+1,o)),a>=r&&(l=t<0?s.contentMatchAt(0).fillBefore(l,o<=a).append(l):l.append(s.contentMatchAt(s.childCount).fillBefore(i.FK.empty,!0))),e.replaceChild(t<0?0:e.childCount-1,s.copy(l))}function eG(e,t,r){return t<e.openStart&&(e=new i.Ji(eK(e.content,-1,t,e.openStart,0,e.openEnd),t,e.openEnd)),r<e.openEnd&&(e=new i.Ji(eK(e.content,1,r,e.openEnd,0,0),e.openStart,r)),e}let eH={thead:["table"],tbody:["table"],tfoot:["table"],caption:["table"],colgroup:["table"],col:["table","colgroup"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","tbody","tr"]};function ez(){return document.implementation.createHTMLDocument("title")}let eJ=null,ej={},eq={},e0={touchstart:!0,touchmove:!0};class e1{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:"",button:0},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastChromeDelete=0,this.composing=!1,this.compositionNode=null,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.badSafariComposition=!1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function e2(e,t){e.input.lastSelectionOrigin=t,e.input.lastSelectionTime=Date.now()}function e3(e){e.someProp("handleDOMEvents",t=>{for(let r in t)e.input.eventHandlers[r]||e.dom.addEventListener(r,e.input.eventHandlers[r]=t=>e5(e,t))})}function e5(e,t){return e.someProp("handleDOMEvents",r=>{let n=r[t.type];return!!n&&(n(e,t)||t.defaultPrevented)})}function e4(e){return{left:e.clientX,top:e.clientY}}function e6(e,t,r,n,i){if(-1==n)return!1;let a=e.state.doc.resolve(n);for(let n=a.depth+1;n>0;n--)if(e.someProp(t,t=>n>a.depth?t(e,r,a.nodeAfter,a.before(n),i,!0):t(e,r,a.node(n),a.before(n),i,!1)))return!0;return!1}function e8(e,t,r){if(e.focused||e.focus(),e.state.selection.eq(t))return;let n=e.state.tr.setSelection(t);"pointer"==r&&n.setMeta("pointer",!0),e.dispatch(n)}function e9(e,t,r){let i=e.state.doc;if(-1==t)return i.inlineContent?n.U3.create(i,0,i.content.size):null;let a=i.resolve(t);for(let e=a.depth+1;e>0;e--){let t=e>a.depth?a.nodeAfter:a.node(e),o=a.before(e);if(t.inlineContent)return n.U3.create(i,o+1,o+1+t.content.size);if(r&&n.nh.isSelectable(t))return n.nh.create(i,o)}return null}eq.keydown=(e,t)=>{if((e.input.shiftKey=16==t.keyCode||t.shiftKey,!tn(e))&&(e.input.lastKeyCode=t.keyCode,e.input.lastKeyCodeTime=Date.now(),!k||!N||13!=t.keyCode))if(229!=t.keyCode&&e.domObserver.forceFlush(),!P||13!=t.keyCode||t.ctrlKey||t.altKey||t.metaKey)e.someProp("handleKeyDown",r=>r(e,t))||function(e,t){let r,n=t.keyCode,i=(r="",t.ctrlKey&&(r+="c"),t.metaKey&&(r+="m"),t.altKey&&(r+="a"),t.shiftKey&&(r+="s"),r);if(8==n||C&&72==n&&"c"==i)return eY(e,-1)||eX(e,-1);if(46==n&&!t.shiftKey||C&&68==n&&"c"==i)return eY(e,1)||eX(e,1);if(13==n||27==n)return!0;if(37==n||C&&66==n&&"c"==i){let t=37==n?"ltr"==eV(e,e.state.selection.from)?-1:1:-1;return eI(e,t,i)||eX(e,t)}if(39==n||C&&70==n&&"c"==i){let t=39==n?"ltr"==eV(e,e.state.selection.from)?1:-1:1;return eI(e,t,i)||eX(e,t)}else if(38==n||C&&80==n&&"c"==i)return eE(e,-1,i)||eX(e,-1);else if(40==n||C&&78==n&&"c"==i)return function(e){if(!T||e.state.selection.$head.parentOffset>0)return!1;let{focusNode:t,focusOffset:r}=e.domSelectionRange();if(t&&1==t.nodeType&&0==r&&t.firstChild&&"false"==t.firstChild.contentEditable){let r=t.firstChild;eD(e,r,"true"),setTimeout(()=>eD(e,r,"false"),20)}return!1}(e)||eE(e,1,i)||eX(e,1);else if(i==(C?"m":"c")&&(66==n||73==n||89==n||90==n))return!0;return!1}(e,t)?t.preventDefault():e2(e,"key");else{let t=Date.now();e.input.lastIOSEnter=t,e.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{e.input.lastIOSEnter==t&&(e.someProp("handleKeyDown",t=>t(e,A(13,"Enter"))),e.input.lastIOSEnter=0)},200)}},eq.keyup=(e,t)=>{16==t.keyCode&&(e.input.shiftKey=!1)},eq.keypress=(e,t)=>{if(tn(e)||!t.charCode||t.ctrlKey&&!t.altKey||C&&t.metaKey)return;if(e.someProp("handleKeyPress",r=>r(e,t)))return void t.preventDefault();let r=e.state.selection;if(!(r instanceof n.U3)||!r.$from.sameParent(r.$to)){let n=String.fromCharCode(t.charCode),i=()=>e.state.tr.insertText(n).scrollIntoView();/[\r\n]/.test(n)||e.someProp("handleTextInput",t=>t(e,r.$from.pos,r.$to.pos,n,i))||e.dispatch(i()),t.preventDefault()}};let e7=C?"metaKey":"ctrlKey";ej.mousedown=(e,t)=>{var r;let i,a;e.input.shiftKey=t.shiftKey;let o=ts(e),s=Date.now(),l="singleClick";s-e.input.lastClick.time<500&&(i=(r=e.input.lastClick).x-t.clientX)*i+(a=r.y-t.clientY)*a<100&&!t[e7]&&e.input.lastClick.button==t.button&&("singleClick"==e.input.lastClick.type?l="doubleClick":"doubleClick"==e.input.lastClick.type&&(l="tripleClick")),e.input.lastClick={time:s,x:t.clientX,y:t.clientY,type:l,button:t.button},e.input.mouseDown&&e.input.mouseDown.done();let c=e.posAtCoords(e4(t));c&&("singleClick"==l?e.input.mouseDown=new tt(e,c,t,!!o):("doubleClick"==l?function(e,t,r,n){return e6(e,"handleDoubleClickOn",t,r,n)||e.someProp("handleDoubleClick",r=>r(e,t,n))}:function(e,t,r,i){return e6(e,"handleTripleClickOn",t,r,i)||e.someProp("handleTripleClick",r=>r(e,t,i))||function(e,t,r){if(0!=r.button)return!1;let i=e9(e,t,!0),a=e.state.doc;return!!i&&(e8(e,i,"pointer"),i instanceof n.U3&&a.eq(e.state.doc)&&(e.input.mouseDown=new tr(e,i)),!0)}(e,r,i)})(e,c.pos,c.inside,t)?t.preventDefault():e2(e,"pointer"))};class te{constructor(e){this.view=e,this.mightDrag=null,e.root.addEventListener("mouseup",this.up=this.up.bind(this)),e.root.addEventListener("mousemove",this.move=this.move.bind(this))}up(e){this.done()}move(e){0==e.buttons&&this.done()}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.view.input.mouseDown==this&&(this.view.input.mouseDown=null)}delaySelUpdate(){return!1}}class tt extends te{constructor(e,t,r,i){let a,o;if(super(e),this.pos=t,this.event=r,this.flushed=i,this.delayedSelectionSync=!1,this.startDoc=e.state.doc,this.selectNode=!!r[e7],this.allowDefault=r.shiftKey,t.inside>-1)a=e.state.doc.nodeAt(t.inside),o=t.inside;else{let r=e.state.doc.resolve(t.pos);a=r.parent,o=r.depth?r.before():0}let s=i?null:r.target,l=s?e.docView.nearestDesc(s,!0):null;this.target=l&&1==l.nodeDOM.nodeType?l.nodeDOM:null;let{selection:c}=e.state;0==r.button&&(a.type.spec.draggable&&!1!==a.type.spec.selectable||c instanceof n.nh&&c.from<=o&&c.to>o)&&(this.mightDrag={node:a,pos:o,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&O&&!this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")},20),this.view.domObserver.start()),e2(e,"pointer")}done(){super.done(),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>{this.view.isDestroyed||eb(this.view)})}up(e){if(this.done(),!this.view.dom.contains(e.target))return;let t=this.pos;if(this.view.state.doc!=this.startDoc&&(t=this.view.posAtCoords(e4(e))),this.updateAllowDefault(e),this.allowDefault||!t)e2(this.view,"pointer");else{var r,i,a,o;(r=this.view,i=t.pos,a=t.inside,o=this.selectNode,e6(r,"handleClickOn",i,a,e)||r.someProp("handleClick",t=>t(r,i,e))||(o?function(e,t){if(-1==t)return!1;let r=e.state.selection,i,a;r instanceof n.nh&&(i=r.node);let o=e.state.doc.resolve(t);for(let e=o.depth+1;e>0;e--){let t=e>o.depth?o.nodeAfter:o.node(e);if(n.nh.isSelectable(t)){a=i&&r.$from.depth>0&&e>=r.$from.depth&&o.before(r.$from.depth+1)==r.$from.pos?o.before(r.$from.depth):o.before(e);break}}return null!=a&&(e8(e,n.nh.create(e.state.doc,a),"pointer"),!0)}(r,a):function(e,t){if(-1==t)return!1;let r=e.state.doc.resolve(t),i=r.nodeAfter;return!!(i&&i.isAtom&&n.nh.isSelectable(i))&&(e8(e,new n.nh(r),"pointer"),!0)}(r,a)))?e.preventDefault():0==e.button&&(this.flushed||T&&this.mightDrag&&!this.mightDrag.node.isAtom||N&&!this.view.state.selection.visible&&2>=Math.min(Math.abs(t.pos-this.view.state.selection.from),Math.abs(t.pos-this.view.state.selection.to)))?(e8(this.view,n.LN.near(this.view.state.doc.resolve(t.pos)),"pointer"),e.preventDefault()):e2(this.view,"pointer")}}move(e){this.updateAllowDefault(e),e2(this.view,"pointer"),super.move(e)}updateAllowDefault(e){!this.allowDefault&&(Math.abs(this.event.x-e.clientX)>4||Math.abs(this.event.y-e.clientY)>4)&&(this.allowDefault=!0)}delaySelUpdate(){return!!this.allowDefault&&(this.delayedSelectionSync=!0,!0)}}class tr extends te{constructor(e,t){super(e),this.startSelection=t,this.startDoc=e.state.doc}move(e){if(0==e.buttons||this.view.isDestroyed||!this.view.state.doc.eq(this.startDoc))return void this.done();e.preventDefault(),e2(this.view,"pointer");let t=this.view.posAtCoords(e4(e)),r=t&&e9(this.view,t.inside,!1);if(!r)return;let{doc:i}=this.view.state,a=this.startSelection,[o,s]=r.from<a.from?[a.to,r.from]:[a.from,r.to];e8(this.view,n.U3.create(i,o,s),"pointer")}}function tn(e,t){return!!e.composing||!!(T&&500>Math.abs(Date.now()-e.input.compositionEndedAt))&&(e.input.compositionEndedAt=-2e8,!0)}ej.touchstart=e=>{e.input.lastTouch=Date.now(),ts(e),e2(e,"pointer")},ej.touchmove=e=>{e.input.lastTouch=Date.now(),e2(e,"pointer")},ej.contextmenu=e=>ts(e);let ti=k?5e3:-1;function ta(e,t){clearTimeout(e.input.composingTimeout),t>-1&&(e.input.composingTimeout=setTimeout(()=>ts(e),t))}function to(e){for(e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=Date.now());e.input.compositionNodes.length>0;)e.input.compositionNodes.pop().markParentsDirty()}function ts(e,t=!1){if(!k||!(e.domObserver.flushingSoon>=0)){if(e.domObserver.forceFlush(),to(e),t||e.docView&&e.docView.dirty){let r=ev(e),n=e.state.selection;return r&&!r.eq(n)?e.dispatch(e.state.tr.setSelection(r)):(e.markCursor||t)&&!n.$from.node(n.$from.sharedDepth(n.to)).inlineContent?e.dispatch(e.state.tr.deleteSelection()):e.updateState(e.state),!0}return!1}}eq.compositionstart=eq.compositionupdate=e=>{if(!e.composing){e.domObserver.flush();let{state:t}=e,r=t.selection.$to;if(t.selection instanceof n.U3&&(t.storedMarks||!r.textOffset&&r.parentOffset&&r.nodeBefore.marks.some(e=>!1===e.type.spec.inclusive)||N&&I&&function(e){let{focusNode:t,focusOffset:r}=e.domSelectionRange();if(!t||1!=t.nodeType||r>=t.childNodes.length)return!1;let n=t.childNodes[r];return 1==n.nodeType&&"false"==n.contentEditable}(e)))e.markCursor=e.state.storedMarks||r.marks(),ts(e,!0),e.markCursor=null;else if(ts(e,!t.selection.empty),O&&t.selection.empty&&r.parentOffset&&!r.textOffset&&r.nodeBefore.marks.length){let t=e.domSelectionRange();for(let r=t.focusNode,n=t.focusOffset;r&&1==r.nodeType&&0!=n;){let t=n<0?r.lastChild:r.childNodes[n-1];if(!t)break;if(3==t.nodeType){let r=e.domSelection();r&&r.collapse(t,t.nodeValue.length);break}r=t,n=-1}}e.input.composing=!0}ta(e,ti)},eq.compositionend=(e,t)=>{e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=Date.now(),e.input.compositionPendingChanges=e.domObserver.pendingRecords().length?e.input.compositionID:0,e.input.compositionNode=null,e.input.badSafariComposition?e.domObserver.forceFlush():e.input.compositionPendingChanges&&Promise.resolve().then(()=>e.domObserver.flush()),e.input.compositionID++,ta(e,20))};let tl=S&&w<15||P&&X<604;function tc(e,t,r,n,a){let o=e$(e,t,r,n,e.state.selection.$from);if(e.someProp("handlePaste",t=>t(e,a,o||i.Ji.empty)))return!0;if(!o)return!1;let s=0==o.openStart&&0==o.openEnd&&1==o.content.childCount?o.content.firstChild:null,l=s?e.state.tr.replaceSelectionWith(s,n):e.state.tr.replaceSelection(o);return e.dispatch(l.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function tu(e){let t=e.getData("text/plain")||e.getData("Text");if(t)return t;let r=e.getData("text/uri-list");return r?r.replace(/\r?\n/g," "):""}ej.copy=eq.cut=(e,t)=>{let r=e.state.selection,n="cut"==t.type;if(r.empty)return;let i=tl?null:t.clipboardData,{dom:a,text:o}=eQ(e,r.content());i?(t.preventDefault(),i.clearData(),i.setData("text/html",a.innerHTML),i.setData("text/plain",o)):function(e,t){if(!e.dom.parentNode)return;let r=e.dom.parentNode.appendChild(document.createElement("div"));r.appendChild(t),r.style.cssText="position: fixed; left: -10000px; top: 10px";let n=getSelection(),i=document.createRange();i.selectNodeContents(t),e.dom.blur(),n.removeAllRanges(),n.addRange(i),setTimeout(()=>{r.parentNode&&r.parentNode.removeChild(r),e.focus()},50)}(e,a),n&&e.dispatch(e.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))},eq.paste=(e,t)=>{if(e.composing&&!k)return;let r=tl?null:t.clipboardData,n=e.input.shiftKey&&45!=e.input.lastKeyCode;r&&tc(e,tu(r),r.getData("text/html"),n,t)?t.preventDefault():function(e,t){if(!e.dom.parentNode)return;let r=e.input.shiftKey||e.state.selection.$from.parent.type.spec.code,n=e.dom.parentNode.appendChild(document.createElement(r?"textarea":"div"));r||(n.contentEditable="true"),n.style.cssText="position: fixed; left: -10000px; top: 10px",n.focus();let i=e.input.shiftKey&&45!=e.input.lastKeyCode;setTimeout(()=>{e.focus(),n.parentNode&&n.parentNode.removeChild(n),r?tc(e,n.value,null,i,t):tc(e,n.textContent,n.innerHTML,i,t)},50)}(e,t)};class th{constructor(e,t,r){this.slice=e,this.move=t,this.node=r}}let tp=C?"altKey":"ctrlKey";function td(e,t){let r;return e.someProp("dragCopies",e=>{r=r||e(t)}),null!=r?!r:!t[tp]}for(let e in ej.dragstart=(e,t)=>{let r,i=e.input.mouseDown;if(i&&i.done(),!t.dataTransfer)return;let a=e.state.selection,o=a.empty?null:e.posAtCoords(e4(t));if(o&&o.pos>=a.from&&o.pos<=(a instanceof n.nh?a.to-1:a.to));else if(i&&i.mightDrag)r=n.nh.create(e.state.doc,i.mightDrag.pos);else if(t.target&&1==t.target.nodeType){let i=e.docView.nearestDesc(t.target,!0);i&&i.node.type.spec.draggable&&i!=e.docView&&(r=n.nh.create(e.state.doc,i.posBefore))}let s=(r||e.state.selection).content(),{dom:l,text:c,slice:u}=eQ(e,s);t.dataTransfer.files.length&&N&&!(_>120)||t.dataTransfer.clearData(),t.dataTransfer.setData(tl?"Text":"text/html",l.innerHTML),t.dataTransfer.effectAllowed="copyMove",tl||t.dataTransfer.setData("text/plain",c),e.dragging=new th(u,td(e,t),r)},ej.dragend=e=>{let t=e.dragging;window.setTimeout(()=>{e.dragging==t&&(e.dragging=null)},50)},eq.dragover=eq.dragenter=(e,t)=>t.preventDefault(),eq.drop=(e,t)=>{try{!function(e,t,r){if(!t.dataTransfer)return;let o=e.posAtCoords(e4(t));if(!o)return;let s=e.state.doc.resolve(o.pos),l=r&&r.slice;l?e.someProp("transformPasted",t=>{l=t(l,e,!1)}):l=e$(e,tu(t.dataTransfer),tl?null:t.dataTransfer.getData("text/html"),!1,s);let c=!!(r&&td(e,t));if(e.someProp("handleDrop",r=>r(e,t,l||i.Ji.empty,c)))return t.preventDefault();if(!l)return;t.preventDefault();let u=l?(0,a.Um)(e.state.doc,s.pos,l):s.pos;null==u&&(u=s.pos);let h=e.state.tr;if(c){let{node:e}=r;e?e.replace(h):h.deleteSelection()}let p=h.mapping.map(u),d=0==l.openStart&&0==l.openEnd&&1==l.content.childCount,f=h.doc;if(d?h.replaceRangeWith(p,p,l.content.firstChild):h.replaceRange(p,p,l),h.doc.eq(f))return;let m=h.doc.resolve(p);if(d&&n.nh.isSelectable(l.content.firstChild)&&m.nodeAfter&&m.nodeAfter.sameMarkup(l.content.firstChild))h.setSelection(new n.nh(m));else{let t=h.mapping.map(u);h.mapping.maps[h.mapping.maps.length-1].forEach((e,r,n,i)=>t=i),h.setSelection(eN(e,m,h.doc.resolve(t)))}e.focus(),e.dispatch(h.setMeta("uiEvent","drop"))}(e,t,e.dragging)}finally{e.dragging=null}},ej.focus=e=>{e.input.lastFocus=Date.now(),e.focused||(e.domObserver.stop(),e.dom.classList.add("ProseMirror-focused"),e.domObserver.start(),e.focused=!0,setTimeout(()=>{e.docView&&e.hasFocus()&&!e.domObserver.currentSelection.eq(e.domSelectionRange())&&eb(e)},20))},ej.blur=(e,t)=>{e.focused&&(e.domObserver.stop(),e.dom.classList.remove("ProseMirror-focused"),e.domObserver.start(),t.relatedTarget&&e.dom.contains(t.relatedTarget)&&e.domObserver.currentSelection.clear(),e.focused=!1)},ej.beforeinput=(e,t)=>{if(k&&"deleteContentBackward"==t.inputType){e.domObserver.flushSoon();let{domChangeCount:t}=e.input;setTimeout(()=>{if(e.input.domChangeCount!=t||(e.dom.blur(),e.focus(),e.someProp("handleKeyDown",t=>t(e,A(8,"Backspace")))))return;let{$cursor:r}=e.state.selection;r&&r.pos>0&&e.dispatch(e.state.tr.delete(r.pos-1,r.pos).scrollIntoView())},50)}},eq)ej[e]=eq[e];function tf(e,t){if(e==t)return!0;for(let r in e)if(e[r]!==t[r])return!1;for(let r in t)if(!(r in e))return!1;return!0}class tm{constructor(e,t){this.toDOM=e,this.spec=t||tR,this.side=this.spec.side||0}map(e,t,r,n){let{pos:i,deleted:a}=e.mapResult(t.from+n,this.side<0?-1:1);return a?null:new ty(i-r,i-r,this)}valid(){return!0}eq(e){return this==e||e instanceof tm&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&tf(this.spec,e.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}}class tg{constructor(e,t){this.attrs=e,this.spec=t||tR}map(e,t,r,n){let i=e.map(t.from+n,this.spec.inclusiveStart?-1:1)-r,a=e.map(t.to+n,this.spec.inclusiveEnd?1:-1)-r;return i>=a?null:new ty(i,a,this)}valid(e,t){return t.from<t.to}eq(e){return this==e||e instanceof tg&&tf(this.attrs,e.attrs)&&tf(this.spec,e.spec)}static is(e){return e.type instanceof tg}destroy(){}}class tA{constructor(e,t){this.attrs=e,this.spec=t||tR}map(e,t,r,n){let i=e.mapResult(t.from+n,1);if(i.deleted)return null;let a=e.mapResult(t.to+n,-1);return a.deleted||a.pos<=i.pos?null:new ty(i.pos-r,a.pos-r,this)}valid(e,t){let{index:r,offset:n}=e.content.findIndex(t.from),i;return n==t.from&&!(i=e.child(r)).isText&&n+i.nodeSize==t.to}eq(e){return this==e||e instanceof tA&&tf(this.attrs,e.attrs)&&tf(this.spec,e.spec)}destroy(){}}class ty{constructor(e,t,r){this.from=e,this.to=t,this.type=r}copy(e,t){return new ty(e,t,this.type)}eq(e,t=0){return this.type.eq(e.type)&&this.from+t==e.from&&this.to+t==e.to}map(e,t,r){return this.type.map(e,this,t,r)}static widget(e,t,r){return new ty(e,e,new tm(t,r))}static inline(e,t,r,n){return new ty(e,t,new tg(r,n))}static node(e,t,r,n){return new ty(e,t,new tA(r,n))}get spec(){return this.type.spec}get inline(){return this.type instanceof tg}get widget(){return this.type instanceof tm}}let tv=[],tR={};class tb{constructor(e,t){this.local=e.length?e:tv,this.children=t.length?t:tv}static create(e,t){return t.length?tL(t,e,0,tR):tx}find(e,t,r){let n=[];return this.findInner(null==e?0:e,null==t?1e9:t,n,0,r),n}findInner(e,t,r,n,i){for(let a=0;a<this.local.length;a++){let o=this.local[a];o.from<=t&&o.to>=e&&(!i||i(o.spec))&&r.push(o.copy(o.from+n,o.to+n))}for(let a=0;a<this.children.length;a+=3)if(this.children[a]<t&&this.children[a+1]>e){let o=this.children[a]+1;this.children[a+2].findInner(e-o,t-o,r,n+o,i)}}map(e,t,r){return this==tx||0==e.maps.length?this:this.mapInner(e,t,0,0,r||tR)}mapInner(e,t,r,n,i){let a;for(let o=0;o<this.local.length;o++){let s=this.local[o].map(e,r,n);s&&s.type.valid(t,s)?(a||(a=[])).push(s):i.onRemove&&i.onRemove(this.local[o].spec)}return this.children.length?function(e,t,r,n,i,a,o){let s=e.slice();for(let e=0,t=a;e<r.maps.length;e++){let n=0;r.maps[e].forEach((e,r,i,a)=>{let o=a-i-(r-e);for(let i=0;i<s.length;i+=3){let a=s[i+1];if(a<0||e>a+t-n)continue;let l=s[i]+t-n;r>=l?s[i+1]=e<=l?-2:-1:e>=t&&o&&(s[i]+=o,s[i+1]+=o)}n+=o}),t=r.maps[e].map(t,-1)}let l=!1;for(let t=0;t<s.length;t+=3)if(s[t+1]<0){if(-2==s[t+1]){l=!0,s[t+1]=-1;continue}let c=r.map(e[t]+a),u=c-i;if(u<0||u>=n.content.size){l=!0;continue}let h=r.map(e[t+1]+a,-1)-i,{index:p,offset:d}=n.content.findIndex(u),f=n.maybeChild(p);if(f&&d==u&&d+f.nodeSize==h){let n=s[t+2].mapInner(r,f,c+1,e[t]+a+1,o);n!=tx?(s[t]=u,s[t+1]=h,s[t+2]=n):(s[t+1]=-2,l=!0)}else l=!0}if(l){let l=tL(function(e,t,r,n,i,a,o){for(let s=0;s<e.length;s+=3)-1==e[s+1]&&function e(t,a){for(let e=0;e<t.local.length;e++){let s=t.local[e].map(n,i,a);s?r.push(s):o.onRemove&&o.onRemove(t.local[e].spec)}for(let r=0;r<t.children.length;r+=3)e(t.children[r+2],t.children[r]+a+1)}(e[s+2],t[s]+a+1);return r}(s,e,t,r,i,a,o),n,0,o);t=l.local;for(let e=0;e<s.length;e+=3)s[e+1]<0&&(s.splice(e,3),e-=3);for(let e=0,t=0;e<l.children.length;e+=3){let r=l.children[e];for(;t<s.length&&s[t]<r;)t+=3;s.splice(t,0,l.children[e],l.children[e+1],l.children[e+2])}}return new tb(t.sort(tN),s)}(this.children,a||[],e,t,r,n,i):a?new tb(a.sort(tN),tv):tx}add(e,t){return t.length?this==tx?tb.create(e,t):this.addInner(e,t,0):this}addInner(e,t,r){let n,i=0;e.forEach((e,a)=>{let o=a+r,s;if(s=tw(t,e,o)){for(n||(n=this.children.slice());i<n.length&&n[i]<a;)i+=3;n[i]==a?n[i+2]=n[i+2].addInner(e,s,o+1):n.splice(i,0,a,a+e.nodeSize,tL(s,e,o+1,tR)),i+=3}});let a=tS(i?tO(t):t,-r);for(let t=0;t<a.length;t++)a[t].type.valid(e,a[t])||a.splice(t--,1);return new tb(a.length?this.local.concat(a).sort(tN):this.local,n||this.children)}remove(e){return 0==e.length||this==tx?this:this.removeInner(e,0)}removeInner(e,t){let r=this.children,n=this.local;for(let n=0;n<r.length;n+=3){let i,a=r[n]+t,o=r[n+1]+t;for(let t=0,r;t<e.length;t++)(r=e[t])&&r.from>a&&r.to<o&&(e[t]=null,(i||(i=[])).push(r));if(!i)continue;r==this.children&&(r=this.children.slice());let s=r[n+2].removeInner(i,a+1);s!=tx?r[n+2]=s:(r.splice(n,3),n-=3)}if(n.length){for(let r=0,i;r<e.length;r++)if(i=e[r])for(let e=0;e<n.length;e++)n[e].eq(i,t)&&(n==this.local&&(n=this.local.slice()),n.splice(e--,1))}return r==this.children&&n==this.local?this:n.length||r.length?new tb(n,r):tx}forChild(e,t){let r,n;if(this==tx)return this;if(t.isLeaf)return tb.empty;for(let t=0;t<this.children.length;t+=3)if(this.children[t]>=e){this.children[t]==e&&(r=this.children[t+2]);break}let i=e+1,a=i+t.content.size;for(let e=0;e<this.local.length;e++){let t=this.local[e];if(t.from<a&&t.to>i&&t.type instanceof tg){let e=Math.max(i,t.from)-i,r=Math.min(a,t.to)-i;e<r&&(n||(n=[])).push(t.copy(e,r))}}if(n){let e=new tb(n.sort(tN),tv);return r?new tM([e,r]):e}return r||tx}eq(e){if(this==e)return!0;if(!(e instanceof tb)||this.local.length!=e.local.length||this.children.length!=e.children.length)return!1;for(let t=0;t<this.local.length;t++)if(!this.local[t].eq(e.local[t]))return!1;for(let t=0;t<this.children.length;t+=3)if(this.children[t]!=e.children[t]||this.children[t+1]!=e.children[t+1]||!this.children[t+2].eq(e.children[t+2]))return!1;return!0}locals(e){return t_(this.localsInner(e))}localsInner(e){if(this==tx)return tv;if(e.inlineContent||!this.local.some(tg.is))return this.local;let t=[];for(let e=0;e<this.local.length;e++)this.local[e].type instanceof tg||t.push(this.local[e]);return t}forEachSet(e){e(this)}}tb.empty=new tb([],[]),tb.removeOverlap=t_;let tx=tb.empty;class tM{constructor(e){this.members=e}map(e,t){let r=this.members.map(r=>r.map(e,t,tR));return tM.from(r)}forChild(e,t){if(t.isLeaf)return tb.empty;let r=[];for(let n=0;n<this.members.length;n++){let i=this.members[n].forChild(e,t);i!=tx&&(i instanceof tM?r=r.concat(i.members):r.push(i))}return tM.from(r)}eq(e){if(!(e instanceof tM)||e.members.length!=this.members.length)return!1;for(let t=0;t<this.members.length;t++)if(!this.members[t].eq(e.members[t]))return!1;return!0}locals(e){let t,r=!0;for(let n=0;n<this.members.length;n++){let i=this.members[n].localsInner(e);if(i.length)if(t){r&&(t=t.slice(),r=!1);for(let e=0;e<i.length;e++)t.push(i[e])}else t=i}return t?t_(r?t:t.sort(tN)):tv}static from(e){switch(e.length){case 0:return tx;case 1:return e[0];default:return new tM(e.every(e=>e instanceof tb)?e:e.reduce((e,t)=>e.concat(t instanceof tb?t:t.members),[]))}}forEachSet(e){for(let t=0;t<this.members.length;t++)this.members[t].forEachSet(e)}}function tS(e,t){if(!t||!e.length)return e;let r=[];for(let n=0;n<e.length;n++){let i=e[n];r.push(new ty(i.from+t,i.to+t,i.type))}return r}function tw(e,t,r){if(t.isLeaf)return null;let n=r+t.nodeSize,i=null;for(let t=0,a;t<e.length;t++)(a=e[t])&&a.from>r&&a.to<n&&((i||(i=[])).push(a),e[t]=null);return i}function tO(e){let t=[];for(let r=0;r<e.length;r++)null!=e[r]&&t.push(e[r]);return t}function tL(e,t,r,n){let i=[],a=!1;t.forEach((t,o)=>{let s=tw(e,t,o+r);if(s){a=!0;let e=tL(s,t,r+o+1,n);e!=tx&&i.push(o,o+t.nodeSize,e)}});let o=tS(a?tO(e):e,-r).sort(tN);for(let e=0;e<o.length;e++)o[e].type.valid(t,o[e])||(n.onRemove&&n.onRemove(o[e].spec),o.splice(e--,1));return o.length||i.length?new tb(o,i):tx}function tN(e,t){return e.from-t.from||e.to-t.to}function t_(e){let t=e;for(let r=0;r<t.length-1;r++){let n=t[r];if(n.from!=n.to)for(let i=r+1;i<t.length;i++){let a=t[i];if(a.from==n.from){a.to!=n.to&&(t==e&&(t=e.slice()),t[i]=a.copy(a.from,n.to),tT(t,i+1,a.copy(n.to,a.to)));continue}a.from<n.to&&(t==e&&(t=e.slice()),t[r]=n.copy(n.from,a.from),tT(t,i,n.copy(a.from,n.to)));break}}return t}function tT(e,t,r){for(;t<e.length&&tN(r,e[t])>0;)t++;e.splice(t,0,r)}function tP(e){let t=[];return e.someProp("decorations",r=>{let n=r(e.state);n&&n!=tx&&t.push(n)}),e.cursorWrapper&&t.push(tb.create(e.state.doc,[e.cursorWrapper.deco])),tM.from(t)}let tC={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},tI=S&&w<=11;class tk{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(e){this.anchorNode=e.anchorNode,this.anchorOffset=e.anchorOffset,this.focusNode=e.focusNode,this.focusOffset=e.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(e){return e.anchorNode==this.anchorNode&&e.anchorOffset==this.anchorOffset&&e.focusNode==this.focusNode&&e.focusOffset==this.focusOffset}}class tF{constructor(e,t){this.view=e,this.handleDOMChange=t,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new tk,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.lastChangedTextNode=null,this.observer=window.MutationObserver&&new window.MutationObserver(t=>{for(let e=0;e<t.length;e++)this.queue.push(t[e]);S&&w<=11&&t.some(e=>"childList"==e.type&&e.removedNodes.length||"characterData"==e.type&&e.oldValue.length>e.target.nodeValue.length)?this.flushSoon():T&&e.composing&&t.some(e=>"childList"==e.type&&"TR"==e.target.nodeName)?(e.input.badSafariComposition=!0,this.flushSoon()):this.flush()}),tI&&(this.onCharData=e=>{this.queue.push({target:e.target,type:"characterData",oldValue:e.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,tC)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let e=this.observer.takeRecords();if(e.length){for(let t=0;t<e.length;t++)this.queue.push(e[t]);window.setTimeout(()=>this.flush(),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if(e_(this.view)){if(this.suppressingSelectionUpdates)return eb(this.view);if(S&&w<=11&&!this.view.state.selection.empty){let e=this.view.domSelectionRange();if(e.focusNode&&h(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(e){if(!e.focusNode)return!0;let t=new Set,r;for(let r=e.focusNode;r;r=s(r))t.add(r);for(let n=e.anchorNode;n;n=s(n))if(t.has(n)){r=n;break}let n=r&&this.view.docView.nearestDesc(r);if(n&&n.ignoreMutation({type:"selection",target:3==r.nodeType?r.parentNode:r}))return this.setCurSelection(),!0}pendingRecords(){if(this.observer)for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}flush(){var e;let{view:t}=this;if(!t.docView||this.flushingSoon>-1)return;let r=this.pendingRecords();r.length&&(this.queue=[]);let i=t.domSelectionRange(),a=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(i)&&e_(t)&&!this.ignoreSelectionChange(i),o=-1,s=-1,l=!1,c=[];if(t.editable)for(let e=0;e<r.length;e++){let t=this.registerMutation(r[e],c);t&&(o=o<0?t.from:Math.min(t.from,o),s=s<0?t.to:Math.max(t.to,s),t.typeOver&&(l=!0))}if(c.some(e=>"BR"==e.nodeName)&&(8==t.input.lastKeyCode||46==t.input.lastKeyCode||N&&(t.composing||t.input.compositionEndedAt>Date.now()-50)&&r.some(e=>"childList"==e.type&&e.removedNodes.length))){for(let e of c)if("BR"==e.nodeName&&e.parentNode){let t=e.nextSibling;for(;t&&1==t.nodeType;){if("false"==t.contentEditable){e.parentNode.removeChild(e);break}t=t.firstChild}}}else if(O&&c.length){let e=c.filter(e=>"BR"==e.nodeName);if(2==e.length){let[t,r]=e;t.parentNode&&t.parentNode.parentNode==r.parentNode?r.remove():t.remove()}else{let{focusNode:r}=this.currentSelection;for(let n of e){let e=n.parentNode;e&&"LI"==e.nodeName&&(!r||function(e,t){for(let r=t.parentNode;r&&r!=e.dom;r=r.parentNode){let t=e.docView.nearestDesc(r,!0);if(t&&t.node.isBlock)return r}return null}(t,r)!=e)&&n.remove()}}}let u=null;o<0&&a&&t.input.lastFocus>Date.now()-200&&Math.max(t.input.lastTouch,t.input.lastClick.time)<Date.now()-300&&g(i)&&(u=ev(t))&&u.eq(n.LN.near(t.state.doc.resolve(0),1))?(t.input.lastFocus=0,eb(t),this.currentSelection.set(i),t.scrollToSelection()):(o>-1||a)&&(o>-1&&(t.docView.markDirty(o,s),e=t,!tX.has(e)&&(tX.set(e,null),-1!==["normal","nowrap","pre-line"].indexOf(getComputedStyle(e.dom).whiteSpace))&&(e.requiresGeckoHackNode=O,tU||(console.warn("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package."),tU=!0))),t.input.badSafariComposition&&(t.input.badSafariComposition=!1,function(e,t){var r;let{focusNode:n,focusOffset:i}=e.domSelectionRange();for(let a of t)if((null==(r=a.parentNode)?void 0:r.nodeName)=="TR"){let t=a.nextSibling;for(;t&&"TD"!=t.nodeName&&"TH"!=t.nodeName;)t=t.nextSibling;if(t){let r=t;for(;;){let e=r.firstChild;if(!e||1!=e.nodeType||"false"==e.contentEditable||/^(BR|IMG)$/.test(e.nodeName))break;r=e}r.insertBefore(a,r.firstChild),n==a&&e.domSelection().collapse(a,i)}else a.parentNode.removeChild(a)}}(t,c)),this.handleDOMChange(o,s,l,c),t.docView&&t.docView.dirty?t.updateState(t.state):this.currentSelection.eq(i)||eb(t),this.currentSelection.set(i))}registerMutation(e,t){if(t.indexOf(e.target)>-1)return null;let r=this.view.docView.nearestDesc(e.target);if("attributes"==e.type&&(r==this.view.docView||"contenteditable"==e.attributeName||"style"==e.attributeName&&!e.oldValue&&!e.target.getAttribute("style"))||!r||r.ignoreMutation(e))return null;if("childList"==e.type){for(let r=0;r<e.addedNodes.length;r++){let n=e.addedNodes[r];t.push(n),3==n.nodeType&&(this.lastChangedTextNode=n)}if(r.contentDOM&&r.contentDOM!=r.dom&&!r.contentDOM.contains(e.target))return{from:r.posBefore,to:r.posAfter};let n=e.previousSibling,i=e.nextSibling;if(S&&w<=11&&e.addedNodes.length)for(let t=0;t<e.addedNodes.length;t++){let{previousSibling:r,nextSibling:a}=e.addedNodes[t];(!r||0>Array.prototype.indexOf.call(e.addedNodes,r))&&(n=r),(!a||0>Array.prototype.indexOf.call(e.addedNodes,a))&&(i=a)}let a=n&&n.parentNode==e.target?o(n)+1:0,s=r.localPosFromDOM(e.target,a,-1),l=i&&i.parentNode==e.target?o(i):e.target.childNodes.length;return{from:s,to:r.localPosFromDOM(e.target,l,1)}}return"attributes"==e.type?{from:r.posAtStart-r.border,to:r.posAtEnd+r.border}:(this.lastChangedTextNode=e.target,{from:r.posAtStart,to:r.posAtEnd,typeOver:e.target.nodeValue==e.oldValue})}}let tX=new WeakMap,tU=!1;function tW(e,t){let r=t.startContainer,n=t.startOffset,i=t.endContainer,a=t.endOffset,o=e.domAtPos(e.state.selection.anchor);return h(o.node,o.offset,i,a)&&([r,n,i,a]=[i,a,r,n]),{anchorNode:r,anchorOffset:n,focusNode:i,focusOffset:a}}let tV=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|img|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function tE(e,t,r){return Math.max(r.anchor,r.head)>t.content.size?null:eN(e,t.resolve(r.anchor),t.resolve(r.head))}function tY(e,t,r){let n=e.depth,i=t?e.end():e.pos;for(;n>0&&(t||e.indexAfter(n)==e.node(n).childCount);)n--,i++,t=!1;if(r){let t=e.node(n).maybeChild(e.indexAfter(n));for(;t&&!t.isLeaf;)t=t.firstChild,i++}return i}class tD{constructor(e,t){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new e1,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=t,this.state=t.state,this.directPlugins=t.plugins||[],this.directPlugins.forEach(tK),this.dispatch=this.dispatch.bind(this),this.dom=e&&e.mount||document.createElement("div"),e&&(e.appendChild?e.appendChild(this.dom):"function"==typeof e?e(this.dom):e.mount&&(this.mounted=!0)),this.editable=tB(this),t$(this),this.nodeViews=tZ(this),this.docView=ea(this.state.doc,tQ(this),tP(this),this.dom,this),this.domObserver=new tF(this,(e,t,r,a)=>(function(e,t,r,a,o){let s,l,c,u=e.input.compositionPendingChanges||(e.composing?e.input.compositionID:0);if(e.input.compositionPendingChanges=0,t<0){let t=e.input.lastSelectionTime>Date.now()-50?e.input.lastSelectionOrigin:null,r=ev(e,t);if(r&&!e.state.selection.eq(r)){if(N&&k&&13===e.input.lastKeyCode&&Date.now()-100<e.input.lastKeyCodeTime&&e.someProp("handleKeyDown",t=>t(e,A(13,"Enter"))))return;let n=e.state.tr.setSelection(r);"pointer"==t?n.setMeta("pointer",!0):"key"==t&&n.scrollIntoView(),u&&n.setMeta("composition",u),e.dispatch(n)}return}let h=e.state.doc.resolve(t),p=h.sharedDepth(r);t=h.before(p+1),r=e.state.doc.resolve(r).after(p+1);let d=e.state.selection,f=function(e,t,r,n){let a,o,{node:s,fromOffset:l,toOffset:c,from:u,to:h}=e.docView.parseRange(t,r),p=e.domSelectionRange(),d=p.anchorNode;if(d&&e.dom.contains(1==d.nodeType?d:d.parentNode)&&(o=[{node:d,offset:p.anchorOffset}],g(p)||o.push({node:p.focusNode,offset:p.focusOffset})),N&&8===e.input.lastKeyCode)for(let e=c;e>l;e--){let t=s.childNodes[e-1],r=t.pmViewDesc;if("BR"==t.nodeName&&!r){c=e;break}if(!r||r.size)break}let f=e.state.doc,m=e.someProp("domParser")||i.S4.fromSchema(e.state.schema),A=f.resolve(u),y=null,v=m.parse(s,{topNode:A.parent,topMatch:A.parent.contentMatchAt(A.index()),topOpen:!0,from:l,to:c,preserveWhitespace:"pre"!=A.parent.type.whitespace||"full",findPositions:o,ruleFromNode:(a=n,e=>{let t=e.pmViewDesc;if(t)return t.parseRule(a);if("BR"==e.nodeName&&e.parentNode){if(T&&/^(ul|ol)$/i.test(e.parentNode.nodeName)){let e=document.createElement("div");return e.appendChild(document.createElement("li")),{skip:e}}else if(e.parentNode.lastChild==e||T&&/^(tr|table)$/i.test(e.parentNode.nodeName))return{ignore:!0}}else if("IMG"==e.nodeName&&e.getAttribute("mark-placeholder"))return{ignore:!0};return null}),context:A});if(o&&null!=o[0].pos){let e=o[0].pos,t=o[1]&&o[1].pos;null==t&&(t=e),y={anchor:e+u,head:t+u}}return{doc:v,sel:y,from:u,to:h}}(e,t,r,o),m=e.state.doc,y=m.slice(f.from,f.to);8===e.input.lastKeyCode&&Date.now()-100<e.input.lastKeyCodeTime?(s=e.state.selection.to,l="end"):(s=e.state.selection.from,l="start"),e.input.lastKeyCode=null;let v=function(e,t,r,n,i){let a=e.findDiffStart(t,r),o=r+e.size,s=r+t.size;if(null==a)return null;let{a:l,b:c}=e.findDiffEnd(t,o,s);if("end"==i){let e=Math.max(0,a-Math.min(l,c));n-=l+e-a}if(l<a&&o<s){let e=n<=a&&n>=l?a-n:0;a-=e,c=a+(c-l),l=a}else if(c<a){let e=n<=a&&n>=c?a-n:0;a-=e,l=a+(l-c),c=a}return{start:a,endA:l,endB:c}}(y.content,f.doc.content,f.from,s,l);if(v&&e.input.domChangeCount++,(P&&e.input.lastIOSEnter>Date.now()-225||k)&&o.some(e=>1==e.nodeType&&!tV.test(e.nodeName))&&(!v||v.endA>=v.endB)&&e.someProp("handleKeyDown",t=>t(e,A(13,"Enter")))){e.input.lastIOSEnter=0;return}if(!v)if(a&&d instanceof n.U3&&!d.empty&&d.$head.sameParent(d.$anchor)&&!e.composing&&!(f.sel&&f.sel.anchor!=f.sel.head))v={start:d.from,endA:d.to,endB:d.to};else{if(f.sel){let t=tE(e,e.state.doc,f.sel);if(t&&!t.eq(e.state.selection)){let r=e.state.tr.setSelection(t);u&&r.setMeta("composition",u),e.dispatch(r)}}return}e.state.selection.from<e.state.selection.to&&v.start==v.endB&&e.state.selection instanceof n.U3&&(v.start>e.state.selection.from&&v.start<=e.state.selection.from+2&&e.state.selection.from>=f.from?v.start=e.state.selection.from:v.endA<e.state.selection.to&&v.endA>=e.state.selection.to-2&&e.state.selection.to<=f.to&&(v.endB+=e.state.selection.to-v.endA,v.endA=e.state.selection.to)),S&&w<=11&&v.endB==v.start+1&&v.endA==v.start&&v.start>f.from&&"  "==f.doc.textBetween(v.start-f.from-1,v.start-f.from+1)&&(v.start--,v.endA--,v.endB--);let R=f.doc.resolveNoCache(v.start-f.from),b=f.doc.resolveNoCache(v.endB-f.from),x=m.resolve(v.start),M=R.sameParent(b)&&R.parent.inlineContent&&x.end()>=v.endA;if((P&&e.input.lastIOSEnter>Date.now()-225&&(!M||o.some(e=>"DIV"==e.nodeName||"P"==e.nodeName))||!M&&R.pos<f.doc.content.size&&(!R.sameParent(b)||!R.parent.inlineContent)&&R.pos<b.pos&&!/\S/.test(f.doc.textBetween(R.pos,b.pos,"","")))&&e.someProp("handleKeyDown",t=>t(e,A(13,"Enter")))){e.input.lastIOSEnter=0;return}if(e.state.selection.anchor>v.start&&function(e,t,r,n,i){if(r-t<=i.pos-n.pos||tY(n,!0,!1)<i.pos)return!1;let a=e.resolve(t);if(!n.parent.isTextblock){let e=a.nodeAfter;return null!=e&&r==t+e.nodeSize}if(a.parentOffset<a.parent.content.size||!a.parent.isTextblock)return!1;let o=e.resolve(tY(a,!0,!0));return!(!o.parent.isTextblock||o.pos>r||tY(o,!0,!1)<r)&&n.parent.content.cut(n.parentOffset).eq(o.parent.content)}(m,v.start,v.endA,R,b)&&e.someProp("handleKeyDown",t=>t(e,A(8,"Backspace")))){k&&N&&e.domObserver.suppressSelectionUpdates();return}N&&v.endB==v.start&&(e.input.lastChromeDelete=Date.now()),k&&!M&&R.start()!=b.start()&&0==b.parentOffset&&R.depth==b.depth&&f.sel&&f.sel.anchor==f.sel.head&&f.sel.head==v.endA&&(v.endB-=2,b=f.doc.resolveNoCache(v.endB-f.from),setTimeout(()=>{e.someProp("handleKeyDown",function(t){return t(e,A(13,"Enter"))})},20));let O=v.start,L=v.endA,_=t=>{let r=t||e.state.tr.replace(O,L,f.doc.slice(v.start-f.from,v.endB-f.from));if(f.sel){let t=tE(e,r.doc,f.sel);t&&!(N&&e.composing&&t.empty&&(v.start!=v.endB||e.input.lastChromeDelete<Date.now()-100)&&(t.head==O||t.head==r.mapping.map(L)-1)||S&&t.empty&&t.head==O)&&r.setSelection(t)}return u&&r.setMeta("composition",u),r.scrollIntoView()};if(M)if(R.pos==b.pos){S&&w<=11&&0==R.parentOffset&&(e.domObserver.suppressSelectionUpdates(),setTimeout(()=>eb(e),20));let t=_(e.state.tr.delete(O,L)),r=m.resolve(v.start).marksAcross(m.resolve(v.endA));r&&t.ensureMarks(r),e.dispatch(t)}else if(v.endA==v.endB&&(c=function(e,t){let r=e.firstChild.marks,n=t.firstChild.marks,a=r,o=n,s,l,c;for(let e=0;e<n.length;e++)a=n[e].removeFromSet(a);for(let e=0;e<r.length;e++)o=r[e].removeFromSet(o);if(1==a.length&&0==o.length)l=a[0],s="add",c=e=>e.mark(l.addToSet(e.marks));else{if(0!=a.length||1!=o.length)return null;l=o[0],s="remove",c=e=>e.mark(l.removeFromSet(e.marks))}let u=[];for(let e=0;e<t.childCount;e++)u.push(c(t.child(e)));if(i.FK.from(u).eq(e))return{mark:l,type:s}}(R.parent.content.cut(R.parentOffset,b.parentOffset),x.parent.content.cut(x.parentOffset,v.endA-x.start())))){let t=_(e.state.tr);"add"==c.type?t.addMark(O,L,c.mark):t.removeMark(O,L,c.mark),e.dispatch(t)}else if(R.parent.child(R.index()).isText&&R.index()==b.index()-!b.textOffset){let t=R.parent.textBetween(R.parentOffset,b.parentOffset),r=()=>_(e.state.tr.insertText(t,O,L));e.someProp("handleTextInput",n=>n(e,O,L,t,r))||e.dispatch(r())}else e.dispatch(_());else e.dispatch(_())})(this,e,t,r,a)),this.domObserver.start();var r=this;for(let e in ej){let t=ej[e];r.dom.addEventListener(e,r.input.eventHandlers[e]=e=>{!function(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let r=t.target;r!=e.dom;r=r.parentNode)if(!r||11==r.nodeType||r.pmViewDesc&&r.pmViewDesc.stopEvent(t))return!1;return!0}(r,e)||e5(r,e)||!r.editable&&e.type in eq||t(r,e)},e0[e]?{passive:!0}:void 0)}T&&r.dom.addEventListener("input",()=>null),e3(r),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let e=this._props;for(let t in this._props={},e)this._props[t]=e[t];this._props.state=this.state}return this._props}update(e){e.handleDOMEvents!=this._props.handleDOMEvents&&e3(this);let t=this._props;this._props=e,e.plugins&&(e.plugins.forEach(tK),this.directPlugins=e.plugins),this.updateStateInner(e.state,t)}setProps(e){let t={};for(let e in this._props)t[e]=this._props[e];for(let r in t.state=this.state,e)t[r]=e[r];this.update(t)}updateState(e){this.updateStateInner(e,this._props)}updateStateInner(e,t){var r,n,i;let a=this.state,s=!1,l=!1;e.storedMarks&&this.composing&&(to(this),l=!0),this.state=e;let c=a.plugins!=e.plugins||this._props.plugins!=t.plugins;if(c||this._props.plugins!=t.plugins||this._props.nodeViews!=t.nodeViews){let e=tZ(this);(function(e,t){let r=0,n=0;for(let n in e){if(e[n]!=t[n])return!0;r++}for(let e in t)n++;return r!=n})(e,this.nodeViews)&&(this.nodeViews=e,s=!0)}(c||t.handleDOMEvents!=this._props.handleDOMEvents)&&e3(this),this.editable=tB(this),t$(this);let u=tP(this),p=tQ(this),d=a.plugins==e.plugins||a.doc.eq(e.doc)?e.scrollToSelection>a.scrollToSelection?"to selection":"preserve":"reset",g=s||!this.docView.matchesNode(e.doc,p,u);(g||!e.selection.eq(a.selection))&&(l=!0);let A="preserve"==d&&l&&null==this.dom.style.overflowAnchor&&function(e){let t,r,n=e.dom.getBoundingClientRect(),i=Math.max(0,n.top);for(let a=(n.left+n.right)/2,o=i+1;o<Math.min(innerHeight,n.bottom);o+=5){let n=e.root.elementFromPoint(a,o);if(!n||n==e.dom||!e.dom.contains(n))continue;let s=n.getBoundingClientRect();if(s.top>=i-20){t=n,r=s.top;break}}return{refDOM:t,refTop:r,stack:V(e.dom)}}(this);if(l){let t,r,l;this.domObserver.stop();let c=g&&(S||N)&&!this.composing&&!a.selection.empty&&!e.selection.empty&&(n=a.selection,i=e.selection,l=Math.min(n.$anchor.sharedDepth(n.head),i.$anchor.sharedDepth(i.head)),n.$anchor.start(l)!=i.$anchor.start(l));if(g){let t=N?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=function(e){let t=e.domSelectionRange();if(!t.focusNode)return null;let r=function(e,t){for(;;){if(3==e.nodeType&&t)return e;if(1==e.nodeType&&t>0){if("false"==e.contentEditable)return null;t=f(e=e.childNodes[t-1])}else{if(!e.parentNode||m(e))return null;t=o(e),e=e.parentNode}}}(t.focusNode,t.focusOffset),n=function(e,t){for(;;){if(3==e.nodeType&&t<e.nodeValue.length)return e;if(1==e.nodeType&&t<e.childNodes.length){if("false"==e.contentEditable)return null;e=e.childNodes[t],t=0}else{if(!e.parentNode||m(e))return null;t=o(e)+1,e=e.parentNode}}}(t.focusNode,t.focusOffset);if(r&&n&&r!=n){let t=n.pmViewDesc,i=e.domObserver.lastChangedTextNode;if(r==i||n==i)return i;if(!t||!t.isText(n.nodeValue))return n;if(e.input.compositionNode==n){let e=r.pmViewDesc;if(!(!e||!e.isText(r.nodeValue)))return n}}return r||n}(this)),(s||!this.docView.update(e.doc,p,u,this))&&(this.docView.updateOuterDeco(p),this.docView.destroy(),this.docView=ea(e.doc,p,u,this.dom,this)),!t||this.trackWrites&&this.dom.contains(this.trackWrites)||(c=!0)}let d=this.input.mouseDown;c||!(d&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&(t=this.docView.domFromPos(this.state.selection.anchor,0),r=this.domSelectionRange(),h(t.node,t.offset,r.anchorNode,r.anchorOffset))&&d.delaySelUpdate())?eb(this,c):(eO(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(a),(null==(r=this.dragging)?void 0:r.node)&&!a.doc.eq(e.doc)&&this.updateDraggedNode(this.dragging,a),"reset"==d?this.dom.scrollTop=0:"to selection"==d?this.scrollToSelection():A&&function({refDOM:e,refTop:t,stack:r}){let n=e?e.getBoundingClientRect().top:0;E(r,0==n?0:n-t)}(A)}scrollToSelection(){let e=this.domSelectionRange().focusNode;if(e&&this.dom.contains(1==e.nodeType?e:e.parentNode))if(this.someProp("handleScrollToSelection",e=>e(this)));else if(this.state.selection instanceof n.nh){let t=this.docView.domAfterPos(this.state.selection.from);1==t.nodeType&&W(this,t.getBoundingClientRect(),e)}else W(this,this.coordsAtPos(this.state.selection.head,1),e)}destroyPluginViews(){let e;for(;e=this.pluginViews.pop();)e.destroy&&e.destroy()}updatePluginViews(e){if(e&&e.plugins==this.state.plugins&&this.directPlugins==this.prevDirectPlugins)for(let t=0;t<this.pluginViews.length;t++){let r=this.pluginViews[t];r.update&&r.update(this,e)}else{this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let e=0;e<this.directPlugins.length;e++){let t=this.directPlugins[e];t.spec.view&&this.pluginViews.push(t.spec.view(this))}for(let e=0;e<this.state.plugins.length;e++){let t=this.state.plugins[e];t.spec.view&&this.pluginViews.push(t.spec.view(this))}}}updateDraggedNode(e,t){let r=e.node,i=-1;if(r.from<this.state.doc.content.size&&this.state.doc.nodeAt(r.from)==r.node)i=r.from;else{let e=r.from+(this.state.doc.content.size-t.doc.content.size);(e>0&&e<this.state.doc.content.size&&this.state.doc.nodeAt(e))==r.node&&(i=e)}this.dragging=new th(e.slice,e.move,i<0?void 0:n.nh.create(this.state.doc,i))}someProp(e,t){let r=this._props&&this._props[e],n;if(null!=r&&(n=t?t(r):r))return n;for(let r=0;r<this.directPlugins.length;r++){let i=this.directPlugins[r].props[e];if(null!=i&&(n=t?t(i):i))return n}let i=this.state.plugins;if(i)for(let r=0;r<i.length;r++){let a=i[r].props[e];if(null!=a&&(n=t?t(a):a))return n}}hasFocus(){if(S){let e=this.root.activeElement;if(e==this.dom)return!0;if(!e||!this.dom.contains(e))return!1;for(;e&&this.dom!=e&&this.dom.contains(e);){if("false"==e.contentEditable)return!1;e=e.parentElement}return!0}return this.root.activeElement==this.dom}focus(){this.domObserver.stop(),this.editable&&function(e){if(e.setActive)return e.setActive();if(Y)return e.focus(Y);let t=V(e);e.focus(null==Y?{get preventScroll(){return Y={preventScroll:!0},!0}}:void 0),Y||(Y=!1,E(t,0))}(this.dom),eb(this),this.domObserver.start()}get root(){let e=this._root;if(null==e){for(let e=this.dom.parentNode;e;e=e.parentNode)if(9==e.nodeType||11==e.nodeType&&e.host)return e.getSelection||(Object.getPrototypeOf(e).getSelection=()=>e.ownerDocument.getSelection()),this._root=e}return e||document}updateRoot(){this._root=null}posAtCoords(e){return function(e,t){var r;let n,i,a=e.dom.ownerDocument,o,l=0,u=function(e,t,r){if(e.caretPositionFromPoint)try{let n=e.caretPositionFromPoint(t,r);if(n)return{node:n.offsetNode,offset:Math.min(f(n.offsetNode),n.offset)}}catch(e){}if(e.caretRangeFromPoint){let n=e.caretRangeFromPoint(t,r);if(n)return{node:n.startContainer,offset:Math.min(f(n.startContainer),n.startOffset)}}}(a,t.left,t.top);u&&({node:o,offset:l}=u);let h=(e.root.elementFromPoint?e.root:a).elementFromPoint(t.left,t.top);if(!h||!e.dom.contains(1!=h.nodeType?h.parentNode:h)){let r=e.dom.getBoundingClientRect();if(!D(t,r)||!(h=function e(t,r,n){let i=t.childNodes.length;if(i&&n.top<n.bottom)for(let a=Math.max(0,Math.min(i-1,Math.floor(i*(r.top-n.top)/(n.bottom-n.top))-2)),o=a;;){let n=t.childNodes[o];if(1==n.nodeType){let t=n.getClientRects();for(let i=0;i<t.length;i++){let a=t[i];if(D(r,a))return e(n,r,a)}}if((o=(o+1)%i)==a)break}return t}(e.dom,t,r)))return null}if(T)for(let e=h;o&&e;e=s(e))e.draggable&&(o=void 0);if(h=(n=(r=h).parentNode)&&/^li$/i.test(n.nodeName)&&t.left<r.getBoundingClientRect().left?n:r,o){let r;if(O&&1==o.nodeType&&(l=Math.min(l,o.childNodes.length))<o.childNodes.length){let e=o.childNodes[l],r;"IMG"==e.nodeName&&(r=e.getBoundingClientRect()).right<=t.left&&r.bottom>t.top&&l++}F&&l&&1==o.nodeType&&1==(r=o.childNodes[l-1]).nodeType&&"false"==r.contentEditable&&r.getBoundingClientRect().top>=t.top&&l--,o==e.dom&&l==o.childNodes.length-1&&1==o.lastChild.nodeType&&t.top>o.lastChild.getBoundingClientRect().bottom?i=e.state.doc.content.size:(0==l||1!=o.nodeType||"BR"!=o.childNodes[l-1].nodeName)&&(i=function(e,t,r,n){let i=-1;for(let r=t,a=!1;r!=e.dom;){let t=e.docView.nearestDesc(r,!0),o;if(!t)return null;if(1==t.dom.nodeType&&(t.node.isBlock&&t.parent||!t.contentDOM)&&((o=t.dom.getBoundingClientRect()).width||o.height)&&(t.node.isBlock&&t.parent&&!/^T(R|BODY|HEAD|FOOT)$/.test(t.dom.nodeName)&&(!a&&o.left>n.left||o.top>n.top?i=t.posBefore:(!a&&o.right<n.left||o.bottom<n.top)&&(i=t.posAfter),a=!0),!t.contentDOM&&i<0&&!t.node.isText))return(t.node.isBlock?n.top<(o.top+o.bottom)/2:n.left<(o.left+o.right)/2)?t.posBefore:t.posAfter;r=t.dom.parentNode}return i>-1?i:e.docView.posFromDOM(t,r,-1)}(e,o,l,t))}null==i&&(i=function(e,t,r){let{node:n,offset:i}=function e(t,r){let n,i,a,o=2e8,s,l=0,u=r.top,h=r.top;for(let e=t.firstChild,p=0;e;e=e.nextSibling,p++){let t;if(1==e.nodeType)t=e.getClientRects();else{if(3!=e.nodeType)continue;t=c(e).getClientRects()}for(let c=0;c<t.length;c++){let d=t[c];if(d.top<=u&&d.bottom>=h){u=Math.max(d.bottom,u),h=Math.min(d.top,h);let t=d.left>r.left?d.left-r.left:d.right<r.left?r.left-d.right:0;if(t<o){a=e,o=t,s=t&&3==a.nodeType?{left:d.right<r.left?d.right:d.left,top:r.top}:r,1==e.nodeType&&t&&(l=p+ +(r.left>=(d.left+d.right)/2));continue}}else d.top>r.top&&!n&&d.left<=r.left&&d.right>=r.left&&(n=e,i={left:Math.max(d.left,Math.min(d.right,r.left)),top:d.top});!a&&(r.left>=d.right&&r.top>=d.top||r.left>=d.left&&r.top>=d.bottom)&&(l=p+1)}}return(!a&&n&&(a=n,s=i,o=0),a&&3==a.nodeType)?function(e,t){let r=e.nodeValue.length,n=document.createRange(),i;for(let a=0;a<r;a++){n.setEnd(e,a+1),n.setStart(e,a);let r=$(n,1);if(r.top!=r.bottom&&D(t,r)){i={node:e,offset:a+ +(t.left>=(r.left+r.right)/2)};break}}return n.detach(),i||{node:e,offset:0}}(a,s):!a||o&&1==a.nodeType?{node:t,offset:l}:e(a,s)}(t,r),a=-1;if(1==n.nodeType&&!n.firstChild){let e=n.getBoundingClientRect();a=e.left!=e.right&&r.left>(e.left+e.right)/2?1:-1}return e.docView.posFromDOM(n,i,a)}(e,h,t));let p=e.docView.nearestDesc(h,!0);return{pos:i,inside:p?p.posAtStart-p.border:-1}}(this,e)}coordsAtPos(e,t=1){return Z(this,e,t)}domAtPos(e,t=0){return this.docView.domFromPos(e,t)}nodeDOM(e){let t=this.docView.descAt(e);return t?t.nodeDOM:null}posAtDOM(e,t,r=-1){let n=this.docView.posFromDOM(e,t,r);if(null==n)throw RangeError("DOM position not inside the editor");return n}endOfTextblock(e,t){return function(e,t,r){let n,i;return J==t&&j==r?q:(J=t,j=r,q="up"==r||"down"==r?(n=t.selection,i="up"==r?n.$from:n.$to,H(e,t,()=>{let{node:t}=e.docView.domFromPos(i.pos,"up"==r?-1:1);for(;;){let r=e.docView.nearestDesc(t,!0);if(!r)break;if(r.node.isBlock){t=r.contentDOM||r.dom;break}t=r.dom.parentNode}let n=Z(e,i.pos,1);for(let e=t.firstChild;e;e=e.nextSibling){let t;if(1==e.nodeType)t=e.getClientRects();else{if(3!=e.nodeType)continue;t=c(e,0,e.nodeValue.length).getClientRects()}for(let e=0;e<t.length;e++){let i=t[e];if(i.bottom>i.top+1&&("up"==r?n.top-i.top>(i.bottom-n.top)*2:i.bottom-n.bottom>(n.bottom-i.top)*2))return!1}}return!0})):function(e,t,r){let{$head:n}=t.selection;if(!n.parent.isTextblock)return!1;let i=n.parentOffset,a=i==n.parent.content.size,o=e.domSelection();return o?z.test(n.parent.textContent)&&o.modify?H(e,t,()=>{let{focusNode:t,focusOffset:i,anchorNode:a,anchorOffset:s}=e.domSelectionRange(),l=o.caretBidiLevel;o.modify("move",r,"character");let c=n.depth?e.docView.domAfterPos(n.before()):e.dom,{focusNode:u,focusOffset:h}=e.domSelectionRange(),p=u&&!c.contains(1==u.nodeType?u:u.parentNode)||t==u&&i==h;try{o.collapse(a,s),t&&(t!=a||i!=s)&&o.extend&&o.extend(t,i)}catch(e){}return null!=l&&(o.caretBidiLevel=l),p}):"left"==r||"backward"==r?!i:a:n.pos==n.start()||n.pos==n.end()}(e,t,r))}(this,t||this.state,e)}pasteHTML(e,t){return tc(this,"",e,!1,t||new ClipboardEvent("paste"))}pasteText(e,t){return tc(this,e,null,!0,t||new ClipboardEvent("paste"))}serializeForClipboard(e){return eQ(this,e)}destroy(){if(this.docView){for(let e in this.input.mouseDown&&this.input.mouseDown.done(),this.domObserver.stop(),this.input.eventHandlers)this.dom.removeEventListener(e,this.input.eventHandlers[e]);clearTimeout(this.input.composingTimeout),clearTimeout(this.input.lastIOSEnterFallbackTimeout),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],tP(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,u()}}get isDestroyed(){return null==this.docView}dispatchEvent(e){!e5(this,e)&&ej[e.type]&&(this.editable||!(e.type in eq))&&ej[e.type](this,e)}domSelectionRange(){let e=this.domSelection();return e?T&&11===this.root.nodeType&&function(e){let t=e.activeElement;for(;t&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}(this.dom.ownerDocument)==this.dom&&function(e,t){let r;if(t.getComposedRanges){let r=t.getComposedRanges(e.root)[0];if(r)return tW(e,r)}function n(e){e.preventDefault(),e.stopImmediatePropagation(),r=e.getTargetRanges()[0]}return e.dom.addEventListener("beforeinput",n,!0),document.execCommand("indent"),e.dom.removeEventListener("beforeinput",n,!0),r?tW(e,r):null}(this,e)||e:{focusNode:null,focusOffset:0,anchorNode:null,anchorOffset:0}}domSelection(){return this.root.getSelection()}}function tQ(e){let t=Object.create(null);return t.class="ProseMirror",t.contenteditable=String(e.editable),e.someProp("attributes",r=>{if("function"==typeof r&&(r=r(e.state)),r)for(let e in r)"class"==e?t.class+=" "+r[e]:"style"==e?t.style=(t.style?t.style+";":"")+r[e]:t[e]||"contenteditable"==e||"nodeName"==e||(t[e]=String(r[e]))}),t.translate||(t.translate="no"),[ty.node(0,e.state.doc.content.size,t)]}function t$(e){if(e.markCursor){let t=document.createElement("img");t.className="ProseMirror-separator",t.setAttribute("mark-placeholder","true"),t.setAttribute("alt",""),e.cursorWrapper={dom:t,deco:ty.widget(e.state.selection.from,t,{raw:!0,marks:e.markCursor})}}else e.cursorWrapper=null}function tB(e){return!e.someProp("editable",t=>!1===t(e.state))}function tZ(e){let t=Object.create(null);function r(e){for(let r in e)Object.prototype.hasOwnProperty.call(t,r)||(t[r]=e[r])}return e.someProp("nodeViews",r),e.someProp("markViews",r),t}function tK(e){if(e.spec.state||e.spec.filterTransaction||e.spec.appendTransaction)throw RangeError("Plugins passed directly to the view must not have a state component")}tD.prototype.dispatch=function(e){let t=this._props.dispatchTransaction;t?t.call(this,e):this.updateState(this.state.apply(e))},r.d(t,{Lz:()=>tD,NZ:()=>ty,zF:()=>tb})},33097(e,t,r){function n(e,t,r){let n=e[t];e[t]=e[r],e[r]=n}r.d(t,{A:()=>i});class i{constructor(e=9){this._maxEntries=Math.max(4,e),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()}all(){return this._all(this.data,[])}search(e){let t=this.data,r=[];if(!d(e,t))return r;let n=this.toBBox,i=[];for(;t;){for(let a=0;a<t.children.length;a++){let o=t.children[a],s=t.leaf?n(o):o;d(e,s)&&(t.leaf?r.push(o):p(e,s)?this._all(o,r):i.push(o))}t=i.pop()}return r}collides(e){let t=this.data;if(!d(e,t))return!1;let r=[];for(;t;){for(let n=0;n<t.children.length;n++){let i=t.children[n],a=t.leaf?this.toBBox(i):i;if(d(e,a)){if(t.leaf||p(e,a))return!0;r.push(i)}}t=r.pop()}return!1}load(e){if(!(e&&e.length))return this;if(e.length<this._minEntries){for(let t=0;t<e.length;t++)this.insert(e[t]);return this}let t=this._build(e.slice(),0,e.length-1,0);if(this.data.children.length)if(this.data.height===t.height)this._splitRoot(this.data,t);else{if(this.data.height<t.height){let e=this.data;this.data=t,t=e}this._insert(t,this.data.height-t.height-1,!0)}else this.data=t;return this}insert(e){return e&&this._insert(e,this.data.height-1),this}clear(){return this.data=f([]),this}remove(e,t){let r,n,i;if(!e)return this;let a=this.data,o=this.toBBox(e),s=[],l=[];for(;a||s.length;){if(a||(a=s.pop(),n=s[s.length-1],r=l.pop(),i=!0),a.leaf){let r=function(e,t,r){if(!r)return t.indexOf(e);for(let n=0;n<t.length;n++)if(r(e,t[n]))return n;return -1}(e,a.children,t);if(-1!==r){a.children.splice(r,1),s.push(a),this._condense(s);break}}!i&&!a.leaf&&p(a,o)?(s.push(a),l.push(r),r=0,n=a,a=a.children[0]):n?(r++,a=n.children[r],i=!1):a=null}return this}toBBox(e){return e}compareMinX(e,t){return e.minX-t.minX}compareMinY(e,t){return e.minY-t.minY}toJSON(){return this.data}fromJSON(e){return this.data=e,this}_all(e,t){let r=[];for(;e;)e.leaf?t.push(...e.children):r.push(...e.children),e=r.pop();return t}_build(e,t,r,n){let i,o=r-t+1,s=this._maxEntries;if(o<=s)return a(i=f(e.slice(t,r+1)),this.toBBox),i;n||(n=Math.ceil(Math.log(o)/Math.log(s)),s=Math.ceil(o/Math.pow(s,n-1))),(i=f([])).leaf=!1,i.height=n;let l=Math.ceil(o/s),c=l*Math.ceil(Math.sqrt(s));m(e,t,r,c,this.compareMinX);for(let a=t;a<=r;a+=c){let t=Math.min(a+c-1,r);m(e,a,t,l,this.compareMinY);for(let r=a;r<=t;r+=l){let a=Math.min(r+l-1,t);i.children.push(this._build(e,r,a,n-1))}}return a(i,this.toBBox),i}_chooseSubtree(e,t,r,n){for(;;){let o;if(n.push(t),t.leaf||n.length-1===r)break;let s=1/0,l=1/0;for(let r=0;r<t.children.length;r++){var i,a;let n=t.children[r],c=u(n),h=(i=e,(Math.max((a=n).maxX,i.maxX)-Math.min(a.minX,i.minX))*(Math.max(a.maxY,i.maxY)-Math.min(a.minY,i.minY))-c);h<l?(l=h,s=c<s?c:s,o=n):h===l&&c<s&&(s=c,o=n)}t=o||t.children[0]}return t}_insert(e,t,r){let n=r?e:this.toBBox(e),i=[],a=this._chooseSubtree(n,this.data,t,i);for(a.children.push(e),s(a,n);t>=0;)if(i[t].children.length>this._maxEntries)this._split(i,t),t--;else break;this._adjustParentBBoxes(n,i,t)}_split(e,t){let r=e[t],n=r.children.length,i=this._minEntries;this._chooseSplitAxis(r,i,n);let o=this._chooseSplitIndex(r,i,n),s=f(r.children.splice(o,r.children.length-o));s.height=r.height,s.leaf=r.leaf,a(r,this.toBBox),a(s,this.toBBox),t?e[t-1].children.push(s):this._splitRoot(r,s)}_splitRoot(e,t){this.data=f([e,t]),this.data.height=e.height+1,this.data.leaf=!1,a(this.data,this.toBBox)}_chooseSplitIndex(e,t,r){let n,i=1/0,a=1/0;for(let s=t;s<=r-t;s++){let t=o(e,0,s,this.toBBox),l=o(e,s,r,this.toBBox),c=function(e,t){let r=Math.max(e.minX,t.minX),n=Math.max(e.minY,t.minY);return Math.max(0,Math.min(e.maxX,t.maxX)-r)*Math.max(0,Math.min(e.maxY,t.maxY)-n)}(t,l),h=u(t)+u(l);c<i?(i=c,n=s,a=h<a?h:a):c===i&&h<a&&(a=h,n=s)}return n||r-t}_chooseSplitAxis(e,t,r){let n=e.leaf?this.compareMinX:l,i=e.leaf?this.compareMinY:c;this._allDistMargin(e,t,r,n)<this._allDistMargin(e,t,r,i)&&e.children.sort(n)}_allDistMargin(e,t,r,n){e.children.sort(n);let i=this.toBBox,a=o(e,0,t,i),l=o(e,r-t,r,i),c=h(a)+h(l);for(let n=t;n<r-t;n++){let t=e.children[n];s(a,e.leaf?i(t):t),c+=h(a)}for(let n=r-t-1;n>=t;n--){let t=e.children[n];s(l,e.leaf?i(t):t),c+=h(l)}return c}_adjustParentBBoxes(e,t,r){for(let n=r;n>=0;n--)s(t[n],e)}_condense(e){for(let t=e.length-1,r;t>=0;t--)0===e[t].children.length?t>0?(r=e[t-1].children).splice(r.indexOf(e[t]),1):this.clear():a(e[t],this.toBBox)}}function a(e,t){o(e,0,e.children.length,t,e)}function o(e,t,r,n,i){i||(i=f(null)),i.minX=1/0,i.minY=1/0,i.maxX=-1/0,i.maxY=-1/0;for(let a=t;a<r;a++){let t=e.children[a];s(i,e.leaf?n(t):t)}return i}function s(e,t){return e.minX=Math.min(e.minX,t.minX),e.minY=Math.min(e.minY,t.minY),e.maxX=Math.max(e.maxX,t.maxX),e.maxY=Math.max(e.maxY,t.maxY),e}function l(e,t){return e.minX-t.minX}function c(e,t){return e.minY-t.minY}function u(e){return(e.maxX-e.minX)*(e.maxY-e.minY)}function h(e){return e.maxX-e.minX+(e.maxY-e.minY)}function p(e,t){return e.minX<=t.minX&&e.minY<=t.minY&&t.maxX<=e.maxX&&t.maxY<=e.maxY}function d(e,t){return t.minX<=e.maxX&&t.minY<=e.maxY&&t.maxX>=e.minX&&t.maxY>=e.minY}function f(e){return{children:e,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function m(e,t,r,i,a){let o=[t,r];for(;o.length;){if((r=o.pop())-(t=o.pop())<=i)continue;let s=t+Math.ceil((r-t)/i/2)*i;!function e(t,r,i=0,a=t.length-1,o=function(e,t){return e<t?-1:+(e>t)}){for(;a>i;){if(a-i>600){let n=a-i+1,s=r-i+1,l=Math.log(n),c=.5*Math.exp(2*l/3),u=.5*Math.sqrt(l*c*(n-c)/n)*(s-n/2<0?-1:1),h=Math.max(i,Math.floor(r-s*c/n+u)),p=Math.min(a,Math.floor(r+(n-s)*c/n+u));e(t,r,h,p,o)}let s=t[r],l=i,c=a;for(n(t,i,r),o(t[a],s)>0&&n(t,i,a);l<c;){for(n(t,l,c),l++,c--;0>o(t[l],s);)l++;for(;o(t[c],s)>0;)c--}0===o(t[i],s)?n(t,i,c):n(t,++c,a),c<=r&&(i=c+1),r<=c&&(a=c-1)}}(e,s,t,r,a),o.push(t,s,s,r)}}},80301(e,t,r){let n,i;var a=r(71178),o=r(51649);function s({groupSize:e,panelElement:t,styleProp:r}){let n,[i,a]=function(e){switch(typeof e){case"number":return[e,"px"];case"string":{let t=parseFloat(e);return e.endsWith("%")?[t,"%"]:e.endsWith("px")?[t,"px"]:e.endsWith("rem")?[t,"rem"]:e.endsWith("em")?[t,"em"]:e.endsWith("vh")?[t,"vh"]:e.endsWith("vw")?[t,"vw"]:[t,"%"]}}}(r);switch(a){case"%":n=i/100*e;break;case"px":n=i;break;case"rem":n=i*parseFloat(getComputedStyle(t.ownerDocument.documentElement).fontSize);break;case"em":n=i*parseFloat(getComputedStyle(t).fontSize);break;case"vh":n=i/100*window.innerHeight;break;case"vw":n=i/100*window.innerWidth}return n}function l(e){return parseFloat(e.toFixed(3))}function c({group:e}){let{orientation:t,panels:r}=e;return r.reduce((e,r)=>e+="horizontal"===t?r.element.offsetWidth:r.element.offsetHeight,0)}function u(e){let{panels:t}=e,r=c({group:e});return 0===r?t.map(e=>({groupResizeBehavior:e.panelConstraints.groupResizeBehavior,collapsedSize:0,collapsible:!0===e.panelConstraints.collapsible,defaultSize:void 0,disabled:e.panelConstraints.disabled,minSize:0,maxSize:100,panelId:e.id})):t.map(e=>{let t,{element:n,panelConstraints:i}=e,a=0;void 0!==i.collapsedSize&&(a=l(s({groupSize:r,panelElement:n,styleProp:i.collapsedSize})/r*100)),void 0!==i.defaultSize&&(t=l(s({groupSize:r,panelElement:n,styleProp:i.defaultSize})/r*100));let o=0;void 0!==i.minSize&&(o=l(s({groupSize:r,panelElement:n,styleProp:i.minSize})/r*100));let c=100;return void 0!==i.maxSize&&(c=l(s({groupSize:r,panelElement:n,styleProp:i.maxSize})/r*100)),{groupResizeBehavior:i.groupResizeBehavior,collapsedSize:a,collapsible:!0===i.collapsible,defaultSize:t,disabled:i.disabled,minSize:o,maxSize:c,panelId:e.id}})}function h(e,t="Assertion error"){if(!e)throw Error(t)}function p(e,t){return Array.from(t).sort("horizontal"===e?d:f)}function d(e,t){let r=e.element.offsetLeft-t.element.offsetLeft;return 0!==r?r:e.element.offsetWidth-t.element.offsetWidth}function f(e,t){let r=e.element.offsetTop-t.element.offsetTop;return 0!==r?r:e.element.offsetHeight-t.element.offsetHeight}function m(e){return null!==e&&"object"==typeof e&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function g(e,t){return{x:e.x>=t.left&&e.x<=t.right?0:Math.min(Math.abs(e.x-t.left),Math.abs(e.x-t.right)),y:e.y>=t.top&&e.y<=t.bottom?0:Math.min(Math.abs(e.y-t.top),Math.abs(e.y-t.bottom))}}function A(e){let{element:t,orientation:r,panels:i,separators:a}=e,o=p(r,Array.from(t.children).filter(m).map(e=>({element:e}))).map(({element:e})=>e),s=[],l=!1,u=!1,d=-1,f=-1,A=0,y,v=[];{let e=-1;for(let t of o)t.hasAttribute("data-panel")&&(e++,t.hasAttribute("data-disabled")||(A++,-1===d&&(d=e),f=e))}if(A>1){let t=-1;for(let p of o)if(p.hasAttribute("data-panel")){t++;let a=i.find(e=>e.element===p);if(a){if(y){let i,o=y.element.getBoundingClientRect(),m=p.getBoundingClientRect();if(u){let e="horizontal"===r?new DOMRect(o.right,o.top,0,o.height):new DOMRect(o.left,o.bottom,o.width,0),t="horizontal"===r?new DOMRect(m.left,m.top,0,m.height):new DOMRect(m.left,m.top,m.width,0);switch(v.length){case 0:i=[e,t];break;case 1:{let n=v[0],a=function({orientation:e,rects:t,targetRect:r}){let n={x:r.x+r.width/2,y:r.y+r.height/2},i,a=Number.MAX_VALUE;for(let r of t){let{x:t,y:o}=g(n,r),s="horizontal"===e?t:o;s<a&&(a=s,i=r)}return h(i,"No rect found"),i}({orientation:r,rects:[o,m],targetRect:n.element.getBoundingClientRect()});i=[n,a===o?t:e];break}default:i=v}}else i=v.length?v:["horizontal"===r?new DOMRect(o.right,m.top,m.left-o.right,m.height):new DOMRect(m.left,o.bottom,m.width,m.top-o.bottom)];for(let r of i){let i="width"in r?r:r.element.getBoundingClientRect(),o=(void 0===n&&(n="function"==typeof matchMedia&&!!matchMedia("(pointer:coarse)").matches),n)?e.resizeTargetMinimumSize.coarse:e.resizeTargetMinimumSize.fine;if(i.width<o){let e=o-i.width;i=new DOMRect(i.x-e/2,i.y,i.width+e,i.height)}if(i.height<o){let e=o-i.height;i=new DOMRect(i.x,i.y-e/2,i.width,i.height+e)}let u=t<=d||t>f;l||u||s.push({group:e,groupSize:c({group:e}),panels:[y,a],separator:"width"in r?void 0:r,rect:i}),l=!1}}u=!1,y=a,v=[]}}else if(p.hasAttribute("data-separator")){null!==p.ariaDisabled&&(l=!0);let e=a.find(e=>e.element===p);e?v.push(e):(y=void 0,v=[])}else u=!0}return s}class y{#e={};addListener(e,t){let r=this.#e[e];return void 0===r?this.#e[e]=[t]:r.includes(t)||r.push(t),()=>{this.removeListener(e,t)}}emit(e,t){let r=this.#e[e];if(void 0!==r)if(1===r.length)r[0].call(null,t);else{let e=!1,n=null,i=Array.from(r);for(let r=0;r<i.length;r++){let a=i[r];try{a.call(null,t)}catch(t){null===n&&(e=!0,n=t)}}if(e)throw n}}removeAllListeners(){this.#e={}}removeListener(e,t){let r=this.#e[e];if(void 0!==r){let e=r.indexOf(t);e>=0&&r.splice(e,1)}}}let v={cursorFlags:0,state:"inactive"},R=new y;function b(e){let t=v;v=e,R.emit("change",{prev:t,next:e})}let x=e=>e,M=()=>{};function S(){return void 0===i&&(i=!1,"u">typeof window&&(window.navigator.userAgent.includes("Chrome")||window.navigator.userAgent.includes("Firefox"))&&(i=!0)),i}let w=new WeakMap;function O(e){if(!e.defaultView||!e.adoptedStyleSheets)return;let{prevStyle:t,styleSheet:r}=w.get(e)??{};void 0===r&&(r=new e.defaultView.CSSStyleSheet,e.adoptedStyleSheets&&(Object.isExtensible(e.adoptedStyleSheets)?e.adoptedStyleSheets.push(r):e.adoptedStyleSheets=[...e.adoptedStyleSheets,r]));let n=v;switch(n.state){case"active":case"hover":{let e=function({cursorFlags:e,groups:t,state:r}){let n=0,i=0;switch(r){case"active":case"hover":t.forEach(e=>{if(!e.mutableState.disableCursor)switch(e.orientation){case"horizontal":n++;break;case"vertical":i++}})}if(0!==n||0!==i){if("active"===r&&e&&S()){let t=(4&e)!=0,r=(8&e)!=0;if((1&e)!=0)return t?"se-resize":r?"ne-resize":"e-resize";if((2&e)!=0)return t?"sw-resize":r?"nw-resize":"w-resize";if(t)return"s-resize";if(r)return"n-resize"}return S()?n>0&&i>0?"move":n>0?"ew-resize":"ns-resize":n>0&&i>0?"grab":n>0?"col-resize":"row-resize"}}({cursorFlags:n.cursorFlags,groups:n.hitRegions.map(e=>e.group),state:n.state}),i=`*, *:hover {cursor: ${e} !important; }`;if(t===i)return;t=i,e?0===r.cssRules.length?r.insertRule(i):r.replaceSync(i):1===r.cssRules.length&&r.deleteRule(0);break}case"inactive":t=void 0,1===r.cssRules.length&&r.deleteRule(0)}w.set(e,{prevStyle:t,styleSheet:r})}let L=new Map,N=new y;function _(e,t){for(let[t]of L)if(t.id===e)return t}function T(e,t){for(let[t,r]of L)if(t.id===e)return r;if(t)throw Error(`Could not find data for Group with id ${e}`)}function P(e,t){return N.addListener("groupChange",r=>{r.group.id===e&&t(r)})}function C(e,t,r){let n=L.get(e);(L=new Map(L)).set(e,t),N.emit("groupChange",{group:e,isUserInteraction:r?.isUserInteraction===!0,prev:n,next:t})}function I(e){let t=v,r=L,n=!1;return"active"===t.state&&(b({cursorFlags:0,state:"inactive"}),t.hitRegions.length>0&&(O(e),n=!0,t.hitRegions.forEach(e=>{if(!r.has(e.group))return;let t=T(e.group.id,!0);C(e.group,t,{isUserInteraction:!0})}))),n}function k(e){e.defaultPrevented||I(e.currentTarget)}let F=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function X(e){let t=e.length;for(;t--;){let r=e[t];if(h(r,"Missing node"),function(e){let t,r=getComputedStyle(e);return!!("fixed"===r.position||"auto"!==r.zIndex&&("static"!==r.position||"flex"===(t=getComputedStyle(V(e)??e).display)||"inline-flex"===t)||1>+r.opacity||"transform"in r&&"none"!==r.transform||"webkitTransform"in r&&"none"!==r.webkitTransform||"mixBlendMode"in r&&"normal"!==r.mixBlendMode||"filter"in r&&"none"!==r.filter||"webkitFilter"in r&&"none"!==r.webkitFilter||"isolation"in r&&"isolate"===r.isolation||F.test(r.willChange)||"touch"===r.webkitOverflowScrolling)}(r))return r}return null}function U(e){return e&&Number(getComputedStyle(e).zIndex)||0}function W(e){let t=[];for(;e;)t.push(e),e=V(e);return t}function V(e){let{parentNode:t}=e;return null!==t&&"object"==typeof t&&"nodeType"in t&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE?t.host:t}function E(e,t){let r=[];return t.forEach((t,n)=>{if(n.disabled)return;let i=A(n),a=function(e,t,r){let n,i={x:1/0,y:1/0};for(let a of t){let t=g(r,a.rect);switch(e){case"horizontal":t.x<=i.x&&(n=a,i=t);break;case"vertical":t.y<=i.y&&(n=a,i=t)}}return n?{distance:i,hitRegion:n}:void 0}(n.orientation,i,{x:e.clientX,y:e.clientY});a&&a.distance.x<=0&&a.distance.y<=0&&function({groupElement:e,hitRegion:t,pointerEventTarget:r}){if(!m(r)||r.contains(e)||e.contains(r))return!0;if(function(e,t){let r;if(e===t)throw Error("Cannot compare node with itself");let n={a:W(e),b:W(t)};for(;n.a.at(-1)===n.b.at(-1);)r=n.a.pop(),n.b.pop();h(r,"Stacking order can only be calculated for elements with a common ancestor");let i={a:U(X(n.a)),b:U(X(n.b))};if(i.a===i.b){let e=r.childNodes,t={a:n.a.at(-1),b:n.b.at(-1)},i=e.length;for(;i--;){let r=e[i];if(r===t.a)return 1;if(r===t.b)return -1}}return Math.sign(i.a-i.b)}(r,e)>0){let i=r;for(;i;){var n;if(i.contains(e))break;if(n=i.getBoundingClientRect(),n.x<t.x+t.width&&n.x+n.width>t.x&&n.y<t.y+t.height&&n.y+n.height>t.y)return!1;i=i.parentElement}}return!0}({groupElement:n.element,hitRegion:a.hitRegion.rect,pointerEventTarget:e.target})&&r.push(a.hitRegion)}),r}function Y(e,t,r=0){return Math.abs(l(e)-l(t))<=r}function D(e,t){return Y(e,t)?0:e>t?1:-1}function Q({overrideDisabledPanels:e,panelConstraints:t,prevSize:r,size:n}){let{collapsedSize:i=0,collapsible:a,disabled:o,maxSize:s=100,minSize:c=0}=t;return o&&!e?r:(0>D(n,c)&&(n=a&&0>D(n,(i+c)/2)?i:c),l(n=Math.min(s,n)))}function $({delta:e,initialLayout:t,panelConstraints:r,pivotIndices:n,prevLayout:i,trigger:a}){if(Y(e,0))return t;let o="imperative-api"===a,s=Object.values(t),l=Object.values(i),c=[...s],[u,p]=n;h(null!=u,"Invalid first pivot index"),h(null!=p,"Invalid second pivot index");let d=0;if("keyboard"===a){{let t=e<0?p:u,n=r[t];h(n,`Panel constraints not found for index ${t}`);let{collapsedSize:i=0,collapsible:a,minSize:o=0}=n;if(a){let r=s[t];if(h(null!=r,`Previous layout not found for panel index ${t}`),Y(r,i)){let t=o-r;D(t,Math.abs(e))>0&&(e=e<0?0-t:t)}}}{let t=e<0?u:p,n=r[t];h(n,`No panel constraints found for index ${t}`);let{collapsedSize:i=0,collapsible:a,minSize:o=0}=n;if(a){let r=s[t];if(h(null!=r,`Previous layout not found for panel index ${t}`),Y(r,o)){let t=r-i;D(t,Math.abs(e))>0&&(e=e<0?0-t:t)}}}}else{let t=e<0?p:u,n=r[t];h(n,`Panel constraints not found for index ${t}`);let i=s[t],{collapsible:a,collapsedSize:o,minSize:l}=n;if(a&&0>D(i,l))if(e>0){let t=l-o;0>D(i+e,l)&&(e=0>=D(e,t/2)?0:t)}else{let t=l-o;0>D(i-e,l)&&(e=D(100+e,100-t/2)>0?0:-t)}}{let t=e<0?1:-1,n=e<0?p:u,i=0;for(;;){let e=s[n];if(h(null!=e,`Previous layout not found for panel index ${n}`),i+=Q({overrideDisabledPanels:o,panelConstraints:r[n],prevSize:e,size:100})-e,(n+=t)<0||n>=r.length)break}let a=Math.min(Math.abs(e),Math.abs(i));e=e<0?0-a:a}{let t=e<0?u:p;for(;t>=0&&t<r.length;){let n=Math.abs(e)-Math.abs(d),i=s[t];h(null!=i,`Previous layout not found for panel index ${t}`);let a=i-n,l=Q({overrideDisabledPanels:o,panelConstraints:r[t],prevSize:i,size:a});if(!Y(i,l)&&(d+=i-l,c[t]=l,d.toFixed(3).localeCompare(Math.abs(e).toFixed(3),void 0,{numeric:!0})>=0))break;e<0?t--:t++}}if(function(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!=t[r])return!1;return!0}(l,c))return i;{let t=e<0?p:u,n=s[t];h(null!=n,`Previous layout not found for panel index ${t}`);let i=n+d,a=Q({overrideDisabledPanels:o,panelConstraints:r[t],prevSize:n,size:i});if(c[t]=a,!Y(a,i)){let t=i-a,n=e<0?p:u;for(;n>=0&&n<r.length;){let i=c[n];h(null!=i,`Previous layout not found for panel index ${n}`);let a=i+t,s=Q({overrideDisabledPanels:o,panelConstraints:r[n],prevSize:i,size:a});if(Y(i,s)||(t-=s-i,c[n]=s),Y(t,0))break;e>0?n--:n++}}}if(!Y(Object.values(c).reduce((e,t)=>t+e,0),100,.1))return i;let f=Object.keys(i);return c.reduce((e,t,r)=>(e[f[r]]=t,e),{})}function B(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let r in e)if(void 0===t[r]||0!==D(e[r],t[r]))return!1;return!0}function Z({layout:e,panelConstraints:t}){let r=Object.values(e),n=[...r],i=n.reduce((e,t)=>e+t,0);if(n.length!==t.length)throw Error(`Invalid ${t.length} panel layout: ${n.map(e=>`${e}%`).join(", ")}`);if(!Y(i,100)&&n.length>0)for(let e=0;e<t.length;e++){let t=n[e];h(null!=t,`No layout data found for index ${e}`);let r=100/i*t;n[e]=r}let a=0;for(let e=0;e<t.length;e++){let i=r[e];h(null!=i,`No layout data found for index ${e}`);let o=n[e];h(null!=o,`No layout data found for index ${e}`);let s=Q({overrideDisabledPanels:!0,panelConstraints:t[e],prevSize:i,size:o});o!=s&&(a+=o-s,n[e]=s)}if(!Y(a,0))for(let e=0;e<t.length;e++){let r=n[e];h(null!=r,`No layout data found for index ${e}`);let i=r+a,o=Q({overrideDisabledPanels:!0,panelConstraints:t[e],prevSize:r,size:i});if(r!==o&&(a-=o-r,n[e]=o,Y(a,0)))break}let o=Object.keys(e);return n.reduce((e,t,r)=>(e[o[r]]=t,e),{})}function K({groupId:e,panelId:t}){let r=()=>{for(let[t,{defaultLayoutDeferred:r,derivedPanelConstraints:n,layout:i,groupSize:a,separatorToPanels:o}]of L)if(t.id===e)return{defaultLayoutDeferred:r,derivedPanelConstraints:n,group:t,groupSize:a,layout:i,separatorToPanels:o};throw Error(`Group ${e} not found`)},n=()=>{let e=r().derivedPanelConstraints.find(e=>e.panelId===t);if(void 0!==e)return e;throw Error(`Panel constraints not found for Panel ${t}`)},i=()=>{let e=r().group.panels.find(e=>e.id===t);if(void 0!==e)return e;throw Error(`Layout not found for Panel ${t}`)},a=()=>{let e=r().layout[t];if(void 0!==e)return e;throw Error(`Layout not found for Panel ${t}`)},o=e=>{if(e===a())return;let{defaultLayoutDeferred:n,derivedPanelConstraints:i,group:o,groupSize:s,layout:c,separatorToPanels:u}=r(),h=Z({layout:(({nextSize:e,panels:r,prevLayout:n,derivedPanelConstraints:i})=>{let o=a(),s=r.findIndex(e=>e.id===t),c=0===s,u=s===r.length-1;if(u&&e<o&&(c||r.slice(0,s).every((e,t)=>{let r=i[t];return r?.collapsible&&Y(r.collapsedSize,n[r.panelId])}))){let e=r.slice(0,s).reduce((e,t)=>e+n[t.id],0);return{...n,[t]:l(100-e)}}return $({delta:u?o-e:e-o,initialLayout:n,panelConstraints:i,pivotIndices:u?[s-1,s]:[s,s+1],prevLayout:n,trigger:"imperative-api"})})({nextSize:e,panels:o.panels,prevLayout:c,derivedPanelConstraints:i}),panelConstraints:i});B(c,h)||C(o,{defaultLayoutDeferred:n,derivedPanelConstraints:i,groupSize:s,layout:h,separatorToPanels:u})};return{collapse:()=>{let{collapsible:e,collapsedSize:t}=n(),{mutableValues:r}=i(),s=a();e&&s!==t&&(r.expandToSize=s,o(t))},expand:()=>{let{collapsible:e,collapsedSize:t,minSize:r}=n(),{mutableValues:s}=i(),l=a();if(e&&l===t){let e=s.expandToSize??r;0===e&&(e=1),o(e)}},getSize:()=>{let{group:e}=r(),t=a(),{element:n}=i();return{asPercentage:t,inPixels:"horizontal"===e.orientation?n.offsetWidth:n.offsetHeight}},isCollapsed:()=>{let{collapsible:e,collapsedSize:t}=n(),r=a();return e&&Y(t,r)},resize:e=>{let{group:t}=r(),{element:n}=i(),a=c({group:t});o(l(s({groupSize:a,panelElement:n,styleProp:e})/a*100))}}}function G(e){e.defaultPrevented||E(e,L).forEach(t=>{if(t.separator&&!t.separator.disableDoubleClick){let r=t.panels.find(e=>void 0!==e.panelConstraints.defaultSize);if(r){let n=r.panelConstraints.defaultSize,i=K({groupId:t.group.id,panelId:r.id});i&&void 0!==n&&(i.resize(n),e.preventDefault())}}})}function H(e){for(let[t]of L)if(t.separators.some(t=>t.element===e))return t;throw Error("Could not find parent Group for separator element")}function z({groupId:e}){let t=()=>{for(let[t,r]of L)if(t.id===e)return{group:t,...r};throw Error(`Could not find Group with id "${e}"`)};return{getLayout(){let{defaultLayoutDeferred:e,layout:r}=t();return e?{}:r},setLayout(e){let{defaultLayoutDeferred:r,derivedPanelConstraints:n,group:i,groupSize:a,layout:o,separatorToPanels:s}=t(),l=Z({layout:e,panelConstraints:n});return r?o:(B(o,l)||C(i,{defaultLayoutDeferred:r,derivedPanelConstraints:n,groupSize:a,layout:l,separatorToPanels:s}),l)}}}function J(e,t){let r=H(e),n=T(r.id,!0),i=r.separators.find(t=>t.element===e);h(i,"Matching separator not found");let a=n.separatorToPanels.get(i);h(a,"Matching panels not found");let o=a.map(e=>r.panels.indexOf(e)),s=z({groupId:r.id}).getLayout(),l=Z({layout:$({delta:t,initialLayout:s,panelConstraints:n.derivedPanelConstraints,pivotIndices:o,prevLayout:s,trigger:"keyboard"}),panelConstraints:n.derivedPanelConstraints});B(s,l)||C(r,{defaultLayoutDeferred:n.defaultLayoutDeferred,derivedPanelConstraints:n.derivedPanelConstraints,groupSize:n.groupSize,layout:l,separatorToPanels:n.separatorToPanels},{isUserInteraction:!0})}function j(e){if(e.defaultPrevented)return;let t=e.currentTarget,r=H(t);if(!r.disabled)switch(e.key){case"ArrowDown":e.preventDefault(),"vertical"===r.orientation&&J(t,5);break;case"ArrowLeft":e.preventDefault(),"horizontal"===r.orientation&&J(t,-5);break;case"ArrowRight":e.preventDefault(),"horizontal"===r.orientation&&J(t,5);break;case"ArrowUp":e.preventDefault(),"vertical"===r.orientation&&J(t,-5);break;case"End":e.preventDefault(),J(t,100);break;case"Enter":{e.preventDefault();let r=H(t),{derivedPanelConstraints:n,layout:i,separatorToPanels:a}=T(r.id,!0),o=r.separators.find(e=>e.element===t);h(o,"Matching separator not found");let s=a.get(o);h(s,"Matching panels not found");let l=s[0],c=n.find(e=>e.panelId===l.id);if(h(c,"Panel metadata not found"),c.collapsible){let e=i[l.id];J(t,(c.collapsedSize===e?r.mutableState.expandedPanelSizes[l.id]??c.minSize:c.collapsedSize)-e)}break}case"F6":{e.preventDefault();let r=H(t).separators.map(e=>e.element),n=Array.from(r).findIndex(t=>t===e.currentTarget);h(null!==n,"Index not found");let i=e.shiftKey?n>0?n-1:r.length-1:n+1<r.length?n+1:0;r[i].focus({preventScroll:!0});break}case"Home":e.preventDefault(),J(t,-100)}}function q(e){if(e.defaultPrevented||"mouse"===e.pointerType&&e.button>0)return;let t=L,r=E(e,t),n=new Map,i=!1;r.forEach(e=>{e.separator&&(i||(i=!0,e.separator.element.focus({focusVisible:!1,preventScroll:!0})));let r=t.get(e.group);r&&n.set(e.group,r.layout)}),b({cursorFlags:0,hitRegions:r,initialLayoutMap:n,pointerDownAtPoint:{x:e.clientX,y:e.clientY},state:"active"}),r.length&&e.preventDefault()}function ee({document:e,event:t,hitRegions:r,initialLayoutMap:n,mountedGroups:i,pointerDownAtPoint:a,prevCursorFlags:o}){var s;let l,c,u=0;r.forEach(e=>{let{group:r,groupSize:o}=e,{orientation:s,panels:l}=r,{disableCursor:c}=r.mutableState,h=0;h=a?"horizontal"===s?(t.clientX-a.x)/o*100:(t.clientY-a.y)/o*100:"horizontal"===s?t.clientX<0?-100:100:t.clientY<0?-100:100;let p=n.get(r),d=i.get(r);if(!p||!d)return;let{defaultLayoutDeferred:f,derivedPanelConstraints:m,groupSize:g,layout:A,separatorToPanels:y}=d;if(m&&A&&y){let t=$({delta:h,initialLayout:p,panelConstraints:m,pivotIndices:e.panels.map(e=>l.indexOf(e)),prevLayout:A,trigger:"mouse-or-touch"});if(B(t,A)){if(0!==h&&!c)switch(s){case"horizontal":u|=h<0?1:2;break;case"vertical":u|=h<0?4:8}}else C(e.group,{defaultLayoutDeferred:f,derivedPanelConstraints:m,groupSize:g,layout:t,separatorToPanels:y})}});let h=0;0===t.movementX?h|=3&o:h|=3&u,0===t.movementY?h|=12&o:h|=12&u,s=h,l=v,(c={...v}).cursorFlags=s,v=c,R.emit("change",{prev:l,next:c}),O(e)}function et(e){let t=L,r=v;"active"===r.state&&ee({document:e.currentTarget,event:e,hitRegions:r.hitRegions,initialLayoutMap:r.initialLayoutMap,mountedGroups:t,prevCursorFlags:r.cursorFlags})}function er(e){if(e.defaultPrevented)return;let t=v,r=L;if("active"===t.state){if(0===e.buttons){b({cursorFlags:0,state:"inactive"}),t.hitRegions.forEach(e=>{if(!r.has(e.group))return;let t=T(e.group.id,!0);C(e.group,t,{isUserInteraction:!0})});return}for(let r of t.hitRegions)if(r.separator){let{element:t}=r.separator;t.hasPointerCapture?.(e.pointerId)||t.setPointerCapture?.(e.pointerId)}ee({document:e.currentTarget,event:e,hitRegions:t.hitRegions,initialLayoutMap:t.initialLayoutMap,mountedGroups:r,pointerDownAtPoint:t.pointerDownAtPoint,prevCursorFlags:t.cursorFlags})}else{let n=E(e,r);0===n.length?"inactive"!==t.state&&b({cursorFlags:0,state:"inactive"}):b({cursorFlags:0,hitRegions:n,state:"hover"}),O(e.currentTarget)}}function en(e){e.relatedTarget instanceof HTMLIFrameElement&&"hover"===v.state&&b({cursorFlags:0,state:"inactive"})}function ei(e){e.defaultPrevented||("mouse"!==e.pointerType||!(e.button>0))&&I(e.currentTarget)&&e.preventDefault()}function ea(e){let t=0,r=0,n={};for(let i of e)if(void 0!==i.defaultSize){t++;let e=l(i.defaultSize);r+=e,n[i.panelId]=e}else n[i.panelId]=void 0;let i=e.length-t;if(0!==i){let t=l((100-r)/i);for(let r of e)void 0===r.defaultSize&&(n[r.panelId]=t)}return n}let eo=new Map;function es(e){let t=(0,o.useId)();return`${e??t}`}let el="u">typeof window?o.useLayoutEffect:o.useEffect;function ec(e){let t=(0,o.useRef)(e);return el(()=>{t.current=e},[e]),(0,o.useCallback)((...e)=>t.current?.(...e),[t])}function eu(...e){return ec(t=>{e.forEach(e=>{if(e)switch(typeof e){case"function":e(t);break;case"object":e.current=t}})})}function eh(e){let t=(0,o.useRef)({...e});return el(()=>{for(let r in e)t.current[r]=e[r]},[e]),t.current}let ep=(0,o.createContext)(null);function ed({children:e,className:t,defaultLayout:r,disableCursor:n,disabled:i,elementRef:s,groupRef:d,id:f,onLayoutChange:m,onLayoutChanged:g,orientation:y="horizontal",resizeTargetMinimumSize:R={coarse:20,fine:10},style:b,...M}){let S,w=(0,o.useRef)({onLayoutChange:{},onLayoutChanged:{}}),O=ec(e=>{B(w.current.onLayoutChange,e)||(w.current.onLayoutChange=e,m?.(e))}),N=ec((e,t)=>{B(w.current.onLayoutChanged,e)||(w.current.onLayoutChanged=e,g?.(e,{isUserInteraction:t}))}),I=es(f),F=(0,o.useRef)(null),[X,U]=function(){let[e,t]=(0,o.useState)({});return[e,(0,o.useCallback)(()=>t({}),[])]}(),W=(0,o.useRef)({lastExpandedPanelSizes:{},layouts:{},panels:[],resizeTargetMinimumSize:R,separators:[]}),V=eu(F,s);S=(0,o.useRef)({getLayout:()=>({}),setLayout:x}),(0,o.useImperativeHandle)(d,()=>S.current,[]),el(()=>{Object.assign(S.current,z({groupId:I}))});let E=ec((e,t)=>{let n=v,i=_(e),a=T(e);if(a){let e=!1;return"active"===n.state&&(e=n.hitRegions.some(e=>e.group===i)),{flexGrow:a.layout[t]??1,pointerEvents:e?"none":void 0}}if(r?.[t])return{flexGrow:r?.[t]}}),D=eh({defaultLayout:r,disableCursor:n}),Q=(0,o.useMemo)(()=>({get disableCursor(){return!!D.disableCursor},getPanelStyles:E,id:I,orientation:y,registerPanel:e=>{let t=W.current;return t.panels=p(y,[...t.panels,e]),U(),()=>{t.panels=t.panels.filter(t=>t!==e),U()}},registerSeparator:e=>{let t=W.current;return t.separators=p(y,[...t.separators,e]),U(),()=>{t.separators=t.separators.filter(t=>t!==e),U()}},updatePanelProps:(e,{disabled:t})=>{let r=W.current.panels.find(t=>t.id===e);r&&(r.panelConstraints.disabled=t);let n=_(I),i=T(I);n&&i&&C(n,{...i,derivedPanelConstraints:u(n)})},updateSeparatorProps:(e,{disabled:t,disableDoubleClick:r})=>{let n=W.current.separators.find(t=>t.id===e);n&&(n.disabled=t,n.disableDoubleClick=r)}}),[E,I,U,y,D]),$=(0,o.useRef)(null);return el(()=>{let e,t,r,n,a,o,s,p,d,f,m,g,R,b=F.current;if(null===b)return;let x=W.current;if(void 0!==D.defaultLayout&&Object.keys(D.defaultLayout).length===x.panels.length)for(let t of(e={},x.panels)){let r=D.defaultLayout[t.id];void 0!==r&&(e[t.id]=r)}let M={disabled:!!i,element:b,id:I,mutableState:{defaultLayout:e,disableCursor:!!D.disableCursor,expandedPanelSizes:W.current.lastExpandedPanelSizes,layouts:W.current.layouts},orientation:y,panels:x.panels,resizeTargetMinimumSize:x.resizeTargetMinimumSize,separators:x.separators};$.current=M;let S=(t=!0,h(M.element.ownerDocument.defaultView,"Cannot register an unmounted Group"),r=M.element.ownerDocument.defaultView.ResizeObserver,n=new Set,a=new Set,(o=new r(e=>{for(let r of e){let{borderBoxSize:e,target:n}=r;if(n===M.element){if(t){let e=c({group:M});if(0===e)return;let t=T(M.id);if(!t)return;let r=u(M),n=t.defaultLayoutDeferred?ea(r):t.layout,i=Z({layout:function({group:e,nextGroupSize:t,prevGroupSize:r,prevLayout:n}){if(r<=0||t<=0||r===t)return n;let i=0,a=0,o=!1,s=new Map,c=[];for(let u of e.panels){let e=n[u.id]??0;if("preserve-pixel-size"===u.panelConstraints.groupResizeBehavior){o=!0;let n=l(e/100*r/t*100);s.set(u.id,n),i+=n}else c.push(u.id),a+=e}if(!o||0===c.length)return n;let u=100-i,h={...n};if(s.forEach((e,t)=>{h[t]=e}),a>0)for(let e of c){let t=n[e]??0;h[e]=l(t/a*u)}else{let e=l(u/c.length);for(let t of c)h[t]=e}return h}({group:M,nextGroupSize:e,prevGroupSize:t.groupSize,prevLayout:n}),panelConstraints:r});if(!t.defaultLayoutDeferred&&B(t.layout,i)&&function(e,t){return e.length===t.length&&e.every((e,r)=>(function(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let r in e)if(e[r]!==t[r])return!1;return!0})(e,t[r]))}(t.derivedPanelConstraints,r)&&t.groupSize===e)continue;C(M,{defaultLayoutDeferred:!1,derivedPanelConstraints:r,groupSize:e,layout:i,separatorToPanels:t.separatorToPanels})}}else!function(e,t,r){if(!r[0])return;let n=e.panels.find(e=>e.element===t);if(!n||!n.onResize)return;let i=c({group:e}),a="horizontal"===e.orientation?n.element.offsetWidth:n.element.offsetHeight,o=n.mutableValues.prevSize,s={asPercentage:l(a/i*100),inPixels:a};n.mutableValues.prevSize=s,n.onResize(s,n.id,o)}(M,n,e)}})).observe(M.element),M.panels.forEach(e=>{h(!n.has(e.id),`Panel ids must be unique; id "${e.id}" was used more than once`),n.add(e.id),e.onResize&&o.observe(e.element)}),s=c({group:M}),p=u(M),d=M.panels.map(({id:e})=>e).join(","),(f=M.mutableState.defaultLayout)&&(function(e,t){let r=e.map(e=>e.id),n=Object.keys(t);if(r.length!==n.length)return!1;for(let e of r)if(!n.includes(e))return!1;return!0}(M.panels,f)||(f=void 0)),m=Z({layout:M.mutableState.layouts[d]??f??ea(p),panelConstraints:p}),g=M.element.ownerDocument,eo.set(g,(eo.get(g)??0)+1),R=new Map,A(M).forEach(e=>{e.separator&&R.set(e.separator,e.panels)}),C(M,{defaultLayoutDeferred:0===s,derivedPanelConstraints:p,groupSize:s,layout:m,separatorToPanels:R}),M.separators.forEach(e=>{h(!a.has(e.id),`Separator ids must be unique; id "${e.id}" was used more than once`),a.add(e.id),e.element.addEventListener("keydown",j)}),1===eo.get(g)&&(g.addEventListener("contextmenu",k,!0),g.addEventListener("dblclick",G,!0),g.addEventListener("pointerdown",q,!0),g.addEventListener("pointerleave",et),g.addEventListener("pointermove",er),g.addEventListener("pointerout",en),g.addEventListener("pointerup",ei,!0)),function(){t=!1,eo.set(g,Math.max(0,(eo.get(g)??0)-1)),(L=new Map(L)).delete(M),M.separators.forEach(e=>{e.element.removeEventListener("keydown",j)}),eo.get(g)||(g.removeEventListener("contextmenu",k,!0),g.removeEventListener("dblclick",G,!0),g.removeEventListener("pointerdown",q,!0),g.removeEventListener("pointerleave",et),g.removeEventListener("pointermove",er),g.removeEventListener("pointerout",en),g.removeEventListener("pointerup",ei,!0)),o.disconnect()}),{defaultLayoutDeferred:w,derivedPanelConstraints:_,layout:X}=T(M.id,!0);!w&&_.length>0&&(O(X),N(X,!1));let U=P(I,e=>{let{defaultLayoutDeferred:t,derivedPanelConstraints:r,layout:n}=e.next;if(t||0===r.length)return;let i=M.panels.map(({id:e})=>e).join(",");M.mutableState.layouts[i]=n,r.forEach(t=>{if(t.collapsible){let{layout:r}=e.prev??{};if(r){let e=Y(t.collapsedSize,n[t.panelId]),i=Y(t.collapsedSize,r[t.panelId]);e&&!i&&(M.mutableState.expandedPanelSizes[t.panelId]=r[t.panelId])}}});let a="active"!==v.state;O(n),a&&N(n,e.isUserInteraction)});return()=>{$.current=null,S(),U()}},[i,I,N,O,y,X,D]),(0,o.useEffect)(()=>{let e=$.current;e&&(e.mutableState.defaultLayout=r,e.mutableState.disableCursor=!!n)}),(0,a.jsx)(ep.Provider,{value:Q,children:(0,a.jsx)("div",{...M,className:t,"data-group":!0,"data-testid":I,id:I,ref:V,style:{height:"100%",width:"100%",overflow:"hidden",...b,display:"flex",flexDirection:"horizontal"===y?"row":"column",flexWrap:"nowrap",touchAction:"horizontal"===y?"pan-y":"pan-x"},children:e})})}function ef(e,t){return`react-resizable-panels:${[e,...t].join(":")}`}function em({debounceSaveMs:e=100,onlySaveAfterUserInteractions:t,panelIds:r,storage:n=localStorage,...i}){let a=void 0!==r,s="id"in i?i.id:i.groupId,l=ef(s,r??[]),c=(0,o.useSyncExternalStore)(eg,()=>n.getItem(l),()=>n.getItem(l)),u=(0,o.useMemo)(()=>{if(c){let e=JSON.parse(c);if(Array.from(Object.values(e)).every(e=>"number"==typeof e))return e}},[c]),h=(0,o.useMemo)(()=>{if(!u)return function({id:e,panelIds:t,storage:r}){let n=ef(e,[]),i=r.getItem(n);if(i)try{let e=JSON.parse(i);if(t){let r=e[t.join(",")];if(r&&Array.isArray(r.layout)&&t.length===r.layout.length){let e={};for(let n=0;n<t.length;n++)e[t[n]]=r.layout[n];return e}}else{let t=Object.keys(e);if(1===t.length){let r=e[t[0]];if(r&&Array.isArray(r.layout)){let e=t[0].split(",");if(e.length===r.layout.length){let t={};for(let n=0;n<e.length;n++)t[e[n]]=r.layout[n];return t}}}}}catch{}}({id:s,panelIds:r,storage:n})},[u,s,r,n]),p=u??h,d=(0,o.useRef)(null),f=(0,o.useCallback)(()=>{let e=d.current;e&&(d.current=null,clearTimeout(e))},[]);(0,o.useLayoutEffect)(()=>()=>{f()},[f]);let m=(0,o.useCallback)((e,r)=>{let i;if(!t||r.isUserInteraction){f(),i=a?ef(s,Object.keys(e)):ef(s,[]);try{n.setItem(i,JSON.stringify(e))}catch(e){console.error(e)}}},[f,a,s,t,n]);return{defaultLayout:p,onLayoutChange:(0,o.useCallback)(t=>{f(),0===e?m(t,{isUserInteraction:!1}):d.current=setTimeout(()=>{m(t,{isUserInteraction:!1})},e)},[f,e,m]),onLayoutChanged:m}}function eg(){return function(){}}function eA(){let e=(0,o.useContext)(ep);return h(e,"Group Context not found; did you render a Panel or Separator outside of a Group?"),e}function ey({children:e,className:t,collapsedSize:r="0%",collapsible:n=!1,defaultSize:i,disabled:s,elementRef:l,groupResizeBehavior:c="preserve-relative-size",id:u,maxSize:h="100%",minSize:p="0%",onResize:d,panelRef:f,style:m,...g}){let A,y=!!u,v=es(u),R=eh({disabled:s}),b=(0,o.useRef)(null),x=eu(b,l),{getPanelStyles:S,id:w,orientation:O,registerPanel:L,updatePanelProps:N}=eA(),_=null!==d,T=ec((e,t,r)=>{d?.(e,u,r)});el(()=>{let e=b.current;if(null!==e)return L({element:e,id:v,idIsStable:y,mutableValues:{expandToSize:void 0,prevSize:void 0},onResize:_?T:void 0,panelConstraints:{groupResizeBehavior:c,collapsedSize:r,collapsible:n,defaultSize:i,disabled:R.disabled,maxSize:h,minSize:p}})},[c,r,n,i,_,v,y,h,p,T,L,R]),(0,o.useEffect)(()=>{N(v,{disabled:s})},[s,v,N]),function(e,t){let{id:r}=eA(),n=(0,o.useRef)({collapse:M,expand:M,getSize:()=>({asPercentage:0,inPixels:0}),isCollapsed:()=>!1,resize:M});(0,o.useImperativeHandle)(t,()=>n.current,[]),el(()=>{Object.assign(n.current,K({groupId:r,panelId:e}))})}(v,f);let C=()=>{let e=S(w,v);if(e)return JSON.stringify(e)},I=(0,o.useSyncExternalStore)(e=>P(w,e),C,C);return A=I?JSON.parse(I):void 0!==i?{flexGrow:void 0,flexShrink:void 0,flexBasis:i}:{flexGrow:1},(0,a.jsx)("div",{...g,"data-disabled":s||void 0,"data-panel":!0,"data-testid":v,id:v,ref:x,style:{...ev,display:"flex",flexBasis:0,flexShrink:1,overflow:"visible",...A},children:(0,a.jsx)("div",{className:t,style:{maxHeight:"100%",maxWidth:"100%",flexGrow:1,overflow:"auto",...m,touchAction:"horizontal"===O?"pan-y":"pan-x"},children:e})})}ed.displayName="Group",ey.displayName="Panel";let ev={minHeight:0,maxHeight:"100%",height:"auto",minWidth:0,maxWidth:"100%",width:"auto",border:"none",borderWidth:0,padding:0,margin:0};function eR(){return(0,o.useRef)(null)}function eb({children:e,className:t,disabled:r,disableDoubleClick:n,elementRef:i,id:s,style:l,...c}){let u,h,p=es(s),d=eh({disabled:r,disableDoubleClick:n}),[f,m]=(0,o.useState)({}),[g,A]=(0,o.useState)("inactive"),[y,v]=(0,o.useState)(!1),b=(0,o.useRef)(null),x=eu(b,i),{disableCursor:M,id:S,orientation:w,registerSeparator:O,updateSeparatorProps:L}=eA();return el(()=>{let e=b.current;if(null!==e){var t;let r={disabled:d.disabled,disableDoubleClick:d.disableDoubleClick,element:e,id:p},n=O(r),i=(t=e=>{A("inactive"!==e.next.state&&e.next.hitRegions.some(e=>e.separator===r)?e.next.state:"inactive")},R.addListener("change",t)),a=P(S,e=>{let{derivedPanelConstraints:t,layout:n,separatorToPanels:i}=e.next,a=i.get(r);if(a){let e=a[0],r=a.indexOf(e);m(function({layout:e,panelConstraints:t,panelId:r,panelIndex:n}){let i,a,o=e[r],s=t.find(e=>e.panelId===r);if(s){let l=s.maxSize,c=s.collapsible?s.collapsedSize:s.minSize,u=[n,n+1];a=Z({layout:$({delta:c-o,initialLayout:e,panelConstraints:t,pivotIndices:u,prevLayout:e}),panelConstraints:t})[r],i=Z({layout:$({delta:l-o,initialLayout:e,panelConstraints:t,pivotIndices:u,prevLayout:e}),panelConstraints:t})[r]}return{valueControls:r,valueMax:i,valueMin:a,valueNow:o}}({layout:n,panelConstraints:t,panelId:e.id,panelIndex:r}))}});return()=>{i(),a(),n()}}},[S,p,O,d]),(0,o.useEffect)(()=>{L(p,{disabled:r,disableDoubleClick:n})},[r,n,p,L]),r&&!M&&(u="not-allowed"),h=r?"disabled":"active"===g?"active":y?"focus":g,(0,a.jsx)("div",{...c,"aria-controls":f.valueControls,"aria-disabled":r||void 0,"aria-orientation":"horizontal"===w?"vertical":"horizontal","aria-valuemax":f.valueMax,"aria-valuemin":f.valueMin,"aria-valuenow":f.valueNow,children:e,className:t,"data-separator":h,"data-testid":p,id:p,onBlur:()=>v(!1),onFocus:()=>v(!0),ref:x,role:"separator",style:{flexBasis:"auto",cursor:u,...l,flexGrow:0,flexShrink:0,touchAction:"none"},tabIndex:r?void 0:0})}eb.displayName="Separator",r.d(t,{YJ:()=>ed,Zk:()=>ey,fk:()=>eR,lv:()=>em,wv:()=>eb})},65179(e,t,r){function n([e,t],r){return[e*Math.cos(r)-t*Math.sin(r),e*Math.sin(r)+t*Math.cos(r)]}function i(...e){for(let t=0;t<e.length;t++)if("number"!=typeof e[t])throw Error(`assertNumbers arguments[${t}] is not a number. ${typeof e[t]} == typeof ${e[t]}`);return!0}r.d(t,{LQ:()=>w,zb:()=>R});let a=Math.PI;function o(e,t,r){e.lArcFlag=+(0!==e.lArcFlag),e.sweepFlag=+(0!==e.sweepFlag);let{rX:i,rY:o}=e,{x:s,y:l}=e;if(1e-10>Math.abs(i)||1e-10>Math.abs(o)){e.rX=0,e.rY=0,e.cX=(t+s)/2,e.cY=(r+l)/2,e.phi1=0,e.phi2=0;return}i=Math.abs(e.rX),o=Math.abs(e.rY);let c=e.xRot/180*a,[u,h]=n([(t-s)/2,(r-l)/2],-c),p=Math.pow(u,2)/Math.pow(i,2)+Math.pow(h,2)/Math.pow(o,2);1<p&&(i*=Math.sqrt(p),o*=Math.sqrt(p)),e.rX=i,e.rY=o;let d=Math.pow(i,2)*Math.pow(h,2)+Math.pow(o,2)*Math.pow(u,2),f=(e.lArcFlag!==e.sweepFlag?1:-1)*Math.sqrt(Math.max(0,(Math.pow(i,2)*Math.pow(o,2)-d)/d)),m=i*h/o*f,g=-o*u/i*f,A=n([m,g],c);e.cX=A[0]+(t+s)/2,e.cY=A[1]+(r+l)/2,e.phi1=Math.atan2((h-g)/o,(u-m)/i),e.phi2=Math.atan2((-h-g)/o,(-u-m)/i),0===e.sweepFlag&&e.phi2>e.phi1&&(e.phi2-=2*a),1===e.sweepFlag&&e.phi2<e.phi1&&(e.phi2+=2*a),e.phi1*=180/a,e.phi2*=180/a}function s(e,t,r){i(e,t,r);let n=e*e+t*t-r*r;if(0>n)return[];if(0===n)return[[e*r/(e*e+t*t),t*r/(e*e+t*t)]];let a=Math.sqrt(n);return[[(e*r+t*a)/(e*e+t*t),(t*r-e*a)/(e*e+t*t)],[(e*r-t*a)/(e*e+t*t),(t*r+e*a)/(e*e+t*t)]]}let l=Math.PI/180;function c(e,t,r,n){return e+Math.cos(n/180*a)*t+Math.sin(n/180*a)*r}function u(e,t,r,n){let i=t-e,a=r-t,o=3*i+3*(n-r)-6*a,s=(a-i)*6,l=3*i;return 1e-6>Math.abs(o)?1e-6>Math.abs(s)?[]:[-l/s]:function(e,t,r=1e-6){let n=e*e/4-t;if(n<-r)return[];if(n<=r)return[-e/2];let i=Math.sqrt(n);return[-(e/2)-i,-(e/2)+i]}(s/o,l/o,1e-6)}function h(e,t,r,n,i){let a=1-i;return a*a*a*e+3*a*a*i*t+3*a*i*i*r+i*i*i*n}function p(e,t,r){let n=t[0]-e[0],i=t[1]-e[1],a=r[0]-e[0],o=r[1]-e[1];if(!(1e-10>Math.abs(n*o-i*a)))return!1;let s=n*a+i*o,l=a*a+o*o;return 0<=s&&s<=l&&n*n+i*i<=l}function d(e){let t=e[e.length-1]?.type===w.CLOSE_PATH,r=t?e.length-2:e.length-1,n=[{type:w.MOVE_TO,relative:!1,x:e[r].x,y:e[r].y}];for(let t=r;t>0;t--){let r=e[t],i=e[t-1];if(r.relative)throw Error("Relative command are not supported convert first with `toAbs()`");switch(r.type){case w.HORIZ_LINE_TO:n.push({type:w.HORIZ_LINE_TO,relative:!1,x:i.x});break;case w.VERT_LINE_TO:n.push({type:w.VERT_LINE_TO,relative:!1,y:i.y});break;case w.LINE_TO:case w.MOVE_TO:n.push({type:w.LINE_TO,relative:!1,x:i.x,y:i.y});break;case w.CURVE_TO:n.push({type:w.CURVE_TO,relative:!1,x:i.x,y:i.y,x1:r.x2,y1:r.y2,x2:r.x1,y2:r.y1});break;case w.SMOOTH_CURVE_TO:throw Error("Unsupported command: S (smooth cubic bezier)");case w.SMOOTH_QUAD_TO:throw Error("Unsupported command: T (smooth quadratic bezier)");case w.ARC:throw Error("Unsupported command: A (arc)");case w.QUAD_TO:throw Error("Unsupported command: Q (quadratic bezier)")}}return t&&n.push({type:w.CLOSE_PATH}),n}function f(){return A((e,t,r)=>(e.relative&&(void 0!==e.x1&&(e.x1+=t),void 0!==e.y1&&(e.y1+=r),void 0!==e.x2&&(e.x2+=t),void 0!==e.y2&&(e.y2+=r),void 0!==e.x&&(e.x+=t),void 0!==e.y&&(e.y+=r),e.relative=!1),e))}function m(){let e=0/0,t=0/0,r=0/0,n=0/0;return A((i,a,o)=>(i.type&w.SMOOTH_CURVE_TO&&(i.type=w.CURVE_TO,e=isNaN(e)?a:e,t=isNaN(t)?o:t,i.x1=i.relative?a-e:2*a-e,i.y1=i.relative?o-t:2*o-t),i.type&w.CURVE_TO?(e=i.relative?a+i.x2:i.x2,t=i.relative?o+i.y2:i.y2):(e=0/0,t=0/0),i.type&w.SMOOTH_QUAD_TO&&(i.type=w.QUAD_TO,r=isNaN(r)?a:r,n=isNaN(n)?o:n,i.x1=i.relative?a-r:2*a-r,i.y1=i.relative?o-n:2*o-n),i.type&w.QUAD_TO?(r=i.relative?a+i.x1:i.x1,n=i.relative?o+i.y1:i.y1):(r=0/0,n=0/0),i))}function g(){let e=0/0,t=0/0;return A((r,n,i)=>{if(r.type&w.SMOOTH_QUAD_TO&&(r.type=w.QUAD_TO,e=isNaN(e)?n:e,t=isNaN(t)?i:t,r.x1=r.relative?n-e:2*n-e,r.y1=r.relative?i-t:2*i-t),r.type&w.QUAD_TO){e=r.relative?n+r.x1:r.x1,t=r.relative?i+r.y1:r.y1;let a=r.x1,o=r.y1;r.type=w.CURVE_TO,r.x1=((r.relative?0:n)+2*a)/3,r.y1=((r.relative?0:i)+2*o)/3,r.x2=(r.x+2*a)/3,r.y2=(r.y+2*o)/3}else e=0/0,t=0/0;return r})}function A(e){let t=0,r=0,n=0/0,i=0/0;return function(a){if(isNaN(n)&&!(a.type&w.MOVE_TO))throw Error("path must start with moveto");let o=e(a,t,r,n,i);return a.type&w.CLOSE_PATH&&(t=n,r=i),"x"in a&&void 0!==a.x&&(t=a.relative?t+a.x:a.x),"y"in a&&void 0!==a.y&&(r=a.relative?r+a.y:a.y),a.type&w.MOVE_TO&&(n=t,i=r),o}}function y(e,t,r,n,a,o){return i(e,t,r,n,a,o),A((i,s,l,c)=>{let u=i.x1,h=i.x2,p=i.relative&&!isNaN(c),d=void 0!==i.x?i.x:p?0:s,f=void 0!==i.y?i.y:p?0:l;i.type&w.HORIZ_LINE_TO&&0!==t&&(i.type=w.LINE_TO,i.y=i.relative?0:l),i.type&w.VERT_LINE_TO&&0!==r&&(i.type=w.LINE_TO,i.x=i.relative?0:s),void 0!==i.x&&(i.x=i.x*e+f*r+(p?0:a)),void 0!==i.y&&(i.y=d*t+i.y*n+(p?0:o)),void 0!==i.x1&&(i.x1=i.x1*e+i.y1*r+(p?0:a)),void 0!==i.y1&&(i.y1=u*t+i.y1*n+(p?0:o)),void 0!==i.x2&&(i.x2=i.x2*e+i.y2*r+(p?0:a)),void 0!==i.y2&&(i.y2=h*t+i.y2*n+(p?0:o));let m=e*n-t*r;if(void 0!==i.xRot&&(1!==e||0!==t||0!==r||1!==n))if(0===m)delete i.rX,delete i.rY,delete i.xRot,delete i.lArcFlag,delete i.sweepFlag,i.type=w.LINE_TO;else{var g,A;let a=i.xRot*Math.PI/180,o=Math.sin(a),s=Math.cos(a),l=1/((g=i.rX)*g),c=1/((A=i.rY)*A),u=s*s*l+o*o*c,h=2*o*s*(l-c),p=o*o*l+s*s*c,d=u*n*n-h*t*n+p*t*t,f=h*(e*n+t*r)-2*(u*r*n+p*e*t),y=u*r*r-h*e*r+p*e*e,v=(Math.atan2(f,d-y)+Math.PI)%Math.PI/2,R=Math.sin(v),b=Math.cos(v);i.rX=Math.abs(m)/Math.sqrt(b*b*d+f*R*b+R*R*y),i.rY=Math.abs(m)/Math.sqrt(R*R*d-f*R*b+b*b*y),i.xRot=180*v/Math.PI}return void 0!==i.sweepFlag&&0>m&&(i.sweepFlag=+!i.sweepFlag),i})}function v(){return e=>({...e})}let R={ROUND:function(e=1e13){function t(t){return Math.round(t*e)/e}return i(e),function(e){return"x1"in e&&void 0!==e.x1&&(e.x1=t(e.x1)),"y1"in e&&void 0!==e.y1&&(e.y1=t(e.y1)),"x2"in e&&void 0!==e.x2&&(e.x2=t(e.x2)),"y2"in e&&void 0!==e.y2&&(e.y2=t(e.y2)),"x"in e&&void 0!==e.x&&(e.x=t(e.x)),"y"in e&&void 0!==e.y&&(e.y=t(e.y)),"rX"in e&&void 0!==e.rX&&(e.rX=t(e.rX)),"rY"in e&&void 0!==e.rY&&(e.rY=t(e.rY)),e}},TO_ABS:f,TO_REL:function(){return A((e,t,r)=>(e.relative||(void 0!==e.x1&&(e.x1-=t),void 0!==e.y1&&(e.y1-=r),void 0!==e.x2&&(e.x2-=t),void 0!==e.y2&&(e.y2-=r),void 0!==e.x&&(e.x-=t),void 0!==e.y&&(e.y-=r),e.relative=!0),e))},NORMALIZE_HVZ:function(e=!0,t=!0,r=!0,n=!0){return A((i,a,o,s,l)=>{if(isNaN(s)&&!(i.type&w.MOVE_TO))throw Error("path must start with moveto");if(t&&i.type&w.HORIZ_LINE_TO&&(i.type=w.LINE_TO,i.y=i.relative?0:o),r&&i.type&w.VERT_LINE_TO&&(i.type=w.LINE_TO,i.x=i.relative?0:a),e&&i.type&w.CLOSE_PATH&&(i.type=w.LINE_TO,i.x=i.relative?s-a:s,i.y=i.relative?l-o:l),i.type&w.ARC&&(0===i.rX||0===i.rY)&&(i.type=w.LINE_TO,delete i.rX,delete i.rY,delete i.xRot,delete i.lArcFlag,delete i.sweepFlag),n&&i.type&w.QUAD_TO&&p([a,o],i.relative?[a+i.x1,o+i.y1]:[i.x1,i.y1],i.relative?[a+i.x,o+i.y]:[i.x,i.y])&&(i.type=w.LINE_TO,delete i.x1,delete i.y1),n&&i.type&w.CURVE_TO){let e=[a,o],t=i.relative?[a+i.x1,o+i.y1]:[i.x1,i.y1],r=i.relative?[a+i.x2,o+i.y2]:[i.x2,i.y2],n=i.relative?[a+i.x,o+i.y]:[i.x,i.y];p(e,t,n)&&p(e,r,n)&&(i.type=w.LINE_TO,delete i.x1,delete i.y1,delete i.x2,delete i.y2)}return i})},NORMALIZE_ST:m,QT_TO_C:g,INFO:A,SANITIZE:function(e=0){i(e);let t=0/0,r=0/0,n=0/0,a=0/0;return A((i,o,s,l,c)=>{let u=Math.abs,h=!1,p=0,d=0;if(i.type&w.SMOOTH_CURVE_TO&&(p=isNaN(t)?0:o-t,d=isNaN(r)?0:s-r),i.type&(w.CURVE_TO|w.SMOOTH_CURVE_TO)?(t=i.relative?o+i.x2:i.x2,r=i.relative?s+i.y2:i.y2):(t=0/0,r=0/0),i.type&w.SMOOTH_QUAD_TO?(n=isNaN(n)?o:2*o-n,a=isNaN(a)?s:2*s-a):i.type&w.QUAD_TO?(n=i.relative?o+i.x1:i.x1,a=i.relative?s+i.y1:i.y2):(n=0/0,a=0/0),i.type&w.LINE_COMMANDS||i.type&w.ARC&&(0===i.rX||0===i.rY||!i.lArcFlag)||i.type&w.CURVE_TO||i.type&w.SMOOTH_CURVE_TO||i.type&w.QUAD_TO||i.type&w.SMOOTH_QUAD_TO){let t=void 0===i.x?0:i.relative?i.x:i.x-o,r=void 0===i.y?0:i.relative?i.y:i.y-s;p=isNaN(n)?void 0===i.x1?p:i.relative?i.x:i.x1-o:n-o,d=isNaN(a)?void 0===i.y1?d:i.relative?i.y:i.y1-s:a-s;let l=void 0===i.x2?0:i.relative?i.x:i.x2-o,c=void 0===i.y2?0:i.relative?i.y:i.y2-s;u(t)<=e&&u(r)<=e&&u(p)<=e&&u(d)<=e&&u(l)<=e&&u(c)<=e&&(h=!0)}return i.type&w.CLOSE_PATH&&u(o-l)<=e&&u(s-c)<=e&&(h=!0),h?[]:i})},MATRIX:y,ROTATE:function(e,t=0,r=0){i(e,t,r);let n=Math.sin(e),a=Math.cos(e);return y(a,n,-n,a,t-t*a+r*n,r-t*n-r*a)},TRANSLATE:function(e,t=0){return i(e,t),y(1,0,0,1,e,t)},SCALE:function(e,t=e){return i(e,t),y(e,0,0,t,0,0)},SKEW_X:function(e){return i(e),y(1,0,Math.tan(e),1,0,0)},SKEW_Y:function(e){return i(e),y(1,Math.tan(e),0,1,0,0)},X_AXIS_SYMMETRY:function(e=0){return i(e),y(-1,0,0,1,e,0)},Y_AXIS_SYMMETRY:function(e=0){return i(e),y(1,0,0,-1,0,e)},A_TO_C:function(){return A((e,t,r)=>w.ARC===e.type?function(e,t,r){e.cX||o(e,t,r);let i=e.xRot/180*a;if(1e-10>Math.abs(e.rX)||1e-10>Math.abs(e.rY))return[{relative:e.relative,type:w.CURVE_TO,x1:t+(e.x-t)/3,y1:r+(e.y-r)/3,x2:t+2*(e.x-t)/3,y2:r+2*(e.y-r)/3,x:e.x,y:e.y}];let s=Math.min(e.phi1,e.phi2),c=Math.ceil((Math.max(e.phi1,e.phi2)-s)/90),u=Array(c),h=t,p=r,d=(t,r)=>{let[a,o]=n([t*e.rX,r*e.rY],i);return[e.cX+a,e.cY+o]};for(let t=0;t<c;t++){var f,m,g,A,y,v;let r=(f=e.phi1,m=e.phi2,(1-(g=t/c))*f+g*m),n=(A=e.phi1,y=e.phi2,(1-(v=(t+1)/c))*A+v*y),i=4/3*Math.tan((n-r)*l/4),a=Math.cos(r*l)-i*Math.sin(r*l),o=Math.sin(r*l)+i*Math.cos(r*l),s=Math.cos(n*l),R=Math.sin(n*l),b=s+i*R,x=R-i*s,M=d(a,o),S=d(b,x),O=d(s,R),L={relative:e.relative,type:w.CURVE_TO,x:O[0],y:O[1],x1:M[0],y1:M[1],x2:S[0],y2:S[1]};e.relative&&(L.x1-=h,L.y1-=p,L.x2-=h,L.y2-=p,L.x-=h,L.y-=p),h=O[0],p=O[1],u[t]=L}return u}(e,e.relative?0:t,e.relative?0:r):e)},ANNOTATE_ARCS:function(){return A((e,t,r)=>(e.relative&&(t=0,r=0),w.ARC===e.type&&o(e,t,r),e))},CLONE:v,CALCULATE_BOUNDS:function(){let e=v(),t=f(),r=g(),n=m(),i=A((a,l,p)=>{let d=n(r(t(e(a))));function f(e){e>i.maxX&&(i.maxX=e),e<i.minX&&(i.minX=e)}function m(e){e>i.maxY&&(i.maxY=e),e<i.minY&&(i.minY=e)}if(d.type&w.DRAWING_COMMANDS&&(f(l),m(p)),d.type&w.HORIZ_LINE_TO&&f(d.x),d.type&w.VERT_LINE_TO&&m(d.y),d.type&w.LINE_TO&&(f(d.x),m(d.y)),d.type&w.CURVE_TO){for(let e of(f(d.x),m(d.y),u(l,d.x1,d.x2,d.x)))0<e&&1>e&&f(h(l,d.x1,d.x2,d.x,e));for(let e of u(p,d.y1,d.y2,d.y))0<e&&1>e&&m(h(p,d.y1,d.y2,d.y,e))}if(d.type&w.ARC){f(d.x),m(d.y),o(d,l,p);let e=d.xRot/180*Math.PI,t=Math.cos(e)*d.rX,r=Math.sin(e)*d.rX,n=-Math.sin(e)*d.rY,i=Math.cos(e)*d.rY,[a,u]=d.phi1<d.phi2?[d.phi1,d.phi2]:-180>d.phi2?[d.phi2+360,d.phi1+360]:[d.phi2,d.phi1],h=([e,t])=>{let r=180*Math.atan2(t,e)/Math.PI;return r<a?r+360:r};for(let e of s(n,-t,0).map(h))e>a&&e<u&&f(c(d.cX,t,n,e));for(let e of s(i,-r,0).map(h))e>a&&e<u&&m(c(d.cY,r,i,e))}return a});return i.minX=1/0,i.maxX=-1/0,i.minY=1/0,i.maxY=-1/0,i},REVERSE_PATH:function(e,t=!0){if(e.length<2)return e;let r=R.INFO((e,t,r)=>({...e,x:e.x??t,y:e.y??r,relative:e.relative??!1})),n=[],i=[];for(let a of e){let e=r(a);e.type===w.MOVE_TO&&i.length>0&&(t?n.push(...d(i)):n.unshift(...d(i)),i=[]),i.push(e)}return i.length>0&&(t?n.push(...d(i)):n.unshift(...d(i))),n},REMOVE_COLLINEAR:function(e){if(e.length<=2)return e;let t=[],r=e.map(R.INFO((e,t,r)=>{let n="relative"in e&&e.relative;return["x"in e?e.x+(n?t:0):t,"y"in e?e.y+(n?r:0):r]})),n=r[0];t.push(e[0]);for(let i=1;i<e.length;i++){let a=e[i],o=e[i+1];if(i<e.length-1&&o&&a.type&w.LINE_COMMANDS&&o.type&w.LINE_COMMANDS){let e=r[i+1];if(p(n,r[i],e)){"relative"in o&&o.relative&&("x"in o&&(o.x=e[0]-n[0]),"y"in o&&(o.y=e[1]-n[1]));continue}}t.push(a),n=r[i]}return t}};class b{round(e){return this.transform(R.ROUND(e))}toAbs(){return this.transform(R.TO_ABS())}toRel(){return this.transform(R.TO_REL())}normalizeHVZ(e,t,r){return this.transform(R.NORMALIZE_HVZ(e,t,r))}normalizeST(){return this.transform(R.NORMALIZE_ST())}qtToC(){return this.transform(R.QT_TO_C())}aToC(){return this.transform(R.A_TO_C())}sanitize(e){return this.transform(R.SANITIZE(e))}translate(e,t){return this.transform(R.TRANSLATE(e,t))}scale(e,t){return this.transform(R.SCALE(e,t))}rotate(e,t,r){return this.transform(R.ROTATE(e,t,r))}matrix(e,t,r,n,i,a){return this.transform(R.MATRIX(e,t,r,n,i,a))}skewX(e){return this.transform(R.SKEW_X(e))}skewY(e){return this.transform(R.SKEW_Y(e))}xSymmetry(e){return this.transform(R.X_AXIS_SYMMETRY(e))}ySymmetry(e){return this.transform(R.Y_AXIS_SYMMETRY(e))}annotateArcs(){return this.transform(R.ANNOTATE_ARCS())}}let x=e=>" "===e||" "===e||"\r"===e||"\n"===e,M=e=>48<=e.charCodeAt(0)&&57>=e.charCodeAt(0);class S extends b{curNumber="";curCommandType=-1;curCommandRelative=!1;canParseCommandOrComma=!0;curNumberHasExp=!1;curNumberHasExpDigits=!1;curNumberHasDecimal=!1;curArgs=[];finish(e=[]){if(this.parse(" ",e),0!==this.curArgs.length||!this.canParseCommandOrComma)throw SyntaxError("Unterminated command at the path end.");return e}parse(e,t=[]){let r=e=>{t.push(e),this.curArgs.length=0,this.canParseCommandOrComma=!0};for(let n=0;n<e.length;n++){let i=e[n],a=this.curCommandType===w.ARC&&(3===this.curArgs.length||4===this.curArgs.length)&&1===this.curNumber.length&&("0"===this.curNumber||"1"===this.curNumber),o=M(i)&&("0"===this.curNumber&&"0"===i||a);if(M(i)&&!o){this.curNumber+=i,this.curNumberHasExpDigits=this.curNumberHasExp;continue}if("e"===i||"E"===i){this.curNumber+=i,this.curNumberHasExp=!0;continue}if(("-"===i||"+"===i)&&this.curNumberHasExp&&!this.curNumberHasExpDigits){this.curNumber+=i;continue}if("."===i&&!this.curNumberHasExp&&!this.curNumberHasDecimal&&!a){this.curNumber+=i,this.curNumberHasDecimal=!0;continue}if(this.curNumber&&-1!==this.curCommandType){let e=Number(this.curNumber);if(isNaN(e))throw SyntaxError(`Invalid number ending at ${n}`);if(this.curCommandType===w.ARC){if(0===this.curArgs.length||1===this.curArgs.length){if(0>e)throw SyntaxError(`Expected positive number, got "${e}" at index "${n}"`)}else if((3===this.curArgs.length||4===this.curArgs.length)&&"0"!==this.curNumber&&"1"!==this.curNumber)throw SyntaxError(`Expected a flag, got "${this.curNumber}" at index "${n}"`)}this.curArgs.push(e),this.curArgs.length===O[this.curCommandType]&&(w.HORIZ_LINE_TO===this.curCommandType?r({type:w.HORIZ_LINE_TO,relative:this.curCommandRelative,x:e}):w.VERT_LINE_TO===this.curCommandType?r({type:w.VERT_LINE_TO,relative:this.curCommandRelative,y:e}):this.curCommandType===w.MOVE_TO||this.curCommandType===w.LINE_TO||this.curCommandType===w.SMOOTH_QUAD_TO?(r({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),w.MOVE_TO===this.curCommandType&&(this.curCommandType=w.LINE_TO)):this.curCommandType===w.CURVE_TO?r({type:w.CURVE_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x2:this.curArgs[2],y2:this.curArgs[3],x:this.curArgs[4],y:this.curArgs[5]}):this.curCommandType===w.SMOOTH_CURVE_TO?r({type:w.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===w.QUAD_TO?r({type:w.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===w.ARC&&r({type:w.ARC,relative:this.curCommandRelative,rX:this.curArgs[0],rY:this.curArgs[1],xRot:this.curArgs[2],lArcFlag:this.curArgs[3],sweepFlag:this.curArgs[4],x:this.curArgs[5],y:this.curArgs[6]})),this.curNumber="",this.curNumberHasExpDigits=!1,this.curNumberHasExp=!1,this.curNumberHasDecimal=!1,this.canParseCommandOrComma=!0}if(!x(i)){if(","===i&&this.canParseCommandOrComma){this.canParseCommandOrComma=!1;continue}if("+"===i||"-"===i||"."===i){this.curNumber=i,this.curNumberHasDecimal="."===i;continue}if(o){this.curNumber=i,this.curNumberHasDecimal=!1;continue}if(0!==this.curArgs.length)throw SyntaxError(`Unterminated command at index ${n}.`);if(!this.canParseCommandOrComma)throw SyntaxError(`Unexpected character "${i}" at index ${n}. Command cannot follow comma`);if(this.canParseCommandOrComma=!1,"z"===i||"Z"===i){t.push({type:w.CLOSE_PATH}),this.canParseCommandOrComma=!0,this.curCommandType=-1;continue}if("h"===i||"H"===i)this.curCommandType=w.HORIZ_LINE_TO,this.curCommandRelative="h"===i;else if("v"===i||"V"===i)this.curCommandType=w.VERT_LINE_TO,this.curCommandRelative="v"===i;else if("m"===i||"M"===i)this.curCommandType=w.MOVE_TO,this.curCommandRelative="m"===i;else if("l"===i||"L"===i)this.curCommandType=w.LINE_TO,this.curCommandRelative="l"===i;else if("c"===i||"C"===i)this.curCommandType=w.CURVE_TO,this.curCommandRelative="c"===i;else if("s"===i||"S"===i)this.curCommandType=w.SMOOTH_CURVE_TO,this.curCommandRelative="s"===i;else if("q"===i||"Q"===i)this.curCommandType=w.QUAD_TO,this.curCommandRelative="q"===i;else if("t"===i||"T"===i)this.curCommandType=w.SMOOTH_QUAD_TO,this.curCommandRelative="t"===i;else if("a"===i||"A"===i)this.curCommandType=w.ARC,this.curCommandRelative="a"===i;else throw SyntaxError(`Unexpected character "${i}" at index ${n}.`)}}return t}transform(e){return Object.create(this,{parse:{value(t,r=[]){for(let n of Object.getPrototypeOf(this).parse.call(this,t)){let t=e(n);Array.isArray(t)?r.push(...t):r.push(t)}return r}}})}}class w extends b{commands;constructor(e){super(),"string"==typeof e?this.commands=w.parse(e):this.commands=e}encode(){return w.encode(this.commands)}getBounds(){let e=R.CALCULATE_BOUNDS();return this.transform(e),e}transform(e){let t=[];for(let r of this.commands){let n=e(r);Array.isArray(n)?t.push(...n):t.push(n)}return this.commands=t,this}reverse(e=!0){return this.commands=R.REVERSE_PATH(this.commands,e),this}removeCollinear(){return this.commands=R.REMOVE_COLLINEAR(this.commands),this}static encode(e){var t=e;let r="";Array.isArray(t)||(t=[t]);for(let e=0;e<t.length;e++){let n=t[e];if(n.type===w.CLOSE_PATH)r+="z";else if(n.type===w.HORIZ_LINE_TO)r+=(n.relative?"h":"H")+n.x;else if(n.type===w.VERT_LINE_TO)r+=(n.relative?"v":"V")+n.y;else if(n.type===w.MOVE_TO)r+=(n.relative?"m":"M")+n.x+" "+n.y;else if(n.type===w.LINE_TO)r+=(n.relative?"l":"L")+n.x+" "+n.y;else if(n.type===w.CURVE_TO)r+=(n.relative?"c":"C")+n.x1+" "+n.y1+" "+n.x2+" "+n.y2+" "+n.x+" "+n.y;else if(n.type===w.SMOOTH_CURVE_TO)r+=(n.relative?"s":"S")+n.x2+" "+n.y2+" "+n.x+" "+n.y;else if(n.type===w.QUAD_TO)r+=(n.relative?"q":"Q")+n.x1+" "+n.y1+" "+n.x+" "+n.y;else if(n.type===w.SMOOTH_QUAD_TO)r+=(n.relative?"t":"T")+n.x+" "+n.y;else if(n.type===w.ARC)r+=(n.relative?"a":"A")+n.rX+" "+n.rY+" "+n.xRot+" "+ +n.lArcFlag+" "+ +n.sweepFlag+" "+n.x+" "+n.y;else throw Error(`Unexpected command type "${n?.type}" at index ${e}.`)}return r}static parse(e){let t=new S,r=[];return t.parse(e,r),t.finish(r),r}static CLOSE_PATH=1;static MOVE_TO=2;static HORIZ_LINE_TO=4;static VERT_LINE_TO=8;static LINE_TO=16;static CURVE_TO=32;static SMOOTH_CURVE_TO=64;static QUAD_TO=128;static SMOOTH_QUAD_TO=256;static ARC=512;static LINE_COMMANDS=w.LINE_TO|w.HORIZ_LINE_TO|w.VERT_LINE_TO;static DRAWING_COMMANDS=w.HORIZ_LINE_TO|w.VERT_LINE_TO|w.LINE_TO|w.CURVE_TO|w.SMOOTH_CURVE_TO|w.QUAD_TO|w.SMOOTH_QUAD_TO|w.ARC}let O={[w.MOVE_TO]:2,[w.LINE_TO]:2,[w.HORIZ_LINE_TO]:1,[w.VERT_LINE_TO]:1,[w.CLOSE_PATH]:0,[w.QUAD_TO]:4,[w.SMOOTH_QUAD_TO]:2,[w.CURVE_TO]:6,[w.SMOOTH_CURVE_TO]:4,[w.ARC]:7}},84140(e,t,r){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i,a,o,s=/^\s+/,l=/\s+$/;function c(e,t){if(t=t||{},(e=e||"")instanceof c)return e;if(!(this instanceof c))return new c(e,t);var r,i,a,o,u,h,p,d,f,m,g,A,y,v,R,b,x,M,S,w,L=(i={r:0,g:0,b:0},a=1,o=null,u=null,h=null,p=!1,d=!1,"string"==typeof(r=e)&&(r=function(e){e=e.replace(s,"").replace(l,"").toLowerCase();var t,r=!1;if(O[e])e=O[e],r=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};return(t=F.rgb.exec(e))?{r:t[1],g:t[2],b:t[3]}:(t=F.rgba.exec(e))?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=F.hsl.exec(e))?{h:t[1],s:t[2],l:t[3]}:(t=F.hsla.exec(e))?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=F.hsv.exec(e))?{h:t[1],s:t[2],v:t[3]}:(t=F.hsva.exec(e))?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=F.hex8.exec(e))?{r:P(t[1]),g:P(t[2]),b:P(t[3]),a:P(t[4])/255,format:r?"name":"hex8"}:(t=F.hex6.exec(e))?{r:P(t[1]),g:P(t[2]),b:P(t[3]),format:r?"name":"hex"}:(t=F.hex4.exec(e))?{r:P(t[1]+""+t[1]),g:P(t[2]+""+t[2]),b:P(t[3]+""+t[3]),a:P(t[4]+""+t[4])/255,format:r?"name":"hex8"}:!!(t=F.hex3.exec(e))&&{r:P(t[1]+""+t[1]),g:P(t[2]+""+t[2]),b:P(t[3]+""+t[3]),format:r?"name":"hex"}}(r)),"object"==n(r)&&(X(r.r)&&X(r.g)&&X(r.b)?(f=r.r,m=r.g,g=r.b,i={r:255*_(f,255),g:255*_(m,255),b:255*_(g,255)},p=!0,d="%"===String(r.r).substr(-1)?"prgb":"rgb"):X(r.h)&&X(r.s)&&X(r.v)?(o=I(r.s),u=I(r.v),A=r.h,y=o,v=u,A=6*_(A,360),y=_(y,100),v=_(v,100),R=Math.floor(A),b=A-R,x=v*(1-y),M=v*(1-b*y),S=v*(1-(1-b)*y),i={r:255*[v,M,x,x,S,v][w=R%6],g:255*[S,v,v,M,x,x][w],b:255*[x,x,S,v,v,M][w]},p=!0,d="hsv"):X(r.h)&&X(r.s)&&X(r.l)&&(o=I(r.s),h=I(r.l),i=function(e,t,r){var n,i,a;function o(e,t,r){return(r<0&&(r+=1),r>1&&(r-=1),r<1/6)?e+(t-e)*6*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}if(e=_(e,360),t=_(t,100),r=_(r,100),0===t)n=i=a=r;else{var s=r<.5?r*(1+t):r+t-r*t,l=2*r-s;n=o(l,s,e+1/3),i=o(l,s,e),a=o(l,s,e-1/3)}return{r:255*n,g:255*i,b:255*a}}(r.h,o,h),p=!0,d="hsl"),r.hasOwnProperty("a")&&(a=r.a)),a=N(a),{ok:p,format:r.format||d,r:Math.min(255,Math.max(i.r,0)),g:Math.min(255,Math.max(i.g,0)),b:Math.min(255,Math.max(i.b,0)),a:a});this._originalInput=e,this._r=L.r,this._g=L.g,this._b=L.b,this._a=L.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||L.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=L.ok}function u(e,t,r){e=_(e,255);var n,i,a=Math.max(e,t=_(t,255),r=_(r,255)),o=Math.min(e,t,r),s=(a+o)/2;if(a==o)n=i=0;else{var l=a-o;switch(i=s>.5?l/(2-a-o):l/(a+o),a){case e:n=(t-r)/l+6*(t<r);break;case t:n=(r-e)/l+2;break;case r:n=(e-t)/l+4}n/=6}return{h:n,s:i,l:s}}function h(e,t,r){e=_(e,255);var n,i=Math.max(e,t=_(t,255),r=_(r,255)),a=Math.min(e,t,r),o=i-a;if(i==a)n=0;else{switch(i){case e:n=(t-r)/o+6*(t<r);break;case t:n=(r-e)/o+2;break;case r:n=(e-t)/o+4}n/=6}return{h:n,s:0===i?0:o/i,v:i}}function p(e,t,r,n){var i=[C(Math.round(e).toString(16)),C(Math.round(t).toString(16)),C(Math.round(r).toString(16))];return n&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function d(e,t,r,n){return[C(k(n)),C(Math.round(e).toString(16)),C(Math.round(t).toString(16)),C(Math.round(r).toString(16))].join("")}function f(e,t){t=0===t?0:t||10;var r=c(e).toHsl();return r.s-=t/100,r.s=T(r.s),c(r)}function m(e,t){t=0===t?0:t||10;var r=c(e).toHsl();return r.s+=t/100,r.s=T(r.s),c(r)}function g(e){return c(e).desaturate(100)}function A(e,t){t=0===t?0:t||10;var r=c(e).toHsl();return r.l+=t/100,r.l=T(r.l),c(r)}function y(e,t){t=0===t?0:t||10;var r=c(e).toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(-(t/100*255)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(-(t/100*255)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(-(t/100*255)))),c(r)}function v(e,t){t=0===t?0:t||10;var r=c(e).toHsl();return r.l-=t/100,r.l=T(r.l),c(r)}function R(e,t){var r=c(e).toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,c(r)}function b(e){var t=c(e).toHsl();return t.h=(t.h+180)%360,c(t)}function x(e,t){if(isNaN(t)||t<=0)throw Error("Argument to polyad must be a positive number");for(var r=c(e).toHsl(),n=[c(e)],i=360/t,a=1;a<t;a++)n.push(c({h:(r.h+a*i)%360,s:r.s,l:r.l}));return n}function M(e){var t=c(e).toHsl(),r=t.h;return[c(e),c({h:(r+72)%360,s:t.s,l:t.l}),c({h:(r+216)%360,s:t.s,l:t.l})]}function S(e,t,r){t=t||6,r=r||30;var n=c(e).toHsl(),i=360/r,a=[c(e)];for(n.h=(n.h-(i*t>>1)+720)%360;--t;)n.h=(n.h+i)%360,a.push(c(n));return a}function w(e,t){t=t||6;for(var r=c(e).toHsv(),n=r.h,i=r.s,a=r.v,o=[],s=1/t;t--;)o.push(c({h:n,s:i,v:a})),a=(a+s)%1;return o}c.prototype={isDark:function(){return 128>this.getBrightness()},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,r,n=this.toRgb();return e=n.r/255,t=n.g/255,.2126*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.0722*((r=n.b/255)<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},setAlpha:function(e){return this._a=N(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=h(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=h(this._r,this._g,this._b),t=Math.round(360*e.h),r=Math.round(100*e.s),n=Math.round(100*e.v);return 1==this._a?"hsv("+t+", "+r+"%, "+n+"%)":"hsva("+t+", "+r+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var e=u(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=u(this._r,this._g,this._b),t=Math.round(360*e.h),r=Math.round(100*e.s),n=Math.round(100*e.l);return 1==this._a?"hsl("+t+", "+r+"%, "+n+"%)":"hsla("+t+", "+r+"%, "+n+"%, "+this._roundA+")"},toHex:function(e){return p(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){var t,r,n,i,a,o;return t=this._r,r=this._g,n=this._b,i=this._a,a=e,o=[C(Math.round(t).toString(16)),C(Math.round(r).toString(16)),C(Math.round(n).toString(16)),C(k(i))],a&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*_(this._r,255))+"%",g:Math.round(100*_(this._g,255))+"%",b:Math.round(100*_(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*_(this._r,255))+"%, "+Math.round(100*_(this._g,255))+"%, "+Math.round(100*_(this._b,255))+"%)":"rgba("+Math.round(100*_(this._r,255))+"%, "+Math.round(100*_(this._g,255))+"%, "+Math.round(100*_(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(L[p(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+d(this._r,this._g,this._b,this._a),r=t,n=this._gradientType?"GradientType = 1, ":"";if(e){var i=c(e);r="#"+d(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+t+",endColorstr="+r+")"},toString:function(e){var t=!!e;e=e||this._format;var r=!1,n=this._a<1&&this._a>=0;return!t&&n&&("hex"===e||"hex6"===e||"hex3"===e||"hex4"===e||"hex8"===e||"name"===e)?"name"===e&&0===this._a?this.toName():this.toRgbString():("rgb"===e&&(r=this.toRgbString()),"prgb"===e&&(r=this.toPercentageRgbString()),("hex"===e||"hex6"===e)&&(r=this.toHexString()),"hex3"===e&&(r=this.toHexString(!0)),"hex4"===e&&(r=this.toHex8String(!0)),"hex8"===e&&(r=this.toHex8String()),"name"===e&&(r=this.toName()),"hsl"===e&&(r=this.toHslString()),"hsv"===e&&(r=this.toHsvString()),r||this.toHexString())},clone:function(){return c(this.toString())},_applyModification:function(e,t){var r=e.apply(null,[this].concat([].slice.call(t)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(A,arguments)},brighten:function(){return this._applyModification(y,arguments)},darken:function(){return this._applyModification(v,arguments)},desaturate:function(){return this._applyModification(f,arguments)},saturate:function(){return this._applyModification(m,arguments)},greyscale:function(){return this._applyModification(g,arguments)},spin:function(){return this._applyModification(R,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(S,arguments)},complement:function(){return this._applyCombination(b,arguments)},monochromatic:function(){return this._applyCombination(w,arguments)},splitcomplement:function(){return this._applyCombination(M,arguments)},triad:function(){return this._applyCombination(x,[3])},tetrad:function(){return this._applyCombination(x,[4])}},c.fromRatio=function(e,t){if("object"==n(e)){var r={};for(var i in e)e.hasOwnProperty(i)&&("a"===i?r[i]=e[i]:r[i]=I(e[i]));e=r}return c(e,t)},c.equals=function(e,t){return!!e&&!!t&&c(e).toRgbString()==c(t).toRgbString()},c.random=function(){return c.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},c.mix=function(e,t,r){r=0===r?0:r||50;var n=c(e).toRgb(),i=c(t).toRgb(),a=r/100;return c({r:(i.r-n.r)*a+n.r,g:(i.g-n.g)*a+n.g,b:(i.b-n.b)*a+n.b,a:(i.a-n.a)*a+n.a})},c.readability=function(e,t){var r=c(e),n=c(t);return(Math.max(r.getLuminance(),n.getLuminance())+.05)/(Math.min(r.getLuminance(),n.getLuminance())+.05)},c.isReadable=function(e,t,r){var n,i,a,o,s,l=c.readability(e,t);switch(s=!1,(i=((n=(n=r)||{level:"AA",size:"small"}).level||"AA").toUpperCase(),a=(n.size||"small").toLowerCase(),"AA"!==i&&"AAA"!==i&&(i="AA"),"small"!==a&&"large"!==a&&(a="small"),o={level:i,size:a}).level+o.size){case"AAsmall":case"AAAlarge":s=l>=4.5;break;case"AAlarge":s=l>=3;break;case"AAAsmall":s=l>=7}return s},c.mostReadable=function(e,t,r){var n,i,a,o,s=null,l=0;i=(r=r||{}).includeFallbackColors,a=r.level,o=r.size;for(var u=0;u<t.length;u++)(n=c.readability(e,t[u]))>l&&(l=n,s=c(t[u]));return c.isReadable(e,s,{level:a,size:o})||!i?s:(r.includeFallbackColors=!1,c.mostReadable(e,["#fff","#000"],r))};var O=c.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},L=c.hexNames=function(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);return t}(O);function N(e){return(isNaN(e=parseFloat(e))||e<0||e>1)&&(e=1),e}function _(e,t){"string"==typeof(r=e)&&-1!=r.indexOf(".")&&1===parseFloat(r)&&(e="100%");var r,n,i="string"==typeof(n=e)&&-1!=n.indexOf("%");return(e=Math.min(t,Math.max(0,parseFloat(e))),i&&(e=parseInt(e*t,10)/100),1e-6>Math.abs(e-t))?1:e%t/parseFloat(t)}function T(e){return Math.min(1,Math.max(0,e))}function P(e){return parseInt(e,16)}function C(e){return 1==e.length?"0"+e:""+e}function I(e){return e<=1&&(e=100*e+"%"),e}function k(e){return Math.round(255*parseFloat(e)).toString(16)}var F=(a="[\\s|\\(]+("+(i="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+i+")[,|\\s]+("+i+")\\s*\\)?",o="[\\s|\\(]+("+i+")[,|\\s]+("+i+")[,|\\s]+("+i+")[,|\\s]+("+i+")\\s*\\)?",{CSS_UNIT:new RegExp(i),rgb:RegExp("rgb"+a),rgba:RegExp("rgba"+o),hsl:RegExp("hsl"+a),hsla:RegExp("hsla"+o),hsv:RegExp("hsv"+a),hsva:RegExp("hsva"+o),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function X(e){return!!F.CSS_UNIT.exec(e)}r.d(t,{A:()=>c})},57799(){((e="lang")=>()=>{var t;let r;return t=document?.cookie,(r=t?.split(";").map(e=>e.trim()).find(t=>t.startsWith(e))?.split("=")[1])?[r]:[]})();var e=e=>!!e;((t="lang")=>()=>[window?.localStorage?.getItem(t)].filter(e))(),((e="lang")=>()=>{let t=location?.search?.slice(1).split("&").find(t=>t.startsWith(e))?.split("=")[1];return t?[t]:[]})();var t=e=>!!e;((e="lang")=>()=>[window?.sessionStorage?.getItem(e)].filter(t))()},19788(e,t,r){var n=(e,t={})=>{let r=new Intl.NumberFormat(e,t);return e=>r.format(e)};r.d(t,{A:()=>n})},30139(e,t,r){var n=r(51649),i=()=>new Proxy(Object.assign(()=>"",{}),{get:(e,t)=>"length"===t?0:i()}),a=/^\{.*\}$/,o=/(\{(?:[^{}]+|\{(?:[^{}]+)*\})*\})/g,s=e=>e.substring(1,e.length-1),l=/\?\?/g;function c(e,t,r={}){let n,i;return h(t,(n={},i=new Intl.PluralRules(e),(e,...t)=>{var c;let u,h,p;return c=n[e]||(n[e]=((e,t=!0,r="",n="")=>e.split(o).map(e=>{if(!e.match(o))return e;let t=s(e);if(t.startsWith("{"))return((e,t)=>{let[r,n]=e.split(":");n||(n=r,r=t);let i=n.split("|"),[a,o,s,l,c,u]=i,h=i.filter(e=>void 0!==e).length;return 1===h?{k:r,r:a}:2===h?{k:r,o:a,r:o}:3===h?{k:r,z:a,o:o,r:s}:{k:r,z:a,o:o,t:s,f:l,m:c,r:u}})(s(t),n);let i=(e=>{let[t="",...r]=e.split("|"),[n="",i]=t.split(":"),[a,o]=n.split("?");return{k:a,i:i,n:""===o,f:r}})(t);return n=i.k||n,r||(r=n),i}).map(e=>{if("string"==typeof e)return e;e.k||(e.k=r||"0");let n=Object.fromEntries(Object.keys(e).map(t=>{let r=e[t];return[t,Array.isArray(r)?r.map(e=>e?.trim()):!!r===r?r:r?.trim()]}));return t?Object.fromEntries(Object.entries(n).map(([e,t])=>"i"!==e&&t&&"0"!=t&&[e,t]).filter(Boolean)):n}))(e)),h=(u=t[0])&&"object"==typeof u&&u.constructor===Object,p=1===t.length&&h?u:t,c.map(e=>{if("string"==typeof e)return e;let{k:t="0",f:n=[]}=e,o=p[t];return e.o||e.r?(("boolean"==typeof o?o?e.o:e.r:((e,{z:t,o:r,t:n,f:i,m:a,r:o},s)=>{switch(t&&0==s?"zero":e.select(s)){case"zero":return t;case"one":return r;case"two":return n;case"few":return i??o;case"many":return a??o;default:return o}})(i,e,o))||"").replace(l,o):(""+((n.length?n.reduce((e,t)=>{let n;return(t.match(a)?(n=Object.fromEntries(s(t).split(",").map(e=>e.split(":")).reduce((e,t)=>2===t.length?[...e,t.map(e=>e.trim())]:(e[e.length-1][1]+=","+t[0],e),[])))[e]??n["*"]:r[t]?.(e))??e},o):o)??"")).trim()}).join("")}))}var u=(e={},t)=>"string"==typeof e?t.bind(null,e):Object.assign(Object.defineProperty(()=>"","name",{writable:!0}),e),h=(e,t)=>new Proxy(u(e,t),{get:(e,r)=>r===Symbol.iterator?[][Symbol.iterator].bind(Object.values(e).map(e=>u(e,t))):h(e[r],t)}),p=n.default,d=(e,t={})=>{let r=p.createContext({});return{component:n=>{let[a,o]=p.useState(n.locale),[s,l]=p.useState(()=>a?c(a,e[a],t[a]):i()),u=p.useCallback(r=>{o(r),l(()=>c(r,e[r],t[r]))},[]),h=p.useMemo(()=>({setLocale:u,locale:a,LL:s}),[u,a,s]);return p.createElement(r.Provider,{value:h},n.children)},context:r}};r.d(t,{w:()=>d})},86639(e,t,r){r.d(t,{y:()=>s});let n=/^\{.*\}$/,i=/(\{(?:[^{}]+|\{(?:[^{}]+)*\})*\})/g,a=e=>e.substring(1,e.length-1),o=/\?\?/g;function s(e,t,r={}){let l,u;return c(t,(l={},u=new Intl.PluralRules(e),(e,...t)=>{var s;let c,h,p;return s=l[e]||(l[e]=((e,t=!0,r="",n="")=>e.split(i).map(e=>{if(!e.match(i))return e;let t=a(e);if(t.startsWith("{"))return((e,t)=>{let[r,n]=e.split(":");n||(n=r,r=t);let i=n.split("|"),[a,o,s,l,c,u]=i,h=i.filter(e=>void 0!==e).length;return 1===h?{k:r,r:a}:2===h?{k:r,o:a,r:o}:3===h?{k:r,z:a,o:o,r:s}:{k:r,z:a,o:o,t:s,f:l,m:c,r:u}})(a(t),n);let o=(e=>{let[t="",...r]=e.split("|"),[n="",i]=t.split(":"),[a,o]=n.split("?");return{k:a,i:i,n:""===o,f:r}})(t);return n=o.k||n,r||(r=n),o}).map(e=>{if("string"==typeof e)return e;e.k||(e.k=r||"0");let n=Object.fromEntries(Object.keys(e).map(t=>{let r=e[t];return[t,Array.isArray(r)?r.map(e=>null==e?void 0:e.trim()):!!r===r?r:null==r?void 0:r.trim()]}));return t?Object.fromEntries(Object.entries(n).map(([e,t])=>"i"!==e&&t&&"0"!=t&&[e,t]).filter(Boolean)):n}))(e)),h=(c=t[0])&&"object"==typeof c&&c.constructor===Object,p=1===t.length&&h?c:t,s.map(e=>{if("string"==typeof e)return e;let{k:t="0",f:i=[]}=e,s=p[t];if(e.o||e.r)return(("boolean"==typeof s?s?e.o:e.r:((e,{z:t,o:r,t:n,f:i,m:a,r:o},s)=>{switch(t&&0==s?"zero":e.select(s)){case"zero":return t;case"one":return r;case"two":return n;case"few":return null!=i?i:o;case"many":return null!=a?a:o;default:return o}})(u,e,s))||"").replace(o,s);let l=i.length?i.reduce((e,t)=>{var i,o,s,l;return null!=(o=t.match(n)?null!=(l=(s=Object.fromEntries(a(t).split(",").map(e=>e.split(":")).reduce((e,t)=>2===t.length?[...e,t.map(e=>e.trim())]:(e[e.length-1][1]+=","+t[0],e),[])))[e])?l:s["*"]:null==(i=r[t])?void 0:i.call(r,e))?o:e},s):s;return(""+(null!=l?l:"")).trim()}).join("")}))}let l=(e={},t)=>"string"==typeof e?t.bind(null,e):Object.assign(Object.defineProperty(()=>"","name",{writable:!0}),e),c=(e,t)=>new Proxy(l(e,t),{get:(e,r)=>r===Symbol.iterator?[][Symbol.iterator].bind(Object.values(e).map(e=>l(e,t))):c(e[r],t)})},85469(e,t,r){function n(e){return!e||"object"!=typeof e&&"function"!=typeof e}var i=()=>(e,t)=>(function e(){var t=[].slice.call(arguments),r=!1;"boolean"==typeof t[0]&&(r=t.shift());var i=t[0];if(n(i))throw Error("extendee must be an object");for(var a=t.slice(1),o=a.length,s=0;s<o;s++){var l=a[s];for(var c in l)if(Object.prototype.hasOwnProperty.call(l,c)){var u,h=l[c];if(r&&(Array.isArray(u=h)||"[object Object]"==({}).toString.call(u))){var p=Array.isArray(h)?[]:{};i[c]=e(!0,Object.prototype.hasOwnProperty.call(i,c)&&!n(i[c])?i[c]:p,h)}else i[c]=h}}return i})({},e,t);i(),r.d(t,{m:()=>i})},62534(e,t,r){for(var n={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},i={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},a="u">typeof navigator&&/Mac/.test(navigator.platform),o="u">typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),s=0;s<10;s++)n[48+s]=n[96+s]=String(s);for(var s=1;s<=24;s++)n[s+111]="F"+s;for(var s=65;s<=90;s++)n[s]=String.fromCharCode(s+32),i[s]=String.fromCharCode(s);for(var l in n)i.hasOwnProperty(l)||(i[l]=n[l]);function c(e){var t=!(a&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||o&&e.shiftKey&&e.key&&1==e.key.length||"Unidentified"==e.key)&&e.key||(e.shiftKey?i:n)[e.keyCode]||e.key||"Unidentified";return"Esc"==t&&(t="Escape"),"Del"==t&&(t="Delete"),"Left"==t&&(t="ArrowLeft"),"Up"==t&&(t="ArrowUp"),"Right"==t&&(t="ArrowRight"),"Down"==t&&(t="ArrowDown"),t}r.d(t,{BN:()=>i,E3:()=>n,xT:()=>c})},62454(e,t,r){var n=r(92836),i=r(18565),a=r(29308),o=r(57861),s=r(45558),l=r(98026),c=r(73098),u=r(47698),h=r(56448),p=r(45587),d="__zr_normal__",f=n.Wx.concat(["ignore"]),m=(0,l.TS)(n.Wx,function(e,t){return e[t]=!0,e},{ignore:!1}),g={},A=new a.Ay(0,0,0,0),y=[],v=function(){function e(e){this.id=(0,l.Os)(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return e.prototype._init=function(e){this.attr(e)},e.prototype.drift=function(e,t,r){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=e,n[5]+=t,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var r=this.textConfig,n=r.local,i=t.innerTransformable,o=void 0,l=void 0,c=!1;i.parent=n?this:null;var u=!1;i.copyTransform(t);var d=null!=r.position,f=r.autoOverflowArea,m=void 0;if((f||d)&&(m=A,r.layoutRect?m.copy(r.layoutRect):m.copy(this.getBoundingRect()),n||m.applyTransform(this.transform)),d){this.calculateTextPosition?this.calculateTextPosition(g,r,m):(0,s.X4)(g,r,m),i.x=g.x,i.y=g.y,o=g.align,l=g.verticalAlign;var v=r.origin;if(v&&null!=r.rotation){var R=void 0,b=void 0;"center"===v?(R=.5*m.width,b=.5*m.height):(R=(0,s.lo)(v[0],m.width),b=(0,s.lo)(v[1],m.height)),u=!0,i.originX=-i.x+R+(n?0:m.x),i.originY=-i.y+b+(n?0:m.y)}}null!=r.rotation&&(i.rotation=r.rotation);var x=r.offset;x&&(i.x+=x[0],i.y+=x[1],u||(i.originX=-x[0],i.originY=-x[1]));var M=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(f){var S=M.overflowRect=M.overflowRect||new a.Ay(0,0,0,0);i.getLocalTransform(y),(0,p.B8)(y,y),a.Ay.copy(S,m),S.applyTransform(y)}else M.overflowRect=null;var w=null==r.inside?"string"==typeof r.position&&r.position.indexOf("inside")>=0:r.inside,O=void 0,L=void 0,N=void 0;w&&this.canBeInsideText()?(O=r.insideFill,L=r.insideStroke,(null==O||"auto"===O)&&(O=this.getInsideTextFill()),(null==L||"auto"===L)&&(L=this.getInsideTextStroke(O),N=!0)):(O=r.outsideFill,L=r.outsideStroke,(null==O||"auto"===O)&&(O=this.getOutsideFill()),(null==L||"auto"===L)&&(L=this.getOutsideStroke(O),N=!0)),((O=O||"#000")!==M.fill||L!==M.stroke||N!==M.autoStroke||o!==M.align||l!==M.verticalAlign)&&(c=!0,M.fill=O,M.stroke=L,M.autoStroke=N,M.align=o,M.verticalAlign=l,t.setDefaultTextStyle(M)),t.__dirty|=h.M,c&&t.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(e){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?c.el:c._S},e.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),r="string"==typeof t&&(0,u.qg)(t);r||(r=[255,255,255,1]);for(var n=r[3],i=this.__zr.isDarkMode(),a=0;a<3;a++)r[a]=r[a]*n+255*!i*(1-n);return r[3]=1,(0,u.As)(r,"rgba")},e.prototype.traverse=function(e,t){},e.prototype.attrKV=function(e,t){"textConfig"===e?this.setTextConfig(t):"textContent"===e?this.setTextContent(t):"clipPath"===e?this.setClipPath(t):"extra"===e?(this.extra=this.extra||{},(0,l.X$)(this.extra,t)):this[e]=t},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(e,t){if("string"==typeof e)this.attrKV(e,t);else if((0,l.Gv)(e))for(var r=(0,l.HP)(e),n=0;n<r.length;n++){var i=r[n];this.attrKV(i,e[i])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var t=this._normalState,r=0;r<this.animators.length;r++){var n=this.animators[r],i=n.__fromStateTransition;if(!n.getLoop()&&(!i||i===d)){var a=n.targetName,o=a?t[a]:t;n.saveTo(o)}}},e.prototype._innerSaveToNormal=function(e){var t=this._normalState;t||(t=this._normalState={}),e.textConfig&&!t.textConfig&&(t.textConfig=this.textConfig),this._savePrimaryToNormal(e,t,f)},e.prototype._savePrimaryToNormal=function(e,t,r){for(var n=0;n<r.length;n++){var i=r[n];null==e[i]||i in t||(t[i]=this[i])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(e){return this.states[e]},e.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},e.prototype.clearStates=function(e){this.useState(d,!1,e)},e.prototype.useState=function(e,t,r,n){var i,a=e===d;if(this.hasState()||!a){var o=this.currentStates,s=this.stateTransition;if(!((0,l.qh)(o,e)>=0)||!t&&1!==o.length){if(this.stateProxy&&!a&&(i=this.stateProxy(e)),i||(i=this.states&&this.states[e]),!i&&!a)return void(0,l.vV)("State "+e+" not exists.");a||this.saveCurrentToNormalState(i);var c=this._textContent,u=x(this,c,i,n);u&&!this.__inHover&&(this.__inHover=u),this._applyStateObj(e,i,this._normalState,t,S(this,r,s),s);var p=this._textGuide;return c&&c.useState(e,t,r,!!u),p&&p.useState(e,t,r,!!u),a?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!u&&this.__inHover&&(this.__inHover=0,this.__dirty&=~h.M),i}}},e.prototype.useStates=function(e,t,r){if(e.length){var n=[],i=this.currentStates,a=e.length,o=a===i.length;if(o){for(var s=0;s<a;s++)if(e[s]!==i[s]){o=!1;break}}if(!o){for(var s=0;s<a;s++){var l=e[s],c=void 0;this.stateProxy&&(c=this.stateProxy(l,e)),c||(c=this.states[l]),c&&n.push(c)}var u=n[a-1],p=this._textContent,d=x(this,p,u,r);d&&!this.__inHover&&(this.__inHover=d);var f=this._mergeStates(n),m=this.stateTransition;this.saveCurrentToNormalState(f),this._applyStateObj(e.join(","),f,this._normalState,!1,S(this,t,m),m);var g=this._textGuide;p&&p.useStates(e,t,!!d),g&&g.useStates(e,t,!!d),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!d&&this.__inHover&&(this.__inHover=0,this.__dirty&=~h.M)}}else this.clearStates()},e.prototype.isSilent=function(){for(var e=this;e;){if(e.silent)return!0;var t=e.__hostTarget;e=t?e.ignoreHostSilent?null:t:e.parent}return!1},e.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var t=this.animators[e];t.targetName&&t.changeTarget(this[t.targetName])}},e.prototype.removeState=function(e){var t=(0,l.qh)(this.currentStates,e);if(t>=0){var r=this.currentStates.slice();r.splice(t,1),this.useStates(r)}},e.prototype.replaceState=function(e,t,r){var n=this.currentStates.slice(),i=(0,l.qh)(n,e),a=(0,l.qh)(n,t)>=0;i>=0?a?n.splice(i,1):n[i]=t:r&&!a&&n.push(t),this.useStates(n)},e.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},e.prototype._mergeStates=function(e){for(var t,r={},n=0;n<e.length;n++){var i=e[n];(0,l.X$)(r,i),i.textConfig&&(t=t||{},(0,l.X$)(t,i.textConfig))}return t&&(r.textConfig=t),r},e.prototype._applyStateObj=function(e,t,r,n,i,a){if(1!==this.__inHover){var o=!(t&&n);t&&t.textConfig?(this.textConfig=(0,l.X$)({},n?this.textConfig:r.textConfig),(0,l.X$)(this.textConfig,t.textConfig)):o&&r.textConfig&&(this.textConfig=r.textConfig);for(var s={},c=!1,u=0;u<f.length;u++){var h=f[u],p=i&&m[h];t&&null!=t[h]?p?(c=!0,s[h]=t[h]):this[h]=t[h]:o&&null!=r[h]&&(p?(c=!0,s[h]=r[h]):this[h]=r[h])}if(!i)for(var u=0;u<this.animators.length;u++){var d=this.animators[u],g=d.targetName;d.getLoop()||d.__changeFinalValue(g?(t||r)[g]:t||r)}c&&this._transitionState(e,s,a)}},e.prototype._attachComponent=function(e){if((!e.__zr||e.__hostTarget)&&e!==this){var t=this.__zr;t&&e.addSelfToZr(t),e.__zr=t,e.__hostTarget=this}},e.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},e.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(e){var t=this._textContent;t!==e&&(t&&t!==e&&this.removeTextContent(),e.innerTransformable=new n.Ay,this._attachComponent(e),this._textContent=e,this.markRedraw())},e.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),(0,l.X$)(this.textConfig,e),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=h.M;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var t=this.animators;if(t)for(var r=0;r<t.length;r++)e.animation.addAnimator(t[r]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},e.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var t=this.animators;if(t)for(var r=0;r<t.length;r++)e.animation.removeAnimator(t[r]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},e.prototype.animate=function(e,t,r){var n=e?this[e]:this,a=new i.A(n,t,r);return e&&(a.targetName=e),this.addAnimator(a,e),a},e.prototype.addAnimator=function(e,t){var r=this.__zr,n=this;e.during(function(){n.updateDuringAnimation(t)}).done(function(){var t=n.animators,r=(0,l.qh)(t,e);r>=0&&t.splice(r,1)}),this.animators.push(e),r&&r.animation.addAnimator(e),r&&r.wakeUp()},e.prototype.updateDuringAnimation=function(e){this.markRedraw()},e.prototype.stopAnimation=function(e,t){for(var r=this.animators,n=r.length,i=[],a=0;a<n;a++){var o=r[a];e&&e!==o.scope?i.push(o):o.stop(t)}return this.animators=i,this},e.prototype.animateTo=function(e,t,r){R(this,e,t,r)},e.prototype.animateFrom=function(e,t,r){R(this,e,t,r,!0)},e.prototype._transitionState=function(e,t,r,n){for(var i=R(this,t,r,n),a=0;a<i.length;a++)i[a].__fromStateTransition=e},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.initDefaultProps=function(){var t=e.prototype;function r(e,r,n,i){Object.defineProperty(t,e,{get:function(){return this[r]||a(this,this[r]=[]),this[r]},set:function(e){this[n]=e[0],this[i]=e[1],this[r]=e,a(this,e)}});function a(e,t){Object.defineProperty(t,0,{get:function(){return e[n]},set:function(t){e[n]=t}}),Object.defineProperty(t,1,{get:function(){return e[i]},set:function(t){e[i]=t}})}}t.type="element",t.name="",t.ignore=t.silent=t.ignoreHostSilent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=!1,t.__inHover=0,t.__dirty=h.M,Object.defineProperty&&(r("position","_legacyPos","x","y"),r("scale","_legacyScale","scaleX","scaleY"),r("origin","_legacyOrigin","originX","originY"))}(),e}();function R(e,t,r,n,a){var o=[];!function e(t,r,n,a,o,s,c,u){for(var h=(0,l.HP)(a),p=o.duration,d=o.delay,f=o.additive,m=o.setToFinal,g=!(0,l.Gv)(s),A=t.animators,y=[],v=0;v<h.length;v++){var R=h[v],x=a[R];if(null!=x&&null!=n[R]&&(g||s[R]))if(!(0,l.Gv)(x)||(0,l.Xj)(x)||(0,l.C7)(x))y.push(R);else{if(r){u||(n[R]=x,t.updateDuringAnimation(r));continue}e(t,R,n[R],x,o,s&&s[R],c,u)}else u||(n[R]=x,t.updateDuringAnimation(r),y.push(R))}var M=y.length;if(!f&&M)for(var S=0;S<A.length;S++){var w=A[S];if(w.targetName===r&&w.stopTracks(y)){var O=(0,l.qh)(A,w);A.splice(O,1)}}if(o.force||(M=(y=(0,l.pb)(y,function(e){var t,r;return!((t=a[e])===(r=n[e])||(0,l.Xj)(t)&&(0,l.Xj)(r)&&function(e,t){var r=e.length;if(r!==t.length)return!1;for(var n=0;n<r;n++)if(e[n]!==t[n])return!1;return!0}(t,r))})).length),M>0||o.force&&!c.length){var L=void 0,N=void 0,_=void 0;if(u){N={},m&&(L={});for(var S=0;S<M;S++){var R=y[S];N[R]=n[R],m?L[R]=a[R]:n[R]=a[R]}}else if(m){_={};for(var S=0;S<M;S++){var R=y[S];_[R]=(0,i.F)(n[R]),function(e,t,r){if((0,l.Xj)(t[r]))if((0,l.Xj)(e[r])||(e[r]=[]),(0,l.iu)(t[r])){var n=t[r].length;e[r].length!==n&&(e[r]=new t[r].constructor(n),b(e[r],t[r],n))}else{var i=t[r],a=e[r],o=i.length;if((0,l.Xj)(i[0]))for(var s=i[0].length,c=0;c<o;c++)a[c]?b(a[c],i[c],s):a[c]=Array.prototype.slice.call(i[c]);else b(a,i,o);a.length=i.length}else e[r]=t[r]}(n,a,R)}}var w=new i.A(n,!1,!1,f?(0,l.pb)(A,function(e){return e.targetName===r}):null);w.targetName=r,o.scope&&(w.scope=o.scope),m&&L&&w.whenWithKeys(0,L,y),_&&w.whenWithKeys(0,_,y),w.whenWithKeys(null==p?500:p,u?N:a,y).delay(d||0),t.addAnimator(w,r),c.push(w)}}(e,"",e,t,r=r||{},n,o,a);var s=o.length,c=!1,u=r.done,h=r.aborted,p=function(){c=!0,--s<=0&&(c?u&&u():h&&h())},d=function(){--s<=0&&(c?u&&u():h&&h())};!s&&u&&u(),o.length>0&&r.during&&o[0].during(function(e,t){r.during(t)});for(var f=0;f<o.length;f++){var m=o[f];p&&m.done(p),d&&m.aborted(d),r.force&&m.duration(r.duration),m.start(r.easing)}return o}function b(e,t,r){for(var n=0;n<r;n++)e[n]=t[n]}function x(e,t,r,n){return!(r&&r.hoverLayer||n)||M(e)||t&&M(t)?0:1}function M(e){return"text"===e.type||"tspan"===e.type}function S(e,t,r){return!t&&!e.__inHover&&r&&r.duration>0}(0,l.co)(v,o.A),(0,l.co)(v,n.Ay),t.Ay=v,r.d(t,{yx:()=>1})},18565(e,t,r){r.d(t,{F:()=>d,A:()=>v});var n={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return 0===e?0:Math.pow(1024,e-1)},exponentialOut:function(e){return 1===e?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return 0===e?0:1===e?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,r=.1;return 0===e?0:1===e?1:(!r||r<1?(r=1,t=.1):t=.4*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(e-=1))*Math.sin(2*Math.PI*(e-t)/.4)))},elasticOut:function(e){var t,r=.1;return 0===e?0:1===e?1:(!r||r<1?(r=1,t=.1):t=.4*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*e)*Math.sin(2*Math.PI*(e-t)/.4)+1)},elasticInOut:function(e){var t,r=.1;return 0===e?0:1===e?1:(!r||r<1?(r=1,t=.1):t=.4*Math.asin(1/r)/(2*Math.PI),(e*=2)<1)?-.5*(r*Math.pow(2,10*(e-=1))*Math.sin(2*Math.PI*(e-t)/.4)):r*Math.pow(2,-10*(e-=1))*Math.sin(2*Math.PI*(e-t)/.4)*.5+1},backIn:function(e){return e*e*(2.70158*e-1.70158)},backOut:function(e){return--e*e*(2.70158*e+1.70158)+1},backInOut:function(e){return(e*=2)<1?e*e*(3.5949095*e-2.5949095)*.5:.5*((e-=2)*e*(3.5949095*e+2.5949095)+2)},bounceIn:function(e){return 1-n.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?.5*n.bounceIn(2*e):.5*n.bounceOut(2*e-1)+.5}},i=r(98026),a=r(96320),o=function(){function e(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||i.lQ,this.ondestroy=e.ondestroy||i.lQ,this.onrestart=e.onrestart||i.lQ,e.easing&&this.setEasing(e.easing)}return e.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=t;return}var r=this._life,n=e-this._startTime-this._pausedTime,i=n/r;i<0&&(i=0),i=Math.min(i,1);var a=this.easingFunc,o=a?a(i):i;if(this.onframe(o),1===i)if(!this.loop)return!0;else this._startTime=e-n%r,this._pausedTime=0,this.onrestart();return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(e){this.easing=e,this.easingFunc=(0,i.Tn)(e)?e:n[e]||(0,a.w)(e)},e}(),s=r(47698),l=r(3455),c=Array.prototype.slice;function u(e,t,r,n){for(var i,a=t.length,o=0;o<a;o++)e[o]=(i=t[o],(r[o]-i)*n+i);return e}function h(e,t,r,n){for(var i=t.length,a=0;a<i;a++)e[a]=t[a]+r[a]*n;return e}function p(e,t,r,n){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=t[o][s]+r[o][s]*n}return e}function d(e){if((0,i.Xj)(e)){var t=e.length;if((0,i.Xj)(e[0])){for(var r=[],n=0;n<t;n++)r.push(c.call(e[n]));return r}return c.call(e)}return e}function f(e){return e[0]=Math.floor(e[0])||0,e[1]=Math.floor(e[1])||0,e[2]=Math.floor(e[2])||0,e[3]=null==e[3]?1:e[3],"rgba("+e.join(",")+")"}function m(e){return 4===e||5===e}function g(e){return 1===e||2===e}var A=[0,0,0,0],y=function(){function e(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return e.prototype.isFinished=function(){return this._finished},e.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},e.prototype.needsAnimate=function(){return this.keyframes.length>=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(e,t,r){this._needsSort=!0;var o=this.keyframes,c=o.length,u=!1,h=6,p=t;if((0,i.Xj)(t)){var d=(0,i.Xj)(t&&t[0])?2:1;h=d,(1!==d||(0,i.Et)(t[0]))&&(2!==d||(0,i.Et)(t[0][0]))||(u=!0)}else if((0,i.Et)(t)&&!(0,i.Yp)(t))h=0;else if((0,i.Kg)(t))if(isNaN(+t)){var f=s.qg(t);f&&(p=f,h=3)}else h=0;else if((0,i.C7)(t)){var m=(0,i.X$)({},p);m.colorStops=(0,i.Tj)(t.colorStops,function(e){return{offset:e.offset,color:s.qg(e.color)}}),(0,l.OS)(t)?h=4:(0,l.OH)(t)&&(h=5),p=m}0===c?this.valType=h:(h!==this.valType||6===h)&&(u=!0),this.discrete=this.discrete||u;var g={time:e,value:p,rawValue:t,percent:0};return r&&(g.easing=r,g.easingFunc=(0,i.Tn)(r)?r:n[r]||(0,a.w)(r)),o.push(g),g},e.prototype.prepare=function(e,t){var r=this.keyframes;this._needsSort&&r.sort(function(e,t){return e.time-t.time});for(var n=this.valType,i=r.length,a=r[i-1],o=this.discrete,s=g(n),l=m(n),u=0;u<i;u++){var d=r[u],f=d.value,A=a.value;d.percent=d.time/e,!o&&(s&&u!==i-1?function(e,t,r){if(e.push&&t.push){var n=e.length,i=t.length;if(n!==i)if(n>i)e.length=i;else for(var a=n;a<i;a++)e.push(1===r?t[a]:c.call(t[a]));for(var o=e[0]&&e[0].length,a=0;a<e.length;a++)if(1===r)isNaN(e[a])&&(e[a]=t[a]);else for(var s=0;s<o;s++)isNaN(e[a][s])&&(e[a][s]=t[a][s])}}(f,A,n):l&&function(e,t){for(var r=e.length,n=t.length,i=r>n?t:e,a=Math.min(r,n),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(r,n);s++)i.push({offset:o.offset,color:o.color.slice()})}(f.colorStops,A.colorStops))}if(!o&&5!==n&&t&&this.needsAnimate()&&t.needsAnimate()&&n===t.valType&&!t._finished){this._additiveTrack=t;for(var y=r[0].value,u=0;u<i;u++)0===n?r[u].additiveValue=r[u].value-y:3===n?r[u].additiveValue=h([],r[u].value,y,-1):g(n)&&(r[u].additiveValue=1===n?h([],r[u].value,y,-1):p([],r[u].value,y,-1))}},e.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var r,n,a,o=null!=this._additiveTrack,s=o?"additiveValue":"value",l=this.valType,c=this.keyframes,h=c.length,p=this.propName,d=3===l,y=this._lastFr,v=Math.min;if(1===h)n=a=c[0];else{if(t<0)r=0;else if(t<this._lastFrP){for(r=v(y+1,h-1);r>=0&&!(c[r].percent<=t);r--);r=v(r,h-2)}else{for(r=y;r<h&&!(c[r].percent>t);r++);r=v(r-1,h-2)}a=c[r+1],n=c[r]}if(n&&a){this._lastFr=r,this._lastFrP=t;var R=a.percent-n.percent,b=0===R?1:v((t-n.percent)/R,1);a.easingFunc&&(b=a.easingFunc(b));var x=o?this._additiveValue:d?A:e[p];if((g(l)||d)&&!x&&(x=this._additiveValue=[]),this.discrete)e[p]=b<1?n.rawValue:a.rawValue;else if(g(l))1===l?u(x,n[s],a[s],b):function(e,t,r,n){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s,l=0;l<a;l++)e[o][l]=(s=t[o][l],(r[o][l]-s)*n+s)}}(x,n[s],a[s],b);else if(m(l)){var M,S,w,O,L,N=n[s],_=a[s],T=4===l;(e[p]={type:T?"linear":"radial",x:(M=N.x,(_.x-M)*b+M),y:(S=N.y,(_.y-S)*b+S),colorStops:(0,i.Tj)(N.colorStops,function(e,t){var r,n=_.colorStops[t];return{offset:(r=e.offset,(n.offset-r)*b+r),color:f(u([],e.color,n.color,b))}}),global:_.global},T)?(e[p].x2=(w=N.x2,(_.x2-w)*b+w),e[p].y2=(O=N.y2,(_.y2-O)*b+O)):e[p].r=(L=N.r,(_.r-L)*b+L)}else if(d)u(x,n[s],a[s],b),o||(e[p]=f(x));else{var P,C=(P=n[s],(a[s]-P)*b+P);o?this._additiveValue=C:e[p]=C}o&&this._addToTarget(e)}}},e.prototype._addToTarget=function(e){var t=this.valType,r=this.propName,n=this._additiveValue;0===t?e[r]=e[r]+n:3===t?(s.qg(e[r],A),h(A,A,n,1),e[r]=f(A)):1===t?h(e[r],e[r],n,1):2===t&&p(e[r],e[r],n,1)},e}(),v=function(){function e(e,t,r,n){(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&n)?(0,i.vV)("Can' use additive animation on looped animation."):(this._additiveAnimators=n,this._allowDiscrete=r)}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(e){this._target=e},e.prototype.when=function(e,t,r){return this.whenWithKeys(e,t,(0,i.HP)(t),r)},e.prototype.whenWithKeys=function(e,t,r,n){for(var i=this._tracks,a=0;a<r.length;a++){var o=r[a],s=i[o];if(!s){s=i[o]=new y(o);var l=void 0,c=this._getAdditiveTrack(o);if(c){var u=c.keyframes,h=u[u.length-1];l=h&&h.value,3===c.valType&&l&&(l=f(l))}else l=this._target[o];if(null==l)continue;e>0&&s.addKeyframe(0,d(l),n),this._trackKeys.push(o)}s.addKeyframe(e,d(t[o]),n)}return this._maxTime=Math.max(this._maxTime,e),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,r=0;r<t;r++)e[r].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,t=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,t)for(var r=0;r<t.length;r++)t[r].call(this)},e.prototype._setTracksFinished=function(){for(var e=this._tracks,t=this._trackKeys,r=0;r<t.length;r++)e[t[r]].setFinished()},e.prototype._getAdditiveTrack=function(e){var t,r=this._additiveAnimators;if(r)for(var n=0;n<r.length;n++){var i=r[n].getTrack(e);i&&(t=i)}return t},e.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var t=this,r=[],n=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var a=this._trackKeys[i],s=this._tracks[a],l=this._getAdditiveTrack(a),c=s.keyframes,u=c.length;if(s.prepare(n,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var h=c[u-1];h&&(t._target[s.propName]=h.rawValue),s.setFinished()}else r.push(s)}if(r.length||this._force){var p=new o({life:n,loop:this._loop,delay:this._delay||0,onframe:function(e){t._started=2;var n=t._additiveAnimators;if(n){for(var i=!1,a=0;a<n.length;a++)if(n[a]._clip){i=!0;break}i||(t._additiveAnimators=null)}for(var a=0;a<r.length;a++)r[a].step(t._target,e);var o=t._onframeCbs;if(o)for(var a=0;a<o.length;a++)o[a](t._target,e)},ondestroy:function(){t._doneCallback()}});this._clip=p,this.animation&&this.animation.addClip(p),e&&p.setEasing(e)}else this._doneCallback();return this}},e.prototype.stop=function(e){if(this._clip){var t=this._clip;e&&t.onframe(1),this._abortedCallback()}},e.prototype.delay=function(e){return this._delay=e,this},e.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},e.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},e.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(e){return this._tracks[e]},e.prototype.getTracks=function(){var e=this;return(0,i.Tj)(this._trackKeys,function(t){return e._tracks[t]})},e.prototype.stopTracks=function(e,t){if(!e.length||!this._clip)return!0;for(var r=this._tracks,n=this._trackKeys,i=0;i<e.length;i++){var a=r[e[i]];a&&!a.isFinished()&&(t?a.step(this._target,1):1===this._started&&a.step(this._target,0),a.setFinished())}for(var o=!0,i=0;i<n.length;i++)if(!r[n[i]].isFinished()){o=!1;break}return o&&this._abortedCallback(),o},e.prototype.saveTo=function(e,t,r){if(e){t=t||this._trackKeys;for(var n=0;n<t.length;n++){var i=t[n],a=this._tracks[i];if(!(!a||a.isFinished())){var o=a.keyframes,s=o[r?0:o.length-1];s&&(e[i]=d(s.rawValue))}}}},e.prototype.__changeFinalValue=function(e,t){t=t||(0,i.HP)(e);for(var r=0;r<t.length;r++){var n=t[r],a=this._tracks[n];if(a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,e[n]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},e}()},96320(e,t,r){var n=r(89259),i=r(98026),a=/cubic-bezier\(([0-9,\.e ]+)\)/;function o(e){var t=e&&a.exec(e);if(t){var r=t[1].split(","),o=+(0,i.Bq)(r[0]),s=+(0,i.Bq)(r[1]),l=+(0,i.Bq)(r[2]),c=+(0,i.Bq)(r[3]);if(isNaN(o+s+l+c))return;var u=[];return function(e){return e<=0?0:e>=1?1:(0,n._E)(0,o,l,1,e,u)&&(0,n.Yb)(0,s,c,1,u[0])}}}r.d(t,{w:()=>o})},45825(e,t,r){t.A=r(38123).A.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)}},76050(e,t,r){var n=r(98026);function i(e){var t,r,i=e.style,a=i.lineDash&&i.lineWidth>0&&(t=i.lineDash,r=i.lineWidth,t&&"solid"!==t&&r>0?"dashed"===t?[4*r,2*r]:"dotted"===t?[r]:(0,n.Et)(t)?[t]:(0,n.cy)(t)?t:null:null),o=i.lineDashOffset;if(a){var s=i.strokeNoScale&&e.getLineScale?e.getLineScale():1;s&&1!==s&&(a=(0,n.Tj)(a,function(e){return e/s}),o/=s)}return[a,o]}r.d(t,{V:()=>i})},29571(e,t,r){var n=r(71519),i=r(15938),a=r(12191),o=r(53479),s=r(87691),l=r(90540),c=r(19845),u=r(98026),h=r(76050),p=r(56448),d=r(59741),f=new i.A(!0);function m(e){var t=e.stroke;return null!=t&&"none"!==t&&e.lineWidth>0}function g(e){return"string"==typeof e&&"none"!==e}function A(e){var t=e.fill;return null!=t&&"none"!==t}function y(e,t){if(null!=t.fillOpacity&&1!==t.fillOpacity){var r=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=r}else e.fill()}function v(e,t){if(null!=t.strokeOpacity&&1!==t.strokeOpacity){var r=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=r}else e.stroke()}function R(e,t,r){var n=(0,a.OD)(t.image,t.__image,r);if((0,a.xA)(n)){var i=e.createPattern(n,t.repeat||"repeat");if("function"==typeof DOMMatrix&&i&&i.setTransform){var o=new DOMMatrix;o.translateSelf(t.x||0,t.y||0),o.rotateSelf(0,0,(t.rotation||0)*u.lI),o.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(o)}return i}}var b=["shadowBlur","shadowOffsetX","shadowOffsetY"],x=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function M(e,t,r,i,a){var o=!1;if(!i&&t===(r=r||{}))return!1;if(i||t.opacity!==r.opacity){O(e,a),o=!0;var s=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(s)?n.oN.opacity:s}(i||t.blend!==r.blend)&&(o||(O(e,a),o=!0),e.globalCompositeOperation=t.blend||n.oN.blend);for(var l=0;l<b.length;l++){var c=b[l];(i||t[c]!==r[c])&&(o||(O(e,a),o=!0),e[c]=e.dpr*(t[c]||0))}return(i||t.shadowColor!==r.shadowColor)&&(o||(O(e,a),o=!0),e.shadowColor=t.shadowColor||n.oN.shadowColor),o}function S(e,t,r,n,i){var a=t.style,o=n?null:r&&r.style||{};if(a===o)return!1;var s=M(e,a,o,n,i);if((n||a.fill!==o.fill)&&(s||(O(e,i),s=!0),g(a.fill)&&(e.fillStyle=a.fill)),(n||a.stroke!==o.stroke)&&(s||(O(e,i),s=!0),g(a.stroke)&&(e.strokeStyle=a.stroke)),(n||a.opacity!==o.opacity)&&(s||(O(e,i),s=!0),e.globalAlpha=null==a.opacity?1:a.opacity),t.hasStroke()){var l=a.lineWidth/(a.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==l&&(s||(O(e,i),s=!0),e.lineWidth=l)}for(var c=0;c<x.length;c++){var u=x[c],h=u[0];(n||a[h]!==o[h])&&(s||(O(e,i),s=!0),e[h]=a[h]||u[1])}return s}function w(e,t){var r=t.transform,n=e.dpr||1;r?e.setTransform(n*r[0],n*r[1],n*r[2],n*r[3],n*r[4],n*r[5]):e.setTransform(n,0,0,n,0,0)}function O(e,t){t.batchFill&&(t.batchFill=!1,e.fill()),t.batchStroke&&(t.batchStroke=!1,e.stroke())}function L(e,t){var r={inHover:!1,viewWidth:0,viewHeight:0,beforeBrushParam:{}};N(e,t,r),_(e,r)}function N(e,t,r){var n,i=t.transform;if(!t.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){t.__dirty&=~p.M,t.__isRendered=!1;return}var u=t.__clipPaths,g=r.prevElClipPaths,b=t.style,x=!1,L=!1;if((!g||(0,o.KU)(u,g))&&(g&&(O(e,r),e.restore(),L=x=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),u&&u.length)){O(e,r),e.save();for(var T=!1,P=0;P<u.length;P++){var C=u[P];T=T||C.isZeroArea(),w(e,C),e.beginPath(),C.buildPath(e,C.shape),e.clip()}r.allClipped=T,x=!0,r.prevElClipPaths=u}if(r.allClipped){t.__dirty&=~p.M,t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(r.beforeBrushParam),t.innerBeforeBrush();var I=r.prevEl;I||(L=x=!0);var k=t instanceof s.Ay&&t.autoBatch&&(F=A(b),X=m(b),!(b.lineDash||!(F^X)||F&&"string"!=typeof b.fill||X&&"string"!=typeof b.stroke||b.strokePercent<1||b.strokeOpacity<1||b.fillOpacity<1));if(!x&&(U=I.transform,i&&U?i[0]===U[0]&&i[1]===U[1]&&i[2]===U[2]&&i[3]===U[3]&&i[4]===U[4]&&i[5]===U[5]:+(!i&&!U))?k||O(e,r):(O(e,r),w(e,t)),t instanceof s.Ay)1!==r.lastDrawType&&(L=!0,r.lastDrawType=1),S(e,t,I,L,r),k&&(r.batchFill||r.batchStroke)||e.beginPath(),function(e,t,r,n,i){var a,s,l,c=m(r),u=A(r),d=r.strokePercent,g=d<1,b=!t.path;(!t.silent||g)&&b&&t.createPathProxy();var x=t.path||f,M=t.__dirty;if(!n){var S=r.fill,w=r.stroke,O=u&&!!S.colorStops,L=c&&!!w.colorStops,N=u&&!!S.image,_=c&&!!w.image,T=void 0,P=void 0,C=void 0,I=void 0,k=void 0;(O||L)&&(k=t.getBoundingRect()),O&&(T=M?(0,o.Ff)(e,S,k):t.__canvasFillGradient,t.__canvasFillGradient=T),L&&(P=M?(0,o.Ff)(e,w,k):t.__canvasStrokeGradient,t.__canvasStrokeGradient=P),N&&(C=M||!t.__canvasFillPattern?R(e,S,t):t.__canvasFillPattern,t.__canvasFillPattern=C),_&&(I=M||!t.__canvasStrokePattern?R(e,w,t):t.__canvasStrokePattern,t.__canvasStrokePattern=I),O?e.fillStyle=T:N&&(C?e.fillStyle=C:u=!1),L?e.strokeStyle=P:_&&(I?e.strokeStyle=I:c=!1)}var F=t.getGlobalScale();x.setScale(F[0],F[1],t.segmentIgnoreThreshold),e.setLineDash&&r.lineDash&&(s=(a=(0,h.V)(t))[0],l=a[1]);var X=!0;(b||M&p.Dl)&&(x.setDPR(e.dpr),g?x.setContext(null):(x.setContext(e),X=!1),x.reset(),t.buildPath(x,t.shape,n),x.toStatic(),t.pathUpdated()),X&&x.rebuildPath(e,g?d:1),s&&(e.setLineDash(s),e.lineDashOffset=l),n?(i.batchFill=u,i.batchStroke=c):r.strokeFirst?(c&&v(e,r),u&&y(e,r)):(u&&y(e,r),c&&v(e,r)),s&&e.setLineDash([])}(e,t,b,k,r);else if(t instanceof c.A){3!==r.lastDrawType&&(L=!0,r.lastDrawType=3),S(e,t,I,L,r);var F,X,U,W,V=b.text;if(null!=V&&(V+=""),V){e.font=b.font||d.OH,e.textAlign=b.textAlign,e.textBaseline=b.textBaseline;var E=void 0,Y=void 0;e.setLineDash&&b.lineDash&&(E=(W=(0,h.V)(t))[0],Y=W[1]),E&&(e.setLineDash(E),e.lineDashOffset=Y),b.strokeFirst?(m(b)&&e.strokeText(V,b.x,b.y),A(b)&&e.fillText(V,b.x,b.y)):(A(b)&&e.fillText(V,b.x,b.y),m(b)&&e.strokeText(V,b.x,b.y)),E&&e.setLineDash([])}}else t instanceof l.Ay?(2!==r.lastDrawType&&(L=!0,r.lastDrawType=2),n=L,M(e,t.style,I&&I.style,n,r),function(e,t,r){var n=t.__image=(0,a.OD)(r.image,t.__image,t,t.onload);if(n&&(0,a.xA)(n)){var i=r.x||0,o=r.y||0,s=t.getWidth(),l=t.getHeight(),c=n.width/n.height;if(null==s&&null!=l?s=l*c:null==l&&null!=s?l=s/c:null==s&&null==l&&(s=n.width,l=n.height),r.sWidth&&r.sHeight){var u=r.sx||0,h=r.sy||0;e.drawImage(n,u,h,r.sWidth,r.sHeight,i,o,s,l)}else if(r.sx&&r.sy){var u=r.sx,h=r.sy,p=s-u,d=l-h;e.drawImage(n,u,h,p,d,i,o,s,l)}else e.drawImage(n,i,o,s,l)}}(e,t,b)):t.getTemporalDisplayables&&(4!==r.lastDrawType&&(L=!0,r.lastDrawType=4),function(e,t,r){var n,i,a=t.getDisplayables(),o=t.getTemporalDisplayables();e.save();var s={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover,beforeBrushParam:{}};for(n=t.getCursor(),i=a.length;n<i;n++){var l=a[n];l.beforeBrush&&l.beforeBrush(r.beforeBrushParam),l.innerBeforeBrush(),N(e,l,s),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}_(e,s);for(var c=0,u=o.length;c<u;c++){var l=o[c];l.beforeBrush&&l.beforeBrush(r.beforeBrushParam),l.innerBeforeBrush(),N(e,l,s),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}_(e,s),t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}(e,t,r));t.innerAfterBrush(),t.afterBrush&&(k&&O(e,r),t.afterBrush()),r.prevEl=t,t.__dirty=0,t.__isRendered=!0}function _(e,t){O(e,t),t.prevElClipPaths&&e.restore()}r.d(t,{V$:()=>N,Xi:()=>L,ZQ:()=>R,v6:()=>_})},53479(e,t,r){function n(e){return isFinite(e)}function i(e,t,r){for(var i,a,o,s,l,c,u,h,p,d,f="radial"===t.type?(o=Math.min(i=r.width,a=r.height),s=null==t.x?.5:t.x,l=null==t.y?.5:t.y,c=null==t.r?.5:t.r,t.global||(s=s*i+r.x,l=l*a+r.y,c*=o),s=n(s)?s:.5,l=n(l)?l:.5,c=c>=0&&n(c)?c:.5,e.createRadialGradient(s,l,0,s,l,c)):(u=null==t.x?0:t.x,h=null==t.x2?1:t.x2,p=null==t.y?0:t.y,d=null==t.y2?0:t.y2,t.global||(u=u*r.width+r.x,h=h*r.width+r.x,p=p*r.height+r.y,d=d*r.height+r.y),u=n(u)?u:0,h=n(h)?h:1,p=n(p)?p:0,d=n(d)?d:0,e.createLinearGradient(u,p,h,d)),m=t.colorStops,g=0;g<m.length;g++)f.addColorStop(m[g].offset,m[g].color);return f}function a(e,t){if(e===t||!e&&!t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!0;return!1}function o(e){return parseInt(e,10)}function s(e,t,r){var n=["width","height"][t],i=["clientWidth","clientHeight"][t],a=["paddingLeft","paddingTop"][t],s=["paddingRight","paddingBottom"][t];if(null!=r[n]&&"auto"!==r[n])return parseFloat(r[n]);var l=document.defaultView.getComputedStyle(e);return(e[i]||o(l[n])||o(e.style[n]))-(o(l[a])||0)-(o(l[s])||0)||0}r.d(t,{Ff:()=>i,KU:()=>a,YC:()=>s})},73098(e,t,r){var n=r(38123),i=1;n.A.hasGlobalWindow&&(i=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var a=i;r.d(t,{Y5:()=>a,_S:()=>"#333",el:()=>"#ccc",ps:()=>.4,tY:()=>"#eee"})},45558(e,t,r){var n,i=r(29308),a=r(60501),o=r(59741);function s(e){n||(n=new a.Ay(100)),e=e||o.OH;var t=n.get(e);return t||(t={font:e,strWidthCache:new a.Ay(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:o.yh.measureText("国",e).width,asciiCharWidth:o.yh.measureText("a",e).width},n.put(e,t)),t}var l=0;function c(e,t){return e.asciiWidthMapTried||(e.asciiWidthMap=function(e){if(!(l>=5)){e=e||o.OH;for(var t=[],r=+new Date,n=0;n<=127;n++)t[n]=o.yh.measureText(String.fromCharCode(n),e).width;var i=new Date-r;return i>16?l=5:i>2&&l++,t}}(e.font),e.asciiWidthMapTried=!0),0<=t&&t<=127?null!=e.asciiWidthMap?e.asciiWidthMap[t]:e.asciiCharWidth:e.stWideCharWidth}function u(e,t){var r=e.strWidthCache,n=r.get(t);return null==n&&(n=o.yh.measureText(t,e.font).width,r.put(t,n)),n}function h(e,t,r,n){var a=u(s(t),e),o=m(t),l=d(0,a,r),c=f(0,o,n);return new i.Ay(l,c,a,o)}function p(e,t,r,n){var a=((e||"")+"").split("\n");if(1===a.length)return h(a[0],t,r,n);for(var o=new i.Ay(0,0,0,0),s=0;s<a.length;s++){var l=h(a[s],t,r,n);0===s?o.copy(l):o.union(l)}return o}function d(e,t,r,n){return"right"===r?n?e+=t:e-=t:"center"===r&&(n?e+=t/2:e-=t/2),e}function f(e,t,r,n){return"middle"===r?n?e+=t/2:e-=t/2:"bottom"===r&&(n?e+=t:e-=t),e}function m(e){return s(e).stWideCharWidth}function g(e,t){return"string"==typeof e?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function A(e,t,r){var n=t.position||"inside",i=null!=t.distance?t.distance:5,a=r.height,o=r.width,s=a/2,l=r.x,c=r.y,u="left",h="top";if(n instanceof Array)l+=g(n[0],r.width),c+=g(n[1],r.height),u=null,h=null;else switch(n){case"left":l-=i,c+=s,u="right",h="middle";break;case"right":l+=i+o,c+=s,h="middle";break;case"top":l+=o/2,c-=i,u="center",h="bottom";break;case"bottom":l+=o/2,c+=a+i,u="center";break;case"inside":l+=o/2,c+=s,u="center",h="middle";break;case"insideLeft":l+=i,c+=s,h="middle";break;case"insideRight":l+=o-i,c+=s,u="right",h="middle";break;case"insideTop":l+=o/2,c+=i,u="center";break;case"insideBottom":l+=o/2,c+=a-i,u="center",h="bottom";break;case"insideTopLeft":l+=i,c+=i;break;case"insideTopRight":l+=o-i,c+=i,u="right";break;case"insideBottomLeft":l+=i,c+=a-i,h="bottom";break;case"insideBottomRight":l+=o-i,c+=a-i,u="right",h="bottom"}return(e=e||{}).x=l,e.y=c,e.align=u,e.verticalAlign=h,e}r.d(t,{JK:()=>c,NO:()=>p,Qw:()=>s,X4:()=>A,ks:()=>m,l8:()=>u,ll:()=>d,lo:()=>g,sZ:()=>f})},29308(e,t,r){var n=r(45587),i=r(83509),a=r(26346),o=Math.min,s=Math.max,l=Math.abs,c=["x","y"],u=["width","height"],h=new a.A,p=new a.A,d=new a.A,f=new a.A,m=L(),g=m.minTv,A=m.maxTv,y=[0,0],v=function(){function e(e,t,r,n){R(this,e,t,r,n)}return e.set=function(e,t,r,n,i){return n<0&&(t+=n,n=-n),i<0&&(r+=i,i=-i),e.x=t,e.y=r,e.width=n,e.height=i,e},e.prototype.union=function(e){var t=o(e.x,this.x),r=o(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=s(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=s(e.y+e.height,this.y+this.height)-r:this.height=e.height,this.x=t,this.y=r},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(e){return x(n.vt(),this,e)},e.prototype.intersect=function(t,r,n){return e.intersect(this,t,r,n)},e.intersect=function(t,r,n,i){n&&a.A.set(n,0,0);var o=i&&i.outIntersectRect||null,s=i&&i.clamp;if(o&&(o.x=o.y=o.width=o.height=0/0),!t||!r)return!1;t instanceof e||(t=R(M,t.x,t.y,t.width,t.height)),r instanceof e||(r=R(S,r.x,r.y,r.width,r.height));var l=!!n;m.reset(i,l);var c=m.touchThreshold,u=t.x+c,h=t.x+t.width-c,p=t.y+c,d=t.y+t.height-c,f=r.x+c,v=r.x+r.width-c,b=r.y+c,x=r.y+r.height-c;if(u>h||p>d||f>v||b>x)return!1;var w=!(h<f||v<u||d<b||x<p);return(l||o)&&(y[0]=1/0,y[1]=0,O(u,h,f,v,0,l,o,s),O(p,d,b,x,1,l,o,s),l&&a.A.copy(n,w?m.useDir?m.dirMinTv:g:A)),w},e.contain=function(e,t,r){return t>=e.x&&t<=e.x+e.width&&r>=e.y&&r<=e.y+e.height},e.prototype.contain=function(t,r){return e.contain(this,t,r)},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(e){b(this,e)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return 0===this.width||0===this.height},e.create=function(t){return new e(t?t.x:0,t?t.y:0,t?t.width:0,t?t.height:0)},e.copy=function(e,t){return e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height,e},e.applyTransform=function(e,t,r){if(!r){e!==t&&b(e,t);return}if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var n=r[0],i=r[3],a=r[4],l=r[5];e.x=t.x*n+a,e.y=t.y*i+l,e.width=t.width*n,e.height=t.height*i,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}h.x=d.x=t.x,h.y=f.y=t.y,p.x=f.x=t.x+t.width,p.y=d.y=t.y+t.height,h.transform(r),f.transform(r),p.transform(r),d.transform(r),e.x=o(h.x,p.x,d.x,f.x),e.y=o(h.y,p.y,d.y,f.y);var c=s(h.x,p.x,d.x,f.x),u=s(h.y,p.y,d.y,f.y);e.width=c-e.x,e.height=u-e.y},e.calculateTransform=function(e,t,r){var a=r.width/t.width,o=r.height/t.height;return e=n.D_(e||[]),n.Tl(e,e,i.hZ(w,-t.x,-t.y)),n.hs(e,e,i.hZ(w,a,o)),n.Tl(e,e,i.hZ(w,r.x,r.y)),e},e}();v.create;var R=v.set,b=v.copy,x=v.calculateTransform;v.applyTransform,v.contain;var M=new v(0,0,0,0),S=new v(0,0,0,0),w=[];function O(e,t,r,n,i,a,h,p){var d=l(t-r),f=l(n-e),v=o(d,f),R=c[i],b=c[1-i],x=u[i];t<r||n<e?d<f?(a&&(A[R]=-d),p&&(h[R]=t,h[x]=0)):(a&&(A[R]=f),p&&(h[R]=e,h[x]=0)):(h&&(h[R]=s(e,r),h[x]=o(t,n)-h[R]),a&&(v<y[0]||m.useDir)&&(y[0]=o(v,y[0]),(d<f||!m.bidirectional)&&(g[R]=d,g[b]=0,m.useDir&&m.calcDirMTV()),(d>=f||!m.bidirectional)&&(g[R]=-f,g[b]=0,m.useDir&&m.calcDirMTV())))}function L(){var e=0,t=new a.A,r=new a.A,n={minTv:new a.A,maxTv:new a.A,useDir:!1,dirMinTv:new a.A,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(i,a){n.touchThreshold=0,i&&null!=i.touchThreshold&&(n.touchThreshold=s(0,i.touchThreshold)),n.negativeSize=!1,a&&(n.minTv.set(1/0,1/0),n.maxTv.set(0,0),n.useDir=!1,i&&null!=i.direction&&(n.useDir=!0,n.dirMinTv.copy(n.minTv),r.copy(n.minTv),e=i.direction,n.bidirectional=null==i.bidirectional||!!i.bidirectional,n.bidirectional||t.set(Math.cos(e),Math.sin(e))))},calcDirMTV:function(){var a=n.minTv,o=n.dirMinTv,s=a.y*a.y+a.x*a.x,l=Math.sin(e),c=Math.cos(e),u=l*a.y+c*a.x;if(i(u)){i(a.x)&&i(a.y)&&o.set(0,0);return}(r.x=s*c/u,r.y=s*l/u,i(r.x)&&i(r.y))?o.set(0,0):(n.bidirectional||t.dot(r)>0)&&r.len()<o.len()&&o.copy(r)}};function i(e){return 1e-10>l(e)}return n}t.Ay=v,r.d(t,{bV:()=>L})},57861(e,t){t.A=function(){function e(e){e&&(this._$eventProcessor=e)}return e.prototype.on=function(e,t,r,n){this._$handlers||(this._$handlers={});var i=this._$handlers;if("function"==typeof t&&(n=r,r=t,t=null),!r||!e)return this;var a=this._$eventProcessor;null!=t&&a&&a.normalizeQuery&&(t=a.normalizeQuery(t)),i[e]||(i[e]=[]);for(var o=0;o<i[e].length;o++)if(i[e][o].h===r)return this;var s={h:r,query:t,ctx:n||this,callAtLast:r.zrEventfulCallAtLast},l=i[e].length-1,c=i[e][l];return c&&c.callAtLast?i[e].splice(l,0,s):i[e].push(s),this},e.prototype.isSilent=function(e){var t=this._$handlers;return!t||!t[e]||!t[e].length},e.prototype.off=function(e,t){var r=this._$handlers;if(!r)return this;if(!e)return this._$handlers={},this;if(t){if(r[e]){for(var n=[],i=0,a=r[e].length;i<a;i++)r[e][i].h!==t&&n.push(r[e][i]);r[e]=n}r[e]&&0===r[e].length&&delete r[e]}else delete r[e];return this},e.prototype.trigger=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(!this._$handlers)return this;var n=this._$handlers[e],i=this._$eventProcessor;if(n)for(var a=t.length,o=n.length,s=0;s<o;s++){var l=n[s];if(!i||!i.filter||null==l.query||i.filter(e,l.query))switch(a){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,t[0]);break;case 2:l.h.call(l.ctx,t[0],t[1]);break;default:l.h.apply(l.ctx,t)}}return i&&i.afterTrigger&&i.afterTrigger(e),this},e.prototype.triggerWithContext=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(!this._$handlers)return this;var n=this._$handlers[e],i=this._$eventProcessor;if(n)for(var a=t.length,o=t[a-1],s=n.length,l=0;l<s;l++){var c=n[l];if(!i||!i.filter||null==c.query||i.filter(e,c.query))switch(a){case 0:c.h.call(o);break;case 1:c.h.call(o,t[0]);break;case 2:c.h.call(o,t[0],t[1]);break;default:c.h.apply(o,t.slice(1,a-1))}}return i&&i.afterTrigger&&i.afterTrigger(e),this},e}()},60501(e,t){var r=function(e){this.value=e},n=function(){function e(){this._len=0}return e.prototype.insert=function(e){var t=new r(e);return this.insertEntry(t),t},e.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},e.prototype.remove=function(e){var t=e.prev,r=e.next;t?t.next=r:this.head=r,r?r.prev=t:this.tail=t,e.next=e.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}();t.Ay=function(){function e(e){this._list=new n,this._maxSize=10,this._map={},this._maxSize=e}return e.prototype.put=function(e,t){var n=this._list,i=this._map,a=null;if(null==i[e]){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete i[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=t:s=new r(t),s.key=e,n.insertEntry(s),i[e]=s}return a},e.prototype.get=function(e){var t=this._map[e],r=this._list;if(null!=t)return t!==r.tail&&(r.remove(t),r.insertEntry(t)),t.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}()},84716(e,t,r){var n=r(26346),i=r(29308),a=Math.min,o=Math.max,s=Math.abs,l=[0,0],c=[0,0],u=(0,i.bV)(),h=u.minTv,p=u.maxTv;t.A=function(){function e(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var r=0;r<4;r++)this._corners[r]=new n.A;for(var r=0;r<2;r++)this._axes[r]=new n.A;e&&this.fromBoundingRect(e,t)}return e.prototype.fromBoundingRect=function(e,t){var r=this._corners,i=this._axes,a=e.x,o=e.y,s=a+e.width,l=o+e.height;if(r[0].set(a,o),r[1].set(s,o),r[2].set(s,l),r[3].set(a,l),t)for(var c=0;c<4;c++)r[c].transform(t);n.A.sub(i[0],r[1],r[0]),n.A.sub(i[1],r[3],r[0]),i[0].normalize(),i[1].normalize();for(var c=0;c<2;c++)this._origin[c]=i[c].dot(r[0])},e.prototype.intersect=function(e,t,r){var i=!0,a=!t;return(t&&n.A.set(t,0,0),u.reset(r,!a),!this._intersectCheckOneSide(this,e,a,1)&&(i=!1,a)||!this._intersectCheckOneSide(e,this,a,-1)&&(i=!1,a))?i:(a||u.negativeSize||n.A.copy(t,i?u.useDir?u.dirMinTv:h:p),i)},e.prototype._intersectCheckOneSide=function(e,t,r,i){for(var o=!0,d=0;d<2;d++){var f=e._axes[d];if(e._getProjMinMaxOnAxis(d,e._corners,l),e._getProjMinMaxOnAxis(d,t._corners,c),u.negativeSize||l[1]<c[0]||l[0]>c[1]){if(o=!1,u.negativeSize||r)return o;var m=s(c[0]-l[1]),g=s(l[0]-c[1]);a(m,g)>p.len()&&(m<g?n.A.scale(p,f,-m*i):n.A.scale(p,f,g*i))}else if(!r){var m=s(c[0]-l[1]),g=s(l[0]-c[1]);(u.useDir||a(m,g)<h.len())&&((m<g||!u.bidirectional)&&(n.A.scale(h,f,m*i),u.useDir&&u.calcDirMTV()),(m>=g||!u.bidirectional)&&(n.A.scale(h,f,-g*i),u.useDir&&u.calcDirMTV()))}}return o},e.prototype._getProjMinMaxOnAxis=function(e,t,r){for(var n=this._axes[e],i=this._origin,s=t[0].dot(n)+i[e],l=s,c=s,h=1;h<t.length;h++){var p=t[h].dot(n)+i[e];l=a(p,l),c=o(p,c)}r[0]=l+u.touchThreshold,r[1]=c-u.touchThreshold,u.negativeSize=r[1]<r[0]},e}()},15938(e,t,r){r.d(t,{A:()=>X,q:()=>F});var n=r(83509),i=r(29308),a=r(73098),o=r(89259),s=Math.min,l=Math.max,c=Math.sin,u=Math.cos,h=2*Math.PI,p=n.vt(),d=n.vt(),f=n.vt();function m(e,t,r,n,i,a){i[0]=s(e,r),i[1]=s(t,n),a[0]=l(e,r),a[1]=l(t,n)}var g=[],A=[],y={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},v=[],R=[],b=[],x=[],M=[],S=[],w=Math.min,O=Math.max,L=Math.cos,N=Math.sin,_=Math.abs,T=Math.PI,P=2*T,C="u">typeof Float32Array,I=[];function k(e){return Math.round(e/T*1e8)/1e8%2*T}function F(e,t){var r=k(e[0]);r<0&&(r+=P);var n=r-e[0],i=e[1];i+=n,!t&&i-r>=P?i=r+P:t&&r-i>=P?i=r-P:!t&&r>i?i=r+(P-k(r-i)):t&&r<i&&(i=r-(P-k(i-r))),e[0]=r,e[1]=i}var X=function(){var e;function t(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}return t.prototype.increaseVersion=function(){this._version++},t.prototype.getVersion=function(){return this._version},t.prototype.setScale=function(e,t,r){(r=r||0)>0&&(this._ux=_(r/a.Y5/e)||0,this._uy=_(r/a.Y5/t)||0)},t.prototype.setDPR=function(e){this.dpr=e},t.prototype.setContext=function(e){this._ctx=e},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(y.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},t.prototype.lineTo=function(e,t){var r=_(e-this._xi),n=_(t-this._yi),i=r>this._ux||n>this._uy;if(this.addData(y.L,e,t),this._ctx&&i&&this._ctx.lineTo(e,t),i)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var a=r*r+n*n;a>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=a)}return this},t.prototype.bezierCurveTo=function(e,t,r,n,i,a){return this._drawPendingPt(),this.addData(y.C,e,t,r,n,i,a),this._ctx&&this._ctx.bezierCurveTo(e,t,r,n,i,a),this._xi=i,this._yi=a,this},t.prototype.quadraticCurveTo=function(e,t,r,n){return this._drawPendingPt(),this.addData(y.Q,e,t,r,n),this._ctx&&this._ctx.quadraticCurveTo(e,t,r,n),this._xi=r,this._yi=n,this},t.prototype.arc=function(e,t,r,n,i,a){this._drawPendingPt(),I[0]=n,I[1]=i,F(I,a),n=I[0];var o=(i=I[1])-n;return this.addData(y.A,e,t,r,r,n,o,0,+!a),this._ctx&&this._ctx.arc(e,t,r,n,i,a),this._xi=L(i)*r+e,this._yi=N(i)*r+t,this},t.prototype.arcTo=function(e,t,r,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,r,n,i),this},t.prototype.rect=function(e,t,r,n){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,r,n),this.addData(y.R,e,t,r,n),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(y.Z);var e=this._ctx,t=this._x0,r=this._y0;return e&&e.closePath(),this._xi=t,this._yi=r,this},t.prototype.fill=function(e){e&&e.fill(),this.toStatic()},t.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(e){if(this._saveData){var t=e.length;!(this.data&&this.data.length===t)&&C&&(this.data=new Float32Array(t));for(var r=0;r<t;r++)this.data[r]=e[r];this._len=t}},t.prototype.appendPath=function(e){if(this._saveData){e instanceof Array||(e=[e]);for(var t=e.length,r=0,n=this._len,i=0;i<t;i++)r+=e[i].len();var a=this.data;if(C&&(a instanceof Float32Array||!a)&&(this.data=new Float32Array(n+r),n>0&&a))for(var o=0;o<n;o++)this.data[o]=a[o];for(var i=0;i<t;i++)for(var s=e[i].data,o=0;o<s.length;o++)this.data[n++]=s[o];this._len=n}},t.prototype.addData=function(e,t,r,n,i,a,o,s,l){if(this._saveData){var c=this.data;this._len+arguments.length>c.length&&(this._expandData(),c=this.data);for(var u=0;u<arguments.length;u++)c[this._len++]=arguments[u]}},t.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t<this._len;t++)e[t]=this.data[t];this.data=e}},t.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,C&&this._len>11&&(this.data=new Float32Array(e)))}},t.prototype.getBoundingRect=function(){b[0]=b[1]=M[0]=M[1]=Number.MAX_VALUE,x[0]=x[1]=S[0]=S[1]=-Number.MAX_VALUE;var e,t=this.data,r=0,a=0,v=0,R=0;for(e=0;e<this._len;){var w=t[e++],O=1===e;switch(O&&(r=t[e],a=t[e+1],v=r,R=a),w){case y.M:r=v=t[e++],a=R=t[e++],M[0]=v,M[1]=R,S[0]=v,S[1]=R;break;case y.L:m(r,a,t[e],t[e+1],M,S),r=t[e++],a=t[e++];break;case y.C:!function(e,t,r,n,i,a,c,u,h,p){var d=o.lX,f=o.Yb,m=d(e,r,i,c,g);h[0]=1/0,h[1]=1/0,p[0]=-1/0,p[1]=-1/0;for(var y=0;y<m;y++){var v=f(e,r,i,c,g[y]);h[0]=s(v,h[0]),p[0]=l(v,p[0])}m=d(t,n,a,u,A);for(var y=0;y<m;y++){var R=f(t,n,a,u,A[y]);h[1]=s(R,h[1]),p[1]=l(R,p[1])}h[0]=s(e,h[0]),p[0]=l(e,p[0]),h[0]=s(c,h[0]),p[0]=l(c,p[0]),h[1]=s(t,h[1]),p[1]=l(t,p[1]),h[1]=s(u,h[1]),p[1]=l(u,p[1])}(r,a,t[e++],t[e++],t[e++],t[e++],t[e],t[e+1],M,S),r=t[e++],a=t[e++];break;case y.Q:!function(e,t,r,n,i,a,c,u){var h=o.gC,p=o.k3,d=l(s(h(e,r,i),1),0),f=l(s(h(t,n,a),1),0),m=p(e,r,i,d),g=p(t,n,a,f);c[0]=s(e,i,m),c[1]=s(t,a,g),u[0]=l(e,i,m),u[1]=l(t,a,g)}(r,a,t[e++],t[e++],t[e],t[e+1],M,S),r=t[e++],a=t[e++];break;case y.A:var _=t[e++],T=t[e++],P=t[e++],C=t[e++],I=t[e++],k=t[e++]+I;e+=1;var F=!t[e++];O&&(v=L(I)*P+_,R=N(I)*C+T),function(e,t,r,i,a,o,s,l,m){var g=n.jk,A=n.T9,y=Math.abs(a-o);if(y%h<1e-4&&y>1e-4){l[0]=e-r,l[1]=t-i,m[0]=e+r,m[1]=t+i;return}if(p[0]=u(a)*r+e,p[1]=c(a)*i+t,d[0]=u(o)*r+e,d[1]=c(o)*i+t,g(l,p,d),A(m,p,d),(a%=h)<0&&(a+=h),(o%=h)<0&&(o+=h),a>o&&!s?o+=h:a<o&&s&&(a+=h),s){var v=o;o=a,a=v}for(var R=0;R<o;R+=Math.PI/2)R>a&&(f[0]=u(R)*r+e,f[1]=c(R)*i+t,g(l,f,l),A(m,f,m))}(_,T,P,C,I,k,F,M,S),r=L(k)*P+_,a=N(k)*C+T;break;case y.R:m(v=r=t[e++],R=a=t[e++],v+t[e++],R+t[e++],M,S);break;case y.Z:r=v,a=R}n.jk(b,b,M),n.T9(x,x,S)}return 0===e&&(b[0]=b[1]=x[0]=x[1]=0),new i.Ay(b[0],b[1],x[0]-b[0],x[1]-b[1])},t.prototype._calculateLength=function(){var e=this.data,t=this._len,r=this._ux,n=this._uy,i=0,a=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var c=this._pathSegLen,u=0,h=0,p=0;p<t;){var d=e[p++],f=1===p;f&&(i=e[p],a=e[p+1],s=i,l=a);var m=-1;switch(d){case y.M:i=s=e[p++],a=l=e[p++];break;case y.L:var g=e[p++],A=e[p++],v=g-i,R=A-a;(_(v)>r||_(R)>n||p===t-1)&&(m=Math.sqrt(v*v+R*R),i=g,a=A);break;case y.C:var b=e[p++],x=e[p++],g=e[p++],A=e[p++],M=e[p++],S=e[p++];m=(0,o.h0)(i,a,b,x,g,A,M,S,10),i=M,a=S;break;case y.Q:var b=e[p++],x=e[p++],g=e[p++],A=e[p++];m=(0,o.d8)(i,a,b,x,g,A,10),i=g,a=A;break;case y.A:var T=e[p++],C=e[p++],I=e[p++],k=e[p++],F=e[p++],X=e[p++],U=X+F;p+=1,f&&(s=L(F)*I+T,l=N(F)*k+C),m=O(I,k)*w(P,Math.abs(X)),i=L(U)*I+T,a=N(U)*k+C;break;case y.R:s=i=e[p++],l=a=e[p++],m=2*e[p++]+2*e[p++];break;case y.Z:var v=s-i,R=l-a;m=Math.sqrt(v*v+R*R),i=s,a=l}m>=0&&(c[h++]=m,u+=m)}return this._pathLen=u,u},t.prototype.rebuildPath=function(e,t){var r,n,i,a,s,l,c,u,h,p,d=this.data,f=this._ux,m=this._uy,g=this._len,A=t<1,b=0,x=0,M=0;if(!A||(this._pathSegLen||this._calculateLength(),c=this._pathSegLen,u=t*this._pathLen))c:for(var S=0;S<g;){var T=d[S++],P=1===S;switch(P&&(i=d[S],a=d[S+1],r=i,n=a),T!==y.L&&M>0&&(e.lineTo(h,p),M=0),T){case y.M:r=i=d[S++],n=a=d[S++],e.moveTo(i,a);break;case y.L:s=d[S++],l=d[S++];var C=_(s-i),I=_(l-a);if(C>f||I>m){if(A){var k=c[x++];if(b+k>u){var F=(u-b)/k;e.lineTo(i*(1-F)+s*F,a*(1-F)+l*F);break c}b+=k}e.lineTo(s,l),i=s,a=l,M=0}else{var X=C*C+I*I;X>M&&(h=s,p=l,M=X)}break;case y.C:var U=d[S++],W=d[S++],V=d[S++],E=d[S++],Y=d[S++],D=d[S++];if(A){var k=c[x++];if(b+k>u){var F=(u-b)/k;(0,o.YT)(i,U,V,Y,F,v),(0,o.YT)(a,W,E,D,F,R),e.bezierCurveTo(v[1],R[1],v[2],R[2],v[3],R[3]);break c}b+=k}e.bezierCurveTo(U,W,V,E,Y,D),i=Y,a=D;break;case y.Q:var U=d[S++],W=d[S++],V=d[S++],E=d[S++];if(A){var k=c[x++];if(b+k>u){var F=(u-b)/k;(0,o.kx)(i,U,V,F,v),(0,o.kx)(a,W,E,F,R),e.quadraticCurveTo(v[1],R[1],v[2],R[2]);break c}b+=k}e.quadraticCurveTo(U,W,V,E),i=V,a=E;break;case y.A:var Q=d[S++],$=d[S++],B=d[S++],Z=d[S++],K=d[S++],G=d[S++],H=d[S++],z=!d[S++],J=B>Z?B:Z,j=_(B-Z)>.001,q=K+G,ee=!1;if(A){var k=c[x++];b+k>u&&(q=K+G*(u-b)/k,ee=!0),b+=k}if(j&&e.ellipse?e.ellipse(Q,$,B,Z,H,K,q,z):e.arc(Q,$,J,K,q,z),ee)break c;P&&(r=L(K)*B+Q,n=N(K)*Z+$),i=L(q)*B+Q,a=N(q)*Z+$;break;case y.R:r=i=d[S],n=a=d[S+1],s=d[S++],l=d[S++];var et=d[S++],er=d[S++];if(A){var k=c[x++];if(b+k>u){var en=u-b;e.moveTo(s,l),e.lineTo(s+w(en,et),l),(en-=et)>0&&e.lineTo(s+et,l+w(en,er)),(en-=er)>0&&e.lineTo(s+O(et-en,0),l+er),(en-=et)>0&&e.lineTo(s,l+O(er-en,0));break c}b+=k}e.rect(s,l,et,er);break;case y.Z:if(A){var k=c[x++];if(b+k>u){var F=(u-b)/k;e.lineTo(i*(1-F)+r*F,a*(1-F)+n*F);break c}b+=k}e.closePath(),i=r,a=n}}},t.prototype.clone=function(){var e=new t,r=this.data;return e.data=r.slice?r.slice():Array.prototype.slice.call(r),e._len=this._len,e},t.prototype.canSave=function(){return!!this._saveData},t.CMD=y,t.initDefaultProps=void((e=t.prototype)._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0),t}()},26346(e,t){t.A=function(){function e(e,t){this.x=e||0,this.y=t||0}return e.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(e,t){return this.x=e,this.y=t,this},e.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},e.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},e.prototype.scale=function(e){this.x*=e,this.y*=e},e.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},e.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},e.prototype.dot=function(e){return this.x*e.x+this.y*e.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},e.prototype.distance=function(e){var t=this.x-e.x,r=this.y-e.y;return Math.sqrt(t*t+r*r)},e.prototype.distanceSquare=function(e){var t=this.x-e.x,r=this.y-e.y;return t*t+r*r},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(e){if(e){var t=this.x,r=this.y;return this.x=e[0]*t+e[2]*r+e[4],this.y=e[1]*t+e[3]*r+e[5],this}},e.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},e.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},e.set=function(e,t,r){e.x=t,e.y=r},e.copy=function(e,t){e.x=t.x,e.y=t.y},e.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},e.lenSquare=function(e){return e.x*e.x+e.y*e.y},e.dot=function(e,t){return e.x*t.x+e.y*t.y},e.add=function(e,t,r){e.x=t.x+r.x,e.y=t.y+r.y},e.sub=function(e,t,r){e.x=t.x-r.x,e.y=t.y-r.y},e.scale=function(e,t,r){e.x=t.x*r,e.y=t.y*r},e.scaleAndAdd=function(e,t,r,n){e.x=t.x+r.x*n,e.y=t.y+r.y*n},e.lerp=function(e,t,r,n){var i=1-n;e.x=i*t.x+n*r.x,e.y=i*t.y+n*r.y},e}()},92836(e,t,r){var n=r(45587),i=r(98026),a=r(83509),o=n.D_;function s(e){return e>5e-5||e<-5e-5}var l=[],c=[],u=n.vt(),h=Math.abs,p=function(){var e;function t(){}return t.prototype.getLocalTransform=function(e){return d(this,e)},t.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},t.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},t.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},t.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},t.prototype.needLocalTransform=function(){return s(this.rotation)||s(this.x)||s(this.y)||s(this.scaleX-1)||s(this.scaleY-1)||s(this.skewX)||s(this.skewY)},t.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),r=this.transform;if(!(t||e)){r&&(o(r),this.invTransform=null);return}r=r||n.vt(),t?this.getLocalTransform(r):o(r),e&&(t?n.lK(r,e,r):n.C(r,e)),this.transform=r,this._resolveGlobalScaleRatio(r),this.invTransform=this.invTransform||n.vt(),n.B8(this.invTransform,r)},t.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(null!=t&&1!==t){this.getGlobalScale(l);var r=l[0]<0?-1:1,n=l[1]<0?-1:1,i=((l[0]-r)*t+r)/l[0]||0,a=((l[1]-n)*t+n)/l[1]||0;e[0]*=i,e[1]*=i,e[2]*=a,e[3]*=a}},t.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},t.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],r=e[2]*e[2]+e[3]*e[3],n=Math.atan2(e[1],e[0]),i=Math.PI/2+n-Math.atan2(e[3],e[2]);r=Math.sqrt(r)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-n,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=r,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||n.vt(),n.lK(c,e.invTransform,t),t=c);var r=this.originX,i=this.originY;(r||i)&&(u[4]=r,u[5]=i,n.lK(c,t,u),c[4]-=r,c[5]-=i,t=c),this.setLocalTransform(t)}},t.prototype.getGlobalScale=function(e){var t=this.transform;return(e=e||[],t)?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1])):(e[0]=1,e[1]=1),e},t.prototype.transformCoordToLocal=function(e,t){var r=[e,t],n=this.invTransform;return n&&a.NW(r,r,n),r},t.prototype.transformCoordToGlobal=function(e,t){var r=[e,t],n=this.transform;return n&&a.NW(r,r,n),r},t.prototype.getLineScale=function(){var e=this.transform;return e&&h(e[0]-1)>1e-10&&h(e[3]-1)>1e-10?Math.sqrt(h(e[0]*e[3]-e[2]*e[1])):1},t.prototype.copyTransform=function(e){m(this,e)},t.getLocalTransform=function(e,t){t=t||[];var r=e.originX||0,i=e.originY||0,a=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,c=e.rotation||0,u=e.x,h=e.y,p=e.skewX?Math.tan(e.skewX):0,d=e.skewY?Math.tan(-e.skewY):0;if(r||i||s||l){var f=r+s,m=i+l;t[4]=-f*a-p*m*o,t[5]=-m*o-d*f*a}else t[4]=t[5]=0;return t[0]=a,t[3]=o,t[1]=d*a,t[2]=p*o,c&&n.e$(t,t,c),t[4]+=r+u,t[5]+=i+h,t},t.initDefaultProps=void((e=t.prototype).scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0),t}(),d=p.getLocalTransform,f=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function m(e,t){return(0,i.Ac)(e,t,f)}t.Ay=p,r.d(t,{IT:()=>m,Wx:()=>f})},89259(e,t,r){var n=r(83509),i=Math.pow,a=Math.sqrt,o=a(3),s=1/3,l=(0,n.vt)(),c=(0,n.vt)(),u=(0,n.vt)();function h(e){return e>-1e-8&&e<1e-8}function p(e){return e>1e-8||e<-1e-8}function d(e,t,r,n,i){var a=1-i;return a*a*(a*e+3*i*t)+i*i*(i*n+3*a*r)}function f(e,t,r,n,i){var a=1-i;return 3*(((t-e)*a+2*(r-t)*i)*a+(n-r)*i*i)}function m(e,t,r,n,l,c){var u=n+3*(t-r)-e,p=3*(r-2*t+e),d=3*(t-e),f=e-l,m=p*p-3*u*d,g=p*d-9*u*f,A=d*d-3*p*f,y=0;if(h(m)&&h(g))if(h(p))c[0]=0;else{var v=-d/p;v>=0&&v<=1&&(c[y++]=v)}else{var R=g*g-4*m*A;if(h(R)){var b=g/m,v=-p/u+b,x=-b/2;v>=0&&v<=1&&(c[y++]=v),x>=0&&x<=1&&(c[y++]=x)}else if(R>0){var M=a(R),S=m*p+1.5*u*(-g+M),w=m*p+1.5*u*(-g-M),v=(-p-((S=S<0?-i(-S,s):i(S,s))+(w=w<0?-i(-w,s):i(w,s))))/(3*u);v>=0&&v<=1&&(c[y++]=v)}else{var O=Math.acos((2*m*p-3*u*g)/(2*a(m*m*m)))/3,L=a(m),N=Math.cos(O),v=(-p-2*L*N)/(3*u),x=(-p+L*(N+o*Math.sin(O)))/(3*u),_=(-p+L*(N-o*Math.sin(O)))/(3*u);v>=0&&v<=1&&(c[y++]=v),x>=0&&x<=1&&(c[y++]=x),_>=0&&_<=1&&(c[y++]=_)}}return y}function g(e,t,r,n,i){var o=6*r-12*t+6*e,s=9*t+3*n-3*e-9*r,l=3*t-3*e,c=0;if(h(s)){if(p(o)){var u=-l/o;u>=0&&u<=1&&(i[c++]=u)}}else{var d=o*o-4*s*l;if(h(d))i[0]=-o/(2*s);else if(d>0){var f=a(d),u=(-o+f)/(2*s),m=(-o-f)/(2*s);u>=0&&u<=1&&(i[c++]=u),m>=0&&m<=1&&(i[c++]=m)}}return c}function A(e,t,r,n,i,a){var o=(t-e)*i+e,s=(r-t)*i+t,l=(n-r)*i+r,c=(s-o)*i+o,u=(l-s)*i+s,h=(u-c)*i+c;a[0]=e,a[1]=o,a[2]=c,a[3]=h,a[4]=h,a[5]=u,a[6]=l,a[7]=n}function y(e,t,r,i,o,s,h,p,f,m,g){var A,y,v,R,b,x=.005,M=1/0;l[0]=f,l[1]=m;for(var S=0;S<1;S+=.05)c[0]=d(e,r,o,h,S),c[1]=d(t,i,s,p,S),(R=(0,n.oi)(l,c))<M&&(A=S,M=R);M=1/0;for(var w=0;w<32&&!(x<1e-4);w++)y=A-x,v=A+x,c[0]=d(e,r,o,h,y),c[1]=d(t,i,s,p,y),R=(0,n.oi)(c,l),y>=0&&R<M?(A=y,M=R):(u[0]=d(e,r,o,h,v),u[1]=d(t,i,s,p,v),b=(0,n.oi)(u,l),v<=1&&b<M?(A=v,M=b):x*=.5);return g&&(g[0]=d(e,r,o,h,A),g[1]=d(t,i,s,p,A)),a(M)}function v(e,t,r,n,i,a,o,s,l){for(var c=e,u=t,h=0,p=1/l,f=1;f<=l;f++){var m=f*p,g=d(e,r,i,o,m),A=d(t,n,a,s,m),y=g-c,v=A-u;h+=Math.sqrt(y*y+v*v),c=g,u=A}return h}function R(e,t,r,n){var i=1-n;return i*(i*e+2*n*t)+n*n*r}function b(e,t,r,n){return 2*((1-n)*(t-e)+n*(r-t))}function x(e,t,r,n,i){var o=e-2*t+r,s=2*(t-e),l=e-n,c=0;if(h(o)){if(p(s)){var u=-l/s;u>=0&&u<=1&&(i[c++]=u)}}else{var d=s*s-4*o*l;if(h(d)){var u=-s/(2*o);u>=0&&u<=1&&(i[c++]=u)}else if(d>0){var f=a(d),u=(-s+f)/(2*o),m=(-s-f)/(2*o);u>=0&&u<=1&&(i[c++]=u),m>=0&&m<=1&&(i[c++]=m)}}return c}function M(e,t,r){var n=e+r-2*t;return 0===n?.5:(e-t)/n}function S(e,t,r,n,i){var a=(t-e)*n+e,o=(r-t)*n+t,s=(o-a)*n+a;i[0]=e,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=r}function w(e,t,r,i,o,s,h,p,d){var f,m=.005,g=1/0;l[0]=h,l[1]=p;for(var A=0;A<1;A+=.05){c[0]=R(e,r,o,A),c[1]=R(t,i,s,A);var y=(0,n.oi)(l,c);y<g&&(f=A,g=y)}g=1/0;for(var v=0;v<32&&!(m<1e-4);v++){var b=f-m,x=f+m;c[0]=R(e,r,o,b),c[1]=R(t,i,s,b);var y=(0,n.oi)(c,l);if(b>=0&&y<g)f=b,g=y;else{u[0]=R(e,r,o,x),u[1]=R(t,i,s,x);var M=(0,n.oi)(u,l);x<=1&&M<g?(f=x,g=M):m*=.5}}return d&&(d[0]=R(e,r,o,f),d[1]=R(t,i,s,f)),a(g)}function O(e,t,r,n,i,a,o){for(var s=e,l=t,c=0,u=1/o,h=1;h<=o;h++){var p=h*u,d=R(e,r,i,p),f=R(t,n,a,p),m=d-s,g=f-l;c+=Math.sqrt(m*m+g*g),s=d,l=f}return c}r.d(t,{Et:()=>y,YT:()=>A,Yb:()=>d,_E:()=>m,d8:()=>O,gC:()=>M,h0:()=>v,k3:()=>R,kh:()=>w,kx:()=>S,lX:()=>g,qY:()=>x,rD:()=>f,z7:()=>b})},51254(e,t,r){r.d(t,{Me:()=>d,ot:()=>u,oq:()=>c});var n=r(38123),i=Math.log(2);function a(e,t,r,n,o,s){var l=n+"-"+o,c=e.length;if(s.hasOwnProperty(l))return s[l];if(1===t){var u=Math.round(Math.log((1<<c)-1&~o)/i);return e[r][u]}for(var h=n|1<<r,p=r+1;n&1<<p;)p++;for(var d=0,f=0,m=0;f<c;f++){var g=1<<f;!(g&o)&&(d+=(m%2?-1:1)*e[r][f]*a(e,t-1,p,h,o|g,s),m++)}return s[l]=d,d}function o(e,t){var r=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],n={},i=a(r,8,0,0,0,n);if(0!==i){for(var o=[],s=0;s<8;s++)for(var l=0;l<8;l++)null==o[l]&&(o[l]=0),o[l]+=((s+l)%2?-1:1)*a(r,7,+(0===s),1<<s,1<<l,n)/i*t[s];return function(e,t,r){var n=t*o[6]+r*o[7]+1;e[0]=(t*o[0]+r*o[1]+o[2])/n,e[1]=(t*o[3]+r*o[4]+o[5])/n}}}var s=r(98026),l="___zrEVENTSAVED";function c(e,t,r,i,a){if(t.getBoundingClientRect&&n.A.domSupported&&!u(t)){var c=t[l]||(t[l]={}),h=function(e,t,r){for(var n=r?"invTrans":"trans",i=t[n],a=t.srcCoords,s=[],l=[],c=!0,u=0;u<4;u++){var h=e[u].getBoundingClientRect(),p=2*u,d=h.left,f=h.top;s.push(d,f),c=c&&a&&d===a[p]&&f===a[p+1],l.push(e[u].offsetLeft,e[u].offsetTop)}return c&&i?i:(t.srcCoords=s,t[n]=r?o(l,s):o(s,l))}(function(e,t){var r=t.markers;if(r)return r;r=t.markers=[];for(var n=["left","right"],i=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),l=o.style,c=a%2,u=(a>>1)%2;l.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[c]+":0",i[u]+":0",n[1-c]+":auto",i[1-u]+":auto",""].join("!important;"),e.appendChild(o),r.push(o)}return t.clearMarkers=function(){(0,s.__)(r,function(e){e.parentNode&&e.parentNode.removeChild(e)})},r}(t,c),c,a);if(h)return h(e,r,i),!0}return!1}function u(e){return"CANVAS"===e.nodeName.toUpperCase()}var h=/([&<>"'])/g,p={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function d(e){return null==e?"":(e+"").replace(h,function(e,t){return p[t]})}},38123(e,t){var r=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},n=new function(){this.browser=new r,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow="u">typeof window};"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(n.wxa=!0,n.touchEventsSupported=!0):"u"<typeof document&&"u">typeof self?n.worker=!0:!n.hasGlobalWindow||"Deno"in window||"u">typeof navigator&&"string"==typeof navigator.userAgent&&navigator.userAgent.indexOf("Node.js")>-1?(n.node=!0,n.svgSupported=!0):function(e,t){var r=t.browser,n=e.match(/Firefox\/([\d.]+)/),i=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),a=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);if(n&&(r.firefox=!0,r.version=n[1]),i&&(r.ie=!0,r.version=i[1]),a&&(r.edge=!0,r.version=a[1],r.newEdge=+a[1].split(".")[0]>18),o&&(r.weChat=!0),t.svgSupported="u">typeof SVGRect,t.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,t.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11),t.domSupported="u">typeof document){var s=document.documentElement.style;t.transform3dSupported=(r.ie&&"transition"in s||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||r.ie&&+r.version>=9}}(navigator.userAgent,n),t.A=n},35452(e,t,r){var n=r(38123),i=r(51254),a=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,o=[],s=n.A.browser.firefox&&39>+n.A.browser.version.split(".")[0];function l(e,t,r,n){return r=r||{},n?c(e,t,r):s&&null!=t.layerX&&t.layerX!==t.offsetX?(r.zrX=t.layerX,r.zrY=t.layerY):null!=t.offsetX?(r.zrX=t.offsetX,r.zrY=t.offsetY):c(e,t,r),r}function c(e,t,r){if(n.A.domSupported&&e.getBoundingClientRect){var a=t.clientX,s=t.clientY;if((0,i.ot)(e)){var l=e.getBoundingClientRect();r.zrX=a-l.left,r.zrY=s-l.top;return}if((0,i.oq)(o,e,a,s)){r.zrX=o[0],r.zrY=o[1];return}}r.zrX=r.zrY=0}function u(e){return e||window.event}function h(e,t,r){if(null!=(t=u(t)).zrX)return t;var n=t.type;if(n&&n.indexOf("touch")>=0){var i="touchend"!==n?t.targetTouches[0]:t.changedTouches[0];i&&l(e,i,t,r)}else{l(e,t,t,r);var o=function(e){var t=e.wheelDelta;if(t)return t;var r=e.deltaX,n=e.deltaY;return null==r||null==n?t:3*(0!==n?Math.abs(n):Math.abs(r))*(n>0?-1:n<0?1:r>0?-1:1)}(t);t.zrDelta=o?o/120:-(t.detail||0)/3}var s=t.button;return null==t.which&&void 0!==s&&a.test(t.type)&&(t.which=1&s?1:2&s?3:4&s?2:0),t}function p(e,t,r,n){e.addEventListener(t,r,n)}function d(e,t,r,n){e.removeEventListener(t,r,n)}var f=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};r.d(t,{Yo:()=>l,ds:()=>f,e0:()=>h,f:()=>d,mK:()=>u,q2:()=>p})},45587(e,t,r){function n(){return[1,0,0,1,0,0]}function i(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function a(e,t){return 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}function o(e,t,r){var n=t[0]*r[0]+t[2]*r[1],i=t[1]*r[0]+t[3]*r[1],a=t[0]*r[2]+t[2]*r[3],o=t[1]*r[2]+t[3]*r[3],s=t[0]*r[4]+t[2]*r[5]+t[4],l=t[1]*r[4]+t[3]*r[5]+t[5];return e[0]=n,e[1]=i,e[2]=a,e[3]=o,e[4]=s,e[5]=l,e}function s(e,t,r){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+r[0],e[5]=t[5]+r[1],e}function l(e,t,r,n){void 0===n&&(n=[0,0]);var i=t[0],a=t[2],o=t[4],s=t[1],l=t[3],c=t[5],u=Math.sin(r),h=Math.cos(r);return e[0]=i*h+s*u,e[1]=-i*u+s*h,e[2]=a*h+l*u,e[3]=-a*u+h*l,e[4]=h*(o-n[0])+u*(c-n[1])+n[0],e[5]=h*(c-n[1])-u*(o-n[0])+n[1],e}function c(e,t,r){var n=r[0],i=r[1];return e[0]=t[0]*n,e[1]=t[1]*i,e[2]=t[2]*n,e[3]=t[3]*i,e[4]=t[4]*n,e[5]=t[5]*i,e}function u(e,t){var r=t[0],n=t[2],i=t[4],a=t[1],o=t[3],s=t[5],l=r*o-a*n;return l?(l=1/l,e[0]=o*l,e[1]=-a*l,e[2]=-n*l,e[3]=r*l,e[4]=(n*s-o*i)*l,e[5]=(a*i-r*s)*l,e):null}r.d(t,{B8:()=>u,C:()=>a,D_:()=>i,Tl:()=>s,e$:()=>l,hs:()=>c,lK:()=>o,vt:()=>n})},59741(e,t,r){var n,i,a="sans-serif",o="12px "+a,s=function(e){var t={};if("u"<typeof JSON)return t;for(var r=0;r<e.length;r++){var n=String.fromCharCode(r+32),i=(e.charCodeAt(r)-20)/100;t[n]=i}return t}("007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N"),l={createCanvas:function(){return"u">typeof document&&document.createElement("canvas")},measureText:function(e,t){if(!n){var r=l.createCanvas();n=r&&r.getContext("2d")}if(n)return i!==t&&(i=n.font=t||o),n.measureText(e);e=e||"",t=t||o;var a=/((?:\d+)?\.?\d*)px/.exec(t),c=a&&+a[1]||12,u=0;if(t.indexOf("mono")>=0)u=c*e.length;else for(var h=0;h<e.length;h++){var p=s[e[h]];u+=null==p?c:p*c}return{width:u}},loadImage:function(e,t,r){var n=new Image;return n.onload=t,n.onerror=r,n.src=e,n},getTime:function(){return Date.now?Date.now():+new Date}};r.d(t,{OH:()=>o,gI:()=>12,yh:()=>l,zs:()=>a})},83470(e,t,r){function n(e,t,r,n){var i=t+1;if(i===r)return 1;if(0>n(e[i++],e[t])){for(;i<r&&0>n(e[i],e[i-1]);)i++;var a=e,o=t,s=i;for(s--;o<s;){var l=a[o];a[o++]=a[s],a[s--]=l}}else for(;i<r&&n(e[i],e[i-1])>=0;)i++;return i-t}function i(e,t,r,n,i){for(n===t&&n++;n<r;n++){for(var a,o=e[n],s=t,l=n;s<l;)0>i(o,e[a=s+l>>>1])?l=a:s=a+1;var c=n-s;switch(c){case 3:e[s+3]=e[s+2];case 2:e[s+2]=e[s+1];case 1:e[s+1]=e[s];break;default:for(;c>0;)e[s+c]=e[s+c-1],c--}e[s]=o}}function a(e,t,r,n,i,a){var o=0,s=0,l=1;if(a(e,t[r+i])>0){for(s=n-i;l<s&&a(e,t[r+i+l])>0;)o=l,(l=(l<<1)+1)<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}else{for(s=i+1;l<s&&0>=a(e,t[r+i-l]);)o=l,(l=(l<<1)+1)<=0&&(l=s);l>s&&(l=s);var c=o;o=i-l,l=i-c}for(o++;o<l;){var u=o+(l-o>>>1);a(e,t[r+u])>0?o=u+1:l=u}return l}function o(e,t,r,n,i,a){var o=0,s=0,l=1;if(0>a(e,t[r+i])){for(s=i+1;l<s&&0>a(e,t[r+i-l]);)o=l,(l=(l<<1)+1)<=0&&(l=s);l>s&&(l=s);var c=o;o=i-l,l=i-c}else{for(s=n-i;l<s&&a(e,t[r+i+l])>=0;)o=l,(l=(l<<1)+1)<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}for(o++;o<l;){var u=o+(l-o>>>1);0>a(e,t[r+u])?l=u:o=u+1}return l}function s(e,t,r,s){r||(r=0),s||(s=e.length);var l=s-r;if(!(l<2)){var c=0;if(l<32){c=n(e,r,s,t),i(e,r,s,r+c,t);return}var u=function(e,t){var r,n,i=7,s=0,l=[];function c(c){var u=r[c],h=n[c],p=r[c+1],d=n[c+1];n[c]=h+d,c===s-3&&(r[c+1]=r[c+2],n[c+1]=n[c+2]),s--;var f=o(e[p],e,u,h,0,t);u+=f,0==(h-=f)||0!==(d=a(e[u+h-1],e,p,d,d-1,t))&&(h<=d?function(r,n,s,c){var u,h,p,d=0;for(d=0;d<n;d++)l[d]=e[r+d];var f=0,m=s,g=r;if(e[g++]=e[m++],0==--c){for(d=0;d<n;d++)e[g+d]=l[f+d];return}if(1===n){for(d=0;d<c;d++)e[g+d]=e[m+d];e[g+c]=l[f];return}for(var A=i;;){u=0,h=0,p=!1;do if(0>t(e[m],l[f])){if(e[g++]=e[m++],h++,u=0,0==--c){p=!0;break}}else if(e[g++]=l[f++],u++,h=0,1==--n){p=!0;break}while((u|h)<A)if(p)break;do{if(0!==(u=o(e[m],l,f,n,0,t))){for(d=0;d<u;d++)e[g+d]=l[f+d];if(g+=u,f+=u,(n-=u)<=1){p=!0;break}}if(e[g++]=e[m++],0==--c){p=!0;break}if(0!==(h=a(l[f],e,m,c,0,t))){for(d=0;d<h;d++)e[g+d]=e[m+d];if(g+=h,m+=h,0==(c-=h)){p=!0;break}}if(e[g++]=l[f++],1==--n){p=!0;break}A--}while(u>=7||h>=7)if(p)break;A<0&&(A=0),A+=2}if((i=A)<1&&(i=1),1===n){for(d=0;d<c;d++)e[g+d]=e[m+d];e[g+c]=l[f]}else if(0===n)throw Error();else for(d=0;d<n;d++)e[g+d]=l[f+d]}(u,h,p,d):function(r,n,s,c){var u=0;for(u=0;u<c;u++)l[u]=e[s+u];var h=r+n-1,p=c-1,d=s+c-1,f=0,m=0;if(e[d--]=e[h--],0==--n){for(f=d-(c-1),u=0;u<c;u++)e[f+u]=l[u];return}if(1===c){for(d-=n,h-=n,m=d+1,f=h+1,u=n-1;u>=0;u--)e[m+u]=e[f+u];e[d]=l[p];return}for(var g=i;;){var A=0,y=0,v=!1;do if(0>t(l[p],e[h])){if(e[d--]=e[h--],A++,y=0,0==--n){v=!0;break}}else if(e[d--]=l[p--],y++,A=0,1==--c){v=!0;break}while((A|y)<g)if(v)break;do{if(0!=(A=n-o(l[p],e,r,n,n-1,t))){for(d-=A,h-=A,n-=A,m=d+1,f=h+1,u=A-1;u>=0;u--)e[m+u]=e[f+u];if(0===n){v=!0;break}}if(e[d--]=l[p--],1==--c){v=!0;break}if(0!=(y=c-a(e[h],l,0,c,c-1,t))){for(d-=y,p-=y,c-=y,m=d+1,f=p+1,u=0;u<y;u++)e[m+u]=l[f+u];if(c<=1){v=!0;break}}if(e[d--]=e[h--],0==--n){v=!0;break}g--}while(A>=7||y>=7)if(v)break;g<0&&(g=0),g+=2}if((i=g)<1&&(i=1),1===c){for(d-=n,h-=n,m=d+1,f=h+1,u=n-1;u>=0;u--)e[m+u]=e[f+u];e[d]=l[p]}else if(0===c)throw Error();else for(f=d-(c-1),u=0;u<c;u++)e[f+u]=l[u]}(u,h,p,d))}return r=[],n=[],{mergeRuns:function(){for(;s>1;){var e=s-2;if(e>=1&&n[e-1]<=n[e]+n[e+1]||e>=2&&n[e-2]<=n[e]+n[e-1])n[e-1]<n[e+1]&&e--;else if(n[e]>n[e+1])break;c(e)}},forceMergeRuns:function(){for(;s>1;){var e=s-2;e>0&&n[e-1]<n[e+1]&&e--,c(e)}},pushRun:function(e,t){r[s]=e,n[s]=t,s+=1}}}(e,t),h=function(e){for(var t=0;e>=32;)t|=1&e,e>>=1;return e+t}(l);do{if((c=n(e,r,s,t))<h){var p=l;p>h&&(p=h),i(e,r,r+p,r+c,t),c=p}u.pushRun(r,c),u.mergeRuns(),l-=c,r+=c}while(0!==l)u.forceMergeRuns()}}r.d(t,{A:()=>s})},85445(e,t,r){r.d(t,{$z:()=>0,XM:()=>2,cw:()=>1,jP:()=>1,r4:()=>0})},98026(e,t,r){var n=r(59741),i=N(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(e,t){return e["[object "+t+"]"]=!0,e},{}),a=N(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(e,t){return e["[object "+t+"Array]"]=!0,e},{}),o=Object.prototype.toString,s=Array.prototype,l=s.forEach,c=s.filter,u=s.slice,h=s.map,p=(function(){}).constructor,d=p?p.prototype:null,f="__proto__",m=2311;function g(){return m>=0x1fffffffffffff&&(m=0),m++}function A(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];"u">typeof console&&console.error.apply(console,e)}function y(e){if(null==e||"object"!=typeof e)return e;var t=e,r=o.call(e);if("[object Array]"===r){if(!e[q]){t=[];for(var n=0,s=e.length;n<s;n++)t[n]=y(e[n])}}else if(a[r]){if(!e[q]){var l=e.constructor;if(l.from)t=l.from(e);else{t=new l(e.length);for(var n=0,s=e.length;n<s;n++)t[n]=e[n]}}}else if(!i[r]&&!e[q]&&!D(e))for(var c in t={},e)e.hasOwnProperty(c)&&c!==f&&(t[c]=y(e[c]));return t}function v(e,t){if(Object.assign)Object.assign(e,t);else for(var r in t)t.hasOwnProperty(r)&&r!==f&&(e[r]=t[r]);return e}function R(e,t,r){e=e||{};for(var n=0;n<r.length;n++){var i=r[n];e[i]=t[i]}return e}function b(e,t,r){for(var n=P(t),i=0,a=n.length;i<a;i++){var o=n[i];(r?null!=t[o]:null==e[o])&&(e[o]=t[o])}return e}function x(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r}return -1}function M(e,t){var r=e.prototype;function n(){}for(var i in n.prototype=t.prototype,e.prototype=new n,r)r.hasOwnProperty(i)&&(e.prototype[i]=r[i]);e.prototype.constructor=e,e.superClass=t}function S(e,t,r){if(e="prototype"in e?e.prototype:e,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(t),i=0;i<n.length;i++){var a=n[i];"constructor"!==a&&(r?null!=t[a]:null==e[a])&&(e[a]=t[a])}else b(e,t,r)}function w(e){return!!e&&"string"!=typeof e&&"number"==typeof e.length}function O(e,t,r){if(e&&t)if(e.forEach&&e.forEach===l)e.forEach(t,r);else if(e.length===+e.length)for(var n=0,i=e.length;n<i;n++)t.call(r,e[n],n,e);else for(var a in e)e.hasOwnProperty(a)&&t.call(r,e[a],a,e)}function L(e,t,r){if(!e)return[];if(!t)return H(e);if(e.map&&e.map===h)return e.map(t,r);for(var n=[],i=0,a=e.length;i<a;i++)n.push(t.call(r,e[i],i,e));return n}function N(e,t,r,n){if(e&&t){for(var i=0,a=e.length;i<a;i++)r=t.call(n,r,e[i],i,e);return r}}function _(e,t,r){if(!e)return[];if(!t)return H(e);if(e.filter&&e.filter===c)return e.filter(t,r);for(var n=[],i=0,a=e.length;i<a;i++)t.call(r,e[i],i,e)&&n.push(e[i]);return n}function T(e,t,r){if(e&&t){for(var n=0,i=e.length;n<i;n++)if(t.call(r,e[n],n,e))return e[n]}}function P(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(r);return t}n.yh.createCanvas;var C=d&&F(d.bind)?d.call.bind(d.bind):function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return function(){return e.apply(t,r.concat(u.call(arguments)))}};function I(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return function(){return e.apply(this,t.concat(u.call(arguments)))}}function k(e){return Array.isArray?Array.isArray(e):"[object Array]"===o.call(e)}function F(e){return"function"==typeof e}function X(e){return"string"==typeof e}function U(e){return"[object String]"===o.call(e)}function W(e){return"number"==typeof e}function V(e){var t=typeof e;return"function"===t||!!e&&"object"===t}function E(e){return!!i[o.call(e)]}function Y(e){return!!a[o.call(e)]}function D(e){return"object"==typeof e&&"number"==typeof e.nodeType&&"object"==typeof e.ownerDocument}function Q(e){return null!=e.colorStops}function $(e){return null!=e.image}function B(e){return e!=e}function Z(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=0,n=e.length;r<n;r++)if(null!=e[r])return e[r]}function K(e,t){return null!=e?e:t}function G(e,t,r){return null!=e?e:null!=t?t:r}function H(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return u.apply(e,t)}function z(e){if("number"==typeof e)return[e,e,e,e];var t=e.length;return 2===t?[e[0],e[1],e[0],e[1]]:3===t?[e[0],e[1],e[2],e[1]]:e}function J(e,t){if(!e)throw Error(t)}function j(e){return null==e?null:"function"==typeof e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var q="__ec_primitive__";function ee(e){e[q]=!0}var et=function(){function e(){this.data={}}return e.prototype.delete=function(e){var t=this.has(e);return t&&delete this.data[e],t},e.prototype.has=function(e){return this.data.hasOwnProperty(e)},e.prototype.get=function(e){return this.data[e]},e.prototype.set=function(e,t){return this.data[e]=t,this},e.prototype.keys=function(){return P(this.data)},e.prototype.forEach=function(e){var t=this.data;for(var r in t)t.hasOwnProperty(r)&&e(t[r],r)},e}(),er="function"==typeof Map,en=function(){function e(t){var r=k(t);this.data=er?new Map:new et;var n=this;function i(e,t){r?n.set(e,t):n.set(t,e)}t instanceof e?t.each(i):t&&O(t,i)}return e.prototype.hasKey=function(e){return this.data.has(e)},e.prototype.get=function(e){return this.data.get(e)},e.prototype.set=function(e,t){return this.data.set(e,t),t},e.prototype.each=function(e,t){this.data.forEach(function(r,n){e.call(t,r,n)})},e.prototype.keys=function(){var e=this.data.keys();return er?Array.from(e):e},e.prototype.removeKey=function(e){this.data.delete(e)},e}();function ei(e){return new en(e)}function ea(e,t){for(var r=new e.constructor(e.length+t.length),n=0;n<e.length;n++)r[n]=e[n];for(var i=e.length,n=0;n<t.length;n++)r[n+i]=t[n];return r}function eo(e,t){var r;if(Object.create)r=Object.create(e);else{var n=function(){};n.prototype=e,r=new n}return t&&v(r,t),r}function es(e){var t=e.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function el(e,t){return e.hasOwnProperty(t)}function ec(){}var eu=180/Math.PI;r.d(t,{$3:()=>el,Ac:()=>R,B:()=>M,Bq:()=>j,C7:()=>Q,En:()=>ee,Et:()=>W,Gv:()=>V,HE:()=>$,HP:()=>P,I6:()=>T,Je:()=>Z,Kg:()=>X,Lh:()=>U,NT:()=>b,Os:()=>g,QX:()=>z,TS:()=>N,Tj:()=>L,Tn:()=>F,WV:()=>G,X$:()=>v,Xj:()=>w,Yp:()=>B,__:()=>O,bZ:()=>K,cF:()=>I,co:()=>S,cy:()=>k,di:()=>H,ed:()=>eo,h1:()=>function e(t,r,n){if(!V(r)||!V(t))return n?y(r):t;for(var i in r)if(r.hasOwnProperty(i)&&i!==f){var a=t[i],o=r[i];!(V(o)&&V(a))||k(o)||k(a)||D(o)||D(a)||E(o)||E(a)||o[q]||a[q]?!n&&i in t||(t[i]=y(r[i])):e(a,o,n)}return t},iq:()=>es,iu:()=>Y,lI:()=>eu,lQ:()=>ec,nt:()=>ei,o8:()=>y,oI:()=>C,pb:()=>_,qh:()=>x,vA:()=>J,vV:()=>A,yB:()=>ea})},83509(e,t,r){function n(e,t){return null==e&&(e=0),null==t&&(t=0),[e,t]}function i(e){return[e[0],e[1]]}function a(e,t,r){return e[0]=t,e[1]=r,e}function o(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e}function s(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e}function l(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e}function c(e,t){var r,n=Math.sqrt((r=t)[0]*r[0]+r[1]*r[1]);return 0===n?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}function u(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var h=function(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])};function p(e,t,r,n){return e[0]=t[0]+n*(r[0]-t[0]),e[1]=t[1]+n*(r[1]-t[1]),e}function d(e,t,r){var n=t[0],i=t[1];return e[0]=r[0]*n+r[2]*i+r[4],e[1]=r[1]*n+r[3]*i+r[5],e}function f(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e}function m(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e}r.d(t,{Cc:()=>p,Io:()=>u,NW:()=>d,S8:()=>c,T9:()=>m,WQ:()=>o,hZ:()=>a,hs:()=>l,jb:()=>s,jk:()=>f,o8:()=>i,oi:()=>h,vt:()=>n,xg:()=>u})},82591(e,t,r){var n=r(15727),i=r(87691);t.A=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="compound",t}return(0,n.C6)(t,e),t.prototype._updatePathDirty=function(){for(var e=this.shape.paths,t=this.shapeChanged(),r=0;r<e.length;r++)t=t||e[r].shapeChanged();t&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var e=this.shape.paths||[],t=this.getGlobalScale(),r=0;r<e.length;r++)e[r].path||e[r].createPathProxy(),e[r].path.setScale(t[0],t[1],e[r].segmentIgnoreThreshold)},t.prototype.buildPath=function(e,t){for(var r=t.paths||[],n=0;n<r.length;n++)r[n].buildPath(e,r[n].shape,!0)},t.prototype.afterBrush=function(){for(var e=this.shape.paths||[],t=0;t<e.length;t++)e[t].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),i.Ay.prototype.getBoundingRect.call(this)},t}(i.Ay)},71519(e,t,r){var n=r(15727),i=r(62454),a=r(29308),o=r(98026),s=r(56448),l="__zr_style_"+Math.round(10*Math.random()),c={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},u={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};c[l]=!0;var h=["z","z2","invisible"],p=["invisible"],d=function(e){var t;function r(t){return e.call(this,t)||this}return(0,n.C6)(r,e),r.prototype._init=function(t){for(var r=(0,o.HP)(t),n=0;n<r.length;n++){var i=r[n];"style"===i?this.useStyle(t[i]):e.prototype.attrKV.call(this,i,t[i])}this.style||this.useStyle({})},r.prototype.beforeBrush=function(e){},r.prototype.afterBrush=function(){},r.prototype.innerBeforeBrush=function(){},r.prototype.innerAfterBrush=function(){},r.prototype.shouldBePainted=function(e,t,r,n){var i,a,o,s=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&(i=this,a=e,o=t,f.copy(i.getBoundingRect()),i.transform&&f.applyTransform(i.transform),m.width=a,m.height=o,!f.intersect(m))||s&&!s[0]&&!s[3])return!1;if(r&&this.__clipPaths&&this.__clipPaths.length){for(var l=0;l<this.__clipPaths.length;++l)if(this.__clipPaths[l].isZeroArea())return!1}if(n&&this.parent)for(var c=this.parent;c;){if(c.ignore)return!1;c=c.parent}return!0},r.prototype.contain=function(e,t){return this.rectContain(e,t)},r.prototype.traverse=function(e,t){e.call(t,this)},r.prototype.rectContain=function(e,t){var r=this.transformCoordToLocal(e,t);return this.getBoundingRect().contain(r[0],r[1])},r.prototype.getPaintRect=function(){var e=this._paintRect;if(!this._paintRect||this.__dirty){var t=this.transform,r=this.getBoundingRect(),n=this.style,i=n.shadowBlur||0,o=n.shadowOffsetX||0,s=n.shadowOffsetY||0;e=this._paintRect||(this._paintRect=new a.Ay(0,0,0,0)),t?a.Ay.applyTransform(e,r,t):e.copy(r),(i||o||s)&&(e.width+=2*i+Math.abs(o),e.height+=2*i+Math.abs(s),e.x=Math.min(e.x,e.x+o-i),e.y=Math.min(e.y,e.y+s-i));var l=this.dirtyRectTolerance;e.isZero()||(e.x=Math.floor(e.x-l),e.y=Math.floor(e.y-l),e.width=Math.ceil(e.width+1+2*l),e.height=Math.ceil(e.height+1+2*l))}return e},r.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new a.Ay(0,0,0,0),this._prevPaintRect.copy(e)):this._prevPaintRect=null},r.prototype.getPrevPaintRect=function(){return this._prevPaintRect},r.prototype.animateStyle=function(e){return this.animate("style",e)},r.prototype.updateDuringAnimation=function(e){"style"===e?this.dirtyStyle():this.markRedraw()},r.prototype.attrKV=function(t,r){"style"!==t?e.prototype.attrKV.call(this,t,r):this.style?this.setStyle(r):this.useStyle(r)},r.prototype.setStyle=function(e,t){return"string"==typeof e?this.style[e]=t:(0,o.X$)(this.style,e),this.dirtyStyle(),this},r.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=s.pO,this._rect&&(this._rect=null)},r.prototype.dirty=function(){this.dirtyStyle()},r.prototype.styleChanged=function(){return!!(this.__dirty&s.pO)},r.prototype.styleUpdated=function(){this.__dirty&=~s.pO},r.prototype.createStyle=function(e){return(0,o.ed)(c,e)},r.prototype.useStyle=function(e){e[l]||(e=this.createStyle(e)),this.style=e,this.dirtyStyle()},r.prototype._useHoverStyle=function(e){this.__hoverStyle=e},r.prototype.isStyleObject=function(e){return e[l]},r.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var r=this._normalState;t.style&&!r.style&&(r.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,r,h)},r.prototype._applyStateObj=function(t,r,n,a,s,l){e.prototype._applyStateObj.call(this,t,r,n,a,s,l);var c,u=!(r&&a),d=this.__inHover===i.yx;if(r&&r.style?s?a?c=r.style:(c=this._mergeStyle(this.createStyle(),n.style),this._mergeStyle(c,r.style)):(c=this._mergeStyle(this.createStyle(),a?this.style:n.style),this._mergeStyle(c,r.style)):u&&(c=n.style),c)if(s){var f=this.style;if(this.style=this.createStyle(u?{}:f),u)for(var m=(0,o.HP)(f),g=0;g<m.length;g++){var A=m[g];A in c&&(c[A]=c[A],this.style[A]=f[A])}for(var y=(0,o.HP)(c),g=0;g<y.length;g++){var A=y[g];this.style[A]=this.style[A]}this._transitionState(t,{style:c},l,this.getAnimationStyleProps())}else d?this._useHoverStyle(c):this.useStyle(c);if(!d)for(var v=this.__inHover?p:h,g=0;g<v.length;g++){var A=v[g];r&&null!=r[A]?this[A]=r[A]:u&&null!=n[A]&&(this[A]=n[A])}},r.prototype._mergeStates=function(t){for(var r,n=e.prototype._mergeStates.call(this,t),i=0;i<t.length;i++){var a=t[i];a.style&&(r=r||{},this._mergeStyle(r,a.style))}return r&&(n.style=r),n},r.prototype._mergeStyle=function(e,t){return(0,o.X$)(e,t),e},r.prototype.getAnimationStyleProps=function(){return u},r.initDefaultProps=void((t=r.prototype).type="displayable",t.invisible=!1,t.z=0,t.z2=0,t.zlevel=0,t.culling=!1,t.cursor="pointer",t.rectHover=!1,t.incremental=0,t._rect=null,t.dirtyRectTolerance=0,t.__dirty=s.M|s.pO),r}(i.Ay),f=new a.Ay(0,0,0,0),m=new a.Ay(0,0,0,0);t.Ay=d,r.d(t,{oN:()=>c,sW:()=>u})},11793(e,t){t.A=function(){function e(e){this.colorStops=e||[]}return e.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},e}()},43870(e,t,r){var n=r(15727),i=r(98026),a=r(62454),o=r(29308),s=function(e){function t(t){var r=e.call(this)||this;return r.isGroup=!0,r._children=[],r.attr(t),r}return(0,n.C6)(t,e),t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var t=this._children,r=0;r<t.length;r++)if(t[r].name===e)return t[r]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(e){return e&&e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),this},t.prototype.addBefore=function(e,t){if(e&&e!==this&&e.parent!==this&&t&&t.parent===this){var r=this._children,n=r.indexOf(t);n>=0&&(r.splice(n,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,t){var r=i.qh(this._children,e);return r>=0&&this.replaceAt(t,r),this},t.prototype.replaceAt=function(e,t){var r=this._children,n=r[t];if(e&&e!==this&&e.parent!==this&&e!==n){r[t]=e,n.parent=null;var i=this.__zr;i&&n.removeSelfFromZr(i),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var t=this.__zr;t&&t!==e.__zr&&e.addSelfToZr(t),t&&t.refresh()},t.prototype.remove=function(e){var t=this.__zr,r=this._children,n=i.qh(r,e);return n<0||(r.splice(n,1),e.parent=null,t&&e.removeSelfFromZr(t),t&&t.refresh()),this},t.prototype.removeAll=function(){for(var e=this._children,t=this.__zr,r=0;r<e.length;r++){var n=e[r];t&&n.removeSelfFromZr(t),n.parent=null}return e.length=0,this},t.prototype.eachChild=function(e,t){for(var r=this._children,n=0;n<r.length;n++){var i=r[n];e.call(t,i,n)}return this},t.prototype.traverse=function(e,t){for(var r=0;r<this._children.length;r++){var n=this._children[r],i=e.call(t,n);n.isGroup&&!i&&n.traverse(e,t)}return this},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var r=0;r<this._children.length;r++)this._children[r].addSelfToZr(t)},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var r=0;r<this._children.length;r++)this._children[r].removeSelfFromZr(t)},t.prototype.getBoundingRect=function(e){for(var t=new o.Ay(0,0,0,0),r=e||this._children,n=[],i=null,a=0;a<r.length;a++){var s=r[a];if(!s.ignore&&!s.invisible){var l=s.getBoundingRect(),c=s.getLocalTransform(n);c?(o.Ay.applyTransform(t,l,c),(i=i||t.clone()).union(t)):(i=i||l.clone()).union(l)}}return i||t},t}(a.Ay);s.prototype.type="group",t.A=s},90540(e,t,r){var n=r(15727),i=r(71519),a=r(29308),o=r(98026),s=(0,o.NT)({x:0,y:0},i.oN),l={style:(0,o.NT)({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},i.sW.style)},c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,n.C6)(t,e),t.prototype.createStyle=function(e){return(0,o.ed)(s,e)},t.prototype._getSize=function(e){var t,r=this.style,n=r[e];if(null!=n)return n;var i=(t=r.image)&&"string"!=typeof t&&t.width&&t.height?r.image:this.__image;if(!i)return 0;var a="width"===e?"height":"width",o=r[a];return null==o?i[e]:i[e]/i[a]*o},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return l},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new a.Ay(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}(i.Ay);c.prototype.type="image",t.Ay=c},29668(e,t,r){var n=r(15727);t.A=function(e){function t(t,r,n,i,a,o){var s=e.call(this,a)||this;return s.x=null==t?0:t,s.y=null==r?0:r,s.x2=null==n?1:n,s.y2=null==i?0:i,s.type="linear",s.global=o||!1,s}return(0,n.C6)(t,e),t}(r(11793).A)},87691(e,t,r){r.d(t,{MW:()=>M,Ay:()=>O});var n=r(15727),i=r(71519),a=r(62454),o=r(15938);function s(e,t,r,n,i,a,o){if(0===i)return!1;var s=0,l=e;if(o>t+i&&o>n+i||o<t-i&&o<n-i||a>e+i&&a>r+i||a<e-i&&a<r-i)return!1;if(e===r)return Math.abs(a-e)<=i/2;s=(t-n)/(e-r);var c=s*a-o+(l=(e*n-r*t)/(e-r));return c*c/(s*s+1)<=i/2*i/2}var l=r(89259),c=2*Math.PI;function u(e){return(e%=c)<0&&(e+=c),e}var h=2*Math.PI;function p(e,t,r,n,i,a){if(a>t&&a>n||a<t&&a<n||n===t)return 0;var o=(a-t)/(n-t),s=n<t?1:-1;(1===o||0===o)&&(s=n<t?.5:-.5);var l=o*(r-e)+e;return l===i?1/0:l>i?s:0}var d=o.A.CMD,f=2*Math.PI,m=[-1,-1,-1],g=[-1,-1];function A(e,t,r,n,i){for(var a,o,c=e.data,A=e.len(),y=0,v=0,R=0,b=0,x=0,M=0;M<A;){var S,w,O,L,N,_,T,P,C,I,k,F,X,U,W=c[M++],V=1===M;switch(W===d.M&&M>1&&!r&&(y+=p(v,R,b,x,n,i)),V&&(v=c[M],R=c[M+1],b=v,x=R),W){case d.M:b=c[M++],x=c[M++],v=b,R=x;break;case d.L:if(r){if(s(v,R,c[M],c[M+1],t,n,i))return!0}else y+=p(v,R,c[M],c[M+1],n,i)||0;v=c[M++],R=c[M++];break;case d.C:if(r){if(S=v,w=R,O=c[M++],L=c[M++],N=c[M++],_=c[M++],T=c[M],P=c[M+1],0!==t&&(!(i>w+t)||!(i>L+t)||!(i>_+t)||!(i>P+t))&&(!(i<w-t)||!(i<L-t)||!(i<_-t)||!(i<P-t))&&(!(n>S+t)||!(n>O+t)||!(n>N+t)||!(n>T+t))&&(!(n<S-t)||!(n<O-t)||!(n<N-t)||!(n<T-t))&&l.Et(S,w,O,L,N,_,T,P,n,i,null)<=t/2)return!0}else y+=function(e,t,r,n,i,a,o,s,c,u){if(u>t&&u>n&&u>a&&u>s||u<t&&u<n&&u<a&&u<s)return 0;var h=l._E(t,n,a,s,u,m);if(0===h)return 0;for(var p=0,d=-1,f=void 0,A=void 0,y=0;y<h;y++){var v=m[y],R=0===v||1===v?.5:1;l.Yb(e,r,i,o,v)<c||(d<0&&(d=l.lX(t,n,a,s,g),g[1]<g[0]&&d>1&&function(){var e=g[0];g[0]=g[1],g[1]=e}(),f=l.Yb(t,n,a,s,g[0]),d>1&&(A=l.Yb(t,n,a,s,g[1]))),2===d?v<g[0]?p+=f<t?R:-R:v<g[1]?p+=A<f?R:-R:p+=s<A?R:-R:v<g[0]?p+=f<t?R:-R:p+=s<f?R:-R)}return p}(v,R,c[M++],c[M++],c[M++],c[M++],c[M],c[M+1],n,i)||0;v=c[M++],R=c[M++];break;case d.Q:if(r){if(C=v,I=R,k=c[M++],F=c[M++],X=c[M],U=c[M+1],0!==t&&(!(i>I+t)||!(i>F+t)||!(i>U+t))&&(!(i<I-t)||!(i<F-t)||!(i<U-t))&&(!(n>C+t)||!(n>k+t)||!(n>X+t))&&(!(n<C-t)||!(n<k-t)||!(n<X-t))&&(0,l.kh)(C,I,k,F,X,U,n,i,null)<=t/2)return!0}else y+=function(e,t,r,n,i,a,o,s){if(s>t&&s>n&&s>a||s<t&&s<n&&s<a)return 0;var c=l.qY(t,n,a,s,m);if(0===c)return 0;var u=l.gC(t,n,a);if(u>=0&&u<=1){for(var h=0,p=l.k3(t,n,a,u),d=0;d<c;d++){var f=0===m[d]||1===m[d]?.5:1,g=l.k3(e,r,i,m[d]);g<o||(m[d]<u?h+=p<t?f:-f:h+=a<p?f:-f)}return h}var f=0===m[0]||1===m[0]?.5:1,g=l.k3(e,r,i,m[0]);return g<o?0:a<t?f:-f}(v,R,c[M++],c[M++],c[M],c[M+1],n,i)||0;v=c[M++],R=c[M++];break;case d.A:var E=c[M++],Y=c[M++],D=c[M++],Q=c[M++],$=c[M++],B=c[M++];M+=1;var Z=!!(1-c[M++]);a=Math.cos($)*D+E,o=Math.sin($)*Q+Y,V?(b=a,x=o):y+=p(v,R,a,o,n,i);var K=(n-E)*Q/D+E;if(r){if(function(e,t,r,n,i,a,o,s,l){if(0===o)return!1;var c=Math.sqrt((s-=e)*s+(l-=t)*l);if(c-o>r||c+o<r)return!1;if(Math.abs(n-i)%h<1e-4)return!0;if(a){var p=n;n=u(i),i=u(p)}else n=u(n),i=u(i);n>i&&(i+=h);var d=Math.atan2(l,s);return d<0&&(d+=h),d>=n&&d<=i||d+h>=n&&d+h<=i}(E,Y,Q,$,$+B,Z,t,K,i))return!0}else y+=function(e,t,r,n,i,a,o,s){if((s-=t)>r||s<-r)return 0;var l=Math.sqrt(r*r-s*s);m[0]=-l,m[1]=l;var c=Math.abs(n-i);if(c<1e-4)return 0;if(c>=f-1e-4){n=0,i=f;var u=a?1:-1;return o>=m[0]+e&&o<=m[1]+e?u:0}if(n>i){var h=n;n=i,i=h}n<0&&(n+=f,i+=f);for(var p=0,d=0;d<2;d++){var g=m[d];if(g+e>o){var A=Math.atan2(s,g),u=a?1:-1;A<0&&(A=f+A),(A>=n&&A<=i||A+f>=n&&A+f<=i)&&(A>Math.PI/2&&A<1.5*Math.PI&&(u=-u),p+=u)}}return p}(E,Y,Q,$,$+B,Z,K,i);v=Math.cos($+B)*D+E,R=Math.sin($+B)*Q+Y;break;case d.R:b=v=c[M++],x=R=c[M++];var G=c[M++],H=c[M++];if(a=b+G,o=x+H,r){if(s(b,x,a,x,t,n,i)||s(a,x,a,o,t,n,i)||s(a,o,b,o,t,n,i)||s(b,o,b,x,t,n,i))return!0}else y+=p(a,x,a,o,n,i),y+=p(b,o,b,x,n,i);break;case d.Z:if(r){if(s(v,R,b,x,t,n,i))return!0}else y+=p(v,R,b,x,n,i);v=b,R=x}}return r||1e-4>Math.abs(R-x)||(y+=p(v,R,b,x,n,i)||0),0!==y}var y=r(98026),v=r(47698),R=r(73098),b=r(56448),x=r(92836),M=(0,y.NT)({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},i.oN),S={style:(0,y.NT)({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},i.sW.style)},w=x.Wx.concat(["invisible","culling","z","z2","zlevel","parent"]),O=function(e){var t;function r(t){return e.call(this,t)||this}return(0,n.C6)(r,e),r.prototype.update=function(){var t=this;e.prototype.update.call(this);var n=this.style;if(n.decal){var i=this._decalEl=this._decalEl||new r;i.buildPath===r.prototype.buildPath&&(i.buildPath=function(e){t.buildPath(e,t.shape)}),i.silent=!0;var a=i.style;for(var o in n)a[o]!==n[o]&&(a[o]=n[o]);a.fill=n.fill?n.decal:null,a.decal=null,a.shadowColor=null,n.strokeFirst&&(a.stroke=null);for(var s=0;s<w.length;++s)i[w[s]]=this[w[s]];i.__dirty|=b.M}else this._decalEl&&(this._decalEl=null)},r.prototype.getDecalElement=function(){return this._decalEl},r.prototype._init=function(t){var r=(0,y.HP)(t);this.shape=this.getDefaultShape();var n=this.getDefaultStyle();n&&this.useStyle(n);for(var i=0;i<r.length;i++){var a=r[i],o=t[a];"style"===a?this.style?(0,y.X$)(this.style,o):this.useStyle(o):"shape"===a?(0,y.X$)(this.shape,o):e.prototype.attrKV.call(this,a,o)}this.style||this.useStyle({})},r.prototype.getDefaultStyle=function(){return null},r.prototype.getDefaultShape=function(){return{}},r.prototype.canBeInsideText=function(){return this.hasFill()},r.prototype.getInsideTextFill=function(){var e=this.style.fill;if("none"!==e){if((0,y.Kg)(e)){var t=(0,v.fN)(e,0);return t>.5?R._S:t>.2?R.tY:R.el}else if(e)return R.el}return R._S},r.prototype.getInsideTextStroke=function(e){var t=this.style.fill;if((0,y.Kg)(t)){var r=this.__zr;if(!!(r&&r.isDarkMode())==(0,v.fN)(e,0)<R.ps)return t}},r.prototype.buildPath=function(e,t,r){},r.prototype.pathUpdated=function(){this.__dirty&=~b.Dl},r.prototype.getUpdatedPathProxy=function(e){return this.path||this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},r.prototype.createPathProxy=function(){this.path=new o.A(!1)},r.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return null!=t&&"none"!==t&&e.lineWidth>0},r.prototype.hasFill=function(){var e=this.style.fill;return null!=e&&"none"!==e},r.prototype.getBoundingRect=function(){var e=this._rect,t=this.style,r=!e;if(r){var n=!1;this.path||(n=!0,this.createPathProxy());var i=this.path;(n||this.__dirty&b.Dl)&&(i.beginPath(),this.buildPath(i,this.shape,!1),this.pathUpdated()),e=i.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var a=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||r){a.copy(e);var o=t.strokeNoScale?this.getLineScale():1,s=t.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;s=Math.max(s,null==l?4:l)}o>1e-10&&(a.width+=s/o,a.height+=s/o,a.x-=s/o/2,a.y-=s/o/2)}return a}return e},r.prototype.contain=function(e,t){var r=this.transformCoordToLocal(e,t),n=this.getBoundingRect(),i=this.style;if(e=r[0],t=r[1],n.contain(e,t)){var a=this.path;if(this.hasStroke()){var o=i.lineWidth,s=i.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(o=Math.max(o,this.strokeContainThreshold)),A(a,o/s,!0,e,t)))return!0}if(this.hasFill())return A(a,0,!1,e,t)}return!1},r.prototype.dirtyShape=function(){this.__dirty|=b.Dl,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},r.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},r.prototype.animateShape=function(e){return this.animate("shape",e)},r.prototype.updateDuringAnimation=function(e){"style"===e?this.dirtyStyle():"shape"===e?this.dirtyShape():this.markRedraw()},r.prototype.attrKV=function(t,r){"shape"===t?this.setShape(r):e.prototype.attrKV.call(this,t,r)},r.prototype.setShape=function(e,t){var r=this.shape;return r||(r=this.shape={}),"string"==typeof e?r[e]=t:(0,y.X$)(r,e),this.dirtyShape(),this},r.prototype.shapeChanged=function(){return!!(this.__dirty&b.Dl)},r.prototype.createStyle=function(e){return(0,y.ed)(M,e)},r.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var r=this._normalState;t.shape&&!r.shape&&(r.shape=(0,y.X$)({},this.shape))},r.prototype._applyStateObj=function(t,r,n,i,o,s){if(e.prototype._applyStateObj.call(this,t,r,n,i,o,s),this.__inHover!==a.yx){var l,c=!(r&&i);if(r&&r.shape?o?i?l=r.shape:(l=(0,y.X$)({},n.shape),(0,y.X$)(l,r.shape)):(l=(0,y.X$)({},i?this.shape:n.shape),(0,y.X$)(l,r.shape)):c&&(l=n.shape),l)if(o){this.shape=(0,y.X$)({},this.shape);for(var u={},h=(0,y.HP)(l),p=0;p<h.length;p++){var d=h[p];"object"==typeof l[d]?this.shape[d]=l[d]:u[d]=l[d]}this._transitionState(t,{shape:u},s)}else this.shape=l,this.dirtyShape()}},r.prototype._mergeStates=function(t){for(var r,n=e.prototype._mergeStates.call(this,t),i=0;i<t.length;i++){var a=t[i];a.shape&&(r=r||{},this._mergeStyle(r,a.shape))}return r&&(n.shape=r),n},r.prototype.getAnimationStyleProps=function(){return S},r.prototype.isZeroArea=function(){return!1},r.extend=function(e){var t=function(t){function r(r){var n=t.call(this,r)||this;return e.init&&e.init.call(n,r),n}return(0,n.C6)(r,t),r.prototype.getDefaultStyle=function(){return(0,y.o8)(e.style)},r.prototype.getDefaultShape=function(){return(0,y.o8)(e.shape)},r}(r);for(var i in e)"function"==typeof e[i]&&(t.prototype[i]=e[i]);return t},r.initDefaultProps=void((t=r.prototype).type="path",t.strokeContainThreshold=5,t.segmentIgnoreThreshold=0,t.subPixelOptimize=!1,t.autoBatch=!1,t.__dirty=b.M|b.pO|b.Dl),r}(i.Ay)},19845(e,t,r){var n=r(15727),i=r(71519),a=r(87691),o=r(98026),s=r(59741),l=r(62406),c=(0,o.NT)({strokeFirst:!0,font:s.OH,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},a.MW),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,n.C6)(t,e),t.prototype.hasStroke=function(){return(0,l.n7)(this.style)},t.prototype.hasFill=function(){var e=this.style.fill;return null!=e&&"none"!==e},t.prototype.createStyle=function(e){return(0,o.ed)(c,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){return this._rect||(this._rect=(0,l.Xf)(this.style)),this._rect},t.initDefaultProps=void(t.prototype.dirtyRectTolerance=10),t}(i.Ay);u.prototype.type="tspan",t.A=u},32322(e,t,r){var n=r(15727),i=r(62406),a=r(19845),o=r(98026),s=r(45558),l=r(90540),c=r(60866),u=r(29308),h=r(71519),p=r(59741),d={fill:"#000"},f={},m={style:(0,o.NT)({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},h.sW.style)},g=function(e){function t(t){var r=e.call(this)||this;return r.type="text",r._children=[],r._defaultStyle=d,r.attr(t),r}return(0,n.C6)(t,e),t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t<this._children.length;t++){var r=this._children[t];r.zlevel=this.zlevel,r.z=this.z,r.z2=this.z2,r.culling=this.culling,r.cursor=this.cursor,r.invisible=this.invisible}},t.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(t){var r=this.innerTransformable;return r?r.getLocalTransform(t):e.prototype.getLocalTransform.call(this,t)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),e.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){var e;this._childCursor=0,M(e=this.style),(0,o.__)(e.rich,M),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var r=0;r<this._children.length;r++)this._children[r].__zr=t},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var r=0;r<this._children.length;r++)this._children[r].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var e=new u.Ay(0,0,0,0),t=this._children,r=[],n=null,i=0;i<t.length;i++){var a=t[i],o=a.getBoundingRect(),s=a.getLocalTransform(r);s?(e.copy(o),e.applyTransform(s),(n=n||e.clone()).union(e)):(n=n||o.clone()).union(o)}this._rect=n||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||d},t.prototype.setTextContent=function(e){},t.prototype._mergeStyle=function(e,t){if(!t)return e;var r=t.rich,n=e.rich||r&&{};return(0,o.X$)(e,t),r&&n?(this._mergeRich(n,r),e.rich=n):n&&(e.rich=n),e},t.prototype._mergeRich=function(e,t){for(var r=(0,o.HP)(t),n=0;n<r.length;n++){var i=r[n];e[i]=e[i]||{},(0,o.X$)(e[i],t[i])}},t.prototype.getAnimationStyleProps=function(){return m},t.prototype._getOrCreateChild=function(e){var t=this._children[this._childCursor];return t&&t instanceof e||(t=new e),this._children[this._childCursor++]=t,t.__zr=this.__zr,t.parent=this,t},t.prototype._updatePlainTexts=function(){var e=this.style,t=e.font||p.OH,r=e.padding,n=this._defaultStyle,o=e.x||0,l=e.y||0,c=e.align||n.align||"left",u=e.verticalAlign||n.verticalAlign||"top";(0,i.Ss)(f,n.overflowRect,o,l,c,u),o=f.baseX,l=f.baseY;var h=L(e),d=(0,i.j_)(h,e,f.outerWidth,f.outerHeight),m=N(e),g=!!e.backgroundColor,A=d.outerHeight,y=d.outerWidth,v=d.lines,R=d.lineHeight;this.isTruncated=!!d.isTruncated;var x=o,M=(0,s.sZ)(l,d.contentHeight,u);if(m||r){var _=(0,s.ll)(o,y,c),T=(0,s.sZ)(l,A,u);m&&this._renderBackground(e,e,_,T,y,A)}M+=R/2,r&&(x=O(o,c,r),"top"===u?M+=r[0]:"bottom"===u&&(M-=r[2]));for(var P=0,C=!1,I=!1,k=w("fill"in e?e.fill:(I=!0,n.fill)),F=S("stroke"in e?e.stroke:g||n.autoStroke&&!I?null:(P=2,C=!0,n.stroke)),X=e.textShadowBlur>0,U=0;U<v.length;U++){var W=this._getOrCreateChild(a.A),V=W.createStyle();W.useStyle(V),V.text=v[U],V.x=x,V.y=M,c&&(V.textAlign=c),V.textBaseline="middle",V.opacity=e.opacity,V.strokeFirst=!0,X&&(V.shadowBlur=e.textShadowBlur||0,V.shadowColor=e.textShadowColor||"transparent",V.shadowOffsetX=e.textShadowOffsetX||0,V.shadowOffsetY=e.textShadowOffsetY||0),V.stroke=F,V.fill=k,F&&(V.lineWidth=e.lineWidth||P,V.lineDash=e.lineDash,V.lineDashOffset=e.lineDashOffset||0),V.font=t,b(V,e),M+=R,W.setBoundingRect((0,i.xu)(V,d.contentWidth,d.calculatedLineHeight,C?0:null))}},t.prototype._updateRichTexts=function(){var e=this.style,t=this._defaultStyle,r=e.align||t.align,n=e.verticalAlign||t.verticalAlign,a=e.x||0,o=e.y||0;(0,i.Ss)(f,t.overflowRect,a,o,r,n),a=f.baseX,o=f.baseY;var l=L(e),c=(0,i.FQ)(l,e,f.outerWidth,f.outerHeight,r),u=c.width,h=c.outerWidth,p=c.outerHeight,d=e.padding;this.isTruncated=!!c.isTruncated;var m=(0,s.ll)(a,h,r),g=(0,s.sZ)(o,p,n),A=m,y=g;d&&(A+=d[3],y+=d[0]);var v=A+u;N(e)&&this._renderBackground(e,e,m,g,h,p);for(var R=!!e.backgroundColor,b=0;b<c.lines.length;b++){for(var x=c.lines[b],M=x.tokens,S=M.length,w=x.lineHeight,O=x.width,_=0,T=A,P=v,C=S-1,I=void 0;_<S&&(!(I=M[_]).align||"left"===I.align);)this._placeToken(I,e,w,y,T,"left",R),O-=I.width,T+=I.width,_++;for(;C>=0&&"right"===(I=M[C]).align;)this._placeToken(I,e,w,y,P,"right",R),O-=I.width,P-=I.width,C--;for(T+=(u-(T-A)-(v-P)-O)/2;_<=C;)I=M[_],this._placeToken(I,e,w,y,T+I.width/2,"center",R),T+=I.width,_++;y+=w}},t.prototype._placeToken=function(e,t,r,n,s,l,c){var u=t.rich[e.styleName]||{};u.text=e.text;var h=e.verticalAlign,d=n+r/2;"top"===h?d=n+e.height/2:"bottom"===h&&(d=n+r-e.height/2),!e.isLineHolder&&N(u)&&this._renderBackground(u,t,"right"===l?s-e.width:"center"===l?s-e.width/2:s,d-e.height/2,e.width,e.height);var f=!!u.backgroundColor,m=e.textPadding;m&&(s=O(s,l,m),d-=e.height/2-m[0]-e.innerHeight/2);var g=this._getOrCreateChild(a.A),A=g.createStyle();g.useStyle(A);var y=this._defaultStyle,v=!1,R=0,x=!1,M=w("fill"in u?u.fill:"fill"in t?t.fill:(v=!0,y.fill)),L=S("stroke"in u?u.stroke:"stroke"in t?t.stroke:f||c||y.autoStroke&&!v?null:(R=2,x=!0,y.stroke)),_=u.textShadowBlur>0||t.textShadowBlur>0;A.text=e.text,A.x=s,A.y=d,_&&(A.shadowBlur=u.textShadowBlur||t.textShadowBlur||0,A.shadowColor=u.textShadowColor||t.textShadowColor||"transparent",A.shadowOffsetX=u.textShadowOffsetX||t.textShadowOffsetX||0,A.shadowOffsetY=u.textShadowOffsetY||t.textShadowOffsetY||0),A.textAlign=l,A.textBaseline="middle",A.font=e.font||p.OH,A.opacity=(0,o.WV)(u.opacity,t.opacity,1),b(A,u),L&&(A.lineWidth=(0,o.WV)(u.lineWidth,t.lineWidth,R),A.lineDash=(0,o.bZ)(u.lineDash,t.lineDash),A.lineDashOffset=t.lineDashOffset||0,A.stroke=L),M&&(A.fill=M),g.setBoundingRect((0,i.xu)(A,e.contentWidth,e.contentHeight,x?0:null))},t.prototype._renderBackground=function(e,t,r,n,i,a){var s,u,h=e.backgroundColor,p=e.borderWidth,d=e.borderColor,f=h&&h.image,m=h&&!f,g=e.borderRadius,A=this;if(m||e.lineHeight||p&&d){(s=this._getOrCreateChild(c.A)).useStyle(s.createStyle()),s.style.fill=null;var y=s.shape;y.x=r,y.y=n,y.width=i,y.height=a,y.r=g,s.dirtyShape()}if(m){var v=s.style;v.fill=h||null,v.fillOpacity=(0,o.bZ)(e.fillOpacity,1)}else if(f){(u=this._getOrCreateChild(l.Ay)).onload=function(){A.dirtyStyle()};var R=u.style;R.image=h.image,R.x=r,R.y=n,R.width=i,R.height=a}if(p&&d){var v=s.style;v.lineWidth=p,v.stroke=d,v.strokeOpacity=(0,o.bZ)(e.strokeOpacity,1),v.lineDash=e.borderDash,v.lineDashOffset=e.borderDashOffset||0,s.strokeContainThreshold=0,s.hasFill()&&s.hasStroke()&&(v.strokeFirst=!0,v.lineWidth*=2)}var b=(s||u).style;b.shadowBlur=e.shadowBlur||0,b.shadowColor=e.shadowColor||"transparent",b.shadowOffsetX=e.shadowOffsetX||0,b.shadowOffsetY=e.shadowOffsetY||0,b.opacity=(0,o.WV)(e.opacity,t.opacity,1)},t.makeFont=function(e){var t="";return x(e)&&(t=[e.fontStyle,e.fontWeight,R(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),t&&(0,o.Bq)(t)||e.textFont||e.font},t}(h.Ay),A={left:!0,right:1,center:1},y={top:1,bottom:1,middle:1},v=["fontStyle","fontWeight","fontSize","fontFamily"];function R(e){return"string"==typeof e&&(-1!==e.indexOf("px")||-1!==e.indexOf("rem")||-1!==e.indexOf("em"))?e:isNaN(+e)?p.gI+"px":e+"px"}function b(e,t){for(var r=0;r<v.length;r++){var n=v[r],i=t[n];null!=i&&(e[n]=i)}}function x(e){return null!=e.fontSize||e.fontFamily||e.fontWeight}function M(e){if(e){e.font=g.makeFont(e);var t=e.align;"middle"===t&&(t="center"),e.align=null==t||A[t]?t:"left";var r=e.verticalAlign;"center"===r&&(r="middle"),e.verticalAlign=null==r||y[r]?r:"top",e.padding&&(e.padding=(0,o.QX)(e.padding))}}function S(e,t){return null==e||t<=0||"transparent"===e||"none"===e?null:e.image||e.colorStops?"#000":e}function w(e){return null==e||"none"===e?null:e.image||e.colorStops?"#000":e}function O(e,t,r){return"right"===t?e-r[1]:"center"===t?e+r[3]/2-r[1]/2:e+r[3]}function L(e){var t=e.text;return null!=t&&(t+=""),t}function N(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}t.Ay=g,r.d(t,{I5:()=>R,XE:()=>x})},56448(e,t,r){r.d(t,{Dl:()=>4,M:()=>1,pO:()=>2})},12191(e,t,r){var n=r(60501),i=r(59741),a=new n.Ay(50);function o(e){if("string"!=typeof e)return e;var t=a.get(e);return t&&t.image}function s(e,t,r,n,o){if(!e)return t;if("string"!=typeof e)return e;if(t&&t.__zrImageSrc===e||!r)return t;var s=a.get(e),u={hostEl:r,cb:n,cbPayload:o};return s?c(t=s.image)||s.pending.push(u):((t=i.yh.loadImage(e,l,l)).__zrImageSrc=e,a.put(e,t.__cachedImgObj={image:t,pending:[u]})),t}function l(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var r=e.pending[t],n=r.cb;n&&n(this,r.cbPayload),r.hostEl.dirty()}e.pending.length=0}function c(e){return e&&e.width&&e.height}r.d(t,{OD:()=>s,SR:()=>o,xA:()=>c})},62406(e,t,r){var n=r(12191),i=r(98026),a=r(45558),o=r(29308),s=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function l(e,t,r,n){n=n||{};var o=(0,i.X$)({},n);r=(0,i.bZ)(r,"..."),o.maxIterations=(0,i.bZ)(n.maxIterations,2);var s=o.minChar=(0,i.bZ)(n.minChar,0),l=o.fontMeasureInfo=(0,a.Qw)(t),c=l.asciiCharWidth;o.placeholder=(0,i.bZ)(n.placeholder,"");for(var u=e=Math.max(0,e-1),h=0;h<s&&u>=c;h++)u-=c;var p=(0,a.l8)(l,r);return p>u&&(r="",p=0),u=e-p,o.ellipsis=r,o.ellipsisWidth=p,o.contentWidth=u,o.containerWidth=e,o}function c(e,t,r){var n=r.containerWidth,i=r.contentWidth,o=r.fontMeasureInfo;if(!n){e.textLine="",e.isTruncated=!1;return}var s=(0,a.l8)(o,t);if(s<=n){e.textLine=t,e.isTruncated=!1;return}for(var l=0;;l++){if(s<=i||l>=r.maxIterations){t+=r.ellipsis;break}var c=0===l?function(e,t,r){for(var n=0,i=0,o=e.length;i<o&&n<t;i++)n+=(0,a.JK)(r,e.charCodeAt(i));return i}(t,i,o):s>0?Math.floor(t.length*i/s):0;t=t.substr(0,c),s=(0,a.l8)(o,t)}""===t&&(t=r.placeholder),e.textLine=t,e.isTruncated=!0}function u(e,t,r,n){var o,s=b(e),u=t.overflow,h=t.padding,p=h?h[1]+h[3]:0,d=h?h[0]+h[2]:0,f=t.font,m=(0,a.ks)(f),g=(0,i.bZ)(t.lineHeight,m),y="truncate"===t.lineOverflow,v=!1,R=t.width;null==R&&null!=r&&(R=r-p);var x=t.height;null==x&&null!=n&&(x=n-d);var M=(o=null!=R&&("break"===u||"breakAll"===u)?s?A(s,t.font,R,"breakAll"===u,0).lines:[]:s?s.split("\n"):[]).length*g;if(null==x&&(x=M),M>x&&y){var S=Math.floor(x/g);v=v||o.length>S,M=(o=o.slice(0,S)).length*g}if(s&&"truncate"===u&&null!=R)for(var w=l(R,f,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),O={},L=0;L<o.length;L++)c(O,o[L],w),o[L]=O.textLine,v=v||O.isTruncated;for(var N=x,_=0,T=(0,a.Qw)(f),L=0;L<o.length;L++)_=Math.max((0,a.l8)(T,o[L]),_);null==R&&(R=_);var P=R;return N+=d,{lines:o,height:x,outerWidth:P+=p,outerHeight:N,lineHeight:g,calculatedLineHeight:m,contentWidth:_,contentHeight:M,width:R,isTruncated:v}}var h=function(){},p=function(e){this.tokens=[],e&&(this.tokens=e)},d=function(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1};function f(e,t,r,o,u){var h,p=new d,f=b(e);if(!f)return p;var g=t.padding,A=g?g[1]+g[3]:0,y=g?g[0]+g[2]:0,v=t.width;null==v&&null!=r&&(v=r-A);var R=t.height;null==R&&null!=o&&(R=o-y);for(var x=t.overflow,M=("break"===x||"breakAll"===x)&&null!=v?{width:v,accumWidth:0,breakAll:"breakAll"===x}:null,S=s.lastIndex=0;null!=(h=s.exec(f));){var w=h.index;w>S&&m(p,f.substring(S,w),t,M),m(p,h[2],t,M,h[1]),S=s.lastIndex}S<f.length&&m(p,f.substring(S,f.length),t,M);var O=[],L=0,N=0,_="truncate"===x,T="truncate"===t.lineOverflow,P={};function C(e,t,r){e.width=t,e.lineHeight=r,L+=r,N=Math.max(N,t)}l:for(var I=0;I<p.lines.length;I++){for(var k=p.lines[I],F=0,X=0,U=0;U<k.tokens.length;U++){var W=k.tokens[U],V=W.styleName&&t.rich[W.styleName]||{},E=W.textPadding=V.padding,Y=E?E[1]+E[3]:0,D=W.font=V.font||t.font;W.contentHeight=(0,a.ks)(D);var Q=(0,i.bZ)(V.height,W.contentHeight);if(W.innerHeight=Q,E&&(Q+=E[0]+E[2]),W.height=Q,W.lineHeight=(0,i.WV)(V.lineHeight,t.lineHeight,Q),W.align=V&&V.align||u,W.verticalAlign=V&&V.verticalAlign||"middle",T&&null!=R&&L+W.lineHeight>R){var $=p.lines.length;U>0?(k.tokens=k.tokens.slice(0,U),C(k,X,F),p.lines=p.lines.slice(0,I+1)):p.lines=p.lines.slice(0,I),p.isTruncated=p.isTruncated||p.lines.length<$;break l}var B=V.width,Z=null==B||"auto"===B;if("string"==typeof B&&"%"===B.charAt(B.length-1))W.percentWidth=B,O.push(W),W.contentWidth=(0,a.l8)((0,a.Qw)(D),W.text);else{if(Z){var K=V.backgroundColor,G=K&&K.image;G&&(G=n.SR(G),n.xA(G)&&(W.width=Math.max(W.width,G.width*Q/G.height)))}var H=_&&null!=v?v-X:null;null!=H&&H<W.width?!Z||H<Y?(W.text="",W.width=W.contentWidth=0):(!function(e,t,r,n,i,a){if(!r){e.text="",e.isTruncated=!1;return}var o=(t+"").split("\n");a=l(r,n,i,a);for(var s=!1,u={},h=0,p=o.length;h<p;h++)c(u,o[h],a),o[h]=u.textLine,s=s||u.isTruncated;e.text=o.join("\n"),e.isTruncated=s}(P,W.text,H-Y,D,t.ellipsis,{minChar:t.truncateMinChar}),W.text=P.text,p.isTruncated=p.isTruncated||P.isTruncated,W.width=W.contentWidth=(0,a.l8)((0,a.Qw)(D),W.text)):W.contentWidth=(0,a.l8)((0,a.Qw)(D),W.text)}W.width+=Y,X+=W.width,V&&(F=Math.max(F,W.lineHeight))}C(k,X,F)}p.outerWidth=p.width=(0,i.bZ)(v,N),p.outerHeight=p.height=(0,i.bZ)(R,L),p.contentHeight=L,p.contentWidth=N,p.outerWidth+=A,p.outerHeight+=y;for(var I=0;I<O.length;I++){var W=O[I],z=W.percentWidth;W.width=parseInt(z,10)/100*p.width}return p}function m(e,t,r,n,i){var o,s,l=""===t,c=i&&r.rich[i]||{},u=e.lines,d=c.font||r.font,f=!1;if(n){var m=c.padding,g=m?m[1]+m[3]:0;if(null!=c.width&&"auto"!==c.width){var y=(0,a.lo)(c.width,n.width)+g;u.length>0&&y+n.accumWidth>n.width&&(o=t.split("\n"),f=!0),n.accumWidth=y}else{var v=A(t,d,n.width,n.breakAll,n.accumWidth);n.accumWidth=v.accumWidth+g,s=v.linesWidths,o=v.lines}}o||(o=t.split("\n"));for(var R=(0,a.Qw)(d),b=0;b<o.length;b++){var x=o[b],M=new h;if(M.styleName=i,M.text=x,M.isLineHolder=!x&&!l,"number"==typeof c.width?M.width=c.width:M.width=s?s[b]:(0,a.l8)(R,x),b||f)u.push(new p([M]));else{var S=(u[u.length-1]||(u[0]=new p)).tokens,w=S.length;1===w&&S[0].isLineHolder?S[0]=M:(x||!w||l)&&S.push(M)}}}var g=(0,i.TS)(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function A(e,t,r,n,i){for(var o=[],s=[],l="",c="",u=0,h=0,p=(0,a.Qw)(t),d=0;d<e.length;d++){var f=e.charAt(d);if("\n"===f){c&&(l+=c,h+=u),o.push(l),s.push(h),l="",c="",u=0,h=0;continue}var m=(0,a.JK)(p,f.charCodeAt(0)),A=!n&&!function(e){var t;return(!((t=e.charCodeAt(0))>=32)||!(t<=591))&&(!(t>=880)||!(t<=4351))&&(!(t>=4608)||!(t<=5119))&&(!(t>=7680)||!(t<=8303))||!!g[e]}(f);if(o.length?h+m>r:i+h+m>r){h?(l||c)&&(A?(l||(l=c,c="",h=u=0),o.push(l),s.push(h-u),c+=f,u+=m,l="",h=u):(c&&(l+=c,c="",u=0),o.push(l),s.push(h),l=f,h=m)):A?(o.push(c),s.push(u),c=f,u=m):(o.push(f),s.push(m));continue}h+=m,A?(c+=f,u+=m):(c&&(l+=c,c="",u=0),l+=f)}return c&&(l+=c),l&&(o.push(l),s.push(h)),1===o.length&&(h+=i),{accumWidth:h,lines:o,linesWidths:s}}function y(e,t,r,n,i,s){if(e.baseX=r,e.baseY=n,e.outerWidth=e.outerHeight=null,t){var l=2*t.width,c=2*t.height;o.Ay.set(v,(0,a.ll)(r,l,i),(0,a.sZ)(n,c,s),l,c),o.Ay.intersect(t,v,null,R);var u=R.outIntersectRect;e.outerWidth=u.width,e.outerHeight=u.height,e.baseX=(0,a.ll)(u.x,u.width,i,!0),e.baseY=(0,a.sZ)(u.y,u.height,s,!0)}}var v=new o.Ay(0,0,0,0),R={outIntersectRect:{},clamp:!0};function b(e){return null!=e?e+="":e=""}function x(e){var t=b(e.text),r=e.font;return M(e,(0,a.l8)((0,a.Qw)(r),t),(0,a.ks)(r),null)}function M(e,t,r,n){var i=new o.Ay((0,a.ll)(e.x||0,t,e.textAlign),(0,a.sZ)(e.y||0,r,e.textBaseline),t,r),s=null!=n?n:S(e)?e.lineWidth:0;return s>0&&(i.x-=s/2,i.y-=s/2,i.width+=s,i.height+=s),i}function S(e){var t=e.stroke;return null!=t&&"none"!==t&&e.lineWidth>0}r.d(t,{FQ:()=>f,Ss:()=>y,Xf:()=>x,j_:()=>u,n7:()=>S,xu:()=>M})},94825(e,t,r){r.d(t,{U:()=>i});var n=r(83509);function i(e,t,r){var i=t.smooth,a=t.points;if(a&&a.length>=2){if(i){var o=function(e,t,r,i){var a,o,s,l,c=[],u=[],h=[],p=[];if(i){s=[1/0,1/0],l=[-1/0,-1/0];for(var d=0,f=e.length;d<f;d++)(0,n.jk)(s,s,e[d]),(0,n.T9)(l,l,e[d]);(0,n.jk)(s,s,i[0]),(0,n.T9)(l,l,i[1])}for(var d=0,f=e.length;d<f;d++){var m=e[d];if(r)a=e[d?d-1:f-1],o=e[(d+1)%f];else if(0===d||d===f-1){c.push((0,n.o8)(e[d]));continue}else a=e[d-1],o=e[d+1];(0,n.jb)(u,o,a),(0,n.hs)(u,u,t);var g=(0,n.Io)(m,a),A=(0,n.Io)(m,o),y=g+A;0!==y&&(g/=y,A/=y),(0,n.hs)(h,u,-g),(0,n.hs)(p,u,A);var v=(0,n.WQ)([],m,h),R=(0,n.WQ)([],m,p);i&&((0,n.T9)(v,v,s),(0,n.jk)(v,v,l),(0,n.T9)(R,R,s),(0,n.jk)(R,R,l)),c.push(v),c.push(R)}return r&&c.push(c.shift()),c}(a,i,r,t.smoothConstraint);e.moveTo(a[0][0],a[0][1]);for(var s=a.length,l=0;l<(r?s:s-1);l++){var c=o[2*l],u=o[2*l+1],h=a[(l+1)%s];e.bezierCurveTo(c[0],c[1],u[0],u[1],h[0],h[1])}}else{e.moveTo(a[0][0],a[0][1]);for(var l=1,p=a.length;l<p;l++)e.lineTo(a[l][0],a[l][1])}r&&e.closePath()}}},14865(e,t,r){var n=Math.round;function i(e,t,r){if(t){var i=t.x1,a=t.x2,s=t.y1,l=t.y2;e.x1=i,e.x2=a,e.y1=s,e.y2=l;var c=r&&r.lineWidth;return c&&(n(2*i)===n(2*a)&&(e.x1=e.x2=o(i,c,!0)),n(2*s)===n(2*l)&&(e.y1=e.y2=o(s,c,!0))),e}}function a(e,t,r){if(t){var n=t.x,i=t.y,a=t.width,s=t.height;e.x=n,e.y=i,e.width=a,e.height=s;var l=r&&r.lineWidth;return l&&(e.x=o(n,l,!0),e.y=o(i,l,!0),e.width=Math.max(o(n+a,l,!1)-e.x,+(0!==a)),e.height=Math.max(o(i+s,l,!1)-e.y,+(0!==s))),e}}function o(e,t,r){if(!t)return e;var i=n(2*e);return(i+n(t))%2==0?i/2:(i+(r?1:-1))/2}r.d(t,{M7:()=>o,Op:()=>a,eB:()=>i})},43471(e,t,r){var n=r(15727),i=r(87691),a=function(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},o=function(e){function t(t){return e.call(this,t)||this}return(0,n.C6)(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new a},t.prototype.buildPath=function(e,t){var r=t.cx,n=t.cy,i=Math.max(t.r,0),a=t.startAngle,o=t.endAngle,s=t.clockwise,l=Math.cos(a),c=Math.sin(a);e.moveTo(l*i+r,c*i+n),e.arc(r,n,i,a,o,!s)},t}(i.Ay);o.prototype.type="arc",t.A=o},31571(e,t,r){var n=r(15727),i=r(87691),a=function(){this.cx=0,this.cy=0,this.r=0},o=function(e){function t(t){return e.call(this,t)||this}return(0,n.C6)(t,e),t.prototype.getDefaultShape=function(){return new a},t.prototype.buildPath=function(e,t){e.moveTo(t.cx+t.r,t.cy),e.arc(t.cx,t.cy,t.r,0,2*Math.PI)},t}(i.Ay);o.prototype.type="circle",t.A=o},82861(e,t,r){var n=r(15727),i=r(87691),a=r(14865),o={},s=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1},l=function(e){function t(t){return e.call(this,t)||this}return(0,n.C6)(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new s},t.prototype.buildPath=function(e,t){if(this.subPixelOptimize){var r,n,i,s,l=(0,a.eB)(o,t,this.style);r=l.x1,n=l.y1,i=l.x2,s=l.y2}else r=t.x1,n=t.y1,i=t.x2,s=t.y2;var c=t.percent;0!==c&&(e.moveTo(r,n),c<1&&(i=r*(1-c)+i*c,s=n*(1-c)+s*c),e.lineTo(i,s))},t.prototype.pointAt=function(e){var t=this.shape;return[t.x1*(1-e)+t.x2*e,t.y1*(1-e)+t.y2*e]},t}(i.Ay);l.prototype.type="line",t.A=l},52505(e,t,r){var n=r(15727),i=r(87691),a=r(94825),o=function(){this.points=null,this.smooth=0,this.smoothConstraint=null},s=function(e){function t(t){return e.call(this,t)||this}return(0,n.C6)(t,e),t.prototype.getDefaultShape=function(){return new o},t.prototype.buildPath=function(e,t){a.U(e,t,!0)},t}(i.Ay);s.prototype.type="polygon",t.A=s},39195(e,t,r){var n=r(15727),i=r(87691),a=r(94825),o=function(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null},s=function(e){function t(t){return e.call(this,t)||this}return(0,n.C6)(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new o},t.prototype.buildPath=function(e,t){a.U(e,t,!1)},t}(i.Ay);s.prototype.type="polyline",t.A=s},60866(e,t,r){r.d(t,{A:()=>c});var n=r(15727),i=r(87691),a=r(14865),o=function(){this.x=0,this.y=0,this.width=0,this.height=0},s={},l=function(e){function t(t){return e.call(this,t)||this}return(0,n.C6)(t,e),t.prototype.getDefaultShape=function(){return new o},t.prototype.buildPath=function(e,t){if(this.subPixelOptimize){var r,n,i,o,l,c,u,h,p,d,f,m,g,A,y,v=(0,a.Op)(s,t,this.style);m=v.x,g=v.y,A=v.width,y=v.height,v.r=t.r,t=v}else m=t.x,g=t.y,A=t.width,y=t.height;t.r?(u=(r=t).x,h=r.y,p=r.width,d=r.height,f=r.r,p<0&&(u+=p,p=-p),d<0&&(h+=d,d=-d),"number"==typeof f?n=i=o=l=f:f instanceof Array?1===f.length?n=i=o=l=f[0]:2===f.length?(n=o=f[0],i=l=f[1]):3===f.length?(n=f[0],i=l=f[1],o=f[2]):(n=f[0],i=f[1],o=f[2],l=f[3]):n=i=o=l=0,n+i>p&&(c=n+i,n*=p/c,i*=p/c),o+l>p&&(c=o+l,o*=p/c,l*=p/c),i+o>d&&(c=i+o,i*=d/c,o*=d/c),n+l>d&&(c=n+l,n*=d/c,l*=d/c),e.moveTo(u+n,h),e.lineTo(u+p-i,h),0!==i&&e.arc(u+p-i,h+i,i,-Math.PI/2,0),e.lineTo(u+p,h+d-o),0!==o&&e.arc(u+p-o,h+d-o,o,0,Math.PI/2),e.lineTo(u+l,h+d),0!==l&&e.arc(u+l,h+d-l,l,Math.PI/2,Math.PI),e.lineTo(u,h+n),0!==n&&e.arc(u+n,h+n,n,Math.PI,1.5*Math.PI),e.closePath()):e.rect(m,g,A,y)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(i.Ay);l.prototype.type="rect";var c=l},42933(e,t,r){var n=r(15727),i=r(87691),a=function(){this.cx=0,this.cy=0,this.r=0,this.r0=0},o=function(e){function t(t){return e.call(this,t)||this}return(0,n.C6)(t,e),t.prototype.getDefaultShape=function(){return new a},t.prototype.buildPath=function(e,t){var r=t.cx,n=t.cy,i=2*Math.PI;e.moveTo(r+t.r,n),e.arc(r,n,t.r,0,i,!1),e.moveTo(r+t.r0,n),e.arc(r,n,t.r0,0,i,!0)},t}(i.Ay);o.prototype.type="ring",t.A=o},13818(e,t,r){r.d(t,{A:()=>v});var n=r(15727),i=r(87691),a=r(98026),o=Math.PI,s=2*o,l=Math.sin,c=Math.cos,u=Math.acos,h=Math.atan2,p=Math.abs,d=Math.sqrt,f=Math.max,m=Math.min;function g(e,t,r,n,i,a,o){var s=e-r,l=t-n,c=(o?a:-a)/d(s*s+l*l),u=c*l,h=-c*s,p=e+u,m=t+h,g=r+u,A=n+h,y=(p+g)/2,v=(m+A)/2,R=g-p,b=A-m,x=R*R+b*b,M=i-a,S=p*A-g*m,w=(b<0?-1:1)*d(f(0,M*M*x-S*S)),O=(S*b-R*w)/x,L=(-S*R-b*w)/x,N=(S*b+R*w)/x,_=(-S*R+b*w)/x,T=O-y,P=L-v,C=N-y,I=_-v;return T*T+P*P>C*C+I*I&&(O=N,L=_),{cx:O,cy:L,x0:-u,y0:-h,x1:O*(i/M-1),y1:L*(i/M-1)}}var A=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0},y=function(e){function t(t){return e.call(this,t)||this}return(0,n.C6)(t,e),t.prototype.getDefaultShape=function(){return new A},t.prototype.buildPath=function(e,t){!function(e,t){var r,n=f(t.r,0),i=f(t.r0||0,0),A=n>0,y=i>0;if(A||y){if(A||(n=i,i=0),i>n){var v=n;n=i,i=v}var R=t.startAngle,b=t.endAngle;if(!(isNaN(R)||isNaN(b))){var x=t.cx,M=t.cy,S=!!t.clockwise,w=p(b-R),O=w>s&&w%s;if(O>1e-4&&(w=O),n>1e-4)if(w>s-1e-4)e.moveTo(x+n*c(R),M+n*l(R)),e.arc(x,M,n,R,b,!S),i>1e-4&&(e.moveTo(x+i*c(b),M+i*l(b)),e.arc(x,M,i,b,R,S));else{var L=void 0,N=void 0,_=void 0,T=void 0,P=void 0,C=void 0,I=void 0,k=void 0,F=void 0,X=void 0,U=void 0,W=void 0,V=void 0,E=void 0,Y=void 0,D=void 0,Q=n*c(R),$=n*l(R),B=i*c(b),Z=i*l(b),K=w>1e-4;if(K){var G=t.cornerRadius;G&&(L=(r=function(e){var t;if((0,a.cy)(e)){var r=e.length;if(!r)return e;t=1===r?[e[0],e[0],0,0]:2===r?[e[0],e[0],e[1],e[1]]:3===r?e.concat(e[2]):e}else t=[e,e,e,e];return t}(G))[0],N=r[1],_=r[2],T=r[3]);var H=p(n-i)/2;if(P=m(H,_),C=m(H,T),I=m(H,L),k=m(H,N),U=F=f(P,C),W=X=f(I,k),(F>1e-4||X>1e-4)&&(V=n*c(b),E=n*l(b),Y=i*c(R),D=i*l(R),w<o)){var z=function(e,t,r,n,i,a,o,s){var l=r-e,c=n-t,u=o-i,h=s-a,p=h*l-u*c;if(!(p*p<1e-4))return p=(u*(t-a)-h*(e-i))/p,[e+p*l,t+p*c]}(Q,$,Y,D,V,E,B,Z);if(z){var J=Q-z[0],j=$-z[1],q=V-z[0],ee=E-z[1],et=1/l(u((J*q+j*ee)/(d(J*J+j*j)*d(q*q+ee*ee)))/2),er=d(z[0]*z[0]+z[1]*z[1]);U=m(F,(n-er)/(et+1)),W=m(X,(i-er)/(et-1))}}}if(K)if(U>1e-4){var en=m(_,U),ei=m(T,U),ea=g(Y,D,Q,$,n,en,S),eo=g(V,E,B,Z,n,ei,S);e.moveTo(x+ea.cx+ea.x0,M+ea.cy+ea.y0),U<F&&en===ei?e.arc(x+ea.cx,M+ea.cy,U,h(ea.y0,ea.x0),h(eo.y0,eo.x0),!S):(en>0&&e.arc(x+ea.cx,M+ea.cy,en,h(ea.y0,ea.x0),h(ea.y1,ea.x1),!S),e.arc(x,M,n,h(ea.cy+ea.y1,ea.cx+ea.x1),h(eo.cy+eo.y1,eo.cx+eo.x1),!S),ei>0&&e.arc(x+eo.cx,M+eo.cy,ei,h(eo.y1,eo.x1),h(eo.y0,eo.x0),!S))}else e.moveTo(x+Q,M+$),e.arc(x,M,n,R,b,!S);else e.moveTo(x+Q,M+$);if(i>1e-4&&K)if(W>1e-4){var en=m(L,W),ei=m(N,W),ea=g(B,Z,V,E,i,-ei,S),eo=g(Q,$,Y,D,i,-en,S);e.lineTo(x+ea.cx+ea.x0,M+ea.cy+ea.y0),W<X&&en===ei?e.arc(x+ea.cx,M+ea.cy,W,h(ea.y0,ea.x0),h(eo.y0,eo.x0),!S):(ei>0&&e.arc(x+ea.cx,M+ea.cy,ei,h(ea.y0,ea.x0),h(ea.y1,ea.x1),!S),e.arc(x,M,i,h(ea.cy+ea.y1,ea.cx+ea.x1),h(eo.cy+eo.y1,eo.cx+eo.x1),S),en>0&&e.arc(x+eo.cx,M+eo.cy,en,h(eo.y1,eo.x1),h(eo.y0,eo.x0),!S))}else e.lineTo(x+B,M+Z),e.arc(x,M,i,b,R,S);else e.lineTo(x+B,M+Z)}else e.moveTo(x,M);e.closePath()}}}(e,t)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(i.Ay);y.prototype.type="sector";var v=y},3455(e,t,r){var n=r(98026),i=r(47698),a=r(49705).hp,o=Math.round;function s(e){var t;if(e&&"transparent"!==e){if("string"==typeof e&&e.indexOf("rgba")>-1){var r=(0,i.qg)(e);r&&(e="rgb("+r[0]+","+r[1]+","+r[2]+")",t=r[3])}}else e="none";return{color:e,opacity:null==t?1:t}}function l(e){return e<1e-4&&e>-1e-4}function c(e){return o(1e3*e)/1e3}function u(e){return o(1e4*e)/1e4}function h(e){return"matrix("+c(e[0])+","+c(e[1])+","+c(e[2])+","+c(e[3])+","+u(e[4])+","+u(e[5])+")"}var p={left:"start",right:"end",center:"middle",middle:"middle"};function d(e,t,r){return"top"===r?e+=t/2:"bottom"===r&&(e-=t/2),e}function f(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function m(e){var t=e.style,r=e.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),r[0],r[1]].join(",")}function g(e){return e&&!!e.image}function A(e){return g(e)||e&&!!e.svgElement}function y(e){return"linear"===e.type}function v(e){return"radial"===e.type}function R(e){return e&&("linear"===e.type||"radial"===e.type)}function b(e){return"url(#"+e+")"}function x(e){var t=e.getGlobalScale();return Math.max(Math.ceil(Math.log(Math.max(t[0],t[1]))/Math.log(10)),1)}function M(e){var t=e.x||0,r=e.y||0,i=(e.rotation||0)*n.lI,a=(0,n.bZ)(e.scaleX,1),s=(0,n.bZ)(e.scaleY,1),l=e.skewX||0,c=e.skewY||0,u=[];return(t||r)&&u.push("translate("+t+"px,"+r+"px)"),i&&u.push("rotate("+i+")"),(1!==a||1!==s)&&u.push("scale("+a+","+s+")"),(l||c)&&u.push("skew("+o(l*n.lI)+"deg, "+o(c*n.lI)+"deg)"),u.join(" ")}var S=void 0!==a&&"function"==typeof a.from?function(e){return a.from(e).toString("base64")}:"function"==typeof btoa&&"function"==typeof unescape&&"function"==typeof encodeURIComponent?function(e){return btoa(unescape(encodeURIComponent(e)))}:function(e){return null};r.d(t,{$2:()=>s,Cv:()=>l,MD:()=>x,OH:()=>v,OS:()=>y,Pt:()=>A,WG:()=>S,XP:()=>u,Xu:()=>b,Z1:()=>M,bn:()=>R,dX:()=>f,eQ:()=>p,nV:()=>h,sL:()=>g,sZ:()=>d,si:()=>m})},47698(e,t,r){var n=r(60501),i=r(98026),a={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function o(e){return(e=Math.round(e))<0?0:e>255?255:e}function s(e){return e<0?0:e>1?1:e}function l(e){return e.length&&"%"===e.charAt(e.length-1)?o(parseFloat(e)/100*255):o(parseInt(e,10))}function c(e){return e.length&&"%"===e.charAt(e.length-1)?s(parseFloat(e)/100):s(parseFloat(e))}function u(e,t,r){return(r<0?r+=1:r>1&&(r-=1),6*r<1)?e+(t-e)*r*6:2*r<1?t:3*r<2?e+(t-e)*(2/3-r)*6:e}function h(e,t,r,n,i){return e[0]=t,e[1]=r,e[2]=n,e[3]=i,e}function p(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var d=new n.Ay(20),f=null;function m(e,t){f&&p(f,t),f=d.put(e,f||t.slice())}function g(e,t){if(e){t=t||[];var r=d.get(e);if(r)return p(t,r);var n=(e+="").replace(/ /g,"").toLowerCase();if(n in a)return p(t,a[n]),m(e,t),t;var i=n.length;if("#"===n.charAt(0)){if(4===i||5===i){var o=parseInt(n.slice(1,4),16);return o>=0&&o<=4095?(h(t,(3840&o)>>4|(3840&o)>>8,240&o|(240&o)>>4,15&o|(15&o)<<4,5===i?parseInt(n.slice(4),16)/15:1),m(e,t),t):void h(t,0,0,0,1)}if(7===i||9===i){var o=parseInt(n.slice(1,7),16);return o>=0&&o<=0xffffff?(h(t,(0xff0000&o)>>16,(65280&o)>>8,255&o,9===i?parseInt(n.slice(7),16)/255:1),m(e,t),t):void h(t,0,0,0,1)}return}var s=n.indexOf("("),u=n.indexOf(")");if(-1!==s&&u+1===i){var f=n.substr(0,s),g=n.substr(s+1,u-(s+1)).split(","),y=1;switch(f){case"rgba":if(4!==g.length)return 3===g.length?h(t,+g[0],+g[1],+g[2],1):h(t,0,0,0,1);y=c(g.pop());case"rgb":if(g.length>=3)return h(t,l(g[0]),l(g[1]),l(g[2]),3===g.length?y:c(g[3])),m(e,t),t;return void h(t,0,0,0,1);case"hsla":if(4!==g.length)return void h(t,0,0,0,1);return g[3]=c(g[3]),A(g,t),m(e,t),t;case"hsl":if(3!==g.length)return void h(t,0,0,0,1);return A(g,t),m(e,t),t;default:return}}h(t,0,0,0,1)}}function A(e,t){var r=(parseFloat(e[0])%360+360)%360/360,n=c(e[1]),i=c(e[2]),a=i<=.5?i*(n+1):i+n-i*n,s=2*i-a;return h(t=t||[],o(255*u(s,a,r+1/3)),o(255*u(s,a,r)),o(255*u(s,a,r-1/3)),1),4===e.length&&(t[3]=e[3]),t}function y(e,t){var r=g(e);if(r){for(var n=0;n<3;n++)t<0?r[n]=r[n]*(1-t)|0:r[n]=(255-r[n])*t+r[n]|0,r[n]>255?r[n]=255:r[n]<0&&(r[n]=0);return b(r,4===r.length?"rgba":"rgb")}}function v(e,t,r){if(t&&t.length&&e>=0&&e<=1){var n,i,a,l,c=e*(t.length-1),u=Math.floor(c),h=Math.ceil(c),p=g(t[u]),d=g(t[h]),f=c-u,m=b([o((n=p[0],n+(d[0]-n)*f)),o((i=p[1],i+(d[1]-i)*f)),o((a=p[2],a+(d[2]-a)*f)),s((l=p[3],l+(d[3]-l)*f))],"rgba");return r?{color:m,leftIndex:u,rightIndex:h,value:c}:m}}function R(e,t,r,n){var a,o=g(e);if(e)return o=function(e){if(e){var t,r,n=e[0]/255,i=e[1]/255,a=e[2]/255,o=Math.min(n,i,a),s=Math.max(n,i,a),l=s-o,c=(s+o)/2;if(0===l)t=0,r=0;else{r=c<.5?l/(s+o):l/(2-s-o);var u=((s-n)/6+l/2)/l,h=((s-i)/6+l/2)/l,p=((s-a)/6+l/2)/l;n===s?t=p-h:i===s?t=1/3+u-p:a===s&&(t=2/3+h-u),t<0&&(t+=1),t>1&&(t-=1)}var d=[360*t,r,c];return null!=e[3]&&d.push(e[3]),d}}(o),null!=t&&(o[0]=(a=Math.round(a=(0,i.Tn)(t)?t(o[0]):t))<0?0:a>360?360:a),null!=r&&(o[1]=c((0,i.Tn)(r)?r(o[1]):r)),null!=n&&(o[2]=c((0,i.Tn)(n)?n(o[2]):n)),b(A(o),"rgba")}function b(e,t){if(e&&e.length){var r=e[0]+","+e[1]+","+e[2];return("rgba"===t||"hsva"===t||"hsla"===t)&&(r+=","+e[3]),t+"("+r+")"}}function x(e,t){var r=g(e);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}var M=new n.Ay(100);function S(e){if((0,i.Kg)(e)){var t=M.get(e);return t||(t=y(e,-.1),M.put(e,t)),t}if((0,i.C7)(e)){var r=(0,i.X$)({},e);return r.colorStops=(0,i.Tj)(e.colorStops,function(e){return{offset:e.offset,color:y(e.color,-.1)}}),r}return e}r.d(t,{As:()=>b,Cc:()=>v,P:()=>S,Yu:()=>R,fN:()=>x,qg:()=>g})},95068(e,t,r){r.d(t,{N1:()=>es,Ts:()=>ea,fI:()=>eo,jW:()=>el});var n,i,a,o,s=r(38123),l=r(98026),c=r(15727),u=r(83509),h=function(e,t){this.target=e,this.topTarget=t&&t.topTarget},p=function(){function e(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return e.prototype._dragStart=function(e){for(var t=e.target;t&&!t.draggable;)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new h(t,e),"dragstart",e.event))},e.prototype._drag=function(e){var t=this._draggingTarget;if(t){var r=e.offsetX,n=e.offsetY,i=r-this._x,a=n-this._y;this._x=r,this._y=n,t.drift(i,a,e),this.handler.dispatchToElement(new h(t,e),"drag",e.event);var o=this.handler.findHover(r,n,t).target,s=this._dropTarget;this._dropTarget=o,t!==o&&(s&&o!==s&&this.handler.dispatchToElement(new h(s,e),"dragleave",e.event),o&&o!==s&&this.handler.dispatchToElement(new h(o,e),"dragenter",e.event))}},e.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new h(t,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new h(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},e}(),d=r(57861),f=r(35452),m=function(){function e(){this._track=[]}return e.prototype.recognize=function(e,t,r){return this._doTrack(e,t,r),this._recognize(e)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(e,t,r){var n=e.touches;if(n){for(var i={points:[],touches:[],target:t,event:e},a=0,o=n.length;a<o;a++){var s=n[a],l=f.Yo(r,s,{});i.points.push([l.zrX,l.zrY]),i.touches.push(s)}this._track.push(i)}},e.prototype._recognize=function(e){for(var t in A)if(A.hasOwnProperty(t)){var r=A[t](this._track,e);if(r)return r}},e}();function g(e){var t=e[1][0]-e[0][0],r=e[1][1]-e[0][1];return Math.sqrt(t*t+r*r)}var A={pinch:function(e,t){var r=e.length;if(r){var n=(e[r-1]||{}).points,i=(e[r-2]||{}).points||n;if(i&&i.length>1&&n&&n.length>1){var a=g(n)/g(i);isFinite(a)||(a=1),t.pinchScale=a;var o=[(n[0][0]+n[1][0])/2,(n[0][1]+n[1][1])/2];return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}},y=r(29308),v="silent";function R(){f.ds(this.event)}var b=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handler=null,t}return(0,c.C6)(t,e),t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(d.A),x=function(e,t){this.x=e,this.y=t},M=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],S=new y.Ay(0,0,0,0),w=function(e){function t(t,r,n,i,a){var o=e.call(this)||this;return o._hovered=new x(0,0),o.storage=t,o.painter=r,o.painterRoot=i,o._pointerSize=a,n=n||new b,o.proxy=null,o.setHandlerProxy(n),o._draggingMgr=new p(o),o}return(0,c.C6)(t,e),t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(l.__(M,function(t){e.on&&e.on(t,this[t],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var t=e.zrX,r=e.zrY,n=L(this,t,r),i=this._hovered,a=i.target;a&&!a.__zr&&(a=(i=this.findHover(i.x,i.y)).target);var o=this._hovered=n?new x(t,r):this.findHover(t,r),s=o.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),a&&s!==a&&this.dispatchToElement(i,"mouseout",e),this.dispatchToElement(o,"mousemove",e),s&&s!==a&&this.dispatchToElement(o,"mouseover",e)},t.prototype.mouseout=function(e){var t=e.zrEventControl;"only_globalout"!==t&&this.dispatchToElement(this._hovered,"mouseout",e),"no_globalout"!==t&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new x(0,0)},t.prototype.dispatch=function(e,t){var r=this[e];r&&r.call(this,t)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var t=this.proxy;t.setCursor&&t.setCursor(e)},t.prototype.dispatchToElement=function(e,t,r){var n=(e=e||{}).target;if(!n||!n.silent){for(var i,a="on"+t,o={type:t,event:r,target:(i=e).target,topTarget:i.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:R};n&&(n[a]&&(o.cancelBubble=!!n[a].call(n,o)),n.trigger(t,o),n=n.__hostTarget?n.__hostTarget:n.parent,!o.cancelBubble););!o.cancelBubble&&(this.trigger(t,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(e){"function"==typeof e[a]&&e[a].call(e,o),e.trigger&&e.trigger(t,o)}))}},t.prototype.findHover=function(e,t,r){var n=this.storage.getDisplayList(),i=new x(e,t);if(O(n,i,e,t,r),this._pointerSize&&!i.target){for(var a=[],o=this._pointerSize,s=o/2,l=new y.Ay(e-s,t-s,o,o),c=n.length-1;c>=0;c--){var u=n[c];u===r||u.ignore||u.ignoreCoarsePointer||u.parent&&u.parent.ignoreCoarsePointer||(S.copy(u.getBoundingRect()),u.transform&&S.applyTransform(u.transform),S.intersect(l)&&a.push(u))}if(a.length){for(var h=Math.PI/12,p=2*Math.PI,d=0;d<s;d+=4)for(var f=0;f<p;f+=h)if(O(a,i,e+d*Math.cos(f),t+d*Math.sin(f),r),i.target)return i}}return i},t.prototype.processGesture=function(e,t){this._gestureMgr||(this._gestureMgr=new m);var r=this._gestureMgr;"start"===t&&r.clear();var n=r.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if("end"===t&&r.clear(),n){var i=n.type;e.gestureEvent=i;var a=new x;a.target=n.target,this.dispatchToElement(a,i,n.event)}},t}(d.A);function O(e,t,r,n,i){for(var a=e.length-1;a>=0;a--){var o=e[a],s=void 0;if(o!==i&&!o.ignore&&(s=function(e,t,r){if(e[e.rectHover?"rectContain":"contain"](t,r)){for(var n=e,i=void 0,a=!1;n;){if(n.ignoreClip&&(a=!0),!a){var o=n.getClipPath();if(o&&!o.contain(t,r))return!1}n.silent&&(i=!0);var s=n.__hostTarget;n=s?n.ignoreHostSilent?null:s:n.parent}return!i||v}return!1}(o,r,n))&&(t.topTarget||(t.topTarget=o),s!==v)){t.target=o;break}}}function L(e,t,r){var n=e.painter;return t<0||t>n.getWidth()||r<0||r>n.getHeight()}l.__(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){w.prototype[e]=function(t){var r,n,i=t.zrX,a=t.zrY,o=L(this,i,a);if("mouseup"===e&&o||(n=(r=this.findHover(i,a)).target),"mousedown"===e)this._downEl=n,this._downPoint=[t.zrX,t.zrY],this._upEl=n;else if("mouseup"===e)this._upEl=n;else if("click"===e){if(this._downEl!==this._upEl||!this._downPoint||u.xg(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(r,e,t)}});var N=r(83470),_=r(56448),T=!1;function P(){T||(T=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function C(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var I=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=C}return e.prototype.traverse=function(e,t){for(var r=0;r<this._roots.length;r++)this._roots[r].traverse(e,t)},e.prototype.getDisplayList=function(e,t){t=t||!1;var r=this._displayList;return(e||!r.length)&&this.updateDisplayList(t),r},e.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var t=this._roots,r=this._displayList,n=0,i=t.length;n<i;n++)this._updateAndAddDisplayable(t[n],null,e);r.length=this._displayListLen,(0,N.A)(r,C)},e.prototype._updateAndAddDisplayable=function(e,t,r){if(!e.ignore||r){e.beforeUpdate(),e.update(),e.afterUpdate();var n=e.getClipPath(),i=t&&t.length,a=0,o=e.__clipPaths;if(!e.ignoreClip&&(i||n)){if(o||(o=e.__clipPaths=[]),i)for(var s=0;s<t.length;s++)o[a++]=t[s];for(var l=n,c=e;l;)l.parent=c,l.updateTransform(),o[a++]=l,c=l,l=l.getClipPath()}if(o&&(o.length=a),e.childrenRef){for(var u=e.childrenRef(),h=0;h<u.length;h++){var p=u[h];e.__dirty&&(p.__dirty|=_.M),this._updateAndAddDisplayable(p,o,r)}e.__dirty=0}else isNaN(e.z)&&(P(),e.z=0),isNaN(e.z2)&&(P(),e.z2=0),isNaN(e.zlevel)&&(P(),e.zlevel=0),this._displayList[this._displayListLen++]=e;var d=e.getDecalElement&&e.getDecalElement();d&&this._updateAndAddDisplayable(d,o,r);var f=e.getTextGuideLine();f&&this._updateAndAddDisplayable(f,o,r);var m=e.getTextContent();m&&this._updateAndAddDisplayable(m,o,r)}},e.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},e.prototype.delRoot=function(e){if(e instanceof Array){for(var t=0,r=e.length;t<r;t++)this.delRoot(e[t]);return}var n=l.qh(this._roots,e);n>=0&&this._roots.splice(n,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}(),k=r(45825),F=r(18565);function X(){return new Date().getTime()}var U=function(e){function t(t){var r=e.call(this)||this;return r._running=!1,r._time=0,r._pausedTime=0,r._pauseStart=0,r._paused=!1,r.stage=(t=t||{}).stage||{},r}return(0,c.C6)(t,e),t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var t=e.getClip();t&&this.addClip(t)},t.prototype.removeClip=function(e){if(e.animation){var t=e.prev,r=e.next;t?t.next=r:this._head=r,r?r.prev=t:this._tail=t,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var t=e.getClip();t&&this.removeClip(t),e.animation=null},t.prototype.update=function(e){for(var t=X()-this._pausedTime,r=t-this._time,n=this._head;n;){var i=n.next;n.step(t,r)&&(n.ondestroy(),this.removeClip(n)),n=i}this._time=t,!e&&(this.trigger("frame",r),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0,(0,k.A)(function t(){e._running&&((0,k.A)(t),e._paused||e.update())})},t.prototype.start=function(){this._running||(this._time=X(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=X(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=X()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var e=this._head;e;){var t=e.next;e.prev=e.next=e.animation=null,e=t}this._head=this._tail=null},t.prototype.isFinished=function(){return null==this._head},t.prototype.animate=function(e,t){t=t||{},this.start();var r=new F.A(e,t.loop);return this.addAnimator(r),r},t}(d.A),W=s.A.domSupported,V=(n=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],i={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},a=l.Tj(n,function(e){var t=e.replace("mouse","pointer");return i.hasOwnProperty(t)?t:e}),{mouse:n,touch:["touchstart","touchend","touchmove"],pointer:a}),E=["mousemove","mouseup"],Y=["pointermove","pointerup"],D=!1;function Q(e){var t=e.pointerType;return"pen"===t||"touch"===t}function $(e){e&&(e.zrByTouch=!0)}function B(e,t){for(var r=t,n=!1;r&&9!==r.nodeType&&!(n=r.domBelongToZr||r!==t&&r===e.painterRoot);)r=r.parentNode;return n}var Z=function(e,t){this.stopPropagation=l.lQ,this.stopImmediatePropagation=l.lQ,this.preventDefault=l.lQ,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY},K={mousedown:function(e){e=(0,f.e0)(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=(0,f.e0)(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=(0,f.e0)(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){B(this,(e=(0,f.e0)(this.dom,e)).toElement||e.relatedTarget)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){D=!0,e=(0,f.e0)(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){D||(e=(0,f.e0)(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){$(e=(0,f.e0)(this.dom,e)),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),K.mousemove.call(this,e),K.mousedown.call(this,e)},touchmove:function(e){$(e=(0,f.e0)(this.dom,e)),this.handler.processGesture(e,"change"),K.mousemove.call(this,e)},touchend:function(e){$(e=(0,f.e0)(this.dom,e)),this.handler.processGesture(e,"end"),K.mouseup.call(this,e),new Date-this.__lastTouchMoment<300&&K.click.call(this,e)},pointerdown:function(e){K.mousedown.call(this,e)},pointermove:function(e){Q(e)||K.mousemove.call(this,e)},pointerup:function(e){K.mouseup.call(this,e)},pointerout:function(e){Q(e)||K.mouseout.call(this,e)}};l.__(["click","dblclick","contextmenu"],function(e){K[e]=function(t){t=(0,f.e0)(this.dom,t),this.trigger(e,t)}});var G={pointermove:function(e){Q(e)||G.mousemove.call(this,e)},pointerup:function(e){G.mouseup.call(this,e)},mousemove:function(e){this.trigger("mousemove",e)},mouseup:function(e){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",e),t&&(e.zrEventControl="only_globalout",this.trigger("mouseout",e))}};function H(e,t,r,n){e.mounted[t]=r,e.listenerOpts[t]=n,(0,f.q2)(e.domTarget,t,r,n)}function z(e){var t=e.mounted;for(var r in t)t.hasOwnProperty(r)&&(0,f.f)(e.domTarget,r,t[r],e.listenerOpts[r]);e.mounted={}}var J=function(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t},j=function(e){function t(t,r){var n,i,a=e.call(this)||this;return a.__pointerCapturing=!1,a.dom=t,a.painterRoot=r,a._localHandlerScope=new J(t,K),W&&(a._globalHandlerScope=new J(document,G)),i=(n=a._localHandlerScope).domHandlers,s.A.pointerEventsSupported?l.__(V.pointer,function(e){H(n,e,function(t){i[e].call(a,t)})}):(s.A.touchEventsSupported&&l.__(V.touch,function(e){H(n,e,function(t){i[e].call(a,t),n.touching=!0,null!=n.touchTimer&&(clearTimeout(n.touchTimer),n.touchTimer=null),n.touchTimer=setTimeout(function(){n.touching=!1,n.touchTimer=null},700)})}),l.__(V.mouse,function(e){H(n,e,function(t){t=(0,f.mK)(t),n.touching||i[e].call(a,t)})})),a}return(0,c.C6)(t,e),t.prototype.dispose=function(){z(this._localHandlerScope),W&&z(this._globalHandlerScope)},t.prototype.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||"default")},t.prototype.__togglePointerCapture=function(e){if(this.__mayPointerCapture=null,W&&this.__pointerCapturing^e){this.__pointerCapturing=e;var t=this._globalHandlerScope;e?function(e,t){s.A.pointerEventsSupported?l.__(Y,r):s.A.touchEventsSupported||l.__(E,r);function r(r){H(t,r,function(n){if(!B(e,(n=(0,f.mK)(n)).target)){var i;i=n,n=(0,f.e0)(e.dom,new Z(e,i),!0),t.domHandlers[r].call(e,n)}},{capture:!0})}}(this,t):z(t)}},t}(d.A),q=r(47698),ee=r(73098),et=r(43870),er={},en={},ei=function(){function e(e,t,r){var n,i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!1,this._darkMode=!1,r=r||{},this.dom=t,this.id=e;var a=new I,o=r.renderer||"canvas";er[o]||(o=l.HP(er)[0]),r.useDirtyRect=null!=r.useDirtyRect&&r.useDirtyRect;var c=new er[o](t,a,r,e),u=r.ssr||c.ssrOnly;this.storage=a,this.painter=c;var h=s.A.node||s.A.worker||u?null:new j(c.getViewportRoot(),c.root),p=r.useCoarsePointer;(null==p||"auto"===p?s.A.touchEventsSupported:!!p)&&(n=l.bZ(r.pointerSize,44)),this.handler=new w(a,c,h,c.root,n),this.animation=new U({stage:{update:u?null:function(){return i._flush(!1)}}}),u||this.animation.start()}return e.prototype.add=function(e){!this._disposed&&e&&(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},e.prototype.remove=function(e){!this._disposed&&e&&(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(e,t){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,t),this.refresh())},e.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=function(e){if(!e)return!1;if("string"==typeof e)return(0,q.fN)(e,1)<ee.ps;if(e.colorStops){for(var t=e.colorStops,r=0,n=t.length,i=0;i<n;i++)r+=(0,q.fN)(t[i].color,1);return(r/=n)<ee.ps}return!1}(e))},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(e){this._darkMode=e},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(e){this._disposed||this._refresh({animUpdate:!e,refresh:!0,refreshHover:!1})},e.prototype._refresh=function(e){e.animUpdate&&this.animation.update(!0),this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh({refresh:e.refresh,refreshHover:e.refreshHover}),this._needsRefresh=this._needsRefreshHover=!1},e.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},e.prototype.flush=function(){this._disposed||this._flush(!0)},e.prototype._flush=function(e){var t,r=X(),n=this._needsRefresh,i=this._needsRefreshHover;(n||i)&&(t=!0,this._refresh({animUpdate:e,refresh:n,refreshHover:i}));var a=X();t?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:a-r})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||this._refresh({animUpdate:!1,refresh:!1,refreshHover:!0})},e.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},e.prototype.findHover=function(e,t){if(!this._disposed)return this.handler.findHover(e,t)},e.prototype.on=function(e,t,r){return this._disposed||this.handler.on(e,t,r),this},e.prototype.off=function(e,t){this._disposed||this.handler.off(e,t)},e.prototype.trigger=function(e,t){this._disposed||this.handler.trigger(e,t)},e.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),t=0;t<e.length;t++)e[t]instanceof et.A&&e[t].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},e.prototype.dispose=function(){if(!this._disposed){var e;this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,e=this.id,delete en[e]}},e}();function ea(e,t){var r=new ei(l.Os(),e,t);return en[r.id]=r,r}function eo(e,t){er[e]=t}function es(e){if("function"==typeof o)return o(e)}function el(e){o=e}},9897(e,t,r){var n=r(1932);r.d(t,{},{D:e=>(t,r,i)=>(i.setState=(e,r,...i)=>t("function"==typeof e?(0,n.jM)(e):e,r,...i),e(i.setState,r,i))})},69157(e,t,r){r.d(t,{v:()=>o});var n=r(51649);let i=e=>{let t,r=new Set,n=(e,n)=>{let i="function"==typeof e?e(t):e;if(!Object.is(i,t)){let e=t;t=(null!=n?n:"object"!=typeof i||null===i)?i:Object.assign({},t,i),r.forEach(r=>r(t,e))}},i=()=>t,a={setState:n,getState:i,getInitialState:()=>o,subscribe:e=>(r.add(e),()=>r.delete(e))},o=t=e(n,i,a);return a},a=e=>{let t=e?i(e):i,r=e=>(function(e,t=e=>e){let r=n.default.useSyncExternalStore(e.subscribe,n.default.useCallback(()=>t(e.getState()),[e,t]),n.default.useCallback(()=>t(e.getInitialState()),[e,t]));return n.default.useDebugValue(r),r})(t,e);return Object.assign(r,t),r},o=e=>e?a(e):a},88501(e,t,r){r.d(t,{k:()=>a});var n=r(51649);let i=(e,t)=>{let r=e instanceof Map?e:new Map(e.entries()),n=t instanceof Map?t:new Map(t.entries());if(r.size!==n.size)return!1;for(let[e,t]of r)if(!n.has(e)||!Object.is(t,n.get(e)))return!1;return!0};function a(e){let t=n.default.useRef(void 0);return r=>{let n=e(r);return!function(e,t){if(Object.is(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t||Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1;if(Symbol.iterator in e&&Symbol.iterator in t){if("entries"in e&&"entries"in t)return i(e,t);let r=e[Symbol.iterator](),n=t[Symbol.iterator](),a=r.next(),o=n.next();for(;!a.done&&!o.done;){if(!Object.is(a.value,o.value))return!1;a=r.next(),o=n.next()}return!!a.done&&!!o.done}return i({entries:()=>Object.entries(e)},{entries:()=>Object.entries(t)})}(t.current,n)?t.current=n:t.current}}}};
154
+ `},eZ.image=function(e,t,r,n,i){let a=e[t];return a.attrs[a.attrIndex("alt")][1]=i.renderInlineAsText(a.children,r,n),i.renderToken(e,t,r)},eZ.hardbreak=function(e,t,r){return r.xhtmlOut?"<br />\n":"<br>\n"},eZ.softbreak=function(e,t,r){return r.breaks?r.xhtmlOut?"<br />\n":"<br>\n":"\n"},eZ.text=function(e,t){return eO(e[t].content)},eZ.html_block=function(e,t){return e[t].content},eZ.html_inline=function(e,t){return e[t].content};var eK=class{constructor(){eQ(this,"rules",Object.assign({},eZ))}renderAttrs(e){let t,r,n;if(!e.attrs)return"";for(t=0,n="",r=e.attrs.length;t<r;t++)n+=` ${eO(e.attrs[t][0])}="${eO(String(e.attrs[t][1]))}"`;return n}renderToken(e,t,r){let n=e[t],i="";if(n.hidden)return"";let a=t-1;for(;a>=0&&e[a].hidden&&0===e[a].nesting;)a--;n.block&&-1!==n.nesting&&a>=0&&e[a].hidden&&-1===e[a].nesting&&(i+="\n"),i+=(-1===n.nesting?"</":"<")+n.tag,i+=this.renderAttrs(n),0===n.nesting&&r.xhtmlOut&&(i+=" /");let o=!1;if(n.block&&(o=!0,1===n.nesting)){let r=t+1;for(;r<e.length&&e[r].hidden&&0===e[r].nesting;)r++;if(r<e.length){let t=e[r];"inline"===t.type||t.hidden?o=!1:-1===t.nesting&&t.tag===n.tag&&(o=!1)}}return i+(o?">\n":">")}renderInline(e,t,r){let n="",i=this.rules;for(let a=0,o=e.length;a<o;a++){let o=e[a].type;void 0!==i[o]?n+=i[o](e,a,t,r,this):n+=this.renderToken(e,a,t)}return n}renderInlineAsText(e,t,r){let n="";for(let i=0,a=e.length;i<a;i++)switch(e[i].type){case"text":case"code_inline":case"html_inline":case"html_block":n+=e[i].content;break;case"image":n+=this.renderInlineAsText(e[i].children,t,r);break;case"softbreak":case"hardbreak":n+="\n"}return n}render(e,t,r){let n="",i=this.rules;for(let a=0,o=e.length;a<o;a++){let o=e[a].type;"inline"===o?n+=this.renderInline(e[a].children,t,r):void 0!==i[o]?n+=i[o](e,a,t,r,this):n+=this.renderToken(e,a,t)}return n}},eG=class{constructor(e,t,r){eQ(this,"tokens",[]),eQ(this,"inlineMode",!1),eQ(this,"Token",e$),this.src=e,this.env=r,this.md=t}},eH=/\r\n?|\n/g,ez=/\0/g,eJ=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,ej=/\((c|tm|r)\)/i,eq=/\((c|tm|r)\)/gi,e0={c:"©",r:"®",tm:"™"};function e1(e,t){return e0[t.toLowerCase()]}var e2=/['"]/,e3=/['"]/g;function e5(e,t,r,n){e[t]||(e[t]=[]),e[t].push({pos:r,ch:n})}var e4=[["normalize",function(e){let t;t=(t=e.src.replace(eH,"\n")).replace(ez,"�"),e.src=t}],["block",function(e){let t;e.inlineMode?((t=new e.Token("inline","",0)).content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}],["strip_references",function(e){let t=e.tokens,r=0;for(let e=0;e<t.length;e++)"reference_definition"!==t[e].type&&(e!==r&&(t[r]=t[e]),r++);t.length!==r&&(t.length=r)}],["inline",function(e){let t=e.tokens;for(let r=0,n=t.length;r<n;r++){let n=t[r];"inline"===n.type&&e.md.inline.parse(n.content,e.md,e.env,n.children)}}],["linkify",function(e){let t=e.tokens;if(e.md.options.linkify)for(let i=0,a=t.length;i<a;i++){if("inline"!==t[i].type||!e.md.linkify.test(t[i].content))continue;let a=t[i].children,o=0;for(let s=a.length-1;s>=0;s--){let l=a[s];if("link_close"===l.type){for(s--;a[s].level!==l.level&&"link_open"!==a[s].type;)s--;continue}if("html_inline"===l.type){var r,n;r=l.content,/^<a[>\s]/i.test(r)&&o>0&&o--,n=l.content,/^<\/a\s*>/i.test(n)&&o++}if(!(o>0)&&"text"===l.type&&e.md.linkify.test(l.content)){let r=l.content,n=e.md.linkify.match(r),o=[],c=l.level,u=0;n.length>0&&0===n[0].index&&s>0&&"text_special"===a[s-1].type&&(n=n.slice(1));for(let t=0;t<n.length;t++){let i=n[t].url,a=e.md.normalizeLink(i);if(!e.md.validateLink(a))continue;let s=n[t].text;s=n[t].schema?"mailto:"!==n[t].schema||/^mailto:/i.test(s)?e.md.normalizeLinkText(s):e.md.normalizeLinkText(`mailto:${s}`).replace(/^mailto:/,""):e.md.normalizeLinkText(`http://${s}`).replace(/^http:\/\//,"");let l=n[t].index;if(l>u){let t=new e.Token("text","",0);t.content=r.slice(u,l),t.level=c,o.push(t)}let h=new e.Token("link_open","a",1);h.attrs=[["href",a]],h.level=c++,h.markup="linkify",h.info="auto",o.push(h);let p=new e.Token("text","",0);p.content=s,p.level=c,o.push(p);let d=new e.Token("link_close","a",-1);d.level=--c,d.markup="linkify",d.info="auto",o.push(d),u=n[t].lastIndex}if(u<r.length){let t=new e.Token("text","",0);t.content=r.slice(u),t.level=c,o.push(t)}t[i].children=a=ef(a,s,o)}}}}],["replacements",function(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&(ej.test(e.tokens[t].content)&&function(e){let t=0;for(let r=e.length-1;r>=0;r--){let n=e[r];"text"!==n.type||t||(n.content=n.content.replace(eq,e1)),"link_open"===n.type&&"auto"===n.info&&t--,"link_close"===n.type&&"auto"===n.info&&t++}}(e.tokens[t].children),eJ.test(e.tokens[t].content)&&function(e){let t=0;for(let r=e.length-1;r>=0;r--){let n=e[r];"text"===n.type&&!t&&eJ.test(n.content)&&(n.content=n.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/gm,"$1—").replace(/(^|\s)--(?=\s|$)/gm,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,"$1–")),"link_open"===n.type&&"auto"===n.info&&t--,"link_close"===n.type&&"auto"===n.info&&t++}}(e.tokens[t].children))}],["smartquotes",function(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&e2.test(e.tokens[t].content)&&function(e,t){let r,n=[],i={};for(let a=0;a<e.length;a++){let o=e[a],s=e[a].level;for(r=n.length-1;r>=0&&!(n[r].level<=s);r--);if(n.length=r+1,"text"!==o.type)continue;let l=o.content,c=0,u=l.length;i:for(;c<u;){e3.lastIndex=c;let o=e3.exec(l);if(!o)break;let h=!0,p=!0;c=o.index+1;let d="'"===o[0],f=32;if(o.index-1>=0)f=l.charCodeAt(o.index-1);else for(r=a-1;r>=0&&"softbreak"!==e[r].type&&"hardbreak"!==e[r].type;r--)if(e[r].content){f=e[r].content.charCodeAt(e[r].content.length-1);break}let m=32;if(c<u)m=l.charCodeAt(c);else for(r=a+1;r<e.length&&"softbreak"!==e[r].type&&"hardbreak"!==e[r].type;r++)if(e[r].content){m=e[r].content.charCodeAt(0);break}let g=eI(f)||eC(f),A=eI(m)||eC(m),y=eT(f),v=eT(m);if(v?h=!1:A&&!(y||g)&&(h=!1),y?p=!1:g&&!(v||A)&&(p=!1),34===m&&'"'===o[0]&&f>=48&&f<=57&&(p=h=!1),h&&p&&(h=g,p=A),!h&&!p){d&&e5(i,a,o.index,"’");continue}if(p)for(r=n.length-1;r>=0;r--){let e=n[r];if(n[r].level<s)break;if(e.single===d&&n[r].level===s){let s,l;e=n[r],d?(s=t.md.options.quotes[2],l=t.md.options.quotes[3]):(s=t.md.options.quotes[0],l=t.md.options.quotes[1]),e5(i,a,o.index,l),e5(i,e.token,e.pos,s),n.length=r;continue i}}h?n.push({token:a,pos:o.index,single:d,level:s}):p&&d&&e5(i,a,o.index,"’")}}Object.keys(i).forEach(function(t){let r=Number(t);e[r].content=function(e,t){let r="",n=0;t.sort((e,t)=>e.pos-t.pos);for(let i=0;i<t.length;i++){let a=t[i];r+=e.slice(n,a.pos)+a.ch,n=a.pos+1}return r+e.slice(n)}(e[r].content,i[t])})}(e.tokens[t].children,e)}],["text_join",function(e){let t,r,n=e.tokens,i=n.length;for(let e=0;e<i;e++){if("inline"!==n[e].type)continue;let i=n[e].children,a=i.length;for(t=0;t<a;t++)"text_special"===i[t].type&&(i[t].type="text"),i[t].children&&function(e){let t,r,n=e.length;for(t=0;t<n;t++)"text_special"===e[t].type&&(e[t].type="text");for(t=r=0;t<n;t++)"text"===e[t].type&&t+1<n&&"text"===e[t+1].type?e[t+1].content=e[t].content+e[t+1].content:(t!==r&&(e[r]=e[t]),r++);t!==r&&(e.length=r)}(i[t].children);for(t=r=0;t<a;t++)"text"===i[t].type&&t+1<a&&"text"===i[t+1].type?i[t+1].content=i[t].content+i[t+1].content:(t!==r&&(i[r]=i[t]),r++);t!==r&&(i.length=r)}}]],e6=class{constructor(){eQ(this,"ruler",new eB),eQ(this,"State",eG);for(let e=0;e<e4.length;e++)this.ruler.push(e4[e][0],e4[e][1])}process(e){let t=this.ruler.getRules("");for(let r=0,n=t.length;r<n;r++)t[r](e)}},e8=class{constructor(e,t,r,n){eQ(this,"bMarks",[]),eQ(this,"eMarks",[]),eQ(this,"tShift",[]),eQ(this,"sCount",[]),eQ(this,"bsCount",[]),eQ(this,"blkIndent",0),eQ(this,"line",0),eQ(this,"lineMax",0),eQ(this,"tight",!1),eQ(this,"listIndent",-1),eQ(this,"parentType","root"),eQ(this,"level",0),eQ(this,"Token",e$),this.src=e,this.md=t,this.env=r,this.tokens=n;let i=this.src;for(let e=0,t=0,r=0,n=0,a=i.length,o=!1;t<a;t++){let s=i.charCodeAt(t);if(!o)if(e_(s)){r++,9===s?n+=4-n%4:n++;continue}else o=!0;(10===s||t===a-1)&&(10!==s&&t++,this.bMarks.push(e),this.eMarks.push(t),this.tShift.push(r),this.sCount.push(n),this.bsCount.push(0),o=!1,r=0,n=0,e=t+1)}this.bMarks.push(i.length),this.eMarks.push(i.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}push(e,t,r){let n=new e$(e,t,r);return n.block=!0,r<0&&this.level--,n.level=this.level,r>0&&this.level++,this.tokens.push(n),n}isEmpty(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]}skipEmptyLines(e){for(let t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e}skipSpaces(e){for(let t=this.src.length;e<t&&e_(this.src.charCodeAt(e));e++);return e}skipSpacesBack(e,t){if(e<=t)return e;for(;e>t;)if(!e_(this.src.charCodeAt(--e)))return e+1;return e}skipChars(e,t){for(let r=this.src.length;e<r&&this.src.charCodeAt(e)===t;e++);return e}skipCharsBack(e,t,r){if(e<=r)return e;for(;e>r;)if(t!==this.src.charCodeAt(--e))return e+1;return e}getLines(e,t,r,n){if(e>=t)return"";let i=Array(t-e);for(let a=0,o=e;o<t;o++,a++){let e,s=0,l=this.bMarks[o],c=l;for(e=o+1<t||n?this.eMarks[o]+1:this.eMarks[o];c<e&&s<r;){let e=this.src.charCodeAt(c);if(e_(e))9===e?s+=4-(s+this.bsCount[o])%4:s++;else if(c-l<this.tShift[o])s++;else break;c++}s>r?i[a]=Array(s-r+1).join(" ")+this.src.slice(c,e):i[a]=this.src.slice(c,e)}return i.join("")}};function e9(e,t){let r=e.bMarks[t]+e.tShift[t],n=e.eMarks[t];return e.src.slice(r,n)}function e7(e){let t=[],r=e.length,n=0,i=e.charCodeAt(n),a=!1,o=0,s="";for(;n<r;)124===i&&(a?(s+=e.substring(o,n-1),o=n):(t.push(s+e.substring(o,n)),s="",o=n+1)),a=92===i,n++,i=e.charCodeAt(n);return t.push(s+e.substring(o)),t}function te(e,t){let r=e.eMarks[t],n=e.bMarks[t]+e.tShift[t],i=e.src.charCodeAt(n++);return 42!==i&&45!==i&&43!==i||n<r&&!e_(e.src.charCodeAt(n))?-1:n}function tt(e,t){let r=e.bMarks[t]+e.tShift[t],n=e.eMarks[t],i=r;if(i+1>=n)return -1;let a=e.src.charCodeAt(i++);if(a<48||a>57)return -1;for(;;){if(i>=n)return -1;if((a=e.src.charCodeAt(i++))>=48&&a<=57){if(i-r>=10)return -1;continue}if(41===a||46===a)break;return -1}return i<n&&!e_(a=e.src.charCodeAt(i))?-1:i}var tr="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",tn="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",ti=RegExp(`^(?:${tr}|${tn}|<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->|<[?][\\s\\S]*?[?]>|<![A-Za-z][^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)`),ta=RegExp(`^(?:${tr}|${tn})`),to=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Za-z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[RegExp("^</?(address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h1|h2|h3|h4|h5|h6|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul)(?=(\\s|/?>|$))","i"),/^$/,!0],[RegExp(`${ta.source}\\s*$`),/^$/,!1]],ts=[["table",function(e,t,r,n){let i;if(t+2>r)return!1;let a=t+1;if(e.sCount[a]<e.blkIndent||e.sCount[a]-e.blkIndent>=4)return!1;let o=e.bMarks[a]+e.tShift[a];if(o>=e.eMarks[a])return!1;let s=e.src.charCodeAt(o++);if(124!==s&&45!==s&&58!==s||o>=e.eMarks[a])return!1;let l=e.src.charCodeAt(o++);if(124!==l&&45!==l&&58!==l&&!e_(l)||45===s&&e_(l))return!1;for(;o<e.eMarks[a];){let t=e.src.charCodeAt(o);if(124!==t&&45!==t&&58!==t&&!e_(t))return!1;o++}let c=e9(e,t+1),u=c.split("|"),h=[];for(let e=0;e<u.length;e++){let t=u[e].trim();if(!t)if(0===e||e===u.length-1)continue;else return!1;if(!/^:?-+:?$/.test(t))return!1;58===t.charCodeAt(t.length-1)?h.push(58===t.charCodeAt(0)?"center":"right"):58===t.charCodeAt(0)?h.push("left"):h.push("")}if(-1===(c=e9(e,t).trim()).indexOf("|")||e.sCount[t]-e.blkIndent>=4)return!1;(u=e7(c)).length&&""===u[0]&&u.shift(),u.length&&""===u[u.length-1]&&u.pop();let p=u.length;if(0===p||p!==h.length)return!1;if(n)return!0;let d=e.parentType;e.parentType="table";let f=e.md.block.ruler.getRules("blockquote"),m=e.push("table_open","table",1),g=[t,0];m.map=g,e.push("thead_open","thead",1).map=[t,t+1],e.push("tr_open","tr",1).map=[t,t+1];for(let t=0;t<u.length;t++){let r=e.push("th_open","th",1);h[t]&&(r.attrs=[["style",`text-align:${h[t]}`]]);let n=e.push("inline","",0);n.content=u[t].trim(),n.children=[],e.push("th_close","th",-1)}e.push("tr_close","tr",-1),e.push("thead_close","thead",-1);let A=0;for(a=t+2;a<r&&!(e.sCount[a]<e.blkIndent);a++){let n=!1;for(let t=0,i=f.length;t<i;t++)if(f[t](e,a,r,!0)){n=!0;break}if(n||!(c=e9(e,a).trim())||e.sCount[a]-e.blkIndent>=4||((u=e7(c)).length&&""===u[0]&&u.shift(),u.length&&""===u[u.length-1]&&u.pop(),(A+=p-u.length)>65536))break;a===t+2&&(e.push("tbody_open","tbody",1).map=i=[t+2,0]),e.push("tr_open","tr",1).map=[a,a+1];for(let t=0;t<p;t++){let r=e.push("td_open","td",1);h[t]&&(r.attrs=[["style",`text-align:${h[t]}`]]);let n=e.push("inline","",0);n.content=u[t]?u[t].trim():"",n.children=[],e.push("td_close","td",-1)}e.push("tr_close","tr",-1)}return i&&(e.push("tbody_close","tbody",-1),i[1]=a),e.push("table_close","table",-1),g[1]=a,e.parentType=d,e.line=a,!0},["paragraph","reference"]],["code",function(e,t,r){if(e.sCount[t]-e.blkIndent<4)return!1;let n=t+1,i=n;for(;n<r;){if(e.isEmpty(n)){n++;continue}if(e.sCount[n]-e.blkIndent>=4){i=++n;continue}break}e.line=i;let a=e.push("code_block","code",0);return a.content=e.getLines(t,i,4+e.blkIndent,!1)+"\n",a.map=[t,e.line],!0}],["fence",function(e,t,r,n){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||i+3>a)return!1;let o=e.src.charCodeAt(i);if(126!==o&&96!==o)return!1;let s=i,l=(i=e.skipChars(i,o))-s;if(l<3)return!1;let c=e.src.slice(s,i),u=e.src.slice(i,a);if(96===o&&u.indexOf(String.fromCharCode(o))>=0)return!1;if(n)return!0;let h=t,p=!1;for(;!(++h>=r)&&(!((i=s=e.bMarks[h]+e.tShift[h])<(a=e.eMarks[h]))||!(e.sCount[h]<e.blkIndent));){;if(!(e.src.charCodeAt(i)!==o||e.sCount[h]-e.blkIndent>=4||(i=e.skipChars(i,o))-s<l)&&!((i=e.skipSpaces(i))<a)){p=!0;break}}l=e.sCount[t],e.line=h+ +!!p;let d=e.push("fence","code",0);return d.info=u,d.content=e.getLines(t+1,h,l,!0),d.markup=c,d.map=[t,e.line],!0},["paragraph","reference","blockquote","list"]],["blockquote",function(e,t,r,n){let i,a=e.bMarks[t]+e.tShift[t],o=e.eMarks[t],s=e.lineMax;if(e.sCount[t]-e.blkIndent>=4||62!==e.src.charCodeAt(a))return!1;if(n)return!0;let l=[],c=[],u=[],h=[],p=e.md.block.ruler.getRules("blockquote"),d=e.parentType;e.parentType="blockquote";let f=!1;for(i=t;i<r;i++){let t=e.sCount[i]<e.blkIndent;if((a=e.bMarks[i]+e.tShift[i])>=(o=e.eMarks[i]))break;if(62===e.src.charCodeAt(a++)&&!t){let t,r,n=e.sCount[i]+1;32===e.src.charCodeAt(a)?(a++,n++,r=!1,t=!0):9===e.src.charCodeAt(a)?(t=!0,(e.bsCount[i]+n)%4==3?(a++,n++,r=!1):r=!0):t=!1;let s=n;for(l.push(e.bMarks[i]),e.bMarks[i]=a;a<o;){let t=e.src.charCodeAt(a);if(e_(t))9===t?s+=4-(s+e.bsCount[i]+ +!!r)%4:s++;else break;a++}f=a>=o,c.push(e.bsCount[i]),e.bsCount[i]=e.sCount[i]+1+ +!!t,u.push(e.sCount[i]),e.sCount[i]=s-n,h.push(e.tShift[i]),e.tShift[i]=a-e.bMarks[i];continue}if(f)break;let n=!1;for(let t=0,a=p.length;t<a;t++)if(p[t](e,i,r,!0)){n=!0;break}if(n){e.lineMax=i,0!==e.blkIndent&&(l.push(e.bMarks[i]),c.push(e.bsCount[i]),h.push(e.tShift[i]),u.push(e.sCount[i]),e.sCount[i]-=e.blkIndent);break}l.push(e.bMarks[i]),c.push(e.bsCount[i]),h.push(e.tShift[i]),u.push(e.sCount[i]),e.sCount[i]=-1}let m=e.blkIndent;e.blkIndent=0;let g=e.push("blockquote_open","blockquote",1);g.markup=">";let A=[t,0];g.map=A,e.md.block.tokenize(e,t,i),e.push("blockquote_close","blockquote",-1).markup=">",e.lineMax=s,e.parentType=d,A[1]=e.line;for(let r=0;r<h.length;r++)e.bMarks[r+t]=l[r],e.tShift[r+t]=h[r],e.sCount[r+t]=u[r],e.bsCount[r+t]=c[r];return e.blkIndent=m,!0},["paragraph","reference","blockquote","list"]],["hr",function(e,t,r,n){let i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let a=e.bMarks[t]+e.tShift[t],o=e.src.charCodeAt(a++);if(42!==o&&45!==o&&95!==o)return!1;let s=1;for(;a<i;){let t=e.src.charCodeAt(a++);if(t!==o&&!e_(t))return!1;t===o&&s++}if(s<3)return!1;if(n)return!0;e.line=t+1;let l=e.push("hr","hr",0);return l.map=[t,e.line],l.markup=Array(s+1).join(String.fromCharCode(o)),!0},["paragraph","reference","blockquote","list"]],["list",function(e,t,r,n){let i,a,o,s,l,c,u,h=t,p=!0;if(e.sCount[h]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[h]-e.listIndent>=4&&e.sCount[h]<e.blkIndent)return!1;let d=!1;if(n&&"paragraph"===e.parentType&&e.sCount[h]>=e.blkIndent&&(d=!0),(u=tt(e,h))>=0){if(l=!0,o=e.bMarks[h]+e.tShift[h],c=Number(e.src.slice(o,u-1)),d&&1!==c)return!1}else{if(!((u=te(e,h))>=0))return!1;l=!1}if(d&&e.skipSpaces(u)>=e.eMarks[h])return!1;if(n)return!0;let f=e.src.charCodeAt(u-1),m=e.tokens.length;l?(s=e.push("ordered_list_open","ol",1),1!==c&&(s.attrs=[["start",c]])):s=e.push("bullet_list_open","ul",1);let g=[h,0];s.map=g,s.markup=String.fromCharCode(f);let A=!1,y=e.md.block.ruler.getRules("list"),v=e.parentType;for(e.parentType="list";h<r;){let t;a=u,i=e.eMarks[h];let n=e.sCount[h]+u-(e.bMarks[h]+e.tShift[h]),c=n;for(;a<i;){let t=e.src.charCodeAt(a);if(9===t)c+=4-(c+e.bsCount[h])%4;else if(32===t)c++;else break;a++}let d=a;(t=d>=i?1:c-n)>4&&(t=1);let m=n+t;(s=e.push("list_item_open","li",1)).markup=String.fromCharCode(f);let g=[h,0];s.map=g,l&&(s.info=e.src.slice(o,u-1));let v=e.tight,R=e.tShift[h],b=e.sCount[h],x=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=m,e.tight=!0,e.tShift[h]=d-e.bMarks[h],e.sCount[h]=c,d>=i&&e.isEmpty(h+1)?e.line=Math.min(e.line+2,r):e.md.block.tokenize(e,h,r),(!e.tight||A)&&(p=!1),A=e.line-h>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=x,e.tShift[h]=R,e.sCount[h]=b,e.tight=v,(s=e.push("list_item_close","li",-1)).markup=String.fromCharCode(f),h=e.line,g[1]=h,h>=r||e.sCount[h]<e.blkIndent||e.sCount[h]-e.blkIndent>=4)break;let M=!1;for(let t=0,n=y.length;t<n;t++)if(y[t](e,h,r,!0)){M=!0;break}if(M)break;if(l){if((u=tt(e,h))<0)break;o=e.bMarks[h]+e.tShift[h]}else if((u=te(e,h))<0)break;if(f!==e.src.charCodeAt(u-1))break}return(s=l?e.push("ordered_list_close","ol",-1):e.push("bullet_list_close","ul",-1)).markup=String.fromCharCode(f),g[1]=h,e.line=h,e.parentType=v,p&&function(e,t){let r=e.level+2;for(let n=t+2,i=e.tokens.length-2;n<i;n++)e.tokens[n].level===r&&"paragraph_open"===e.tokens[n].type&&(e.tokens[n+2].hidden=!0,e.tokens[n].hidden=!0,n+=2)}(e,m),!0},["paragraph","reference","blockquote"]],["reference",function(e,t,r,n){let i,a=e.bMarks[t]+e.tShift[t],o=e.eMarks[t],s=t+1;if(e.sCount[t]-e.blkIndent>=4||91!==e.src.charCodeAt(a))return!1;function l(t){let r=e.lineMax;if(t>=r||e.isEmpty(t))return null;let n=!1;if(e.sCount[t]-e.blkIndent>3&&(n=!0),e.sCount[t]<0&&(n=!0),!n){let n=e.md.block.ruler.getRules("reference"),i=e.parentType;e.parentType="reference";let a=!1;for(let i=0,o=n.length;i<o;i++)if(n[i](e,t,r,!0)){a=!0;break}if(e.parentType=i,a)return null}let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];return e.src.slice(i,a+1)}let c=e.src.slice(a,o+1);o=c.length;let u=-1;for(a=1;a<o;a++){let e=c.charCodeAt(a);if(91===e)return!1;if(93===e){u=a;break}if(10===e){let e=l(s);null!==e&&(c+=e,o=c.length,s++)}else if(92===e&&++a<o&&10===c.charCodeAt(a)){let e=l(s);null!==e&&(c+=e,o=c.length,s++)}}if(u<0||58!==c.charCodeAt(u+1))return!1;for(a=u+2;a<o;a++){let e=c.charCodeAt(a);if(10===e){let e=l(s);null!==e&&(c+=e,o=c.length,s++)}else if(e_(e));else break}let h=e.md.helpers.parseLinkDestination(c,a,o);if(!h.ok)return!1;let p=e.md.normalizeLink(h.str);if(!e.md.validateLink(p))return!1;let d=a=h.pos,f=s,m=a;for(;a<o;a++){let e=c.charCodeAt(a);if(10===e){let e=l(s);null!==e&&(c+=e,o=c.length,s++)}else if(e_(e));else break}let g=e.md.helpers.parseLinkTitle(c,a,o);for(;g.can_continue;){let t=l(s);if(null===t)break;c+=t,a=o,o=c.length,s++,g=e.md.helpers.parseLinkTitle(c,a,o,g)}for(a<o&&m!==a&&g.ok?(i=g.str,a=g.pos):(i="",a=d,s=f);a<o&&e_(c.charCodeAt(a));)a++;if(a<o&&10!==c.charCodeAt(a)&&i)for(i="",a=d,s=f;a<o&&e_(c.charCodeAt(a));)a++;if(a<o&&10!==c.charCodeAt(a))return!1;let A=ek(c.slice(1,u));if(!A)return!1;if(n)return!0;void 0===e.env.references&&(e.env.references={}),void 0===e.env.references[A]&&(e.env.references[A]={title:i,href:p});let y=e.push("reference_definition","",0);y.map=[t,s],y.hidden=!0;let v=Object.create(null);return v.label=A,y.meta=v,e.line=s,!0}],["html_block",function(e,t,r,n){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||60!==e.src.charCodeAt(i))return!1;let o=e.src.slice(i,a),s=0;for(;s<to.length&&!to[s][0].test(o);s++);if(s===to.length)return!1;if(n)return to[s][2];let l=t+1,c=to[s][1].test("");if(!to[s][1].test(o)){for(;l<r&&(!(e.sCount[l]<e.blkIndent)||!c&&e.isEmpty(l));l++)if(i=e.bMarks[l]+e.tShift[l],a=e.eMarks[l],o=e.src.slice(i,a),to[s][1].test(o)){0!==o.length&&l++;break}}e.line=l;let u=e.push("html_block","",0);return u.map=[t,l],u.content=e.getLines(t,l,e.blkIndent,!0),!0},["paragraph","reference","blockquote"]],["heading",function(e,t,r,n){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let o=e.src.charCodeAt(i);if(35!==o||i>=a)return!1;let s=1;for(o=e.src.charCodeAt(++i);35===o&&i<a&&s<=6;)s++,o=e.src.charCodeAt(++i);if(s>6||i<a&&!e_(o))return!1;if(n)return!0;a=e.skipSpacesBack(a,i);let l=e.skipCharsBack(a,35,i);l>i&&e_(e.src.charCodeAt(l-1))&&(a=l),e.line=t+1;let c=e.push("heading_open",`h${s}`,1);c.markup="########".slice(0,s),c.map=[t,e.line];let u=e.push("inline","",0);return u.content=eX(e.src.slice(i,a)),u.map=[t,e.line],u.children=[],e.push("heading_close",`h${s}`,-1).markup="########".slice(0,s),!0},["paragraph","reference","blockquote"]],["lheading",function(e,t,r){let n,i=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;let a=e.parentType;e.parentType="paragraph";let o=0,s=t+1;for(;s<r&&!e.isEmpty(s);s++){if(e.sCount[s]-e.blkIndent>3)continue;if(e.sCount[s]>=e.blkIndent){let t=e.bMarks[s]+e.tShift[s],r=e.eMarks[s];if(t<r&&(45===(n=e.src.charCodeAt(t))||61===n)&&(t=e.skipChars(t,n),(t=e.skipSpaces(t))>=r)){o=61===n?1:2;break}}if(e.sCount[s]<0)continue;let t=!1;for(let n=0,a=i.length;n<a;n++)if(i[n](e,s,r,!0)){t=!0;break}if(t)break}if(!o)return e.parentType=a,!1;let l=eX(e.getLines(t,s,e.blkIndent,!1));e.line=s+1;let c=e.push("heading_open",`h${o}`,1);c.markup=String.fromCharCode(n),c.map=[t,e.line];let u=e.push("inline","",0);return u.content=l,u.map=[t,e.line-1],u.children=[],e.push("heading_close",`h${o}`,-1).markup=String.fromCharCode(n),e.parentType=a,!0}],["paragraph",function(e,t,r){let n=e.md.block.ruler.getRules("paragraph"),i=e.parentType,a=t+1;for(e.parentType="paragraph";a<r&&!e.isEmpty(a);a++){if(e.sCount[a]-e.blkIndent>3||e.sCount[a]<0)continue;let t=!1;for(let i=0,o=n.length;i<o;i++)if(n[i](e,a,r,!0)){t=!0;break}if(t)break}let o=eX(e.getLines(t,a,e.blkIndent,!1));e.line=a,e.push("paragraph_open","p",1).map=[t,e.line];let s=e.push("inline","",0);return s.content=o,s.map=[t,e.line],s.children=[],e.push("paragraph_close","p",-1),e.parentType=i,!0}]],tl=class{constructor(){eQ(this,"ruler",new eB),eQ(this,"State",e8);for(let e=0;e<ts.length;e++)this.ruler.push(ts[e][0],ts[e][1],{alt:(ts[e][2]||[]).slice()})}tokenize(e,t,r){let n=this.ruler.getRules(""),i=n.length,a=e.md.options.maxNesting,o=t,s=!1;for(;o<r&&(e.line=o=e.skipEmptyLines(o),!(o>=r)&&!(e.sCount[o]<e.blkIndent));){if(e.level>=a){e.line=r;break}let t=e.line,l=!1;for(let a=0;a<i;a++)if(l=n[a](e,o,r,!1)){if(t>=e.line)throw Error("block rule didn't increment state.line");break}if(!l)throw Error("none of the block rules matched");e.tight=!s,e.isEmpty(e.line-1)&&(s=!0),(o=e.line)<r&&e.isEmpty(o)&&(s=!0,e.line=++o)}}parse(e,t,r,n){if(!e)return;let i=new this.State(e,t,r,n);this.tokenize(i,i.line,i.lineMax)}},tc=class{constructor(e,t,r,n){eQ(this,"pos",0),eQ(this,"level",0),eQ(this,"pending",""),eQ(this,"pendingLevel",0),eQ(this,"cache",{}),eQ(this,"backticks",{}),eQ(this,"backticksScanned",!1),eQ(this,"linkLevel",0),eQ(this,"delimiters",[]),eQ(this,"_prev_delimiters",[]),eQ(this,"Token",e$),this.src=e,this.env=r,this.md=t,this.tokens=n,this.tokens_meta=Array(n.length),this.posMax=this.src.length}pushPending(){let e=new e$("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e}push(e,t,r){let n;this.pending&&this.pushPending();let i=new e$(e,t,r);return r<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),i.level=this.level,r>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],n={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(i),this.tokens_meta.push(n),i}scanDelims(e,t){let r,n=this.posMax,i=this.src.charCodeAt(e);if(0===e)r=32;else if(1===e)(63488&(r=this.src.charCodeAt(0)))==55296&&(r=65533);else if((64512&(r=this.src.charCodeAt(e-1)))==56320){let t=this.src.charCodeAt(e-2);r=(64512&t)==55296?65536+(t-55296<<10)+(r-56320):65533}else(64512&r)==55296&&(r=65533);let a=e;for(;a<n&&this.src.charCodeAt(a)===i;)a++;let o=a-e,s=a<n?this.src.charCodeAt(a):32;if((64512&s)==55296){let e=this.src.charCodeAt(a+1);s=(64512&e)==56320?65536+(s-55296<<10)+(e-56320):65533}else(64512&s)==56320&&(s=65533);let l=eI(r)||eC(r),c=eI(s)||eC(s),u=eT(r),h=eT(s),p=!h&&(!c||u||l),d=!u&&(!l||h||c);return{can_open:p&&(t||!d||l),can_close:d&&(t||!p||c),length:o}}},tu=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i,th=[];for(let e=0;e<256;e++)th.push(0);function tp(e,t){let r,n=[],i=t.length;for(let a=0;a<i;a++){let i=t[a];if(126!==i.marker||-1===i.end)continue;let o=t[i.end];(r=e.tokens[i.token]).type="s_open",r.tag="s",r.nesting=1,r.markup="~~",r.content="",(r=e.tokens[o.token]).type="s_close",r.tag="s",r.nesting=-1,r.markup="~~",r.content="","text"===e.tokens[o.token-1].type&&"~"===e.tokens[o.token-1].content&&n.push(o.token-1)}for(;n.length;){let t=n.pop(),i=t+1;for(;i<e.tokens.length&&"s_close"===e.tokens[i].type;)i++;t!==--i&&(r=e.tokens[i],e.tokens[i]=e.tokens[t],e.tokens[t]=r)}}"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){th[e.charCodeAt(0)]=1});function td(e,t){let r=t.length;for(let n=r-1;n>=0;n--){let r=t[n];if(95!==r.marker&&42!==r.marker||-1===r.end)continue;let i=t[r.end],a=n>0&&t[n-1].end===r.end+1&&t[n-1].marker===r.marker&&t[n-1].token===r.token-1&&t[r.end+1].token===i.token+1,o=String.fromCharCode(r.marker),s=e.tokens[r.token];s.type=a?"strong_open":"em_open",s.tag=a?"strong":"em",s.nesting=1,s.markup=a?o+o:o,s.content="";let l=e.tokens[i.token];l.type=a?"strong_close":"em_close",l.tag=a?"strong":"em",l.nesting=-1,l.markup=a?o+o:o,l.content="",a&&(e.tokens[t[n-1].token].content="",e.tokens[t[r.end+1].token].content="",n--)}}var tf=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,tm=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/,tg=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,tA=/^&([a-z][a-z0-9]{1,31});/i;function ty(e){let t={},r=e.length;if(!r)return;let n=0,i=-2,a=[];for(let o=0;o<r;o++){let r=e[o];if(a.push(0),(e[n].marker!==r.marker||i!==r.token-1)&&(n=o),i=r.token,r.length=r.length||0,!r.close)continue;t.hasOwnProperty(r.marker)||(t[r.marker]=[-1,-1,-1,-1,-1,-1]);let s=t[r.marker][3*!!r.open+r.length%3],l=n-a[n]-1,c=l;for(;l>s;l-=a[l]+1){let t=e[l];if(t.marker===r.marker&&t.open&&t.end<0){let n=!1;if((t.close||r.open)&&(t.length+r.length)%3==0&&(t.length%3!=0||r.length%3!=0)&&(n=!0),!n){let n=l>0&&!e[l-1].open?a[l-1]+1:0;a[o]=o-l+n,a[l]=n,r.open=!1,t.end=o,t.close=!1,c=-1,i=-2;break}}}-1!==c&&(t[r.marker][3*!!r.open+(r.length||0)%3]=c)}}var tv=[["text",function(e,t){let r=e.pos;for(;r<e.posMax&&!function(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}(e.src.charCodeAt(r));)r++;return r!==e.pos&&(t||(e.pending+=e.src.slice(e.pos,r)),e.pos=r,!0)}],["linkify",function(e,t){if(!e.md.options.linkify||e.linkLevel>0)return!1;let r=e.pos;if(r+3>e.posMax||58!==e.src.charCodeAt(r)||47!==e.src.charCodeAt(r+1)||47!==e.src.charCodeAt(r+2))return!1;let n=e.pending.match(tu);if(!n)return!1;let i=n[1],a=e.md.linkify.matchAtStart(e.src.slice(r-i.length));if(!a)return!1;let o=a.url;if(o.length<=i.length)return!1;let s=o.length;for(;s>0&&42===o.charCodeAt(s-1);)s--;s!==o.length&&(o=o.slice(0,s));let l=e.md.normalizeLink(o);if(!e.md.validateLink(l))return!1;if(!t){e.pending=e.pending.slice(0,-i.length);let t=e.push("link_open","a",1);t.attrs=[["href",l]],t.markup="linkify",t.info="auto",e.push("text","",0).content=e.md.normalizeLinkText(o);let r=e.push("link_close","a",-1);r.markup="linkify",r.info="auto"}return e.pos+=o.length-i.length,!0}],["newline",function(e,t){let r=e.pos;if(10!==e.src.charCodeAt(r))return!1;let n=e.pending.length-1,i=e.posMax;if(!t)if(n>=0&&32===e.pending.charCodeAt(n))if(n>=1&&32===e.pending.charCodeAt(n-1)){let t=n-1;for(;t>=1&&32===e.pending.charCodeAt(t-1);)t--;e.pending=e.pending.slice(0,t),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(r++;r<i&&e_(e.src.charCodeAt(r));)r++;return e.pos=r,!0}],["escape",function(e,t){let r=e.pos,n=e.posMax;if(92!==e.src.charCodeAt(r)||++r>=n)return!1;let i=e.src.charCodeAt(r);if(10===i){for(t||e.push("hardbreak","br",0),r++;r<n&&e_(i=e.src.charCodeAt(r));)r++;return e.pos=r,!0}if(32===i){if(!t){let t=e.push("text_special","",0);t.content="\\",t.markup="\\",t.info="escape"}return e.pos=r,!0}let a=e.src[r];if(i>=55296&&i<=56319&&r+1<n){let t=e.src.charCodeAt(r+1);t>=56320&&t<=57343&&(a+=e.src[r+1],r++)}let o="\\"+a;if(!t){let t=e.push("text_special","",0);i<256&&0!==th[i]?t.content=a:t.content=o,t.markup=o,t.info="escape"}return e.pos=r+1,!0}],["backticks",function(e,t){let r,n=e.pos;if(96!==e.src.charCodeAt(n))return!1;let i=n;n++;let a=e.posMax;for(;n<a&&96===e.src.charCodeAt(n);)n++;let o=e.src.slice(i,n),s=o.length;if(e.backticksScanned&&(e.backticks[s]||0)<=i)return t||(e.pending+=o),e.pos+=s,!0;let l=n;for(;-1!==(r=e.src.indexOf("`",l));){for(l=r+1;l<a&&96===e.src.charCodeAt(l);)l++;let i=l-r;if(i===s){if(!t){let t=e.push("code_inline","code",0);t.markup=o,t.content=e.src.slice(n,r).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return e.pos=l,!0}e.backticks[i]=r}return e.backticksScanned=!0,t||(e.pending+=o),e.pos+=s,!0}],["strikethrough",function(e,t){let r=e.pos,n=e.src.charCodeAt(r);if(t||126!==n)return!1;let i=e.scanDelims(e.pos,!0),a=i.length,o=String.fromCharCode(n);if(a<2)return!1;a%2&&(e.push("text","",0).content=o,a--);for(let t=0;t<a;t+=2)e.push("text","",0).content=o+o,e.delimiters.push({marker:n,length:0,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return e.pos+=i.length,!0}],["emphasis",function(e,t){let r=e.pos,n=e.src.charCodeAt(r);if(t||95!==n&&42!==n)return!1;let i=e.scanDelims(e.pos,42===n);for(let t=0;t<i.length;t++)e.push("text","",0).content=String.fromCharCode(n),e.delimiters.push({marker:n,length:i.length,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return e.pos+=i.length,!0}],["link",function(e,t){let r,n,i,a,o="",s="",l=e.pos,c=!0;if(91!==e.src.charCodeAt(e.pos))return!1;let u=e.pos,h=e.posMax,p=e.pos+1,d=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(d<0)return!1;let f=d+1;if(f<h&&40===e.src.charCodeAt(f)){for(c=!1,f++;f<h&&(e_(r=e.src.charCodeAt(f))||10===r);f++);if(f>=h)return!1;if(l=f,(i=e.md.helpers.parseLinkDestination(e.src,f,e.posMax)).ok){for(o=e.md.normalizeLink(i.str),e.md.validateLink(o)?f=i.pos:o="",l=f;f<h&&(e_(r=e.src.charCodeAt(f))||10===r);f++);if(i=e.md.helpers.parseLinkTitle(e.src,f,e.posMax),f<h&&l!==f&&i.ok)for(s=i.str,f=i.pos;f<h&&(e_(r=e.src.charCodeAt(f))||10===r);f++);}(f>=h||41!==e.src.charCodeAt(f))&&(c=!0),f++}if(c){if(void 0===e.env.references)return!1;if(f<h&&91===e.src.charCodeAt(f)?(l=f+1,(f=e.md.helpers.parseLinkLabel(e,f))>=0?n=e.src.slice(l,f++):f=d+1):f=d+1,n||(n=e.src.slice(p,d)),n=ek(n),!(a=e.env.references[n]))return e.pos=u,!1;o=a.href,s=a.title}if(!t){e.pos=p,e.posMax=d;let t=e.push("link_open","a",1),r=[["href",o]];if(t.attrs=r,s&&r.push(["title",s]),n){let e=Object.create(null);e.label=n,t.meta=e}e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=f,e.posMax=h,!0}],["image",function(e,t){let r,n,i,a,o,s,l,c,u="",h=e.pos,p=e.posMax;if(33!==e.src.charCodeAt(e.pos)||91!==e.src.charCodeAt(e.pos+1))return!1;let d=e.pos+2,f=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(f<0)return!1;if((a=f+1)<p&&40===e.src.charCodeAt(a)){for(a++;a<p&&(e_(r=e.src.charCodeAt(a))||10===r);a++);if(a>=p)return!1;for(c=a,(s=e.md.helpers.parseLinkDestination(e.src,a,e.posMax)).ok&&(u=e.md.normalizeLink(s.str),e.md.validateLink(u)?a=s.pos:u=""),c=a;a<p&&(e_(r=e.src.charCodeAt(a))||10===r);a++);if(s=e.md.helpers.parseLinkTitle(e.src,a,e.posMax),a<p&&c!==a&&s.ok)for(l=s.str,a=s.pos;a<p&&(e_(r=e.src.charCodeAt(a))||10===r);a++);else l="";if(a>=p||41!==e.src.charCodeAt(a))return e.pos=h,!1;a++}else{if(void 0===e.env.references)return!1;if(a<p&&91===e.src.charCodeAt(a)?(c=a+1,(a=e.md.helpers.parseLinkLabel(e,a))>=0?i=e.src.slice(c,a++):a=f+1):a=f+1,i||(i=e.src.slice(d,f)),i=ek(i),!(o=e.env.references[i]))return e.pos=h,!1;u=o.href,l=o.title}if(!t){n=e.src.slice(d,f);let t=[];e.md.inline.parse(n,e.md,e.env,t);let r=e.push("image","img",0),a=[["src",u],["alt",""]];if(r.attrs=a,r.children=t,r.content=n,l&&a.push(["title",l]),i){let e=Object.create(null);e.label=i,r.meta=e}}return e.pos=a,e.posMax=p,!0}],["autolink",function(e,t){let r=e.pos;if(60!==e.src.charCodeAt(r))return!1;let n=e.pos,i=e.posMax;for(;;){if(++r>=i)return!1;let t=e.src.charCodeAt(r);if(60===t)return!1;if(62===t)break}let a=e.src.slice(n+1,r);if(tm.test(a)){let r=e.md.normalizeLink(a);if(!e.md.validateLink(r))return!1;if(!t){let t=e.push("link_open","a",1);t.attrs=[["href",r]],t.markup="autolink",t.info="auto",e.push("text","",0).content=e.md.normalizeLinkText(a);let n=e.push("link_close","a",-1);n.markup="autolink",n.info="auto"}return e.pos+=a.length+2,!0}if(tf.test(a)){let r=e.md.normalizeLink(`mailto:${a}`);if(!e.md.validateLink(r))return!1;if(!t){let t=e.push("link_open","a",1);t.attrs=[["href",r]],t.markup="autolink",t.info="auto",e.push("text","",0).content=e.md.normalizeLinkText(a);let n=e.push("link_close","a",-1);n.markup="autolink",n.info="auto"}return e.pos+=a.length+2,!0}return!1}],["html_inline",function(e,t){let r;if(!e.md.options.html)return!1;let n=e.posMax,i=e.pos;if(60!==e.src.charCodeAt(i)||i+2>=n)return!1;let a=e.src.charCodeAt(i+1);if(33!==a&&63!==a&&47!==a&&(!((r=32|a)>=97)||!(r<=122)))return!1;let o=e.src.slice(i).match(ti);if(!o)return!1;if(!t){var s,l;let t=e.push("html_inline","",0);t.content=o[0],s=t.content,/^<a[>\s]/i.test(s)&&e.linkLevel++,l=t.content,/^<\/a\s*>/i.test(l)&&e.linkLevel--}return e.pos+=o[0].length,!0}],["entity",function(e,t){let r=e.pos,n=e.posMax;if(38!==e.src.charCodeAt(r)||r+1>=n)return!1;if(35===e.src.charCodeAt(r+1)){let n=e.src.slice(r).match(tg);if(n){if(!t){let t="x"===n[1][0].toLowerCase()?parseInt(n[1].slice(1),16):parseInt(n[1],10),r=e.push("text_special","",0);r.content=em(t)?eg(t):eg(65533),r.markup=n[0],r.info="entity"}return e.pos+=n[0].length,!0}}else{let n=e.src.slice(r).match(tA);if(n){let r=B(n[0]);if(r!==n[0]){if(!t){let t=e.push("text_special","",0);t.content=r,t.markup=n[0],t.info="entity"}return e.pos+=n[0].length,!0}}}return!1}]],tR=[["balance_pairs",function(e){let t=e.tokens_meta,r=e.tokens_meta.length;ty(e.delimiters);for(let e=0;e<r;e++){var n;let r=null==(n=t[e])?void 0:n.delimiters;r&&ty(r)}}],["strikethrough",function(e){let t=e.tokens_meta,r=e.tokens_meta.length;tp(e,e.delimiters);for(let i=0;i<r;i++){var n;let r=null==(n=t[i])?void 0:n.delimiters;r&&tp(e,r)}}],["emphasis",function(e){let t=e.tokens_meta,r=e.tokens_meta.length;td(e,e.delimiters);for(let i=0;i<r;i++){var n;let r=null==(n=t[i])?void 0:n.delimiters;r&&td(e,r)}}],["fragments_join",function(e){let t,r,n=0,i=e.tokens,a=e.tokens.length;for(t=r=0;t<a;t++)i[t].nesting<0&&n--,i[t].level=n,i[t].nesting>0&&n++,"text"===i[t].type&&t+1<a&&"text"===i[t+1].type?i[t+1].content=i[t].content+i[t+1].content:(t!==r&&(i[r]=i[t]),r++);t!==r&&(i.length=r)}]],tb=class{constructor(){eQ(this,"ruler",new eB),eQ(this,"ruler2",new eB),eQ(this,"State",tc);for(let e=0;e<tv.length;e++)this.ruler.push(tv[e][0],tv[e][1]);for(let e=0;e<tR.length;e++)this.ruler2.push(tR[e][0],tR[e][1])}skipToken(e){let t=e.pos,r=this.ruler.getRules(""),n=r.length,i=e.md.options.maxNesting,a=e.cache;if(void 0!==a[t]){e.pos=a[t];return}let o=!1;if(e.level<i){for(let i=0;i<n;i++)if(e.level++,o=r[i](e,!0),e.level--,o){if(t>=e.pos)throw Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;!o&&e.pos++,a[t]=e.pos}tokenize(e){let t=this.ruler.getRules(""),r=t.length,n=e.posMax,i=e.md.options.maxNesting;for(;e.pos<n;){let a=e.pos,o=!1;if(e.level<i){for(let n=0;n<r;n++)if(o=t[n](e,!1)){if(a>=e.pos)throw Error("inline rule didn't increment state.pos");break}}if(o){if(e.pos>=n)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()}parse(e,t,r,n){let i=new this.State(e,t,r,n);this.tokenize(i);let a=this.ruler2.getRules(""),o=a.length;for(let e=0;e<o;e++)a[e](i)}},tx={default:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},zero:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","strip_references","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},commonmark:{options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","strip_references","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}}},tM=/^(vbscript|javascript|file|data):/,tS=/^data:image\/(gif|png|jpeg|webp);/,tw=["http:","https:","mailto:"],tO=class{validateLink(e){let t=e.trim().toLowerCase();return!tM.test(t)||tS.test(t)}normalizeLink(e){let t=I(e,!0);if(t.hostname&&(!t.protocol||tw.indexOf(t.protocol)>=0))try{var r;r=t.hostname,t.hostname=ea(r,function(e){return q.test(e)?"xn--"+ec(e):e})}catch(e){}return b(x(t))}normalizeLinkText(e){let t=I(e,!0);if(t.hostname&&(!t.protocol||tw.indexOf(t.protocol)>=0))try{var r;r=t.hostname,t.hostname=ea(r,function(e){return j.test(e)?el(e.slice(4).toLowerCase()):e})}catch(e){}return y(x(t),y.defaultChars+"%")}constructor(...e){eQ(this,"inline",new tb),eQ(this,"block",new tl),eQ(this,"core",new e6),eQ(this,"renderer",new eK),eQ(this,"linkify",new J),eQ(this,"utils",ep),eQ(this,"helpers",Object.assign({},eY));let[t,r]=e;"string"==typeof t?(this.configure(t),r&&this.set(r)):(this.configure("default"),this.set(t||{}))}set(e){return Object.assign(this.options,e),this}configure(e){let t;if("string"==typeof e){if(!(t=tx[e]))throw Error(`Wrong 'markdown-it' preset "${e}", check name`)}else t=e;if(!t)throw Error("Wrong `markdown-it` preset, can't be empty");t.options&&(this.options={...t.options});let r=t.components;if(r){var n;["core","block","inline"].forEach(e=>{var t;let n=null==(t=r[e])?void 0:t.rules;n&&this[e].ruler.enableOnly(n)});let e=null==(n=r.inline)?void 0:n.rules2;e&&this.inline.ruler2.enableOnly(e)}return this}enable(e,t=!1){let r=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(t=>{r=r.concat(this[t].ruler.enable(e,!0))}),r=r.concat(this.inline.ruler2.enable(e,!0));let n=e.filter(e=>0>r.indexOf(e));if(n.length&&!t)throw Error(`MarkdownIt. Failed to enable unknown rule(s): ${n}`);return this}disable(e,t=!1){let r=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(t=>{r=r.concat(this[t].ruler.disable(e,!0))}),r=r.concat(this.inline.ruler2.disable(e,!0));let n=e.filter(e=>0>r.indexOf(e));if(n.length&&!t)throw Error(`MarkdownIt. Failed to disable unknown rule(s): ${n}`);return this}use(e,...t){return e.apply(e,[this,...t]),this}parse(e,t){if("string"!=typeof e)throw Error("Input data should be a String");let r=new this.core.State(e,this,t);return this.core.process(r),r.tokens}render(e,t={}){return this.renderer.render(this.parse(e,t),this.options,t)}parseInline(e,t){let r=new this.core.State(e,this,t);return r.inlineMode=!0,this.core.process(r),r.tokens}renderInline(e,t={}){return this.renderer.render(this.parseInline(e,t),this.options,t)}};eQ(tO,"Token",e$),eQ(tO,"Ruler",eB),eQ(tO,"Renderer",eK),eQ(tO,"ParserCore",e6),eQ(tO,"StateCore",eG),eQ(tO,"ParserBlock",tl),eQ(tO,"StateBlock",e8),eQ(tO,"ParserInline",tb),eQ(tO,"StateInline",tc);var tL=ed(tO)},95802(e,t,r){let n,i,a=new Uint16Array(("Ȁaglq \x15\x18\x1bɭ\x0f\0\0\x12p;䀦os;䀧t;䀾t;䀼uot;䀢".split("")).map(e=>e.charCodeAt(0))),o=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),s=null!=(k=String.fromCodePoint)?k:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e)};function l(e){return e>=F.ZERO&&e<=F.NINE}(T=F||(F={}))[T.NUM=35]="NUM",T[T.SEMI=59]="SEMI",T[T.EQUALS=61]="EQUALS",T[T.ZERO=48]="ZERO",T[T.NINE=57]="NINE",T[T.LOWER_A=97]="LOWER_A",T[T.LOWER_F=102]="LOWER_F",T[T.LOWER_X=120]="LOWER_X",T[T.LOWER_Z=122]="LOWER_Z",T[T.UPPER_A=65]="UPPER_A",T[T.UPPER_F=70]="UPPER_F",T[T.UPPER_Z=90]="UPPER_Z",(P=X||(X={}))[P.VALUE_LENGTH=49152]="VALUE_LENGTH",P[P.BRANCH_LENGTH=16256]="BRANCH_LENGTH",P[P.JUMP_TABLE=127]="JUMP_TABLE",(C=U||(U={}))[C.EntityStart=0]="EntityStart",C[C.NumericStart=1]="NumericStart",C[C.NumericDecimal=2]="NumericDecimal",C[C.NumericHex=3]="NumericHex",C[C.NamedEntity=4]="NamedEntity",(I=W||(W={}))[I.Legacy=0]="Legacy",I[I.Strict=1]="Strict",I[I.Attribute=2]="Attribute";let c=(n="",i=new class e{constructor(e,t,r){this.decodeTree=e,this.emitCodePoint=t,this.errors=r,this.state=U.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=W.Strict}startEntity(e){this.decodeMode=e,this.state=U.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case U.EntityStart:if(e.charCodeAt(t)===F.NUM)return this.state=U.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1);return this.state=U.NamedEntity,this.stateNamedEntity(e,t);case U.NumericStart:return this.stateNumericStart(e,t);case U.NumericDecimal:return this.stateNumericDecimal(e,t);case U.NumericHex:return this.stateNumericHex(e,t);case U.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(32|e.charCodeAt(t))===F.LOWER_X?(this.state=U.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=U.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,r,n){if(t!==r){let i=r-t;this.result=this.result*Math.pow(n,i)+Number.parseInt(e.substr(t,i),n),this.consumed+=i}}stateNumericHex(e,t){let r=t;for(;t<e.length;){var n;let i=e.charCodeAt(t);if(!l(i)&&(!((n=i)>=F.UPPER_A)||!(n<=F.UPPER_F))&&(!(n>=F.LOWER_A)||!(n<=F.LOWER_F)))return this.addToNumericResult(e,r,t,16),this.emitNumericEntity(i,3);t+=1}return this.addToNumericResult(e,r,t,16),-1}stateNumericDecimal(e,t){let r=t;for(;t<e.length;){let n=e.charCodeAt(t);if(!l(n))return this.addToNumericResult(e,r,t,10),this.emitNumericEntity(n,2);t+=1}return this.addToNumericResult(e,r,t,10),-1}emitNumericEntity(e,t){var r,n,i;if(this.consumed<=t)return null==(r=this.errors)||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===F.SEMI)this.consumed+=1;else if(this.decodeMode===W.Strict)return 0;return this.emitCodePoint((n=this.result)>=55296&&n<=57343||n>1114111?65533:null!=(i=o.get(n))?i:n,this.consumed),this.errors&&(e!==F.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){let{decodeTree:r}=this,n=r[this.treeIndex],i=(n&X.VALUE_LENGTH)>>14;for(;t<e.length;t++,this.excess++){let a=e.charCodeAt(t);if(this.treeIndex=function(e,t,r,n){let i=(t&X.BRANCH_LENGTH)>>7,a=t&X.JUMP_TABLE;if(0===i)return 0!==a&&n===a?r:-1;if(a){let t=n-a;return t<0||t>=i?-1:e[r+t]-1}let o=r,s=o+i-1;for(;o<=s;){let t=o+s>>>1,r=e[t];if(r<n)o=t+1;else{if(!(r>n))return e[t+i];s=t-1}}return -1}(r,n,this.treeIndex+Math.max(1,i),a),this.treeIndex<0)return 0===this.result||this.decodeMode===W.Attribute&&(0===i||function(e){var t;return e===F.EQUALS||(t=e)>=F.UPPER_A&&t<=F.UPPER_Z||t>=F.LOWER_A&&t<=F.LOWER_Z||l(t)}(a))?0:this.emitNotTerminatedNamedEntity();if(0!=(i=((n=r[this.treeIndex])&X.VALUE_LENGTH)>>14)){if(a===F.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==W.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return -1}emitNotTerminatedNamedEntity(){var e;let{result:t,decodeTree:r}=this,n=(r[t]&X.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,n,this.consumed),null==(e=this.errors)||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,r){let{decodeTree:n}=this;return this.emitCodePoint(1===t?n[e]&~X.VALUE_LENGTH:n[e+1],r),3===t&&this.emitCodePoint(n[e+2],r),r}end(){var e;switch(this.state){case U.NamedEntity:return 0!==this.result&&(this.decodeMode!==W.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case U.NumericDecimal:return this.emitNumericEntity(0,2);case U.NumericHex:return this.emitNumericEntity(0,3);case U.NumericStart:return null==(e=this.errors)||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case U.EntityStart:return 0}}}(a,e=>n+=s(e)),function(e,t){let r=0,a=0;for(;(a=e.indexOf("&",a))>=0;){n+=e.slice(r,a),i.startEntity(t);let o=i.write(e,a+1);if(o<0){r=a+i.end();break}r=a+o,a=0===o?r+1:r}let o=n+e.slice(r);return n="",o});function u(e){return c(e,W.Strict)}let h=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?("[^"]*"|'[^']*')/g;function p(e,t={}){let r={type:"tag",name:"",voidElement:!1,attribs:{},children:[]},n=e.match(/<\/?([^\s]+?)[/\s>]/);if(n&&(r.name=n[1],"/"===e.charAt(e.length-2)&&(r.voidElement=!0),r.name.startsWith("!--"))){let t=e.indexOf("--\x3e");return{type:"comment",comment:-1!==t?e.slice(4,t):""}}let i=new RegExp(h),a=null;for(;null!==(a=i.exec(e));)if(a[0].trim()){if(a[1]){let e=a[1].trim(),t=[e,""];e.indexOf("=")>-1&&(t=e.split("=")),r.attribs[t[0]]=t[1],i.lastIndex--}else if(a[2]){let e=a[3].trim().substring(1,a[3].length-1);r.attribs[a[2]]=t.disableDecode?e:u(e)}}return r}let d=/<[a-zA-Z0-9\-!/](?:"[^"]*"|'[^']*'|[^'">])*>/g,f=/^\s*$/,m=["mtext","mi","mn","mo","ms"],g=Object.create(null);function A(e,t){return t.disableDecode?e:u(e)}function y(e){if(e?.name==="m:t")return e;Array.isArray(e.children)||(e.children=[]);let t=e.children[e.children.length-1];if(t?.name==="m:r"){let e=t.children[t.children.length-1];if(e?.name==="m:t")return e}let r={name:"m:t",type:"tag",attribs:{"xml:space":"preserve"},children:[]};return e.children.push({name:"m:r",type:"tag",attribs:{},children:[r]}),r}function v(e,t=!0){let r="";if("text"===e.type){let n=e.data.replace(/[\u2062]|[\u200B]/g,"");t&&(n=n.trim()),r+=n}else e.children&&e.children.forEach(e=>{r+=v(e,t)});return r}let R=/^[\u220f-\u2211]|[\u2229-\u2233]|[\u22c0-\u22c3]$/,b=/^\u220f|\u2211|[\u2229-\u222b]|\u222e|\u222f|\u2232|\u2233|[\u22c0-\u22c3]$/;function x(e){let t=e?.children;if(!t?.length)return null;let r=t[t.length-1];return r?.name!=="m:nary"?null:r.children[r.children.length-1]||null}function M(e){let t=v(e);return!!R.test(t)&&t}function S(e,t,r,n=!1,i=!1){let a=t.attribs?.stretchy,o="true"===a?"on":"false"===a?"off":b.test(e)?"on":"off";return{type:"tag",name:"m:nary",attribs:{},children:[{type:"tag",name:"m:naryPr",attribs:{},children:[{type:"tag",name:"m:chr",attribs:{"m:val":e},children:[]},{type:"tag",name:"m:limLoc",attribs:{"m:val":r},children:[]},{type:"tag",name:"m:grow",attribs:{"m:val":o},children:[]},{type:"tag",name:"m:subHide",attribs:{"m:val":n?"on":"off"},children:[]},{type:"tag",name:"m:supHide",attribs:{"m:val":i?"on":"off"},children:[]}]}]}}let w=Symbol("pendingBrk"),O={bold:"b",italic:"i","bold-italic":"bi"};function L(e,t,r,n,i,a){let o;if(Array.isArray(t.children)||(t.children=[]),r.isNary){let e=x(t);e&&(t=e)}let s=e.children?.find(e=>"mglyph"===e.name),l=function(e,t,r={}){let n=e.attribs||{},i=n.mathcolor||t.find(e=>"mstyle"===e.name&&e.attribs&&e.attribs.color)?.attribs.color||"",a=n.mathsize||t.find(e=>"mstyle"===e.name&&e.attribs&&e.attribs.mathsize)?.attribs.mathsize||"",o=n.scriptlevel||t.find(e=>"mstyle"===e.name&&e.attribs&&e.attribs.scriptlevel)?.attribs.scriptlevel||"",s=n.mathbackground||t.find(e=>"mstyle"===e.name&&e.attribs&&e.attribs.mathbackground)?.attribs.mathbackground||"",l=n.mathvariant||t.find(e=>"mstyle"===e.name&&e.attribs&&e.attribs.mathvariant)?.attribs.mathvariant||"";"b-i"===l&&(l="bold-italic");let c=n.fontweight||t.find(e=>"mstyle"===e.name&&e.attribs&&e.attribs.fontweight)?.attribs.fontweight||"";"bold"!==c||["bold","bold-italic"].includes(l)?"normal"===c&&["bold","bold-italic"].includes(l)&&(l=l.includes("italic")?"italic":""):l=l.includes("italic")?"bold-italic":"bold";let u=n.fontstyle||t.find(e=>"mstyle"===e.name&&e.attribs&&e.attribs.fontstyle)?.attribs.fontstyle||"";if("italic"!==u||["italic","bold-italic"].includes(l)?"normal"===u&&["italic","bold-italic"].includes(l)&&(l=l.includes("bold")?"bold":""):l=l.includes("bold")?"bold-italic":"italic",!n.mathvariant){let t=v(e);""===r.variant&&("mi"===e.name&&t.length>1||"mn"===e.name&&!/^\d+\.\d+$/.test(t))?l="":["mi","mn","mo"].includes(e.name)&&["italic","bold-italic"].includes(r.variant)&&(l="bold"===c?"bold-italic":"italic")}return{color:i,variant:l,size:a,scriptlevel:o,background:s,fontstyle:u}}(e,i,r?.style);e.style=l,e.hasMglyphChild=s;let c=Object.keys(l).every(e=>{let t=r?.style;return t&&l[e]===t[e]})&&r?.hasMglyphChild===s,u=a===r?.name||["mi","mn","mo"].includes(a)&&["mi","mn","mo"].includes(r?.name),h=t.children[t.children.length-1];if(u&&c&&!s&&!t[w]&&h?.name==="m:r")o=h.children[h.children.length-1];else{let r={name:"m:r",type:"tag",attribs:{},children:[]};if(l.variant){let e={name:"m:rPr",type:"tag",attribs:{},children:[]},t=O[l.variant];t?e.children.push({name:"m:sty",type:"tag",attribs:{"m:val":t},children:[]}):e.children.push({name:"m:nor",type:"tag",attribs:{},children:[]}),r.children.push(e);let n={name:"w:rPr",type:"tag",attribs:{},children:[]};l.variant.includes("bold")&&n.children.push({name:"w:b",type:"tag",attribs:{},children:[]}),l.variant.includes("italic")&&n.children.push({name:"w:i",type:"tag",attribs:{},children:[]}),n.children.length&&r.children.push(n)}else s||"mtext"===a?r.children.push({name:"m:rPr",type:"tag",attribs:{},children:[{name:"m:nor",type:"tag",attribs:{},children:[]}]}):("normal"===l.fontstyle||"ms"===a&&""===l.fontstyle)&&r.children.push({name:"m:rPr",type:"tag",attribs:{},children:[{name:"m:sty",type:"tag",attribs:{"m:val":"p"},children:[]}]});o={name:"m:t",type:"tag",attribs:{"xml:space":"preserve"},children:[]},e.children.length<1&&o.children.push({type:"text",data:"​"}),function(e,t){if(!e[w])return;e[w]=!1;let r=t.children.find(e=>"m:rPr"===e.name);if(!r){r={name:"m:rPr",type:"tag",attribs:{},children:[]};let e=t.children.findIndex(e=>"w:rPr"===e.name);t.children.splice(e+1,0,r)}r.children.push({name:"m:brk",type:"tag",attribs:{},children:[]})}(t,r),r.children.push(o),t.children.push(r)}return o}let N={"←":"⃖","⟵":"⃖","→":"⃗","⟶":"⃗","´":"́","˝":"̋","˘":"̆",ˇ:"̌","¸":"̒","^":"̂","¨":"̈","˙":"̇","`":"̀","-":"̅","¯":"̅","−":"̅",".":"̇","~":"̃","˜":"̃"};function _(e,t,r,n,i,a){if(2!==e.children.length)return t;(i=[...i]).unshift(e);let o=e.children[0],s=e.children[1],l=M(o);if(l&&e.attribs?.accent?.toLowerCase()!=="true"&&e.attribs?.accentunder?.toLowerCase()!=="true"){let r=S(l,e,"undOvr","over"===a,"under"===a);e.isNary=!0;let n={name:"m:sub",type:"tag",attribs:{},children:[]},o={name:"m:sup",type:"tag",attribs:{},children:[]};Y(s,"under"===a?n:o,!1,!1,i),r.children.push(n),r.children.push(o),r.children.push({type:"tag",name:"m:e",attribs:{},children:[]}),t.children.push(r);return}let c=v(s),u={name:"m:e",type:"tag",attribs:{},children:[]};if(Y(o,u,!1,!1,i),"under"===a&&"mo"===s.name&&["̲","_"].includes(c)||"over"===a&&"mo"===s.name&&["̅","¯"].includes(c))return void t.children.push({type:"tag",name:"m:bar",attribs:{},children:[{type:"tag",name:"m:barPr",attribs:{},children:[{type:"tag",name:"m:pos",attribs:{"m:val":"under"===a?"bot":"top"},children:[]}]},{type:"tag",name:"m:e",attribs:{},children:[{type:"tag",name:"under"===a?"m:sSub":"m:sSup",attribs:{},children:[{type:"tag",name:"under"===a?"m:sSubPr":"m:sSupPr",attribs:{},children:[{type:"tag",name:"m:ctrlPr",attribs:{},children:[]}]},u,{type:"tag",name:"m:sub",attribs:{},children:[]}]}]}]});if("under"===a&&e.attribs?.accentunder?.toLowerCase()==="true"&&"mo"===s.name&&c.length<2||"over"===a&&e.attribs?.accent?.toLowerCase()==="true"&&"mo"===s.name&&c.length<2)return void t.children.push({type:"tag",name:"m:acc",attribs:{},children:[{type:"tag",name:"m:accPr",attribs:{},children:[{type:"tag",name:"m:chr",attribs:{"m:val":N[c]||c},children:[]}]},u]});if(e.attribs?.accent?.toLowerCase()!=="true"&&e.attribs?.accentunder?.toLowerCase()!=="true"&&"mo"===s.name&&"mrow"===o.name&&1===c.length)return void t.children.push({type:"tag",name:"m:groupChr",attribs:{},children:[{type:"tag",name:"m:groupChrPr",attribs:{},children:[{type:"tag",name:"m:chr",attribs:{"m:val":c},children:[]},{type:"tag",name:"m:pos",attribs:{"m:val":"under"===a?"bot":"top"},children:[]}]},u]});let h={name:"m:lim",type:"tag",attribs:{},children:[]};Y(s,h,!1,!1,i),t.children.push({type:"tag",name:"under"===a?"m:limLow":"m:limUpp",attribs:{},children:[u,h]})}var T,P,C,I,k,F,X,U,W,V=Object.freeze({__proto__:null,math:function(e,t,r,n,i){return t.name="m:oMath",t.attribs={"xmlns:m":"http://schemas.openxmlformats.org/officeDocument/2006/math","xmlns:w":"http://schemas.openxmlformats.org/wordprocessingml/2006/main"},t.type="tag",t.children=[],t},menclose:function(e,t,r,n,i){let a=e.attribs?.notation?.split(" ")[0]||"longdiv",o={type:"tag",name:"m:e",attribs:{},children:[]};if("longdiv"===a)t.children.push({type:"tag",name:"m:rad",attribs:{},children:[{type:"tag",name:"m:radPr",attribs:{},children:[{type:"tag",name:"m:degHide",attribs:{"m:val":"on"},children:[]}]},{type:"tag",name:"m:deg",attribs:{},children:[]},o]});else{let e={type:"tag",name:"m:hideTop",attribs:{"m:val":"on"},children:[]},r={type:"tag",name:"m:hideBot",attribs:{"m:val":"on"},children:[]},n={type:"tag",name:"m:hideLeft",attribs:{"m:val":"on"},children:[]},i={type:"tag",name:"m:hideRight",attribs:{"m:val":"on"},children:[]},s={type:"tag",name:"m:borderBoxPr",attribs:{},children:[]},l={type:"tag",name:"m:borderBox",attribs:{},children:[]};switch(a){case"actuarial":case"radical":case"box":l.children=[o];break;case"left":case"roundedbox":s.children=[e,r,i],l.children=[s,o];break;case"right":case"circle":s.children=[e,r,n],l.children=[s,o];break;case"top":s.children=[r,n,i],l.children=[s,o];break;case"bottom":s.children=[e,n,i],l.children=[s,o];break;case"updiagonalstrike":s.children=[e,r,n,i,{type:"tag",name:"m:strikeBLTR",attribs:{"m:val":"on"},children:[]}],l.children=[s,o];break;case"downdiagonalstrike":s.children=[e,r,n,i,{type:"tag",name:"m:strikeTLBR",attribs:{"m:val":"on"},children:[]}],l.children=[s,o];break;case"verticalstrike":s.children=[e,r,n,i,{type:"tag",name:"m:strikeV",attribs:{"m:val":"on"},children:[]}],l.children=[s,o];break;case"horizontalstrike":s.children=[e,r,n,i,{type:"tag",name:"m:strikeH",attribs:{"m:val":"on"},children:[]}],l.children=[s,o];break;default:s.children=[e,r,n,i],l.children=[s,o]}t.children.push(l)}return o},mfrac:function(e,t,r,n,i){if(2!==e.children.length)return t;let a=e.children[0],o=e.children[1],s={name:"m:num",type:"tag",attribs:{},children:[]},l={name:"m:den",type:"tag",attribs:{},children:[]};(i=[...i]).unshift(e),Y(a,s,!1,!1,i),Y(o,l,!1,!1,i);let c=e.attribs?.linethickness?.trim(),u=void 0!==c&&/^0+(\.0*)?([a-z%]+)?$/i.test(c)?"noBar":e.attribs?.bevelled==="true"?"skw":"bar";t.children.push({type:"tag",name:"m:f",attribs:{},children:[{type:"tag",name:"m:fPr",attribs:{},children:[{type:"tag",name:"m:type",attribs:{"m:val":u},children:[]}]},s,l]})},mglyph:function(e,t,r,n,i){e.attribs?.alt&&y(t).children.push({type:"text",data:e.attribs.alt})},mi:function(e,t,r,n,i){return L(e,t,r,n,i,"mi")},mmultiscripts:function(e,t,r,n,i){if(0===e.children.length)return;let a=e.children[0],o=[],s=[],l=[],c=[],u=e.children.slice(1),h=!1;u.forEach((e,t)=>{"mprescripts"===e.name?h=!0:"none"!==e.name&&(t%2?h?l.push(e):s.push(e):h?c.push(e):o.push(e))}),(i=[...i]).unshift(e);let p={children:[]};Y(a,p,!1,!1,i);let d=p.children[0];if(o.length||s.length){let e={name:"m:sub",type:"tag",attribs:{},children:[]};o.forEach(t=>Y(t,e,!1,!1,i));let t={name:"m:sup",type:"tag",attribs:{},children:[]};s.forEach(e=>Y(e,t,!1,!1,i));let r={type:"tag",attribs:{},children:[{type:"tag",name:"m:e",attribs:{},children:[d]}]};o.length&&s.length?(r.name="m:sSubSup",r.children.push(e),r.children.push(t)):o.length?(r.name="m:sSub",r.children.push(e)):(r.name="m:sSup",r.children.push(t)),d=r}if(l.length||c.length){let e={name:"m:sub",type:"tag",attribs:{},children:[]};l.forEach(t=>Y(t,e,!1,!1,i));let t={name:"m:sup",type:"tag",attribs:{},children:[]};c.forEach(e=>Y(e,t,!1,!1,i)),d={name:"m:sPre",type:"tag",attribs:{},children:[{name:"m:e",type:"tag",attribs:{},children:[d]},e,t]}}t.children.push(d)},mn:function(e,t,r,n,i){return L(e,t,r,n,i,"mn")},mo:function(e,t,r,n,i){return L(e,t,r,n,i,"mo")},mover:function(e,t,r,n,i){return _(e,t,r,n,i,"over")},mroot:function(e,t,r,n,i){if(2!==e.children.length)return t;(i=[...i]).unshift(e);let a=e.children[0],o=e.children[1],s={type:"tag",name:"m:e",attribs:{},children:[]};Y(a,s,!1,!1,i);let l={type:"tag",name:"m:deg",attribs:{},children:[]};Y(o,l,!1,!1,i);let c=v(o);t.children.push({type:"tag",name:"m:rad",attribs:{},children:[{type:"tag",name:"m:radPr",attribs:{},children:[{type:"tag",name:"m:degHide",attribs:{"m:val":c.length?"off":"on"},children:[]}]},l,s]})},mrow:function(e,t,r,n,i){if(r.isNary){let e=x(t);if(e)return e}return t},ms:function(e,t,r,n,i){return L(e,t,r,n,i,"ms")},mspace:function(e,t){e.attribs?.linebreak==="newline"?t[w]=!0:t.children.push({name:"m:r",type:"tag",attribs:{},children:[{name:"m:t",type:"tag",attribs:{"xml:space":"preserve"},children:[{type:"text",data:" "}]}]})},msqrt:function(e,t,r,n,i){let a={name:"m:e",type:"tag",attribs:{},children:[]};return t.children.push({name:"m:rad",type:"tag",attribs:{},children:[{name:"m:radPr",type:"tag",attribs:{},children:[{name:"m:degHide",type:"tag",attribs:{"m:val":"on"},children:[]}]},{name:"m:deg",type:"tag",attribs:{},children:[]},a]}),a},mstyle:function(e,t,r,n,i){return t},msub:function(e,t,r,n,i){let a;if(2!==e.children.length)return t;(i=[...i]).unshift(e);let o=e.children[0],s=e.children[1],l=M(o);if(l&&e.attribs?.accent?.toLowerCase()!=="true"&&e.attribs?.accentunder?.toLowerCase()!=="true")a=S(l,e,"subSup",!1,!0),e.isNary=!0;else{let e={name:"m:e",type:"tag",attribs:{},children:[]};Y(o,e,!1,!1,i),a={type:"tag",name:"m:sSub",attribs:{},children:[{type:"tag",name:"m:sSubPr",attribs:{},children:[{type:"tag",name:"m:ctrlPr",attribs:{},children:[]}]},e]}}let c={name:"m:sub",type:"tag",attribs:{},children:[]};Y(s,c,!1,!1,i),a.children.push(c),e.isNary&&(a.children.push({type:"tag",name:"m:sup",attribs:{},children:[]}),a.children.push({type:"tag",name:"m:e",attribs:{},children:[]})),t.children.push(a)},msubsup:function(e,t,r,n,i){let a;if(3!==e.children.length)return t;(i=[...i]).unshift(e);let o=e.children[0],s=e.children[1],l=e.children[2],c=M(o);if(c&&e.attribs?.accent?.toLowerCase()!=="true"&&e.attribs?.accentunder?.toLowerCase()!=="true")a=S(c,e,"subSup"),e.isNary=!0;else{let e={name:"m:e",type:"tag",attribs:{},children:[]};Y(o,e,!1,!1,i),a={type:"tag",name:"m:sSubSup",attribs:{},children:[{type:"tag",name:"m:sSubSupPr",attribs:{},children:[{type:"tag",name:"m:ctrlPr",attribs:{},children:[]}]},e]}}let u={name:"m:sub",type:"tag",attribs:{},children:[]},h={name:"m:sup",type:"tag",attribs:{},children:[]};Y(s,u,!1,!1,i),Y(l,h,!1,!1,i),a.children.push(u),a.children.push(h),e.isNary&&a.children.push({type:"tag",name:"m:e",attribs:{},children:[]}),t.children.push(a)},msup:function(e,t,r,n,i){let a;if(2!==e.children.length)return t;(i=[...i]).unshift(e);let o=e.children[0],s=e.children[1],l=M(o);if(l&&e.attribs?.accent?.toLowerCase()!=="true"&&e.attribs?.accentunder?.toLowerCase()!=="true")a=S(l,e,"subSup",!0),e.isNary=!0,a.children.push({type:"tag",name:"m:sub",attribs:{},children:[]});else{let e={name:"m:e",type:"tag",attribs:{},children:[]};Y(o,e,!1,!1,i),a={type:"tag",name:"m:sSup",attribs:{},children:[{type:"tag",name:"m:sSupPr",attribs:{},children:[{type:"tag",name:"m:ctrlPr",attribs:{},children:[]}]},e]}}let c={name:"m:sup",type:"tag",attribs:{},children:[]};Y(s,c,!1,!1,i),a.children.push(c),e.isNary&&a.children.push({type:"tag",name:"m:e",attribs:{},children:[]}),t.children.push(a)},mtable:function(e,t,r,n,i){let a=Math.max(0,...e.children.map(e=>e.children.length));for(let t of e.children)for(;t.children?.length<a;)t.children.push({name:"mtd",type:"tag",attribs:{},children:[]});let o={name:"m:m",type:"tag",attribs:{},children:[{name:"m:mPr",type:"tag",attribs:{},children:[{name:"m:baseJc",type:"tag",attribs:{"m:val":"center"},children:[]},{name:"m:plcHide",type:"tag",attribs:{"m:val":"on"},children:[]},{name:"m:mcs",type:"tag",attribs:{},children:[{name:"m:mc",type:"tag",attribs:{},children:[{name:"m:mcPr",type:"tag",attribs:{},children:[{name:"m:count",type:"tag",attribs:{"m:val":a.toString()},children:[]},{name:"m:mcJc",type:"tag",attribs:{"m:val":"center"},children:[]}]}]}]}]}]};return t.children.push(o),o},mtd:function(e,t,r,n,i){let a={name:"m:e",type:"tag",attribs:{},children:[]};return t.children.push(a),a},mtext:function(e,t,r,n,i){return L(e,t,r,n,i,"mtext")},mtr:function(e,t,r,n,i){let a={name:"m:mr",type:"tag",attribs:{},children:[]};return t.children.push(a),a},munder:function(e,t,r,n,i){return _(e,t,r,n,i,"under")},munderover:function(e,t,r,n,i){if(3!==e.children.length)return t;(i=[...i]).unshift(e);let a=e.children[0],o=e.children[1],s=e.children[2],l=M(a);if(l&&e.attribs?.accent?.toLowerCase()!=="true"&&e.attribs?.accentunder?.toLowerCase()!=="true"){let r=S(l,e,"undOvr");e.isNary=!0;let n={name:"m:sub",type:"tag",attribs:{},children:[]},a={name:"m:sup",type:"tag",attribs:{},children:[]};Y(o,n,!1,!1,i),Y(s,a,!1,!1,i),r.children.push(n),r.children.push(a),r.children.push({type:"tag",name:"m:e",attribs:{},children:[]}),t.children.push(r);return}let c={name:"m:e",type:"tag",attribs:{},children:[]};Y(a,c,!1,!1,i);let u={name:"m:lim",type:"tag",attribs:{},children:[]},h={name:"m:lim",type:"tag",attribs:{},children:[]};Y(o,u,!1,!1,i),Y(s,h,!1,!1,i),t.children.push({type:"tag",name:"m:limUpp",attribs:{},children:[{type:"tag",name:"m:e",attribs:{},children:[{type:"tag",name:"m:limLow",attribs:{},children:[c,u]}]},h]})},semantics:function(e,t,r,n,i){return t},text:function(e,t,r,n,i){let a=e.data.replace(/[\u2061-\u2064\u200B]/g,"");if(i.find(e=>["mi","mn","mo"].includes(e.name)))a=a.replace(/\s/g,"");else{let e=i.find(e=>"ms"===e.name);e&&(a=(e.attribs?.lquote||'"')+a+(e.attribs?.rquote||'"'))}if(a.length){let e=y(t);return e.children.length&&"text"===e.children[e.children.length-1].type?e.children[e.children.length-1].data+=a:e.children.push({type:"text",data:a}),e}return t}});let E=["annotation","annotation-xml"];function Y(e,t,r=!1,n=!1,i=[]){var a;let o,s;if(E.includes(e.name))return;!r&&["m:deg","m:den","m:e","m:fName","m:lim","m:num","m:sub","m:sup"].includes(t.name)&&(a=i,["0","1","2"].includes(s=a.find(e=>e.attribs?.scriptlevel)?.attribs?.scriptlevel)&&t.children.unshift({type:"tag",name:"m:argPr",attribs:{},children:[{type:"tag",name:"m:scrLvl",attribs:{"m:val":s},children:[]}]}));let l=e.name||e.type;if(V[l]?o=V[l](e,t,r,n,i):(l&&"root"!==l&&console.warn(`Type not supported: ${l}`),o=t),o&&e.children?.length){(i=[...i]).unshift(e);for(let t=0;t<e.children.length;t++)Y(e.children[t],o,e.children[t-1],e.children[t+1],i),function(e){if(!e[w])return;let t=e.children;if(!t?.length)return;let r=t[t.length-1];"m:r"!==r.name&&(e[w]=!1,t[t.length-1]={name:"m:box",type:"tag",attribs:{},children:[{name:"m:boxPr",type:"tag",attribs:{},children:[{name:"m:brk",type:"tag",attribs:{},children:[]}]},{name:"m:e",type:"tag",attribs:{},children:[r]}]})}(o)}}class D{constructor(e,t={}){this.inString=e,this.inXML=function(e,t={}){let r,n=t.components||g,i=[],a=[],o=-1,s=!1,l=[],c=d.exec(e);for(;c;)l.push(c),c=d.exec(e);return l.forEach((e,t)=>{let r=e[0];if(!r||r.startsWith("\x3c!--"))return;let n=0,i=0,a=-1,o=null;for(let e=0;e<r.length;e++){let t=r.charAt(e);o?t===o&&(o=null):'"'===t||"'"===t?o=t:"<"===t?2==++n&&(a=e):">"===t&&i++}let s=a>-1&&/[a-zA-Z0-9\-!/]/.test(r.charAt(a+1));if(n>i&&s){let e=r.substring(0,a),n=r.substring(e.length);l[t][0]=n,l[t].index+=e.length}}),l.forEach((c,u)=>{let h,d,g=c[0];if(!g)return;let y=c.index;if(s){if(g!==`</${r.name}>`)return;s=!1}let v="/"!==g.charAt(1),R=g.startsWith("\x3c!--"),b=y+g.length,x=e.charAt(b),M=l[u+1];if("<"===x&&M){let t=e.substring(b,M.index);h=t.split("<").length>t.split(">").length}if(R){let r=p(g,t);if(o<0)return i.push(r),i;if((d=a[o]).children.push(r),m.includes(d.name)){let r=e.slice(b,M?M.index:void 0).trim();r.length>0&&d.children.push({type:"text",data:A(r,t)})}return i}if(v){if(o++,"tag"===(r=p(g,t)).type&&n[r.name]&&(r.type="component",s=!0),m.includes(r.name)&&!r.voidElement&&!s&&x&&"<"!==x){let n=e.slice(b,M?M.index:void 0).trim();r.children.push({type:"text",data:A(n,t)})}0===o&&i.push(r),(d=a[o-1])&&d.children.push(r),a[o]=r}if((!v||r.voidElement)&&(o>-1&&(r.voidElement||r.name===g.slice(2,-1))&&(r=-1==--o?i:a[o]),!s&&o>-1&&m.includes(a[o].name)&&("<"!==x||h)&&x)){d=a[o].children;let r=M?M.index:-1,n=e.slice(b,-1===r?void 0:r);f.test(n)&&(n=" "),(r>-1&&o+d.length>=0||" "!==n)&&d.push({type:"text",data:A(n,t)})}}),i}(e,t),this.outXML=!1,this.outString=!1}run(){let e={};Y({children:this.inXML,type:"root"},e),this.outXML=e}getResult(){return this.outString=[this.outXML].reduce((e,t)=>e+function e(t,r){switch(r.type){case"text":return t+String(r.data).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\u200B/g,"&#x200B;");case"tag":{let n=r.voidElement||!r.children.length&&"preserve"!==r.attribs["xml:space"];if(t+=`<${r.name}${r.attribs?function(e){let t=[];for(let r in e)t.push(`${r}="${String(e[r]).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}"`);return t.length?` ${t.join(" ")}`:""}(r.attribs):""}${n?"/>":">"}`,n)return t;return`${t+r.children.reduce(e,"")}</${r.name}>`}case"comment":return t+`<!--${r.comment}-->`}}("",t),""),this.outString}}r.d(t,{},{Q:(e,t)=>{let r=new D(e,t);return r.run(),r.getResult()}})},27380(e,t,r){function n(e){return{all:e=e||new Map,on:function(t,r){var n=e.get(t);n?n.push(r):e.set(t,[r])},off:function(t,r){var n=e.get(t);n&&(r?n.splice(n.indexOf(r)>>>0,1):e.set(t,[]))},emit:function(t,r){var n=e.get(t);n&&n.slice().map(function(e){e(r)}),(n=e.get("*"))&&n.slice().map(function(e){e(t,r)})}}}r.d(t,{A:()=>n})},41884(e,t,r){r.d(t,{d_:()=>i,Ak:()=>a});let n=e=>crypto.getRandomValues(new Uint8Array(e)),i=(e,t=21)=>((e,t,r)=>{let n=256-256%e.length;if(256===n){let n=e.length-1;return (i=t)=>{if(!i)return"";let a="";for(;;){let t=r(i),o=i;for(;o--;)if((a+=e[t[o]&n]).length>=i)return a}}}let i=Math.ceil(409.6*t/n);return (a=t)=>{if(!a)return"";let o="";for(;;){let t=r(i),s=i;for(;s--;)if(t[s]<n&&(o+=e[t[s]%e.length]).length>=a)return o}}})(e,0|t,n),a=(e=21)=>{let t="",r=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[63&r[e]];return t}},93591(e,t,r){let n,i,a,o=(e,t)=>{let r,{o:n,i:i,u:a}=e,o=n,s=(e,t)=>{let n=o,s=t||(i?!i(n,e):n!==e);return(s||a)&&(o=e,r=n),[o,s,r]};return[t?e=>s(t(o,r),e):s,e=>[o,!!e,r]]},s="u">typeof window&&"u">typeof HTMLElement&&window.document?window:{},l=Math.max,c=Math.min,u=Math.round,h=Math.abs,p=Math.sign,d=s.cancelAnimationFrame,f=s.requestAnimationFrame,m=s.setTimeout,g=s.clearTimeout,A=e=>void 0!==s[e]?s[e]:void 0,y=A("MutationObserver"),v=A("IntersectionObserver"),R=A("ResizeObserver"),b=A("ScrollTimeline"),x=e=>"object"==typeof e&&!Array.isArray(e)&&null!==e,M=e=>{let t=!!e&&e.length;return!(!Array.isArray(e)&&("function"==typeof e||!("number"==typeof t&&t>-1&&t%1==0)))&&(!(t>0&&x(e))||t-1 in e)},S=e=>!!e&&e.constructor===Object;function w(e,t){if(M(e))for(let r=0;r<e.length&&!1!==t(e[r],r,e);r++);else e&&w(Object.keys(e),r=>t(e[r],r,e));return e}let O=(e,t)=>e.indexOf(t)>=0,L=(e,t,r)=>("string"!=typeof t&&M(t)?Array.prototype.push.apply(e,t):e.push(t),e),N=e=>Array.from(e||[]),_=e=>Array.isArray(e)?e:"string"!=typeof e&&M(e)?N(e):[e],T=e=>!!e&&!e.length,P=e=>N(new Set(e)),C=(e,t,r)=>{w(e,e=>!e||e.apply(void 0,t||[])),r||(e.length=0)},I="paddingTop",k="paddingRight",F="paddingLeft",X="paddingBottom",U="marginLeft",W="marginRight",V="marginBottom",E="overflowX",Y="overflowY",D="width",Q="height",$="visible",B="hidden",Z="scroll",K=(e,t,r,n)=>{if(e&&t){let n=!0;return w(r,r=>{e[r]!==t[r]&&(n=!1)}),n}return!1},G=(e,t)=>K(e,t,["w","h"]),H=(e,t)=>K(e,t,["x","y"]),z=(e,t)=>K(e,t,["t","r","b","l"]),J=(e,...t)=>e.bind(0,...t),j=e=>{let t,r=e?m:f,n=e?g:d;return[i=>{n(t),t=r(()=>i(),"function"==typeof e?e():e)},()=>n(t)]},q=e=>{let t="function"==typeof e?e():e;if("number"==typeof t){let e=t?m:f,r=t?g:d;return n=>{let i=e(()=>n(),t);return()=>{r(i)}}}return t&&t._},ee=(e,t)=>{let r,n,i,a,{p:o,v:s,S:l,m:c}=t||{},u=function(t){n&&n(),r&&r(),a=n=r=i=void 0,e.apply(this,t)},h=e=>c&&i?c(i,e):e,p=()=>{n&&i&&u(h(i)||i)},d=function(){let e=N(arguments),t=q(o);if(t){let o="function"==typeof l?l():l,c=q(s),d=h(e)||e,f=u.bind(0,d);n&&n(),o&&!a?(f(),a=!0,n=t(()=>a=void 0)):(n=t(f),c&&!r&&(r=c(p))),i=d}else u(e)};return d.O=p,d},et=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),er=e=>e?Object.keys(e):[],en=(e,t,r,n,i,a,o)=>(("object"!=typeof e||null===e)&&"function"!=typeof e&&(e={}),w([t,r,n,i,a,o],t=>{w(t,(r,n)=>{let i=t[n];if(e===i)return!0;let a=Array.isArray(i);if(i&&S(i)){let t=e[n],r=t;a&&!Array.isArray(t)?r=[]:a||S(t)||(r={}),e[n]=en(r,i)}else e[n]=a?i.slice():i})}),e),ei=(e,t)=>w(en({},e),(e,t,r)=>{void 0===e?delete r[t]:e&&S(e)&&(r[t]=ei(e))}),ea=()=>{},eo=(e,t,r)=>l(e,c(t,r)),es=e=>P((Array.isArray(e)?e:(e||"").split(" ")).filter(e=>e)),el=(e,t)=>e&&e.getAttribute(t),ec=(e,t)=>e&&e.hasAttribute(t),eu=(e,t,r)=>{w(es(t),t=>{e&&e.setAttribute(t,String(r||""))})},eh=(e,t)=>{w(es(t),t=>e&&e.removeAttribute(t))},ep=(e,t)=>{let r=es(el(e,t)),n=J(eu,e,t),i=(e,t)=>{let n=new Set(r);return w(es(e),e=>{n[t](e)}),N(n).join(" ")};return{C:e=>n(i(e,"delete")),$:e=>n(i(e,"add")),H:e=>{let t=es(e);return t.reduce((e,t)=>e&&r.includes(t),t.length>0)}}},ed=(e,t,r)=>(ep(e,t).C(r),J(ef,e,t,r)),ef=(e,t,r)=>(ep(e,t).$(r),J(ed,e,t,r)),em=(e,t,r,n)=>(n?ef:ed)(e,t,r),eg=(e,t,r)=>ep(e,t).H(r),eA=(e,t)=>{ep(e,"class").C(t)},ey=(e,t)=>(ep(e,"class").$(t),J(eA,e,t)),ev=(e,t)=>{let r=t?t instanceof Element&&t:document;return r?N(r.querySelectorAll(e)):[]},eR=(e,t)=>e instanceof Element&&e.matches(t),eb=e=>e?N(e.childNodes):[],ex=(e,t)=>e instanceof Element&&e.closest(t),eM=e=>{w(_(e),e=>{let t=e&&e.parentElement;e&&t&&t.removeChild(e)})},eS=(e,t)=>J(eM,e&&t&&w(_(t),t=>{t&&e.appendChild(t)})),ew=e=>{let t=document.createElement("div");return eu(t,"class",e),t},eO=e=>{let t=ew(),r=n,i=e.trim();return t.innerHTML=r?r.createHTML(i):i,w(eb(t),e=>eM(e))},eL=(e,t)=>e.getPropertyValue(t)||e[t]||"",eN=e=>{let t=e||0;return isFinite(t)?t:0},e_=e=>eN(parseFloat(e||"")),eT=e=>Math.round(1e4*e)/1e4,eP=e=>`${eT(eN(e))}px`;function eC(e,t){e&&t&&w(t,(t,r)=>{try{let n=e.style,i=null===t||"boolean"==typeof t?"":"number"==typeof t?eP(t):t;0===r.indexOf("--")?n.setProperty(r,i):n[r]=i}catch(e){}})}function eI(e,t,r){let n="string"==typeof t,i=n?"":{};if(e){let a=s.getComputedStyle(e,r)||e.style;i=n?eL(a,t):N(t).reduce((e,t)=>(e[t]=eL(a,t),e),i)}return i}let ek=(e,t,r)=>{let n=t?`${t}-`:"",i=r?`-${r}`:"",a=`${n}top${i}`,o=`${n}right${i}`,s=`${n}bottom${i}`,l=`${n}left${i}`,c=eI(e,[a,o,s,l]);return{t:e_(c[a]),r:e_(c[o]),b:e_(c[s]),l:e_(c[l])}},eF=(e,t)=>`translate${x(e)?`(${e.x},${e.y})`:`${t?"X":"Y"}(${e})`}`,eX={w:0,h:0},eU=(e,t)=>t?{w:t[`${e}Width`],h:t[`${e}Height`]}:eX,eW=J(eU,"offset"),eV=J(eU,"client"),eE=J(eU,"scroll"),eY=e=>{let t=parseFloat(eI(e,D))||0,r=parseFloat(eI(e,Q))||0;return{w:t-u(t),h:r-u(r)}},eD=e=>e.getBoundingClientRect(),eQ=e=>!!(e&&(e[Q]||e[D])),e$=(e,t)=>{let r=eQ(e);return!eQ(t)&&r},eB=(e,t,r,n)=>{w(es(t),t=>{e&&e.removeEventListener(t,r,n)})},eZ=(e,t,r,n)=>{var i;let a=null==(i=n&&n.D)||i,o=n&&n.I||!1,s=n&&n.A||!1,l={passive:a,capture:o};return J(C,es(t).map(t=>{let n=s?i=>{eB(e,t,n,o),r&&r(i)}:r;return e&&e.addEventListener(t,n,l),J(eB,e,t,n,o)}))},eK=e=>e.stopPropagation()||e.preventDefault(),eG=(e,t)=>{let{x:r,y:n}="number"==typeof t?{x:t,y:t}:t||{};"number"==typeof r&&(e.scrollLeft=r),"number"==typeof n&&(e.scrollTop=n)},eH=e=>({x:e.scrollLeft,y:e.scrollTop}),ez=()=>({T:{x:0,y:0},k:{x:0,y:0}}),eJ=({T:e,k:t})=>{let r=(e,t)=>0===e&&e<=t;return{x:r(e.x,t.x),y:r(e.y,t.y)}},ej=({T:e,k:t},r)=>{let n=(e,t,r)=>eo(0,1,(e-r)/(e-t)||0);return{x:n(e.x,t.x,r.x),y:n(e.y,t.y,r.y)}},eq=e=>{e&&e.focus&&e.focus({preventScroll:!0,focusVisible:!1})},e0=(e,t)=>{w(_(t),e)},e1=e=>{let t=new Map,r=(e,r)=>{if(e){let n=t.get(e);e0(e=>{n&&n[e?"delete":"clear"](e)},r)}else t.forEach(e=>{e.clear()}),t.clear()},n=(e,i)=>{if("string"==typeof e){let n=t.get(e)||new Set;return t.set(e,n),e0(e=>{"function"==typeof e&&n.add(e)},i),J(r,e,i)}"boolean"==typeof i&&i&&r();let a=er(e),o=[];return w(a,t=>{let r=e[t];r&&L(o,n(t,r))}),J(C,o)};return n(e||{}),[n,r,(e,r)=>{w(N(t.get(e)),e=>{r&&!T(r)?e.apply(0,r):e()})}]},e2={},e3={},e5=(e,t,r)=>er(e).map(n=>{let{static:i,instance:a}=e[n],[o,s,l]=r||[],c=r?a:i;if(c){let e=r?c(o,s,t):c(t);return(l||e3)[n]=e}}),e4=e=>e3[e],e6="data-overlayscrollbars",e8="os-environment",e9=`${e8}-scrollbar-hidden`,e7=`${e6}-initialize`,te="noClipping",tt=`${e6}-body`,tr=`${e6}-viewport`,tn="measuring",ti="scrollbarHidden",ta=`${e6}-padding`,to=`${e6}-content`,ts="os-size-observer",tl=`${ts}-appear`,tc=`${ts}-listener`,tu="os-scrollbar",th=`${tu}-rtl`,tp=`${tu}-horizontal`,td=`${tu}-vertical`,tf=`${tu}-track`,tm=`${tu}-handle`,tg=`${tu}-visible`,tA=`${tu}-cornerless`,ty=`${tu}-interaction`,tv=`${tu}-unusable`,tR=`${tu}-auto-hide`,tb=`${tR}-hidden`,tx=`${tu}-wheel`,tM=`${tf}-interactive`,tS=`${tm}-interactive`,tw=e=>0===e.indexOf($),tO=(e,t)=>{if("auto"===e)return t?Z:B;let r=e||B;return[B,Z,$].includes(r)?r:B},tL="__osScrollbarsHidingPlugin",tN=e=>JSON.stringify(e,(e,t)=>{if("function"==typeof t)throw 0;return t}),t_=(e,t)=>e?`${t}`.split(".").reduce((e,t)=>e&&et(e,t)?e[t]:void 0,e):void 0,tT=[33,99],tP=[222,666,!0],tC={paddingAbsolute:!1,showNativeOverlaidScrollbars:!1,update:{elementEvents:[["img","load"]],debounce:{mutation:[0,33],resize:null,event:tT,env:tP},attributes:null,ignoreMutation:null,flowDirectionStyles:null},overflow:{x:"scroll",y:"scroll"},scrollbars:{theme:"os-theme-dark",visibility:"auto",autoHide:"never",autoHideDelay:1300,autoHideSuspend:!1,dragScroll:!0,clickScroll:!1,pointers:["mouse","touch","pen"]}},tI=(e,t)=>{let r,n,i={};return w((r=er(t),n=er(e),r.concat(n)),r=>{let n=e[r],a=t[r];if(x(n)&&x(a))en(i[r]={},tI(n,a)),er(i[r]).length||delete i[r];else if(et(t,r)&&a!==n){let e=!0;if(Array.isArray(n)||Array.isArray(a))try{tN(n)===tN(a)&&(e=!1)}catch(e){}e&&(i[r]=a)}}),i},tk=(e,t,r)=>n=>[t_(e,n),r||void 0!==t_(t,n)],tF=()=>(a||(a=(()=>{let e=(e,t,r)=>{eS(document.body,e),eS(document.body,e);let n=eV(e),i=eW(e),a=eY(t);return r&&eM(e),{x:i.h-n.h+a.h,y:i.w-n.w+a.w}},t=`.${e8}{scroll-behavior:auto!important;position:fixed;opacity:0;visibility:hidden;overflow:scroll;height:200px;width:200px;z-index:-1}.${e8} div{width:200%;height:200%;margin:10px 0}.${e9}{scrollbar-width:none!important}.${e9}::-webkit-scrollbar,.${e9}::-webkit-scrollbar-corner{appearance:none!important;display:none!important;width:0!important;height:0!important}`,r=eO(`<div class="${e8}"><div></div><style>${t}</style></div>`)[0],n=r.firstChild,a=r.lastChild,l=i;l&&(a.nonce=l);let[c,,u]=e1(),[h,p]=o({o:e(r,n),i:H},J(e,r,n,!0)),[d]=p(),f=(e=>{let t=!1,r=ey(e,e9);try{t="none"===eI(e,"scrollbar-width")||"none"===eI(e,"display","::-webkit-scrollbar")}catch(e){}return r(),t})(r),m={x:0===d.x,y:0===d.y},g={elements:{host:null,padding:!f,viewport:e=>f&&eR(e,"body")&&e,content:!1},scrollbars:{slot:!0},cancel:{nativeScrollbarsOverlaid:!1,body:null}},A=en({},tC),y=J(en,{},A),v=J(en,{},g),R={U:d,M:m,P:f,J:!!b,G:J(c,"r"),K:v,Z:e=>en(g,e)&&v(),tt:y,nt:e=>en(A,e)&&y(),ot:en({},g),st:en({},A)};if(eh(r,"style"),eM(r),eZ(s,"resize",()=>{u("r",[])}),"function"==typeof s.matchMedia&&!f&&(!m.x||!m.y)){let e=t=>{eZ(s.matchMedia(`(resolution: ${s.devicePixelRatio}dppx)`),"change",()=>{t(),e(t)},{A:!0})};e(()=>{let[e,t]=h();en(R.U,e),u("r",[t])})}return R})()),a),tX=(e,t,r,n)=>{var i;let a,o,s,l=!1,{et:c,ct:u,rt:h,it:p,lt:d,ut:f}=n||{},[m,g]=(i=()=>l&&r(!0),a=!1,o=!!h&&new WeakMap,(s=t=>{o&&h&&w(h.map(r=>{let[n,i]=r||[];return[i&&n?(t||ev)(n,e):[],i]}),t=>w(t[0],r=>{let n=t[1],s=o.get(r)||[];if(e.contains(r)&&n){let e=eZ(r,n,t=>{a?(e(),o.delete(r)):i()});o.set(r,L(s,e))}else C(s),o.delete(r)}))})(),[()=>{a=!0},s]),A=u||[],v=(c||[]).concat(A),R=(i,a)=>{if(!T(a)){let o=d||ea,s=f||ea,l=[],c=[],u=!1,h=!1;if(w(a,r=>{let{attributeName:i,target:a,type:d,oldValue:f,addedNodes:m,removedNodes:g}=r,y="attributes"===d,v=e===a,R=y&&i,b=R&&el(a,i||""),x="string"==typeof b?b:null,M=R&&f!==x,S=O(A,i)&&M;if(t&&("childList"===d||!v)){let t=y&&M,c=t&&p&&eR(a,p),u=(c?!o(a,i,f,x):!y||t)&&!s(r,!!c,e,n);w(m,e=>L(l,e)),w(g,e=>L(l,e)),h=h||u}!t&&v&&M&&!o(a,i,f,x)&&(L(c,i),u=u||S)}),g(e=>P(l).reduce((t,r)=>(L(t,ev(e,r)),eR(r,e)?L(t,r):t),[])),t)return!i&&h&&r(!1),[!1];if(!T(c)||u){let e=[P(c),u];return i||r.apply(0,e),e}}},b=new y(J(R,!1));return[()=>(b.observe(e,{attributes:!0,attributeOldValue:!0,attributeFilter:v,subtree:t,childList:t,characterData:t}),l=!0,()=>{l&&(m(),b.disconnect(),l=!1)}),()=>{if(l)return R(!0,b.takeRecords())}]},tU=null,tW=(e,t,r)=>{let{ft:n}=r||{},i=e4("__osSizeObserverPlugin"),[a]=o({o:!1,u:!0});return()=>{let r=[],o=eO(`<div class="${ts}"><div class="${tc}"></div></div>`)[0],s=o.firstChild,l=e=>{let r=Array.isArray(e)&&!T(e),n=!1,i=!1;if(r){let[t,,r]=a(e[0].contentRect),o=eQ(t);n=!(i=e$(t,r))&&!o}else i=!0===e;n||t({_t:!0,ft:i})};if(R){if("boolean"!=typeof tU){let t=new R(ea);t.observe(e,{get box(){tU=!0}}),tU=tU||!1,t.disconnect()}let t=ee(l,{p:0,v:0}),n=e=>t(e),i=new R(n);if(i.observe(tU?e:s),L(r,[()=>{i.disconnect()},!tU&&eS(e,o)]),tU){let t=new R(n);t.observe(e,{box:"border-box"}),L(r,()=>t.disconnect())}}else{if(!i)return ea;let t,[a,c]=i(s,l,n);L(r,(t=[ey(o,tl),eZ(o,"animationstart",a),eS(e,o)],t.concat(c)))}return J(C,r)}},tV=(e,t)=>"function"==typeof t?t.apply(0,e):t,tE=(e,t,r,n)=>tV(e,void 0===n?r:n)||t.apply(0,e),tY=(e,t,r,n)=>{let i=tV(e,void 0===n?r:n);return!!i&&(i instanceof HTMLElement?i:t.apply(0,e))},tD=new WeakMap,tQ=(e,t,r)=>{let{tt:n}=tF(),i=e instanceof HTMLElement,a=i?e:e.target,c=tD.get(a);if(t&&!c){let c=[],d={},g=e=>{let t=ei(e),r=e4("__osOptionsValidationPlugin");return r?r(t,!0):t},A=en({},n(),g(t)),[y,x,M]=e1(),[N,_,T]=e1(r),q=(e,t)=>{T(e,t),M(e,t)},[et,es,ep,ed,ev,eO,eL]=((e,t,r,n)=>{let i=!1,a={Kt:!1,pn:!1},c=tk(t,{}),[d,g,A,y,x]=(e=>{let[t,r,n]=(e=>{let t,r,n,i,{K:a,P:o}=tF(),{elements:l}=a(),{padding:c,viewport:u,content:h}=l,p=e instanceof HTMLElement,d=p?{}:e,{elements:f}=d,{padding:m,viewport:g,content:A}=f||{},y=p?e:d.target,v=eR(y,"body"),R=y.ownerDocument,b=R.documentElement,x=()=>R.defaultView||s,M=J(tE,[y]),S=J(tY,[y]),w=J(ew,""),N=J(M,w,u),_=J(S,w,h),T=N(g),P=T===y,I=P&&v,k=!P&&_(A),F=I?b:T,X=I?F:y,U=!P&&S(w,c,m),W=!(!P&&T===k)&&k,V=[W,F,U,X].map(e=>e instanceof HTMLElement&&!(e&&e.parentElement)&&e),D=F&&O(V,F)||(t=eW(F),r=eE(F),n=eI(F,E),i=eI(F,Y),(!(r.w-t.w>0)||tw(n))&&(!(r.h-t.h>0)||tw(i)))?y:F,Q=I?b:F,$=I?R:F,B={dt:y,vt:X,L:F,ln:U,ht:W,gt:Q,Qt:$,an:v?b:D,Gt:R,bt:v,At:p,V:P,un:x,yt:e=>eg(F,tr,e),wt:(e,t)=>em(F,tr,e,t),St:()=>em(Q,tr,"scrolling",!0)},{dt:Z,vt:K,ln:G,L:H,ht:z}=B,j=[()=>{eh(K,[e6,e7]),eh(Z,e7),v&&eh(b,[e7,e6])}],q=eb([z,H,G,K,Z].find(e=>e&&!(e&&O(V,e)))),ee=I?Z:z||H,et=J(C,j);return[B,()=>{let e=x(),t=document.activeElement,r=e=>{eS(e&&e.parentElement,eb(e)),eM(e)},n=e=>eZ(e,"focusin focusout focus blur",eK,{I:!0,D:!1}),i="tabindex",a=el(H,i),s=n(t);return eu(K,e6,P?"":"host"),eu(G,ta,""),eu(H,tr,""),eu(z,to,""),!P&&(eu(H,i,a||"-1"),v&&eu(b,tt,"")),eS(ee,q),eS(K,G),eS(G||K,!P&&H),eS(H,z),L(j,[s,()=>{let e=document.activeElement,t=H&&O(V,H),o=t&&e===H?Z:e,s=n(o);eh(G,ta),eh(z,to),eh(H,tr),v&&eh(b,tt),a?eu(H,i,a):eh(H,i),z&&O(V,z)&&r(z),t&&r(H),G&&O(V,G)&&r(G),eq(o),s()}]),o&&!P&&(ef(H,tr,ti),L(j,J(eh,H,tr))),eq(!P&&v&&t===Z&&e.top===e?H:t),s(),q=0,et},et]})(e),i={ln:{t:0,r:0,b:0,l:0},_n:!1,F:{[W]:0,[V]:0,[U]:0,[I]:0,[k]:0,[X]:0,[F]:0},Vt:{x:0,y:0},Rt:{x:0,y:0},rn:{x:B,y:B},j:{x:!1,y:!1},Tt:ez()},{dt:a,gt:c,V:u,St:d}=t,{P:m,M:g}=tF(),A=!m&&(g.x||g.y),y=[(({ht:e})=>({Zt:t,fn:r,It:n})=>{let{$t:i}=t||{},{Ot:a}=r;e&&(i||n)&&eC(e,{[Q]:a&&"100%"})})(t),(({vt:e,ln:t,L:r,V:n},i)=>{let[a,s]=o({i:z,o:ek()},J(ek,e,"padding",""));return({Dt:e,Zt:o,fn:l,It:c})=>{let[u,h]=s(c),{P:p}=tF(),{_t:d,xt:f,Ct:m}=o||{},{B:g}=l,[A,y]=e("paddingAbsolute"),v=c||f;(d||h||v)&&([u,h]=a(c));let R=!n&&(y||m||h);if(R){let e=!A||!t&&!p,n=u.r+u.l,a=u.t+u.b,o={[W]:e&&!g?-n:0,[V]:e?-a:0,[U]:e&&g?-n:0,top:e?-u.t:0,right:e?g?-u.r:"auto":0,left:e?g?"auto":-u.l:0,[D]:e&&`calc(100% + ${n}px)`},s={[I]:e?u.t:0,[k]:e?u.r:0,[X]:e?u.b:0,[F]:e?u.l:0};eC(t||r,o),eC(r,s),en(i,{ln:u,_n:!e,F:t?s:en({},o,s)})}return{dn:R}}})(t,i),((e,t)=>{let r=tF(),{vt:n,ln:i,L:a,V:c,Qt:u,gt:d,bt:m,wt:g,un:A}=e,{P:y}=r,v=m&&c,R=J(l,0),b={display:()=>!1,direction:e=>"ltr"!==e,flexDirection:e=>e.endsWith("-reverse"),writingMode:e=>"horizontal-tb"!==e},x=er(b),M={i:G,o:{w:0,h:0}},S={i:H,o:{}},w=e=>{g(tn,!v&&e)},[O,L]=o(M,J(eY,a)),[N,_]=o(M,J(eE,a)),[T,C]=o(M),[I]=o(S),[k,F]=o(M),[X]=o(S),[U]=o({i:(e,t)=>{let r,n;return K(e,t,P((r=er(e),n=er(t),r.concat(n))))},o:{}}),[W,V]=o({i:(e,t)=>H(e.T,t.T)&&H(e.k,t.k),o:ez()}),D=e4(tL),Q=(e,t)=>{let r,n=t?E:Y;return`${n}${(r=String(e||""))?r[0].toUpperCase()+r.slice(1):""}`};return({Dt:o,Zt:l,fn:c,It:m},{dn:M})=>{var S;let P,{_t:K,Ht:G,xt:H,Ct:z,ft:J,Et:j}=l||{},{X:q,Y:ee,W:et}=D&&D.R(e,t,c,r,o)||{},[ei,ea]=((e,t)=>{let{M:r}=t,[n,i]=e("showNativeOverlaidScrollbars");return[n&&r.x&&r.y,i]})(o,r),[eo,es]=o("overflow"),el=tw(eo.x),ec=tw(eo.y),eu=K||M||H||z||j||ea,eh=L(m),ep=_(m),ed=C(m),ef=F(m);if(ea&&y&&g(ti,!ei),eu){let e,t;eg(n,e6,te)&&w(!0);let r=ee&&ee(),[i]=eh=O(m),[o]=ep=N(m),l=eV(a),c=v&&eU("inner",A()||s),u={w:R(o.w+i.w),h:R(o.h+i.h)},h={w:R((c?c.w:l.w+R(l.w-o.w))+i.w),h:R((c?c.h:l.h+R(l.h-o.h))+i.h)};r&&r(),ef=k(h),ed=T((e=+(s.devicePixelRatio%1!=0),{w:(t={w:R(u.w-h.w),h:R(u.h-h.h)}).w>e?t.w:0,h:t.h>e?t.h:0}),m)}let[eA,ey]=ef,[ev,eR]=ed,[eb,ex]=ep,[eM,eS]=eh,[ew]=I({x:ev.w>0,y:ev.h>0}),eO=el&&ec&&(ew.x||ew.y)||el&&ew.x&&!ew.y||ec&&ew.y&&!ew.x,eL=M||z||j||eS||ex||ey||eR||es||ea||eu||G&&v,[eN]=o("update.flowDirectionStyles"),[e_,eT]=U(eN?eN(a)||{}:eI(a,x),m),[eP,ek]=z||J||eT||m?W(((e,t)=>{let r=!er(e).length,n=!!t||x.some(t=>{let r=e[t];return"string"==typeof r&&b[t](r)});if(r||!n||!(a&&(a.offsetWidth||a.offsetHeight||a.getClientRects().length)))return{T:{x:0,y:0},k:{x:1,y:1}};w(!0);let i=eH(d),o=eZ(u,Z,e=>{let t=eH(d);e.isTrusted&&t.x===i.x&&t.y===i.y&&e.stopPropagation()},{I:!0,A:!0}),s=g("noContent",!0);eG(d,{x:0,y:0}),s();let l=eH(d),c=eE(d);eG(d,{x:c.w,y:c.h});let p=eH(d),m={x:p.x-l.x,y:p.y-l.y};eG(d,{x:-c.w,y:-c.h});let A=eH(d),y={x:A.x-l.x,y:A.y-l.y},v={x:h(m.x)>=h(y.x)?p.x:A.x,y:h(m.y)>=h(y.y)?p.y:A.y};return eG(d,i),f(()=>o()),{T:l,k:v}})(e_,!!eN),m):V(),eF={x:(P=(e,t,r,n)=>{let i=e===$?B:e.replace(`${$}-`,""),a=tw(e),o=tw(r);if(!t&&!n)return B;if(a&&o)return $;if(a){let e=t?$:B;return t&&n?i:e}let s=o&&n?$:B;return t?i:s})(eo.x,ew.x,eo.y,ew.y),y:P(eo.y,ew.y,eo.x,ew.x)};if(w(!1),eL){let e;S=eF,g((e=e=>[$,B,Z].map(t=>Q(tO(t),e)))(!0).concat(e()).join(" ")),g(er(S).map(e=>Q(S[e],"x"===e)).join(" "),!0),eF=((e,t)=>{let{overflowX:r,overflowY:n}=eI(e,[E,Y]);return{x:tO(r,t.x),y:tO(n,t.y)}})(a,ew),et&&q&&(q(eF,eb,eM),eC(a,et(eF)))}let[eX,eW]=X(eF);return em(n,e6,te,eO),em(i,ta,te,eO),en(t,{rn:eX,Vt:{x:eA.w,y:eA.h},Rt:{x:ev.w,y:ev.h},j:ew,Tt:((e,t)=>{let{T:r,k:n}=e,{w:i,h:a}=t,o=(e,t,r)=>{let n=p(e)*r,i=p(t)*r;if(n===i){let r=h(e),a=h(t);i=r>a?0:i,n=r<a?0:n}return[(n=n===i?0:n)+0,i+0]},[s,l]=o(r.x,n.x,i),[c,u]=o(r.y,n.y,a);return{T:{x:s,y:c},k:{x:l,y:u}}})(eP,ev)}),{en:eW,nn:ey,sn:eR,cn:ek||eR}}})(t,i)];return[r,e=>{let t={},r=A&&eH(c),n=r&&d();return w(y,r=>{en(t,r(e,t)||{})}),eG(c,r),n&&n(),u||eG(a,0),t},i,t,n]})(e),[M,N,_]=((e,t,r,n)=>{let i,a,s,l,c,u,h,p,d,f,m,g,A,y=`[${e6}]`,b=`[${tr}]`,x=["id","class","style","open","wrap","cols","rows"],{dt:M,vt:w,L:O,gt:N,ht:_,V:T,bt:P,yt:I,wt:k,St:F}=e,X={Ot:!1,B:"rtl"===eI(M,"direction")},U=tF(),W=e4(tL),[V]=o({i:G,o:{w:0,h:0}},()=>{let n=W&&W.R(e,t,X,U,r).Y,i=!(P&&T)&&eg(w,e6,te),a=!T&&I("arrange"),o=a&&eH(N),s=o&&F(),l=k(tn,i),c=a&&n&&n(),u=eE(O),h=eY(O);return c&&c(),eG(N,o),s&&s(),i&&l(),{w:u.w+h.w,h:u.h+h.h}}),E=(g=ee(n,{p:()=>d,v:()=>f,S:()=>m,m(e,t){let r,n,[i]=e,[a]=t;return[(r=er(i),n=er(a),r.concat(n)).reduce((e,t)=>(e[t]=i[t]||a[t],e),{})]}}),(A=(e,t)=>{if(Array.isArray(t)){let[e,r,n]=t;d=e,f=r,m=n}else"number"==typeof t?d=t:d=!1,f=!1,m=!1;g(e)}).O=g.O,A),Y=e=>{let t="rtl"===eI(M,"direction");en(e,{Ct:p!==t}),en(X,{B:t}),p=t},D=(e,t)=>{let[r,i]=e,a={$t:i};return en(X,{Ot:r}),t||n(a),a},Q=({_t:e,ft:t})=>{let r=t?n:E,i={_t:e||t,ft:t};Y(i),r(i,a)},$=(e,t)=>{let[,r]=V(),n={xt:r};return Y(n),r&&!t&&E(n,e?s:i),n},B=(e,t,r)=>{let n={Ht:t};return Y(n),t&&!r&&E(n,i),n},[Z,K]=_?((e,t)=>{let r,n=ew("os-trinsic-observer"),[i]=o({o:!1}),a=(e,r)=>{if(e){let n=i(0===e.h||e.isIntersecting||e.intersectionRatio>0),[,a]=n;return a&&!r&&t(n)&&[n]}},s=(e,t)=>a(t.pop(),e);return[()=>{let t=[];if(v)(r=new v(J(s,!1),{root:e})).observe(n),L(t,()=>{r.disconnect()});else{let e=()=>{a(eW(n))};L(t,tW(n,e)()),e()}return J(C,L(t,eS(e,n)))},()=>r&&s(!0,r.takeRecords())]})(w,D):[],H=!T&&tW(w,Q,{ft:!0}),[z,j]=tX(w,!1,B,{ct:x,et:x}),q=T&&R&&new R(e=>{let t=e[e.length-1].contentRect;Q({_t:!0,ft:e$(t,h)}),h=t});return[()=>{q&&q.observe(w);let e=H&&H(),t=Z&&Z(),r=z(),n=U.G(e=>{let[,t]=V();E({Et:e,xt:t,_t:P},l)});return()=>{q&&q.disconnect(),e&&e(),t&&t(),u&&u(),r(),n()}},({Dt:e,zt:t,It:r})=>{let n={},[o]=e("update.ignoreMutation"),[h,p]=e("update.attributes"),[d,f]=e("update.elementEvents"),[m,g]=e("update.debounce"),A=t||r;if(f||p){let e;c&&c(),u&&u();let[t,r]=tX(_||O,!0,$,{et:(e=h||[],x.concat(e)),rt:d,it:y,ut:(e,t)=>{var r,n;let i,a,s,l,c,{target:u,attributeName:h}=e;return!t&&!!h&&!T&&(s=ex(u,y),c=ex(l=u&&(r=b,(i=(n=s)?n instanceof Element&&n:document)&&i.querySelector(r)),y)===s,!!s&&!!l&&(s===u||l===u||c&&ex(ex(u,b),y)!==s))||!!ex(u,`.${tu}`)||(a=e,"function"==typeof o&&!!o(a))}});u=t(),c=r}if(g&&(E.O(),Array.isArray(m)||"number"==typeof m?(i=m,a=!1,s=tT,l=tP):S(m)?(i=m.mutation,a=m.resize,s=m.event,l=m.env):(i=!1,a=!1,s=!1,l=!1)),A){let e=j(),t=K&&K(),r=c&&c();e&&en(n,B(e[0],e[1],A)),t&&en(n,D(t[0],A)),r&&en(n,$(r[0],A))}return Y(n),n},X]})(y,A,c,e=>{es({},e)}),[T,q,,et]=((e,t,r,n,i,a,o)=>{let s,l,c,p,d,f,g=ea,A=0,y=["mouse","pen"],v=e=>t=>{r.Kt||e(t)},[R,x]=j(),[M,S]=j(100),[O,N]=j(50),[_,T]=j(()=>A),[P,I]=((e,t,r,n)=>{let{K:i}=tF(),{scrollbars:a}=i(),{slot:o}=a,{dt:s,vt:l,L:c,At:u,gt:h,bt:p,V:d}=t,{scrollbars:f}=u?{}:e,{slot:m}=f||{},g=[],A=[],y=[],v=tY([s,l,c],()=>d&&p?s:l,o,m),R=e=>{if(b){let t=null,n=[],i=new b({source:h,axis:e}),a=()=>{t&&t.cancel(),t=null};return{Mt:o=>{let{Tt:s}=r,l=eJ(s)[e],c="x"===e,u=[eF(0,c),eF(`calc(-100% + 100cq${c?"w":"h"})`,c)],h=l?u:u.reverse();return n[0]===h[0]&&n[1]===h[1]||(n=h,a(),t=o.kt.animate({clear:["left"],transform:h},{timeline:i})),a}}}},x={x:R("x"),y:R("y")},M=(e,t,r)=>{let n=r?ey:eA;w(e,e=>{n(e.Lt,t)})},S=(e,t)=>{w(e,e=>{let[r,n]=t(e);eC(r,n)})},O=(e,t,r)=>{let n="boolean"==typeof r;(!n||r)&&M(A,e,t),n&&r||M(y,e,t)},N=e=>{let t=e?"x":"y",r=ew(`${tu} ${e?tp:td}`),i=ew(tf),a=ew(tm),o={Lt:r,Pt:i,kt:a},s=x[t];return L(e?A:y,o),L(g,[eS(r,i),eS(i,a),J(eM,r),s&&s.Mt(o),n(o,O,e)]),o},_=J(N,!0),T=J(N,!1);return _(),T(),[{Ut:()=>{let e=(()=>{let{Rt:e,Vt:t}=r,n=(e,t)=>eo(0,1,e/(e+t)||0);return{x:n(t.x,e.x),y:n(t.y,e.y)}})(),t=e=>t=>[t.Lt,{"--os-viewport-percent":eT(e)+""}];S(A,t(e.x)),S(y,t(e.y))},Nt:()=>{if(!b){let{Tt:e}=r,t=ej(e,eH(h)),n=e=>t=>[t.Lt,{"--os-scroll-percent":eT(e)+""}];S(A,n(t.x)),S(y,n(t.y))}},qt:()=>{let{Tt:e}=r,t=eJ(e),n=e=>t=>[t.Lt,{"--os-scroll-direction":e?"0":"1"}];S(A,n(t.x)),S(y,n(t.y)),b&&(A.forEach(x.x.Mt),y.forEach(x.y.Mt))},Bt:()=>{if(d&&!p){let{Rt:e,Tt:t}=r,n=eJ(t),i=ej(t,eH(h)),a=t=>{let{Lt:r}=t,a=(r&&r.parentElement)===c&&r,o=(e,t,r)=>{let n=t*e;return eP(r?n:-n)};return[a,a&&{transform:eF({x:o(i.x,e.x,n.x),y:o(i.y,e.y,n.y)})}]};S(A,a),S(y,a)}},Ft:O,jt:{Xt:A,Yt:_,Wt:J(S,A)},Jt:{Xt:y,Yt:T,Wt:J(S,y)}},()=>(eS(v,A[0].Lt),eS(v,y[0].Lt),J(C,g))]})(e,a,i,(s=e=>y.includes(e.pointerType)&&K(),(e,r,n)=>{let o,l,c,p,d,f,g,{vt:A,L:y,V:R,gt:b,Gt:x,St:M}=a,{Lt:S,Pt:w,kt:O}=e,[N,_]=j(333),[T,P]=j(444),I=e=>{"function"==typeof b.scrollBy&&b.scrollBy({behavior:"smooth",left:e.x,top:e.y})},k=!0;return J(C,[eZ(O,"pointermove pointerleave",v(s)),eZ(S,"pointerenter",v(()=>{r(ty,!0)})),eZ(S,"pointerleave pointercancel",v(()=>{r(ty,!1)})),eZ(S,"wheel",v(e=>{let{deltaX:t,deltaY:n,deltaMode:i}=e;k&&0===i&&(S&&S.parentElement)===A&&I({x:t,y:n}),k=!1,r(tx,!0),N(()=>{k=!0,r(tx)}),e.preventDefault()}),{D:!1,I:!0}),!R&&eZ(S,"mousedown",v(()=>{let e=document.activeElement;(ec(e,tr)||ec(e,e6)||e===document.body)&&m(J(eq,y),25)})),eZ(S,"pointerdown",()=>{let e=eZ(x,"click",e=>{t(),eK(e)},{A:!0,I:!0,D:!1}),t=eZ(x,"pointerup pointercancel",()=>{t(),setTimeout(e,150)},{I:!0,D:!0})},{I:!0,D:!0}),(o="pointerup pointercancel lostpointercapture",l=`client${n?"X":"Y"}`,c=n?D:Q,p=n?"left":"top",d=n?"w":"h",f=n?"x":"y",g=[],eZ(w,"pointerdown",v(e=>{let r=ex(e.target,`.${tm}`)===O,a=r?O:w,s=t.scrollbars,m=s[r?"dragScroll":"clickScroll"],{button:A,isPrimary:y,pointerType:v}=e,{pointers:R}=s;if(0===A&&y&&m&&(R||[]).includes(v)){C(g),P();let t=!r&&(e.shiftKey||"instant"===m),s=J(eD,O),A=J(eD,w),y=(e,t)=>(e||s())[p]-(t||A())[p],v=u(eD(b)[c])/eW(b)[d]||1,R=eH(b)[f],S=e=>{eG(b,{[f]:R+e})},N=e=>{let{Rt:t}=i;S(1/v*e/(eW(w)[d]-eW(O)[d])*t[f])},_=e[l],k=s(),F=A(),X=k[c],U=y(k,F)+X/2,W=_-F[p]-U,V=r?0:W,E=e=>{C(Q),a.releasePointerCapture(e.pointerId)},Y=r||t,D=M(),Q=[eZ(x,o,E),eZ(x,"selectstart",e=>e.preventDefault(),{D:!1}),eZ(w,o,E),Y&&eZ(w,"pointermove",e=>N(V+e[l]-_)),Y&&(()=>{let e=eH(b);D();let t=eH(b),r={x:t.x-e.x,y:t.y-e.y};(h(r.x)>3||h(r.y)>3)&&(M(),eG(b,e),I(r),T(D))})];if(a.setPointerCapture(e.pointerId),t)N(W);else if(!r){let e=e4("__osClickScrollPlugin");if(e){let{Vt:t}=i,r=e(S,N,J(y),W,t[f],m,!!n,e=>{e?D():L(Q,D)});L(Q,r),L(g,J(r,!0))}}}}))),_,P])})),{vt:k,Qt:F,bt:X}=a,{Ft:U,Ut:W,Nt:V,qt:E,Bt:Y}=P,B=(e,t)=>{T();let n=e=>{r.Kt||U(tb,e)};if(e)n();else{let e=!p||!l;A>0&&!t?_(J(n,e)):n(e)}},K=()=>{(p?l:d)||(B(!0),M(()=>{B(!1)}))},G=e=>{y.includes(e.pointerType)&&(l=!0,!r.Kt&&p&&B(!0))},H=e=>{U(tR,e,!0),U(tR,e,!1)},z=[T,S,N,x,()=>g(),eZ(k,"pointerover",G,{A:!0}),eZ(k,"pointerenter",G),eZ(k,"pointerleave",e=>{y.includes(e.pointerType)&&(l=!1,!r.Kt&&p&&B(!1))}),eZ(k,"pointermove",v(e=>{y.includes(e.pointerType)&&c&&K()})),eZ(F,"scroll",v(e=>{R(()=>{V(),K()}),o(e),Y()}))],q=e4(tL);return[()=>J(C,L(z,I())),({Dt:e,It:t,Zt:r,tn:a})=>{let{nn:o,sn:s,en:l,cn:u}=a||{},{Ct:h,ft:m}=r||{},{B:y}=n,{M:R,P:b}=tF(),{rn:x,j:M}=i,[S,w]=e("showNativeOverlaidScrollbars"),[L,N]=e("scrollbars.theme"),[_,T]=e("scrollbars.visibility"),[P,C]=e("scrollbars.autoHide"),[I,k]=e("scrollbars.autoHideSuspend"),[D]=e("scrollbars.autoHideDelay"),[Q,K]=e("scrollbars.dragScroll"),[G,z]=e("scrollbars.clickScroll"),[j,ee]=e("overflow"),et=m&&!t,er=S&&R.x&&R.y,en=!b&&!q,ei=(e,t,r)=>{let n=e.includes(Z)&&(_===$||"auto"===_&&t===Z);return U(tg,n,r),n};if(A=D,(w||en)&&U("os-theme-none",er||en),N&&(U(f),U(L,!0),f=L),(k||et)&&(H(!I),et&&I&&(M.x||M.y?(g(),O(()=>{g=eZ(F,Z,v(J(H,!0)),{A:!0})})):H(!0))),C&&(c="move"===P,p="leave"===P,B(d="never"===P,!0)),K&&U(tS,Q),z&&U(tM,!!G),l||T||ee){let e=ei(j.x,x.x,!0),t=ei(j.y,x.y,!1);U(tA,!(e&&t))}(o||s||u||h||t)&&(V(),W(),Y(),u&&E(),U(tv,!M.x,!0),U(tv,!M.y,!1),U(th,y&&!X))},{},P]})(e,t,a,_,A,y,n),ei=e=>er(e).some(t=>!!e[t]),es=(e,n)=>{let{Kt:o,pn:s}=a;if(s||o&&i)return!1;let{vn:l,It:c,zt:u}=e,h=l||{},p=!!c||!i,d={Dt:tk(t,h,p),vn:h,It:p},f=n||N(en({},d,{zt:u})),m=g(en({},d,{fn:_,Zt:f}));q(en({},d,{Zt:f,tn:m}));let A=ei(f),y=ei(m),v=A||y||!!er(h).length||p;return i=!0,v&&r(e,{Zt:f,tn:m}),v};return[()=>{let{an:e,gt:t,St:r}=y,n=eH(e),i=[M(),d(),T(),()=>{a.pn=!0}],o=r();return eG(t,n),o(),J(C,i)},es,e=>{let t=a.Kt;a.Kt=e,e||t===e||es({It:!0,zt:!0})},()=>{q({Dt:tk(t,{},!1),vn:{},It:!1})},()=>({gn:a,hn:_,bn:A}),{yn:y,wn:et},x]})(e,A,({vn:e,It:t},{Zt:r,tn:n})=>{let{_t:i,Ct:a,$t:o,xt:s,Ht:l,ft:c}=r,{nn:u,sn:h,en:p,cn:d}=n;q("updated",[e_,{updateHints:{sizeChanged:!!i,directionChanged:!!a,heightIntrinsicChanged:!!o,overflowEdgeChanged:!!u,overflowAmountChanged:!!h,overflowStyleChanged:!!p,scrollCoordinatesChanged:!!d,contentMutation:!!s,hostMutation:!!l,appear:!!c},changedOptions:e||{},force:!!t}])},e=>q("scroll",[e_,e])),eN=e=>{let{gn:t}=ev(),{pn:r}=t;!r&&(tD.delete(a),C(c),q("destroyed",[e_,e]),x(),_())},e_={options(e,t){if(e){let r=tI(A,en(t?n():{},g(e)));er(r).length&&(en(A,r),es({vn:r}))}return en({},A)},on:N,off:(e,t)=>{e&&t&&_(e,t)},state(){let{gn:e,hn:t,bn:r}=ev(),{pn:n,Kt:i}=e,{B:a}=t,{Vt:o,Rt:s,rn:l,j:c,ln:u,_n:h,Tt:p}=r;return en({},{overflowEdge:o,overflowAmount:s,overflowStyle:l,hasOverflow:c,scrollCoordinates:{start:p.T,end:p.k},padding:u,paddingAbsolute:h,directionRTL:a,sleeping:i,destroyed:n})},elements(){let{dt:e,vt:t,ln:r,L:n,ht:i,gt:a,Qt:o}=eO.yn,{jt:s,Jt:l}=eO.wn,c=e=>{let{kt:t,Pt:r,Lt:n}=e;return{scrollbar:n,track:r,handle:t}},u=e=>{let{Xt:t,Yt:r}=e;return en({},c(t[0]),{clone:()=>{let e=c(r());return ed(),e}})};return en({},{target:e,host:t,padding:r||n,viewport:n,content:i||n,scrollOffsetElement:a,scrollEventElement:o,scrollbarHorizontal:u(s),scrollbarVertical:u(l)})},update:e=>es({It:e,zt:!0}),destroy:J(eN,!1),sleep:ep,plugin:e=>d[er(e)[0]]};return(L(c,[eL]),tD.set(a,e_),e5(e2,tQ,[e_,y,d]),((e,t)=>{let{nativeScrollbarsOverlaid:r,body:n}=t||{},{M:i,P:a,K:o}=tF(),{nativeScrollbarsOverlaid:s,body:l}=o().cancel,c=void 0===n?l:n,u=(i.x||i.y)&&(null!=r?r:s);return!!u||!!(e&&(null===c?!a:c))})(eO.yn.bt,!i&&e.cancel))?eN(!0):(L(c,et()),q("initialized",[e_]),e_.update()),e_}return c};tQ.plugin=e=>{let t=Array.isArray(e),r=t?e:[e],n=r.map(e=>e5(e,tQ)[0]);return w(r,e=>w(e,(t,r)=>{e2[r]=e[r]})),t?n:n[0]},tQ.valid=e=>{let t,r=e&&e.elements,n="function"==typeof r&&r();return S(n)&&(t=n.target,!!tD.get(t))},tQ.env=()=>{let{U:e,M:t,P:r,J:n,ot:i,st:a,K:o,Z:s,tt:l,nt:c}=tF();return en({},{scrollbarsSize:e,scrollbarsOverlaid:t,scrollbarsHiding:r,scrollTimeline:n,staticDefaultInitialization:i,staticDefaultOptions:a,getDefaultInitialization:o,setDefaultInitialization:s,getDefaultOptions:l,setDefaultOptions:c})},tQ.nonce=e=>{i=e},tQ.trustedTypePolicy=e=>{n=e},r.d(t,{},{ae:tQ})},42451(e,t,r){let{PI:n}=Math,i=n+1e-4,a=.5,o=[1,1];function s(e,t,r,n=e=>e){return e*n(.5-t*(.5-r))}let{min:l}=Math;function c(e,t,r){let n=l(1,t/r);return l(1,e+(l(1,1-n)-e)*(.275*n))}function u(e,t){return[e[0]+t[0],e[1]+t[1]]}function h(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e}function p(e,t){return[e[0]-t[0],e[1]-t[1]]}function d(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e}function f(e,t){return[e[0]*t,e[1]*t]}function m(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e}function g(e){return[e[1],-e[0]]}function A(e,t){let r=t[0];return e[0]=t[1],e[1]=-r,e}function y(e,t){return e[0]*t[0]+e[1]*t[1]}function v(e,t){let r=e[0]-t[0],n=e[1]-t[1];return r*r+n*n}function R(e){var t;return t=Math.hypot(e[0],e[1]),[e[0]/t,e[1]/t]}function b(e,t,r){let n=Math.sin(r),i=Math.cos(r),a=e[0]-t[0],o=e[1]-t[1];return[a*i-o*n+t[0],a*n+o*i+t[1]]}function x(e,t,r,n){let i=Math.sin(n),a=Math.cos(n),o=t[0]-r[0],s=t[1]-r[1];return e[0]=o*a-s*i+r[0],e[1]=o*i+s*a+r[1],e}function M(e,t,r){return u(e,f(p(t,e),r))}let S=[0,0],w=[0,0],O=[0,0];function L(e,t,r){return!1===e||void 0===e?0:!0===e?Math.max(t,r):e}let N=[0,0];function _(e){return null!=e&&e>=0}function T(e,t={}){return function(e,t={}){var r,n;let{size:a=16,smoothing:o=.5,thinning:l=.5,simulatePressure:M=!0,easing:N=e=>e,start:_={},end:T={},last:P=!1}=t,{cap:C=!0,easing:I=e=>e*(2-e)}=_,{cap:k=!0,easing:F=e=>--e*e*e+1}=T;if(0===e.length||a<=0)return[];let X=e[e.length-1].runningLength,U=L(_.taper,a,X),W=L(T.taper,a,X),V=(a*o)**2,E=[],Y=[],D=e.slice(0,10).reduce((e,t)=>{let r=t.pressure;return M&&(r=c(e,t.distance,a)),(e+r)/2},e[0].pressure),Q=s(a,l,e[e.length-1].pressure,N),$,B=e[0].vector,Z=e[0].point,K=Z,G=Z,H=K,z=!1;for(let t=0;t<e.length;t++){let{pressure:r}=e[t],{point:n,vector:o,distance:f,runningLength:g}=e[t],R=t===e.length-1;if(!R&&X-g<3)continue;l?(M&&(r=c(D,f,a)),Q=s(a,l,r,N)):Q=a/2,void 0===$&&($=Q),Q=Math.max(.01,Q*Math.min(g<U?I(g/U):1,X-g<W?F((X-g)/W):1));let b=(R?e[t]:e[t+1]).vector,L=R?1:y(o,b),_=0>y(o,B)&&!z,T=null!==L&&L<0;if(_||T){A(S,B),m(S,S,Q);for(let e=0;e<=1;e+=.07692307692307693)d(w,n,S),x(w,w,n,i*e),G=[w[0],w[1]],E.push(G),h(O,n,S),x(O,O,n,-(i*e)),H=[O[0],O[1]],Y.push(H);Z=G,K=H,T&&(z=!0);continue}if(z=!1,R){A(S,o),m(S,S,Q),E.push(p(n,S)),Y.push(u(n,S));continue}(function(e,t,r,n){let i=r[0]-t[0],a=r[1]-t[1];e[0]=t[0]+i*n,e[1]=t[1]+a*n})(S,b,o,L),A(S,S),m(S,S,Q),d(w,n,S),G=[w[0],w[1]],(t<=1||v(Z,G)>V)&&(E.push(G),Z=G),h(O,n,S),H=[O[0],O[1]],(t<=1||v(K,H)>V)&&(Y.push(H),K=H),D=r,B=o}let J=[e[0].point[0],e[0].point[1]],j=e.length>1?[e[e.length-1].point[0],e[e.length-1].point[1]]:u(e[0].point,[1,1]),q=[],ee=[];if(1===e.length){if(!(U||W)||P)return function(e,t){var r;let n=(r=R(g(p(e,u(e,[1,1])))),u(e,f(r,-t))),a=[],o=1/13;for(let t=o;t<=1;t+=o)a.push(b(n,e,2*i*t));return a}(J,$||Q)}else{let t,a,o;U||W&&1===e.length||(C?q.push(...function(e,t){let r=[],n=1/13;for(let a=n;a<=1;a+=n)r.push(b(t,e,i*a));return r}(J,Y[0])):q.push(...(a=f(t=p(E[0],Y[0]),.5),o=f(t,.51),[p(J,a),p(J,o),u(J,o),u(J,a)])));let s=g([-(r=e[e.length-1].vector)[0],-r[1]]);W||U&&1===e.length?ee.push(j):k?ee.push(...function(e,t,r){let n=[],a=u(e,f(t,r)),o=1/29;for(let t=o;t<1;t+=o)n.push(b(a,e,3*i*t));return n}(j,s,Q)):ee.push(u(j,f(s,n=Q)),u(j,f(s,.99*n)),p(j,f(s,.99*n)),p(j,f(s,n)))}return E.concat(ee,Y.reverse(),q)}(function(e,t={}){let{streamline:r=.5,size:n=16,last:i=!1}=t;if(0===e.length)return[];let s=.15+(1-r)*.85,l=Array.isArray(e[0])?e:e.map(({x:e,y:t,pressure:r=a})=>[e,t,r]);if(2===l.length){let e=l[1];l=l.slice(0,-1);for(let t=1;t<5;t++)l.push(M(l[0],e,t/4))}1===l.length&&(l=[...l,[...u(l[0],o),...l[0].slice(2)]]);let c=[{point:[l[0][0],l[0][1]],pressure:_(l[0][2])?l[0][2]:.25,vector:[...o],distance:0,runningLength:0}],h=!1,p=0,f=c[0],m=l.length-1;for(let e=1;e<l.length;e++){var g,A;let t=i&&e===m?[l[e][0],l[e][1]]:M(f.point,l[e],s);if(g=f.point,g[0]===t[0]&&g[1]===t[1])continue;let r=(A=f.point,Math.hypot(t[1]-A[1],t[0]-A[0]));if(p+=r,e<m&&!h){if(p<n)continue;h=!0}d(N,f.point,t),f={point:t,pressure:_(l[e][2])?l[e][2]:a,vector:R(N),distance:r,runningLength:p},c.push(f)}return c[0].vector=c[1]?.vector||[0,0],c}(e,t),t)}r.d(t,{$4:()=>T})},14870(e,t,r){r.d(t,{q:()=>ti});var n=r(71710),i=r(84140);let a={34:"''",35:"\\#",36:"\\$",37:"\\%",38:"\\&",60:"\\ensuremath{<}",62:"\\ensuremath{>}",92:"\\textbackslash",94:"\\textasciicircum",95:"\\_",123:"\\{",125:"\\}",126:"\\textasciitilde",160:"~",161:"\\textexclamdown",162:"\\textcent",163:"\\textsterling",164:"\\textcurrency",165:"\\textyen",166:"\\textbrokenbar",167:"\\textsection",168:"\\textasciidieresis",169:"\\textcopyright",170:"\\textordfeminine",171:"\\guillemotleft",172:"\\textlnot",173:"\\-",174:"\\textregistered",175:"\\textasciimacron",176:"\\textdegree",177:"\\ensuremath{\\pm}",178:"\\texttwosuperior",179:"\\textthreesuperior",180:"\\textasciiacute",181:"\\textmu",182:"\\textparagraph",183:"\\textperiodcentered",185:"\\textonesuperior",186:"\\textordmasculine",187:"\\guillemotright",188:"\\textonequarter",189:"\\textonehalf",190:"\\textthreequarters",191:"\\textquestiondown",192:"\\`A",193:"\\'A",194:"\\^A",195:"\\~A",196:'\\"A',197:"\\r{A}",198:"\\AE",199:"\\c{C}",200:"\\`E",201:"\\'E",202:"\\^E",203:'\\"E',204:"\\`I",205:"\\'I",206:"\\^I",207:'\\"I',208:"\\DH",209:"\\~N",210:"\\`O",211:"\\'O",212:"\\^O",213:"\\~O",214:'\\"O',215:"\\texttimes",216:"\\O",217:"\\`U",218:"\\'U",219:"\\^U",220:'\\"U',221:"\\'Y",222:"\\TH",223:"\\ss",224:"\\`a",225:"\\'a",226:"\\^a",227:"\\~a",228:'\\"a',229:"\\r{a}",230:"\\ae",231:"\\c{c}",232:"\\`e",233:"\\'e",234:"\\^e",235:'\\"e',236:"\\`\\i",237:"\\'\\i",238:"\\^\\i",239:'\\"\\i',240:"\\dh",241:"\\~n",242:"\\`o",243:"\\'o",244:"\\^o",245:"\\~o",246:'\\"o',247:"\\textdiv",248:"\\o",249:"\\`u",250:"\\'u",251:"\\^u",252:'\\"u',253:"\\'y",254:"\\th",255:'\\"y',256:"\\={A}",257:"\\={a}",258:"\\u{A}",259:"\\u{a}",260:"\\k{A}",261:"\\k{a}",262:"\\'C",263:"\\'c",264:"\\^{C}",265:"\\^{c}",266:"\\.{C}",267:"\\.{c}",268:"\\v{C}",269:"\\v{c}",270:"\\v{D}",271:"\\v{d}",272:"\\DJ",273:"\\dj",274:"\\={E}",275:"\\={e}",276:"\\u{E}",277:"\\u{e}",278:"\\.{E}",279:"\\.{e}",280:"\\k{E}",281:"\\k{e}",282:"\\v{E}",283:"\\v{e}",284:"\\^{G}",285:"\\^{g}",286:"\\u{G}",287:"\\u{g}",288:"\\.{G}",289:"\\.{g}",290:"\\c{G}",291:"\\c{g}",292:"\\^{H}",293:"\\^{h}",294:"\\={H}",295:"\\={h}",296:"\\~{I}",297:"\\~{i}",298:"\\={I}",299:"\\={i}",300:"\\u{I}",301:"\\u{i}",302:"\\k{I}",303:"\\k{i}",304:"\\.I",305:"\\i",306:"\\IJ",307:"\\ij",308:"\\^{J}",309:"\\^{j}",310:"\\c{K}",311:"\\c{k}",312:"\\textsc{k}",313:"\\'L",314:"\\'l",315:"\\c{L}",316:"\\c{l}",317:"\\v{L}",318:"\\v{l}",319:"\\.{L}",320:"\\.{l}",321:"\\L",322:"\\l",323:"\\'N",324:"\\'n",325:"\\c{N}",326:"\\c{n}",327:"\\v{N}",328:"\\v{n}",329:"\\nument{149}",330:"\\NG",331:"\\ng",332:"\\={O}",333:"\\={o}",334:"\\u{O}",335:"\\u{o}",336:"\\H{O}",337:"\\H{o}",338:"\\OE",339:"\\oe",340:"\\'R",341:"\\'r",342:"\\c{R}",343:"\\c{r}",344:"\\v{R}",345:"\\v{r}",346:"\\'S",347:"\\'s",348:"\\^{S}",349:"\\^{s}",350:"\\c{S}",351:"\\c{s}",352:"\\v{S}",353:"\\v{s}",354:"\\c{T}",355:"\\c{t}",356:"\\v{T}",357:"\\v{t}",358:"\\={T}",359:"\\={t}",360:"\\~{U}",361:"\\~{u}",362:"\\={U}",363:"\\={u}",364:"\\u{U}",365:"\\u{u}",366:"\\r{U}",367:"\\r{u}",368:"\\'{U}",369:"\\'{u}",370:"\\k{U}",371:"\\k{u}",372:"\\^{W}",373:"\\^{w}",374:"\\^{Y}",375:"\\^{y}",376:'\\"Y',377:"\\'Z",378:"\\'z",379:"\\.Z",380:"\\.z",381:"\\v{Z}",382:"\\v{z}",402:"\\textflorin",405:"\\texthvlig",414:"\\textnrleg",501:"\\'{g}",552:"\\c{E}",553:"\\c{e}",601:"\\textschwa",603:"\\varepsilon",632:"\\textphi",660:"\\textglotstop",670:"\\textturnk",695:"\\textsuperscript{w}",700:"'",710:"\\textasciicircum",711:"\\textasciicaron",728:"\\textasciibreve",729:"\\textperiodcentered",730:"\\r{}",731:"\\k{}",732:"\\textasciitilde",733:"\\textacutedbl",775:"\\ensuremath{\\dot{}}",776:"\\ensuremath{\\ddot{}}",902:"\\'{}A",904:"\\'{}E",905:"\\'{}H",906:"\\'{}I",908:"\\'{}O",910:"\\'{}Y",911:"\\'{}\\ensuremath{\\Omega}",912:"\\acute{\\ddot{\\iota}}",913:"A",914:"B",915:"\\ensuremath{\\Gamma}",916:"\\ensuremath{\\Delta}",917:"E",918:"Z",919:"H",920:"\\ensuremath{\\Theta}",921:"I",922:"K",923:"\\ensuremath{\\Lambda}",924:"M",925:"N",926:"\\ensuremath{\\Xi}",927:"O",928:"\\ensuremath{\\Pi}",929:"P",931:"\\ensuremath{\\Sigma}",932:"T",933:"\\ensuremath{\\Upsilon}",934:"\\ensuremath{\\Phi}",935:"X",936:"\\ensuremath{\\Psi}",937:"\\ensuremath{\\Omega}",938:"\\ensuremath{\\ddot{I}}",939:"\\ensuremath{\\ddot{Y}}",940:"\\ensuremath{\\acute\\alpha}",941:"\\ensuremath{\\acute\\epsilon}",942:"\\ensuremath{\\acute\\eta}",943:"\\ensuremath{\\acute\\iota}",944:"\\ensuremath{\\acute{\\ddot{\\upsilon}}}",945:"\\ensuremath{\\alpha}",946:"\\ensuremath{\\beta}",947:"\\ensuremath{\\gamma}",948:"\\ensuremath{\\delta}",949:"\\ensuremath{\\varepsilon}",950:"\\ensuremath{\\zeta}",951:"\\ensuremath{\\eta}",952:"\\ensuremath{\\theta}",953:"\\ensuremath{\\iota}",954:"\\ensuremath{\\kappa}",955:"\\ensuremath{\\lambda}",956:"\\ensuremath{\\mu}",957:"\\ensuremath{\\nu}",958:"\\ensuremath{\\xi}",959:"o",960:"\\ensuremath{\\pi}",961:"\\ensuremath{\\rho}",962:"\\ensuremath{\\varsigma}",963:"\\ensuremath{\\sigma}",964:"\\ensuremath{\\tau}",965:"\\ensuremath{\\upsilon}",966:"\\ensuremath{\\varphi}",967:"\\ensuremath{\\chi}",968:"\\ensuremath{\\psi}",969:"\\ensuremath{\\omega}",970:"\\ensuremath{\\ddot\\iota}",971:"\\ensuremath{\\ddot{\\upsilon}}",972:"\\'{o}",973:"\\ensuremath{\\acute\\upsilon}",974:"\\ensuremath{\\acute\\omega}",977:"\\ensuremath{\\vartheta}",978:"\\Upsilon",981:"\\ensuremath{\\phi}",982:"\\ensuremath{\\varpi}",1008:"\\ensuremath{\\varkappa}",1009:"\\ensuremath{\\varrho}",1013:"\\ensuremath{\\epsilon}",1014:"\\ensuremath{\\backepsilon}",1024:"\\`\\CYRE",1025:"\\CYRYO",1026:"\\CYRDJE",1027:"\\`\\CYRG",1028:"\\CYRIE",1029:"\\CYRDZE",1030:"\\CYRII",1031:"\\CYRYI",1032:"\\CYRJE",1033:"\\CYRLJE",1034:"\\CYRNJE",1035:"\\CYRTSHE",1036:"\\`\\CYRK",1037:"\\`\\CYRI",1038:"\\CYRUSHRT",1039:"\\CYRDZHE",1040:"\\CYRA",1041:"\\CYRB",1042:"\\CYRV",1043:"\\CYRG",1044:"\\CYRD",1045:"\\CYRE",1046:"\\CYRZH",1047:"\\CYRZ",1048:"\\CYRI",1049:"\\CYRISHRT",1050:"\\CYRK",1051:"\\CYRL",1052:"\\CYRM",1053:"\\CYRN",1054:"\\CYRO",1055:"\\CYRP",1056:"\\CYRR",1057:"\\CYRS",1058:"\\CYRT",1059:"\\CYRU",1060:"\\CYRF",1061:"\\CYRH",1062:"\\CYRC",1063:"\\CYRCH",1064:"\\CYRSH",1065:"\\CYRSHCH",1066:"\\CYRHRDSN",1067:"\\CYRERY",1068:"\\CYRSFTSN",1069:"\\CYREREV",1070:"\\CYRYU",1071:"\\CYRYA",1072:"\\cyra",1073:"\\cyrb",1074:"\\cyrv",1075:"\\cyrg",1076:"\\cyrd",1077:"\\cyre",1078:"\\cyrzh",1079:"\\cyrz",1080:"\\cyri",1081:"\\cyrishrt",1082:"\\cyrk",1083:"\\cyrl",1084:"\\cyrm",1085:"\\cyrn",1086:"\\cyro",1087:"\\cyrp",1088:"\\cyrr",1089:"\\cyrs",1090:"\\cyrt",1091:"\\cyru",1092:"\\cyrf",1093:"\\cyrh",1094:"\\cyrc",1095:"\\cyrch",1096:"\\cyrsh",1097:"\\cyrshch",1098:"\\cyrhrdsn",1099:"\\cyrery",1100:"\\cyrsftsn",1101:"\\cyrerev",1102:"\\cyryu",1103:"\\cyrya",1104:"\\`\\cyre",1105:"\\cyryo",1106:"\\cyrdje",1107:"\\`\\cyrg",1108:"\\cyrie",1109:"\\cyrdze",1110:"\\cyrii",1111:"\\cyryi",1112:"\\cyrje",1113:"\\cyrlje",1114:"\\cyrnje",1115:"\\cyrtshe",1116:"\\`\\cyrk",1117:"\\`\\cyri",1118:"\\cyrushrt",1119:"\\cyrdzhe",1120:"\\cyrchar\\CYROMEGA",1121:"\\cyrchar\\cyromega",1122:"\\CYRYAT",1123:"\\cyryat",1124:"\\cyrchar\\CYRIOTE",1125:"\\cyrchar\\cyriote",1126:"\\cyrchar\\CYRLYUS",1127:"\\cyrchar\\cyrlyus",1128:"\\cyrchar\\CYRIOTLYUS",1129:"\\cyrchar\\cyriotlyus",1130:"\\CYRBYUS",1131:"\\cyrbyus",1132:"\\cyrchar\\CYRIOTBYUS",1133:"\\cyrchar\\cyriotbyus",1134:"\\cyrchar\\CYRKSI",1135:"\\cyrchar\\cyrksi",1136:"\\cyrchar\\CYRPSI",1137:"\\cyrchar\\cyrpsi",1138:"\\CYRFITA",1139:"\\cyrfita",1140:"\\CYRIZH",1141:"\\cyrizh",1142:"\\C\\CYRIZH",1143:"\\C\\cyrizh",1144:"\\cyrchar\\CYRUK",1145:"\\cyrchar\\cyruk",1146:"\\cyrchar\\CYROMEGARND",1147:"\\cyrchar\\cyromegarnd",1148:"\\cyrchar\\CYROMEGATITLO",1149:"\\cyrchar\\cyromegatitlo",1150:"\\cyrchar\\CYROT",1151:"\\cyrchar\\cyrot",1152:"\\cyrchar\\CYRKOPPA",1153:"\\cyrchar\\cyrkoppa",1154:"\\cyrchar\\cyrthousands",1160:"\\cyrchar\\cyrhundredthousands",1161:"\\cyrchar\\cyrmillions",1164:"\\CYRSEMISFTSN",1165:"\\cyrsemisftsn",1166:"\\CYRRTICK",1167:"\\cyrrtick",1168:"\\CYRGUP",1169:"\\cyrgup",1170:"\\CYRGHCRS",1171:"\\cyrghcrs",1172:"\\CYRGHK",1173:"\\cyrghk",1174:"\\CYRZHDSC",1175:"\\cyrzhdsc",1176:"\\CYRZDSC",1177:"\\cyrzdsc",1178:"\\CYRKDSC",1179:"\\cyrkdsc",1180:"\\CYRKVCRS",1181:"\\cyrkvcrs",1182:"\\CYRKHCRS",1183:"\\cyrkhcrs",1184:"\\CYRKBEAK",1185:"\\cyrkbeak",1186:"\\CYRNDSC",1187:"\\cyrndsc",1188:"\\CYRNG",1189:"\\cyrng",1190:"\\CYRPHK",1191:"\\cyrphk",1192:"\\CYRABHHA",1193:"\\cyrabhha",1194:"\\CYRSDSC",1195:"\\cyrsdsc",1196:"\\CYRTDSC",1197:"\\cyrtdsc",1198:"\\CYRY",1199:"\\cyry",1200:"\\CYRYHCRS",1201:"\\cyryhcrs",1202:"\\CYRHDSC",1203:"\\cyrhdsc",1204:"\\CYRTETSE",1205:"\\cyrtetse",1206:"\\CYRCHRDSC",1207:"\\cyrchrdsc",1208:"\\CYRCHVCRS",1209:"\\cyrchvcrs",1210:"\\CYRSHHA",1211:"\\cyrshha",1212:"\\CYRABHCH",1213:"\\cyrabhch",1214:"\\CYRABHCHDSC",1215:"\\cyrabhchdsc",1216:"\\CYRpalochka",1217:"\\U\\CYRZH",1218:"\\U\\cyrzh",1219:"\\CYRKHK",1220:"\\cyrkhk",1221:"\\CYRLDSC",1222:"\\cyrldsc",1223:"\\CYRNHK",1224:"\\cyrnhk",1227:"\\CYRCHLDSC",1228:"\\cyrchldsc",1229:"\\CYRMDSC",1230:"\\cyrmdsc",1232:"\\U\\CYRA",1233:"\\U\\cyra",1234:'\\"\\CYRA',1235:'\\"\\cyra',1236:"\\CYRAE",1237:"\\cyrae",1238:"\\U\\CYRE",1239:"\\U\\cyre",1240:"\\CYRSCHWA",1241:"\\cyrschwa",1242:'\\"\\CYRSCHWA',1243:'\\"\\cyrschwa',1244:'\\"\\CYRZH',1245:'\\"\\cyrzh',1246:'\\"\\CYRZ',1247:'\\"\\cyrz',1248:"\\CYRABHDZE",1249:"\\cyrabhdze",1250:"\\=\\CYRI",1251:"\\=\\cyri",1252:'\\"\\CYRI',1253:'\\"\\cyri',1254:'\\"\\CYRO',1255:'\\"\\cyro',1256:"\\CYROTLD",1257:"\\cyrotld",1260:'\\"\\CYREREV',1261:'\\"\\cyrerev',1262:"\\=\\CYRU",1263:"\\=\\cyru",1264:'\\"\\CYRU',1265:'\\"\\cyru',1266:"\\H\\CYRU",1267:"\\H\\cyru",1268:'\\"\\CYRCH',1269:'\\"\\cyrch',1270:"\\CYRGDSC",1271:"\\cyrgdsc",1272:'\\"\\CYRERY',1273:'\\"\\cyrery',1274:"\\CYRGDSCHCRS",1275:"\\cyrgdschcrs",1276:"\\CYRHHK",1277:"\\cyrhhk",1278:"\\CYRHHCRS",1279:"\\cyrhhcrs",3647:"\\textbaht",8192:"\\enskip",8193:"\\quad",8194:"\\enskip",8195:"\\quad",8196:"\\hspace{0.33em}",8197:"\\hspace{0.25em}",8198:"\\hspace{0.167em}",8199:"~",8200:"\\;",8201:"\\,",8202:"\\hspace{1pt}",8204:"\\textcompwordmark",8208:"-",8209:"\\nobreakdash-",8210:"-",8211:"\\textendash",8212:"\\textemdash",8213:"\\textemdash",8214:"\\ensuremath{\\Vert}",8216:"\\textquoteleft",8217:"\\textquoteright",8218:"\\quotesinglbase",8220:"\\textquotedblleft",8221:"\\textquotedblright",8222:"\\quotedblbase",8224:"\\textdagger",8225:"\\textdaggerdbl",8226:"\\textbullet",8228:".",8229:"..",8230:"\\textellipsis",8240:"\\textperthousand",8241:"\\textpertenthousand",8242:"'",8243:"''",8244:"'''",8245:"\\ensuremath{\\backprime}",8249:"\\guilsinglleft",8250:"\\guilsinglright",8251:"\\textreferencemark",8253:"\\textinterrobang",8260:"\\textfractionsolidus",8270:"\\textasteriskcentered",8274:"\\textdiscount",8279:"''''",8287:"\\hspace{0.22em}",8288:"\\nolinebreak",8289:"",8353:"\\textcolonmonetary",8356:"\\textlira",8358:"\\textnaira",8361:"\\textwon",8363:"\\textdong",8364:"\\texteuro",8369:"\\textpeso",8450:"\\ensuremath{\\mathbb{C}}",8451:"\\textcelsius",8457:"\\ensuremath{^\\circ}F",8458:"\\ensuremath{g}",8459:"\\ensuremath{\\mathscr{H}}",8460:"\\ensuremath{\\mathfrak{H}}",8461:"\\ensuremath{\\mathbb{H}}",8462:"\\ensuremath{h}",8463:"\\ensuremath{\\hbar}",8464:"\\ensuremath{\\mathscr{I}}",8465:"\\ensuremath{\\mathfrak{I}}",8466:"\\ensuremath{\\mathscr{L}}",8467:"\\ensuremath{\\ell}",8469:"\\ensuremath{\\mathbb{N}}",8470:"\\textnumero",8471:"\\textcircledP",8472:"\\ensuremath{\\wp}",8473:"\\ensuremath{\\mathbb{P}}",8474:"\\ensuremath{\\mathbb{Q}}",8475:"\\ensuremath{\\mathscr{R}}",8476:"\\ensuremath{\\mathfrak{R}}",8477:"\\ensuremath{\\mathbb{R}}",8478:"\\textrecipe",8480:"\\textservicemark",8482:"\\texttrademark",8484:"\\ensuremath{\\mathbb{Z}}",8486:"\\textohm",8487:"\\textmho",8488:"\\ensuremath{\\mathfrak{Z}}",8490:"K",8491:"\\r{A}",8492:"\\ensuremath{\\mathscr{B}}",8493:"\\ensuremath{\\mathfrak{C}}",8494:"\\textestimated",8495:"\\ensuremath{e}",8496:"\\ensuremath{\\mathscr{E}}",8497:"\\ensuremath{\\mathscr{F}}",8499:"\\ensuremath{\\mathscr{M}}",8500:"\\ensuremath{o}",8501:"\\ensuremath{\\aleph}",8502:"\\ensuremath{\\beth}",8503:"\\ensuremath{\\gimel}",8504:"\\ensuremath{\\daleth}",8531:"\\textfrac{1}{3}",8532:"\\textfrac{2}{3}",8533:"\\textfrac{1}{5}",8534:"\\textfrac{2}{5}",8535:"\\textfrac{3}{5}",8536:"\\textfrac{4}{5}",8537:"\\textfrac{1}{6}",8538:"\\textfrac{5}{6}",8539:"\\textfrac{1}{8}",8540:"\\textfrac{3}{8}",8541:"\\textfrac{5}{8}",8542:"\\textfrac{7}{8}",8592:"\\textleftarrow",8593:"\\textuparrow",8594:"\\textrightarrow",8595:"\\textdownarrow",8596:"\\ensuremath{\\leftrightarrow}",8597:"\\ensuremath{\\updownarrow}",8598:"\\ensuremath{\\nwarrow}",8599:"\\ensuremath{\\nearrow}",8600:"\\ensuremath{\\searrow}",8601:"\\ensuremath{\\swarrow}",8602:"\\ensuremath{\\nleftarrow}",8603:"\\ensuremath{\\nrightarrow}",8604:"\\ensuremath{\\arrowwaveleft}",8605:"\\ensuremath{\\arrowwaveright}",8606:"\\ensuremath{\\twoheadleftarrow}",8608:"\\ensuremath{\\twoheadrightarrow}",8610:"\\ensuremath{\\leftarrowtail}",8611:"\\ensuremath{\\rightarrowtail}",8614:"\\ensuremath{\\mapsto}",8617:"\\ensuremath{\\hookleftarrow}",8618:"\\ensuremath{\\hookrightarrow}",8619:"\\ensuremath{\\looparrowleft}",8620:"\\ensuremath{\\looparrowright}",8621:"\\ensuremath{\\leftrightsquigarrow}",8622:"\\ensuremath{\\nleftrightarrow}",8624:"\\ensuremath{\\Lsh}",8625:"\\ensuremath{\\Rsh}",8630:"\\ensuremath{\\curvearrowleft}",8631:"\\ensuremath{\\curvearrowright}",8634:"\\ensuremath{\\circlearrowleft}",8635:"\\ensuremath{\\circlearrowright}",8636:"\\ensuremath{\\leftharpoonup}",8637:"\\ensuremath{\\leftharpoondown}",8638:"\\ensuremath{\\upharpoonright}",8639:"\\ensuremath{\\upharpoonleft}",8640:"\\ensuremath{\\rightharpoonup}",8641:"\\ensuremath{\\rightharpoondown}",8642:"\\ensuremath{\\downharpoonright}",8643:"\\ensuremath{\\downharpoonleft}",8644:"\\ensuremath{\\rightleftarrows}",8645:"\\ensuremath{\\dblarrowupdown}",8646:"\\ensuremath{\\leftrightarrows}",8647:"\\ensuremath{\\leftleftarrows}",8648:"\\ensuremath{\\upuparrows}",8649:"\\ensuremath{\\rightrightarrows}",8650:"\\ensuremath{\\downdownarrows}",8651:"\\ensuremath{\\leftrightharpoons}",8652:"\\ensuremath{\\rightleftharpoons}",8653:"\\ensuremath{\\nLeftarrow}",8654:"\\ensuremath{\\nLeftrightarrow}",8655:"\\ensuremath{\\nRightarrow}",8656:"\\ensuremath{\\Leftarrow}",8657:"\\ensuremath{\\Uparrow}",8658:"\\ensuremath{\\Rightarrow}",8659:"\\ensuremath{\\Downarrow}",8660:"\\ensuremath{\\Leftrightarrow}",8661:"\\ensuremath{\\Updownarrow}",8666:"\\ensuremath{\\Lleftarrow}",8667:"\\ensuremath{\\Rrightarrow}",8669:"\\ensuremath{\\rightsquigarrow}",8693:"\\ensuremath{\\DownArrowUpArrow}",8704:"\\ensuremath{\\forall}",8705:"\\ensuremath{\\complement}",8706:"\\ensuremath{\\partial}",8707:"\\ensuremath{\\exists}",8708:"\\ensuremath{\\nexists}",8709:"\\ensuremath{\\varnothing}",8710:"\\ensuremath{\\Delta}",8711:"\\ensuremath{\\nabla}",8712:"\\ensuremath{\\in}",8713:"\\ensuremath{\\notin}",8714:"\\ensuremath{\\in}",8715:"\\ensuremath{\\ni}",8716:"\\ensuremath{\\not\\ni}",8717:"\\ensuremath{\\ni}",8718:"\\ensuremath{\\blacksquare}",8719:"\\ensuremath{\\prod}",8720:"\\ensuremath{\\coprod}",8721:"\\ensuremath{\\sum}",8722:"\\ensuremath{-}",8723:"\\ensuremath{\\mp}",8724:"\\ensuremath{\\dotplus}",8725:"\\ensuremath{/}",8726:"\\ensuremath{\\smallsetminus}",8727:"\\ensuremath{*}",8728:"\\ensuremath{\\circ}",8729:"\\ensuremath{\\bullet}",8730:"\\ensuremath{\\sqrt{}}",8731:"\\ensuremath{\\sqrt[3]{}}",8732:"\\ensuremath{\\sqrt[4]{}}",8733:"\\ensuremath{\\propto}",8734:"\\ensuremath{\\infty}",8735:"\\ensuremath{\\rightangle}",8736:"\\ensuremath{\\angle}",8737:"\\ensuremath{\\measuredangle}",8738:"\\ensuremath{\\sphericalangle}",8739:"\\ensuremath{\\mid}",8740:"\\ensuremath{\\nmid}",8741:"\\ensuremath{\\parallel}",8742:"\\ensuremath{\\nparallel}",8743:"\\ensuremath{\\wedge}",8744:"\\ensuremath{\\vee}",8745:"\\ensuremath{\\cap}",8746:"\\ensuremath{\\cup}",8747:"\\ensuremath{\\int}",8748:"\\ensuremath{\\iint}",8749:"\\ensuremath{\\iiint}",8750:"\\ensuremath{\\oint}",8751:"\\ensuremath{\\surfintegral}",8752:"\\ensuremath{\\volintegral}",8753:"\\ensuremath{\\clwintegral}",8756:"\\ensuremath{\\therefore}",8757:"\\ensuremath{\\because}",8758:"\\ensuremath{:}",8759:"\\ensuremath{::}",8762:"\\ensuremath{\\mathbin{{:}\\!\\!{-}\\!\\!{:}}}",8763:"\\ensuremath{\\homothetic}",8764:"\\ensuremath{\\sim}",8765:"\\ensuremath{\\backsim}",8766:"\\ensuremath{\\lazysinv}",8768:"\\ensuremath{\\wr}",8769:"\\ensuremath{\\not\\sim}",8771:"\\ensuremath{\\simeq}",8772:"\\ensuremath{\\not\\simeq}",8773:"\\ensuremath{\\cong}",8774:"\\ensuremath{\\approxnotequal}",8775:"\\ensuremath{\\not\\cong}",8776:"\\ensuremath{\\approx}",8777:"\\ensuremath{\\not\\approx}",8778:"\\ensuremath{\\approxeq}",8779:"\\ensuremath{\\tildetrpl}",8780:"\\ensuremath{\\allequal}",8781:"\\ensuremath{\\asymp}",8782:"\\ensuremath{\\Bumpeq}",8783:"\\ensuremath{\\bumpeq}",8784:"\\ensuremath{\\doteq}",8785:"\\ensuremath{\\doteqdot}",8786:"\\ensuremath{\\fallingdotseq}",8787:"\\ensuremath{\\risingdotseq}",8788:"\\ensuremath{:=}",8789:"\\ensuremath{=:}",8790:"\\ensuremath{\\eqcirc}",8791:"\\ensuremath{\\circeq}",8793:"\\ensuremath{\\estimates}",8795:"\\ensuremath{\\starequal}",8796:"\\ensuremath{\\triangleq}",8800:"\\ensuremath{\\neq}",8801:"\\ensuremath{\\equiv}",8802:"\\ensuremath{\\not\\equiv}",8804:"\\ensuremath{\\leq}",8805:"\\ensuremath{\\geq}",8806:"\\ensuremath{\\leqq}",8807:"\\ensuremath{\\geqq}",8808:"\\ensuremath{\\lneqq}",8809:"\\ensuremath{\\gneqq}",8810:"\\ensuremath{\\ll}",8811:"\\ensuremath{\\gg}",8812:"\\ensuremath{\\between}",8813:"\\ensuremath{\\not\\kern-0.3em\\times}",8814:"\\ensuremath{\\nless}",8815:"\\ensuremath{\\ngtr}",8816:"\\ensuremath{\\nleq}",8817:"\\ensuremath{\\ngeq}",8818:"\\ensuremath{\\lesssim}",8819:"\\ensuremath{\\gtrsim}",8820:"\\ensuremath{\\not\\lesssim}",8821:"\\ensuremath{\\not\\gtrsim}",8822:"\\ensuremath{\\lessgtr}",8823:"\\ensuremath{\\gtrless}",8824:"\\ensuremath{\\notlessgreater}",8825:"\\ensuremath{\\notgreaterless}",8826:"\\ensuremath{\\prec}",8827:"\\ensuremath{\\succ}",8828:"\\ensuremath{\\preceq}",8829:"\\ensuremath{\\succeq}",8830:"\\ensuremath{\\precsim}",8831:"\\ensuremath{\\succsim}",8832:"\\ensuremath{\\nprec}",8833:"\\ensuremath{\\nsucc}",8834:"\\ensuremath{\\subset}",8835:"\\ensuremath{\\supset}",8836:"\\ensuremath{\\not\\subset}",8837:"\\ensuremath{\\not\\supset}",8838:"\\ensuremath{\\subseteq}",8839:"\\ensuremath{\\supseteq}",8840:"\\ensuremath{\\nsubseteq}",8841:"\\ensuremath{\\nsupseteq}",8842:"\\ensuremath{\\subsetneq}",8843:"\\ensuremath{\\supsetneq}",8846:"\\ensuremath{\\uplus}",8847:"\\ensuremath{\\sqsubset}",8848:"\\ensuremath{\\sqsupset}",8849:"\\ensuremath{\\sqsubseteq}",8850:"\\ensuremath{\\sqsupseteq}",8851:"\\ensuremath{\\sqcap}",8852:"\\ensuremath{\\sqcup}",8853:"\\ensuremath{\\oplus}",8854:"\\ensuremath{\\ominus}",8855:"\\ensuremath{\\otimes}",8856:"\\ensuremath{\\oslash}",8857:"\\ensuremath{\\odot}",8858:"\\ensuremath{\\circledcirc}",8859:"\\ensuremath{\\circledast}",8861:"\\ensuremath{\\circleddash}",8862:"\\ensuremath{\\boxplus}",8863:"\\ensuremath{\\boxminus}",8864:"\\ensuremath{\\boxtimes}",8865:"\\ensuremath{\\boxdot}",8866:"\\ensuremath{\\vdash}",8867:"\\ensuremath{\\dashv}",8868:"\\ensuremath{\\top}",8869:"\\ensuremath{\\perp}",8871:"\\ensuremath{\\truestate}",8872:"\\ensuremath{\\forcesextra}",8873:"\\ensuremath{\\Vdash}",8874:"\\ensuremath{\\Vvdash}",8875:"\\ensuremath{\\VDash}",8876:"\\ensuremath{\\nvdash}",8877:"\\ensuremath{\\nvDash}",8878:"\\ensuremath{\\nVdash}",8879:"\\ensuremath{\\nVDash}",8882:"\\ensuremath{\\vartriangleleft}",8883:"\\ensuremath{\\vartriangleright}",8884:"\\ensuremath{\\trianglelefteq}",8885:"\\ensuremath{\\trianglerighteq}",8886:"\\ensuremath{\\original}",8887:"\\ensuremath{\\image}",8888:"\\ensuremath{\\multimap}",8889:"\\ensuremath{\\hermitconjmatrix}",8890:"\\ensuremath{\\intercal}",8891:"\\ensuremath{\\veebar}",8894:"\\ensuremath{\\rightanglearc}",8896:"\\ensuremath{\\bigwedge}",8897:"\\ensuremath{\\bigvee}",8898:"\\ensuremath{\\bigcap}",8899:"\\ensuremath{\\bigcup}",8900:"\\ensuremath{\\diamond}",8901:"\\ensuremath{\\cdot}",8902:"\\ensuremath{\\star}",8903:"\\ensuremath{\\divideontimes}",8904:"\\ensuremath{\\bowtie}",8905:"\\ensuremath{\\ltimes}",8906:"\\ensuremath{\\rtimes}",8907:"\\ensuremath{\\leftthreetimes}",8908:"\\ensuremath{\\rightthreetimes}",8909:"\\ensuremath{\\backsimeq}",8910:"\\ensuremath{\\curlyvee}",8911:"\\ensuremath{\\curlywedge}",8912:"\\ensuremath{\\Subset}",8913:"\\ensuremath{\\Supset}",8914:"\\ensuremath{\\Cap}",8915:"\\ensuremath{\\Cup}",8916:"\\ensuremath{\\pitchfork}",8918:"\\ensuremath{\\lessdot}",8919:"\\ensuremath{\\gtrdot}",8920:"\\ensuremath{\\verymuchless}",8921:"\\ensuremath{\\verymuchgreater}",8922:"\\ensuremath{\\lesseqgtr}",8923:"\\ensuremath{\\gtreqless}",8926:"\\ensuremath{\\curlyeqprec}",8927:"\\ensuremath{\\curlyeqsucc}",8930:"\\ensuremath{\\not\\sqsubseteq}",8931:"\\ensuremath{\\not\\sqsupseteq}",8934:"\\ensuremath{\\lnsim}",8935:"\\ensuremath{\\gnsim}",8936:"\\ensuremath{\\precedesnotsimilar}",8937:"\\ensuremath{\\succnsim}",8938:"\\ensuremath{\\ntriangleleft}",8939:"\\ensuremath{\\ntriangleright}",8940:"\\ensuremath{\\ntrianglelefteq}",8941:"\\ensuremath{\\ntrianglerighteq}",8942:"\\ensuremath{\\vdots}",8943:"\\ensuremath{\\cdots}",8944:"\\ensuremath{\\udots}",8945:"\\ensuremath{\\ddots}",8965:"\\ensuremath{\\barwedge}",8966:"\\ensuremath{\\varperspcorrespond}",8968:"\\ensuremath{\\lceil}",8969:"\\ensuremath{\\rceil}",8970:"\\ensuremath{\\lfloor}",8971:"\\ensuremath{\\rfloor}",8981:"\\ensuremath{\\recorder}",8982:'\\ensuremath{\\mathchar"2208}',8988:"\\ensuremath{\\ulcorner}",8989:"\\ensuremath{\\urcorner}",8990:"\\ensuremath{\\llcorner}",8991:"\\ensuremath{\\lrcorner}",8994:"\\ensuremath{\\frown}",8995:"\\ensuremath{\\smile}",9001:"\\textlangle",9002:"\\textrangle",9136:"\\ensuremath{\\lmoustache}",9137:"\\ensuremath{\\rmoustache}",9250:"\\textblank",9251:"\\textvisiblespace",9632:"\\ensuremath{\\blacksquare}",9633:"\\ensuremath{\\square}",9642:"{\\small\\ensuremath{\\blacksquare}}",9645:"\\fbox{~~}",9651:"\\ensuremath{\\bigtriangleup}",9652:"\\ensuremath{\\blacktriangle}",9653:"\\ensuremath{\\vartriangle}",9656:"\\ensuremath{\\blacktriangleright}",9657:"\\ensuremath{\\triangleright}",9661:"\\ensuremath{\\bigtriangledown}",9662:"\\ensuremath{\\blacktriangledown}",9663:"\\ensuremath{\\triangledown}",9666:"\\ensuremath{\\blacktriangleleft}",9667:"\\ensuremath{\\triangleleft}",9674:"\\ensuremath{\\lozenge}",9675:"\\ensuremath{\\bigcirc}",9702:"\\textopenbullet",9711:"\\textbigcircle",9826:"\\ensuremath{\\diamond}",9833:"\\quarternote",9834:"\\textmusicalnote",9837:"\\flat",9838:"\\natural",9839:"\\sharp",10216:"\\ensuremath{\\langle}",10217:"\\ensuremath{\\rangle}",10229:"\\ensuremath{\\longleftarrow}",10230:"\\ensuremath{\\longrightarrow}",10231:"\\ensuremath{\\longleftrightarrow}",10232:"\\ensuremath{\\Longleftarrow}",10233:"\\ensuremath{\\Longrightarrow}",10234:"\\ensuremath{\\Longleftrightarrow}",10236:"\\ensuremath{\\longmapsto}",10239:"\\ensuremath{\\sim\\joinrel\\leadsto}",10643:"\\ensuremath{<\\kern-0.58em(}",10731:"\\ensuremath{\\blacklozenge}",10767:"\\ensuremath{\\clockoint}",10774:"\\ensuremath{\\sqrint}",10815:"\\ensuremath{\\amalg}",10862:"\\ensuremath{\\stackrel{*}{=}}",10869:"==",10877:"\\ensuremath{\\leqslant}",10878:"\\ensuremath{\\geqslant}",10885:"\\ensuremath{\\lessapprox}",10886:"\\ensuremath{\\gtrapprox}",10887:"\\ensuremath{\\lneq}",10888:"\\ensuremath{\\gneq}",10889:"\\ensuremath{\\lnapprox}",10890:"\\ensuremath{\\gnapprox}",10891:"\\ensuremath{\\lesseqqgtr}",10892:"\\ensuremath{\\gtreqqless}",10901:"\\ensuremath{\\eqslantless}",10902:"\\ensuremath{\\eqslantgtr}",10927:"\\ensuremath{\\preceq}",10928:"\\ensuremath{\\succeq}",10933:"\\ensuremath{\\precneqq}",10934:"\\ensuremath{\\succneqq}",10935:"\\ensuremath{\\precapprox}",10936:"\\ensuremath{\\succapprox}",10937:"\\ensuremath{\\precnapprox}",10938:"\\ensuremath{\\succnapprox}",10949:"\\ensuremath{\\subseteqq}",10950:"\\ensuremath{\\supseteqq}",10955:"\\ensuremath{\\subsetneqq}",10956:"\\ensuremath{\\supsetneqq}",11005:"\\ensuremath{{{/}\\!\\!{/}}}",12296:"\\ensuremath{\\langle}",12297:"\\ensuremath{\\rangle}",64256:"ff",64257:"fi",64258:"fl",64259:"ffi",64260:"ffl",119808:"\\ensuremath{\\mathbf{A}}",119809:"\\ensuremath{\\mathbf{B}}",119810:"\\ensuremath{\\mathbf{C}}",119811:"\\ensuremath{\\mathbf{D}}",119812:"\\ensuremath{\\mathbf{E}}",119813:"\\ensuremath{\\mathbf{F}}",119814:"\\ensuremath{\\mathbf{G}}",119815:"\\ensuremath{\\mathbf{H}}",119816:"\\ensuremath{\\mathbf{I}}",119817:"\\ensuremath{\\mathbf{J}}",119818:"\\ensuremath{\\mathbf{K}}",119819:"\\ensuremath{\\mathbf{L}}",119820:"\\ensuremath{\\mathbf{M}}",119821:"\\ensuremath{\\mathbf{N}}",119822:"\\ensuremath{\\mathbf{O}}",119823:"\\ensuremath{\\mathbf{P}}",119824:"\\ensuremath{\\mathbf{Q}}",119825:"\\ensuremath{\\mathbf{R}}",119826:"\\ensuremath{\\mathbf{S}}",119827:"\\ensuremath{\\mathbf{T}}",119828:"\\ensuremath{\\mathbf{U}}",119829:"\\ensuremath{\\mathbf{V}}",119830:"\\ensuremath{\\mathbf{W}}",119831:"\\ensuremath{\\mathbf{X}}",119832:"\\ensuremath{\\mathbf{Y}}",119833:"\\ensuremath{\\mathbf{Z}}",119834:"\\ensuremath{\\mathbf{a}}",119835:"\\ensuremath{\\mathbf{b}}",119836:"\\ensuremath{\\mathbf{c}}",119837:"\\ensuremath{\\mathbf{d}}",119838:"\\ensuremath{\\mathbf{e}}",119839:"\\ensuremath{\\mathbf{f}}",119840:"\\ensuremath{\\mathbf{g}}",119841:"\\ensuremath{\\mathbf{h}}",119842:"\\ensuremath{\\mathbf{i}}",119843:"\\ensuremath{\\mathbf{j}}",119844:"\\ensuremath{\\mathbf{k}}",119845:"\\ensuremath{\\mathbf{l}}",119846:"\\ensuremath{\\mathbf{m}}",119847:"\\ensuremath{\\mathbf{n}}",119848:"\\ensuremath{\\mathbf{o}}",119849:"\\ensuremath{\\mathbf{p}}",119850:"\\ensuremath{\\mathbf{q}}",119851:"\\ensuremath{\\mathbf{r}}",119852:"\\ensuremath{\\mathbf{s}}",119853:"\\ensuremath{\\mathbf{t}}",119854:"\\ensuremath{\\mathbf{u}}",119855:"\\ensuremath{\\mathbf{v}}",119856:"\\ensuremath{\\mathbf{w}}",119857:"\\ensuremath{\\mathbf{x}}",119858:"\\ensuremath{\\mathbf{y}}",119859:"\\ensuremath{\\mathbf{z}}",119860:"\\ensuremath{\\mathit{A}}",119861:"\\ensuremath{\\mathit{B}}",119862:"\\ensuremath{\\mathit{C}}",119863:"\\ensuremath{\\mathit{D}}",119864:"\\ensuremath{\\mathit{E}}",119865:"\\ensuremath{\\mathit{F}}",119866:"\\ensuremath{\\mathit{G}}",119867:"\\ensuremath{\\mathit{H}}",119868:"\\ensuremath{\\mathit{I}}",119869:"\\ensuremath{\\mathit{J}}",119870:"\\ensuremath{\\mathit{K}}",119871:"\\ensuremath{\\mathit{L}}",119872:"\\ensuremath{\\mathit{M}}",119873:"\\ensuremath{\\mathit{N}}",119874:"\\ensuremath{\\mathit{O}}",119875:"\\ensuremath{\\mathit{P}}",119876:"\\ensuremath{\\mathit{Q}}",119877:"\\ensuremath{\\mathit{R}}",119878:"\\ensuremath{\\mathit{S}}",119879:"\\ensuremath{\\mathit{T}}",119880:"\\ensuremath{\\mathit{U}}",119881:"\\ensuremath{\\mathit{V}}",119882:"\\ensuremath{\\mathit{W}}",119883:"\\ensuremath{\\mathit{X}}",119884:"\\ensuremath{\\mathit{Y}}",119885:"\\ensuremath{\\mathit{Z}}",119886:"\\ensuremath{\\mathit{a}}",119887:"\\ensuremath{\\mathit{b}}",119888:"\\ensuremath{\\mathit{c}}",119889:"\\ensuremath{\\mathit{d}}",119890:"\\ensuremath{\\mathit{e}}",119891:"\\ensuremath{\\mathit{f}}",119892:"\\ensuremath{\\mathit{g}}",119893:"\\ensuremath{\\mathit{h}}",119894:"\\ensuremath{\\mathit{i}}",119895:"\\ensuremath{\\mathit{j}}",119896:"\\ensuremath{\\mathit{k}}",119897:"\\ensuremath{\\mathit{l}}",119898:"\\ensuremath{\\mathit{m}}",119899:"\\ensuremath{\\mathit{n}}",119900:"\\ensuremath{\\mathit{o}}",119901:"\\ensuremath{\\mathit{p}}",119902:"\\ensuremath{\\mathit{q}}",119903:"\\ensuremath{\\mathit{r}}",119904:"\\ensuremath{\\mathit{s}}",119905:"\\ensuremath{\\mathit{t}}",119906:"\\ensuremath{\\mathit{u}}",119907:"\\ensuremath{\\mathit{v}}",119908:"\\ensuremath{\\mathit{w}}",119909:"\\ensuremath{\\mathit{x}}",119910:"\\ensuremath{\\mathit{y}}",119911:"\\ensuremath{\\mathit{z}}",119912:"\\ensuremath{\\boldsymbol{\\mathit{A}}}",119913:"\\ensuremath{\\boldsymbol{\\mathit{B}}}",119914:"\\ensuremath{\\boldsymbol{\\mathit{C}}}",119915:"\\ensuremath{\\boldsymbol{\\mathit{D}}}",119916:"\\ensuremath{\\boldsymbol{\\mathit{E}}}",119917:"\\ensuremath{\\boldsymbol{\\mathit{F}}}",119918:"\\ensuremath{\\boldsymbol{\\mathit{G}}}",119919:"\\ensuremath{\\boldsymbol{\\mathit{H}}}",119920:"\\ensuremath{\\boldsymbol{\\mathit{I}}}",119921:"\\ensuremath{\\boldsymbol{\\mathit{J}}}",119922:"\\ensuremath{\\boldsymbol{\\mathit{K}}}",119923:"\\ensuremath{\\boldsymbol{\\mathit{L}}}",119924:"\\ensuremath{\\boldsymbol{\\mathit{M}}}",119925:"\\ensuremath{\\boldsymbol{\\mathit{N}}}",119926:"\\ensuremath{\\boldsymbol{\\mathit{O}}}",119927:"\\ensuremath{\\boldsymbol{\\mathit{P}}}",119928:"\\ensuremath{\\boldsymbol{\\mathit{Q}}}",119929:"\\ensuremath{\\boldsymbol{\\mathit{R}}}",119930:"\\ensuremath{\\boldsymbol{\\mathit{S}}}",119931:"\\ensuremath{\\boldsymbol{\\mathit{T}}}",119932:"\\ensuremath{\\boldsymbol{\\mathit{U}}}",119933:"\\ensuremath{\\boldsymbol{\\mathit{V}}}",119934:"\\ensuremath{\\boldsymbol{\\mathit{W}}}",119935:"\\ensuremath{\\boldsymbol{\\mathit{X}}}",119936:"\\ensuremath{\\boldsymbol{\\mathit{Y}}}",119937:"\\ensuremath{\\boldsymbol{\\mathit{Z}}}",119938:"\\ensuremath{\\boldsymbol{\\mathit{a}}}",119939:"\\ensuremath{\\boldsymbol{\\mathit{b}}}",119940:"\\ensuremath{\\boldsymbol{\\mathit{c}}}",119941:"\\ensuremath{\\boldsymbol{\\mathit{d}}}",119942:"\\ensuremath{\\boldsymbol{\\mathit{e}}}",119943:"\\ensuremath{\\boldsymbol{\\mathit{f}}}",119944:"\\ensuremath{\\boldsymbol{\\mathit{g}}}",119945:"\\ensuremath{\\boldsymbol{\\mathit{h}}}",119946:"\\ensuremath{\\boldsymbol{\\mathit{i}}}",119947:"\\ensuremath{\\boldsymbol{\\mathit{j}}}",119948:"\\ensuremath{\\boldsymbol{\\mathit{k}}}",119949:"\\ensuremath{\\boldsymbol{\\mathit{l}}}",119950:"\\ensuremath{\\boldsymbol{\\mathit{m}}}",119951:"\\ensuremath{\\boldsymbol{\\mathit{n}}}",119952:"\\ensuremath{\\boldsymbol{\\mathit{o}}}",119953:"\\ensuremath{\\boldsymbol{\\mathit{p}}}",119954:"\\ensuremath{\\boldsymbol{\\mathit{q}}}",119955:"\\ensuremath{\\boldsymbol{\\mathit{r}}}",119956:"\\ensuremath{\\boldsymbol{\\mathit{s}}}",119957:"\\ensuremath{\\boldsymbol{\\mathit{t}}}",119958:"\\ensuremath{\\boldsymbol{\\mathit{u}}}",119959:"\\ensuremath{\\boldsymbol{\\mathit{v}}}",119960:"\\ensuremath{\\boldsymbol{\\mathit{w}}}",119961:"\\ensuremath{\\boldsymbol{\\mathit{x}}}",119962:"\\ensuremath{\\boldsymbol{\\mathit{y}}}",119963:"\\ensuremath{\\boldsymbol{\\mathit{z}}}",119964:"\\ensuremath{\\mathscr{A}}",119965:"\\ensuremath{\\mathscr{B}}",119966:"\\ensuremath{\\mathscr{C}}",119967:"\\ensuremath{\\mathscr{D}}",119968:"\\ensuremath{\\mathscr{E}}",119969:"\\ensuremath{\\mathscr{F}}",119970:"\\ensuremath{\\mathscr{G}}",119971:"\\ensuremath{\\mathscr{H}}",119972:"\\ensuremath{\\mathscr{I}}",119973:"\\ensuremath{\\mathscr{J}}",119974:"\\ensuremath{\\mathscr{K}}",119975:"\\ensuremath{\\mathscr{L}}",119976:"\\ensuremath{\\mathscr{M}}",119977:"\\ensuremath{\\mathscr{N}}",119978:"\\ensuremath{\\mathscr{O}}",119979:"\\ensuremath{\\mathscr{P}}",119980:"\\ensuremath{\\mathscr{Q}}",119981:"\\ensuremath{\\mathscr{R}}",119982:"\\ensuremath{\\mathscr{S}}",119983:"\\ensuremath{\\mathscr{T}}",119984:"\\ensuremath{\\mathscr{U}}",119985:"\\ensuremath{\\mathscr{V}}",119986:"\\ensuremath{\\mathscr{W}}",119987:"\\ensuremath{\\mathscr{X}}",119988:"\\ensuremath{\\mathscr{Y}}",119989:"\\ensuremath{\\mathscr{Z}}",119990:"\\ensuremath{\\mathscr{a}}",119991:"\\ensuremath{\\mathscr{b}}",119992:"\\ensuremath{\\mathscr{c}}",119993:"\\ensuremath{\\mathscr{d}}",119995:"\\ensuremath{\\mathscr{f}}",119997:"\\ensuremath{\\mathscr{h}}",119998:"\\ensuremath{\\mathscr{i}}",119999:"\\ensuremath{\\mathscr{j}}",12e4:"\\ensuremath{\\mathscr{k}}",120001:"\\ensuremath{\\mathscr{l}}",120002:"\\ensuremath{\\mathscr{m}}",120003:"\\ensuremath{\\mathscr{n}}",120005:"\\ensuremath{\\mathscr{p}}",120006:"\\ensuremath{\\mathscr{q}}",120007:"\\ensuremath{\\mathscr{r}}",120008:"\\ensuremath{\\mathscr{s}}",120009:"\\ensuremath{\\mathscr{t}}",120010:"\\ensuremath{\\mathscr{u}}",120011:"\\ensuremath{\\mathscr{v}}",120012:"\\ensuremath{\\mathscr{w}}",120013:"\\ensuremath{\\mathscr{x}}",120014:"\\ensuremath{\\mathscr{y}}",120015:"\\ensuremath{\\mathscr{z}}",120068:"\\ensuremath{\\mathfrak{A}}",120069:"\\ensuremath{\\mathfrak{B}}",120070:"\\ensuremath{\\mathfrak{C}}",120071:"\\ensuremath{\\mathfrak{D}}",120072:"\\ensuremath{\\mathfrak{E}}",120073:"\\ensuremath{\\mathfrak{F}}",120074:"\\ensuremath{\\mathfrak{G}}",120075:"\\ensuremath{\\mathfrak{H}}",120076:"\\ensuremath{\\mathfrak{I}}",120077:"\\ensuremath{\\mathfrak{J}}",120078:"\\ensuremath{\\mathfrak{K}}",120079:"\\ensuremath{\\mathfrak{L}}",120080:"\\ensuremath{\\mathfrak{M}}",120081:"\\ensuremath{\\mathfrak{N}}",120082:"\\ensuremath{\\mathfrak{O}}",120083:"\\ensuremath{\\mathfrak{P}}",120084:"\\ensuremath{\\mathfrak{Q}}",120085:"\\ensuremath{\\mathfrak{R}}",120086:"\\ensuremath{\\mathfrak{S}}",120087:"\\ensuremath{\\mathfrak{T}}",120088:"\\ensuremath{\\mathfrak{U}}",120089:"\\ensuremath{\\mathfrak{V}}",120090:"\\ensuremath{\\mathfrak{W}}",120091:"\\ensuremath{\\mathfrak{X}}",120092:"\\ensuremath{\\mathfrak{Y}}",120093:"\\ensuremath{\\mathfrak{Z}}",120094:"\\ensuremath{\\mathfrak{a}}",120095:"\\ensuremath{\\mathfrak{b}}",120096:"\\ensuremath{\\mathfrak{c}}",120097:"\\ensuremath{\\mathfrak{d}}",120098:"\\ensuremath{\\mathfrak{e}}",120099:"\\ensuremath{\\mathfrak{f}}",120100:"\\ensuremath{\\mathfrak{g}}",120101:"\\ensuremath{\\mathfrak{h}}",120102:"\\ensuremath{\\mathfrak{i}}",120103:"\\ensuremath{\\mathfrak{j}}",120104:"\\ensuremath{\\mathfrak{k}}",120105:"\\ensuremath{\\mathfrak{l}}",120106:"\\ensuremath{\\mathfrak{m}}",120107:"\\ensuremath{\\mathfrak{n}}",120108:"\\ensuremath{\\mathfrak{o}}",120109:"\\ensuremath{\\mathfrak{p}}",120110:"\\ensuremath{\\mathfrak{q}}",120111:"\\ensuremath{\\mathfrak{r}}",120112:"\\ensuremath{\\mathfrak{s}}",120113:"\\ensuremath{\\mathfrak{t}}",120114:"\\ensuremath{\\mathfrak{u}}",120115:"\\ensuremath{\\mathfrak{v}}",120116:"\\ensuremath{\\mathfrak{w}}",120117:"\\ensuremath{\\mathfrak{x}}",120118:"\\ensuremath{\\mathfrak{y}}",120119:"\\ensuremath{\\mathfrak{z}}",120120:"\\ensuremath{\\mathbb{A}}",120121:"\\ensuremath{\\mathbb{B}}",120122:"\\ensuremath{\\mathbb{C}}",120123:"\\ensuremath{\\mathbb{D}}",120124:"\\ensuremath{\\mathbb{E}}",120125:"\\ensuremath{\\mathbb{F}}",120126:"\\ensuremath{\\mathbb{G}}",120127:"\\ensuremath{\\mathbb{H}}",120128:"\\ensuremath{\\mathbb{I}}",120129:"\\ensuremath{\\mathbb{J}}",120130:"\\ensuremath{\\mathbb{K}}",120131:"\\ensuremath{\\mathbb{L}}",120132:"\\ensuremath{\\mathbb{M}}",120133:"\\ensuremath{\\mathbb{N}}",120134:"\\ensuremath{\\mathbb{O}}",120135:"\\ensuremath{\\mathbb{P}}",120136:"\\ensuremath{\\mathbb{Q}}",120137:"\\ensuremath{\\mathbb{R}}",120138:"\\ensuremath{\\mathbb{S}}",120139:"\\ensuremath{\\mathbb{T}}",120140:"\\ensuremath{\\mathbb{U}}",120141:"\\ensuremath{\\mathbb{V}}",120142:"\\ensuremath{\\mathbb{W}}",120143:"\\ensuremath{\\mathbb{X}}",120144:"\\ensuremath{\\mathbb{Y}}",120145:"\\ensuremath{\\mathbb{Z}}",120146:"\\ensuremath{\\mathbb{a}}",120147:"\\ensuremath{\\mathbb{b}}",120148:"\\ensuremath{\\mathbb{c}}",120149:"\\ensuremath{\\mathbb{d}}",120150:"\\ensuremath{\\mathbb{e}}",120151:"\\ensuremath{\\mathbb{f}}",120152:"\\ensuremath{\\mathbb{g}}",120153:"\\ensuremath{\\mathbb{h}}",120154:"\\ensuremath{\\mathbb{i}}",120155:"\\ensuremath{\\mathbb{j}}",120156:"\\ensuremath{\\mathbb{k}}",120157:"\\ensuremath{\\mathbb{l}}",120158:"\\ensuremath{\\mathbb{m}}",120159:"\\ensuremath{\\mathbb{n}}",120160:"\\ensuremath{\\mathbb{o}}",120161:"\\ensuremath{\\mathbb{p}}",120162:"\\ensuremath{\\mathbb{q}}",120163:"\\ensuremath{\\mathbb{r}}",120164:"\\ensuremath{\\mathbb{s}}",120165:"\\ensuremath{\\mathbb{t}}",120166:"\\ensuremath{\\mathbb{u}}",120167:"\\ensuremath{\\mathbb{v}}",120168:"\\ensuremath{\\mathbb{w}}",120169:"\\ensuremath{\\mathbb{x}}",120170:"\\ensuremath{\\mathbb{y}}",120171:"\\ensuremath{\\mathbb{z}}",120224:"\\ensuremath{\\mathsf{A}}",120225:"\\ensuremath{\\mathsf{B}}",120226:"\\ensuremath{\\mathsf{C}}",120227:"\\ensuremath{\\mathsf{D}}",120228:"\\ensuremath{\\mathsf{E}}",120229:"\\ensuremath{\\mathsf{F}}",120230:"\\ensuremath{\\mathsf{G}}",120231:"\\ensuremath{\\mathsf{H}}",120232:"\\ensuremath{\\mathsf{I}}",120233:"\\ensuremath{\\mathsf{J}}",120234:"\\ensuremath{\\mathsf{K}}",120235:"\\ensuremath{\\mathsf{L}}",120236:"\\ensuremath{\\mathsf{M}}",120237:"\\ensuremath{\\mathsf{N}}",120238:"\\ensuremath{\\mathsf{O}}",120239:"\\ensuremath{\\mathsf{P}}",120240:"\\ensuremath{\\mathsf{Q}}",120241:"\\ensuremath{\\mathsf{R}}",120242:"\\ensuremath{\\mathsf{S}}",120243:"\\ensuremath{\\mathsf{T}}",120244:"\\ensuremath{\\mathsf{U}}",120245:"\\ensuremath{\\mathsf{V}}",120246:"\\ensuremath{\\mathsf{W}}",120247:"\\ensuremath{\\mathsf{X}}",120248:"\\ensuremath{\\mathsf{Y}}",120249:"\\ensuremath{\\mathsf{Z}}",120250:"\\ensuremath{\\mathsf{a}}",120251:"\\ensuremath{\\mathsf{b}}",120252:"\\ensuremath{\\mathsf{c}}",120253:"\\ensuremath{\\mathsf{d}}",120254:"\\ensuremath{\\mathsf{e}}",120255:"\\ensuremath{\\mathsf{f}}",120256:"\\ensuremath{\\mathsf{g}}",120257:"\\ensuremath{\\mathsf{h}}",120258:"\\ensuremath{\\mathsf{i}}",120259:"\\ensuremath{\\mathsf{j}}",120260:"\\ensuremath{\\mathsf{k}}",120261:"\\ensuremath{\\mathsf{l}}",120262:"\\ensuremath{\\mathsf{m}}",120263:"\\ensuremath{\\mathsf{n}}",120264:"\\ensuremath{\\mathsf{o}}",120265:"\\ensuremath{\\mathsf{p}}",120266:"\\ensuremath{\\mathsf{q}}",120267:"\\ensuremath{\\mathsf{r}}",120268:"\\ensuremath{\\mathsf{s}}",120269:"\\ensuremath{\\mathsf{t}}",120270:"\\ensuremath{\\mathsf{u}}",120271:"\\ensuremath{\\mathsf{v}}",120272:"\\ensuremath{\\mathsf{w}}",120273:"\\ensuremath{\\mathsf{x}}",120274:"\\ensuremath{\\mathsf{y}}",120275:"\\ensuremath{\\mathsf{z}}",120432:"\\ensuremath{\\mathtt{A}}",120433:"\\ensuremath{\\mathtt{B}}",120434:"\\ensuremath{\\mathtt{C}}",120435:"\\ensuremath{\\mathtt{D}}",120436:"\\ensuremath{\\mathtt{E}}",120437:"\\ensuremath{\\mathtt{F}}",120438:"\\ensuremath{\\mathtt{G}}",120439:"\\ensuremath{\\mathtt{H}}",120440:"\\ensuremath{\\mathtt{I}}",120441:"\\ensuremath{\\mathtt{J}}",120442:"\\ensuremath{\\mathtt{K}}",120443:"\\ensuremath{\\mathtt{L}}",120444:"\\ensuremath{\\mathtt{M}}",120445:"\\ensuremath{\\mathtt{N}}",120446:"\\ensuremath{\\mathtt{O}}",120447:"\\ensuremath{\\mathtt{P}}",120448:"\\ensuremath{\\mathtt{Q}}",120449:"\\ensuremath{\\mathtt{R}}",120450:"\\ensuremath{\\mathtt{S}}",120451:"\\ensuremath{\\mathtt{T}}",120452:"\\ensuremath{\\mathtt{U}}",120453:"\\ensuremath{\\mathtt{V}}",120454:"\\ensuremath{\\mathtt{W}}",120455:"\\ensuremath{\\mathtt{X}}",120456:"\\ensuremath{\\mathtt{Y}}",120457:"\\ensuremath{\\mathtt{Z}}",120458:"\\ensuremath{\\mathtt{a}}",120459:"\\ensuremath{\\mathtt{b}}",120460:"\\ensuremath{\\mathtt{c}}",120461:"\\ensuremath{\\mathtt{d}}",120462:"\\ensuremath{\\mathtt{e}}",120463:"\\ensuremath{\\mathtt{f}}",120464:"\\ensuremath{\\mathtt{g}}",120465:"\\ensuremath{\\mathtt{h}}",120466:"\\ensuremath{\\mathtt{i}}",120467:"\\ensuremath{\\mathtt{j}}",120468:"\\ensuremath{\\mathtt{k}}",120469:"\\ensuremath{\\mathtt{l}}",120470:"\\ensuremath{\\mathtt{m}}",120471:"\\ensuremath{\\mathtt{n}}",120472:"\\ensuremath{\\mathtt{o}}",120473:"\\ensuremath{\\mathtt{p}}",120474:"\\ensuremath{\\mathtt{q}}",120475:"\\ensuremath{\\mathtt{r}}",120476:"\\ensuremath{\\mathtt{s}}",120477:"\\ensuremath{\\mathtt{t}}",120478:"\\ensuremath{\\mathtt{u}}",120479:"\\ensuremath{\\mathtt{v}}",120480:"\\ensuremath{\\mathtt{w}}",120481:"\\ensuremath{\\mathtt{x}}",120482:"\\ensuremath{\\mathtt{y}}",120483:"\\ensuremath{\\mathtt{z}}",120782:"\\ensuremath{\\mathbf{0}}",120783:"\\ensuremath{\\mathbf{1}}",120784:"\\ensuremath{\\mathbf{2}}",120785:"\\ensuremath{\\mathbf{3}}",120786:"\\ensuremath{\\mathbf{4}}",120787:"\\ensuremath{\\mathbf{5}}",120788:"\\ensuremath{\\mathbf{6}}",120789:"\\ensuremath{\\mathbf{7}}",120790:"\\ensuremath{\\mathbf{8}}",120791:"\\ensuremath{\\mathbf{9}}",120792:"\\ensuremath{\\mathbb{0}}",120793:"\\ensuremath{\\mathbb{1}}",120794:"\\ensuremath{\\mathbb{2}}",120795:"\\ensuremath{\\mathbb{3}}",120796:"\\ensuremath{\\mathbb{4}}",120797:"\\ensuremath{\\mathbb{5}}",120798:"\\ensuremath{\\mathbb{6}}",120799:"\\ensuremath{\\mathbb{7}}",120800:"\\ensuremath{\\mathbb{8}}",120801:"\\ensuremath{\\mathbb{9}}",120802:"\\ensuremath{\\mathsf{0}}",120803:"\\ensuremath{\\mathsf{1}}",120804:"\\ensuremath{\\mathsf{2}}",120805:"\\ensuremath{\\mathsf{3}}",120806:"\\ensuremath{\\mathsf{4}}",120807:"\\ensuremath{\\mathsf{5}}",120808:"\\ensuremath{\\mathsf{6}}",120809:"\\ensuremath{\\mathsf{7}}",120810:"\\ensuremath{\\mathsf{8}}",120811:"\\ensuremath{\\mathsf{9}}",120822:"\\ensuremath{\\mathtt{0}}",120823:"\\ensuremath{\\mathtt{1}}",120824:"\\ensuremath{\\mathtt{2}}",120825:"\\ensuremath{\\mathtt{3}}",120826:"\\ensuremath{\\mathtt{4}}",120827:"\\ensuremath{\\mathtt{5}}",120828:"\\ensuremath{\\mathtt{6}}",120829:"\\ensuremath{\\mathtt{7}}",120830:"\\ensuremath{\\mathtt{8}}",120831:"\\ensuremath{\\mathtt{9}}"},o=["{","}","_","^","#","&","$","%","~"],s={"̀":"\\grave{{{0}}}","́":"\\acute{{{0}}}","̂":"\\hat{{{0}}}","̃":"\\tilde{{{0}}}","̄":"\\bar{{{0}}}","̅":"\\overbar{{{0}}}","̆":"\\breve{{{0}}}","̇":"\\dot{{{0}}}","̈":"\\ddot{{{0}}}","̉":"\\ovhook{{{0}}}","̊":"\\ocirc{{{0}}}}","̌":"\\check{{{0}}}}","̐":"\\candra{{{0}}}","̒":"\\oturnedcomma{{{0}}}","̕":"\\ocommatopright{{{0}}}","̚":"\\droang{{{0}}}","̸":"\\not{{{0}}}","⃝":"\\enclosecircle{{{0}}}","⃞":"\\enclosesquare{{{0}}}","⃟":"\\enclosediamond{{{0}}}","⃤":"\\enclosetriangle{{{0}}}","⃐":"\\leftharpoonup{{{0}}}","⃑":"\\rightharpoonup{{{0}}}","⃒":"\\vertoverlay{{{0}}}","⃖":"\\LVec{{{0}}}","⃗":"\\vec{{{0}}}","⃛":"\\dddot{{{0}}}","⃜":"\\ddddot{{{0}}}","⃡":"\\overleftrightarrow{{{0}}}","⃧":"\\annuity{{{0}}}","⃩":"\\widebridgeabove{{{0}}}","⃰":"\\asteraccent{{{0}}}","̰":"\\wideutilde{{{0}}}","̱":"\\underbar{{{0}}}","⃨":"\\threeunderdot{{{0}}}","⃬":"\\underrightharpoondown{{{0}}}","⃭":"\\underleftharpoondown{{{0}}}","⃮":"\\underleftarrow{{{0}}}","⃯":"\\underrightarrow{{{0}}}","⎴":"\\overbracket{{{0}}}","⏜":"\\overparen{{{0}}}","⏞":"\\overbrace{{{0}}}","⎵":"\\underbracket{{{0}}}","⏝":"\\underparen{{{0}}}","⏟":"\\underbrace{{{0}}}"},l={"⅀":"\\Bbbsum","∏":"\\prod","∐":"\\coprod","∑":"\\sum","∫":"\\int","∬":"\\iint","∭":"\\iiint","⨌":"\\iiiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint","⨍":"\\fint","⨖":"\\sqint","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨅":"\\bigsqcap","⨆":"\\bigsqcup","⨉":"\\varprod"},c={"→":"\\rightarrow ",𝛼:"\\alpha ",𝛽:"\\beta ",𝛾:"\\gamma ",𝛿:"\\delta ",𝜀:"\\epsilon ",𝜁:"\\zeta ",𝜂:"\\eta ",𝜃:"\\theta ",𝜄:"\\iota ",𝜅:"\\kappa ",𝜆:"\\lambda ",𝜇:"\\mu ",𝜈:"\\nu ",𝜉:"\\xi ",𝜊:"\\omicron ",𝜋:"\\pi ",𝜌:"\\rho ",𝜍:"\\varsigma ",𝜎:"\\sigma ",𝜏:"\\tau ",𝜐:"\\upsilon ",𝜑:"\\phi ",𝜒:"\\chi ",𝜓:"\\psi ",𝜔:"\\omega ","𝜕":"\\partial ",𝜖:"\\varepsilon ",𝜗:"\\vartheta ",𝜘:"\\varkappa ",𝜙:"\\varphi ",𝜚:"\\varrho ",𝜛:"\\varpi ","←":"\\leftarrow ","↑":"\\uparrow ","↓":"\\downarrow ","↔":"\\leftrightarrow ","↕":"\\updownarrow ","↖":"\\nwarrow ","↗":"\\nearrow ","↘":"\\searrow ","↙":"\\swarrow ","⋮":"\\vdots ","⋯":"\\cdots ","⋰":"\\adots ","⋱":"\\ddots ","⇐":"\\Leftarrow ","⇒":"\\Rightarrow ","⇔":"\\Leftrightarrow ","⇑":"\\Uparrow ","⇓":"\\Downarrow ","⇕":"\\Updownarrow ","↦":"\\mapsto ","⟨":"\\langle ","⟩":"\\rangle ","⌈":"\\lceil ","⌉":"\\rceil ","⌊":"\\lfloor ","⌋":"\\rfloor ","‖":"\\Vert ","∥":"\\parallel ","≠":"\\ne ","≤":"\\leq ","≥":"\\geq ","≦":"\\leqq ","≧":"\\geqq ","≨":"\\lneqq ","≩":"\\gneqq ","≪":"\\ll ","≫":"\\gg ","∈":"\\in ","∉":"\\notin ","∋":"\\ni ","∌":"\\nni ","∞":"\\infty ","±":"\\pm ","∓":"\\mp ","·":"\\cdot ","⋅":"\\cdot ","×":"\\times ","÷":"\\div ","∗":"\\ast ","∘":"\\circ ","∙":"\\bullet ","−":"-","<":"<",">":">","=":"=","≈":"\\approx ","≡":"\\equiv ","≅":"\\cong ","∼":"\\sim ","≃":"\\simeq ","≐":"\\doteq ","∝":"\\propto ","∴":"\\therefore ","∵":"\\because ","∀":"\\forall ","∃":"\\exists ","∄":"\\nexists ","∅":"\\emptyset ","∇":"\\nabla ","∧":"\\wedge ","∨":"\\vee ","¬":"\\neg ","∩":"\\cap ","∪":"\\cup ","⊂":"\\subset ","⊃":"\\supset ","⊆":"\\subseteq ","⊇":"\\supseteq ","⊕":"\\oplus ","⊗":"\\otimes ","⊥":"\\perp ","°":"\\degree ","′":"\\prime ","″":"\\prime\\prime ","…":"\\ldots ",α:"\\alpha ",β:"\\beta ",γ:"\\gamma ",δ:"\\delta ",ε:"\\epsilon ",ζ:"\\zeta ",η:"\\eta ",θ:"\\theta ",ι:"\\iota ",κ:"\\kappa ",λ:"\\lambda ",μ:"\\mu ",ν:"\\nu ",ξ:"\\xi ",ο:"\\omicron ",π:"\\pi ",ρ:"\\rho ",ς:"\\varsigma ",σ:"\\sigma ",τ:"\\tau ",υ:"\\upsilon ",φ:"\\phi ",χ:"\\chi ",ψ:"\\psi ",ω:"\\omega ","∂":"\\partial ",ϵ:"\\epsilon ",ϑ:"\\vartheta ",ϰ:"\\varkappa ",ϕ:"\\phi ",ϱ:"\\varrho ",ϖ:"\\varpi ",𝐴:"A",𝐵:"B",𝐶:"C",𝐷:"D",𝐸:"E",𝐹:"F",𝐺:"G",𝐻:"H",𝐼:"I",𝐽:"J",𝐾:"K",𝐿:"L",𝑀:"M",𝑁:"N",𝑂:"O",𝑃:"P",𝑄:"Q",𝑅:"R",𝑆:"S",𝑇:"T",𝑈:"U",𝑉:"V",𝑊:"W",𝑋:"X",𝑌:"Y",𝑍:"Z",𝑎:"a",𝑏:"b",𝑐:"c",𝑑:"d",𝑒:"e",𝑓:"f",𝑔:"g",𝑖:"i",𝑗:"j",𝑘:"k",𝑙:"l",𝑚:"m",𝑛:"n",𝑜:"o",𝑝:"p",𝑞:"q",𝑟:"r",𝑠:"s",𝑡:"t",𝑢:"u",𝑣:"v",𝑤:"w",𝑥:"x",𝑦:"y",𝑧:"z",𝒉:"h",𝛢:"A",𝛣:"B",𝛤:"\\Gamma ",𝛥:"\\Delta ",𝛦:"E",𝛧:"Z",𝛨:"H",𝛩:"\\Theta ",𝛪:"I",𝛫:"K",𝛬:"\\Lambda ",𝛭:"M",𝛮:"N",𝛯:"\\Xi ",𝛰:"O",𝛱:"\\Pi ",𝛲:"P",𝛴:"\\Sigma ",𝛵:"T",𝛶:"\\Upsilon ",𝛷:"\\Phi ",𝛸:"X",𝛹:"\\Psi ",𝛺:"\\Omega "},u={sin:"\\sin({fe})",cos:"\\cos({fe})",tan:"\\tan({fe})",cot:"\\cot({fe})",sec:"\\sec({fe})",csc:"\\csc({fe})",arcsin:"\\arcsin({fe})",arccos:"\\arccos({fe})",arctan:"\\arctan({fe})",arccot:"\\arccot({fe})",arcsec:"\\arcsec({fe})",arccsc:"\\arccsc({fe})",sinh:"\\sinh({fe})",cosh:"\\cosh({fe})",tanh:"\\tanh({fe})",coth:"\\coth({fe})",sech:"\\sech({fe})",csch:"\\csch({fe})",arcsinh:"\\arcsinh({fe})",arccosh:"\\arccosh({fe})",arctanh:"\\arctanh({fe})",arccoth:"\\arccoth({fe})",arcsech:"\\arcsech({fe})",arccsch:"\\arccsch({fe})",log:"\\log{{fe}}",ln:"\\ln{{fe}}",lg:"\\lg{{fe}}",exp:"\\exp({fe})",arg:"\\arg({fe})",deg:"\\deg({fe})",det:"\\det({fe})",dim:"\\dim({fe})",gcd:"\\gcd({fe})",hom:"\\hom({fe})",ker:"\\ker({fe})",mod:"\\bmod({fe})",Pr:"\\Pr({fe})"},h={top:"\\overline{{{0}}}",bot:"\\underline{{{0}}}"},p={bar:"\\frac{{{num}}}{{{den}}}",skw:"^{{{num}}}/_{{{den}}}",noBar:"\\genfrac{{}}{{}}{{0pt}}{{}}{{{num}}}{{{den}}}",lin:"{{{num}}}/{{{den}}}"},d="\\frac{{{num}}}{{{den}}}",f={left:"\\begin{{array}}{{l}}{text}\\end{{array}}",right:"\\begin{{array}}{{r}}{text}\\end{{array}}",center:"\\begin{{matrix}}{text}\\end{{matrix}}"},m={lim:"\\lim_{{{lim}}}",max:"\\max_{{{lim}}}",min:"\\min_{{{lim}}}",sup:"\\sup_{{{lim}}}",inf:"\\inf_{{{lim}}}",limsup:"\\limsup_{{{lim}}}",liminf:"\\liminf_{{{lim}}}",injlim:"\\injlim_{{{lim}}}",projlim:"\\projlim_{{{lim}}}"},g=["\\rightarrow","\\to"];function A(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function y(e){let t=e.indexOf(":");return -1===t?e:e.slice(t+1)}function v(e){return"string"!=typeof e}function R(e){let t="";for(let r of e.children)t+="string"==typeof r?r:R(r);return t}function b(e,t=[],r={}){let n="",i=0,a=e.length;for(;i<a;){let a=e[i];if("{"===a){if("{"===e[i+1]){n+="{",i+=2;continue}let o=e.indexOf("}",i+1);if(-1===o){n+=a,i+=1;continue}let s=e.slice(i+1,o);/^\d+$/.test(s)?n+=t[Number(s)]??"":n+=r[s]??"",i=o+1;continue}if("}"===a&&"}"===e[i+1]){n+="}",i+=2;continue}n+=a,i+=1}return n}function x(e){let t=e.split("\\\\").join("\\"),r="",n=null;for(let e of t)o.includes(e)&&"\\"!==n?r+="\\"+e:r+=e,n=e;return r}function M(e,t,r){return void 0!==e?r&&void 0!==r[e]?r[e]:e:t}function S(e,t=!1){if(void 0===e)return t;let r=e.toLowerCase();return"on"===r||"1"===r||"true"===r}let w=new Set(["chr","pos","begChr","endChr","sepChr","type","show","smallFrac","limLoc","intLim","naryLim","mcJc","degHide"]);class O{get(e){return this.attrs[e]}constructor(e,t){for(let t of(A(this,"text",""),A(this,"attrs",{}),e.children)){if(!v(t))continue;let e=y(t.tagName);"brk"===e?(this.attrs.brk="\\\\",this.text+="\\\\"):w.has(e)&&(this.attrs[e]=L(t,"val"))}}}function L(e,t){for(let r of Object.keys(e.attributes))if(y(r)===t){let t=e.attributes[r];return null==t?void 0:t}}let N=new Set(["box","sSub","sSup","sSubSup","num","den","deg","e","oMath","oMathPara"]);class _{convert(e){let t=this.oMath(e);for(let e of this.unsupported)this.options.onUnsupported?.(e);return t}noteUnsupported(e){this.unsupported.add(e)}oMath(e){return this.processChildren(e)}processChildrenList(e,t){let r=[];for(let n of e.children){if(!v(n))continue;let e=y(n.tagName);if(t&&!t.has(e))continue;let i=this.dispatch(e,n);(null!=i||null!=(i=this.processUnknown(e,n)))&&r.push({stag:e,value:i,node:n})}return r}processChildrenDict(e,t){let r={};for(let{stag:n,value:i}of this.processChildrenList(e,t))r[n]=i;return r}processChildren(e,t){let r="";for(let{value:n}of this.processChildrenList(e,t))r+=n instanceof O?n.text:String(n);return r}dispatch(e,t){switch(e){case"acc":return this.doAcc(t);case"r":return this.doR(t);case"bar":return this.doBar(t);case"sub":return this.doSub(t);case"sup":return this.doSup(t);case"f":return this.doF(t);case"func":return this.doFunc(t);case"fName":return this.doFName(t);case"groupChr":return this.doGroupChr(t);case"d":return this.doD(t);case"rad":return this.doRad(t);case"eqArr":return this.doEqArr(t);case"limLow":return this.doLimLow(t);case"limUpp":return this.doLimUpp(t);case"lim":return this.doLim(t);case"m":return this.doM(t);case"mr":return this.doMr(t);case"nary":return this.doNary(t);case"borderBox":return this.doBorderBox(t);case"phant":return this.doPhant(t);case"sPre":return this.doSPre(t);default:return null}}processUnknown(e,t){return N.has(e)?this.processChildren(t):e.endsWith("Pr")?new O(t,this):(this.noteUnsupported(e),R(t))}doAcc(e){let t=this.processChildrenDict(e),r=t.accPr;return b(M(r?.get("chr"),"\\hat{{{0}}}",s)??"",[t.e??""])}doBar(e){let t=this.processChildrenDict(e),r=t.barPr,n=M(r?.get("pos"),"\\overline{{{0}}}",h)??"",i=t.e??"";return(r?.text??"")+b(n,[i])}doD(e){let t=this.processChildrenDict(e).dPr,r=M(t?.get("begChr"),"(",c),n=M(t?.get("endChr"),")",c),i=M(t?.get("sepChr"),"|",c),a=this.processChildrenList(e,new Set(["e"])).map(e=>String(e.value)),o=i?x(i):"",s=a.join(o);return(t?.text??"")+b("\\left{left}{text}\\right{right}",[],{left:r?x(r):".",text:s,right:n?x(n):"."})}doSub(e){return b(T,[this.processChildren(e)])}doSup(e){return b(P,[this.processChildren(e)])}doF(e){let t=this.processChildrenDict(e),r=t.fPr,n=M(r?.get("type"),d,p)??"";n===d&&S(r?.get("smallFrac"))&&(n="\\tfrac{{{num}}}{{{den}}}");let i=t.num??"",a=t.den??"";return(r?.text??"")+b(n,[],{num:i,den:a})}doFunc(e){let t=this.processChildrenDict(e),r=t.fName??"",n=t.e??"";return r.split("{fe}").join(n)}doFName(e){let t=[];for(let{stag:r,value:n}of this.processChildrenList(e))if("r"===r){let e=String(n).trim();void 0!==u[e]?t.push(u[e]):(this.noteUnsupported("fName:"+e),t.push(String(n)))}else t.push(String(n));let r=t.join("");return r.includes("{fe}")?r:r+"{fe}"}doGroupChr(e){let t=this.processChildrenDict(e),r=t.groupChrPr,n=M(r?.get("chr"),void 0,s)??"",i=t.e??"";return(r?.text??"")+b(n,[i])}doRad(e){let t=this.processChildrenDict(e),r=t.e??"",n=t.deg;return n?b("\\sqrt[{deg}]{{{text}}}",[],{deg:n,text:r}):b("\\sqrt{{{text}}}",[],{text:r})}doEqArr(e){return b("\\begin{{array}}{{c}}{text}\\end{{array}}",[],{text:this.processChildrenList(e,new Set(["e"])).map(e=>String(e.value)).join("\\\\")})}doLimLow(e){let t=this.processChildrenDict(e,new Set(["e","lim"])),r=t.e??"",n=t.lim??"",i=m[r];return i?b(i,[],{lim:n}):(this.noteUnsupported("limLow:"+r),r+n)}doLimUpp(e){let t=this.processChildrenDict(e,new Set(["e","lim"]));return b("\\overset{{{lim}}}{{{text}}}",[],{lim:t.lim??"",text:t.e??""})}doLim(e){return this.processChildren(e).split(g["0"]).join(g["1"])}doM(e){let t=[],r="\\begin{{matrix}}{text}\\end{{matrix}}";for(let{stag:n,value:i,node:a}of this.processChildrenList(e)){if("mPr"===n){let e=function e(t,r,n){for(let i of t.children){if(!v(i))continue;if(y(i.tagName)===r){let e=L(i,n);if(void 0!==e)return e}let t=e(i,r,n);if(void 0!==t)return t}}(a,"mcJc","val");e&&f[e]&&(r=f[e]);continue}"mr"===n&&t.push(String(i))}return b(r,[],{text:t.join("\\\\")})}doMr(e){return this.processChildrenList(e,new Set(["e"])).map(e=>String(e.value)).join("&")}doNary(e){let t=[],r="",n="";for(let{stag:i,value:a}of this.processChildrenList(e))"naryPr"===i?(r=M(a.get("chr"),void 0,l)??"",n=a.get("naryLim")??a.get("limLoc")??a.get("intLim")??""):t.push(String(a));return r+("undOvr"===n?"\\limits":"")+t.join("")}doBorderBox(e){return b("\\boxed{{{0}}}",[this.processChildrenDict(e).e??""])}doPhant(e){let t=this.processChildrenDict(e),r=t.phantPr,n=t.e??"";return S(r?.get("show"),!0)?n:b("\\phantom{{{0}}}",[n])}doSPre(e){let t=this.processChildrenDict(e),r=t.e??"",n=t.sub??"",i=t.sup??"";return`{}${n}${i}{${r}}`}processUnicode(e){let t="";for(let r of e.normalize("NFC")){let e=c[r];void 0!==e?t+=e:o.includes(r)?t+=r:t+=function(e){let t=String(e).normalize("NFC"),r="";for(let e of t){let t=a[e.codePointAt(0)];void 0!==t?r+="{"+t+"}":r+=e}return r}(r)}return t}doR(e){let t=[],r=[];for(let n of e.children){if(!v(n)||"t"!==y(n.tagName))continue;let e=R(n);t.push(this.processUnicode(e)),r.push(e)}let n=x(t.join("")),i=r.join("");return!i.includes("{")&&n.includes("\\{")&&(n=n.split("\\{").join("{")),!i.includes("}")&&n.includes("\\}")&&(n=n.split("\\}").join("}")),n}constructor(e={}){A(this,"options",void 0),A(this,"unsupported",void 0),this.options=e,this.unsupported=new Set}}let T="_{{{0}}}",P="^{{{0}}}";function C(e){return e.replace(/&(#x[0-9a-fA-F]+|#\d+|amp|lt|gt|quot|apos);/g,function(e,t){if("amp"===t)return"&";if("lt"===t)return"<";if("gt"===t)return">";if("quot"===t)return'"';if("apos"===t)return"'";if("#"===t[0]){var r="x"===t[1]||"X"===t[1],n=parseInt(t.slice(r?2:1),r?16:10);if(!Number.isNaN(n)&&n>=0&&n<=1114111)try{return String.fromCodePoint(n)}catch(e){}}return e})}var I=r(49705).hp;let k=0,F=new Set(["m:oMath","m:oMathPara"]);async function X(e,t){try{let r=e.file(t);if(!r)return null;let n=await r.async("string");return function e(t,r={}){let n={};if(!t.length)return n;if(1===t.length&&"string"==typeof t[0])return Object.keys(r).length?{attrs:{order:k++,...r},value:t[0]}:t[0];for(let r of t){if("string"==typeof r&&""===r.trim())continue;if("object"!=typeof r)return;if("?xml"===r.tagName)continue;n[r.tagName]||(n[r.tagName]=[]);let t=e(r.children||[],r.attributes);"object"==typeof t&&(t.attrs?t.attrs.order=k++:t.attrs={order:k++},F.has(r.tagName)&&Object.defineProperty(t,"__rawNode",{value:r,enumerable:!1})),Object.keys(r.attributes||{}).length&&(t.attrs={...t.attrs,...r.attributes}),n[r.tagName].push(t)}for(let e in n)1===n[e].length&&(n[e]=n[e][0]);return n}(function e(t,r){var n=(r=r||{}).pos||0,i=!!r.keepComments,a=!!r.keepWhitespace,o=!!r.decodeEntities,s=!!r.skipXmlDeclaration;function l(e){return"string"==typeof e&&"?xml"===e.toLowerCase()}function c(e){for(var r=[];t[n];)if(60==t.charCodeAt(n)){if(47===t.charCodeAt(n+1)){var c=n+2;if(n=t.indexOf(">",n),-1==t.substring(c,n).indexOf(e)){var u=t.substring(0,n).split("\n");throw Error("Unexpected close tag\nLine: "+(u.length-1)+"\nColumn: "+(u[u.length-1].length+1)+"\nChar: "+t[n])}return n+1&&(n+=1),r}if(33===t.charCodeAt(n+1)){if(45==t.charCodeAt(n+2)){let e=n;for(;-1!==n&&(62!==t.charCodeAt(n)||45!=t.charCodeAt(n-1)||45!=t.charCodeAt(n-2)||-1==n);)n=t.indexOf(">",n+1);-1===n&&(n=t.length),i&&r.push(t.substring(e,n+1))}else{if(91===t.charCodeAt(n+2)&&91===t.charCodeAt(n+8)&&"cdata"===t.substr(n+3,5).toLowerCase()){var h=t.indexOf("]]>",n);-1==h?(r.push(t.substr(n+9)),n=t.length):(r.push(t.substring(n+9,h)),n=h+3);continue}{let e=n+1;n+=2;for(var p=!1;(62!==t.charCodeAt(n)||!0===p)&&t[n];)91===t.charCodeAt(n)?p=!0:!0===p&&93===t.charCodeAt(n)&&(p=!1),n++;r.push(t.substring(e,n))}}n++;continue}var d=f();if(s&&l(d.tagName))continue;r.push(d)}else{var m=function(){var e=n;-2==(n=t.indexOf("<",n)-1)&&(n=t.length);var r=t.slice(e,n+1);return o?C(r):r}();if(a)m.length>0&&r.push(m);else{var g=m.trim();g.length>0&&r.push(g)}n++}return r}var u="\r\n >/= ";function h(){for(var e=n;-1===u.indexOf(t[n])&&t[n];)n++;return t.slice(e,n)}var p,d=r.selfClosingTags||r.noChildNodes||["img","br","input","meta","link","hr"];function f(){n++;let e=h(),r="?"===e[0],i=n,a={},s=[];for(;t[n]&&62!==t.charCodeAt(n)&&(!r||63!==t.charCodeAt(n)||62!==t.charCodeAt(n+1));){var l=t.charCodeAt(n);if(l>64&&l<91||l>96&&l<123){for(var p=h(),f=null;32===t.charCodeAt(n)||9===t.charCodeAt(n)||10===t.charCodeAt(n)||13===t.charCodeAt(n);)n++;if(61===t.charCodeAt(n)){for(n++;32===t.charCodeAt(n)||9===t.charCodeAt(n)||10===t.charCodeAt(n)||13===t.charCodeAt(n);)n++;var m=t.charCodeAt(n);if(39===m||34===m){if(f=function(){var e=t[n],r=n+1;n=t.indexOf(e,r);var i=t.slice(r,n);return o?C(i):i}(),-1===n)return{tagName:e,attributes:a,children:s}}else if(m&&62!==m){for(var g=n;t[n]&&-1===u.indexOf(t[n]);)n++;f=t.slice(g,n),o&&(f=C(f))}}a[p]=f}else n++}if(r){var A=t.slice(i,n).trim();return A.length>0&&0===Object.keys(a).length&&(s=[A]),63===t.charCodeAt(n)&&62===t.charCodeAt(n+1)?n+=2:62===t.charCodeAt(n)&&(n+=1),{tagName:e,attributes:a,children:s}}if(47!==t.charCodeAt(n-1)&&63!==t.charCodeAt(n-1))if("script"==e){var y=n+1;n=t.indexOf("<\/script>",n),s=[t.slice(y,n)],n+=9}else"style"==e?(y=n+1,n=t.indexOf("</style>",n),s=[t.slice(y,n)],n+=8):-1===d.indexOf(e)?(n++,s=c(e)):n++;else n++;return{tagName:e,attributes:a,children:s}}if(void 0!==r.attrValue)for(r.attrName=r.attrName||"id",p=[];-1!==(n=function(){if(!r||!r.attrName||!r.attrValue)return -1;var e=RegExp("\\s"+r.attrName+"\\s*=['\"]"+r.attrValue+"['\"]").exec(t);return e?e.index:-1}());)-1!==(n=t.lastIndexOf("<",n))&&p.push(f()),t=t.substr(n),n=0;else if(r.parseNode)for(p=f();s&&"object"==typeof p&&p&&l(p.tagName);)p=f();else p=c("");return(r.filter&&Array.isArray(p)&&(p=function e(t,r,n=0,i=""){var a=[];return t.forEach(function(t,o){if("object"==typeof t&&r(t,o,n,i)&&a.push(t),"object"==typeof t&&t.children){var s=e(t.children,r,n+1,(i?i+".":"")+o+"."+t.tagName);a=a.concat(s)}}),a}(p,r.filter)),r.simplify)?function t(r){if("string"==typeof r)return t(e(r));if(!Array.isArray(r))throw TypeError("simplify() expects parsed node array or XML string");var n={};if(!r.length)return"";if(1===r.length&&"string"==typeof r[0])return r[0];for(var i in r.forEach(function(e){if("object"==typeof e){n[e.tagName]||(n[e.tagName]=[]);var r=t(e.children);n[e.tagName].push(r),Object.keys(e.attributes).length&&"object"==typeof r&&!Array.isArray(r)&&(r._attributes=e.attributes)}}),n)1==n[i].length&&(n[i]=n[i][0]);return n}(Array.isArray(p)?p:[p]):(r.setPos&&"object"==typeof p&&!Array.isArray(p)&&(p.pos=n),p)}(n,{keepWhitespace:!0}))}catch{return null}}function U(e){return"1"===e||"true"===e}function W(e){return e.substr((~-e.lastIndexOf(".")>>>0)+2)}function V(e,t){if(!e)return e;let r="";if(e.constructor===Array)for(let n=0;n<e.length;n++)r+=t(e[n],n);else r+=t(e,0);return r}function E(e,t){if(!e)return e;for(let r of t)if(!(e=e[r]))break;return e}function Y(e){return e?Math.round(e/6e4):0}function D(e){let t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#039;"};return e.replace(/[&<>"']/g,e=>t[e])}function Q(e){let t=e.toString(16);for(;t.length<2;)t="0"+t;return t}function $(e,t=4){return parseFloat(e.toFixed(t))}function B(e,t,r,n){let i,a;if(r)a=r;else{let e=E(t.slideContent,["p:sld","p:clrMapOvr","a:overrideClrMapping","attrs"]);a=e||(e=E(t.slideLayoutContent,["p:sldLayout","p:clrMapOvr","a:overrideClrMapping","attrs"]))||E(t.slideMasterContent,["p:sldMaster","p:clrMap","attrs"])}let o=e.substr(2);if("phClr"===o&&n)i=n;else{if(a)switch(o){case"tx1":case"tx2":case"bg1":case"bg2":e="a:"+a[o]}else switch(o){case"tx1":e="a:dk1";break;case"tx2":e="a:dk2";break;case"bg1":e="a:lt1";break;case"bg2":e="a:lt2"}let r=E(t.themeContent,["a:theme","a:themeElements","a:clrScheme",e]);(i=E(r,["a:srgbClr","attrs","val"]))||!r||(i=E(r,["a:sysClr","attrs","lastClr"]))}return i}function Z(e,t,r){return(r<0&&(r+=6),r>=6&&(r-=6),r<1)?(t-e)*r+e:r<3?t:r<4?(t-e)*(4-r)+e:e}function K(e,t,r){let n=(0,i.A)(e).toHsl();t>=1&&(t=1);let a=n.l*t+(1-t);return r?(0,i.A)({h:n.h,s:n.s,l:a,a:n.a}).toHex8():(0,i.A)({h:n.h,s:n.s,l:a,a:n.a}).toHex()}function G(e){let t="";return e["a:noFill"]&&(t="NO_FILL"),e["a:solidFill"]&&(t="SOLID_FILL"),e["a:gradFill"]&&(t="GRADIENT_FILL"),e["a:pattFill"]&&(t="PATTERN_FILL"),e["a:blipFill"]&&(t="PIC_FILL"),e["a:grpFill"]&&(t="GROUP_FILL"),t}function H(e=""){return{ref:e,base64:"",blob:"",align:{t:0,b:0,l:0,r:0},alignType:"stretch"}}function z(e=""){return{ref:e,blob:""}}async function J(e,t,r,n="base64"){let i;if(!e||"base64"!==n&&"blob"!==n)return"";let a=D(e),o=(i=t[r]||{},t[r]=i,i),s=o[a]||{base64:"",blob:""};if(o[a]=s,s[n])return s[n];let l=a.split(".").pop().toLowerCase();if("xml"===l)return"";let c=t.zip.file(a);if(!c)return"";let u=await c.async("arraybuffer"),h=function(e){let t="";switch(e.toLowerCase()){case"jpg":case"jpeg":t="image/jpeg";break;case"png":t="image/png";break;case"gif":t="image/gif";break;case"emf":t="image/x-emf";break;case"wmf":t="image/x-wmf";break;case"svg":t="image/svg+xml";break;case"mp4":t="video/mp4";break;case"webm":t="video/webm";break;case"ogg":t="video/ogg";break;case"avi":t="video/avi";break;case"mpg":t="video/mpg";break;case"wmv":t="video/wmv";break;case"mp3":t="audio/mpeg";break;case"wav":t="audio/wav";break;case"tif":case"tiff":t="image/tiff"}return t}(l);if("emf"===l){let e=function(e){if("u"<typeof document)return"";let t=function(e){if(!e||e.length<44)return null;let t=new DataView(e.buffer,e.byteOffset,e.byteLength);if(0x464d4520!==t.getUint32(40,!0))return null;let r=0;for(;r+8<=e.length;){let n=t.getUint32(r,!0),i=t.getUint32(r+4,!0);if(i<8||r+i>e.length||14===n)break;if(81===n&&i>80){let n=function(e,t,r){if(r+80>e.length)return null;let n=t.getUint32(r+48,!0),i=t.getUint32(r+52,!0),a=t.getUint32(r+56,!0),o=t.getUint32(r+60,!0);if(0===i||0===o)return null;let s=r+n;if(s+40>e.length)return null;let l=t.getInt32(s+4,!0),c=t.getInt32(s+8,!0),u=t.getUint16(s+14,!0);if(0!==t.getUint32(s+16,!0)||24!==u&&32!==u)return null;let h=Math.abs(l),p=Math.abs(c);if(0===h||0===p||h>8192||p>8192)return null;let d=r+a;if(d+o>e.length)return null;let f=e.subarray(d,d+o),m=c<0,g=new Uint8ClampedArray(h*p*4),A=u/8,y=4*Math.ceil(h*A/4);for(let e=0;e<p;e++){let t=(m?e:p-1-e)*y,r=e*h*4;for(let e=0;e<h;e++){let n=t+e*A;if(n+A>f.length)break;g[r+4*e+0]=f[n+2],g[r+4*e+1]=f[n+1],g[r+4*e+2]=f[n+0],g[r+4*e+3]=32===u?f[n+3]:255}}return{width:h,height:p,data:g}}(e,t,r);if(n)return n}r+=i}return null}(e);if(!t)return"";let r=document.createElement("canvas");r.width=t.width,r.height=t.height;let n=r.getContext("2d");return n?(n.putImageData(new ImageData(t.data,t.width,t.height),0,0),r.toDataURL("image/png")):""}(new Uint8Array(u));if(e){if("base64"===n)s.base64=e;else{let t=Uint8Array.from(atob(e.split(",")[1]),e=>e.charCodeAt(0));s.blob=URL.createObjectURL(new Blob([t],{type:"image/png"}))}return s[n]}}return"base64"===n?s.base64=`data:${h};base64,${function(e){let t,r,n,i,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=new Uint8Array(e),s=o.byteLength,l=s%3,c=s-l,u="";for(let e=0;e<c;e+=3)t=(0xfc0000&(i=o[e]<<16|o[e+1]<<8|o[e+2]))>>18,u+=a[t]+a[r=(258048&i)>>12]+a[n=(4032&i)>>6]+a[63&i];return 1===l?(t=(252&(i=o[c]))>>2,u+=a[t]+a[r=(3&i)<<4]+"=="):2===l&&(t=(64512&(i=o[c]<<8|o[c+1]))>>10,u+=a[t]+a[r=(1008&i)>>4]+a[n=(15&i)<<2]+"="),u}(u)}`:"blob"===n&&(s.blob=URL.createObjectURL(new Blob([u],h?{type:h}:void 0))),s[n]}async function j(e,t,r="base64"){return await J(e,t,"loadedImages",r)}async function q(e,t,r="blob"){return"blob"!==r?"":await J(e,t,"loadedVideos","blob")}async function ee(e,t,r="blob"){return"blob"!==r?"":await J(e,t,"loadedAudios","blob")}async function et(e,t){let r,n=H(e||"");if(!e)return n;let i="blob"===(r=E(t,["options","imageMode"]))||"both"===r||"none"===r?r:"base64";return("base64"===i||"both"===i)&&(n.base64=await j(e,t,"base64")),("blob"===i||"both"===i)&&(n.blob=await j(e,t,"blob")),n}async function er(e,t){let r=z(e||"");return e?("blob"==("blob"===E(t,["options","videoMode"])?"blob":"none")&&(r.blob=await q(e,t,"blob")),r):r}async function en(e,t){let r=z(e||"");return e?("blob"==("blob"===E(t,["options","audioMode"])?"blob":"none")&&(r.blob=await ee(e,t,"blob")),r):r}async function ei(e,t,r){let n;if(!t)return H();let i=E(t,["a:blip","attrs","r:embed"]);if("slideBg"===e||"slide"===e?n=E(r,["slideResObj",i,"target"]):"slideLayoutBg"===e?n=E(r,["layoutResObj",i,"target"]):"slideMasterBg"===e?n=E(r,["masterResObj",i,"target"]):"themeBg"===e?n=E(r,["themeResObj",i,"target"]):"diagramBg"===e&&(n=E(r,["diagramResObj",i,"target"])),!n)return H();let a=await et(n,r),o={t:0,b:0,l:0,r:0},s="stretch";if(t["a:stretch"]){s="stretch";let e=E(t,["a:stretch","a:fillRect","attrs"]);e&&(e.t&&(o.t=parseInt(e.t)/1e3),e.b&&(o.b=parseInt(e.b)/1e3),e.l&&(o.l=parseInt(e.l)/1e3),e.r&&(o.r=parseInt(e.r)/1e3))}else if(t["a:tile"]){s="tile";let e=E(t,["a:tile","attrs"]);e&&(e.t&&(o.t=parseInt(e.t)/1e3),e.b&&(o.b=parseInt(e.b)/1e3),e.l&&(o.l=parseInt(e.l)/1e3),e.r&&(o.r=parseInt(e.r)/1e3))}else t["a:scale"]&&(s="scale");return a.align=o,a.alignType=s,a}function ea(e){let t=E(e["a:blip"],["a:alphaModFix","attrs"]),r=1;return t&&t.amt&&""!==t.amt&&(r=parseInt(t.amt)/1e5),r}async function eo(e,t,r){let n=await ei(t,e["a:blipFill"],r),i=E(e["a:blipFill"]["a:blip"],["a:alphaModFix","attrs"]),a=1;return i&&i.amt&&""!==i.amt&&(a=parseInt(i.amt)/1e5),{ref:n.ref,base64:n.base64,blob:n.blob,opacity:a}}function es(e,t){if(!e["a:gsLst"])return null;let r=e["a:gsLst"]["a:gs"],n=[];for(let e=0;e<r.length;e++){let i=ef(r[e],void 0,void 0,t),a=E(r[e],["attrs","pos"]);n[e]={pos:a?a/1e3+"%":"",color:i}}let i=e["a:lin"],a=0,o="line";if(i)a=Y(i.attrs.ang);else{let t=e["a:path"];t&&t.attrs&&t.attrs.path&&(o=t.attrs.path)}return{rot:a,path:o,colors:n.sort((e,t)=>parseInt(e.pos)-parseInt(t.pos))}}function el(e,t){if(!e)return null;let r=e["a:pattFill"];if(!r)return null;let n=E(r,["attrs","prst"]),i=r["a:fgClr"],a=r["a:bgClr"],o="#000000",s="#FFFFFF";return i&&(o=ef(i,void 0,void 0,t)),a&&(s=ef(a,void 0,void 0,t)),{type:n,foregroundColor:o,backgroundColor:s}}function ec(e,t,r,n){if(e){let i=e["a:gradFill"],a=i["a:gsLst"]["a:gs"],o=[];for(let e=0;e<a.length;e++){let i=ef(a[e],r["p:sldMaster"]["p:clrMap"].attrs,t,n),s=E(a[e],["attrs","pos"]);o[e]={pos:s?s/1e3+"%":"",color:i}}let s=i["a:lin"],l=0,c="line";if(s)l=Y(s.attrs.ang)+0;else{let e=i["a:path"];e&&e.attrs&&e.attrs.path&&(c=e.attrs.path)}return{rot:l,path:c,colors:o.sort((e,t)=>parseInt(e.pos)-parseInt(t.pos))}}return t?-1===t.indexOf("#")?`#${t}`:t:null}async function eu(e){let t=e.slideContent,r=e.slideLayoutContent,n=e.slideMasterContent,i=E(t,["p:sld","p:cSld","p:bg","p:bgPr"]),a=E(t,["p:sld","p:cSld","p:bg","p:bgRef"]),o="#fff",s="color";if(i){let a=G(i);if("SOLID_FILL"===a){let a,s=i["a:solidFill"],l=E(t,["p:sld","p:clrMapOvr","a:overrideClrMapping","attrs"]);o=ef(s,a=l?l:E(r,["p:sldLayout","p:clrMapOvr","a:overrideClrMapping","attrs"])||E(n,["p:sldMaster","p:clrMap","attrs"]),void 0,e)}else if("GRADIENT_FILL"===a){let t=ec(i,void 0,n,e);"string"==typeof t?o=t:t&&(o=t,s="gradient")}else if("PIC_FILL"===a)o=await eo(i,"slideBg",e),s="image";else if("PATTERN_FILL"===a){let t=el(i,e);t&&(o=t,s="pattern")}}else if(a){let i,l=E(t,["p:sld","p:clrMapOvr","a:overrideClrMapping","attrs"]),c=ef(a,i=l?l:E(r,["p:sldLayout","p:clrMapOvr","a:overrideClrMapping","attrs"])||E(n,["p:sldMaster","p:clrMap","attrs"]),void 0,e),u=Number(a.attrs.idx);if(u>1e3){let t=e.themeContent["a:theme"]["a:themeElements"]["a:fmtScheme"]["a:bgFillStyleLst"],r=[];Object.keys(t).forEach(e=>{let n=t[e];if("attrs"!==e)if(n.constructor===Array)for(let t=0;t<n.length;t++){let i={};i[e]=n[t],n[t].attrs&&(i.idex=n[t].attrs.order,i.attrs={order:n[t].attrs.order}),r.push(i)}else{let t={};t[e]=n,n.attrs&&(t.idex=n.attrs.order,t.attrs={order:n.attrs.order}),r.push(t)}});let a=r.slice(0);a.sort((e,t)=>e.idex-t.idex);let l=a[u-1e3-1],h=G(l);if("SOLID_FILL"===h)o=ef(l["a:solidFill"],i,c,e);else if("GRADIENT_FILL"===h){let t=ec(l,c,n,e);"string"==typeof t?o=t:t&&(o=t,s="gradient")}}}else{let t;if(i=E(r,["p:sldLayout","p:cSld","p:bg","p:bgPr"]),a=E(r,["p:sldLayout","p:cSld","p:bg","p:bgRef"]),t=E(r,["p:sldLayout","p:clrMapOvr","a:overrideClrMapping","attrs"])||E(n,["p:sldMaster","p:clrMap","attrs"]),i){let r=G(i);if("SOLID_FILL"===r)o=ef(i["a:solidFill"],t,void 0,e);else if("GRADIENT_FILL"===r){let t=ec(i,void 0,n,e);"string"==typeof t?o=t:t&&(o=t,s="gradient")}else if("PIC_FILL"===r)o=await eo(i,"slideLayoutBg",e),s="image";else if("PATTERN_FILL"===r){let t=el(i,e);t&&(o=t,s="pattern")}}else if(a){let r=ef(a,t,void 0,e),i=Number(a.attrs.idx);if(i>1e3){let a=e.themeContent["a:theme"]["a:themeElements"]["a:fmtScheme"]["a:bgFillStyleLst"],l=[];Object.keys(a).forEach(e=>{let t=a[e];if("attrs"!==e)if(t.constructor===Array)for(let r=0;r<t.length;r++){let n={};n[e]=t[r],t[r].attrs&&(n.idex=t[r].attrs.order,n.attrs={order:t[r].attrs.order}),l.push(n)}else{let r={};r[e]=t,t.attrs&&(r.idex=t.attrs.order,r.attrs={order:t.attrs.order}),l.push(r)}});let c=l.slice(0);c.sort((e,t)=>e.idex-t.idex);let u=c[i-1e3-1],h=G(u);if("SOLID_FILL"===h)o=ef(u["a:solidFill"],t,r,e);else if("GRADIENT_FILL"===h){let t=ec(u,r,n,e);"string"==typeof t?o=t:t&&(o=t,s="gradient")}else if("PIC_FILL"===h)o=await eo(u,"themeBg",e),s="image";else if("PATTERN_FILL"===h){let t=el(u,e);t&&(o=t,s="pattern")}}}else{i=E(n,["p:sldMaster","p:cSld","p:bg","p:bgPr"]),a=E(n,["p:sldMaster","p:cSld","p:bg","p:bgRef"]);let r=E(n,["p:sldMaster","p:clrMap","attrs"]);if(i){let t=G(i);if("SOLID_FILL"===t)o=ef(i["a:solidFill"],r,void 0,e);else if("GRADIENT_FILL"===t){let t=ec(i,void 0,n,e);"string"==typeof t?o=t:t&&(o=t,s="gradient")}else if("PIC_FILL"===t)o=await eo(i,"slideMasterBg",e),s="image";else if("PATTERN_FILL"===t){let t=el(i,e);t&&(o=t,s="pattern")}}else if(a){let i=ef(a,r,void 0,e),l=Number(a.attrs.idx);if(l>1e3){let r=e.themeContent["a:theme"]["a:themeElements"]["a:fmtScheme"]["a:bgFillStyleLst"],a=[];Object.keys(r).forEach(e=>{let t=r[e];if("attrs"!==e)if(t.constructor===Array)for(let r=0;r<t.length;r++){let n={};n[e]=t[r],t[r].attrs&&(n.idex=t[r].attrs.order,n.attrs={order:t[r].attrs.order}),a.push(n)}else{let r={};r[e]=t,t.attrs&&(r.idex=t.attrs.order,r.attrs={order:t.attrs.order}),a.push(r)}});let c=a.slice(0);c.sort((e,t)=>e.idex-t.idex);let u=c[l-1e3-1],h=G(u);if("SOLID_FILL"===h)o=ef(u["a:solidFill"],t,i,e);else if("GRADIENT_FILL"===h){let t=ec(u,i,n,e);"string"==typeof t?o=t:t&&(o=t,s="gradient")}else if("PIC_FILL"===h)o=await eo(u,"themeBg",e),s="image";else if("PATTERN_FILL"===h){let t=el(u,e);t&&(o=t,s="pattern")}}}}}return{type:s,value:o}}async function eh(e,t,r,n){if(!e)return{state:"missing"};let i=E(e,["p:spPr"]),a=i?G(i):"",o="color",s="";if("NO_FILL"===a)return{state:"none"};if("SOLID_FILL"===a)s=ef(i["a:solidFill"],void 0,void 0,t),o="color";else if("GRADIENT_FILL"===a)s=es(i["a:gradFill"],t),o="gradient";else if("PIC_FILL"===a){let e=i["a:blipFill"],n=await ei(r,e,t),a=ea(e);s={ref:n.ref,base64:n.base64,blob:n.blob,opacity:a,align:n.align,alignType:n.alignType},o="image"}else if("PATTERN_FILL"===a)s=el({"a:pattFill":i["a:pattFill"]},t),o="pattern";else if("GROUP_FILL"===a){let e=await ed(n,t,r);return e?{state:"found",fill:e}:{state:"none"}}if(!s){let r=E(e,["attrs","useBgFill"]);if("1"===r||"true"===r){let e=await eu(t);return e?{state:"found",fill:e}:{state:"none"}}let n=E(e,["p:style","a:fillRef"]);if(n&&0===Number(E(n,["attrs","idx"])))return{state:"none"};s=ef(n,void 0,void 0,t),o="color"}return s?{state:"found",fill:{type:o,value:s}}:{state:"missing"}}async function ep(e,t,r,n={}){let i,{groupHierarchy:a=[],slideLayoutSpNode:o,slideMasterSpNode:s}=n;for(let n of(i=[{node:e,source:r}],o&&i.push({node:o,source:"slideLayoutBg"}),s&&i.push({node:s,source:"slideMasterBg"}),i)){let e=await eh(n.node,t,n.source,a);if("none"===e.state)break;if("found"===e.state)return e.fill}return null}async function ed(e,t,r){for(let n of e){if(!n||!n["p:grpSpPr"])continue;let e=n["p:grpSpPr"],i=G(e);if("SOLID_FILL"===i){let r=ef(e["a:solidFill"],void 0,void 0,t);if(r)return{type:"color",value:r}}else if("GRADIENT_FILL"===i){let r=es(e["a:gradFill"],t);if(r)return{type:"gradient",value:r}}else if("PIC_FILL"===i){let n=e["a:blipFill"],i=await ei(r,n,t),a=ea(n);if(i.ref||i.base64||i.blob)return{type:"image",value:{ref:i.ref,base64:i.base64,blob:i.blob,opacity:a,align:i.align,alignType:i.alignType}}}else if("PATTERN_FILL"===i){let r=el({"a:pattFill":e["a:pattFill"]},t);if(r)return{type:"pattern",value:r}}else if("GROUP_FILL"===i)continue;else if("NO_FILL"===i)return null}return{type:"slide-background"}}function ef(e,t,r,n){var a,o,s,l,c,u,h,p,d,f,m,g,A;let y,v,R,b,x,M,S,w,O,L,N;if(!e)return"";let _="";if(e["a:srgbClr"])_=E(y=e["a:srgbClr"],["attrs","val"]);else if(e["a:schemeClr"])_=B("a:"+E(y=e["a:schemeClr"],["attrs","val"]),n,t,r)||"";else if(e["a:scrgbClr"]){let t=(y=e["a:scrgbClr"]).attrs,r=-1!==t.r.indexOf("%")?t.r.split("%").shift():t.r,n=-1!==t.g.indexOf("%")?t.g.split("%").shift():t.g,i=-1!==t.b.indexOf("%")?t.b.split("%").shift():t.b;_=Q(255*(Number(r)/100))+Q(255*(Number(n)/100))+Q(255*(Number(i)/100))}else if(e["a:prstClr"]){let t,r,n;r=E(y=e["a:prstClr"],["attrs","val"]).toLowerCase(),-1!==(n=["AliceBlue","AntiqueWhite","Aqua","Aquamarine","Azure","Beige","Bisque","black","BlanchedAlmond","Blue","BlueViolet","Brown","BurlyWood","CadetBlue","Chartreuse","Chocolate","Coral","CornflowerBlue","Cornsilk","Crimson","Cyan","DarkBlue","DarkCyan","DarkGoldenRod","DarkGray","DarkGrey","DarkGreen","DarkKhaki","DarkMagenta","DarkOliveGreen","DarkOrange","DarkOrchid","DarkRed","DarkSalmon","DarkSeaGreen","DarkSlateBlue","DarkSlateGray","DarkSlateGrey","DarkTurquoise","DarkViolet","DeepPink","DeepSkyBlue","DimGray","DimGrey","DodgerBlue","FireBrick","FloralWhite","ForestGreen","Fuchsia","Gainsboro","GhostWhite","Gold","GoldenRod","Gray","Grey","Green","GreenYellow","HoneyDew","HotPink","IndianRed","Indigo","Ivory","Khaki","Lavender","LavenderBlush","LawnGreen","LemonChiffon","LightBlue","LightCoral","LightCyan","LightGoldenRodYellow","LightGray","LightGrey","LightGreen","LightPink","LightSalmon","LightSeaGreen","LightSkyBlue","LightSlateGray","LightSlateGrey","LightSteelBlue","LightYellow","Lime","LimeGreen","Linen","Magenta","Maroon","MediumAquaMarine","MediumBlue","MediumOrchid","MediumPurple","MediumSeaGreen","MediumSlateBlue","MediumSpringGreen","MediumTurquoise","MediumVioletRed","MidnightBlue","MintCream","MistyRose","Moccasin","NavajoWhite","Navy","OldLace","Olive","OliveDrab","Orange","OrangeRed","Orchid","PaleGoldenRod","PaleGreen","PaleTurquoise","PaleVioletRed","PapayaWhip","PeachPuff","Peru","Pink","Plum","PowderBlue","Purple","RebeccaPurple","Red","RosyBrown","RoyalBlue","SaddleBrown","Salmon","SandyBrown","SeaGreen","SeaShell","Sienna","Silver","SkyBlue","SlateBlue","SlateGray","SlateGrey","Snow","SpringGreen","SteelBlue","Tan","Teal","Thistle","Tomato","Turquoise","Violet","Wheat","White","WhiteSmoke","Yellow","YellowGreen"].findIndex(e=>e.toLowerCase()===r))&&(t=["f0f8ff","faebd7","00ffff","7fffd4","f0ffff","f5f5dc","ffe4c4","000000","ffebcd","0000ff","8a2be2","a52a2a","deb887","5f9ea0","7fff00","d2691e","ff7f50","6495ed","fff8dc","dc143c","00ffff","00008b","008b8b","b8860b","a9a9a9","a9a9a9","006400","bdb76b","8b008b","556b2f","ff8c00","9932cc","8b0000","e9967a","8fbc8f","483d8b","2f4f4f","2f4f4f","00ced1","9400d3","ff1493","00bfff","696969","696969","1e90ff","b22222","fffaf0","228b22","ff00ff","dcdcdc","f8f8ff","ffd700","daa520","808080","808080","008000","adff2f","f0fff0","ff69b4","cd5c5c","4b0082","fffff0","f0e68c","e6e6fa","fff0f5","7cfc00","fffacd","add8e6","f08080","e0ffff","fafad2","d3d3d3","d3d3d3","90ee90","ffb6c1","ffa07a","20b2aa","87cefa","778899","778899","b0c4de","ffffe0","00ff00","32cd32","faf0e6","ff00ff","800000","66cdaa","0000cd","ba55d3","9370db","3cb371","7b68ee","00fa9a","48d1cc","c71585","191970","f5fffa","ffe4e1","ffe4b5","ffdead","000080","fdf5e6","808000","6b8e23","ffa500","ff4500","da70d6","eee8aa","98fb98","afeeee","db7093","ffefd5","ffdab9","cd853f","ffc0cb","dda0dd","b0e0e6","800080","663399","ff0000","bc8f8f","4169e1","8b4513","fa8072","f4a460","2e8b57","fff5ee","a0522d","c0c0c0","87ceeb","6a5acd","708090","708090","fffafa","00ff7f","4682b4","d2b48c","008080","d8bfd8","ff6347","40e0d0","ee82ee","f5deb3","ffffff","f5f5f5","ffff00","9acd32"][n]),_=t}else if(e["a:hslClr"]){let t,r,n,i=(y=e["a:hslClr"]).attrs,o=Number(i.hue)/1e5,s=Number(-1!==i.sat.indexOf("%")?i.sat.split("%").shift():i.sat)/100,l=Number(-1!==i.lum.indexOf("%")?i.lum.split("%").shift():i.lum)/100,c=(a=o/60,t=l<=.5?l*(s+1):l+s-l*s,n=255*Z(r=2*l-t,t,a+2),{r:n,g:255*Z(r,t,a),b:255*Z(r,t,a-2)});_=Q(c.r)+Q(c.g)+Q(c.b)}else if(e["a:sysClr"]){let t=E(y=e["a:sysClr"],["attrs","lastClr"]);t&&(_=t)}let T=!1,P=parseInt(E(y,["a:alpha","attrs","val"]))/1e5;if(!isNaN(P)){let e=(0,i.A)(_);e.setAlpha(P),_=e.toHex8(),T=!0}let C=parseInt(E(y,["a:hueMod","attrs","val"]))/1e5;isNaN(C)||(o=_,s=T,(R=(v=(0,i.A)(o).toHsl()).h*C)>=360&&(R-=360),_=s?(0,i.A)({h:R,s:v.s,l:v.l,a:v.a}).toHex8():(0,i.A)({h:R,s:v.s,l:v.l,a:v.a}).toHex());let I=parseInt(E(y,["a:lumMod","attrs","val"]))/1e5;isNaN(I)||(l=_,c=T,(x=(b=(0,i.A)(l).toHsl()).l*I)>=1&&(x=1),_=c?(0,i.A)({h:b.h,s:b.s,l:x,a:b.a}).toHex8():(0,i.A)({h:b.h,s:b.s,l:x,a:b.a}).toHex());let k=parseInt(E(y,["a:lumOff","attrs","val"]))/1e5;isNaN(k)||(m=_,g=k,A=T,_=(N=g+(L=(0,i.A)(m).toHsl()).l)>=1?A?(0,i.A)({h:L.h,s:L.s,l:1,a:L.a}).toHex8():(0,i.A)({h:L.h,s:L.s,l:1,a:L.a}).toHex():A?(0,i.A)({h:L.h,s:L.s,l:N,a:L.a}).toHex8():(0,i.A)({h:L.h,s:L.s,l:N,a:L.a}).toHex());let F=parseInt(E(y,["a:satMod","attrs","val"]))/1e5;isNaN(F)||(u=_,h=T,(S=(M=(0,i.A)(u).toHsl()).s*F)>=1&&(S=1),_=h?(0,i.A)({h:M.h,s:S,l:M.l,a:M.a}).toHex8():(0,i.A)({h:M.h,s:S,l:M.l,a:M.a}).toHex());let X=parseInt(E(y,["a:shade","attrs","val"]))/1e5;isNaN(X)||(p=_,d=X,f=T,w=(0,i.A)(p).toHsl(),d>=1&&(d=1),O=Math.min(w.l*d,1),_=f?(0,i.A)({h:w.h,s:w.s,l:O,a:w.a}).toHex8():(0,i.A)({h:w.h,s:w.s,l:O,a:w.a}).toHex());let U=parseInt(E(y,["a:tint","attrs","val"]))/1e5;return isNaN(U)||(_=K(_,U,T)),_&&-1===_.indexOf("#")&&(_="#"+_),_}function em(e){let t=E(e,["attrs"]);if(!t)return;let r={type:t.type||"none"};return t.w&&(r.width=t.w),t.len&&(r.length=t.len),r}function eg(e,t,r){let n=E(e,["p:spPr","a:ln"]),i=E(e,["p:style","a:lnRef"]),a=n;if(!a&&i){let e=E(i,["attrs","idx"]);a=r.themeContent["a:theme"]["a:themeElements"]["a:fmtScheme"]["a:lnStyleLst"]["a:ln"][Number(e)-1]}a||(a=e);let o=E(a,["a:noFill"]),s=a["a:solidFill"]||a["a:gradFill"],l=void 0!==E(a,["attrs","w"]),c=o?0:parseInt(E(a,["attrs","w"]))/12700;isNaN(c)&&(c=a&&a!==e&&(s||l)?.75:0);let u=null;if(a["a:solidFill"]){let e=ef(a["a:solidFill"],void 0,void 0,r);e&&(u={type:"color",value:e})}if(!u&&!n&&i){let e=ef(i,void 0,void 0,r);e&&(u={type:"color",value:e})}if(!u&&a["a:gradFill"]){let e=es(a["a:gradFill"],r);e&&e.colors&&e.colors.length>0&&(u={type:"gradient",value:e})}u||(u={type:"color",value:"transparent"});let h=E(a,["a:prstDash","attrs","val"]),p="solid",d="0";switch(h){case"solid":p="solid",d="0";break;case"dash":p="dashed",d="5";break;case"dashDot":p="dashed",d="5, 5, 1, 5";break;case"dot":p="dotted",d="1, 5";break;case"lgDash":p="dashed",d="10, 5";break;case"lgDashDotDot":p="dotted",d="10, 5, 1, 5, 1, 5";break;case"sysDash":p="dashed",d="5, 2";break;case"sysDashDot":p="dotted",d="5, 2, 1, 5";break;case"sysDashDotDot":p="dotted",d="5, 2, 1, 5, 1, 5";break;case"sysDot":p="dotted",d="2, 5"}return{borderColor:u,borderWidth:c,borderType:p,strokeDasharray:d,headEnd:em(E(a,["a:headEnd"])),tailEnd:em(E(a,["a:tailEnd"]))}}function eA(e,t){if(!e)return[];e.constructor!==Array&&(e=[e]);let r=[];for(let n of e){let e=E(n,["c:spPr","a:solidFill","a:schemeClr"]);e||(e=E(n,["c:spPr","a:ln","a:solidFill","a:schemeClr"])),e||(e=E(n,["c:marker","c:spPr","a:ln","a:solidFill","a:schemeClr"]));let i=E(e,["attrs","val"]);if(i){i=E(t.themeContent,["a:theme","a:themeElements","a:clrScheme",`a:${i}`,"a:srgbClr","attrs","val"]);let r=E(e,["a:tint","attrs","val"])/1e5;i&&!isNaN(r)&&(i=K(i,r))}else i=E(n,["c:spPr","a:solidFill","a:srgbClr","attrs","val"]);i&&(i="#"+i),r.push(i)}return r}function ey(e){let t=[];return e&&V(e,(e,r)=>{let n=[],i=E(e,["c:tx","c:strRef","c:strCache","c:pt","c:v"])||r,a={};return E(e,["c:cat","c:strRef","c:strCache","c:pt"])?V(e["c:cat"]["c:strRef"]["c:strCache"]["c:pt"],e=>(a[e.attrs.idx]=e["c:v"],"")):E(e,["c:cat","c:numRef","c:numCache","c:pt"])&&V(e["c:cat"]["c:numRef"]["c:numCache"]["c:pt"],e=>(a[e.attrs.idx]=e["c:v"],"")),E(e,["c:val","c:numRef","c:numCache","c:pt"])&&V(e["c:val"]["c:numRef"]["c:numCache"]["c:pt"],e=>(n.push({x:e.attrs.idx,y:parseFloat(e["c:v"])}),"")),t.push({key:i,values:n,xlabels:a}),""}),t}function ev(e){let t=[];if(!e)return t;let r=e.constructor===Array?e:[e],n=r[0],i=[];for(let e of(V(n["c:xVal"]["c:numRef"]["c:numCache"]["c:pt"],e=>(i.push(parseFloat(e["c:v"])),"")),t.push(i),r)){let r=[];V(e["c:yVal"]["c:numRef"]["c:numCache"]["c:pt"],e=>(r.push(parseFloat(e["c:v"])),"")),t.push(r)}return t}let eR=72/914400;function eb(e){let t=1,r=E(e,["a:pPr","attrs","lvl"]);return void 0!==r&&(t=parseInt(r)+1),t}function ex(e,t){if(!e)return"";let r=E(e,["p:txBody","a:lstStyle",t,"attrs","algn"]);return r||(r=E(e,["p:txBody","a:p","a:pPr","attrs","algn"])),r||""}function eM(e,t){t&&e.push(t)}function eS(e,t,r){t&&(eM(e,E(t,["p:txBody","a:lstStyle",`a:lvl${r}pPr`])),eM(e,E(t,["p:txBody","a:p","a:pPr"])))}function ew(e,t,r,n,i,a,o){var s;if(!e)return null;let l=e["a:pPr"],c=eb(e),u=[];return eM(u,l),t&&eM(u,E(t,["a:lstStyle",`a:lvl${c}pPr`])),eS(u,r,c),eS(u,n,c),!function(e,t,r,n){if(!n)return;let i=`a:lvl${r}pPr`;"title"===t||"ctrTitle"===t||"subTitle"===t?(eM(e,E(n,["p:titleStyle",i])),"subTitle"===t&&eM(e,E(n,["p:bodyStyle",i]))):"body"===t?eM(e,E(n,["p:bodyStyle",i])):eM(e,E(n,["p:otherStyle",i]))}(u,i,c,a),s=E(o,["defaultTextStyle"]),s&&(eM(u,E(s,[`a:lvl${c}pPr`])),eM(u,E(s,["a:defPPr"]))),u}function eO(e){let t=E(e,["a:spcPct","attrs","val"]),r=E(e,["a:spcPts","attrs","val"]);return t?parseInt(t)/1e5+"em":r?parseInt(r)/100+"pt":void 0}function eL(e,t){let r=E(e,["attrs",t]);if(void 0!==r&&""!==r)return $(parseInt(r)*eR)+"pt"}function eN(e,t,r,n){let i=E(e,["p:txBody","a:bodyPr","attrs",n]);return null!=i&&""!==i||null!=(i=E(t,["p:txBody","a:bodyPr","attrs",n]))&&""!==i?i:E(r,["p:txBody","a:bodyPr","attrs",n])}function e_(e){if(null==e||""===e)return null;let t=parseInt(e,10);return Number.isFinite(t)?$(t*eR):null}function eT(e,t,r){let n;return(e?n=e["a:off"].attrs:t?n=t["a:off"].attrs:r&&(n=r["a:off"].attrs),n)?{top:$(parseInt(n.y)*eR),left:$(parseInt(n.x)*eR)}:{top:0,left:0}}function eP(e,t,r){let n;return(e?n=e["a:ext"].attrs:t?n=t["a:ext"].attrs:r&&(n=r["a:ext"].attrs),n)?{width:$(parseInt(n.cx)*eR),height:$(parseInt(n.cy)*eR)}:{width:0,height:0}}function eC(e){let t=e&&e.__rawNode;return t?(function(e,t={}){let r=y(e.tagName);if("oMathPara"===r||"m"===r){let r=function e(t,r,n=[]){for(let i of(y(t.tagName)===r&&n.push(t),t.children))"string"!=typeof i&&e(i,r,n);return n}(e,"oMath");if(r.length)return r.map(e=>new _(t).convert(e)).join("").trim()}return new _(t).convert(e)})(function e(t){if(!t||"object"!=typeof t)return null;if("oMath"===function(e){if(!e)return"";let t=e.indexOf(":");return t>=0?e.slice(t+1):e}(t.tagName))return t;for(let r of t.children||[])if("object"==typeof r){let t=e(r);if(t)return t}return null}(t)||t).replaceAll(/&lt;/g,"<").replaceAll(/&gt;/g,">").replaceAll(/&amp;/g,"&").replaceAll(/&apos;/g,"'").replaceAll(/&quot;/g,'"').trim():""}let eI=e=>e?Array.isArray(e)?e:[e]:[];function ek(e){let t=eI(e&&e["m:oMath"]);if(t.length)return t;let r=[];for(let t of eI(e&&e["m:oMathPara"])){let e=eI(t["m:oMath"]);e.length?r.push(...e):r.push(t)}return r}let eF=(e,t)=>{if(!e||"object"!=typeof e)return null;if(e["a:rPr"]){let t=e["a:rPr"];return Array.isArray(t)?t[0]:t}for(let[r,n]of Object.entries(e))if("attrs"!==r&&(!t||"m:ctrlPr"!==r))for(let e of eI(n)){let r=eF(e,t);if(r)return r}return null};function eX(e,t){let r=ef(e,void 0,void 0,t),n=e.attrs,i=n.dir?parseInt(n.dir)/6e4:0,a=n.dist?parseInt(n.dist)*eR:0,o=n.blurRad?parseInt(n.blurRad)*eR:"",s=a*Math.sin(i*Math.PI/180);return{h:a*Math.cos(i*Math.PI/180),v:s,blur:o,color:r}}function eU(e,t){t&&e.push(t)}function eW(e){return`a:lvl${e}pPr`}function eV(e,t,r){t&&(eU(e,E(t,["p:txBody","a:lstStyle",eW(r),"a:defRPr"])),eU(e,E(t,["p:txBody","a:p","a:pPr","a:defRPr"])))}function eE(e,t,r,n){if(!n)return;let i=eW(r);"title"===t||"ctrTitle"===t||"subTitle"===t?(eU(e,E(n,["p:titleStyle",i,"a:defRPr"])),"subTitle"===t&&eU(e,E(n,["p:bodyStyle",i,"a:defRPr"]))):"body"===t?eU(e,E(n,["p:bodyStyle",i,"a:defRPr"])):eU(e,E(n,["p:otherStyle",i,"a:defRPr"]))}function eY(e,t,r,n,i,a){let o=[],s=E(e,["a:rPr"]);return eU(o,s),s||eU(o,E(t,["a:endParaRPr"])),eU(o,E(t,["a:pPr","a:defRPr"])),r&&eU(o,E(r,["a:lstStyle",eW(a),"a:defRPr"])),eV(o,n,a),eV(o,i,a),o}function eD(e,t,r,n,i,a,o,s){let l=eY(e,t,r,n,i,s);return eE(l,a,s,o),l}function eQ(e,t){for(let r of e){let e=E(r,["attrs",t]);if(void 0!==e&&""!==e)return e}return""}function e$(e){return/[\u2E80-\u9FFF\uF900-\uFAFF\uFF00-\uFF60\uFFE0-\uFFE6\u3000-\u303F]/.test(e)}function eB(e,t){for(let r of e){let e=function(e,t){if(!e)return"";let r=G(e);return"SOLID_FILL"===r?ef(e["a:solidFill"],void 0,void 0,t):"GRADIENT_FILL"===r?es(e["a:gradFill"],t):""}(r,t);if(e)return e}return""}function eZ(e,t,r,n,i,a,o,s,l,c){let u=E(e,["a:rPr"]);if(u&&"NO_FILL"===G(u))return"transparent";let h=eY(e,t,r,n,i,s),p=eB(h,c);if(!p){if(l&&(p=ef(l,void 0,void 0,c)),!p){let e=E(n,["p:style","a:fontRef"]);e&&(p=ef(e,void 0,void 0,c))}if(!p){let e=E(i,["p:style","a:fontRef"]);e&&(p=ef(e,void 0,void 0,c))}}return p||(eE(h,a,s,o),p=eB(h,c)),p||""}function eK(e,t,r,n,i,a,o,s,l){let c=eD(e,t,r,n,i,a,o,s);l&&(eU(c,E(l,[eW(s),"a:defRPr"])),eU(c,E(l,["a:defPPr","a:defRPr"])));let u=eQ(c,"sz"),h=u?parseInt(u)/100:void 0;return(isNaN(h)||!h)&&("dt"===a||"sldNum"===a)&&(h=12),(h=isNaN(h)||!h?18:h)+"pt"}function eG(e){return"string"==typeof e?e:e&&"string"==typeof e.value?e.value:void 0}function eH(e,t,r,n,i,a){if(!e)return"";let o="",s=E(t,["p:style","a:fontRef"]),l=t&&t["a:tcPr"]?void 0:a.slideMasterTextStyles,c=t&&t["a:tcPr"]?a.defaultTextStyle:void 0,u=e["a:p"],h=u.constructor===Array?u:[u],p=[];for(let u of h){let h=u["a:r"],d=u["a:fld"],f=u["a:br"];h&&(h=h.constructor===Array?h:[h],d&&(d=d.constructor===Array?d:[d],h=h.concat(d)),f&&((f=f.constructor===Array?f:[f]).forEach(e=>e.type="br"),f.length>1&&f.shift(),(h=h.concat(f)).sort((e,t)=>!e.attrs||!t.attrs||e.attrs.order-t.attrs.order)));let m=function(e){let t=[],r=(e,r)=>{let n=eC(e);n&&t.push({type:"math",latex:n,node:e,attrs:{order:r}})};for(let t of eI(e["a14:m"])){let e=t&&t.attrs&&t.attrs.order||0;for(let n of ek(t))r(n,e)}for(let t of ek(e))r(t,t&&t.attrs&&t.attrs.order||0);return t}(u);m.length&&(h=(h||[]).concat(m)).sort((e,t)=>(e.attrs&&e.attrs.order||0)-(t.attrs&&t.attrs.order||0));let g=function(e,t,r,n,i,a){let o=E(e,["a:pPr","attrs","algn"]);if(o||(o=E(t,["p:txBody","a:p","a:pPr","attrs","algn"])),!o){let t="a:lvl"+eb(e)+"pPr";(o=ex(n,t))||(o=ex(i,t)),o||"title"!==r&&"ctrTitle"!==r&&"subTitle"!==r?o||"body"!==r?o||(o=E(a,["slideMasterTextStyles","p:otherStyle",t,"attrs","algn"])):o=E(a,["slideMasterTextStyles","p:bodyStyle",t,"attrs","algn"]):(o=E(a,["slideMasterTextStyles","p:titleStyle",t,"attrs","algn"]))||"subTitle"!==r||(o=E(a,["slideMasterTextStyles","p:bodyStyle",t,"attrs","algn"]))}let s="left";if(o)switch(o){case"l":s="left";break;case"r":s="right";break;case"ctr":s="center";break;case"just":s="justify";break;case"dist":s="distribute";break;default:s="inherit"}return s}(u,t,i,r,n,a),A=function(e,t,r,n,i,a,o){let s=ew(e,t,r,n,i,a,o);if(!s)return null;let l={};for(let e of s){if(void 0===l.lineSpacing){let t=function(e){let t=E(e,["a:spcPct","attrs","val"]),r=E(e,["a:spcPts","attrs","val"]);return t?Math.round(parseInt(t)/1e3/100*120)/100:r?parseInt(r)/100+"pt":void 0}(e["a:lnSpc"]);void 0!==t&&(l.lineSpacing=t)}if(void 0===l.spaceBefore){let t=eO(e["a:spcBef"]);void 0!==t&&(l.spaceBefore=t)}if(void 0===l.spaceAfter){let t=eO(e["a:spcAft"]);void 0!==t&&(l.spaceAfter=t)}}let c=function(e,t,r){for(let n of[e,t&&t["p:txBody"],r&&r["p:txBody"]]){let e=E(n,["a:bodyPr","a:normAutofit","attrs","lnSpcReduction"]);if(void 0!==e)return parseInt(e)}}(t,r,n);if(void 0!==c){let e=c/1e5;void 0!==l.lineSpacing?"number"==typeof l.lineSpacing&&(l.lineSpacing=Math.round(l.lineSpacing*(1-e)*100)/100):l.lineSpacing=Math.round((1-e)*100)/100}return Object.keys(l).length>0?l:null}(u,e,r,n,i,l,a),y=function(e,t,r,n,i,a,o){let s=ew(e,t,r,n,i,a,o);if(!s)return null;let l={};for(let e of s){if(void 0===l.marginLeft){let t=eL(e,"marL");void 0!==t&&(l.marginLeft=t)}if(void 0===l.textIndent){let t=eL(e,"indent");void 0!==t&&(l.textIndent=t)}}return Object.keys(l).length>0?l:null}(u,e,r,n,i,l,a),v=function(e,t,r,n,i,a,o){if(!(e["a:r"]||e["a:br"]||e["a:fld"]))return"";let s=ew(e,t,r,n,i,a,o);if(!s)return"";for(let e of s){if(e["a:buNone"])break;if(e["a:buChar"]||e["a:buBlip"])return"ul";if(e["a:buAutoNum"])return"ol"}return""}(u,e,r,n,i,l,a),R=function(e){let t=e["a:pPr"];if(!t)return 0;let r=E(t,["attrs","lvl"]);return void 0!==r?parseInt(r):0}(u),b=g;"distribute"===g&&(b="justify");let x=`text-align: ${b};`;if("distribute"===g&&(x+="text-align-last: justify;text-justify: distribute;"),A?(A.lineSpacing?x+=`line-height: ${A.lineSpacing};`:x+="line-height: 1.2;",A.spaceBefore&&(x+=`margin-top: ${A.spaceBefore};`),A.spaceAfter&&(x+=`margin-bottom: ${A.spaceAfter};`)):x+="line-height: 1.2;",y&&(!v&&y.marginLeft&&(x+=`margin-left: ${y.marginLeft};`),!v&&y.textIndent&&(x+=`text-indent: ${y.textIndent};`)),v){for(;p.length>R+1;){let e=p.pop();o+=`</${e}>`}void 0===p[R]?(o+=`<${v}>`,p[R]=v):p[R]!==v&&(o+=`</${p[R]}>`,o+=`<${v}>`,p[R]=v),o+=`<li><p style="${x}">`}else{for(;p.length>0;){let e=p.pop();o+=`</${e}>`}o+=`<p style="${x}">`}if(h){let t=null,p="",d=h.find(e=>!e.type),f=null;for(let m of h){if("math"===m.type){if(p&&t){let e=p.replace(/\t/g,"&nbsp;&nbsp;&nbsp;&nbsp;").replace(/\s/g,"&nbsp;");o+=`<span style="${t.styleText}">${e}</span>`}p="",t=null;let h=D(m.latex),g=function(e,t,r,n,i,a,o,s,l,c,u){let h,p,d,f,m=1,g=E(r,["a:pPr","attrs","lvl"]);void 0!==g&&(m=parseInt(g)+1);let A=(p=eF(h=e&&e.node,!0)||eF(h,!1))?{"a:rPr":p}:{},y=(d=A&&A["a:rPr"])&&d.attrs&&d.attrs.sz||!t?A:t,v=(f=A&&A["a:rPr"])&&(f["a:solidFill"]||f["a:gradFill"]||f["a:pattFill"])||!t?A:t,R=eK(y,r,n,a,o,s,l,m,c),b=eZ(v,r,n,a,o,s,l,m,i,u),x="";return R&&(x+=`font-size: ${R};`),b&&"string"==typeof b&&(x+=`color: ${b};`),x}(m,f||d,u,e,s,r,n,i,l,c,a);o+=`<span class="omml-math" data-latex="${h}"${g?` style="${g}"`:""}>${h}</span>`;continue}m.type||(f=m);let h=ez(m,u,e,s,r,n,i,l,c,a);if(!t||t.styleText!==h.styleText||t.hasLink!==h.hasLink||h.hasLink){if(p){let e=p.replace(/\t/g,"&nbsp;&nbsp;&nbsp;&nbsp;").replace(/\s/g,"&nbsp;");o+=`<span style="${t.styleText}">${e}</span>`,p=""}if(h.hasLink){let e=h.text.replace(/\t/g,"&nbsp;&nbsp;&nbsp;&nbsp;").replace(/\s/g,"&nbsp;");o+=`<span style="${h.styleText}"><a href="${h.linkURL}" target="_blank">${e}</a></span>`,t=null}else t=h,p=h.text}else p+=h.text}if(p&&t){let e=p.replace(/\t/g,"&nbsp;&nbsp;&nbsp;&nbsp;").replace(/\s/g,"&nbsp;");o+=`<span style="${t.styleText}">${e}</span>`}}else o+=function(e,t,r,n,i,a,o,s,l,c){let{styleText:u,text:h,hasLink:p,linkURL:d}=ez(e,t,r,n,i,a,o,s,l,c),f=h.replace(/\t/g,"&nbsp;&nbsp;&nbsp;&nbsp;").replace(/\s/g,"&nbsp;");return p?`<span style="${u}"><a href="${d}" target="_blank">${f}</a></span>`:`<span style="${u}">${f}</span>`}(u,t,e,s,r,n,i,l,c,a);v?o+="</p></li>":o+="</p>"}for(;p.length>0;){let e=p.pop();o+=`</${e}>`}return o}function ez(e,t,r,n,i,a,o,s,l,c){let u,h,p=1,d=E(t["a:pPr"],["attrs","lvl"]);void 0!==d&&(p=parseInt(d)+1);let f=eG(e["a:t"]);"string"!=typeof f&&(f=eG(E(e,["a:fld","a:t"]))),"string"!=typeof f&&(f="&nbsp;");let m="",g=eZ(e,t,r,i,a,o,s,p,n,c),A=eK(e,t,r,i,a,o,s,p,l),y=function(e,t,r,n,i,a,o,s,l,c){let u=e$(c),h=function(e,t){let r=e$(t);for(let t of e){let e=E(t,["a:latin","attrs","typeface"]),n=E(t,["a:ea","attrs","typeface"]),i=E(t,["a:cs","attrs","typeface"]),a=E(t,["a:sym","attrs","typeface"]);if(r&&n)return n;if(e)return e;if(n)return n;if(i)return i;if(a)return a}return""}(eD(e,t,r,n,i,a,o,s),c);if(!h||h.startsWith("+")){let e=E(l.themeContent,["a:theme","a:themeElements","a:fontScheme"]);if(e&&h&&h.startsWith("+"))switch(h){case"+mj-lt":return E(e,["a:majorFont","a:latin","attrs","typeface"]);case"+mn-lt":return E(e,["a:minorFont","a:latin","attrs","typeface"]);case"+mj-ea":return E(e,["a:majorFont","a:ea","attrs","typeface"]);case"+mn-ea":return E(e,["a:minorFont","a:ea","attrs","typeface"]);case"+mj-cs":return E(e,["a:majorFont","a:cs","attrs","typeface"]);case"+mn-cs":return E(e,["a:minorFont","a:cs","attrs","typeface"]);default:return h.replace(/^\+/,"")}h="title"===a||"subTitle"===a||"ctrTitle"===a?(u?E(e,["a:majorFont","a:ea","attrs","typeface"]):"")||E(e,["a:majorFont","a:latin","attrs","typeface"])||E(e,["a:majorFont","a:ea","attrs","typeface"]):(u?E(e,["a:minorFont","a:ea","attrs","typeface"]):"")||E(e,["a:minorFont","a:latin","attrs","typeface"])||E(e,["a:minorFont","a:ea","attrs","typeface"])}return h||""}(e,t,r,i,a,o,s,p,c,f),v=U(eQ(eD(e,t,r,i,a,o,s,p),"b"))?"bold":"",R=U(eQ(eD(e,t,r,i,a,o,s,p),"i"))?"italic":"",b="sng"===eQ(eD(e,t,r,i,a,o,s,p),"u")?"underline":"",x="sngStrike"===eQ(eD(e,t,r,i,a,o,s,p),"strike")?"line-through":"",M=(u=eQ(eD(e,t,r,i,a,o,s,p),"spc"))&&0!==parseInt(u)?parseInt(u)/100+"pt":"",S=function(e,t,r,n,i,a,o,s,l){let c=function(e,t){for(let r of e){let e=E(r,["a:effectLst","a:outerShdw"]);if(!e)continue;let n=eX(e,t);if(n)return n}return null}(eD(e,t,r,n,i,a,o,s),l);if(c){let{h:e,v:t,blur:r,color:n}=c;if(!isNaN(t)&&!isNaN(e))return e+"pt "+t+"pt "+(r?r+"pt":"")+" "+n}return""}(e,t,r,i,a,o,s,p,c),w=(h=eQ(eD(e,t,r,i,a,o,s,p),"baseline"))&&0!==parseInt(h)?parseInt(h)>0?"super":"sub":"";if(g){if("string"==typeof g)m+=`color: ${g};`;else if(g.colors){let{colors:e,rot:t}=g,r=e.map(e=>`${e.color} ${e.pos}`).join(", "),n=`linear-gradient(${t+90}deg, ${r})`;m+=`background: ${n}; background-clip: text; color: transparent;`}}A&&(m+=`font-size: ${A};`),y&&(m+=`font-family: ${y};`),v&&(m+=`font-weight: ${v};`),R&&(m+=`font-style: ${R};`),b&&(m+=`text-decoration: ${b};`),x&&(m+=`text-decoration-line: ${x};`),M&&(m+=`letter-spacing: ${M};`),w&&(m+=`vertical-align: ${w};`),S&&(m+=`text-shadow: ${S};`);let O=E(e,["a:rPr","a:hlinkClick","attrs","r:id"]),L=O&&c.slideResObj[O];return L&&(m=function(e,t,r){let n=e,i=E(t,["a:rPr"]),a=i?G(i):"";if("SOLID_FILL"!==a&&"GRADIENT_FILL"!==a){var o;let e=((o=B("a:hlink",r))?o.startsWith("#")?o:`#${o}`:"")||"#0563C1";/color\s*:/.test(n)?n=n.replace(/color\s*:\s*[^;]+;/,`color: ${e};`):n+=`color: ${e};`}return"none"===E(t,["a:rPr","attrs","u"])||/text-decoration\s*:\s*underline/.test(n)||(n+="text-decoration: underline;"),n}(m,e,c)),{styleText:m,text:f,hasLink:L,linkURL:L?c.slideResObj[O].target:null}}function eJ(e,t,r){let n=E(e,["a:pathLst"]),i=E(n,["a:path"]);Array.isArray(i)&&(i=i.shift());let a=parseInt(i.attrs.w)||0,o=parseInt(i.attrs.h)||0,s=0===a?0:1/a*t,l=0===o?0:1/o*r,c="",u=E(i,["a:moveTo"]),h=i["a:lnTo"],p=i["a:cubicBezTo"],d=i["a:quadBezTo"],f=i["a:arcTo"],m=E(i,["a:close"]);Array.isArray(u)||(u=[u]);let g=[];if(u.length>0){if(Object.keys(u).forEach(e=>{if(!u[e])return;let t=u[e]["a:pt"];t&&Object.keys(t).forEach(e=>{let r=t[e],n=r.x,i=r.y,a=r.order;g.push({type:"movto",x:n,y:i,order:a})})}),h&&(Array.isArray(h)||(h=[h]),Object.keys(h).forEach(e=>{if(!h[e])return;let t=h[e]["a:pt"];t&&Object.keys(t).forEach(e=>{let r=t[e],n=r.x,i=r.y,a=r.order;g.push({type:"lnto",x:n,y:i,order:a})})})),p){let e=[];Array.isArray(p)||(p=[p]),Object.keys(p).forEach(t=>{p[t]&&p[t]["a:pt"]&&e.push(p[t]["a:pt"])}),e.forEach(e=>{let t=[];e.forEach(e=>{let r={x:e.attrs.x,y:e.attrs.y};t.push(r)});let r=e[0].attrs.order;g.push({type:"cubicBezTo",cubBzPt:t,order:r})})}if(d){let e=[];Array.isArray(d)||(d=[d]),Object.keys(d).forEach(t=>{d[t]&&d[t]["a:pt"]&&e.push(d[t]["a:pt"])}),e.forEach(e=>{let t=[];e.forEach(e=>{let r={x:e.attrs.x,y:e.attrs.y};t.push(r)});let r=e[0].attrs.order;g.push({type:"quadBezTo",quadBzPt:t,order:r})})}f&&(Array.isArray(f)?f:[f]).forEach(e=>{let t=e.attrs,r=t.order,n=t.hR,i=t.wR,a=t.stAng,o=t.swAng,s=0,l=0,c=E(e,["a:pt","attrs"]);c&&(s=c.x,l=c.y),g.push({type:"arcTo",hR:n,wR:i,stAng:a,swAng:o,shftX:s,shftY:l,order:r})}),m&&(Array.isArray(m)||(m=[m]),Object.keys(m).forEach(()=>{g.push({type:"close",order:1/0})})),g.sort((e,t)=>e.order-t.order);let e=0;for(;e<g.length;){if("movto"===g[e].type)c+=" M"+parseInt(g[e].x)*s+","+parseInt(g[e].y)*l;else if("lnto"===g[e].type)c+=" L"+parseInt(g[e].x)*s+","+parseInt(g[e].y)*l;else if("cubicBezTo"===g[e].type)c+=" C"+parseInt(g[e].cubBzPt[0].x)*s+","+parseInt(g[e].cubBzPt[0].y)*l+" "+parseInt(g[e].cubBzPt[1].x)*s+","+parseInt(g[e].cubBzPt[1].y)*l+" "+parseInt(g[e].cubBzPt[2].x)*s+","+parseInt(g[e].cubBzPt[2].y)*l;else if("quadBezTo"===g[e].type)c+=" Q"+parseInt(g[e].quadBzPt[0].x)*s+","+parseInt(g[e].quadBzPt[0].y)*l+" "+parseInt(g[e].quadBzPt[1].x)*s+","+parseInt(g[e].quadBzPt[1].y)*l;else if("arcTo"===g[e].type){let t=parseInt(g[e].hR)*s,r=parseInt(g[e].wR)*l,n=parseInt(g[e].stAng)/6e4,i=n+parseInt(g[e].swAng)/6e4;c+=function(e,t,r,n,i,a,o){let s,l=i;if(a>=i)for(;l<=a;){let a=Math.PI/180*l,o=e+Math.cos(a)*r,c=t+Math.sin(a)*n;l===i&&(s=" M"+o+" "+c),s+=" L"+o+" "+c,l++}else for(;l>a;){let a=Math.PI/180*l,o=e+Math.cos(a)*r,c=t+Math.sin(a)*n;l===i&&(s=" M "+o+" "+c),s+=" L "+o+" "+c,l--}return s+(o?" z":"")}(r,t,r,t,n,i,!1)}else"close"===g[e].type&&(c+="z");e++}}return c}function ej(e){return e?Array.isArray(e)?e:[e]:[]}async function eq(e,t){let r=t.split("/").pop();try{let n=e.file(t);if(!n||!r.toLowerCase().endsWith(".fntdata")&&!r.toLowerCase().endsWith(".eot"))return"";let i=await n.async("arraybuffer"),a=function(e){let t=new DataView(e),r=new Uint8Array(e);try{let e=t.getUint32(0,!0),n=t.getUint32(4,!0),i=t.getUint32(8,!0),a=t.getUint16(34,!0);if(20556!==a||65536!==i&&131073!==i&&131074!==i)return null;let o=e-n;if(o<0||o>=e)return null;let s=r.slice(o,e);if(s.length>=4){let e=s[0]<<24|s[1]<<16|s[2]<<8|s[3];if(65536!==e&&0x4f54544f!==e)return null}return s}catch(e){return null}}(i);if(!a)return"";let o=new Blob([a],{type:"font/ttf"});return URL.createObjectURL(o)}catch(e){return""}}let e0={微软雅黑:"Microsoft YaHei, PingFang SC, Noto Sans CJK SC, sans-serif","Microsoft YaHei":"Microsoft YaHei, PingFang SC, Noto Sans CJK SC, sans-serif","Microsoft YaHei UI":"Microsoft YaHei UI, Microsoft YaHei, PingFang SC, sans-serif","微软雅黑 UI":"Microsoft YaHei UI, Microsoft YaHei, PingFang SC, sans-serif",宋体:"SimSun, STSong, serif",SimSun:"SimSun, STSong, serif",新宋体:"NSimSun, SimSun, STSong, serif",NSimSun:"NSimSun, SimSun, serif",黑体:"SimHei, STHeiti, Heiti SC, sans-serif",SimHei:"SimHei, STHeiti, sans-serif",仿宋:"FangSong, STFangSong, serif",FangSong:"FangSong, STFangSong, serif",楷体:"KaiTi, STKaiti, serif",KaiTi:"KaiTi, STKaiti, serif",仿宋_GB2312:"FangSong_GB2312, FangSong, serif",楷体_GB2312:"KaiTi_GB2312, KaiTi, serif",方正舒体:"FZShuTi, STSong, serif",方正姚体:"FZYaoti, STSong, serif",华文细黑:"STXihei, Microsoft YaHei, sans-serif",华文楷体:"STKaiti, KaiTi, serif",华文宋体:"STSong, SimSun, serif",STSong:"STSong, SimSun, serif",华文中宋:"STZhongsong, SimSun, serif",华文仿宋:"STFangSong, FangSong, serif",华文彩云:"STCaiyun, STSong, serif",华文琥珀:"STHupo, STSong, serif",华文隶书:"STLiti, serif",华文行楷:"STXingkai, serif",华文新魏:"STXinwei, serif",STHeiti:"STHeiti, SimHei, sans-serif",苹方:"PingFang SC, Helvetica Neue, sans-serif","PingFang SC":"PingFang SC, Helvetica Neue, sans-serif","PingFang TC":"PingFang TC, PingFang SC, sans-serif","PingFang HK":"PingFang HK, PingFang SC, sans-serif",冬青黑体:"Hiragino Sans GB, Microsoft YaHei, sans-serif","Hiragino Sans GB":"Hiragino Sans GB, Microsoft YaHei, sans-serif",幼圆:"YouYuan, SimSun, sans-serif",YouYuan:"YouYuan, SimSun, sans-serif",隶书:"LiSu, STLiti, serif",LiSu:"LiSu, STLiti, serif","Noto Sans CJK SC":"Noto Sans CJK SC, Microsoft YaHei, sans-serif","Noto Serif CJK SC":"Noto Serif CJK SC, SimSun, serif","Source Han Sans CN":"Source Han Sans CN, Microsoft YaHei, sans-serif","Source Han Serif CN":"Source Han Serif CN, SimSun, serif",Meiryo:"Meiryo, Microsoft YaHei, sans-serif","Meiryo UI":"Meiryo UI, Meiryo, sans-serif","MS Gothic":"MS Gothic, monospace","MS PGothic":"MS PGothic, sans-serif","MS Mincho":"MS Mincho, serif","Yu Gothic":"Yu Gothic, Meiryo, sans-serif","Yu Mincho":"Yu Mincho, serif","Malgun Gothic":"Malgun Gothic, Apple SD Gothic Neo, sans-serif",Batang:"Batang, serif",Gulim:"Gulim, sans-serif",Dotum:"Dotum, sans-serif",Calibri:"Calibri, Carlito, Helvetica Neue, Arial, sans-serif",Cambria:"Cambria, Georgia, serif","Cambria Math":"Cambria Math, Cambria, Georgia, serif",Candara:"Candara, Optima, sans-serif",Consolas:"Consolas, Menlo, monospace",Constantia:"Constantia, Palatino, serif",Corbel:"Corbel, Skia, sans-serif","Franklin Gothic Medium":"Franklin Gothic Medium, Arial Narrow, sans-serif","Gill Sans MT":"Gill Sans MT, Gill Sans, sans-serif","Gill Sans":"Gill Sans, Optima, sans-serif",Verdana:"Verdana, Geneva, Tahoma, sans-serif",Tahoma:"Tahoma, Verdana, sans-serif",Arial:"Arial, Helvetica, sans-serif","Arial Black":"Arial Black, Gadget, sans-serif","Arial Narrow":"Arial Narrow, Arial, sans-serif","Arial Unicode MS":"Arial Unicode MS, Arial, sans-serif","Times New Roman":"Times New Roman, Times, serif","Courier New":"Courier New, Courier, monospace",Georgia:"Georgia, Times New Roman, serif","Palatino Linotype":"Palatino Linotype, Palatino, Book Antiqua, serif","Book Antiqua":"Book Antiqua, Palatino, serif",Garamond:"Garamond, Hoefler Text, serif",Century:"Century, Times New Roman, serif","Century Gothic":"Century Gothic, Futura, sans-serif","Comic Sans MS":"Comic Sans MS, Chalkboard, cursive",Impact:"Impact, Charcoal, sans-serif","Lucida Console":"Lucida Console, Monaco, monospace","Lucida Sans Unicode":"Lucida Sans Unicode, Lucida Grande, sans-serif",Symbol:"Symbol, serif",Wingdings:"Wingdings, Zapf Dingbats, sans-serif","Wingdings 2":"Wingdings 2, sans-serif","Wingdings 3":"Wingdings 3, sans-serif",Webdings:"Webdings, sans-serif","Segoe UI":"Segoe UI, Helvetica Neue, Arial, sans-serif","Segoe UI Light":"Segoe UI Light, Segoe UI, sans-serif","Segoe UI Semibold":"Segoe UI Semibold, Segoe UI, sans-serif","Segoe UI Black":"Segoe UI Black, Segoe UI, sans-serif","Segoe Print":"Segoe Print, Comic Sans MS, cursive","Segoe Script":"Segoe Script, Comic Sans MS, cursive","Trebuchet MS":"Trebuchet MS, Helvetica, sans-serif",Palatino:"Palatino, Palatino Linotype, serif",Helvetica:"Helvetica, Arial, sans-serif","Helvetica Neue":"Helvetica Neue, Helvetica, Arial, sans-serif",Futura:"Futura, Century Gothic, sans-serif",Optima:"Optima, Segoe UI, sans-serif",Monaco:"Monaco, Consolas, monospace",Menlo:"Menlo, Consolas, monospace",Roboto:"Roboto, Helvetica Neue, Arial, sans-serif","Open Sans":"Open Sans, Helvetica Neue, Arial, sans-serif",Lato:"Lato, Helvetica Neue, Arial, sans-serif",Oswald:"Oswald, Impact, sans-serif",Raleway:"Raleway, Helvetica Neue, Arial, sans-serif",Nunito:"Nunito, Helvetica Neue, Arial, sans-serif","Hiragino Mincho Pro":"Hiragino Mincho Pro, STSong, serif","Hiragino Kaku Gothic Pro":"Hiragino Kaku Gothic Pro, Microsoft YaHei, sans-serif","Hiragino Kaku Gothic ProN":"Hiragino Kaku Gothic ProN, sans-serif","Apple LiGothic":"Apple LiGothic, Microsoft YaHei, sans-serif","Apple LiSung":"Apple LiSung, STSong, serif","LiHei Pro":"LiHei Pro, Microsoft YaHei, sans-serif","LiSong Pro":"LiSong Pro, STSong, serif"};function e1(e,t){if(e)return ef(e["a:solidFill"]||e,void 0,void 0,t)}async function e2(e,t,r,n){let i,a,o,s,l=E(e,["attrs","rowSpan"]),c=E(e,["attrs","gridSpan"]),u=E(e,["attrs","vMerge"]),h=E(e,["attrs","hMerge"]),p=E(e,["a:tcPr","attrs","anchor"]),d=E(e,["a:tcPr"]);if(d){let e=await ep({"p:spPr":d},n,"slide");e&&"color"===e.type&&e.value&&(i=e.value)}if(!i){let e;r&&(e=E(t,[r,"a:tcStyle","a:fill","a:solidFill"])),e&&(i=ef(e,void 0,void 0,n))}r&&(s=E(t,[r,"a:tcTxStyle"])),s&&(a=e1(s,n),"on"===E(s,["attrs","b"])&&(o=!0));let f=E(e,["a:tcPr","a:lnB"]);!f&&(r&&(f=E(t&&t[r],["a:tcStyle","a:tcBdr","a:bottom","a:ln"])),f||(f=E(t,["a:wholeTbl","a:tcStyle","a:tcBdr","a:bottom","a:ln"])));let m=E(e,["a:tcPr","a:lnT"]);!m&&(r&&(m=E(t&&t[r],["a:tcStyle","a:tcBdr","a:top","a:ln"])),m||(m=E(t,["a:wholeTbl","a:tcStyle","a:tcBdr","a:top","a:ln"])));let g=E(e,["a:tcPr","a:lnL"]);!g&&(r&&(g=E(t&&t[r],["a:tcStyle","a:tcBdr","a:left","a:ln"])),g||(g=E(t,["a:wholeTbl","a:tcStyle","a:tcBdr","a:left","a:ln"])));let A=E(e,["a:tcPr","a:lnR"]);!A&&(r&&(A=E(t&&t[r],["a:tcStyle","a:tcBdr","a:right","a:ln"])),A||(A=E(t,["a:wholeTbl","a:tcStyle","a:tcBdr","a:right","a:ln"])));let y={};return f&&(y.bottom=eg(f,void 0,n)),m&&(y.top=eg(m,void 0,n)),g&&(y.left=eg(g,void 0,n)),A&&(y.right=eg(A,void 0,n)),{fillColor:i,fontColor:a,fontBold:o,borders:y,vAlign:"ctr"===p?"mid":"b"===p?"down":"up",rowSpan:l?+l:void 0,colSpan:c?+c:void 0,vMerge:u?+u:void 0,hMerge:h?+h:void 0}}function e3(e,t,r,n,i,a,o){let s="",l=a>=i?1:-1,c=i,u=e=>l>0?e<=a:e>=a;for(;u(c);){let a=Math.PI/180*c,o=e+Math.cos(a)*r,u=t+Math.sin(a)*n;c===i&&(s=` M${o} ${u}`),s+=` L${o} ${u}`,c+=l}return o&&(s+=" z"),s}function e5(e,t,r,n){let i="";switch(e){case"rect":case"actionButtonBlank":case"leftRightCircularArrow":case"chartPlus":case"chartStar":case"chartX":case"cornerTabs":case"flowChartOfflineStorage":case"folderCorner":case"funnel":case"lineInv":case"nonIsoscelesTrapezoid":case"plaqueTabs":case"squareTabs":case"upDownArrowCallout":default:i=`M 0 0 L ${t} 0 L ${t} ${r} L 0 ${r} Z`;break;case"flowChartPredefinedProcess":i=`M 0 0 L ${t} 0 L ${t} ${r} L 0 ${r} Z M ${1/8*t} 0 L ${1/8*t} ${r} M ${7/8*t} 0 L ${7/8*t} ${r}`;break;case"flowChartInternalStorage":i=`M 0 0 L ${t} 0 L ${t} ${r} L 0 ${r} Z M ${1/8*t} 0 L ${1/8*t} ${r} M 0 ${1/8*r} L ${t} ${1/8*r}`;break;case"flowChartCollate":i=`M 0,0 L ${t},0 L 0,${r} L ${t},${r} z`;break;case"flowChartDocument":{let e=10800*t/21600,n=17322*r/21600,a=20172*r/21600,o=23922*r/21600;i=`M 0,0 L ${t},0 L ${t},${n} C ${e},${n} ${e},${o} 0,${a} z`}break;case"flowChartMultidocument":{let e=18022*r/21600,n=3675*r/21600,a=23542*r/21600,o=1815*r/21600,s=16252*r/21600,l=16352*r/21600,c=14392*r/21600,u=20782*r/21600,h=14467*r/21600,p=1532*t/21600,d=2e4*t/21600,f=9298*t/21600,m=19298*t/21600,g=18595*t/21600,A=2972*t/21600,y=20800*t/21600;i=`M 0,${n} L ${g},${n} L ${g},${e} C ${f},${e} ${f},${a} 0,${u} z M ${p},${n} L ${p},${o} L ${d},${o} L ${d},${s} C ${m},${s} ${g},${l} ${g},${l} M ${A},${o} L ${A},0 L ${t},0 L ${t},${c} C ${y},${c} ${d},${h} ${d},${h}`}break;case"actionButtonBackPrevious":{let e=t/2,n=r/2,a=3*Math.min(t,r)/8,o=e+a;i=`M 0,0 L ${t},0 L ${t},${r} L 0,${r} z M ${e-a},${n} L ${o},${n-a} L ${o},${n+a} z`}break;case"actionButtonBeginning":{let e=t/2,n=r/2,a=Math.min(t,r),o=3*a/8,s=n-o,l=n+o,c=e-o,u=e+o,h=3*a/4,p=c+h/8;i=`M 0,0 L ${t},0 L ${t},${r} L 0,${r} z M ${c+h/4},${n} L ${u},${s} L ${u},${l} z M ${p},${s} L ${c},${s} L ${c},${l} L ${p},${l} z`}break;case"actionButtonDocument":{let e=t/2,n=r/2,a=Math.min(t,r),o=3*a/8,s=n-o,l=n+o,c=9*a/32,u=e-c,h=e+c,p=3*a/16,d=h-p,f=s+p;i=`M 0,0 L ${t},0 L ${t},${r} L 0,${r} z M ${u},${s} L ${d},${s} L ${h},${f} L ${h},${l} L ${u},${l} z M ${d},${s} L ${d},${f} L ${h},${f} z`}break;case"actionButtonEnd":{let e=t/2,n=r/2,a=Math.min(t,r),o=3*a/8,s=n-o,l=n+o,c=e-o,u=e+o,h=3*a/4,p=c+7*h/8;i=`M 0,${r} L ${t},${r} L ${t},0 L 0,0 z M ${p},${s} L ${u},${s} L ${u},${l} L ${p},${l} z M ${c+3*h/4},${n} L ${c},${s} L ${c},${l} z`}break;case"actionButtonForwardNext":{let e=t/2,n=r/2,a=3*Math.min(t,r)/8,o=e-a;i=`M 0,${r} L ${t},${r} L ${t},0 L 0,0 z M ${e+a},${n} L ${o},${n-a} L ${o},${n+a} z`}break;case"actionButtonHelp":{let e=t/2,n=r/2,a=Math.min(t,r),o=3*a/8,s=n-o,l=e-o,c=3*a/4,u=c/7,h=3*c/14,p=2*c/7,d=s+p,f=s+17*c/28,m=s+21*c/28,g=s+11*c/14,A=l+h,y=l+3*c/7,v=l+4*c/7,R=c/14,b=3*c/28,x=A+p,M=y+u,S=g+b,w=(v+y+p)/2;i=`M 0,0 L ${t},0 L ${t},${r} L 0,${r} z M ${A},${d} ${e3(x,d,p,p,180,360,!1).replace("M","L")} ${e3(w,d,u,h,0,90,!1).replace("M","L")} ${e3(w,f,R,b,270,180,!1).replace("M","L")} L ${v},${m} L ${y},${m} L ${y},${f} ${e3(M,f,u,h,180,270,!1).replace("M","L")} ${e3(v,d,R,b,90,0,!1).replace("M","L")} ${e3(x,d,u,u,0,-180,!1).replace("M","L")} z M ${e},${g} ${e3(e,S,b,b,270,630,!1).replace("M","L")} z`}break;case"actionButtonHome":{let e=t/2,n=r/2,a=Math.min(t,r),o=3*a/8,s=n-o,l=n+o,c=e-o,u=3*a/4,h=s+u/16,p=s+3*u/4,d=c+u/8,f=c+7*u/16,m=c+9*u/16,g=c+11*u/16,A=c+13*u/16,y=c+7*u/8;i=`M 0,0 L ${t},0 L ${t},${r} L 0,${r} z M ${e},${s} L ${c},${n} L ${d},${n} L ${d},${l} L ${y},${l} L ${y},${n} L ${e+o},${n} L ${A},${s+5*u/16} L ${A},${h} L ${g},${h} L ${g},${s+3*u/16} z M ${f},${p} L ${m},${p} L ${m},${l} L ${f},${l} z`}break;case"actionButtonInformation":{let e=t/2,n=r/2,a=Math.min(t,r),o=3*a/8,s=n-o,l=e-o,c=3*a/4,u=5*c/16,h=s+c/32,p=s+u,d=s+3*c/8,f=s+13*c/16,m=s+7*c/8,g=l+u,A=l+13*c/32,y=l+19*c/32,v=l+11*c/16,R=3*c/32,b=s+o,x=h+R;i=`M 0,0 L ${t},0 L ${t},${r} L 0,${r} z M ${e},${s} ${e3(e,b,o,o,270,630,!1).replace("M","L")} z M ${e},${h} ${e3(e,x,R,R,270,630,!1).replace("M","L")} M ${g},${p} L ${y},${p} L ${y},${f} L ${v},${f} L ${v},${m} L ${g},${m} L ${g},${f} L ${A},${f} L ${A},${d} L ${g},${d} z`}break;case"actionButtonMovie":{let e=t/2,n=r/2,a=Math.min(t,r),o=e-3*a/8,s=n-3*a/8,l=e+3*a/8,c=3*a/4,u=o+1455*c/21600,h=o+1905*c/21600,p=o+2325*c/21600,d=o+17010*c/21600,f=o+20595*c/21600,m=s+5280*c/21600,g=s+5730*c/21600,A=s+6630*c/21600,y=s+7492*c/21600,v=s+9067*c/21600,R=s+9555*c/21600,b=s+13342*c/21600,x=s+14580*c/21600,M=s+15592*c/21600;i=`M 0,${r} L ${t},${r} L ${t},0 L 0,0 z M ${o},${m} L ${o},${R} L ${u},${R} L ${h},${v} L ${p},${v} L ${p},${M} L ${d},${M} L ${d},${b} L ${o+19335*c/21600},${b} L ${f},${x} L ${l},${x} L ${l},${A} L ${f},${A} L ${o+19725*c/21600},${y} L ${d},${y} L ${d},${A} L ${o+16155*c/21600},${g} L ${h},${g} L ${u},${m} z`}break;case"actionButtonReturn":{let e=t/2,n=r/2,a=Math.min(t,r),o=3*a/8,s=n-o,l=n+o,c=e-o,u=e+o,h=3*a/4,p=3*h/4,d=5*h/8,f=3*h/8,m=h/4,g=s+p,A=s+d,y=s+m,v=c+d,R=c+f,b=h/8,x=v-b,M=g-b,S=c+f,w=l-f;i=`M 0,${r} L ${t},${r} L ${t},0 L 0,0 z M ${u},${y} L ${c+p},${s} L ${e},${y} L ${v},${y} L ${v},${A} ${e3(x,A,b,b,0,90,!1).replace("M","L")} L ${R},${g} ${e3(R,M,b,b,90,180,!1).replace("M","L")} L ${c+m},${y} L ${c},${y} L ${c},${A} ${e3(S,A,f,f,180,90,!1).replace("M","L")} L ${e},${l} ${e3(e,w,f,f,90,0,!1).replace("M","L")} L ${c+7*h/8},${y} z`}break;case"actionButtonSound":{let e=t/2,n=r/2,a=Math.min(t,r),o=3*a/8,s=n-o,l=e-o,c=e+o,u=3*a/4,h=5*u/16,p=s+h,d=s+11*u/16,f=l+h,m=l+5*u/8,g=l+3*u/4;i=`M 0,0 L ${t},0 L ${t},${r} L 0,${r} z M ${l},${p} L ${f},${p} L ${m},${s} L ${m},${n+o} L ${f},${d} L ${l},${d} z M ${g},${p} L ${c},${s+u/8} M ${g},${n} L ${c},${n} M ${g},${d} L ${c},${s+7*u/8}`}break;case"irregularSeal1":i=`M ${10800*t/21600},${5800*r/21600} L ${14522*t/21600},0 L ${14155*t/21600},${5325*r/21600} L ${18380*t/21600},${4457*r/21600} L ${16702*t/21600},${7315*r/21600} L ${21097*t/21600},${8137*r/21600} L ${17607*t/21600},${10475*r/21600} L ${t},${13290*r/21600} L ${16837*t/21600},${12942*r/21600} L ${18145*t/21600},${18095*r/21600} L ${14020*t/21600},${14457*r/21600} L ${13247*t/21600},${19737*r/21600} L ${10532*t/21600},${14935*r/21600} L ${8485*t/21600},${r} L ${7715*t/21600},${15627*r/21600} L ${4762*t/21600},${17617*r/21600} L ${5667*t/21600},${13937*r/21600} L ${135*t/21600},${14587*r/21600} L ${3722*t/21600},${11775*r/21600} L 0,${8615*r/21600} L ${4627*t/21600},${7617*r/21600} L ${370*t/21600},${2295*r/21600} L ${7312*t/21600},${6320*r/21600} L ${8352*t/21600},${2295*r/21600} z`;break;case"irregularSeal2":i=`M ${11462*t/21600},${4342*r/21600} L ${14790*t/21600},0 L ${14525*t/21600},${5777*r/21600} L ${18007*t/21600},${3172*r/21600} L ${16380*t/21600},${6532*r/21600} L ${t},${6645*r/21600} L ${16985*t/21600},${9402*r/21600} L ${18270*t/21600},${11290*r/21600} L ${16380*t/21600},${12310*r/21600} L ${18877*t/21600},${15632*r/21600} L ${14640*t/21600},${14350*r/21600} L ${14942*t/21600},${17370*r/21600} L ${12180*t/21600},${15935*r/21600} L ${11612*t/21600},${18842*r/21600} L ${9872*t/21600},${17370*r/21600} L ${8700*t/21600},${19712*r/21600} L ${7527*t/21600},${18125*r/21600} L ${4917*t/21600},${r} L ${4805*t/21600},${18240*r/21600} L ${1285*t/21600},${17825*r/21600} L ${3330*t/21600},${15370*r/21600} L 0,${12877*r/21600} L ${3935*t/21600},${11592*r/21600} L ${1172*t/21600},${8270*r/21600} L ${5372*t/21600},${7817*r/21600} L ${4502*t/21600},${3625*r/21600} L ${8550*t/21600},${6382*r/21600} L ${9722*t/21600},${1887*r/21600} z`;break;case"flowChartTerminator":{let e=3475*t/21600,n=18125*t/21600,a=10800*r/21600;i=`M ${e},0 L ${n},0 ${e3(n,r/2,e,a,270,450,!1).replace("M","L")} L ${e},${r} ${e3(e,r/2,e,a,90,270,!1).replace("M","L")} z`}break;case"flowChartPunchedTape":{let e=5*t/20,n=2*r/20,a=18*r/20;i=`M 0,${n} ${e3(e,n,e,n,180,0,!1).replace("M","L")} ${e3(.75*t,n,e,n,180,360,!1).replace("M","L")} L ${t},${a} ${e3(.75*t,a,e,n,0,-180,!1).replace("M","L")} ${e3(e,a,e,n,0,180,!1).replace("M","L")} z`}break;case"flowChartOnlineStorage":{let e=t/6,n=3*r/6;i=`M ${e},0 L ${t},0 ${e3(t,r/2,e,n,270,90,!1).replace("M","L")} L ${e},${r} ${e3(e,r/2,e,n,90,270,!1).replace("M","L")} z`}break;case"flowChartDisplay":{let e=t/6,n=5*t/6,a=3*r/6;i=`M 0,${a} L ${e},0 L ${n},0 ${e3(t,r/2,e,a,270,450,!1).replace("M","L")} L ${e},${r} z`}break;case"flowChartDelay":{let e=t/2,n=r/2;i=`M 0,0 L ${e},0 ${e3(e,n,e,n,270,450,!1).replace("M","L")} L 0,${r} z`}break;case"flowChartMagneticTape":{let e=t/2,n=r/2,a=n*Math.sin(Math.PI/4),o=n+a,s=180*Math.atan(r/t)/Math.PI;i=`M ${e},${r} ${e3(e,n,e,n,90,180,!1).replace("M","L")} ${e3(e,n,e,n,180,270,!1).replace("M","L")} ${e3(e,n,e,n,270,360,!1).replace("M","L")} ${e3(e,n,e,n,0,s,!1).replace("M","L")} L ${t},${o} L ${t},${r} z`}break;case"ellipse":case"flowChartConnector":case"flowChartSummingJunction":case"flowChartOr":{let n=t/2,a=r/2,o=t/2,s=r/2;if(i=`M ${n-o},${a} A ${o},${s} 0 1,0 ${n+o},${a} A ${o},${s} 0 1,0 ${n-o},${a} Z`,"flowChartOr"===e)i+=` M ${t/2} 0 L ${t/2} ${r} M 0 ${r/2} L ${t} ${r/2}`;else if("flowChartSummingJunction"===e){let e=Math.PI/4,o=t/2*Math.cos(e),s=r/2*Math.sin(e),l=n-o,c=n+o,u=a-s,h=a+s;i+=` M ${l} ${u} L ${c} ${h} M ${c} ${u} L ${l} ${h}`}}break;case"roundRect":case"round1Rect":case"round2DiagRect":case"round2SameRect":case"snip1Rect":case"snip2DiagRect":case"snip2SameRect":case"flowChartAlternateProcess":case"flowChartPunchedCard":{let a,o,s,l,c=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]);if(c&&Array.isArray(c))for(let e of c){let t=E(e,["attrs","name"]);"adj1"===t?a=parseInt(E(e,["attrs","fmla"]).substring(4))/5e4:"adj2"===t&&(o=parseInt(E(e,["attrs","fmla"]).substring(4))/5e4)}else c&&(a=parseInt(E(c,["attrs","fmla"]).substring(4))/5e4,o=0);switch(e){case"roundRect":case"flowChartAlternateProcess":s="round",l="cornrAll",void 0===a&&(a=.33334),o=0;break;case"round1Rect":s="round",l="cornr1",void 0===a&&(a=.33334),o=0;break;case"round2DiagRect":s="round",l="diag",void 0===a&&(a=.33334),void 0===o&&(o=0);break;case"round2SameRect":s="round",l="cornr2",void 0===a&&(a=.33334),void 0===o&&(o=0);break;case"snip1Rect":s="snip",l="cornr1",void 0===a&&(a=.33334),o=0;break;case"flowChartPunchedCard":s="snip",l="cornrTL",void 0===a&&(a=.33334),o=0;break;case"snip2DiagRect":s="snip",l="diag",void 0===a&&(a=0),void 0===o&&(o=.33334);break;case"snip2SameRect":s="snip",l="cornr2",void 0===a&&(a=.33334),void 0===o&&(o=0)}i=function(e,t,r,n,i,a){let o,s,l,c;switch(a){case"cornr1":o=0,s=0,l=0,c=r;break;case"cornr2":o=r,s=n,l=n,c=r;break;case"cornrAll":o=r,s=r,l=r,c=r;break;case"diag":o=r,s=n,l=r,c=n;break;case"cornrTL":o=r,s=0,l=0,c=0;break;default:o=s=l=c=0}let u=Math.min(e,t)/2*o,h=Math.min(e,t)/2*s,p=Math.min(e,t)/2*l,d=Math.min(e,t)/2*c;return"round"===i?`M0,${t-h} Q0,${t} ${h},${t} L${e-p},${t} Q${e},${t} ${e},${t-p} L${e},${d} Q${e},0 ${e-d},0 L${u},0 Q0,0 0,${u} z`:"snip"===i?`M0,${u} L0,${t-h} L${h},${t} L${e-p},${t} L${e},${t-p} L${e},${d} L${e-d},0 L${u},0 z`:""}(t,r,a,o,s,l)}break;case"snipRoundRect":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=.33334,o=.33334;if(e)for(let t of e){let e=E(t,["attrs","name"]);"adj1"===e?a=parseInt(E(t,["attrs","fmla"]).substring(4))/5e4:"adj2"===e&&(o=parseInt(E(t,["attrs","fmla"]).substring(4))/5e4)}i=`M0,${r} L${t},${r} L${t},${r/2*o} L${t/2+t/2*(1-o)},0 L${t/2*a},0 Q0,0 0,${r/2*a} z`}break;case"bentConnector2":i=`M ${t} 0 L ${t} ${r} L 0 ${r}`;break;case"rtTriangle":i=`M 0 0 L 0 ${r} L ${t} ${r} Z`;break;case"triangle":case"flowChartExtract":case"flowChartMerge":{let a=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),o=.5;a&&(o=parseInt(a.substring(4))*eR);let s=t*o,l=0,c=0,u=r,h=t,p=r;"flowChartMerge"===e&&([s,l]=[t-s,r-l],[c,u]=[t-c,r-u],[h,p]=[t-h,r-p]),i=`M ${s} ${l} L ${c} ${u} L ${h} ${p} Z`}break;case"diamond":case"flowChartDecision":case"flowChartSort":i=`M ${t/2} 0 L 0 ${r/2} L ${t/2} ${r} L ${t} ${r/2} Z`,"flowChartSort"===e&&(i+=` M 0 ${r/2} L ${t} ${r/2}`);break;case"trapezoid":case"flowChartManualOperation":case"flowChartManualInput":{let a=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),o=.2;if(a){let e=Math.min(t,r),n=Math.max(0,Math.min(parseInt(a.substring(4)),5e4*t/e));o=e*n/1e5/t}let s=t*o,l=0,c=0,u=r,h=t,p=r,d=(1-o)*t,f=0;"flowChartManualInput"===e&&(o=0,l=r/5,s=t*o,d=(1-o)*t),"flowChartManualOperation"===e&&([s,l]=[t-s,r-l],[c,u]=[t-c,r-u],[h,p]=[t-h,r-p],[d,f]=[t-d,r-f]),i=`M ${s} ${l} L ${c} ${u} L ${h} ${p} L ${d} ${f} Z`}break;case"parallelogram":case"flowChartInputOutput":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),a=.25;if(e){let n=Math.min(t,r),i=Math.max(0,Math.min(parseInt(e.substring(4)),1e5*t/n));a=n*i/2e5/t}i=`M ${a*t} 0 L 0 ${r} L ${(1-a)*t} ${r} L ${t} 0 Z`}break;case"pentagon":i=`M ${.5*t} 0 L 0 ${.375*r} L ${.15*t} ${r} L ${.85*t} ${r} L ${t} ${.375*r} Z`;break;case"hexagon":case"flowChartPreparation":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),a=25e3*eR;e&&(a=parseInt(e.substring(4))*eR);let o=1e5*eR,s=Math.min(t,r),l=5e4*eR*t/s,c=s*(a<0?0:a>l?l:a)/o,u=t-c,h=115470*eR*(r/2)/o*Math.sin(60*Math.PI/180),p=r/2,d=p-h,f=p+h;i=`M 0,${p} L ${c},${d} L ${u},${d} L ${t},${p} L ${u},${f} L ${c},${f} z`}break;case"heptagon":i=`M ${.5*t} 0 L ${t/8} ${r/4} L 0 ${5/8*r} L ${t/4} ${r} L ${.75*t} ${r} L ${t} ${5/8*r} L ${7/8*t} ${r/4} Z`;break;case"octagon":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),a=.25;e&&(a=parseInt(e.substring(4))/1e5);let o=1-a;i=`M ${a*t} 0 L 0 ${a*r} L 0 ${o*r} L ${a*t} ${r} L ${o*t} ${r} L ${t} ${o*r} L ${t} ${a*r} L ${o*t} 0 Z`}break;case"decagon":i=`M ${3/8*t} 0 L ${t/8} ${r/8} L 0 ${r/2} L ${t/8} ${7/8*r} L ${3/8*t} ${r} L ${5/8*t} ${r} L ${7/8*t} ${7/8*r} L ${t} ${r/2} L ${7/8*t} ${r/8} L ${5/8*t} 0 Z`;break;case"dodecagon":i=`M ${3/8*t} 0 L ${t/8} ${r/8} L 0 ${3/8*r} L 0 ${5/8*r} L ${t/8} ${7/8*r} L ${3/8*t} ${r} L ${5/8*t} ${r} L ${7/8*t} ${7/8*r} L ${t} ${5/8*r} L ${t} ${3/8*r} L ${7/8*t} ${r/8} L ${5/8*t} 0 Z`;break;case"star4":{let e=t/2,a=r/2,o=t/2,s=r/2,l=19098*eR,c=5e4*eR,u=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]);u&&"adj"===u.attrs.name&&(l=parseInt(u.attrs.fmla.substring(4))*eR);let h=l<0?0:l>c?c:l,p=o*h/c*.7071067811847432,d=s*h/c*.7071067811883519,f=e-p,m=e+p,g=a-d,A=a+d;i=`M 0,${a} L ${f},${g} L ${e},0 L ${m},${g} L ${t},${a} L ${m},${A} L ${e},${r} L ${f},${A} z`}break;case"star5":{let e=t/2,a=r/2,o=t/2,s=r/2,l=19098*eR,c=105146*eR,u=110557*eR,h=5e4*eR,p=1e5*eR,d=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]);d&&Object.keys(d).forEach(e=>{let t=d[e].attrs.name;"adj"===t?l=parseInt(d[e].attrs.fmla.substring(4))*eR:"hf"===t?c=parseInt(d[e].attrs.fmla.substring(4))*eR:"vf"===t&&(u=parseInt(d[e].attrs.fmla.substring(4))*eR)});let f=l<0?0:l>h?h:l,m=o*c/p,g=s*u/p,A=a*u/p,y=.9510565162948381*m,v=.5877852522903303*m,R=A-.3090169943759181*g,b=A- -.8090169943765043*g,x=m*f/h,M=g*f/h,S=.9510565162887857*x,w=.5877852522899959*x,O=A-.8090169943767472*M,L=A- -.3090169943945457*M;i=`M ${e-y},${R} L ${e-w},${O} L ${e},0 L ${e+w},${O} L ${e+y},${R} L ${e+S},${L} L ${e+v},${b} L ${e},${A+M} L ${e-v},${b} L ${e-S},${L} z`}break;case"star6":{let e=t/2,a=r/2,o=t/2,s=r/2,l=r/4,c=28868*eR,u=115470*eR,h=5e4*eR,p=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]);p&&Object.keys(p).forEach(e=>{let t=p[e].attrs.name;"adj"===t?c=parseInt(p[e].attrs.fmla.substring(4))*eR:"hf"===t&&(u=parseInt(p[e].attrs.fmla.substring(4))*eR)});let d=c<0?0:c>h?h:c,f=o*u/(1e5*eR),m=.866025403783588*f,g=e-m,A=e+m,y=a+l,v=f*d/h,R=v/2,b=e-R,x=e+R,M=s*d/h*.8660254037861398,S=a-M,w=a+M;i=`M ${g},${l} L ${b},${S} L ${e},0 L ${x},${S} L ${A},${l} L ${e+v},${a} L ${A},${y} L ${x},${w} L ${e},${r} L ${b},${w} L ${g},${y} L ${e-v},${a} z`}break;case"star7":{let e=t/2,a=r/2,o=t/2,s=r/2,l=34601*eR,c=102572*eR,u=105210*eR,h=5e4*eR,p=1e5*eR,d=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]);d&&Object.keys(d).forEach(e=>{let t=d[e].attrs.name;"adj"===t?l=parseInt(d[e].attrs.fmla.substring(4))*eR:"hf"===t?c=parseInt(d[e].attrs.fmla.substring(4))*eR:"vf"===t&&(u=parseInt(d[e].attrs.fmla.substring(4))*eR)});let f=l<0?0:l>h?h:l,m=o*c/p,g=s*u/p,A=a*u/p,y=97493*m/1e5,v=78183*m/1e5,R=43388*m/1e5,b=A-62349*g/1e5,x=A+22252*g/1e5,M=A+90097*g/1e5,S=m*f/h,w=g*f/h,O=97493*S/1e5,L=78183*S/1e5,N=43388*S/1e5,_=A-90097*w/1e5,T=A-22252*w/1e5,P=A+62349*w/1e5;i=`M ${e-y},${x} L ${e-O},${T} L ${e-v},${b} L ${e-N},${_} L ${e},0 L ${e+N},${_} L ${e+v},${b} L ${e+O},${T} L ${e+y},${x} L ${e+L},${P} L ${e+R},${M} L ${e},${A+w} L ${e-R},${M} L ${e-L},${P} z`}break;case"star8":{let e=t/2,a=r/2,o=t/2,s=r/2,l=37500*eR,c=5e4*eR,u=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]);u&&"adj"===u.attrs.name&&(l=parseInt(u.attrs.fmla.substring(4))*eR);let h=l<0?0:l>c?c:l,p=.7071067811847432*o,d=e-p,f=e+p,m=.7071067811883519*s,g=a-m,A=a+m,y=o*h/c,v=s*h/c,R=92388*y/1e5,b=38268*y/1e5,x=92388*v/1e5,M=38268*v/1e5,S=e-R,w=e-b,O=e+b,L=e+R,N=a-x,_=a-M,T=a+M,P=a+x;i=`M 0,${a} L ${S},${_} L ${d},${g} L ${w},${N} L ${e},0 L ${O},${N} L ${f},${g} L ${L},${_} L ${t},${a} L ${L},${T} L ${f},${A} L ${O},${P} L ${e},${r} L ${w},${P} L ${d},${A} L ${S},${T} z`}break;case"star10":{let e=t/2,a=r/2,o=t/2,s=r/2,l=42533*eR,c=105146*eR,u=5e4*eR,h=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]);h&&Object.keys(h).forEach(e=>{let t=h[e].attrs.name;"adj"===t?l=parseInt(h[e].attrs.fmla.substring(4))*eR:"hf"===t&&(c=parseInt(h[e].attrs.fmla.substring(4))*eR)});let p=l<0?0:l>u?u:l,d=o*c/(1e5*eR),f=95106*d/1e5,m=58779*d/1e5,g=e-f,A=e-m,y=e+m,v=e+f,R=80902*s/1e5,b=30902*s/1e5,x=a-R,M=a-b,S=a+b,w=a+R,O=d*p/u,L=s*p/u,N=80902*O/1e5,_=30902*O/1e5,T=95106*L/1e5,P=58779*L/1e5,C=e-N,I=e-_,k=e+_,F=e+N,X=a-T,U=a-P,W=a+P,V=a+T;i=`M ${g},${M} L ${C},${U} L ${A},${x} L ${I},${X} L ${e},0 L ${k},${X} L ${y},${x} L ${F},${U} L ${v},${M} L ${e+O},${a} L ${v},${S} L ${F},${W} L ${y},${w} L ${k},${V} L ${e},${r} L ${I},${V} L ${A},${w} L ${C},${W} L ${g},${S} L ${e-O},${a} z`}break;case"star12":{let e=t/2,a=r/2,o=t/2,s=r/2,l=r/4,c=t/4,u=37500*eR,h=5e4*eR,p=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]);p&&"adj"===p.attrs.name&&(u=parseInt(p.attrs.fmla.substring(4))*eR);let d=u<0?0:u>h?h:u,f=.866025403783588*o,m=.8660254037861398*s,g=e-f,A=3*t/4,y=e+f,v=a-m,R=3*r/4,b=a+m,x=o*d/h,M=s*d/h,S=.9659258262888482*x,w=.7071067811847432*x,O=.2588190450984128*x,L=.965925826290169*M,N=.7071067811883519*M,_=.25881904510334236*M,T=e-S,P=e-w,C=e-O,I=e+O,k=e+w,F=e+S,X=a-L,U=a-N,W=a-_,V=a+_,Y=a+N,D=a+L;i=`M 0,${a} L ${T},${W} L ${g},${l} L ${P},${U} L ${c},${v} L ${C},${X} L ${e},0 L ${I},${X} L ${A},${v} L ${k},${U} L ${y},${l} L ${F},${W} L ${t},${a} L ${F},${V} L ${y},${R} L ${k},${Y} L ${A},${b} L ${I},${D} L ${e},${r} L ${C},${D} L ${c},${b} L ${P},${Y} L ${g},${R} L ${T},${V} z`}break;case"star16":{let e=t/2,a=r/2,o=t/2,s=r/2,l=37500*eR,c=5e4*eR,u=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]);u&&"adj"===u.attrs.name&&(l=parseInt(u.attrs.fmla.substring(4))*eR);let h=l<0?0:l>c?c:l,p=92388*o/1e5,d=70711*o/1e5,f=38268*o/1e5,m=92388*s/1e5,g=70711*s/1e5,A=38268*s/1e5,y=e-p,v=e-d,R=e-f,b=e+f,x=e+d,M=e+p,S=a-m,w=a-g,O=a-A,L=a+A,N=a+g,_=a+m,T=o*h/c,P=s*h/c,C=98079*T/1e5,I=83147*T/1e5,k=55557*T/1e5,F=19509*T/1e5,X=98079*P/1e5,U=83147*P/1e5,W=55557*P/1e5,V=19509*P/1e5,Y=e-C,D=e-I,Q=e-k,$=e-F,B=e+F,Z=e+k,K=e+I,G=e+C,H=a-X,z=a-U,J=a-W,j=a-V,q=a+V,ee=a+W,et=a+U,er=a+X;i=`M 0,${a} L ${Y},${j} L ${y},${O} L ${D},${J} L ${v},${w} L ${Q},${z} L ${R},${S} L ${$},${H} L ${e},0 L ${B},${H} L ${b},${S} L ${Z},${z} L ${x},${w} L ${K},${J} L ${M},${O} L ${G},${j} L ${t},${a} L ${G},${q} L ${M},${L} L ${K},${ee} L ${x},${N} L ${Z},${et} L ${b},${_} L ${B},${er} L ${e},${r} L ${$},${er} L ${R},${_} L ${Q},${et} L ${v},${N} L ${D},${ee} L ${y},${L} L ${Y},${q} z`}break;case"star24":{let e=t/2,a=r/2,o=t/2,s=r/2,l=r/4,c=t/4,u=37500*eR,h=5e4*eR,p=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]);p&&"adj"===p.attrs.name&&(u=parseInt(p.attrs.fmla.substring(4))*eR);let d=u<0?0:u>h?h:u,f=.9659258262888482*o,m=.866025403783588*o,g=.7071067811847432*o,A=.2588190450984128*o,y=.965925826290169*s,v=.8660254037861398*s,R=.7071067811883519*s,b=.25881904510334236*s,x=e-f,M=e-m,S=e-g,w=e-c,O=e-A,L=e+A,N=e+c,_=e+g,T=e+m,P=e+f,C=a-y,I=a-v,k=a-R,F=a-l,X=a-b,U=a+b,W=a+l,V=a+R,Y=a+v,D=a+y,Q=o*d/h,$=s*d/h,B=99144*Q/1e5,Z=92388*Q/1e5,K=79335*Q/1e5,G=60876*Q/1e5,H=38268*Q/1e5,z=13053*Q/1e5,J=99144*$/1e5,j=92388*$/1e5,q=79335*$/1e5,ee=60876*$/1e5,et=38268*$/1e5,er=13053*$/1e5,en=e-B,ei=e-Z,ea=e-K,eo=e-G,es=e-H,el=e-z,ec=e+z,eu=e+H,eh=e+G,ep=e+K,ed=e+Z,ef=e+B,em=a-J,eg=a-j,eA=a-q,ey=a-ee,ev=a-et,eb=a-er,ex=a+er,eM=a+et,eS=a+ee,ew=a+q,eO=a+j,eL=a+J;i=`M 0,${a} L ${en},${eb} L ${x},${X} L ${ei},${ev} L ${M},${F} L ${ea},${ey} L ${S},${k} L ${eo},${eA} L ${w},${I} L ${es},${eg} L ${O},${C} L ${el},${em} L ${e},0 L ${ec},${em} L ${L},${C} L ${eu},${eg} L ${N},${I} L ${eh},${eA} L ${_},${k} L ${ep},${ey} L ${T},${F} L ${ed},${ev} L ${P},${X} L ${ef},${eb} L ${t},${a} L ${ef},${ex} L ${P},${U} L ${ed},${eM} L ${T},${W} L ${ep},${eS} L ${_},${V} L ${eh},${ew} L ${N},${Y} L ${eu},${eO} L ${L},${D} L ${ec},${eL} L ${e},${r} L ${el},${eL} L ${O},${D} L ${es},${eO} L ${w},${Y} L ${eo},${ew} L ${S},${V} L ${ea},${eS} L ${M},${W} L ${ei},${eM} L ${x},${U} L ${en},${ex} z`}break;case"star32":{let e=t/2,a=r/2,o=t/2,s=r/2,l=37500*eR,c=5e4*eR,u=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]);u&&"adj"===u.attrs.name&&(l=parseInt(u.attrs.fmla.substring(4))*eR);let h=l<0?0:l>c?c:l,p=98079*o/1e5,d=92388*o/1e5,f=83147*o/1e5,m=.7071067811847432*o,g=55557*o/1e5,A=38268*o/1e5,y=19509*o/1e5,v=98079*s/1e5,R=92388*s/1e5,b=83147*s/1e5,x=.7071067811883519*s,M=55557*s/1e5,S=38268*s/1e5,w=19509*s/1e5,O=e-p,L=e-d,N=e-f,_=e-m,T=e-g,P=e-A,C=e-y,I=e+y,k=e+A,F=e+g,X=e+m,U=e+f,W=e+d,V=e+p,Y=a-v,D=a-R,Q=a-b,$=a-x,B=a-M,Z=a-S,K=a-w,G=a+w,H=a+S,z=a+M,J=a+x,j=a+b,q=a+R,ee=a+v,et=o*h/c,er=s*h/c,en=99518*et/1e5,ei=95694*et/1e5,ea=88192*et/1e5,eo=77301*et/1e5,es=63439*et/1e5,el=47140*et/1e5,ec=29028*et/1e5,eu=9802*et/1e5,eh=99518*er/1e5,ep=95694*er/1e5,ed=88192*er/1e5,ef=77301*er/1e5,em=63439*er/1e5,eg=47140*er/1e5,eA=29028*er/1e5,ey=9802*er/1e5,ev=e-en,eb=e-ei,ex=e-ea,eM=e-eo,eS=e-es,ew=e-el,eO=e-ec,eL=e-eu,eN=e+eu,e_=e+ec,eT=e+el,eP=e+es,eC=e+eo,eI=e+ea,ek=e+ei,eF=e+en,eX=a-eh,eU=a-ep,eW=a-ed,eV=a-ef,eE=a-em,eY=a-eg,eD=a-eA,eQ=a-ey,e$=a+ey,eB=a+eA,eZ=a+eg,eK=a+em,eG=a+ef,eH=a+ed,ez=a+ep,eJ=a+eh;i=`M 0,${a} L ${ev},${eQ} L ${O},${K} L ${eb},${eD} L ${L},${Z} L ${ex},${eY} L ${N},${B} L ${eM},${eE} L ${_},${$} L ${eS},${eV} L ${T},${Q} L ${ew},${eW} L ${P},${D} L ${eO},${eU} L ${C},${Y} L ${eL},${eX} L ${e},0 L ${eN},${eX} L ${I},${Y} L ${e_},${eU} L ${k},${D} L ${eT},${eW} L ${F},${Q} L ${eP},${eV} L ${X},${$} L ${eC},${eE} L ${U},${B} L ${eI},${eY} L ${W},${Z} L ${ek},${eD} L ${V},${K} L ${eF},${eQ} L ${t},${a} L ${eF},${e$} L ${V},${G} L ${ek},${eB} L ${W},${H} L ${eI},${eZ} L ${U},${z} L ${eC},${eK} L ${X},${J} L ${eP},${eG} L ${F},${j} L ${eT},${eH} L ${k},${q} L ${e_},${ez} L ${I},${ee} L ${eN},${eJ} L ${e},${r} L ${eL},${eJ} L ${C},${ee} L ${eO},${ez} L ${P},${q} L ${ew},${eH} L ${T},${j} L ${eS},${eG} L ${_},${J} L ${eM},${eK} L ${N},${z} L ${ex},${eZ} L ${L},${H} L ${eb},${eB} L ${O},${G} L ${ev},${e$} z`}break;case"pie":case"pieWedge":case"arc":{var a,o,s,l;let c,u,h,p,d,f,m,g,A,y,v,R,b,x,M,S,w,O=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]);if("pie"===e?(c=0,u=270,h=r,p=!0):"pieWedge"===e?(c=180,u=270,h=2*r,p=!0):"arc"===e&&(c=270,u=0,h=r,p=!1),O)for(let e of Array.isArray(O)?O:[O]){let t=E(e,["attrs","name"]),r=E(e,["attrs","fmla"]);t&&r&&("adj1"===t?c=parseInt(r.substring(4))/6e4:"adj2"===t&&(u=parseInt(r.substring(4))/6e4))}a=h,o=c,s=u,l=p,m=parseFloat(s),g=parseFloat(o),A=parseFloat(a)/2,y=t/2,(v=m-g)<0&&(v=360+v),R=g*Math.PI/180,b=(g+(v=Math.min(Math.max(v,0),360)))*Math.PI/180,x=y+Math.cos(R)*y,M=A+Math.sin(R)*A,S=y+Math.cos(b)*y,w=A+Math.sin(b)*A,l?(d=v<=180?0:1,f=`M${y},${A} L${x},${M} A${y},${A} 0 ${d},1 ${S},${w} z`):(d=v<=180?0:1,f=`M${x},${M} A${y},${A} 0 ${d},1 ${S},${w}`),i=f}break;case"chord":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=45,o=270;if(e)for(let t of e){let e=E(t,["attrs","name"]);"adj1"===e?a=parseInt(E(t,["attrs","fmla"]).substring(4))/6e4:"adj2"===e&&(o=parseInt(E(t,["attrs","fmla"]).substring(4))/6e4)}let s=r/2,l=t/2;i=e3(l,s,l,s,a,o,!0)}break;case"frame":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),a=12500*eR,o=5e4*eR;e&&(a=parseInt(e.substring(4))*eR);let s=Math.min(t,r)*(a<0?0:a>o?o:a)/(1e5*eR),l=t-s,c=r-s;i=`M 0,0 L ${t},0 L ${t},${r} L 0,${r} z M ${s},${s} L ${s},${c} L ${l},${c} L ${l},${s} z`}break;case"donut":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),a=25e3*eR,o=5e4*eR;e&&(a=parseInt(e.substring(4))*eR);let s=Math.min(t,r)*(a<0?0:a>o?o:a)/(1e5*eR),l=t/2-s,c=r/2-s,u=`M ${t/2-t/2},${r/2} A ${t/2},${r/2} 0 1,0 ${t/2+t/2},${r/2} A ${t/2},${r/2} 0 1,0 ${t/2-t/2},${r/2} Z`,h=`M ${t/2+l},${r/2} A ${l},${c} 0 1,0 ${t/2-l},${r/2} A ${l},${c} 0 1,0 ${t/2+l},${r/2} Z`;i=`${u} ${h}`}break;case"noSmoking":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),a=18750*eR,o=5e4*eR;e&&(a=parseInt(e.substring(4))*eR);let s=Math.min(t,r)*(a<0?0:a>o?o:a)/(1e5*eR),l=t/2-s,c=r/2-s,u=Math.atan(r/t),h=c*Math.cos(u),p=l*Math.sin(u),d=Math.atan(s/2/(l*c/Math.sqrt(h*h+p*p))),f=-Math.PI+2*d,m=u-d,g=m-Math.PI,A=c*Math.cos(m),y=l*Math.sin(m),v=l*c/Math.sqrt(A*A+y*y),R=v*Math.cos(m),b=v*Math.sin(m),x=t/2+R,M=r/2+b,S=t/2-R,w=r/2-b,O=180*m/Math.PI,L=180*g/Math.PI,N=180*f/Math.PI,_=`M ${t/2-t/2},${r/2} A ${t/2},${r/2} 0 1,0 ${t/2+t/2},${r/2} A ${t/2},${r/2} 0 1,0 ${t/2-t/2},${r/2} Z`,T=`M ${x},${M} ${e3(t/2,r/2,l,c,O,O+N,!1).replace("M","L")} z`,P=`M ${S},${w} ${e3(t/2,r/2,l,c,L,L+N,!1).replace("M","L")} z`;i=`${_} ${T} ${P}`}break;case"halfFrame":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=3.5,o=3.5,s=1e5*eR;if(e)for(let t of e){let e=E(t,["attrs","name"]);"adj1"===e?a=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj2"===e&&(o=parseInt(E(t,["attrs","fmla"]).substring(4))*eR)}let l=Math.min(t,r),c=s*t/l,u=l*(o<0?0:o>c?c:o)/s,h=s*(r-r*u/t)/l,p=l*(a<0?0:a>h?h:a)/s,d=t-p*t/r,f=r-u*r/t;i=`M 0,0 L ${t},0 L ${d},${p} L ${u},${p} L ${u},${f} L 0,${r} z`}break;case"blockArc":{let e,a,o,s,l=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),c=180,u=0,h=25e3*eR,p=5e4*eR;if(l)for(let e of l){let t=E(e,["attrs","name"]);"adj1"===t?c=parseInt(E(e,["attrs","fmla"]).substring(4))/6e4:"adj2"===t?u=parseInt(E(e,["attrs","fmla"]).substring(4))/6e4:"adj3"===t&&(h=parseInt(E(e,["attrs","fmla"]).substring(4))*eR)}let d=c<0?0:c>360?360:c,f=u<0?0:u>360?360:u,m=h<0?0:h>p?p:h,g=f-d,A=g>0?g:g+360,y=d+A,v=d*Math.PI/180,R=f*Math.PI/180,b=t/2,x=r/2,M=t/2,S=r/2;if(d>90&&d<270){let t=b*Math.sin(Math.PI/2-v),r=x*Math.cos(Math.PI/2-v),n=b*Math.cos(Math.atan(r/t)),i=x*Math.sin(Math.atan(r/t));e=M-n,a=S-i}else{let t=b*Math.sin(v),r=x*Math.cos(v),n=b*Math.cos(Math.atan(t/r)),i=x*Math.sin(Math.atan(t/r));e=M+n,a=S+i}let w=Math.min(t,r)*m/(1e5*eR),O=b-w,L=x-w;if(y<=450&&y>270||y>=630&&y<720){let e=O*Math.sin(R),t=L*Math.cos(R),r=O*Math.cos(Math.atan(e/t)),n=L*Math.sin(Math.atan(e/t));o=M+r,s=S+n}else{let e=O*Math.sin(Math.PI/2-R),t=L*Math.cos(Math.PI/2-R),r=O*Math.cos(Math.atan(t/e)),n=L*Math.sin(Math.atan(t/e));o=M-r,s=S-n}i=`M ${e},${a} ${e3(b,x,b,x,d,y,!1).replace("M","L")} L ${o},${s} ${e3(b,x,O,L,f,f+-A,!1).replace("M","L")} z`}break;case"bracePair":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),a=8333*eR,o=25e3*eR;e&&(a=parseInt(e.substring(4))*eR);let s=r/2,l=a<0?0:a>o?o:a,c=Math.min(t,r),u=c*l/(1e5*eR),h=c*l/(5e4*eR),p=t-h,d=t-u,f=s-u,m=s+u,g=r-u;i=`M ${h},${r} ${e3(h,g,u,u,90,180,!1).replace("M","L")} L ${u},${m} ${e3(0,m,u,u,0,-90,!1).replace("M","L")} ${e3(0,f,u,u,90,0,!1).replace("M","L")} L ${u},${u} ${e3(h,u,u,u,180,270,!1).replace("M","L")} M ${p},0 ${e3(p,u,u,u,270,360,!1).replace("M","L")} L ${d},${f} ${e3(t,f,u,u,180,90,!1).replace("M","L")} ${e3(t,m,u,u,270,180,!1).replace("M","L")} L ${d},${g} ${e3(p,g,u,u,0,90,!1).replace("M","L")}`}break;case"leftBrace":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=8333*eR,o=5e4*eR,s=1e5*eR;if(e)for(let t of e){let e=E(t,["attrs","name"]);"adj1"===e?a=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj2"===e&&(o=parseInt(E(t,["attrs","fmla"]).substring(4))*eR)}let l=o<0?0:o>s?s:o,c=Math.min(t,r),u=s-l,h=(u<l?u:l)/2*r/c,p=c*(a<0?0:a>h?h:a)/s,d=r*l/s,f=d-p,m=d+p;i=`M ${t},${r} ${e3(t,r-p,t/2,p,90,180,!1).replace("M","L")} L ${t/2},${m} ${e3(0,m,t/2,p,0,-90,!1).replace("M","L")} ${e3(0,f,t/2,p,90,0,!1).replace("M","L")} L ${t/2},${p} ${e3(t,p,t/2,p,180,270,!1).replace("M","L")}`}break;case"rightBrace":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=8333*eR,o=5e4*eR,s=1e5*eR;if(e)for(let t of e){let e=E(t,["attrs","name"]);"adj1"===e?a=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj2"===e&&(o=parseInt(E(t,["attrs","fmla"]).substring(4))*eR)}let l=o<0?0:o>s?s:o,c=Math.min(t,r),u=s-l,h=(u<l?u:l)/2*r/c,p=c*(a<0?0:a>h?h:a)/s,d=r*l/s,f=d-p,m=r-p;i=`M 0,0 ${e3(0,p,t/2,p,270,360,!1).replace("M","L")} L ${t/2},${f} ${e3(t,f,t/2,p,180,90,!1).replace("M","L")} ${e3(t,d+p,t/2,p,270,180,!1).replace("M","L")} L ${t/2},${m} ${e3(0,m,t/2,p,0,90,!1).replace("M","L")}`}break;case"bracketPair":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),a=16667*eR,o=5e4*eR;e&&(a=parseInt(e.substring(4))*eR);let s=Math.min(t,r)*(a<0?0:a>o?o:a)/(1e5*eR),l=t-s,c=r-s;i=`${e3(s,s,s,s,270,180,!1)} ${e3(s,c,s,s,180,90,!1).replace("M","L")} ${e3(l,s,s,s,270,360,!1)} ${e3(l,c,s,s,0,90,!1).replace("M","L")}`}break;case"leftBracket":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),a=8333*eR,o=5e4*eR*r/Math.min(t,r);e&&(a=parseInt(e.substring(4))*eR);let s=Math.min(t,r)*(a<0?0:a>o?o:a)/(1e5*eR);s>t&&(s=t);let l=r-s;i=`M ${t},${r} ${e3(s,l,s,s,90,180,!1).replace("M","L")} L 0,${s} ${e3(s,s,s,s,180,270,!1).replace("M","L")} L ${t},0`}break;case"rightBracket":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),a=8333*eR,o=5e4*eR*r/Math.min(t,r);e&&(a=parseInt(e.substring(4))*eR);let s=Math.min(t,r)*(a<0?0:a>o?o:a)/(1e5*eR),l=r-s,c=t-s;i=`M 0,${r} ${e3(c,l,s,s,90,0,!1).replace("M","L")} L ${t},${r/2} ${e3(c,s,s,s,360,270,!1).replace("M","L")} L 0,0`}break;case"moon":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),a=.5;e&&(a=parseInt(e.substring(4))/1e5);let o=r/2,s=(1-a)*t;i=`M ${t},${r} ${e3(t,o,t,o,90,270,!1).replace("M","L")} ${e3(t,o,s,o,270,90,!1).replace("M","L")} z`}break;case"corner":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=5e4*eR,o=5e4*eR,s=1e5*eR;if(e)for(let t of e){let e=E(t,["attrs","name"]);"adj1"===e?a=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj2"===e&&(o=parseInt(E(t,["attrs","fmla"]).substring(4))*eR)}let l=Math.min(t,r),c=s*r/l,u=s*t/l,h=l*(o<0?0:o>u?u:o)/s,p=r-l*(a<0?0:a>c?c:a)/s;i=`M 0,0 L ${h},0 L ${h},${p} L ${t},${p} L ${t},${r} L 0,${r} z`}break;case"diagStripe":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),a=5e4*eR,o=1e5*eR;e&&(a=parseInt(e.substring(4))*eR);let s=a<0?0:a>o?o:a,l=t*s/o,c=r*s/o;i=`M 0,${c} L ${l},0 L ${t},0 L 0,${r} z`}break;case"gear6":case"gear9":i=function(e,t){let r=1.5*e,n=2*Math.PI,i=n/(2*t),a=35*i*.005,o=50*i*.005,s=i,l=!1,c=" M"+(r+r*Math.cos(o))+" "+(r+r*Math.sin(o));for(;s<=n+i;s+=i)l?c+=" L"+(r+e*Math.cos(s-a))+","+(r+e*Math.sin(s-a))+(" L"+(r+r*Math.cos(s+o))+",")+(r+r*Math.sin(s+o)):c+=" L"+(r+r*Math.cos(s-o))+","+(r+r*Math.sin(s-o))+(" L"+(r+e*Math.cos(s+a))+",")+(r+e*Math.sin(s+a)),l=!l;return c+" "}(t,r/3.5,parseInt(e.substring(4)));break;case"bentConnector3":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),a=.5;e&&(a=parseInt(e.substring(4))/1e5),i=`M 0 0 L ${a*t} 0 L ${a*t} ${r} L ${t} ${r}`}break;case"plus":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),a=.25;e&&(a=parseInt(e.substring(4))/1e5);let o=1-a;i=`M ${a*t} 0 L ${a*t} ${a*r} L 0 ${a*r} L 0 ${o*r} L ${a*t} ${o*r} L ${a*t} ${r} L ${o*t} ${r} L ${o*t} ${o*r} L ${t} ${o*r} L ${t} ${a*r} L ${o*t} ${a*r} L ${o*t} 0 Z`}break;case"teardrop":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),a=1e5*eR,o=a,s=2e5*eR;e&&(a=parseInt(e.substring(4))*eR);let l=a<0?0:a>s?s:a,c=Math.sqrt(2),u=t/2*c,h=r/2*c,p=45*Math.PI/180,d=t/2+u*l/o*Math.cos(p),f=r/2-h*l/o*Math.cos(p),m=(t/2+d)/2,g=(r/2+f)/2;i=`${e3(t/2,r/2,t/2,r/2,180,270,!1)} Q ${m},0 ${d},${f} Q ${t},${g} ${t},${r/2} ${e3(t/2,r/2,t/2,r/2,0,90,!1).replace("M","L")} ${e3(t/2,r/2,t/2,r/2,90,180,!1).replace("M","L")} z`}break;case"plaque":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),a=16667*eR,o=5e4*eR;e&&(a=parseInt(e.substring(4))*eR);let s=(a<0?0:a>o?o:a)*Math.min(t,r)/(1e5*eR),l=t-s,c=r-s;i=`M 0,${s} ${e3(0,0,s,s,90,0,!1).replace("M","L")} L ${l},0 ${e3(t,0,s,s,180,90,!1).replace("M","L")} L ${t},${c} ${e3(t,r,s,s,270,180,!1).replace("M","L")} L ${s},${r} ${e3(0,r,s,s,0,-90,!1).replace("M","L")} z`}break;case"sun":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),a=25e3*eR,o=12500*eR,s=46875*eR;e&&(a=parseInt(e.substring(4))*eR);let l=a<o?o:a>s?s:a,c=5e4*eR,u=1e5*eR,h=c-l,p=3*(c-30274*h/32768)/4,d=3*(c-12540*h/32768)/4,f=p+3662*eR,m=d+36620*eR,g=d+12500*eR,A=u-p,y=u-f,v=u-m,R=u-g,b=18436*t/21600,x=3163*r/21600,M=3163*t/21600,S=18436*r/21600,w=t*p/u,O=t*f/u,L=t*m/u,N=t*g/u,_=t*A/u,T=t*y/u,P=t*v/u,C=t*R/u,I=t*l/u,k=t*h/u,F=r*h/u,X=r*p/u,U=r*f/u,W=r*m/u,V=r*g/u,Y=r*A/u,D=r*y/u,Q=r*v/u,$=r*R/u;i=`M ${t},${r/2} L ${_},${$} L ${_},${V} z M ${b},${x} L ${T},${Q} L ${L},${U} z M ${t/2},0 L ${C},${X} L ${N},${X} z M ${M},${x} L ${P},${U} L ${O},${Q} z M 0,${r/2} L ${w},${V} L ${w},${$} z M ${M},${S} L ${O},${W} L ${P},${D} z M ${t/2},${r} L ${N},${Y} L ${C},${Y} z M ${b},${S} L ${L},${D} L ${T},${W} z M ${I},${r/2} ${e3(t/2,r/2,k,F,180,540,!1).replace("M","L")} z`}break;case"heart":{let e=49*t/48,n=10*t/48,a=t/2-e,o=t/2-n,s=t/2+n,l=t/2+e,c=-r/3;i=`M ${t/2},${r/4} C ${s},${c} ${l},${r/4} ${t/2},${r} C ${a},${r/4} ${o},${c} ${t/2},${r/4} z`}break;case"lightningBolt":{let e=5022*t/21600,n=11050*t/21600,a=8472*t/21600,o=10012*t/21600,s=14767*t/21600,l=12222*t/21600,c=12860*t/21600,u=7602*t/21600,h=16577*t/21600,p=3890*r/21600,d=6080*r/21600,f=6797*r/21600,m=12877*r/21600,g=9705*r/21600,A=12007*r/21600,y=13987*r/21600,v=8382*r/21600,R=14915*r/21600;i=`M ${a},0 L ${c},${d} L ${n},${f} L ${h},${A} L ${s},${m} L ${t},${r} L ${o},${R} L ${l},${y} L ${e},${g} L ${u},${v} L 0,${p} z`}break;case"cube":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),a=25e3*eR;e&&(a=parseInt(e.substring(4))*eR);let o=1e5*eR,s=Math.min(t,r)*(a<0?0:a>o?o:a)/o,l=r-s,c=t-s;i=`M 0,${s} L ${s},0 L ${t},0 L ${t},${l} L ${c},${r} L 0,${r} z M 0,${s} L ${c},${s} M ${c},${s} L ${t},0 M ${c},${s} L ${c},${r}`}break;case"bevel":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),a=12500*eR;e&&(a=parseInt(e.substring(4))*eR);let o=5e4*eR,s=Math.min(t,r)*(a<0?0:a>o?o:a)/(1e5*eR),l=t-s,c=r-s;i=`M 0,0 L ${t},0 L ${t},${r} L 0,${r} z M ${s},${s} L ${l},${s} L ${l},${c} L ${s},${c} z M 0,0 L ${s},${s} M 0,${r} L ${s},${c} M ${t},0 L ${l},${s} M ${t},${r} L ${l},${c}`}break;case"foldedCorner":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),a=16667*eR;e&&(a=parseInt(e.substring(4))*eR);let o=5e4*eR,s=Math.min(t,r)*(a<0?0:a>o?o:a)/(1e5*eR),l=s/5,c=t-s,u=r-s;i=`M ${c},${r} L ${c+l},${u+l} L ${t},${u} L ${c},${r} L 0,${r} L 0,0 L ${t},0 L ${t},${u}`}break;case"cloud":case"cloudCallout":{let a=3900*t/43200,o=14370*r/43200,s=6753*t/43200,l=9190*r/43200,c=5333*t/43200,u=7267*r/43200,h=5945*r/43200,p=(e,t,r,n,i,a)=>e3(e-r*Math.cos(i*Math.PI/180),t-n*Math.sin(i*Math.PI/180),r,n,i,i+a,!1).replace("M","L"),d=`M ${a},${o}`,f=[a,o];for(let e of[[s,l,-0xae6581/6e4,7426832/6e4],[c,u,-8646143/6e4,5396714/6e4],[4365*t/43200,h,-8748475/6e4,5983381/6e4],[4857*t/43200,6595*r/43200,-7859164/6e4,7034504/6e4],[c,7273*r/43200,-4722533/6e4,6541615/6e4],[6775*t/43200,9220*r/43200,-46.26725,130.269],[5785*t/43200,7867*r/43200,37501/6e4,6842e3/6e4],[6752*t/43200,9215*r/43200,22.4516,115.17255],[7720*t/43200,10543*r/43200,3974558/6e4,4542661/6e4],[4360*t/43200,5918*r/43200,-0xfbb78d/6e4,8804134/6e4],[4345*t/43200,h,-246.8285,152.51885]]){let t=p(f[0],f[1],...e);d+=t;let r=t.lastIndexOf("L"),n=t.substring(r+1).split(" ");f=[parseFloat(n[0]),parseFloat(n[1])]}if(d+=" z","cloudCallout"===e){let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),i=-20833*eR,a=62500*eR;if(e)for(let t of e){let e=E(t,["attrs","name"]);"adj1"===e?i=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj2"===e&&(a=parseInt(E(t,["attrs","fmla"]).substring(4))*eR)}let o=1e5*eR,s=Math.min(t,r),l=t/2,c=r/2,u=t*i/o,h=r*a/o,p=l+u,f=c+h,m=c*Math.cos(Math.atan(h/u)),g=l*Math.sin(Math.atan(h/u)),A=l*Math.cos(Math.atan(g/m)),y=c*Math.sin(Math.atan(g/m)),v=(i>=0?l+A:l-A)-p,R=(i>=0?c+y:c-y)-f,b=Math.sqrt(v*v+R*R),x=(b-6600*s/21600)/3,M=1800*s/21600,S=x+M,w=S*R/b+f,O=4800*s/21600+2*x,L=O*R/b+f,N=1200*s/21600,_=600*s/21600,T=p+_,P=S*v/b+p+N,C=O*v/b+p+M;d+=`${e3(T-_,f,_,_,0,360,!0)} M ${P},${w} ${e3(P-N,w,N,N,0,360,!0).replace("M","L")} M ${C},${L} ${e3(C-M,L,M,M,0,360,!0).replace("M","L")}`}i=d}break;case"smileyFace":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),a=4653*eR;e&&(a=parseInt(e.substring(4))*eR);let o=4653*eR,s=t/2,l=r/2,c=a<-o?-o:a>o?o:a,u=6215*t/21600,h=13135*t/21600,p=16640*t/21600,d=7570*r/21600,f=16515*r/21600,m=r*c/(1e5*eR),g=f-m,A=f+m+r*c/(5e4*eR),y=1125*t/21600,v=1125*r/21600,R=4969*t/21699;i=`${e3(u,d,y,v,0,360,!0)} ${e3(h,d,y,v,0,360,!0)} M ${R},${g} Q ${s},${A} ${p},${g} Q ${s},${A} ${R},${g} M 0,${l} ${e3(s,l,s,l,180,540,!1).replace("M","L")} z`}break;case"verticalScroll":case"horizontalScroll":{let a=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),o=12500*eR;a&&(o=parseInt(a.substring(4))*eR);let s=25e3*eR,l=Math.min(t,r)*(o<0?0:o>s?s:o)/(1e5*eR),c=l/2,u=l/4;if("verticalScroll"===e){let e=l+c,n=t-l,a=t-c,o=n-c,s=r-l,h=r-c;i=`M ${l},${s} L ${l},${c} ${e3(e,c,c,c,180,270,!1).replace("M","L")} L ${a},0 ${e3(a,c,c,c,270,450,!1).replace("M","L")} L ${n},${l} L ${n},${h} ${e3(o,h,c,c,0,90,!1).replace("M","L")} L ${c},${r} ${e3(c,h,c,c,90,270,!1).replace("M","L")} z M ${e},0 ${e3(e,c,c,c,270,450,!1).replace("M","L")} ${e3(e,e/2,u,u,90,270,!1).replace("M","L")} L ${l+l},${c} M ${n},${l} L ${e},${l} M ${l},${h} ${e3(c,h,c,c,0,270,!1).replace("M","L")} ${e3(c,(h+s)/2,u,u,270,450,!1).replace("M","L")} z M ${l},${h} L ${l},${s}`}else if("horizontalScroll"===e){let e=l+c,n=r-l,a=r-c,o=n-c,s=t-l,h=t-c;i=`M 0,${e} ${e3(c,e,c,c,180,270,!1).replace("M","L")} L ${s},${l} L ${s},${c} ${e3(h,c,c,c,180,360,!1).replace("M","L")} L ${t},${o} ${e3(h,o,c,c,0,90,!1).replace("M","L")} L ${l},${n} L ${l},${a} ${e3(c,a,c,c,0,180,!1).replace("M","L")} z M ${h},${l} ${e3(h,c,c,c,90,-180,!1).replace("M","L")} ${e3((s+h)/2,c,u,u,180,0,!1).replace("M","L")} z M ${h},${l} L ${s},${l} M ${c},${l+l} L ${c},${e} ${e3(e/2,e,u,u,180,360,!1).replace("M","L")} ${e3(c,e,c,c,0,180,!1).replace("M","L")} M ${l},${e} L ${l},${n}`}}break;case"wedgeEllipseCallout":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=-20833*eR,o=62500*eR;if(e)for(let t of e){let e=E(t,["attrs","name"]);"adj1"===e?a=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj2"===e&&(o=parseInt(E(t,["attrs","fmla"]).substring(4))*eR)}let s=1e5*eR,l=11*Math.PI/180,c=r/2,u=t/2,h=t*a/s,p=r*o/s,d=u+h,f=c+p,m=Math.atan2(p*t,h*r),g=m+l,A=m-l,y=u*Math.cos(g),v=c*Math.sin(g),R=u*Math.cos(A),b=c*Math.sin(A),x=u+y,M=c+v,S=u+R,w=c+b;i=`M ${x},${M} L ${d},${f} L ${S},${w} ${e3(u,c,u,c,180*A/Math.PI,180*g/Math.PI,!0).replace("M","L")}`}break;case"wedgeRectCallout":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=-20833*eR,o=62500*eR;if(e)for(let t of e){let e=E(t,["attrs","name"]);"adj1"===e?a=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj2"===e&&(o=parseInt(E(t,["attrs","fmla"]).substring(4))*eR)}let s=1e5*eR,l=r/2,c=t/2,u=t*a/s,h=r*o/s,p=c+u,d=l+h,f=Math.abs(h)-Math.abs(u*r/t),m=t*(u>0?7:2)/12,g=t*(u>0?10:5)/12,A=r*(h>0?7:2)/12,y=r*(h>0?10:5)/12,v=f>0?t:u>0?p:t,R=f>0&&h>0?d:r;i=`M 0,0 L ${m},0 L ${f>0?h>0?m:p:m},${f>0?h>0?0:d:0} L ${g},0 L ${t},0 L ${t},${A} L ${v},${f>0?A:u>0?d:A} L ${t},${y} L ${t},${r} L ${g},${r} L ${f>0&&h>0?p:m},${R} L ${m},${r} L 0,${r} L 0,${y} L ${f>0||u>0?0:p},${f>0||u>0?A:d} L 0,${A} z`}break;case"wedgeRoundRectCallout":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=-20833*eR,o=62500*eR,s=16667*eR;if(e)for(let t of e){let e=E(t,["attrs","name"]);"adj1"===e?a=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj2"===e?o=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj3"===e&&(s=parseInt(E(t,["attrs","fmla"]).substring(4))*eR)}let l=1e5*eR,c=Math.min(t,r),u=r/2,h=t/2,p=t*a/l,d=r*o/l,f=h+p,m=u+d,g=Math.abs(d)-Math.abs(p*r/t),A=t*(p>0?7:2)/12,y=t*(p>0?10:5)/12,v=r*(d>0?7:2)/12,R=r*(d>0?10:5)/12,b=g>0?t:p>0?f:t,x=g>0&&d>0?m:r,M=c*s/l,S=t-M,w=r-M;i=`M 0,${M} ${e3(M,M,M,M,180,270,!1).replace("M","L")} L ${A},0 L ${g>0?d>0?A:f:A},${g>0?d>0?0:m:0} L ${y},0 L ${S},0 ${e3(S,M,M,M,270,360,!1).replace("M","L")} L ${t},${v} L ${b},${g>0?v:p>0?m:v} L ${t},${R} L ${t},${w} ${e3(S,w,M,M,0,90,!1).replace("M","L")} L ${y},${r} L ${g>0&&d>0?f:A},${x} L ${A},${r} L ${M},${r} ${e3(M,w,M,M,90,180,!1).replace("M","L")} L 0,${R} L ${g>0||p>0?0:f},${g>0||p>0?v:m} L 0,${v} z`}break;case"accentBorderCallout1":case"accentBorderCallout2":case"accentBorderCallout3":case"borderCallout1":case"borderCallout2":case"borderCallout3":case"accentCallout1":case"accentCallout2":case"accentCallout3":case"callout1":case"callout2":case"callout3":{let a,o,s,l,c,u,h,p,d=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),f=18750*eR,m=-8333*eR,g=18750*eR,A=-16667*eR,y=1e5*eR,v=-16667*eR,R=112963*eR,b=-8333*eR;if(d)for(let e of d){let t=E(e,["attrs","name"]);"adj1"===t?f=parseInt(E(e,["attrs","fmla"]).substring(4))*eR:"adj2"===t?m=parseInt(E(e,["attrs","fmla"]).substring(4))*eR:"adj3"===t?g=parseInt(E(e,["attrs","fmla"]).substring(4))*eR:"adj4"===t?A=parseInt(E(e,["attrs","fmla"]).substring(4))*eR:"adj5"===t?y=parseInt(E(e,["attrs","fmla"]).substring(4))*eR:"adj6"===t?v=parseInt(E(e,["attrs","fmla"]).substring(4))*eR:"adj7"===t?R=parseInt(E(e,["attrs","fmla"]).substring(4))*eR:"adj8"===t&&(b=parseInt(E(e,["attrs","fmla"]).substring(4))*eR)}let x=1e5*eR,M=`M 0,0 L ${t},0 L ${t},${r} L 0,${r} z`;switch(e){case"borderCallout1":case"callout1":d||(f=18750*eR,m=-8333*eR,g=112500*eR,A=-38333*eR),o=r*f/x,a=t*m/x,l=r*g/x,s=t*A/x,i=`${M} M ${a},${o} L ${s},${l}`;break;case"borderCallout2":case"callout2":d||(f=18750*eR,m=-8333*eR,g=18750*eR,A=-16667*eR,y=112500*eR,v=-46667*eR),o=r*f/x,a=t*m/x,l=r*g/x,s=t*A/x,u=r*y/x,c=t*v/x,i=`${M} M ${a},${o} L ${s},${l} L ${c},${u}`;break;case"borderCallout3":case"callout3":d||(f=18750*eR,m=-8333*eR,g=18750*eR,A=-16667*eR,y=1e5*eR,v=-16667*eR,R=112963*eR,b=-8333*eR),o=r*f/x,a=t*m/x,l=r*g/x,s=t*A/x,u=r*y/x,c=t*v/x,p=r*R/x,h=t*b/x,i=`${M} M ${a},${o} L ${s},${l} L ${c},${u} L ${h},${p}`;break;case"accentBorderCallout1":case"accentCallout1":d||(f=18750*eR,m=-8333*eR,g=112500*eR,A=-38333*eR),o=r*f/x,a=t*m/x,l=r*g/x,s=t*A/x,i=`${M} M ${a},${o} L ${s},${l} M ${a},0 L ${a},${r}`;break;case"accentBorderCallout2":case"accentCallout2":d||(f=18750*eR,m=-8333*eR,g=18750*eR,A=-16667*eR,y=112500*eR,v=-46667*eR),o=r*f/x,a=t*m/x,l=r*g/x,s=t*A/x,u=r*y/x,c=t*v/x,i=`${M} M ${a},${o} L ${s},${l} L ${c},${u} M ${a},0 L ${a},${r}`;break;case"accentBorderCallout3":case"accentCallout3":d||(f=18750*eR,m=-8333*eR,g=18750*eR,A=-16667*eR,y=1e5*eR,v=-16667*eR,R=112963*eR,b=-8333*eR),o=r*f/x,a=t*m/x,l=r*g/x,s=t*A/x,u=r*y/x,c=t*v/x,p=r*R/x,h=t*b/x,i=`${M} M ${a},${o} L ${s},${l} L ${c},${u} L ${h},${p} M ${a},0 L ${a},${r}`}}break;case"leftRightRibbon":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=5e4*eR,o=5e4*eR,s=16667*eR;if(e)for(let t of e){let e=E(t,["attrs","name"]);"adj1"===e?a=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj2"===e?o=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj3"===e&&(s=parseInt(E(t,["attrs","fmla"]).substring(4))*eR)}let l=33333*eR,c=1e5*eR,u=2e5*eR,h=Math.min(t,r),p=t/2,d=r/2,f=s<0?0:s>l?l:s,m=c-f,g=c*(p-t/32)/h,A=h*(o<0?0:o>g?g:o)/c,y=t-A,v=r*(a<0?0:a>m?m:a)/u,R=-(r*f/u),b=d+R-v,x=d+v-R,M=b+v,S=r-M,w=2*M,O=r-(w-b),L=f*h/(4e5*eR),N=p-t/32,_=p+t/32,T=b+L,P=O-L;i=`M 0,${M} L ${A},0 L ${A},${b} L ${p},${b} ${e3(p,T,t/32,L,270,450,!1).replace("M","L")} ${e3(p,P,t/32,L,270,90,!1).replace("M","L")} L ${y},${O} L ${y},${r-w} L ${t},${S} L ${y},${r} L ${y},${x} L ${p},${x} ${e3(p,x-L,t/32,L,90,180,!1).replace("M","L")} L ${N},${w-b} L ${A},${w-b} L ${A},${w} z M ${_},${T} L ${_},${O} M ${N},${P} L ${N},${w-b}`}break;case"ribbon":case"ribbon2":{let a=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),o=16667*eR,s=5e4*eR;if(a)for(let e of a){let t=E(e,["attrs","name"]);"adj1"===t?o=parseInt(E(e,["attrs","fmla"]).substring(4))*eR:"adj2"===t&&(s=parseInt(E(e,["attrs","fmla"]).substring(4))*eR)}let l=25e3*eR,c=33333*eR,u=75e3*eR,h=1e5*eR,p=2e5*eR,d=t/2,f=t/8,m=t/32,g=o<0?0:o>c?c:o,A=t-f,y=t*(s<l?l:s>u?u:s)/p,v=d-y,R=d+y,b=v+m,x=R-m,M=v+f,S=R-f,w=M-m,O=S+m,L=r*g/(4e5*eR);if("ribbon2"===e){let e=r*g/p,n=r-e,a=r*g/h,o=r-a,s=0+a,l=(s+r)/2,c=r-L,u=n-L;i=`M 0,${r} L ${f},${l} L 0,${s} L ${v},${s} L ${v},${L} ${e3(b,L,m,L,180,270,!1).replace("M","L")} L ${x},0 ${e3(x,L,m,L,270,360,!1).replace("M","L")} L ${R},${s} L ${t},${s} L ${A},${l} L ${t},${r} L ${O},${r} ${e3(O,c,m,L,90,270,!1).replace("M","L")} L ${x},${n} ${e3(x,u,m,L,90,-90,!1).replace("M","L")} L ${b},${o} ${e3(b,u,m,L,270,90,!1).replace("M","L")} L ${w},${n} ${e3(w,c,m,L,270,450,!1).replace("M","L")} z M ${M},${o} L ${M},${c} M ${S},${c} L ${S},${o} M ${v},${u} L ${v},${s} M ${R},${s} L ${R},${u}`}else if("ribbon"===e){let e=r*g/p,n=r*g/h,a=r-n,o=a/2,s=r-L,l=n-L;i=`M 0,0 L ${w},0 ${e3(w,L,m,L,270,450,!1).replace("M","L")} L ${b},${e} ${e3(b,l,m,L,270,90,!1).replace("M","L")} L ${x},${n} ${e3(x,l,m,L,90,-90,!1).replace("M","L")} L ${O},${e} ${e3(O,L,m,L,90,270,!1).replace("M","L")} L ${t},0 L ${A},${o} L ${t},${a} L ${R},${a} L ${R},${s} ${e3(x,s,m,L,0,90,!1).replace("M","L")} L ${b},${r} ${e3(b,s,m,L,90,180,!1).replace("M","L")} L ${v},${a} L 0,${a} L ${f},${o} z M ${M},${L} L ${M},${n} M ${S},${n} L ${S},${L} M ${v},${a} L ${v},${l} M ${R},${l} L ${R},${a}`}}break;case"doubleWave":case"wave":{let a=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),o="doubleWave"===e?6250*eR:12500*eR,s=0;if(a)for(let e of a){let t=E(e,["attrs","name"]);"adj1"===t?o=parseInt(E(e,["attrs","fmla"]).substring(4))*eR:"adj2"===t&&(s=parseInt(E(e,["attrs","fmla"]).substring(4))*eR)}let l=-1e4*eR,c=5e4*eR,u=1e5*eR;if("doubleWave"===e){let e=12500*eR,n=s<l?l:s>u?u:s,a=r*(o<0?0:o>e?e:o)/u,h=10*a/3,p=a-h,d=a+h,f=r-a,m=f-h,g=f+h,A=t*n/c,y=A>0?0:A,v=0-y,R=A>0?A:0,b=t-R,x=(y+b)/6,M=(y+b)/3,S=(v+b)/2,w=S+x,O=0+R,L=t+y,N=(O+L)/2,_=N+x;i=`M ${v},${a} C ${v+x},${p} ${v+M},${d} ${S},${a} C ${w},${p} ${(w+b)/2},${d} ${b},${a} L ${L},${f} C ${(_+L)/2},${g} ${_},${m} ${N},${f} C ${O+M},${g} ${O+x},${m} ${O},${f} z`}else if("wave"===e){let e=2e4*eR,n=s<l?l:s>u?u:s,a=r*(o<0?0:o>e?e:o)/u,h=10*a/3,p=r-a,d=t*n/c,f=d>0?0:d,m=0-f,g=d>0?d:0,A=t-g,y=(f+A)/3,v=m+y,R=0+g,b=t+f,x=R+y;i=`M ${m},${a} C ${v},${a-h} ${(v+A)/2},${a+h} ${A},${a} L ${b},${p} C ${(x+b)/2},${p+h} ${x},${p-h} ${R},${p} z`}}break;case"ellipseRibbon":case"ellipseRibbon2":{let a=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),o=25e3*eR,s=5e4*eR,l=12500*eR;if(a)for(let e of a){let t=E(e,["attrs","name"]);"adj1"===t?o=parseInt(E(e,["attrs","fmla"]).substring(4))*eR:"adj2"===t?s=parseInt(E(e,["attrs","fmla"]).substring(4))*eR:"adj3"===t&&(l=parseInt(E(e,["attrs","fmla"]).substring(4))*eR)}let c=25e3*eR,u=75e3*eR,h=1e5*eR,p=t/2,d=t/8,f=o<0?0:o>h?h:o,m=h-f,g=f-m/2>0?f-m/2:0,A=p-t*(s<c?c:s>u?u:s)/(2e5*eR),y=A+d,v=t-y,R=t-A,b=t-d,x=r*(l<g?g:l>f?f:l)/h,M=4*x/t,S=y-y*y/t,w=y/2,O=t-w,L=r*f/h,N=L-x,_=M*(A-A*A/t),T=r-L,P=14*x/16,C=A/2,I=M*C,k=t-C;if("ellipseRibbon"===e){let e=M*S,r=M*w,n=_+N,a=x+N-n+x+N,o=(P+T)/2,s=_+T,l=n+T,c=I+T,u=e+N;i=`M 0,0 Q ${w},${r} ${y},${e} L ${A},${n} Q ${p},${a} ${R},${n} L ${v},${e} Q ${O},${r} ${t},0 L ${b},${o} L ${t},${T} Q ${k},${c} ${R},${s} L ${R},${l} Q ${p},${a+T} ${A},${l} L ${A},${s} Q ${C},${c} 0,${T} L ${d},${o} z M ${A},${s} L ${A},${n} M ${R},${n} L ${R},${s} M ${y},${e} L ${y},${u} M ${v},${u} L ${v},${e}`}else if("ellipseRibbon2"===e){let e=M*S,n=r-e,a=r-M*w,o=_+N,s=r-o,l=x+N-o+x+N,c=r-l,u=r-(P+T)/2,h=r-(_+T),f=r-(o+T),m=r-(I+T),g=r-(l+T),F=r-(e+N);i=`M 0,${r} L ${d},${u} L 0,${L} Q ${C},${m} ${A},${h} L ${A},${f} Q ${p},${g} ${R},${f} L ${R},${h} Q ${k},${m} ${t},${L} L ${b},${u} L ${t},${r} Q ${O},${a} ${v},${n} L ${R},${s} Q ${p},${c} ${A},${s} L ${y},${n} Q ${w},${a} 0,${r} z M ${A},${s} L ${A},${h} M ${R},${h} L ${R},${s} M ${y},${F} L ${y},${n} M ${v},${n} L ${v},${F}`}}break;case"line":case"straightConnector1":case"bentConnector4":case"bentConnector5":case"curvedConnector2":case"curvedConnector3":case"curvedConnector4":case"curvedConnector5":i=`M 0 0 L ${t} ${r}`;break;case"rightArrow":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=.25,o=.5;if(e){let n=t/r;for(let t of e){let e=E(t,["attrs","name"]);"adj1"===e?a=.5-parseInt(E(t,["attrs","fmla"]).substring(4))/2e5:"adj2"===e&&(o=1-parseInt(E(t,["attrs","fmla"]).substring(4))/1e5/n)}}i=`M ${t} ${r/2} L ${o*t} 0 L ${o*t} ${a*r} L 0 ${a*r} L 0 ${(1-a)*r} L ${o*t} ${(1-a)*r} L ${o*t} ${r} Z`}break;case"leftArrow":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=.25,o=.5;if(e){let n=t/r;for(let t of e){let e=E(t,["attrs","name"]);"adj1"===e?a=.5-parseInt(E(t,["attrs","fmla"]).substring(4))/2e5:"adj2"===e&&(o=parseInt(E(t,["attrs","fmla"]).substring(4))/1e5/n)}}i=`M 0 ${r/2} L ${o*t} ${r} L ${o*t} ${(1-a)*r} L ${t} ${(1-a)*r} L ${t} ${a*r} L ${o*t} ${a*r} L ${o*t} 0 Z`}break;case"downArrow":case"flowChartOffpageConnector":{let a=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),o=.25,s=.5;if(a){let e=r/t;for(let t of a){let r=E(t,["attrs","name"]);"adj1"===r?o=parseInt(E(t,["attrs","fmla"]).substring(4))/2e5:"adj2"===r&&(s=parseInt(E(t,["attrs","fmla"]).substring(4))/1e5/e)}}"flowChartOffpageConnector"===e&&(o=.5,s=.212),i=`M ${(.5-o)*t} 0 L ${(.5-o)*t} ${(1-s)*r} L 0 ${(1-s)*r} L ${t/2} ${r} L ${t} ${(1-s)*r} L ${(.5+o)*t} ${(1-s)*r} L ${(.5+o)*t} 0 Z`}break;case"upArrow":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=.25,o=.5;if(e){let n=r/t;for(let t of e){let e=E(t,["attrs","name"]);"adj1"===e?a=parseInt(E(t,["attrs","fmla"]).substring(4))/2e5:"adj2"===e&&(o=parseInt(E(t,["attrs","fmla"]).substring(4))/1e5/n)}}i=`M ${t/2} 0 L 0 ${o*r} L ${(.5-a)*t} ${o*r} L ${(.5-a)*t} ${r} L ${(.5+a)*t} ${r} L ${(.5+a)*t} ${o*r} L ${t} ${o*r} Z`}break;case"leftRightArrow":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=.25,o=.25;if(e){let n=t/r;for(let t of e){let e=E(t,["attrs","name"]);"adj1"===e?a=.5-parseInt(E(t,["attrs","fmla"]).substring(4))/2e5:"adj2"===e&&(o=parseInt(E(t,["attrs","fmla"]).substring(4))/1e5/n)}}i=`M 0 ${r/2} L ${o*t} ${r} L ${o*t} ${(1-a)*r} L ${(1-o)*t} ${(1-a)*r} L ${(1-o)*t} ${r} L ${t} ${r/2} L ${(1-o)*t} 0 L ${(1-o)*t} ${a*r} L ${o*t} ${a*r} L ${o*t} 0 Z`}break;case"upDownArrow":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=.25,o=.25;if(e){let n=r/t;for(let t of e){let e=E(t,["attrs","name"]);"adj1"===e?a=.5-parseInt(E(t,["attrs","fmla"]).substring(4))/2e5:"adj2"===e&&(o=parseInt(E(t,["attrs","fmla"]).substring(4))/1e5/n)}}i=`M ${t/2} 0 L 0 ${o*r} L ${a*t} ${o*r} L ${a*t} ${(1-o)*r} L 0 ${(1-o)*r} L ${t/2} ${r} L ${t} ${(1-o)*r} L ${(1-a)*t} ${(1-o)*r} L ${(1-a)*t} ${o*r} L ${t} ${o*r} Z`}break;case"quadArrow":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=22500*eR,o=22500*eR,s=22500*eR,l=5e4*eR,c=1e5*eR;if(e)for(let t of e){let e=E(t,["attrs","name"]);"adj1"===e?a=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj2"===e?o=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj3"===e&&(s=parseInt(E(t,["attrs","fmla"]).substring(4))*eR)}let u=r/2,h=t/2,p=Math.min(t,r),d=o<0?0:o>l?l:o,f=2*d,m=a<0?0:a>f?f:a,g=(c-f)/2,A=p*(s<0?0:s>g?g:s)/c,y=p*d/c,v=h-y,R=h+y,b=p*m/(2e5*eR),x=h-b,M=h+b,S=t-A,w=u-y,O=u+y,L=u-b,N=u+b,_=r-A;i=`M 0,${u} L ${A},${w} L ${A},${L} L ${x},${L} L ${x},${A} L ${v},${A} L ${h},0 L ${R},${A} L ${M},${A} L ${M},${L} L ${S},${L} L ${S},${w} L ${t},${u} L ${S},${O} L ${S},${N} L ${M},${N} L ${M},${_} L ${R},${_} L ${h},${r} L ${v},${_} L ${x},${_} L ${x},${N} L ${A},${N} L ${A},${O} z`}break;case"leftRightUpArrow":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=25e3*eR,o=25e3*eR,s=25e3*eR,l=5e4*eR,c=1e5*eR;if(e)for(let t of e){let e=E(t,["attrs","name"]);"adj1"===e?a=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj2"===e?o=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj3"===e&&(s=parseInt(E(t,["attrs","fmla"]).substring(4))*eR)}let u=t/2,h=Math.min(t,r),p=o<0?0:o>l?l:o,d=2*p,f=a<0?0:a>d?d:a,m=(c-d)/2,g=h*(s<0?0:s>m?m:s)/c,A=h*p/c,y=h*f/(2e5*eR),v=u-y,R=u+y,b=t-g,x=r-h*p/l,M=r-A,S=M-y,w=M+y;i=`M 0,${M} L ${g},${x} L ${g},${S} L ${v},${S} L ${v},${g} L ${u-A},${g} L ${u},0 L ${u+A},${g} L ${R},${g} L ${R},${S} L ${b},${S} L ${b},${x} L ${t},${M} L ${b},${r} L ${b},${w} L ${g},${w} L ${g},${r} z`}break;case"leftUpArrow":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=25e3*eR,o=25e3*eR,s=25e3*eR,l=5e4*eR,c=1e5*eR;if(e)for(let t of e){let e=E(t,["attrs","name"]);"adj1"===e?a=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj2"===e?o=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj3"===e&&(s=parseInt(E(t,["attrs","fmla"]).substring(4))*eR)}let u=Math.min(t,r),h=o<0?0:o>l?l:o,p=2*h,d=a<0?0:a>p?p:a,f=c-p,m=u*(s<0?0:s>f?f:s)/c,g=u*h/l,A=t-g,y=r-g,v=u*h/c,R=t-v,b=r-v,x=u*d/(2e5*eR),M=R-x,S=R+x,w=b-x,O=b+x;i=`M 0,${b} L ${m},${y} L ${m},${w} L ${M},${w} L ${M},${m} L ${A},${m} L ${R},0 L ${t},${m} L ${S},${m} L ${S},${O} L ${m},${O} L ${m},${r} z`}break;case"bentUpArrow":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=25e3*eR,o=25e3*eR,s=25e3*eR,l=5e4*eR,c=1e5*eR;if(e)for(let t of e){let e=E(t,["attrs","name"]);"adj1"===e?a=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj2"===e?o=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj3"===e&&(s=parseInt(E(t,["attrs","fmla"]).substring(4))*eR)}let u=Math.min(t,r),h=a<0?0:a>l?l:a,p=o<0?0:o>l?l:o,d=u*(s<0?0:s>l?l:s)/c,f=t-u*p/l,m=t-u*p/c,g=u*h/(2e5*eR),A=m-g,y=m+g,v=r-u*h/c;i=`M 0,${v} L ${A},${v} L ${A},${d} L ${f},${d} L ${m},0 L ${t},${d} L ${y},${d} L ${y},${r} L 0,${r} z`}break;case"bentArrow":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=25e3*eR,o=25e3*eR,s=25e3*eR,l=43750*eR,c=5e4*eR,u=1e5*eR;if(e)for(let t of e){let e=E(t,["attrs","name"]);"adj1"===e?a=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj2"===e?o=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj3"===e?s=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj4"===e&&(l=parseInt(E(t,["attrs","fmla"]).substring(4))*eR)}let h=Math.min(t,r),p=o<0?0:o>c?c:o,d=2*p,f=h*(a<0?0:a>d?d:a)/u,m=h*p/u,g=m-f/2,A=h*(s<0?0:s>c?c:s)/u,y=t-A,v=r-g,R=u*(y<v?y:v)/h,b=h*(l<0?0:l>R?R:l)/u,x=b-f,M=x>0?x:0,S=f+M,w=t-A,O=g+f,L=g+b,N=O+M;i=`M 0,${r} L 0,${L} ${e3(b,L,b,b,180,270,!1).replace("M","L")} L ${w},${g} L ${w},0 L ${t},${m} L ${w},${O+g} L ${w},${O} L ${S},${O} ${e3(S,N,M,M,270,180,!1).replace("M","L")} L ${f},${r} z`}break;case"uturnArrow":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=25e3*eR,o=25e3*eR,s=25e3*eR,l=43750*eR,c=75e3*eR,u=25e3*eR,h=1e5*eR;if(e)for(let t of e){let e=E(t,["attrs","name"]);"adj1"===e?a=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj2"===e?o=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj3"===e?s=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj4"===e?l=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj5"===e&&(c=parseInt(E(t,["attrs","fmla"]).substring(4))*eR)}let p=Math.min(t,r),d=o<0?0:o>u?u:o,f=2*d,m=a<0?0:a>f?f:a,g=(h-m*p/r)*r/p,A=s<0?0:s>g?g:s,y=(A+m)*p/r,v=c<y?y:c>h?h:c,R=p*m/h,b=p*d/h,x=b-R/2,M=r*v/h,S=M-p*A/h,w=t-x,O=w/2,L=h*(O<S?O:S)/p,N=p*(l<0?0:l>L?L:l)/h,_=N-R,T=_>0?_:0,P=R+T,C=t-b,I=C-b,k=I+x,F=w-N,X=k-T;i=`M 0,${r} L 0,${N} ${e3(N,N,N,N,180,270,!1).replace("M","L")} L ${F},0 ${e3(F,N,N,N,270,360,!1).replace("M","L")} L ${w},${S} L ${t},${S} L ${C},${M} L ${I},${S} L ${k},${S} L ${k},${P} ${e3(X,P,T,T,0,-90,!1).replace("M","L")} L ${P},${R} ${e3(P,P,T,T,270,180,!1).replace("M","L")} L ${R},${r} z`}break;case"stripedRightArrow":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=5e4*eR,o=5e4*eR,s=1e5*eR;if(e)for(let t of e){let e=E(t,["attrs","name"]);"adj1"===e?a=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj2"===e&&(o=parseInt(E(t,["attrs","fmla"]).substring(4))*eR)}let l=r/2,c=Math.min(t,r),u=84375*eR*t/c,h=a<0?0:a>s?s:a,p=5*c/32,d=t-c*(o<0?0:o>u?u:o)/s,f=r*h/(2e5*eR),m=l-f,g=l+f,A=c/8,y=c/16,v=c/32;i=`M 0,${m} L ${v},${m} L ${v},${g} L 0,${g} z M ${y},${m} L ${A},${m} L ${A},${g} L ${y},${g} z M ${p},${m} L ${d},${m} L ${d},0 L ${t},${l} L ${d},${r} L ${d},${g} L ${p},${g} z`}break;case"notchedRightArrow":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=5e4*eR,o=5e4*eR,s=1e5*eR;if(e)for(let t of e){let e=E(t,["attrs","name"]);"adj1"===e?a=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj2"===e&&(o=parseInt(E(t,["attrs","fmla"]).substring(4))*eR)}let l=r/2,c=Math.min(t,r),u=s*t/c,h=a<0?0:a>s?s:a,p=c*(o<0?0:o>u?u:o)/s,d=t-p,f=r*h/(2e5*eR),m=l-f,g=l+f;i=`M 0,${m} L ${d},${m} L ${d},0 L ${t},${l} L ${d},${r} L ${d},${g} L 0,${g} L ${f*p/l},${l} z`}break;case"homePlate":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),a=5e4*eR,o=1e5*eR;e&&(a=parseInt(e.substring(4))*eR);let s=r/2,l=Math.min(t,r),c=o*t/l,u=t-l*(a<0?0:a>c?c:a)/o;i=`M 0,0 L ${u},0 L ${t},${s} L ${u},${r} L 0,${r} z`}break;case"chevron":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),a=5e4*eR,o=1e5*eR;e&&(a=parseInt(e.substring(4))*eR);let s=r/2,l=Math.min(t,r),c=o*t/l,u=l*(a<0?0:a>c?c:a)/o,h=t-u;i=`M 0,0 L ${h},0 L ${t},${s} L ${h},${r} L 0,${r} L ${u},${s} z`}break;case"rightArrowCallout":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=25e3*eR,o=25e3*eR,s=25e3*eR,l=64977*eR,c=1e5*eR;if(e)for(let t of e){let e=E(t,["attrs","name"]);"adj1"===e?a=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj2"===e?o=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj3"===e?s=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj4"===e&&(l=parseInt(E(t,["attrs","fmla"]).substring(4))*eR)}let u=r/2,h=Math.min(t,r),p=5e4*eR*r/h,d=o<0?0:o>p?p:o,f=2*d,m=c*t/h,g=s<0?0:s>m?m:s,A=c-g*h/t,y=h*d/c,v=h*(a<0?0:a>f?f:a)/(2e5*eR),R=u-v,b=u+v,x=t-h*g/c,M=t*(l<0?0:l>A?A:l)/c;i=`M 0,0 L ${M},0 L ${M},${R} L ${x},${R} L ${x},${u-y} L ${t},${u} L ${x},${u+y} L ${x},${b} L ${M},${b} L ${M},${r} L 0,${r} z`}break;case"downArrowCallout":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=25e3*eR,o=25e3*eR,s=25e3*eR,l=64977*eR,c=1e5*eR;if(e)for(let t of e){let e=E(t,["attrs","name"]);"adj1"===e?a=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj2"===e?o=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj3"===e?s=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj4"===e&&(l=parseInt(E(t,["attrs","fmla"]).substring(4))*eR)}let u=t/2,h=Math.min(t,r),p=5e4*eR*t/h,d=o<0?0:o>p?p:o,f=2*d,m=c*r/h,g=s<0?0:s>m?m:s,A=c-g*h/r,y=h*d/c,v=h*(a<0?0:a>f?f:a)/(2e5*eR),R=u-v,b=u+v,x=r-h*g/c,M=r*(l<0?0:l>A?A:l)/c;i=`M 0,0 L ${t},0 L ${t},${M} L ${b},${M} L ${b},${x} L ${u+y},${x} L ${u},${r} L ${u-y},${x} L ${R},${x} L ${R},${M} L 0,${M} z`}break;case"leftArrowCallout":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=25e3*eR,o=25e3*eR,s=25e3*eR,l=64977*eR,c=1e5*eR;if(e)for(let t of e){let e=E(t,["attrs","name"]);"adj1"===e?a=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj2"===e?o=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj3"===e?s=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj4"===e&&(l=parseInt(E(t,["attrs","fmla"]).substring(4))*eR)}let u=r/2,h=Math.min(t,r),p=5e4*eR*r/h,d=o<0?0:o>p?p:o,f=2*d,m=c*t/h,g=s<0?0:s>m?m:s,A=c-g*h/t,y=h*d/c,v=h*(a<0?0:a>f?f:a)/(2e5*eR),R=u-v,b=u+v,x=h*g/c,M=t*(l<0?0:l>A?A:l)/c,S=t-M;i=`M 0,${u} L ${x},${u-y} L ${x},${R} L ${S},${R} L ${S},0 L ${t},0 L ${t},${r} L ${S},${r} L ${S},${b} L ${x},${b} L ${x},${u+y} z`}break;case"upArrowCallout":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=25e3*eR,o=25e3*eR,s=25e3*eR,l=64977*eR,c=1e5*eR;if(e)for(let t of e){let e=E(t,["attrs","name"]);"adj1"===e?a=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj2"===e?o=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj3"===e?s=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj4"===e&&(l=parseInt(E(t,["attrs","fmla"]).substring(4))*eR)}let u=t/2,h=Math.min(t,r),p=5e4*eR*t/h,d=o<0?0:o>p?p:o,f=2*d,m=c*r/h,g=s<0?0:s>m?m:s,A=c-g*h/r,y=h*d/c,v=h*(a<0?0:a>f?f:a)/(2e5*eR),R=u-v,b=u+v,x=h*g/c,M=r*(l<0?0:l>A?A:l)/c,S=r-M;i=`M 0,${S} L ${R},${S} L ${R},${x} L ${u-y},${x} L ${u},0 L ${u+y},${x} L ${b},${x} L ${b},${S} L ${t},${S} L ${t},${r} L 0,${r} z`}break;case"leftRightArrowCallout":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=25e3*eR,o=25e3*eR,s=25e3*eR,l=48123*eR,c=5e4*eR,u=1e5*eR,h=2e5*eR;if(e)for(let t of e){let e=E(t,["attrs","name"]);"adj1"===e?a=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj2"===e?o=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj3"===e?s=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj4"===e&&(l=parseInt(E(t,["attrs","fmla"]).substring(4))*eR)}let p=r/2,d=t/2,f=Math.min(t,r),m=c*r/f,g=o<0?0:o>m?m:o,A=2*g,y=c*t/f,v=s<0?0:s>y?y:s,R=u-v*f/(t/2),b=f*g/u,x=f*(a<0?0:a>A?A:a)/h,M=p-b,S=p-x,w=p+x,O=p+b,L=f*v/u,N=t-L,_=t*(l<0?0:l>R?R:l)/h,T=d-_,P=d+_;i=`M 0,${p} L ${L},${M} L ${L},${S} L ${T},${S} L ${T},0 L ${P},0 L ${P},${S} L ${N},${S} L ${N},${M} L ${t},${p} L ${N},${O} L ${N},${w} L ${P},${w} L ${P},${r} L ${T},${r} L ${T},${w} L ${L},${w} L ${L},${O} z`}break;case"quadArrowCallout":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=18515*eR,o=18515*eR,s=18515*eR,l=48123*eR,c=5e4*eR,u=1e5*eR,h=2e5*eR;if(e)for(let t of e){let e=E(t,["attrs","name"]);"adj1"===e?a=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj2"===e?o=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj3"===e?s=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj4"===e&&(l=parseInt(E(t,["attrs","fmla"]).substring(4))*eR)}let p=r/2,d=t/2,f=Math.min(t,r),m=o<0?0:o>c?c:o,g=2*m,A=a<0?0:a>g?g:a,y=c-m,v=s<0?0:s>y?y:s,R=u-2*v,b=l<A?A:l>R?R:l,x=f*m/u,M=f*A/h,S=f*v/u,w=t*b/h,O=r*b/h,L=t-S,N=d-w,_=d+w,T=d-x,P=d+x,C=d-M,I=d+M,k=r-S,F=p-O,X=p+O,U=p-x,W=p+x,V=p-M,Y=p+M;i=`M 0,${p} L ${S},${U} L ${S},${V} L ${N},${V} L ${N},${F} L ${C},${F} L ${C},${S} L ${T},${S} L ${d},0 L ${P},${S} L ${I},${S} L ${I},${F} L ${_},${F} L ${_},${V} L ${L},${V} L ${L},${U} L ${t},${p} L ${L},${W} L ${L},${Y} L ${_},${Y} L ${_},${X} L ${I},${X} L ${I},${k} L ${P},${k} L ${d},${r} L ${T},${k} L ${C},${k} L ${C},${X} L ${N},${X} L ${N},${Y} L ${S},${Y} L ${S},${W} z`}break;case"curvedDownArrow":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=25e3*eR,o=5e4*eR,s=25e3*eR,l=1e5*eR;if(e)for(let t of e){let e=E(t,["attrs","name"]);"adj1"===e?a=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj2"===e?o=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj3"===e&&(s=parseInt(E(t,["attrs","fmla"]).substring(4))*eR)}let c=t/2,u=Math.min(t,r),h=5e4*eR*t/u,p=u*(a<0?0:a>l?l:a)/l,d=u*(o<0?0:o>h?h:o)/l,f=c-(p+d)/4,m=2*f,g=Math.sqrt(m*m-p*p)*r/m,A=l*g/u,y=u*(s<0?0:s>A?A:s)/l,v=f+p,R=Math.sqrt(r*r-y*y)*f/r,b=f+R,x=v+R,M=(d-p)/2,S=t-d/2,w=r-y,O=180*Math.atan(R/y)/Math.PI,L=180*Math.atan(p/2/g)/Math.PI,N=270+O,_=270-L;i=`M ${S},${r} L ${b-M},${w} L ${b},${w} ${e3(f,r,f,r,N,N+-O,!1).replace("M","L")} L ${v},0 ${e3(v,r,f,r,270,270+O,!1).replace("M","L")} L ${b+p},${w} L ${x+M},${w} z M ${v},0 ${e3(v,r,f,r,_,_+(L-90),!1).replace("M","L")} ${e3(f,r,f,r,180,180+(90+L),!1).replace("M","L")}`}break;case"curvedLeftArrow":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=25e3*eR,o=5e4*eR,s=25e3*eR,l=1e5*eR;if(e)for(let t of e){let e=E(t,["attrs","name"]);"adj1"===e?a=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj2"===e?o=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj3"===e&&(s=parseInt(E(t,["attrs","fmla"]).substring(4))*eR)}let c=r/2,u=Math.min(t,r),h=5e4*eR*r/u,p=o<0?0:o>h?h:o,d=u*(a<0?0:a>p?p:a)/l,f=u*p/l,m=c-(d+f)/4,g=2*m,A=Math.sqrt(g*g-d*d)*t/g,y=l*A/u,v=u*(s<0?0:s>y?y:s)/l,R=m+d,b=Math.sqrt(t*t-v*v)*m/t,x=m+b,M=R+b,S=(f-d)/2,w=r-f/2,O=0+v,L=Math.atan(b/v),N=180*L/Math.PI,_=180*(Math.atan(d/2/A)-L)/Math.PI;i=`M ${t},${R} ${e3(0,m,t,m,0,-90,!1).replace("M","L")} L 0,0 ${e3(0,R,t,m,270,360,!1).replace("M","L")} L ${t},${R} ${e3(0,R,t,m,0,N,!1).replace("M","L")} L ${O},${M} L ${O},${M+S} L 0,${w} L ${O},${x-S} L ${O},${x} ${e3(0,m,t,m,N,N+_,!1).replace("M","L")} ${e3(0,m,t,m,0,-90,!1).replace("M","L")} ${e3(0,R,t,m,270,360,!1).replace("M","L")}`}break;case"curvedRightArrow":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=25e3*eR,o=5e4*eR,s=25e3*eR,l=1e5*eR;if(e)for(let t of e){let e=E(t,["attrs","name"]);"adj1"===e?a=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj2"===e?o=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj3"===e&&(s=parseInt(E(t,["attrs","fmla"]).substring(4))*eR)}let c=r/2,u=Math.min(t,r),h=5e4*eR*r/u,p=o<0?0:o>h?h:o,d=u*(a<0?0:a>p?p:a)/l,f=u*p/l,m=c-(d+f)/4,g=2*m,A=Math.sqrt(g*g-d*d)*t/g,y=l*A/u,v=u*(s<0?0:s>y?y:s)/l,R=m+d,b=Math.sqrt(t*t-v*v)*m/t,x=m+b,M=R+b,S=(f-d)/2,w=r-f/2,O=t-v,L=Math.atan(b/v),N=180*(Math.PI-L)/Math.PI,_=-(180*L)/Math.PI,T=180*L/Math.PI,P=180*(Math.atan(d/2/A)-Math.PI/2)/Math.PI;i=`M 0,${m} ${e3(t,m,t,m,180,180+_,!1).replace("M","L")} L ${O},${x} L ${O},${x-S} L ${t},${w} L ${O},${M+S} L ${O},${M} ${e3(t,R,t,m,N,N+T,!1).replace("M","L")} L 0,${m} ${e3(t,m,t,m,180,270,!1).replace("M","L")} L ${t},${d} ${e3(t,R,t,m,270,270+P,!1).replace("M","L")}`}break;case"curvedUpArrow":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=25e3*eR,o=5e4*eR,s=25e3*eR,l=1e5*eR;if(e)for(let t of e){let e=E(t,["attrs","name"]);"adj1"===e?a=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj2"===e?o=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj3"===e&&(s=parseInt(E(t,["attrs","fmla"]).substring(4))*eR)}let c=t/2,u=Math.min(t,r),h=5e4*eR*t/u,p=u*(a<0?0:a>l?l:a)/l,d=u*(o<0?0:o>h?h:o)/l,f=c-(p+d)/4,m=2*f,g=Math.sqrt(m*m-p*p)*r/m,A=l*g/u,y=u*(s<0?0:s>A?A:s)/l,v=f+p,R=Math.sqrt(r*r-y*y)*f/r,b=f+R,x=v+R,M=(d-p)/2,S=t-d/2,w=0+y,O=Math.atan(R/y),L=Math.atan(p/2/g),N=Math.PI/2-O,_=180*(Math.PI/2-L)/Math.PI,T=180*(L-O)/Math.PI,P=180*N/Math.PI,C=180*O/Math.PI;i=`${e3(f,0,f,r,_,_+T,!1)} L ${b},${w} L ${b-M},${w} L ${S},0 L ${x+M},${w} L ${x},${w} ${e3(v,0,f,r,P,P+C,!1).replace("M","L")} L ${f},${r} ${e3(f,0,f,r,90,180,!1).replace("M","L")} L ${p},0 ${e3(v,0,f,r,180,90,!1).replace("M","L")}`}break;case"mathDivide":case"mathEqual":case"mathMinus":case"mathMultiply":case"mathNotEqual":case"mathPlus":{let a,o,s,l=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]);if(l)if(Array.isArray(l))for(let e of l){let t=E(e,["attrs","name"]);"adj1"===t?a=parseInt(E(e,["attrs","fmla"]).substring(4)):"adj2"===t?o=parseInt(E(e,["attrs","fmla"]).substring(4)):"adj3"===t&&(s=parseInt(E(e,["attrs","fmla"]).substring(4)))}else a=parseInt(E(l,["attrs","fmla"]).substring(4));let c=5e4*eR,u=1e5*eR,h=2e5*eR,p=t/2,d=r/2,f=r/2;if("mathNotEqual"===e){void 0===a&&(a=23520),void 0===o&&(o=66e5),void 0===s&&(s=11760),a*=eR,o=o/6e4*Math.PI/180,s*=eR;let e=70*Math.PI/180,n=110*Math.PI/180,l=a<0?0:a>c?c:a,m=u-2*l,g=r*l/u,A=r*(s<0?0:s>m?m:s)/h,y=73490*eR*t/h,v=p-y,R=p+y,b=d-A,x=d+A,M=b-g,S=x+g,w=(o<e?e:o>n?n:o)-Math.PI/2,O=f*Math.tan(w),L=Math.sqrt(O*O+f*f),N=L*g/f,_=p+O-N/2,T=_-O*M/f,P=_-O*b/f,C=_-O*x/f,I=_-O*S/f,k=g*f/L,F=w>0?_+k:_+N,X=w>0?_:_+N-k,U=g*O/L,W=w>0?U:0,V=w>0?0:-U,E=t-F,Y=t-X,D=r-W,Q=r-V;i=`M ${v},${M} L ${T},${M} L ${X},${V} L ${F},${W} L ${T+N},${M} L ${R},${M} L ${R},${b} L ${P+N},${b} L ${C+N},${x} L ${R},${x} L ${R},${S} L ${I+N},${S} L ${Y},${Q} L ${E},${D} L ${I},${S} L ${v},${S} L ${v},${x} L ${C},${x} L ${P},${b} L ${v},${b} z`}else if("mathDivide"===e){void 0===a&&(a=23520),void 0===o&&(o=5880),void 0===s&&(s=11760),a*=eR,o*=eR,s*=eR;let e=1e3*eR,n=36745*eR,l=73490*eR,c=a<e?e:a>n?n:a,f=(l-c)/4,m=n*t/r,g=f<m?f:m,A=s<e?e:s>g?g:s,y=l-4*A-c,v=r*c/h,R=r*(o<0?0:o>y?y:o)/u,b=r*A/u,x=t*l/h,M=d-v,S=d+v,w=M-(R+b)-b,O=r-w,L=p-x,N=p+x;i=`M ${p},${w} A ${b},${b} 0 1,0 ${p},${w+2*b} A ${b},${b} 0 1,0 ${p},${w} z M ${p},${O} A ${b},${b} 0 1,1 ${p},${O-2*b} A ${b},${b} 0 1,1 ${p},${O} z M ${L},${M} L ${N},${M} L ${N},${S} L ${L},${S} z`}else if("mathEqual"===e){void 0===a&&(a=23520),void 0===o&&(o=11760),a*=eR,o*=eR;let e=36745*eR,n=a<0?0:a>e?e:a,s=u-2*n,l=r*n/u,c=r*(o<0?0:o>s?s:o)/h,f=73490*eR*t/h,m=d-c,g=d+c,A=m-l,y=g+l,v=p-f,R=p+f;i=`M ${v},${A} L ${R},${A} L ${R},${m} L ${v},${m} z M ${v},${g} L ${R},${g} L ${R},${y} L ${v},${y} z`}else if("mathMinus"===e){void 0===a&&(a=23520);let e=r*((a*=eR)<0?0:a>u?u:a)/h,n=73490*eR*t/h,o=d-e,s=d+e,l=p-n,c=p+n;i=`M ${l},${o} L ${c},${o} L ${c},${s} L ${l},${s} z`}else if("mathMultiply"===e){void 0===a&&(a=23520),a*=eR;let e=51965*eR,n=Math.min(t,r)*(a<0?0:a>e?e:a)/u,o=Math.atan(r/t),s=Math.sin(o),l=Math.cos(o),c=Math.tan(o),h=Math.sqrt(t*t+r*r),f=h-h*e/u,m=l*f/2,g=s*f/2,A=s*n/2,y=l*n/2,v=m-A,R=g+y,b=m+A,x=g-y,M=(p-b)*c+x,S=t-b,w=t-v,O=r-R,L=r-x,N=r-M;i=`M ${v},${R} L ${b},${x} L ${p},${M} L ${S},${x} L ${w},${R} L ${w-(d-R)/c},${d} L ${w},${O} L ${S},${L} L ${p},${N} L ${b},${L} L ${v},${O} L ${v+(d-R)/c},${d} z`}else if("mathPlus"===e){void 0===a&&(a=23520),a*=eR;let e=73490*eR,n=Math.min(t,r),o=a<0?0:a>e?e:a,s=t*e/h,l=r*e/h,c=n*o/h,u=p-s,f=p-c,m=p+c,g=p+s,A=d-l,y=d-c,v=d+c,R=d+l;i=`M ${u},${y} L ${f},${y} L ${f},${A} L ${m},${A} L ${m},${y} L ${g},${y} L ${g},${v} L ${m},${v} L ${m},${R} L ${f},${R} L ${f},${v} L ${u},${v} z`}}break;case"can":case"flowChartMagneticDisk":case"flowChartMagneticDrum":{let a=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),o=25e3*eR;a&&(o=parseInt(a.substring(4))*eR),("flowChartMagneticDisk"===e||"flowChartMagneticDrum"===e)&&(o=5e4*eR);let s=Math.min(t,r),l=5e4*eR*r/s,c=s*(o<0?0:o>l?l:o)/(2e5*eR),u=r-c,h=t/2,p=`${e3(h,c,h,c,0,180,!1)} ${e3(h,c,h,c,180,360,!1).replace("M","L")} L ${t},${u} ${e3(h,u,h,c,0,180,!1).replace("M","L")} L 0,${c}`;"flowChartMagneticDrum"===e&&(p=p.replace(/([MLQC])\s*([-\d.e]+)\s*([-\d.e]+)/gi,(e,n,i,a)=>{let o=t/2-(parseFloat(a)-r/2),s=r/2+(parseFloat(i)-t/2);return`${n}${o} ${s}`}).replace(/([MLQC])\s*([-\d.e]+)\s*([-\d.e]+)\s*([-\d.e]+)\s*([-\d.e]+)/gi,(e,n,i,a,o,s)=>{let l=t/2-(parseFloat(a)-r/2),c=r/2+(parseFloat(i)-t/2),u=t/2-(parseFloat(s)-r/2),h=r/2+(parseFloat(o)-t/2);return`${n}${l} ${c} ${u} ${h}`})),i=p}break;case"swooshArrow":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=25e3*eR,o=16667*eR;if(e)for(let t of e){let e=E(t,["attrs","name"]);"adj1"===e?a=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj2"===e&&(o=parseInt(E(t,["attrs","fmla"]).substring(4))*eR)}let s=+eR,l=75e3*eR,c=1e5*eR,u=Math.min(t,r),h=u/8,p=r/6,d=7e4*eR*t/u,f=r*(a<s?s:a>l?l:a)/c,m=t-u*(o<0?0:o>d?d:o)/c,g=Math.PI/2/14,A=h*Math.tan(g),y=f*Math.tan(g),v=h+f,R=m+y,b=v+h,x=r/20,M=t/6,S=t/4;i=`M 0,${r} Q ${M},${p+p} ${m},${h} L ${m-A},0 L ${t},${b/2-x} L ${R+A},${b} L ${R},${v} Q ${S},${v+p/2} 0,${r} z`}break;case"circularArrow":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=12500*eR,o=19.03865*Math.PI/180,s=340.96135*Math.PI/180,l=180*Math.PI/180,c=12500*eR;if(e)for(let t of e){let e=E(t,["attrs","name"]);"adj1"===e?a=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj2"===e?o=parseInt(E(t,["attrs","fmla"]).substring(4))/6e4*Math.PI/180:"adj3"===e?s=parseInt(E(t,["attrs","fmla"]).substring(4))/6e4*Math.PI/180:"adj4"===e?l=parseInt(E(t,["attrs","fmla"]).substring(4))/6e4*Math.PI/180:"adj5"===e&&(c=parseInt(E(t,["attrs","fmla"]).substring(4))*eR)}let u=t/2,h=r/2,p=t/2,d=r/2,f=Math.min(t,r),m=25e3*eR,g=1e5*eR,A=1/6e4*Math.PI/180,y=0x14996ff/6e4*Math.PI/180,v=2*Math.PI,R=c<0?0:c>m?m:c,b=2*R,x=s<A?A:s>y?y:s,M=l<0?0:l>y?y:l,S=f*(a<0?0:a>b?b:a)/g,w=f*R/g,O=S/2,L=p+O-w,N=d+O-w,_=L-S,T=N-S,P=_+O,C=T+O,I=P*Math.sin(x),k=C*Math.cos(x),F=P*Math.cos(Math.atan2(I,k)),X=C*Math.sin(Math.atan2(I,k)),U=u+F,W=h+X,V=Math.min(_,T),Y=(1+Math.sqrt(1-(F*F-V*V)*(X*X-V*V)/(F*F*X*X)))/((F*F-V*V)/F/X),D=Math.atan2(Y,1)>0?Math.atan2(Y,1):Math.atan2(Y,1)+v,Q=D-x>0?D-x:D-x+v,$=Math.abs(Q-Math.PI>0?Q-v:Q),B=x+(o<0?0:o>$?$:o),Z=P*Math.sin(B),K=C*Math.cos(B),G=P*Math.cos(Math.atan2(Z,K)),H=C*Math.sin(Math.atan2(Z,K)),z=U+w*Math.cos(B),J=W+w*Math.sin(B),j=U-w*Math.cos(B),q=W-w*Math.sin(B),ee=j-u,et=q-h,er=z-u,en=J-h,ei=Math.min(L,N),ea=ee*ei/L,eo=et*ei/N,es=er*ei/L,el=en*ei/N,ec=es-ea,eu=el-eo,eh=Math.sqrt(ec*ec+eu*eu),ep=ea*el-es*eo,ed=Math.sqrt(Math.max(0,ei*ei*eh*eh-ep*ep)),ef=-1*eu>0?-1:1,em=(ep*eu+ef*ec*ed)/(eh*eh),eg=(ep*eu-ef*ec*ed)/(eh*eh),eA=(-ep*ec+Math.abs(eu)*ed)/(eh*eh),ey=(-ep*ec-Math.abs(eu)*ed)/(eh*eh),ev=Math.sqrt((es-eg)**2+(el-ey)**2)-Math.sqrt((es-em)**2+(el-eA)**2),eb=u+(ev>0?em:eg)*L/ei,ex=h+(ev>0?eA:ey)*N/ei,eM=ee*V/_,eS=et*V/T,ew=er*V/_,eO=en*V/T,eL=ew-eM,eN=eO-eS,e_=Math.sqrt(eL*eL+eN*eN),eT=eM*eO-ew*eS,eP=Math.sqrt(Math.max(0,V*V*e_*e_-eT*eT)),eC=(eT*eN+ef*eL*eP)/(e_*e_),eI=(eT*eN-ef*eL*eP)/(e_*e_),ek=(-eT*eL+Math.abs(eN)*eP)/(e_*e_),eF=(-eT*eL-Math.abs(eN)*eP)/(e_*e_),eX=Math.sqrt((eM-eI)**2+(eS-eF)**2)-Math.sqrt((eM-eC)**2+(eS-ek)**2),eU=eX>0?eC:eI,eW=eX>0?ek:eF,eV=u+eU*_/V,eE=h+eW*T/V,eY=Math.atan2(eW*T/V,eU*_/V),eD=eY>0?eY:eY+v,eQ=M-eD,e$=Math.sqrt((eb-eV)**2+(ex-eE)**2)/2-w,eB=Math.atan2(ex-h,eb-u),eZ=(eB>0?eB:eB+v)-M,eK=180*M/Math.PI,eG=eK+180*(eZ>0?eZ:eZ+v)/Math.PI,eH=180*eD/Math.PI,ez=eH+180*(eQ>0?eQ-v:eQ)/Math.PI;i=`${e3(t/2,r/2,L,N,eK,eG,!1)} L ${e$>0?eb:z},${e$>0?ex:J} L ${u+G},${h+H} L ${e$>0?eV:j},${e$>0?eE:q} L ${eV},${eE} ${e3(t/2,r/2,_,T,eH,ez,!1).replace("M","L")} z`}break;case"leftCircularArrow":{let e=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=12500*eR,o=-19.03865*Math.PI/180,s=19.03865*Math.PI/180,l=180*Math.PI/180,c=12500*eR;if(e)for(let t of e){let e=E(t,["attrs","name"]);"adj1"===e?a=parseInt(E(t,["attrs","fmla"]).substring(4))*eR:"adj2"===e?o=parseInt(E(t,["attrs","fmla"]).substring(4))/6e4*Math.PI/180:"adj3"===e?s=parseInt(E(t,["attrs","fmla"]).substring(4))/6e4*Math.PI/180:"adj4"===e?l=parseInt(E(t,["attrs","fmla"]).substring(4))/6e4*Math.PI/180:"adj5"===e&&(c=parseInt(E(t,["attrs","fmla"]).substring(4))*eR)}let u=t/2,h=r/2,p=t/2,d=r/2,f=Math.min(t,r),m=25e3*eR,g=1e5*eR,A=1/6e4*Math.PI/180,y=0x14996ff/6e4*Math.PI/180,v=2*Math.PI,R=c<0?0:c>m?m:c,b=2*R,x=s<A?A:s>y?y:s,M=l<0?0:l>y?y:l,S=f*(a<0?0:a>b?b:a)/g,w=f*R/g,O=S/2,L=p+O-w,N=d+O-w,_=L-S,T=N-S,P=_+O,C=T+O,I=P*Math.cos(x),k=C*Math.sin(x),F=u+I,X=h+k,U=Math.min(_,T),W=(1+Math.sqrt(1-(I*I-U*U)*(k*k-U*U)/(I*I*k*k)))/((I*I-U*U)/I/k),V=Math.atan2(W,1)>0?Math.atan2(W,1):Math.atan2(W,1)+v,Y=V-x>0?V-x:V-x+v,D=-Math.abs(Y-Math.PI>0?Y-v:Y),Q=x+(o<D?D:o>0?0:o),$=P*Math.cos(Q),B=C*Math.sin(Q),Z=L*Math.cos(M),K=N*Math.sin(M),G=_*Math.cos(M),H=T*Math.sin(M),z=F+w*Math.cos(Q),J=X+w*Math.sin(Q),j=F-w*Math.cos(Q),q=X-w*Math.sin(Q),ee=j-u,et=q-h,er=z-u,en=J-h,ei=Math.min(L,N),ea=ee*ei/L,eo=et*ei/N,es=er*ei/L,el=en*ei/N,ec=es-ea,eu=el-eo,eh=Math.sqrt(ec*ec+eu*eu),ep=ea*el-es*eo,ed=Math.sqrt(Math.max(0,ei*ei*eh*eh-ep*ep)),ef=-1*eu>0?-1:1,em=(ep*eu+ef*ec*ed)/(eh*eh),eg=(ep*eu-ef*ec*ed)/(eh*eh),eA=(-ep*ec+Math.abs(eu)*ed)/(eh*eh),ey=(-ep*ec-Math.abs(eu)*ed)/(eh*eh),ev=Math.sqrt((es-eg)**2+(el-ey)**2)-Math.sqrt((es-em)**2+(el-eA)**2),eb=u+(ev>0?em:eg)*L/ei,ex=h+(ev>0?eA:ey)*N/ei,eM=ee*U/_,eS=et*U/T,ew=er*U/_,eO=en*U/T,eL=ew-eM,eN=eO-eS,e_=Math.sqrt(eL*eL+eN*eN),eT=eM*eO-ew*eS,eP=Math.sqrt(Math.max(0,U*U*e_*e_-eT*eT)),eC=(eT*eN+ef*eL*eP)/(e_*e_),eI=(eT*eN-ef*eL*eP)/(e_*e_),ek=(-eT*eL+Math.abs(eN)*eP)/(e_*e_),eF=(-eT*eL-Math.abs(eN)*eP)/(e_*e_),eX=Math.sqrt((eM-eI)**2+(eS-eF)**2)-Math.sqrt((eM-eC)**2+(eS-ek)**2),eU=eX>0?eC:eI,eW=eX>0?ek:eF,eV=u+eU*_/U,eE=h+eW*T/U,eY=Math.atan2(eW*T/U,eU*_/U),eD=eY>0?eY:eY+v,eQ=M-eD,e$=eQ>0?eQ:eQ+v,eB=Math.sqrt((eb-eV)**2+(ex-eE)**2)/2-w,eZ=Math.atan2(ex-h,eb-u),eK=(eZ>0?eZ:eZ+v)-M,eG=180*(M+(eK>0?eK-v:eK))/Math.PI,eH=180*M/Math.PI,ez=180*(eD+e$)/Math.PI,eJ=ez+-(180*e$)/Math.PI;i=`M ${u+Z},${h+K} L ${u+G},${h+H} ${e3(t/2,r/2,_,T,ez,eJ,!1).replace("M","L")} L ${eB>0?eV:j},${eB>0?eE:q} L ${u+$},${h+B} L ${eB>0?eb:z},${eB>0?ex:J} L ${eb},${ex} ${e3(t/2,r/2,L,N,eG,eH,!1).replace("M","L")} z`}}return i}function e4(e,t){if(!e||!t)return null;let r=E(e,[t,"p:transition"]);return r||(r=E(e,[t,"mc:AlternateContent","mc:Choice","p:transition"]))?r:r=E(e,[t,"mc:AlternateContent","mc:Fallback","p:transition"])}let e6=new Set(["entr","exit","emph","path","verb","mediacall"]),e8={clickEffect:"onClick",withEffect:"withPrevious",afterEffect:"afterPrevious",clickPar:"onClick",withGroup:"withPrevious",afterGroup:"afterPrevious",interactiveSeq:"onClick"};function e9(e){return null==e?[]:Array.isArray(e)?e:[e]}function e7(e){if(null==e||""===e||"indefinite"===e)return null;let t=parseInt(e,10);return Number.isFinite(t)?t:null}async function te(e,t,r=!1){if(!t)return null;let n=`${r?"drawing:":"xml:"}${t}`;if(e.diagramFileCache[n])return e.diagramFileCache[n];let i=await X(e.zip,t);return i&&r&&(i=JSON.parse(JSON.stringify(i).replace(/dsp:/g,"p:"))),e.diagramFileCache[n]=i,i}async function tt(e,t){let r=E(e,["a:graphic","a:graphicData","dgm:relIds","attrs"])||{},n={data:null,layout:null,quickStyle:null,colors:null,drawing:null},i={},a={},o=E(t.slideResObj,[r["r:dm"],"target"]),s=E(t.slideResObj,[r["r:lo"],"target"]),l=E(t.slideResObj,[r["r:qs"],"target"]),c=E(t.slideResObj,[r["r:cs"],"target"]);o&&(n.data=await te(t,o)),s&&(n.layout=await te(t,s)),l&&(n.quickStyle=await te(t,l)),c&&(n.colors=await te(t,c));let u=n.data?function(e){let t=E(e,["dgm:dataModel","dgm:extLst","a:ext"]);if(!t)return"";for(let e of(Array.isArray(t)||(t=[t]),t)){let t=E(e,["dsp:dataModelExt","attrs","relId"]);if(t)return t}return""}(n.data):"",h=E(t.slideResObj,[u,"target"]);if(h){n.drawing=i=await te(t,h,!0)||{};let e=h.split("/").pop(),r=h.replace(e,"_rels/"+e)+".rels",o=await X(t.zip,r);if(o){let t=o.Relationships.Relationship;if(t&&t.constructor!==Array&&(t=[t]),t)for(let r of t){let t=r.attrs.Target;t=0===(t=t.replace(/\\/g,"/")).indexOf("/ppt/")?t.substr(1):-1!==t.indexOf("../")?t.replace("../","ppt/"):h.replace(e,"")+t,a[r.attrs.Id]={type:r.attrs.Type.replace("http://schemas.openxmlformats.org/officeDocument/2006/relationships/",""),target:t}}}}return{...t,digramFileContent:i,diagramResObj:a,diagramContent:n}}let tr=["http://schemas.openxmlformats.org/officeDocument/2006/relationships/","http://schemas.microsoft.com/office/2007/relationships/"];function tn(e){if(!e)return"";for(let t of tr)if(0===e.indexOf(t))return e.replace(t,"");return e}async function ti(e,t={}){let r,i=[],a={},o={},s={},l={},c={...t,imageMode:t.imageMode||"base64",videoMode:t.videoMode||"none",audioMode:t.audioMode||"none"};if(e instanceof ArrayBuffer?r=new Uint8Array(e):"u">typeof File&&e instanceof File?r=new Uint8Array(await e.arrayBuffer()):"u">typeof I&&I.isBuffer(e)&&(r=new Uint8Array(e)),r&&208===r[0]&&207===r[1]&&17===r[2]&&224===r[3])throw Error("ENCRYPTED_FILE");let u=await n.loadAsync(e),h=await th(u),{width:p,height:d,defaultTextStyle:f}=await td(u),{themeContent:m,themeColors:g}=await tf(u),A=await tp(u);for(let e of h.slides){let t=await tg(u,e,m,f,a,o,s,c,l);t&&i.push(t)}return{slides:i,usedFonts:A,themeColors:g,size:{width:p,height:d}}}function ta(e){return e?e.constructor===Array?e:[e]:[]}function to(e,t){return(/(\d+)\.xml/.exec(e)?.[1]||0)-(/(\d+)\.xml/.exec(t)?.[1]||0)}function ts(e){return String(e||"").replace(/\\/g,"/").replace(/^\//,"")}function tl(e,t){let r=String(t||"").replace(/\\/g,"/");if(!r)return"";if(r.startsWith("/"))return ts(r);let n=ts(e),i=n.lastIndexOf("/"),a=-1===i?"":n.slice(0,i+1),o=[];for(let e of`${a}${r}`.split("/"))e&&"."!==e&&(".."===e?o.pop():o.push(e));return o.join("/")}async function tc(e){for(let t of ta(E(await X(e,"_rels/.rels"),["Relationships","Relationship"]))){let e=E(t,["attrs","Type"]),r=E(t,["attrs","Target"]),n=E(t,["attrs","TargetMode"]);if((!n||"external"!==String(n).toLowerCase())&&"officeDocument"===tn(e)&&r){let e=tl("",r);if(e)return e}}return"ppt/presentation.xml"}async function tu(e){let t,r,n,i,a=await tc(e),o=ta(E(await X(e,(n=-1===(r=(t=ts(a)).lastIndexOf("/"))?"":t.slice(0,r+1),i=-1===r?t:t.slice(r+1),`${n}_rels/${i}.rels`)),["Relationships","Relationship"])),s={},l=[];for(let e of o){let t=E(e,["attrs","Id"]),r=E(e,["attrs","Type"]),n=E(e,["attrs","Target"]),i=E(e,["attrs","TargetMode"]);if(!t||!n||i&&"external"===String(i).toLowerCase())continue;let o=tl(a,n);o&&(s[t]=o,"slide"===tn(r)&&l.push(o))}let c=ta(E(await X(e,a),["p:presentation","p:sldIdLst","p:sldId"])),u=[];for(let e of c){var h;let t=(h=e?.attrs)&&(h["r:id"]||h.rId)||"";t&&s[t]&&u.push(s[t])}return u.length?u:l}async function th(e){let t=ta(E(await X(e,"[Content_Types].xml"),["Types","Override"])),r=[],n=[];for(let e of t){let t=e?.attrs?.ContentType,i=e?.attrs?.PartName;if(!t||!i)continue;let a=String(i).replace(/^\//,"");switch(t){case"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":r.push(a);break;case"application/vnd.openxmlformats-officedocument.presentationml.slideLayout+xml":n.push(a)}}n=n.sort(to);let i=await tu(e);return i.length||(i=r.sort(to)),{slides:i,slideLayouts:n}}async function tp(e){let t=E(await X(e,"ppt/presentation.xml"),["p:presentation","p:embeddedFontLst","p:embeddedFont"]),r=[];if(!t)return r;let n=t.constructor===Array?t:[t],i=await X(e,"ppt/_rels/presentation.xml.rels"),a={};if(i){let e=E(i,["Relationships","Relationship"]);if(e)for(let t of(e.constructor!==Array&&(e=[e]),e)){let e=E(t,["attrs","Id"]),r=E(t,["attrs","Target"]);e&&r&&(a[e]=r)}}let o=["p:regular","p:bold","p:italic","p:boldItalic"];for(let t of n){let n=E(t,["p:font","attrs","typeface"]);if(!n)continue;let i="";for(let r of o){let n=t[r];if(!n)continue;let o=E(n,["attrs","r:id"]);if(!o)continue;let s=a[o];if(!s)continue;let l=s;if(l=l.startsWith("../")?l.substring(3):"ppt/"+l,i=await eq(e,l))break}r.push({name:n,fontFamily:function(e){if(!e)return"";if(e0[e])return e0[e];let t=e.toLowerCase();for(let[e,r]of Object.entries(e0))if(e.toLowerCase()===t)return r;for(let[r,n]of Object.entries(e0))if(t.startsWith(r.toLowerCase()))return`${e}, ${n}`;return function(e){let t=e.toLowerCase();return t.includes("mono")||t.includes("code")||t.includes("console")||t.includes("courier")||t.includes("terminal")||t.includes("fixed")?`${e}, monospace`:t.includes("serif")||t.includes("roman")||t.includes("mincho")||t.includes("song")||t.includes("sung")||t.includes("ming")||t.includes("times")||t.includes("georgia")?`${e}, serif`:t.includes("script")||t.includes("cursive")||t.includes("hand")||t.includes("writing")||t.includes("kai")||t.includes("shu")?`${e}, cursive`:`${e}, sans-serif`}(e)}(n),blob:i})}return r}async function td(e){let t=await X(e,"ppt/presentation.xml"),r=t["p:presentation"]["p:sldSz"].attrs,n=t["p:presentation"]["p:defaultTextStyle"];return{width:parseInt(r.cx)*eR,height:parseInt(r.cy)*eR,defaultTextStyle:n}}async function tf(e){let t,r=null,n=(await X(e,"ppt/_rels/presentation.xml.rels")).Relationships.Relationship;if(n.constructor===Array){for(let e of n)if("http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme"===e.attrs.Type){t=e.attrs.Target;break}}else"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme"===n.attrs.Type&&(t=n.attrs.Target);if(!t){let r=await X(e,"ppt/slideMasters/_rels/slideMaster1.xml.rels");if(r){let e=r.Relationships.Relationship;if(e.constructor===Array){for(let r of e)if("http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme"===r.attrs.Type){t=r.attrs.Target;break}}else"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme"===e.attrs.Type&&(t=e.attrs.Target)}}if(t){(t=t.replace(/\\/g,"/")).startsWith("../")&&(t=t.substring(3));let n=0===t.indexOf("/ppt/")?t.substr(1):"ppt/"+t;r=await X(e,n)}let i=[];if(r){let e=E(r,["a:theme","a:themeElements","a:clrScheme"]);if(e)for(let t=1;t<=6&&void 0!==e[`a:accent${t}`];t++){let r=E(e,[`a:accent${t}`,"a:srgbClr","attrs","val"]);r&&i.push("#"+r)}}return{themeContent:r,themeColors:i}}async function tm(e,t,r){if(!t)return null;if(Object.prototype.hasOwnProperty.call(r,t))return r[t];let n=await X(e,t);return r[t]=n,n}async function tg(e,t,r,n,i,a,o,s,l){let c,u=t.replace("slides/slide","slides/_rels/slide")+".rels",h=await X(e,u);if(!h)return null;let p=h.Relationships.Relationship;p.constructor!==Array&&(p=[p]);let d="",f="",m="",g="",A={},y={},v={},R={};for(let e of p){let t=tn(e.attrs.Type),r=e.attrs.Target;"External"!==e.attrs.TargetMode&&(r=0===(r=r.replace(/\\/g,"/")).indexOf("/ppt/")?r.substr(1):-1!==r.indexOf("../")?r.replace("../","ppt/"):"ppt/slides/"+r),"slideLayout"===t?f=r:"notesSlide"===t&&(d=r),A[e.attrs.Id]={type:t,target:r}}let b=function(e){let t="",r=E(e,["p:notes","p:cSld","p:spTree","p:sp"]);if(!r)return"";for(let e of(r.constructor!==Array&&(r=[r]),r)){if("body"!==E(e,["p:nvSpPr","p:nvPr","p:ph","attrs","type"]))continue;let r=E(e,["p:txBody"]);if(!r)continue;let n=r["a:p"];if(!n)continue;n.constructor!==Array&&(n=[n]);let i=[];for(let e of n){let r=e["a:pPr"],n=E(r,["attrs","algn"]),a="left";if(n)switch(n){case"r":a="right";break;case"ctr":a="center";break;case"just":case"dist":a="justify"}let o="";r&&(r["a:buChar"]?o="ul":r["a:buAutoNum"]&&(o="ol"));let s=E(r,["attrs","lvl"]),l=void 0!==s?parseInt(s):0;if(o){for(;i.length>l+1;)t+=`</${i.pop()}>`;void 0===i[l]?(t+=`<${o}>`,i[l]=o):i[l]!==o&&(t+=`</${i[l]}>`,t+=`<${o}>`,i[l]=o),t+=`<li><p style="text-align:${a};">`}else{for(;i.length>0;)t+=`</${i.pop()}>`;t+=`<p style="text-align:${a};">`}let c=e["a:r"];if(c)for(let e of(c.constructor!==Array&&(c=[c]),c)){let r=eG(E(e,["a:t"]));r&&"string"==typeof r&&(t+=r)}o?t+="</p></li>":t+="</p>"}for(;i.length>0;)t+=`</${i.pop()}>`}return t}(await X(e,d)),x=await tm(e,f,l),M=tv(x),S=f.replace("slideLayouts/slideLayout","slideLayouts/_rels/slideLayout")+".rels",w=await tm(e,S,l);if(w&&(p=w.Relationships.Relationship))for(let e of(p.constructor!==Array&&(p=[p]),p)){let t=tn(e.attrs.Type),r=e.attrs.Target;r=0===(r=r.replace(/\\/g,"/")).indexOf("/ppt/")?r.substr(1):-1!==r.indexOf("../")?r.replace("../","ppt/"):"ppt/slideLayouts/"+r,"slideMaster"===t?m=r:y[e.attrs.Id]={type:t,target:r}}let O=await tm(e,m,l),L=E(O,["p:sldMaster","p:txStyles"]),N=tv(O),_=m.replace("slideMasters/slideMaster","slideMasters/_rels/slideMaster")+".rels",T=await tm(e,_,l);if(T&&(p=T.Relationships.Relationship))for(let e of(p.constructor!==Array&&(p=[p]),p)){let t=tn(e.attrs.Type),r=e.attrs.Target;r=0===(r=r.replace(/\\/g,"/")).indexOf("/ppt/")?r.substr(1):-1!==r.indexOf("../")?r.replace("../","ppt/"):"ppt/slideMasters/"+r,"theme"===t?g=r:v[e.attrs.Id]={type:t,target:r}}let P=r;if(g){P=await tm(e,g,l)||P;let t=g.split("/").pop(),r=g.replace(t,"_rels/"+t)+".rels",n=await X(e,r);if(n&&(p=n.Relationships.Relationship))for(let e of(p.constructor!==Array&&(p=[p]),p)){let t=e.attrs.Target;t=0===(t=t.replace(/\\/g,"/")).indexOf("/ppt/")?t.substr(1):t.replace("../","ppt/"),R[e.attrs.Id]={type:tn(e.attrs.Type),target:t}}}let C=await tm(e,"ppt/tableStyles.xml",l),I=await X(e,t);if(!I)return null;let k=I["p:sld"]["p:cSld"]["p:spTree"],F={zip:e,loadedImages:i,loadedVideos:a,loadedAudios:o,options:s,slideLayoutContent:x,slideLayoutTables:M,slideMasterContent:O,slideMasterTables:N,slideContent:I,tableStyles:C,slideResObj:A,slideMasterTextStyles:L,layoutResObj:y,masterResObj:v,themeContent:P,themeResObj:R,diagramFileCache:{},defaultTextStyle:n},U=await ty(F),W=await eu(F),V=[];for(let e in k)for(let t of(k[e].constructor!==Array&&(k[e]=[k[e]]),k[e])){let r=await tR(e,t,F,"slide");r&&V.push(r)}let Y=e4(I,"p:sld");Y||(Y=e4(x,"p:sldLayout")),Y||(Y=e4(O,"p:sldMaster"));let D=function(e){if(!e)return null;let t={type:"none",duration:1e3,direction:null},r=e.attrs||{},n=!1,i=/^p\d{2}:dur$/;for(let e in r)if(i.test(e)&&!isNaN(parseInt(r[e],10))){t.duration=parseInt(r[e],10),n=!0;break}if(!n&&r.spd)switch(r.spd){case"slow":default:t.duration=1e3;break;case"med":t.duration=800;break;case"fast":t.duration=500}"0"===r.advClick&&r.advTm&&(t.autoNextAfter=parseInt(r.advTm,10));let a=/^(p|p\d{2}):/;for(let r in e)if("attrs"!==r&&a.test(r)){let i=e[r];if(t.type=r.substring(r.indexOf(":")+1),i&&i.attrs){let e=i.attrs;!e.dur||isNaN(parseInt(e.dur,10))||n||(t.duration=parseInt(e.dur,10)),e.dir&&(t.direction=e.dir)}break}return t}(Y),{animations:Q,builds:$}=(c=I?E(I,["p:sld","p:timing"])||E(I,["p:sld","mc:AlternateContent","mc:Choice","p:timing"])||E(I,["p:sld","mc:AlternateContent","mc:Fallback","p:timing"]):null)?{animations:function e(t,r="onClick",n=0,i=[]){if(!t||"object"!=typeof t)return i;let a=t.attrs||{},o=e8[a.nodeType]||r,s=function(e,t=0){let r=e7(e?.attrs?.delay);if(null!=r&&r>=0)return r;let n=e?.["p:stCondLst"];for(let e of e9(n?.["p:cond"]||n)){let t=e7(e?.attrs?.delay);if(null!=t&&t>=0)return t}return t}(t,n);if(a.presetClass&&e6.has(a.presetClass)){let e,r,n,l,c=[...new Set(function e(t,r=[]){if(!t||"object"!=typeof t)return r;let n=t.attrs?.spid;for(let i of(null!=n&&""!==n&&r.push(String(n)),Object.keys(t)))if("attrs"!==i&&"value"!==i)for(let n of e9(t[i]))e(n,r);return r}(t))],u=(e=null,(r=t=>{if(!t||"object"!=typeof t)return;let n=e7(t.attrs?.dur);for(let i of(null!=n&&n>=0&&(e=n),Object.keys(t)))if("attrs"!==i&&"value"!==i)for(let e of e9(t[i]))r(e)})(t),e),h=(n="",(l=e=>{if(e&&"object"==typeof e){for(let t of(e.attrs?.filter&&(n=e.attrs.filter),Object.keys(e)))if("attrs"!==t&&"value"!==t)for(let r of e9(e[t]))l(r)}})(t),n),p=e8[a.nodeType]||o;for(let e of c){let t={spid:e,trigger:p,class:a.presetClass,presetId:parseInt(a.presetID||"0",10)||0,presetSubtype:parseInt(a.presetSubtype||"0",10)||0,duration:null!=u?u:1e3,delay:s};h&&(t.filter=h),i.push(t)}return i}for(let r of Object.keys(t))if("attrs"!==r&&"value"!==r)for(let n of e9(t[r]))e(n,o,s,i);return i}(c),builds:function(e){let t=e?.["p:bldLst"];if(!t)return[];let r=[];for(let[e,n]of[["p:bldP","paragraph"],["p:bldDgm","diagram"],["p:bldGraphic","graphic"],["p:bldOleChart","oleChart"]])for(let i of e9(t[e])){let e=i?.attrs?.spid;if(null==e||""===e)continue;let t={spid:String(e),type:n};(i.attrs?.animBg==="1"||i.attrs?.animBg==="true")&&(t.animBg=!0),r.push(t)}return r}(c)}:{animations:[],builds:[]},B=E(I,["p:sld","attrs","showMasterSp"]);return{fill:W,elements:V,layoutElements:U,note:b,transition:D,hideBackground:"0"===B||"false"===B,animations:Q,builds:$}}function tA(e,t){let r=E(e,["a:hlinkClick","attrs"]);if(!r)return null;let n=r["r:id"];if(!n)return null;let i=t.slideResObj[n];if(!i||"hyperlink"!==i.type)return null;let a=i.target;return a&&/^https?:\/\//.test(a)?a:null}async function ty(e){let t=[],r=e.slideLayoutContent,n=e.slideMasterContent,i=E(r,["p:sldLayout","p:cSld","p:spTree"]),a=E(n,["p:sldMaster","p:cSld","p:spTree"]),o=E(r,["p:sldLayout","attrs","showMasterSp"]);if(i){for(let r in i)if(i[r].constructor===Array){for(let n=0;n<i[r].length;n++)if(!E(i[r][n],["p:nvSpPr","p:nvPr","p:ph"])){let a=await tR(r,i[r][n],e,"slideLayoutBg");a&&t.push(a)}}else if(!E(i[r],["p:nvSpPr","p:nvPr","p:ph"])){let n=await tR(r,i[r],e,"slideLayoutBg");n&&t.push(n)}}if(a&&"0"!==o){for(let r in a)if(a[r].constructor===Array){for(let n=0;n<a[r].length;n++)if(!E(a[r][n],["p:nvSpPr","p:nvPr","p:ph"])){let i=await tR(r,a[r][n],e,"slideMasterBg");i&&t.push(i)}}else if(!E(a[r],["p:nvSpPr","p:nvPr","p:ph"])){let n=await tR(r,a[r],e,"slideMasterBg");n&&t.push(n)}}return t}function tv(e){if(!e)return{idTable:{},idxTable:{},typeTable:{}};let t=Object.keys(e),r=e[t[0]]?.["p:cSld"]?.["p:spTree"];if(!r)return{idTable:{},idxTable:{},typeTable:{}};let n={},i={},a={};for(let e in r){if("p:nvGrpSpPr"===e||"p:grpSpPr"===e)continue;let t=r[e];if(t.constructor===Array)for(let e of t){let t=e["p:nvSpPr"],r=E(t,["p:cNvPr","attrs","id"]),o=E(t,["p:nvPr","p:ph","attrs","idx"]),s=E(t,["p:nvPr","p:ph","attrs","type"]);r&&(n[r]=e),o&&(i[o]=e),s&&!a[s]&&(a[s]=e)}else{let e=t["p:nvSpPr"],r=E(e,["p:cNvPr","attrs","id"]),o=E(e,["p:nvPr","p:ph","attrs","idx"]),s=E(e,["p:nvPr","p:ph","attrs","type"]);r&&(n[r]=t),o&&(i[o]=t),s&&!a[s]&&(a[s]=t)}}return{idTable:n,idxTable:i,typeTable:a}}async function tR(e,t,r,n,i=[]){let a;switch(e){case"p:sp":a=await tM(t,r,n,i);break;case"p:cxnSp":a=await tS(t,r,n);break;case"p:pic":a=await tO(t,r,n);break;case"p:graphicFrame":a=await tL(t,r,n);break;case"p:grpSp":a=await tx(t,r,n,i);break;case"mc:AlternateContent":E(t,["mc:Fallback","p:grpSpPr","a:xfrm"])?a=await tx(E(t,["mc:Fallback"]),r,n,i):E(t,["mc:Choice"])&&(a=await tb(t,r,n))}if(a&&"object"==typeof a&&!a.id){let e=E(t,["p:nvSpPr","p:cNvPr","attrs","id"])||E(t,["p:nvPicPr","p:cNvPr","attrs","id"])||E(t,["p:nvCxnSpPr","p:cNvPr","attrs","id"])||E(t,["p:nvGrpSpPr","p:cNvPr","attrs","id"])||E(t,["p:nvGraphicFramePr","p:cNvPr","attrs","id"])||E(t,["mc:Choice","p:sp","p:nvSpPr","p:cNvPr","attrs","id"])||E(t,["mc:Fallback","p:sp","p:nvSpPr","p:cNvPr","attrs","id"])||E(t,["mc:Fallback","p:nvGrpSpPr","p:cNvPr","attrs","id"]);a.id=e||""}return a}async function tb(e,t,r){let n=E(e,["mc:Choice"]),i=E(e,["mc:Fallback"]),a=e.attrs.order,o=E(n,["p:sp","p:spPr","a:xfrm"]),{top:s,left:l}=eT(o,void 0,void 0),{width:c,height:u}=eP(o,void 0,void 0),h=function e(t){let r=[];return"object"!=typeof t||(t["m:oMath"]&&(r=r.concat(t["m:oMath"])),Object.values(t).forEach(t=>{(Array.isArray(t)||"object"==typeof t)&&(r=r.concat(e(t)))})),r}(n)[0];if(!h)return null;let p=eC(h),d=E(i,["p:sp","p:spPr","a:blipFill"]),f=await ei(r,d,t),m="";if(E(n,["p:sp","p:txBody","a:p","a:r"])){let e=E(n,["p:sp"]);m=eH(e["p:txBody"],e,void 0,void 0,void 0,t)}return{type:"math",top:s,left:l,width:c,height:u,latex:p,picRef:f.ref,picBase64:f.base64,picBlob:f.blob,text:m,order:a}}async function tx(e,t,r,n=[]){let i=e.attrs.order,a=E(e,["p:grpSpPr","a:xfrm"]);if(!a)return null;let o=parseInt(a["a:off"].attrs.x)*eR,s=parseInt(a["a:off"].attrs.y)*eR,l=parseInt(a["a:chOff"].attrs.x)*eR,c=parseInt(a["a:chOff"].attrs.y)*eR,u=parseInt(a["a:ext"].attrs.cx)*eR,h=parseInt(a["a:ext"].attrs.cy)*eR,p=parseInt(a["a:chExt"].attrs.cx)*eR,d=parseInt(a["a:chExt"].attrs.cy)*eR,f=U(E(a,["attrs","flipV"])),m=U(E(a,["attrs","flipH"])),g=E(a,["attrs","rot"])||0;g&&(g=Y(g));let A=0===p?0:u/p,y=0===d?0:h/d,v=[...n,e],R=[];for(let n in e)if(e[n].constructor===Array)for(let i of e[n]){let e=await tR(n,i,t,r,v);e&&R.push(e)}else{let i=await tR(n,e[n],t,r,v);i&&R.push(i)}let b=(e,t=0,r=0)=>{let n=((e.rotate||0)%360+360)%360,i=1e-6>Math.abs(A-y),a=90===n||270===n,o=e.left+e.width/2,s=e.top+e.height/2,l=e.width*(a&&!i?y:A),c=e.height*(a&&!i?A:y);return{...e,left:$((o-t)*A-l/2),top:$((s-r)*y-c/2),width:$(l),height:$(c)}},x=R.map(e=>({...b(e,l,c),..."group"===e.type&&e.elements?{elements:function e(t,r=0){return r>10?t:t.map(t=>{let n=b(t);return"group"===t.type&&t.elements&&(n.elements=e(t.elements,r+1)),n})}(e.elements)}:{}}));return{type:"group",top:$(s),left:$(o),width:$(u),height:$(h),rotate:g,order:i,isFlipV:f,isFlipH:m,elements:x}}async function tM(e,t,r,n=[]){let i,a,o=E(e,["p:nvSpPr","p:cNvPr"]),s=E(o,["attrs","name"]),l=E(e,["p:nvSpPr","p:nvPr","p:ph","attrs","idx"]),c=E(e,["p:nvSpPr","p:nvPr","p:ph","attrs","type"]),u=E(e,["attrs","order"]);c?l?(i=t.slideLayoutTables.idxTable[l],a=t.slideMasterTables.idxTable[l],i||(i=t.slideLayoutTables.typeTable[c]),a||(a=t.slideMasterTables.typeTable[c])):(i=t.slideLayoutTables.typeTable[c],a=t.slideMasterTables.typeTable[c]):l&&(i=t.slideLayoutTables.idxTable[l],a=t.slideMasterTables.idxTable[l]),!c&&U(E(e,["p:nvSpPr","p:cNvSpPr","attrs","txBox"]))&&(c="text"),c||(c=E(i,["p:nvSpPr","p:nvPr","p:ph","attrs","type"])),c||(c=E(a,["p:nvSpPr","p:nvPr","p:ph","attrs","type"])),a||"ctrTitle"!==c||(a=t.slideMasterTables.typeTable.title),c||(c="diagramBg"===r?"diagram":"obj");let h=tA(o,t);return await tw(e,i,a,s,c,u,t,r,h,n)}async function tS(e,t,r){let n=E(e,["p:nvCxnSpPr","p:cNvPr"]),i=E(n,["attrs","name"]),a=void 0===e["p:nvCxnSpPr"]["p:nvPr"]["p:ph"]?void 0:e["p:nvCxnSpPr"]["p:nvPr"]["p:ph"].attrs.type,o=e.attrs.order,s=tA(n,t);return await tw(e,void 0,void 0,i,a,o,t,r,s)}async function tw(e,t,r,n,i,a,o,s,l,c=[]){let u,h,p,d=["p:spPr","a:xfrm"],f=E(e,d),m=E(t,d),g=E(r,d),A=E(e,["p:spPr","a:prstGeom","attrs","prst"]),y=E(e,["p:spPr","a:custGeom"]),v={};if(A){let t=E(e,["p:spPr","a:prstGeom","a:avLst","a:gd"]);if(t)for(let e of Array.isArray(t)?t:[t]){let t=E(e,["attrs","name"]),r=E(e,["attrs","fmla"]);t&&r&&r.startsWith("val ")&&(v[t]=parseInt(r.substring(4))/5e4)}}let{top:R,left:b}=eT(f,m,g),{width:x,height:M}=eP(f,m,g),S={x:0,y:0,width:x,height:M},w=U(E(f,["attrs","flipV"])),O=U(E(f,["attrs","flipH"])),L=Y(E(f,["attrs","rot"])),N=E(e,["p:txXfrm"]);if(N){let e=E(N,["attrs","rot"]);e&&(u=Y(e)+90)}else u=L;let _="";e["p:txBody"]&&(_=eH(e["p:txBody"],e,t,r,i,o));let{borderColor:T,borderWidth:P,borderType:C,strokeDasharray:I,headEnd:k,tailEnd:F}=eg(e,i,o),X=await ep(e,o,s,{groupHierarchy:c,slideLayoutSpNode:t,slideMasterSpNode:r}),W=E(e,["p:spPr","a:effectLst","a:outerShdw"]);W&&(h=eX(W,o));let V=((p=E(e,["p:txBody","a:bodyPr","attrs","anchor"]))||!(p=E(t,["p:txBody","a:bodyPr","attrs","anchor"]))&&((p=E(r,["p:txBody","a:bodyPr","attrs","anchor"]))||(p="t")),"ctr"===p?"mid":"b"===p?"down":"up"),D="horz"!==function(e,t,r){for(let n of[e,t,r]){let e=E(n,["p:txBody","a:bodyPr","attrs","vert"]);if(e)return e}return"horz"}(e,t,r),Q="none"!==E(e,["p:txBody","a:bodyPr","attrs","wrap"]),$=function(e,t,r){function n(e){if(!e)return null;if(e["a:noAutofit"])return{result:null};if(e["a:spAutoFit"])return{result:{type:"shape",wrapText:"none"!==E(e,["attrs","wrap"])}};if(e["a:normAutofit"]){let t=E(e["a:normAutofit"],["attrs","fontScale"]);return t?{result:{type:"text",fontScale:parseInt(t)/1e3}}:{result:{type:"text"}}}return null}let i=n(E(e,["p:txBody","a:bodyPr"]));if(i)return i.result;let a=n(E(t,["p:txBody","a:bodyPr"]));if(a)return a.result;let o=n(E(r,["p:txBody","a:bodyPr"]));return o?o.result:null}(e,t,r),B=function(e,t,r){let n=E(e,["p:txBody","a:bodyPr"]),i=E(t,["p:txBody","a:bodyPr"]),a=E(r,["p:txBody","a:bodyPr"]);if(!n&&!i&&!a)return null;let o=eN(e,t,r,"lIns");(null==o||""===o)&&(o=91440);let s=eN(e,t,r,"tIns");(null==s||""===s)&&(s=45720);let l=eN(e,t,r,"rIns");(null==l||""===l)&&(l=91440);let c=eN(e,t,r,"bIns");(null==c||""===c)&&(c=45720);let u=e_(o);null===u&&(u=0);let h=e_(s);null===h&&(h=0);let p=e_(l);null===p&&(p=0);let d=e_(c);return null===d&&(d=0),{l:u,t:h,r:p,b:d}}(e,t,r),Z={left:b,top:R,width:x,height:M,borderColor:T,borderWidth:P,borderType:C,borderStrokeDasharray:I,fill:X,content:_,isFlipV:w,isFlipH:O,rotate:L,vAlign:V,wrap:Q,name:n,order:a};h&&(Z.shadow=h),$&&(Z.autoFit=$),l&&(Z.link=l),B&&(Z.textInset=B),k&&(Z.headEnd=k),F&&(Z.tailEnd=F);let K=Z.content&&function(e){if("u"<typeof DOMParser)return""!==e.replace(/<[^>]+>/g,"").replace(/\s+/g," ").trim();let t=new DOMParser().parseFromString(e,"text/html");return""!==(t.body.textContent||t.body.innerText).trim()}(Z.content);if(y&&"diagram"!==i){let e=eJ(y,x,M);K||(Z.content="");let t={...Z,type:"shape",isVertical:D,shapType:"custom",path:e,pathViewBox:S};return function(e){let t=E(e,["a:pathLst","a:path"]);if(!t)return!1;let r=Array.isArray(t)?t:[t];return 1===r.length&&"none"===E(r[0],["attrs","fill"])}(y)&&(t.strokeOnly=!0),t}let G="";A&&(G=e5(A,x,M,e));let H=["arc","leftBrace","rightBrace","bracePair","leftBracket","rightBracket","bracketPair"].includes(A);if(A&&("obj"===i||!i||"rect"!==A)){K||(Z.content="");let e={...Z,type:"shape",isVertical:D,shapType:A,path:G,pathViewBox:S,keypoints:v};return H&&(e.strokeOnly=!0),e}if(A&&!K&&(X||P)){let e={...Z,type:"shape",isVertical:D,content:"",shapType:A,path:G,pathViewBox:S,keypoints:v};return H&&(e.strokeOnly=!0),e}return{...Z,type:"text",isVertical:D,rotate:u}}async function tO(e,t,r){let n,i,a,o,s,l;n="slideMasterBg"===r?t.masterResObj:"slideLayoutBg"===r?t.layoutResObj:t.slideResObj;let c=tA(E(e,["p:nvPicPr","p:cNvPr"]),t),u=e.attrs.order,h=e["p:blipFill"]["a:blip"].attrs["r:embed"];if(!h||!n[h])return null;let p=n[h].target,d=e["p:spPr"]["a:xfrm"];if(!d){let r=E(e,["p:nvPicPr","p:nvPr","p:ph","attrs","idx"]);r&&(d=E(t.slideLayoutTables,["idxTable",r,"p:spPr","a:xfrm"]))}let{top:f,left:m}=eT(d,void 0,void 0),{width:g,height:A}=eP(d,void 0,void 0),y=await et(p,t),v=U(E(d,["attrs","flipV"])),R=U(E(d,["attrs","flipH"])),b=0,x=E(e,["p:spPr","a:xfrm","attrs","rot"]);x&&(b=Y(x));let M=E(e,["p:nvPicPr","p:nvPr","a:videoFile"]),S={ref:"",blob:""},w=!1;if(M){var O;(O=i=n[M.attrs["r:link"]].target,/^(https?|ftp):\/\/([a-zA-Z0-9.-]+(:[a-zA-Z0-9.&%$-]+)*@)*((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]?)(\.(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|([a-zA-Z0-9-]+\.)+[a-zA-Z]{2,})(:[0-9]+)*(\/($|[a-zA-Z0-9.,?'\\+&%$#=~_-]+))*$/.test(O))?(i=D(i),w=!0):S="mp4"===(a=W(i).toLowerCase())||"webm"===a||"ogg"===a?await er(i,t):{ref:i,blob:""},w&&(S={ref:i,blob:""})}let L=E(e,["p:nvPicPr","p:nvPr","a:audioFile"]),N={ref:"",blob:""};if(L&&(N="mp3"===(s=W(o=n[L.attrs["r:link"]].target).toLowerCase())||"wav"===s||"ogg"===s?await en(o,t):{ref:o,blob:""}),M&&!w||M&&w)return{type:"video",top:f,left:m,width:g,height:A,rotate:b,ref:S.ref,blob:S.blob,order:u};if(L)return{type:"audio",top:f,left:m,width:g,height:A,rotate:b,ref:N.ref,blob:N.blob,order:u};let _=E(e,["p:blipFill","a:srcRect","attrs"]);_&&(_.t||_.b||_.l||_.r)&&(l={},_.t&&(l.t=_.t/1e3),_.b&&(l.b=_.b/1e3),_.l&&(l.l=_.l/1e3),_.r&&(l.r=_.r/1e3));let T=E(e,["p:spPr","a:prstGeom","attrs","prst"]),P=E(e,["p:spPr","a:custGeom"]),{borderColor:C,borderWidth:I,borderType:k,strokeDasharray:F}=eg(e,void 0,t),X=function(e){if(!e)return null;let t=e["a:blip"];if(!t)return null;let r={},n=t["a:extLst"];if(n&&n["a:ext"])for(let e of Array.isArray(n["a:ext"])?n["a:ext"]:[n["a:ext"]]){if(!e["a14:imgProps"]||!e["a14:imgProps"]["a14:imgLayer"])continue;let t=e["a14:imgProps"]["a14:imgLayer"]["a14:imgEffect"];if(t)for(let e of Array.isArray(t)?t:[t]){if(e["a14:saturation"]){let t=E(e,["a14:saturation","attrs","sat"]);t&&(r.saturation=parseInt(t)/1e5)}if(e["a14:brightnessContrast"]){let t=E(e,["a14:brightnessContrast","attrs","bright"]),n=E(e,["a14:brightnessContrast","attrs","contrast"]);t&&(r.brightness=parseInt(t)/1e5),n&&(r.contrast=parseInt(n)/1e5)}if(e["a14:sharpenSoften"]){let t=E(e,["a14:sharpenSoften","attrs","amount"]);if(t){let e=parseInt(t)/1e5;e>0?r.sharpen=e:r.soften=Math.abs(e)}}if(e["a14:colorTemperature"]){let t=E(e,["a14:colorTemperature","attrs","colorTemp"]);t&&(r.colorTemperature=parseInt(t))}}}return Object.keys(r).length>0?r:null}(e["p:blipFill"]),V=ea(e["p:blipFill"]);if(T||P){let t,r;if(P){let e=function(e){var t,r,n;let i,a=e["a:pathLst"];if(!a||!a["a:path"])return"custom";let o=a["a:path"],s=parseInt(o.attrs?.w)||0,l=parseInt(o.attrs?.h)||0,c=function(e){let t=[];if(e["a:moveTo"]){let r=e["a:moveTo"]["a:pt"];r&&t.push({type:"moveTo",points:[{x:parseInt(r.attrs?.x)||0,y:parseInt(r.attrs?.y)||0}]})}return ej(e["a:lnTo"]).forEach(e=>{let r=e["a:pt"];r&&t.push({type:"lineTo",points:[{x:parseInt(r.attrs?.x)||0,y:parseInt(r.attrs?.y)||0}]})}),ej(e["a:cubicBezTo"]).forEach(e=>{let r=ej(e["a:pt"]).map(e=>({x:parseInt(e.attrs?.x)||0,y:parseInt(e.attrs?.y)||0}));3===r.length&&t.push({type:"cubicBezTo",points:r})}),ej(e["a:arcTo"]).forEach(e=>{t.push({type:"arcTo",wR:parseInt(e.attrs?.wR)||0,hR:parseInt(e.attrs?.hR)||0,stAng:parseInt(e.attrs?.stAng)||0,swAng:parseInt(e.attrs?.swAng)||0})}),ej(e["a:quadBezTo"]).forEach(e=>{let r=ej(e["a:pt"]).map(e=>({x:parseInt(e.attrs?.x)||0,y:parseInt(e.attrs?.y)||0}));t.push({type:"quadBezTo",points:r})}),e["a:close"]&&t.push({type:"close"}),t}(o);return 0===c.length?"custom":function(e){let{lineCount:t,curveCount:r,isClosed:n,vertices:i,hasCurves:a,isCircular:o,pathWidth:s,pathHeight:l}=e;if(o||e.arcCount>=2&&n&&0===t)return"ellipse";if(!a&&n&&i.length>=3){let e;var c=i;let t=(e=[],c.forEach(t=>{e.some(e=>100>Math.abs(e.x-t.x)&&100>Math.abs(e.y-t.y))||e.push(t)}),e),r=t.length;switch(r){case 3:return"triangle";case 4:return function(e){var t,r,n;let i,a,o,s,l,c,u,h,p,d,f,m;if(4!==e.length)return"custom";let g=[];for(let t=0;t<4;t++){let r=e[t],n=e[(t+1)%4];g.push({dx:n.x-r.x,dy:n.y-r.y,length:Math.sqrt((n.x-r.x)**2+(n.y-r.y)**2)})}return!function(e){let t=Math.abs(e[0].length-e[2].length)/Math.max(e[0].length,e[2].length)<.1,r=Math.abs(e[1].length-e[3].length)/Math.max(e[1].length,e[3].length)<.1;if(!t||!r)return!1;for(let t=0;t<4;t++){let r=e[t],n=e[(t+1)%4];if(Math.abs((r.dx*n.dx+r.dy*n.dy)/(r.length*n.length))>.1)return!1}return!0}(g)?(i=(t=g).reduce((e,t)=>e+t.length,0)/4,t.every(e=>Math.abs(e.length-i)/i<.1))?"rhombus":(a=0!==(r=g)[0].dx?r[0].dy/r[0].dx:1/0,o=0!==r[2].dx?r[2].dy/r[2].dx:1/0,s=0!==r[1].dx?r[1].dy/r[1].dx:1/0,c=.15>Math.abs(s-(l=0!==r[3].dx?r[3].dy/r[3].dx:1/0))||Math.abs(s)>1e3&&Math.abs(l)>1e3,(.15>Math.abs(a-o)||Math.abs(a)>1e3&&Math.abs(o)>1e3)&&c)?"parallelogram":(u=0!==(n=g)[0].dx?n[0].dy/n[0].dx:1/0,h=0!==n[2].dx?n[2].dy/n[2].dx:1/0,p=0!==n[1].dx?n[1].dy/n[1].dx:1/0,d=0!==n[3].dx?n[3].dy/n[3].dx:1/0,f=.15>Math.abs(u-h)||Math.abs(u)>1e3&&Math.abs(h)>1e3,m=.15>Math.abs(p-d)||Math.abs(p)>1e3&&Math.abs(d)>1e3,f&&!m||!f&&m)?"trapezoid":"custom":"roundRect"}(t);case 5:return"pentagon";case 6:return"hexagon";case 7:return"heptagon";case 8:return"octagon";default:if(r>8)return"ellipse";return"custom"}}if(4===t&&4===r&&n)return"roundRect";if(t>=3&&r>0&&r<=t&&n){let e=function(e){switch(e){case 3:return"triangle";case 4:return"rectangle";case 5:return"pentagon";case 6:return"hexagon";case 7:return"heptagon";case 8:return"octagon";default:return"custom"}}(t);if("custom"!==e)return"rectangle"===e?"roundRect":e}return"custom"}((t=c,r=s,i={lineCount:0,curveCount:0,arcCount:0,isClosed:!1,vertices:[],aspectRatio:0!==(n=l)?r/n:1,pathWidth:r,pathHeight:n,hasCurves:!1,isCircular:!1,commands:t},t.forEach(e=>{switch(e.type){case"moveTo":i.vertices.push(e.points[0]);break;case"lineTo":i.lineCount++,i.vertices.push(e.points[0]);break;case"cubicBezTo":i.curveCount++,i.hasCurves=!0,3===e.points.length&&i.vertices.push(e.points[2]);break;case"quadBezTo":i.curveCount++,i.hasCurves=!0,e.points.length>=2&&i.vertices.push(e.points[e.points.length-1]);break;case"arcTo":i.arcCount++,i.hasCurves=!0;break;case"close":i.isClosed=!0}}),4===i.curveCount&&0===i.lineCount&&i.isClosed&&(i.isCircular=function(e,t,r){let n=e.filter(e=>"cubicBezTo"===e.type);if(4!==n.length)return!1;let i=n.map(e=>e.points[2]),a=i.some(e=>Math.abs(e.y)<.1*r),o=i.some(e=>Math.abs(e.y-r)<.1*r),s=i.some(e=>Math.abs(e.x)<.1*t),l=i.some(e=>Math.abs(e.x-t)<.1*t);return(a||o)&&(s||l)}(t,r,n)),i))}(P);t="custom"!==e?`custom:${e}`:"custom",r=eJ(P,g,A)}else t=T,r=e5(T,g,A,e)||"";let n={type:"shape",shapType:t,path:r,top:f,left:m,width:g,height:A,rotate:b,isFlipV:v,isFlipH:R,order:u,fill:{type:"image",value:{ref:y.ref,base64:y.base64,blob:y.blob,opacity:V,rect:l}},content:"",borderColor:C,borderWidth:I,borderType:k,borderStrokeDasharray:F};return X&&(n.filters=X),c&&(n.link=c),n}let Q={type:"image",top:f,left:m,width:g,height:A,rotate:b,ref:y.ref,base64:y.base64,blob:y.blob,isFlipV:v,isFlipH:R,order:u,rect:l,geom:"rect",borderColor:C,borderWidth:I,borderType:k,borderStrokeDasharray:F,opacity:V};return X&&(Q.filters=X),c&&(Q.link=c),Q}async function tL(e,t,r){let n;switch(E(e,["a:graphic","a:graphicData","attrs","uri"])){case"http://schemas.openxmlformats.org/drawingml/2006/table":n=await tN(e,t);break;case"http://schemas.openxmlformats.org/drawingml/2006/chart":n=await t_(e,t);break;case"http://schemas.openxmlformats.org/drawingml/2006/diagram":n=await tT(e,t);break;case"http://schemas.openxmlformats.org/presentationml/2006/ole":let i=E(e,["a:graphic","a:graphicData","mc:AlternateContent","mc:Fallback","p:oleObj"]);i||(i=E(e,["a:graphic","a:graphicData","p:oleObj"])),i&&(n=await tx(i,t,r))}return n}async function tN(e,t){let r,n,i=e.attrs.order,a=E(e,["a:graphic","a:graphicData","a:tbl"]),o=E(e,["p:xfrm"]),{top:s,left:l}=eT(o,void 0,void 0),{width:c,height:u}=eP(o,void 0,void 0),h=E(e,["a:graphic","a:graphicData","a:tbl","a:tblPr"]),p=E(e,["a:graphic","a:graphicData","a:tbl","a:tblGrid","a:gridCol"]);p.constructor!==Array&&(p=[p]);let d=[];if(p)for(let e of p){let t=parseInt(E(e,["attrs","w"])||0)*eR;d.push(t)}let f=h.attrs?h.attrs.firstRow:void 0,m=h.attrs?h.attrs.firstCol:void 0,g=h.attrs?h.attrs.lastRow:void 0,A=h.attrs?h.attrs.lastCol:void 0,y=h.attrs?h.attrs.bandRow:void 0,v=h.attrs?h.attrs.bandCol:void 0,R={isFrstRowAttr:+!!U(f),isFrstColAttr:+!!U(m),isLstRowAttr:+!!U(g),isLstColAttr:+!!U(A),isBandRowAttr:+!!U(y),isBandColAttr:+!!U(v)},b=h["a:tableStyleId"];if(b){let e=t.tableStyles["a:tblStyleLst"]["a:tblStyle"];if(e)if(e.constructor===Array)for(let t=0;t<e.length;t++)e[t].attrs.styleId===b&&(r=e[t]);else e.attrs.styleId===b&&(r=e)}r&&(r.tblStylAttrObj=R);let x={},M=E(r,["a:wholeTbl","a:tcStyle"]),S=E(M,["a:tcBdr"]);S&&(n={},S["a:bottom"]&&(n.bottom=eg({"p:spPr":{"a:ln":S["a:bottom"]["a:ln"]}},void 0,t)),S["a:top"]&&(n.top=eg({"p:spPr":{"a:ln":S["a:top"]["a:ln"]}},void 0,t)),S["a:right"]&&(n.right=eg({"p:spPr":{"a:ln":S["a:right"]["a:ln"]}},void 0,t)),S["a:left"]&&(n.left=eg({"p:spPr":{"a:ln":S["a:left"]["a:ln"]}},void 0,t)),x=n);let w="",O=E(r,["a:tblBg","a:fillRef"]);O&&(w=ef(O,void 0,void 0,t)),void 0===O&&(w=ef(O=E(r,["a:wholeTbl","a:tcStyle","a:fill","a:solidFill"]),void 0,void 0,t));let L=a["a:tr"];L.constructor!==Array&&(L=[L]);let N=[],_=[];for(let e=0;e<L.length;e++){let n=L[e],i=parseInt(E(L[e],["attrs","h"])||0)*eR;_.push(i);let{fillColor:a,fontColor:o,fontBold:s}=function(e,t,r,n,i){let a,o,s;if(n&&n["a:wholeTbl"]){let e=E(n,["a:wholeTbl","a:tcStyle","a:fill","a:solidFill"]);if(e){let t=ef(e,void 0,void 0,i);t&&(a=t)}let t=E(n,["a:wholeTbl","a:tcTxStyle"]);if(t){let e=e1(t,i);e&&(o=e),"on"===E(t,["attrs","b"])&&(s=!0)}}if(0===t&&1===r.isFrstRowAttr&&n){let e=E(n,["a:firstRow","a:tcStyle","a:fill","a:solidFill"]);if(e){let t=ef(e,void 0,void 0,i);t&&(a=t)}let t=E(n,["a:firstRow","a:tcTxStyle"]);if(t){let e=e1(t,i);e&&(o=e),"on"===E(t,["attrs","b"])&&(s=!0)}}else if(t>0&&1===r.isBandRowAttr&&n){if(a="",t%2==0&&n["a:band2H"]){let e=E(n,["a:band2H","a:tcStyle","a:fill","a:solidFill"]);if(e){let t=ef(e,void 0,void 0,i);t&&(a=t)}let t=E(n,["a:band2H","a:tcTxStyle"]);if(t){let e=e1(t,i);e&&(o=e)}"on"===E(t,["attrs","b"])&&(s=!0)}if(t%2!=0&&n["a:band1H"]){let e=E(n,["a:band1H","a:tcStyle","a:fill","a:solidFill"]);if(e){let t=ef(e,void 0,void 0,i);t&&(a=t)}let t=E(n,["a:band1H","a:tcTxStyle"]);if(t){let e=e1(t,i);e&&(o=e),"on"===E(t,["attrs","b"])&&(s=!0)}}}if(t===e.length-1&&1===r.isLstRowAttr&&n){let e=E(n,["a:lastRow","a:tcStyle","a:fill","a:solidFill"]);if(e){let t=ef(e,void 0,void 0,i);t&&(a=t)}let t=E(n,["a:lastRow","a:tcTxStyle"]);if(t){let e=e1(t,i);e&&(o=e),"on"===E(t,["attrs","b"])&&(s=!0)}}return{fillColor:a,fontColor:o,fontBold:s}}(L,e,R,r,t),l=n["a:tc"],c=[];if(l.constructor===Array)for(let n=0;n<l.length;n++){let i,u=l[n];if(0===n&&1===R.isFrstColAttr)i="a:firstCol",1===R.isLstRowAttr&&e===L.length-1&&E(r,["a:seCell"])?i="a:seCell":1===R.isFrstRowAttr&&0===e&&E(r,["a:neCell"])&&(i="a:neCell");else if(n>0&&1===R.isBandColAttr&&(1!==R.isFrstColAttr||0!==e)&&(1!==R.isLstRowAttr||e!==L.length-1)&&n!==l.length-1&&n%2!=0){let e=E(r,["a:band2V"]);void 0===e?(e=E(r,["a:band1V"]))&&(i="a:band2V"):i="a:band2V"}n===l.length-1&&1===R.isLstColAttr&&(i="a:lastCol",1===R.isLstRowAttr&&e===L.length-1&&E(r,["a:swCell"])?i="a:swCell":1===R.isFrstRowAttr&&0===e&&E(r,["a:nwCell"])&&(i="a:nwCell"));let h=eH(u["a:txBody"],u,void 0,void 0,void 0,t),p=await e2(u,r,i,t),d={text:h};p.rowSpan&&(d.rowSpan=p.rowSpan),p.colSpan&&(d.colSpan=p.colSpan),p.vMerge&&(d.vMerge=p.vMerge),p.hMerge&&(d.hMerge=p.hMerge),p.vAlign&&(d.vAlign=p.vAlign),(p.fontBold||s)&&(d.fontBold=p.fontBold||s),(p.fontColor||o)&&(d.fontColor=p.fontColor||o),(p.fillColor||a||w)&&(d.fillColor=p.fillColor||a||w),p.borders&&(d.borders=p.borders),c.push(d)}else{let e;if(1===R.isFrstColAttr&&1!==R.isLstRowAttr)e="a:firstCol";else if(1===R.isBandColAttr&&1!==R.isLstRowAttr){let t=E(r,["a:band2V"]);t?e="a:band2V":(t=E(r,["a:band1V"]))&&(e="a:band2V")}1===R.isLstColAttr&&1!==R.isLstRowAttr&&(e="a:lastCol");let n=eH(l["a:txBody"],l,void 0,void 0,void 0,t),i=await e2(l,r,e,t),u={text:n};i.rowSpan&&(u.rowSpan=i.rowSpan),i.colSpan&&(u.colSpan=i.colSpan),i.vMerge&&(u.vMerge=i.vMerge),i.hMerge&&(u.hMerge=i.hMerge),i.vAlign&&(u.vAlign=i.vAlign),(i.fontBold||s)&&(u.fontBold=i.fontBold||s),(i.fontColor||o)&&(u.fontColor=i.fontColor||o),(i.fillColor||a||w)&&(u.fillColor=i.fillColor||a||w),i.borders&&(u.borders=i.borders),c.push(u)}N.push(c)}let T=d.reduce((e,t)=>e+t,0);return T&&(T=$(T)),{type:"table",top:s,left:l,width:T||c,height:u,data:N,order:i,borders:x,rowHeights:_,colWidths:d}}async function t_(e,t){let r=e.attrs.order,n=E(e,["p:xfrm"]),{top:i,left:a}=eT(n,void 0,void 0),{width:o,height:s}=eP(n,void 0,void 0),l=e["a:graphic"]["a:graphicData"]["c:chart"].attrs["r:id"],c=E(t.slideResObj,[l,"target"]);if(c||(c=E(t.layoutResObj,[l,"target"])),c||(c=E(t.masterResObj,[l,"target"])),!c)return null;let u=function(e,t){let r=null;for(let n in e)if(e[n]["c:ser"])switch(n){case"c:lineChart":r={type:"lineChart",data:ey(e[n]["c:ser"]),colors:eA(e[n]["c:ser"],t),grouping:E(e[n],["c:grouping","attrs","val"]),marker:!!e[n]["c:marker"]};break;case"c:line3DChart":r={type:"line3DChart",data:ey(e[n]["c:ser"]),colors:eA(e[n]["c:ser"],t),grouping:E(e[n],["c:grouping","attrs","val"])};break;case"c:barChart":r={type:"barChart",data:ey(e[n]["c:ser"]),colors:eA(e[n]["c:ser"],t),grouping:E(e[n],["c:grouping","attrs","val"]),barDir:E(e[n],["c:barDir","attrs","val"])};break;case"c:bar3DChart":r={type:"bar3DChart",data:ey(e[n]["c:ser"]),colors:eA(e[n]["c:ser"],t),grouping:E(e[n],["c:grouping","attrs","val"]),barDir:E(e[n],["c:barDir","attrs","val"])};break;case"c:pieChart":r={type:"pieChart",data:ey(e[n]["c:ser"]),colors:eA(e[n]["c:ser"]["c:dPt"],t)};break;case"c:pie3DChart":r={type:"pie3DChart",data:ey(e[n]["c:ser"]),colors:eA(e[n]["c:ser"]["c:dPt"],t)};break;case"c:doughnutChart":r={type:"doughnutChart",data:ey(e[n]["c:ser"]),colors:eA(e[n]["c:ser"]["c:dPt"],t),holeSize:E(e[n],["c:holeSize","attrs","val"])};break;case"c:areaChart":r={type:"areaChart",data:ey(e[n]["c:ser"]),colors:eA(e[n]["c:ser"],t),grouping:E(e[n],["c:grouping","attrs","val"])};break;case"c:area3DChart":r={type:"area3DChart",data:ey(e[n]["c:ser"]),colors:eA(e[n]["c:ser"],t),grouping:E(e[n],["c:grouping","attrs","val"])};break;case"c:scatterChart":r={type:"scatterChart",data:ev(e[n]["c:ser"]),colors:eA(e[n]["c:ser"],t),style:E(e[n],["c:scatterStyle","attrs","val"])};break;case"c:bubbleChart":r={type:"bubbleChart",data:ev(e[n]["c:ser"]),colors:eA(e[n]["c:ser"],t)};break;case"c:radarChart":r={type:"radarChart",data:ey(e[n]["c:ser"]),colors:eA(e[n]["c:ser"],t),style:E(e[n],["c:radarStyle","attrs","val"])};break;case"c:surfaceChart":r={type:"surfaceChart",data:ey(e[n]["c:ser"]),colors:eA(e[n]["c:ser"],t)};break;case"c:surface3DChart":r={type:"surface3DChart",data:ey(e[n]["c:ser"]),colors:eA(e[n]["c:ser"],t)};break;case"c:stockChart":r={type:"stockChart",data:ey(e[n]["c:ser"]),colors:[]}}return r}(E(await X(t.zip,c),["c:chartSpace","c:chart","c:plotArea"]),t);if(!u)return null;let h={type:"chart",top:i,left:a,width:o,height:s,data:u.data,colors:u.colors,chartType:u.type,order:r};return void 0!==u.marker&&(h.marker=u.marker),void 0!==u.barDir&&(h.barDir=u.barDir),void 0!==u.holeSize&&(h.holeSize=u.holeSize),void 0!==u.grouping&&(h.grouping=u.grouping),void 0!==u.style&&(h.style=u.style),h}async function tT(e,t){let r=e.attrs.order,n=E(e,["p:xfrm"]),{left:i,top:a}=eT(n,void 0,void 0),{width:o,height:s}=eP(n,void 0,void 0),l=await tt(e,t),c=E(l.digramFileContent,["p:drawing","p:spTree","p:sp"]),u=[],h=[];if(c)for(let e of Array.isArray(c)?c:[c]){let t=await tM(e,l,"diagramBg");t&&u.push(t)}return l.diagramContent&&l.diagramContent.data&&(h=function(e){let t=[],r=E(e,["dgm:dataModel","dgm:ptLst","dgm:pt"]);if(!r)return t;for(let e of(Array.isArray(r)||(r=[r]),r)){let r=E(e,["dgm:t"]);if(r){let e="",n=E(r,["a:p"]);n&&(Array.isArray(n)||(n=[n]),n.forEach(t=>{let r=E(t,["a:r"]);r&&(Array.isArray(r)||(r=[r]),r.forEach(t=>{let r=eG(E(t,["a:t"]));r&&"string"==typeof r&&(e+=r)})),e.length>0&&(e+="\n")}));let i=e.trim();i&&t.push(i)}}return t}(l.diagramContent.data)),{type:"diagram",left:i,top:a,width:o,height:s,elements:u,textList:h,order:r}}},46762(e,t,r){var n=r(38262),i=r(96294),a=r(42845);let o=(e,t)=>!e.selection.empty&&(t&&t(e.tr.deleteSelection().scrollIntoView()),!0);function s(e,t,r=!1){for(let n=e;n;n="start"==t?n.firstChild:n.lastChild){if(n.isTextblock)return!0;if(r&&1!=n.childCount)break}return!1}function l(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){if(e.index(t)>0)return e.doc.resolve(e.before(t+1));if(e.node(t).type.spec.isolating)break}return null}function c(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){let r=e.node(t);if(e.index(t)+1<r.childCount)return e.doc.resolve(e.after(t+1));if(r.type.spec.isolating)break}return null}let u=(e,t)=>{let{$head:r,$anchor:n}=e.selection;return!!r.parent.type.spec.code&&!!r.sameParent(n)&&(t&&t(e.tr.insertText("\n").scrollIntoView()),!0)};function h(e){for(let t=0;t<e.edgeCount;t++){let{type:r}=e.edge(t);if(r.isTextblock&&!r.hasRequiredAttrs())return r}return null}let p=(e,t)=>{let r=e.selection,{$from:n,$to:i}=r;if(r instanceof a.i5||n.parent.inlineContent||i.parent.inlineContent)return!1;let o=h(i.parent.contentMatchAt(i.indexAfter()));if(!o||!o.isTextblock)return!1;if(t){let r=(!n.parentOffset&&i.index()<i.parent.childCount?n:i).pos,s=e.tr.insert(r,o.createAndFill());s.setSelection(a.U3.create(s.doc,r+1)),t(s.scrollIntoView())}return!0},d=(e,t)=>{let{$cursor:r}=e.selection;if(!r||r.parent.content.size)return!1;if(r.depth>1&&r.after()!=r.end(-1)){let i=r.before();if((0,n.zy)(e.doc,i))return t&&t(e.tr.split(i).scrollIntoView()),!0}let i=r.blockRange(),a=i&&(0,n.jP)(i);return null!=a&&(t&&t(e.tr.lift(i,a).scrollIntoView()),!0)},f=(e,t)=>{if(e.selection instanceof a.nh&&e.selection.node.isBlock){let{$from:r}=e.selection;return!!r.parentOffset&&!!(0,n.zy)(e.doc,r.pos)&&(t&&t(e.tr.split(r.pos).scrollIntoView()),!0)}if(!e.selection.$from.depth)return!1;let r=e.tr;!e.selection.empty&&(e.selection instanceof a.U3||e.selection instanceof a.i5)&&r.deleteSelection();let{$from:i}=r.selection,o=r.steps.length,s=[],l,c,u=!1,p=!1;for(let e=i.depth;;e--){if(i.node(e).isBlock){let t;u=i.end(e)==i.pos+(i.depth-e),p=i.start(e)==i.pos-(i.depth-e),c=h(i.node(e-1).contentMatchAt(i.indexAfter(e-1)));s.unshift(t||(u&&c?{type:c}:null)),l=e;break}if(1==e)return!1;s.unshift(null)}let d=i.pos,f=(0,n.zy)(r.doc,d,s.length,s);if(f||(s[0]=c?{type:c}:null,f=(0,n.zy)(r.doc,d,s.length,s)),!f)return!1;if(r.split(d,s.length,s),!u&&p&&i.node(l).type!=c){let e=r.mapping.slice(o),t=e.map(i.before(l)),n=r.doc.resolve(t);c&&i.node(l-1).canReplaceWith(n.index(),n.index()+1,c)&&r.setNodeMarkup(e.map(i.before(l)),c)}return t&&t(r.scrollIntoView()),!0},m=(e,t)=>(t&&t(e.tr.setSelection(new a.i5(e.doc))),!0);function g(e,t,r,o){let l,c,u,h=t.nodeBefore,p=t.nodeAfter,d,f,m=h.type.spec.isolating||p.type.spec.isolating;if(!m&&(l=t.nodeBefore,c=t.nodeAfter,u=t.index(),l&&c&&l.type.compatibleContent(c.type)&&(!l.content.size&&t.parent.canReplace(u-1,u)?(r&&r(e.tr.delete(t.pos-l.nodeSize,t.pos).scrollIntoView()),!0):!!t.parent.canReplace(u,u+1)&&!!(c.isTextblock||(0,n.n9)(e.doc,t.pos))&&(r&&r(e.tr.join(t.pos).scrollIntoView()),!0))))return!0;let g=!m&&t.parent.canReplace(t.index(),t.index()+1);if(g&&(d=(f=h.contentMatchAt(h.childCount)).findWrapping(p.type))&&f.matchType(d[0]||p.type).validEnd){if(r){let a=t.pos+p.nodeSize,o=i.FK.empty;for(let e=d.length-1;e>=0;e--)o=i.FK.from(d[e].create(null,o));o=i.FK.from(h.copy(o));let s=e.tr.step(new n.Wg(t.pos-1,a,t.pos,a,new i.Ji(o,1,0),d.length,!0)),l=s.doc.resolve(a+2*d.length);l.nodeAfter&&l.nodeAfter.type==h.type&&(0,n.n9)(s.doc,l.pos)&&s.join(l.pos),r(s.scrollIntoView())}return!0}let A=p.type.spec.isolating||o>0&&m?null:a.LN.findFrom(t,1),y=A&&A.$from.blockRange(A.$to),v=y&&(0,n.jP)(y);if(null!=v&&v>=t.depth)return r&&r(e.tr.lift(y,v).scrollIntoView()),!0;if(g&&s(p,"start",!0)&&s(h,"end")){let a=h,o=[];for(;o.push(a),!a.isTextblock;)a=a.lastChild;let s=p,l=1;for(;!s.isTextblock;s=s.firstChild)l++;if(a.canReplace(a.childCount,a.childCount,s.content)){if(r){let a=i.FK.empty;for(let e=o.length-1;e>=0;e--)a=i.FK.from(o[e].copy(a));r(e.tr.step(new n.Wg(t.pos-o.length,t.pos+p.nodeSize,t.pos+l,t.pos+p.nodeSize-l,new i.Ji(a,o.length,0),0,!0)).scrollIntoView())}return!0}}return!1}function A(e){return function(t,r){let n=t.selection,i=e<0?n.$from:n.$to,o=i.depth;for(;i.node(o).isInline;){if(!o)return!1;o--}return!!i.node(o).isTextblock&&(r&&r(t.tr.setSelection(a.U3.create(t.doc,e<0?i.start(o):i.end(o)))),!0)}}let y=A(-1),v=A(1);function R(e,t=null){return function(r,i){let{$from:a,$to:o}=r.selection,s=a.blockRange(o),l=s&&(0,n.oM)(s,e,t);return!!l&&(i&&i(r.tr.wrap(s,l).scrollIntoView()),!0)}}function b(e,t=null,r){let n=!1!==(r&&r.removeWhenPresent),i=!1!==(r&&r.enterInlineAtoms),o=!(r&&r.includeWhitespace);return function(r,s){let{empty:l,$cursor:c,ranges:u}=r.selection;if(l&&!c||!function(e,t,r,n){for(let i=0;i<t.length;i++){let{$from:a,$to:o}=t[i],s=0==a.depth&&e.inlineContent&&e.type.allowsMarkType(r);if(e.nodesBetween(a.pos,o.pos,(e,t)=>{if(s||!n&&e.isAtom&&e.isInline&&t>=a.pos&&t+e.nodeSize<=o.pos)return!1;s=e.inlineContent&&e.type.allowsMarkType(r)}),s)return!0}return!1}(r.doc,u,e,i))return!1;if(s)if(c)s(e.isInSet(r.storedMarks||c.marks())?r.tr.removeStoredMark(e):r.tr.addStoredMark(e.create(t)));else{let l,c=r.tr;i||(u=function(e){let t=[];for(let r=0;r<e.length;r++){let{$from:n,$to:i}=e[r];n.doc.nodesBetween(n.pos,i.pos,(e,r)=>{if(e.isAtom&&e.content.size&&e.isInline&&r>=n.pos&&r+e.nodeSize<=i.pos)return r+1>n.pos&&t.push(new a.yn(n,n.doc.resolve(r+1))),n=n.doc.resolve(r+1+e.content.size),!1}),n.pos<i.pos&&t.push(new a.yn(n,i))}return t}(u)),l=n?!u.some(t=>r.doc.rangeHasMark(t.$from.pos,t.$to.pos,e)):!u.every(t=>{let r=!1;return c.doc.nodesBetween(t.$from.pos,t.$to.pos,(n,i,a)=>{if(r)return!1;r=!e.isInSet(n.marks)&&!!a&&a.type.allowsMarkType(e)&&!(n.isText&&/^\s*$/.test(n.textBetween(Math.max(0,t.$from.pos-i),Math.min(n.nodeSize,t.$to.pos-i))))}),!r});for(let r=0;r<u.length;r++){let{$from:n,$to:i}=u[r];if(l){let r=n.pos,a=i.pos,s=n.nodeAfter,l=i.nodeBefore,u=o&&s&&s.isText?/^\s*/.exec(s.text)[0].length:0,h=o&&l&&l.isText?/\s*$/.exec(l.text)[0].length:0;r+u<a&&(r+=u,a-=h),c.addMark(r,a,e.create(t))}else c.removeMark(n.pos,i.pos,e)}s(c.scrollIntoView())}return!0}}function x(...e){return function(t,r,n){for(let i=0;i<e.length;i++)if(e[i](t,r,n))return!0;return!1}}let M=x(o,(e,t,r)=>{let o=function(e,t){let{$cursor:r}=e.selection;return r&&(t?t.endOfTextblock("backward",e):!(r.parentOffset>0))?r:null}(e,r);if(!o)return!1;let c=l(o);if(!c){let r=o.blockRange(),i=r&&(0,n.jP)(r);return null!=i&&(t&&t(e.tr.lift(r,i).scrollIntoView()),!0)}let u=c.nodeBefore;if(g(e,c,t,-1))return!0;if(0==o.parent.content.size&&(s(u,"end")||a.nh.isSelectable(u)))for(let r=o.depth;;r--){let l=(0,n.$L)(e.doc,o.before(r),o.after(r),i.Ji.empty);if(l&&l.slice.size<l.to-l.from){if(t){let r=e.tr.step(l);r.setSelection(s(u,"end")?a.LN.findFrom(r.doc.resolve(r.mapping.map(c.pos,-1)),-1):a.nh.create(r.doc,c.pos-u.nodeSize)),t(r.scrollIntoView())}return!0}if(1==r||o.node(r-1).childCount>1)break}return!!u.isAtom&&c.depth==o.depth-1&&(t&&t(e.tr.delete(c.pos-u.nodeSize,c.pos).scrollIntoView()),!0)},(e,t,r)=>{let{$head:n,empty:i}=e.selection,o=n;if(!i)return!1;if(n.parent.isTextblock){if(r?!r.endOfTextblock("backward",e):n.parentOffset>0)return!1;o=l(n)}let s=o&&o.nodeBefore;return!!s&&!!a.nh.isSelectable(s)&&(t&&t(e.tr.setSelection(a.nh.create(e.doc,o.pos-s.nodeSize)).scrollIntoView()),!0)}),S=x(o,(e,t,r)=>{let o=function(e,t){let{$cursor:r}=e.selection;return r&&(t?t.endOfTextblock("forward",e):!(r.parentOffset<r.parent.content.size))?r:null}(e,r);if(!o)return!1;let l=c(o);if(!l)return!1;let u=l.nodeAfter;if(g(e,l,t,1))return!0;if(0==o.parent.content.size&&(s(u,"start")||a.nh.isSelectable(u))){let r=(0,n.$L)(e.doc,o.before(),o.after(),i.Ji.empty);if(r&&r.slice.size<r.to-r.from){if(t){let n=e.tr.step(r);n.setSelection(s(u,"start")?a.LN.findFrom(n.doc.resolve(n.mapping.map(l.pos)),1):a.nh.create(n.doc,n.mapping.map(l.pos))),t(n.scrollIntoView())}return!0}}return!!u.isAtom&&l.depth==o.depth-1&&(t&&t(e.tr.delete(l.pos,l.pos+u.nodeSize).scrollIntoView()),!0)},(e,t,r)=>{let{$head:n,empty:i}=e.selection,o=n;if(!i)return!1;if(n.parent.isTextblock){if(r?!r.endOfTextblock("forward",e):n.parentOffset<n.parent.content.size)return!1;o=c(n)}let s=o&&o.nodeAfter;return!!s&&!!a.nh.isSelectable(s)&&(t&&t(e.tr.setSelection(a.nh.create(e.doc,o.pos)).scrollIntoView()),!0)}),w={Enter:x(u,p,d,f),"Mod-Enter":(e,t)=>{let{$head:r,$anchor:n}=e.selection;if(!r.parent.type.spec.code||!r.sameParent(n))return!1;let i=r.node(-1),o=r.indexAfter(-1),s=h(i.contentMatchAt(o));if(!s||!i.canReplaceWith(o,o,s))return!1;if(t){let n=r.after(),i=e.tr.replaceWith(n,n,s.createAndFill());i.setSelection(a.LN.near(i.doc.resolve(n),1)),t(i.scrollIntoView())}return!0},Backspace:M,"Mod-Backspace":M,"Shift-Backspace":M,Delete:S,"Mod-Delete":S,"Mod-a":m},O={"Ctrl-h":w.Backspace,"Alt-Backspace":w["Mod-Backspace"],"Ctrl-d":w.Delete,"Ctrl-Alt-Backspace":w["Mod-Delete"],"Alt-Delete":w["Mod-Delete"],"Alt-d":w["Mod-Delete"],"Ctrl-a":y,"Ctrl-e":v};for(let e in w)O[e]=w[e];let L=("u">typeof navigator?/Mac|iP(hone|[oa]d)/.test(navigator.platform):"u">typeof os&&!!os.platform&&"darwin"==os.platform())?O:w;r.d(t,{Im:()=>R,st:()=>x,wh:()=>b},{BS:(e,t)=>f(e,t&&(r=>{let n=e.storedMarks||e.selection.$to.parentOffset&&e.selection.$from.marks();n&&r.ensureMarks(n),t(r)})),G2:(e,t)=>{let r=e.selection,i=r instanceof a.nh,o;if(i){if(r.node.isTextblock||!(0,n.n9)(e.doc,r.from))return!1;o=r.from}else if(null==(o=(0,n.N0)(e.doc,r.from,-1)))return!1;if(t){let r=e.tr.join(o);i&&r.setSelection(a.nh.create(r.doc,o-e.doc.resolve(o).nodeBefore.nodeSize)),t(r.scrollIntoView())}return!0},RV:L,Ub:m,Z1:p,bh:(e,t)=>{let r=e.selection,i;if(r instanceof a.nh){if(r.node.isTextblock||!(0,n.n9)(e.doc,r.to))return!1;i=r.to}else if(null==(i=(0,n.N0)(e.doc,r.to,1)))return!1;return t&&t(e.tr.join(i).scrollIntoView()),!0},hy:(e,t)=>{let{$from:r,to:n}=e.selection,i,o=r.sharedDepth(n);return 0!=o&&(i=r.before(o),t&&t(e.tr.setSelection(a.nh.create(e.doc,i))),!0)},iz:d,pC:u,yY:(e,t)=>{let{$from:r,$to:i}=e.selection,a=r.blockRange(i),o=a&&(0,n.jP)(a);return null!=o&&(t&&t(e.tr.lift(a,o).scrollIntoView()),!0)}})},73337(e,t,r){var n=r(42845),i=r(38262);function a(e={}){return new n.k_({view:t=>new o(t,e)})}class o{constructor(e,t){var r;this.editorView=e,this.cursorPos=null,this.element=null,this.timeout=-1,this.lastDragEvent=null,this.width=null!=(r=t.width)?r:1,this.color=!1===t.color?void 0:t.color||"black",this.class=t.class,this.handlers=["dragover","dragend","drop","dragleave"].map(t=>{let r=e=>{this[t](e)};return e.dom.addEventListener(t,r),{name:t,handler:r}})}destroy(){this.handlers.forEach(({name:e,handler:t})=>this.editorView.dom.removeEventListener(e,t))}update(e,t){if(null!=this.cursorPos&&t.doc!=e.state.doc)if(this.lastDragEvent){let e=this.computeTarget(this.lastDragEvent);e==this.cursorPos?this.updateOverlay():this.setCursor(e)}else this.updateOverlay()}setCursor(e){e!=this.cursorPos&&(this.cursorPos=e,null==e?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let e,t,r=this.editorView.state.doc.resolve(this.cursorPos),n=!r.parent.inlineContent,i,a=this.editorView.dom,o=a.getBoundingClientRect(),s=o.width/a.offsetWidth,l=o.height/a.offsetHeight;if(n){let e=r.nodeBefore,t=r.nodeAfter;if(e||t){let r=this.editorView.nodeDOM(this.cursorPos-(e?e.nodeSize:0));if(r){let n=r.getBoundingClientRect(),a=e?n.bottom:n.top;e&&t&&(a=(a+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2);let o=this.width/2*l;i={left:n.left,right:n.right,top:a-o,bottom:a+o}}}}if(!i){let e=this.editorView.coordsAtPos(this.cursorPos),t=this.width/2*s;i={left:e.left-t,right:e.left+t,top:e.top,bottom:e.bottom}}let c=this.editorView.dom.offsetParent;if(!this.element&&(this.element=c.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",n),this.element.classList.toggle("prosemirror-dropcursor-inline",!n),c&&(c!=document.body||"static"!=getComputedStyle(c).position)){let r=c.getBoundingClientRect(),n=r.width/c.offsetWidth,i=r.height/c.offsetHeight;e=r.left-c.scrollLeft*n,t=r.top-c.scrollTop*i}else e=-pageXOffset,t=-pageYOffset;this.element.style.left=(i.left-e)/s+"px",this.element.style.top=(i.top-t)/l+"px",this.element.style.width=(i.right-i.left)/s+"px",this.element.style.height=(i.bottom-i.top)/l+"px"}scheduleRemoval(e){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),e)}computeTarget(e){let t=this.editorView.posAtCoords({left:e.clientX,top:e.clientY}),r=t&&t.inside>=0&&this.editorView.state.doc.nodeAt(t.inside),n=r&&r.type.spec.disableDropCursor,a="function"==typeof n?n(this.editorView,t,e):n;if(!t||a)return null;let o=t.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let e=(0,i.Um)(this.editorView.state.doc,o,this.editorView.dragging.slice);null!=e&&(o=e)}return o}dragover(e){if(!this.editorView.editable)return;this.lastDragEvent=e;let t=this.computeTarget(e);null!=t&&(this.setCursor(t),this.scheduleRemoval(5e3))}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(e){this.editorView.dom.contains(e.relatedTarget)||this.setCursor(null)}}r.d(t,{A:()=>a})},89552(e,t,r){var n=r(14413),i=r(42845),a=r(96294),o=r(1575);class s extends i.LN{constructor(e){super(e,e)}map(e,t){let r=e.resolve(t.map(this.head));return s.valid(r)?new s(r):i.LN.near(r)}content(){return a.Ji.empty}eq(e){return e instanceof s&&e.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(e,t){if("number"!=typeof t.pos)throw RangeError("Invalid input for GapCursor.fromJSON");return new s(e.resolve(t.pos))}getBookmark(){return new l(this.anchor)}static valid(e){let t=e.parent;if(t.inlineContent||!function(e){for(let t=e.depth;t>=0;t--){let r=e.index(t),n=e.node(t);if(0==r){if(n.type.spec.isolating)return!0;continue}for(let e=n.child(r-1);;e=e.lastChild){if(0==e.childCount&&!e.inlineContent||c(e.type))return!0;if(e.inlineContent)return!1}}return!0}(e)||!function(e){for(let t=e.depth;t>=0;t--){let r=e.indexAfter(t),n=e.node(t);if(r==n.childCount){if(n.type.spec.isolating)return!0;continue}for(let e=n.child(r);;e=e.firstChild){if(0==e.childCount&&!e.inlineContent||c(e.type))return!0;if(e.inlineContent)return!1}}return!0}(e))return!1;let r=t.type.spec.allowGapCursor;if(null!=r)return r;let n=t.contentMatchAt(e.index()).defaultType;return n&&n.isTextblock}static findGapCursorFrom(e,t,r=!1){a:for(;;){if(!r&&s.valid(e))return e;let n=e.pos,a=null;for(let r=e.depth;;r--){let i=e.node(r);if(t>0?e.indexAfter(r)<i.childCount:e.index(r)>0){a=i.child(t>0?e.indexAfter(r):e.index(r)-1);break}if(0==r)return null;n+=t;let o=e.doc.resolve(n);if(s.valid(o))return o}for(;;){let o=t>0?a.firstChild:a.lastChild;if(!o){if(a.isAtom&&!a.isText&&!i.nh.isSelectable(a)){e=e.doc.resolve(n+a.nodeSize*t),r=!1;continue a}break}a=o,n+=t;let l=e.doc.resolve(n);if(s.valid(l))return l}return null}}}s.prototype.visible=!1,s.findFrom=s.findGapCursorFrom,i.LN.jsonID("gapcursor",s);class l{constructor(e){this.pos=e}map(e){return new l(e.map(this.pos))}resolve(e){let t=e.resolve(this.pos);return s.valid(t)?new s(t):i.LN.near(t)}}function c(e){return e.isAtom||e.spec.isolating||e.spec.createGapCursor}function u(){return new i.k_({props:{decorations:m,createSelectionBetween:(e,t,r)=>t.pos==r.pos&&s.valid(r)?new s(r):null,handleClick:d,handleKeyDown:h,handleDOMEvents:{beforeinput:f}}})}let h=(0,n.K)({ArrowLeft:p("horiz",-1),ArrowRight:p("horiz",1),ArrowUp:p("vert",-1),ArrowDown:p("vert",1)});function p(e,t){let r="vert"==e?t>0?"down":"up":t>0?"right":"left";return function(e,n,a){let o=e.selection,l=t>0?o.$to:o.$from,c=o.empty;if(o instanceof i.U3){if(!a.endOfTextblock(r)||0==l.depth)return!1;c=!1,l=e.doc.resolve(t>0?l.after():l.before())}let u=s.findGapCursorFrom(l,t,c);return!!u&&(n&&n(e.tr.setSelection(new s(u))),!0)}}function d(e,t,r){if(!e||!e.editable)return!1;let n=e.state.doc.resolve(t);if(!s.valid(n))return!1;let a=e.posAtCoords({left:r.clientX,top:r.clientY});return!(a&&a.inside>-1&&i.nh.isSelectable(e.state.doc.nodeAt(a.inside)))&&(e.dispatch(e.state.tr.setSelection(new s(n))),!0)}function f(e,t){if("insertCompositionText"!=t.inputType||!(e.state.selection instanceof s))return!1;let{$from:r}=e.state.selection,n=r.parent.contentMatchAt(r.index()).findWrapping(e.state.schema.nodes.text);if(!n)return!1;let o=a.FK.empty;for(let e=n.length-1;e>=0;e--)o=a.FK.from(n[e].createAndFill(null,o));let l=e.state.tr.replace(r.pos,r.pos,new a.Ji(o,0,0));return l.setSelection(i.U3.near(l.doc.resolve(r.pos+1))),e.dispatch(l),!1}function m(e){if(!(e.selection instanceof s))return null;let t=document.createElement("div");return t.className="ProseMirror-gapcursor",o.zF.create(e.doc,[o.NZ.widget(e.selection.head,t,{key:"gapcursor"})])}r.d(t,{z:()=>u})},53034(e,t,r){r.d(t,{b6:()=>v,ZS:()=>x,tN:()=>b});var n=function(){};n.prototype.append=function(e){return e.length?(e=n.from(e),!this.length&&e||e.length<200&&this.leafAppend(e)||this.length<200&&e.leafPrepend(this)||this.appendInner(e)):this},n.prototype.prepend=function(e){return e.length?n.from(e).append(this):this},n.prototype.appendInner=function(e){return new a(this,e)},n.prototype.slice=function(e,t){return(void 0===e&&(e=0),void 0===t&&(t=this.length),e>=t)?n.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,t))},n.prototype.get=function(e){if(!(e<0)&&!(e>=this.length))return this.getInner(e)},n.prototype.forEach=function(e,t,r){void 0===t&&(t=0),void 0===r&&(r=this.length),t<=r?this.forEachInner(e,t,r,0):this.forEachInvertedInner(e,t,r,0)},n.prototype.map=function(e,t,r){void 0===t&&(t=0),void 0===r&&(r=this.length);var n=[];return this.forEach(function(t,r){return n.push(e(t,r))},t,r),n},n.from=function(e){return e instanceof n?e:e&&e.length?new i(e):n.empty};var i=function(e){function t(t){e.call(this),this.values=t}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var r={length:{configurable:!0},depth:{configurable:!0}};return t.prototype.flatten=function(){return this.values},t.prototype.sliceInner=function(e,r){return 0==e&&r==this.length?this:new t(this.values.slice(e,r))},t.prototype.getInner=function(e){return this.values[e]},t.prototype.forEachInner=function(e,t,r,n){for(var i=t;i<r;i++)if(!1===e(this.values[i],n+i))return!1},t.prototype.forEachInvertedInner=function(e,t,r,n){for(var i=t-1;i>=r;i--)if(!1===e(this.values[i],n+i))return!1},t.prototype.leafAppend=function(e){if(this.length+e.length<=200)return new t(this.values.concat(e.flatten()))},t.prototype.leafPrepend=function(e){if(this.length+e.length<=200)return new t(e.flatten().concat(this.values))},r.length.get=function(){return this.values.length},r.depth.get=function(){return 0},Object.defineProperties(t.prototype,r),t}(n);n.empty=new i([]);var a=function(e){function t(t,r){e.call(this),this.left=t,this.right=r,this.length=t.length+r.length,this.depth=Math.max(t.depth,r.depth)+1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},t.prototype.getInner=function(e){return e<this.left.length?this.left.get(e):this.right.get(e-this.left.length)},t.prototype.forEachInner=function(e,t,r,n){var i=this.left.length;if(t<i&&!1===this.left.forEachInner(e,t,Math.min(r,i),n)||r>i&&!1===this.right.forEachInner(e,Math.max(t-i,0),Math.min(this.length,r)-i,n+i))return!1},t.prototype.forEachInvertedInner=function(e,t,r,n){var i=this.left.length;if(t>i&&!1===this.right.forEachInvertedInner(e,t-i,Math.max(r,i)-i,n+i)||r<i&&!1===this.left.forEachInvertedInner(e,Math.min(t,i),r,n))return!1},t.prototype.sliceInner=function(e,t){if(0==e&&t==this.length)return this;var r=this.left.length;return t<=r?this.left.slice(e,t):e>=r?this.right.slice(e-r,t-r):this.left.slice(e,r).append(this.right.slice(0,t-r))},t.prototype.leafAppend=function(e){var r=this.right.leafAppend(e);if(r)return new t(this.left,r)},t.prototype.leafPrepend=function(e){var r=this.left.leafPrepend(e);if(r)return new t(r,this.right)},t.prototype.appendInner=function(e){return this.left.depth>=Math.max(this.right.depth,e.depth)+1?new t(this.left,new t(this.right,e)):new t(this,e)},t}(n),o=r(38262),s=r(42845);class l{constructor(e,t){this.items=e,this.eventCount=t}popEvent(e,t){let r,n,i,a;if(0==this.eventCount)return null;let o=this.items.length;for(;;o--)if(this.items.get(o-1).selection){--o;break}t&&(n=(r=this.remapping(o,this.items.length)).maps.length);let s=e.tr,u=[],h=[];return this.items.forEach((e,t)=>{if(!e.step){r||(n=(r=this.remapping(o,t+1)).maps.length),n--,h.push(e);return}if(r){h.push(new c(e.map));let t=e.step.map(r.slice(n)),i;t&&s.maybeStep(t).doc&&(i=s.mapping.maps[s.mapping.maps.length-1],u.push(new c(i,void 0,void 0,u.length+h.length))),n--,i&&r.appendMap(i,n)}else s.maybeStep(e.step);if(e.selection)return i=r?e.selection.map(r.slice(n)):e.selection,a=new l(this.items.slice(0,o).append(h.reverse().concat(u)),this.eventCount-1),!1},this.items.length,0),{remaining:a,transform:s,selection:i}}addTransform(e,t,r,n){var i,a;let o,s=[],u=this.eventCount,p=this.items,d=!n&&p.length?p.get(p.length-1):null;for(let r=0;r<e.steps.length;r++){let i=e.steps[r].invert(e.docs[r]),a=new c(e.mapping.maps[r],i,t),o;(o=d&&d.merge(a))&&(a=o,r?s.pop():p=p.slice(0,p.length-1)),s.push(a),t&&(u++,t=void 0),n||(d=a)}let f=u-r.depth;return f>h&&(i=p,a=f,i.forEach((e,t)=>{if(e.selection&&0==a--)return o=t,!1}),p=i.slice(o),u-=f),new l(p.append(s),u)}remapping(e,t){let r=new o.X9;return this.items.forEach((t,n)=>{let i=null!=t.mirrorOffset&&n-t.mirrorOffset>=e?r.maps.length-t.mirrorOffset:void 0;r.appendMap(t.map,i)},e,t),r}addMaps(e){return 0==this.eventCount?this:new l(this.items.append(e.map(e=>new c(e))),this.eventCount)}rebased(e,t){if(!this.eventCount)return this;let r=[],n=Math.max(0,this.items.length-t),i=e.mapping,a=e.steps.length,o=this.eventCount;this.items.forEach(e=>{e.selection&&o--},n);let s=t;this.items.forEach(t=>{let n=i.getMirror(--s);if(null==n)return;a=Math.min(a,n);let l=i.maps[n];if(t.step){let a=e.steps[n].invert(e.docs[n]),u=t.selection&&t.selection.map(i.slice(s+1,n));u&&o++,r.push(new c(l,a,u))}else r.push(new c(l))},n);let u=[];for(let e=t;e<a;e++)u.push(new c(i.maps[e]));let h=new l(this.items.slice(0,n).append(u).append(r),o);return h.emptyItemCount()>500&&(h=h.compress(this.items.length-r.length)),h}emptyItemCount(){let e=0;return this.items.forEach(t=>{!t.step&&e++}),e}compress(e=this.items.length){let t=this.remapping(0,e),r=t.maps.length,i=[],a=0;return this.items.forEach((n,o)=>{if(o>=e)i.push(n),n.selection&&a++;else if(n.step){let e=n.step.map(t.slice(r)),o=e&&e.getMap();if(r--,o&&t.appendMap(o,r),e){let s=n.selection&&n.selection.map(t.slice(r));s&&a++;let l=new c(o.invert(),e,s),u,h=i.length-1;(u=i.length&&i[h].merge(l))?i[h]=u:i.push(l)}}else n.map&&r--},this.items.length,0),new l(n.from(i.reverse()),a)}}l.empty=new l(n.empty,0);class c{constructor(e,t,r,n){this.map=e,this.step=t,this.selection=r,this.mirrorOffset=n}merge(e){if(this.step&&e.step&&!e.selection){let t=e.step.merge(this.step);if(t)return new c(t.getMap().invert(),t,this.selection)}}}class u{constructor(e,t,r,n,i){this.done=e,this.undone=t,this.prevRanges=r,this.prevTime=n,this.prevComposition=i}}let h=20;function p(e){let t=[];for(let r=e.length-1;r>=0&&0==t.length;r--)e[r].forEach((e,r,n,i)=>t.push(n,i));return t}function d(e,t){if(!e)return null;let r=[];for(let n=0;n<e.length;n+=2){let i=t.map(e[n],1),a=t.map(e[n+1],-1);i<=a&&r.push(i,a)}return r}let f=!1,m=null;function g(e){let t=e.plugins;if(m!=t){f=!1,m=t;for(let e=0;e<t.length;e++)if(t[e].spec.historyPreserveItems){f=!0;break}}return f}let A=new s.hs("history"),y=new s.hs("closeHistory");function v(e={}){return e={depth:e.depth||100,newGroupDelay:e.newGroupDelay||500},new s.k_({key:A,state:{init:()=>new u(l.empty,l.empty,null,0,-1),apply:(t,r,n)=>(function(e,t,r,n){let i=r.getMeta(A),a;if(i)return i.historyState;r.getMeta(y)&&(e=new u(e.done,e.undone,null,0,-1));let o=r.getMeta("appendedTransaction");if(0==r.steps.length)return e;if(o&&o.getMeta(A))if(o.getMeta(A).redo)return new u(e.done.addTransform(r,void 0,n,g(t)),e.undone,p(r.mapping.maps),e.prevTime,e.prevComposition);else return new u(e.done,e.undone.addTransform(r,void 0,n,g(t)),null,e.prevTime,e.prevComposition);if(!1===r.getMeta("addToHistory")||o&&!1===o.getMeta("addToHistory"))if(a=r.getMeta("rebased"))return new u(e.done.rebased(r,a),e.undone.rebased(r,a),d(e.prevRanges,r.mapping),e.prevTime,e.prevComposition);else return new u(e.done.addMaps(r.mapping.maps),e.undone.addMaps(r.mapping.maps),d(e.prevRanges,r.mapping),e.prevTime,e.prevComposition);{let i=r.getMeta("composition"),a=0==e.prevTime||!o&&e.prevComposition!=i&&(e.prevTime<(r.time||0)-n.newGroupDelay||!function(e,t){if(!t)return!1;if(!e.docChanged)return!0;let r=!1;return e.mapping.maps[0].forEach((e,n)=>{for(let i=0;i<t.length;i+=2)e<=t[i+1]&&n>=t[i]&&(r=!0)}),r}(r,e.prevRanges)),s=o?d(e.prevRanges,r.mapping):p(r.mapping.maps);return new u(e.done.addTransform(r,a?t.selection.getBookmark():void 0,n,g(t)),l.empty,s,r.time,null==i?e.prevComposition:i)}})(r,n,t,e)},config:e,props:{handleDOMEvents:{beforeinput(e,t){let r=t.inputType,n="historyUndo"==r?b:"historyRedo"==r?x:null;return!!n&&!!e.editable&&(t.preventDefault(),n(e.state,e.dispatch))}}}})}function R(e,t){return(r,n)=>{let i=A.getState(r);if(!i||0==(e?i.undone:i.done).eventCount)return!1;if(n){let a=function(e,t,r){let n=g(t),i=A.get(t).spec.config,a=(r?e.undone:e.done).popEvent(t,n);if(!a)return null;let o=a.selection.resolve(a.transform.doc),s=(r?e.done:e.undone).addTransform(a.transform,t.selection.getBookmark(),i,n),l=new u(r?s:a.remaining,r?a.remaining:s,null,0,-1);return a.transform.setSelection(o).setMeta(A,{redo:r,historyState:l})}(i,r,e);a&&n(t?a.scrollIntoView():a)}return!0}}let b=R(!1,!0),x=R(!0,!0)},38341(e,t,r){var n=r(42845),i=r(38262);class a{constructor(e,t,r={}){var n;this.match=e,this.match=e,this.handler="string"==typeof t?(n=t,function(e,t,r,i){let a=n;if(t[1]){let e=t[0].lastIndexOf(t[1]);a+=t[0].slice(e+t[1].length);let n=(r+=e)-i;n>0&&(a=t[0].slice(e-n,e)+a,r=i)}return e.tr.insertText(a,r,i)}):t,this.undoable=!1!==r.undoable,this.inCode=r.inCode||!1,this.inCodeMark=!1!==r.inCodeMark}}function o({rules:e}){let t=new n.k_({state:{init:()=>null,apply(e,t){let r=e.getMeta(this);return r||(e.selectionSet||e.docChanged?null:t)}},props:{handleTextInput:(r,n,i,a)=>s(r,n,i,a,e,t),handleDOMEvents:{compositionend:r=>{setTimeout(()=>{let{$cursor:n}=r.state.selection;n&&s(r,n.pos,n.pos,"",e,t)})}}},isInputRules:!0});return t}function s(e,t,r,n,i,a){if(e.composing)return!1;let o=e.state,s=o.doc.resolve(t),l=s.parent.textBetween(Math.max(0,s.parentOffset-500),s.parentOffset,null,"")+n;for(let c=0;c<i.length;c++){let u=i[c];if(!u.inCodeMark&&s.marks().some(e=>e.type.spec.code))continue;if(s.parent.type.spec.code){if(!u.inCode)continue}else if("only"===u.inCode)continue;let h=u.match.exec(l);if(!h||h[0].length<n.length)continue;let p=t-(h[0].length-n.length);if(!u.inCodeMark){let e=!1;if(o.doc.nodesBetween(p,s.pos,t=>{t.isInline&&t.marks.some(e=>e.type.spec.code)&&(e=!0)}),e)continue}let d=u.handler(o,h,p,r);if(d)return u.undoable&&d.setMeta(a,{transform:d,from:t,to:r,text:n}),e.dispatch(d),!0}return!1}let l=new a(/--$/,"—",{inCodeMark:!1}),c=new a(/\.\.\.$/,"…",{inCodeMark:!1}),u=new a(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(")$/,"“",{inCodeMark:!1}),h=new a(/"$/,"”",{inCodeMark:!1}),p=new a(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(')$/,"‘",{inCodeMark:!1}),d=new a(/'$/,"’",{inCodeMark:!1});function f(e,t,r=null,n){return new a(e,(e,a,o,s)=>{let l=r instanceof Function?r(a):r,c=e.tr.delete(o,s),u=c.doc.resolve(o).blockRange(),h=u&&(0,i.oM)(u,t,l);if(!h)return null;c.wrap(u,h);let p=c.doc.resolve(o-1).nodeBefore;return p&&p.type==t&&(0,i.n9)(c.doc,o-1)&&(!n||n(a,p))&&c.join(o-1),c})}r.d(t,{fV:()=>a,sM:()=>o,tG:()=>f},{Fr:[u,h,p,d],P8:l,dv:(e,t)=>{let r=e.plugins;for(let n=0;n<r.length;n++){let i=r[n],a;if(i.spec.isInputRules&&(a=i.getState(e))){if(t){let r=e.tr,n=a.transform;for(let e=n.steps.length-1;e>=0;e--)r.step(n.steps[e].invert(n.docs[e]));if(a.text){let t=r.doc.resolve(a.from).marks();r.replaceWith(a.from,a.to,e.schema.text(a.text,t))}else r.delete(a.from,a.to);t(r)}return!0}}return!1},gO:c})},14413(e,t,r){var n=r(62534),i=r(42845);let a="u">typeof navigator&&/Mac|iP(hone|[oa]d)/.test(navigator.platform),o="u">typeof navigator&&/Win/.test(navigator.platform);function s(e,t,r=!0){return t.altKey&&(e="Alt-"+e),t.ctrlKey&&(e="Ctrl-"+e),t.metaKey&&(e="Meta-"+e),r&&t.shiftKey&&(e="Shift-"+e),e}function l(e){return new i.k_({props:{handleKeyDown:c(e)}})}function c(e){let t=function(e){let t=Object.create(null);for(let r in e)t[function(e){let t,r,n,i,o=e.split(/-(?!$)/),s=o[o.length-1];"Space"==s&&(s=" ");for(let e=0;e<o.length-1;e++){let s=o[e];if(/^(cmd|meta|m)$/i.test(s))i=!0;else if(/^a(lt)?$/i.test(s))t=!0;else if(/^(c|ctrl|control)$/i.test(s))r=!0;else if(/^s(hift)?$/i.test(s))n=!0;else if(/^mod$/i.test(s))a?i=!0:r=!0;else throw Error("Unrecognized modifier name: "+s)}return t&&(s="Alt-"+s),r&&(s="Ctrl-"+s),i&&(s="Meta-"+s),n&&(s="Shift-"+s),s}(r)]=e[r];return t}(e);return function(e,r){let i=(0,n.xT)(r),a,l=t[s(i,r)];if(l&&l(e.state,e.dispatch,e))return!0;if(1==i.length&&" "!=i){if(r.shiftKey){let n=t[s(i,r,!1)];if(n&&n(e.state,e.dispatch,e))return!0}if((r.altKey||r.metaKey||r.ctrlKey)&&!(o&&r.ctrlKey&&r.altKey)&&(a=n.E3[r.keyCode])&&a!=i){let n=t[s(a,r)];if(n&&n(e.state,e.dispatch,e))return!0}}return!1}}r.d(t,{K:()=>c,w:()=>l})},96294(e,t,r){function n(e){this.content=e}function i(e){return e>=56320&&e<57344}function a(e){return e>=55296&&e<56320}r.d(t,{S4:()=>D,ZF:()=>J,FK:()=>o,CU:()=>u,sX:()=>V,bP:()=>w,u$:()=>M,vI:()=>h,Sj:()=>E,Ji:()=>p}),n.prototype={constructor:n,find:function(e){for(var t=0;t<this.content.length;t+=2)if(this.content[t]===e)return t;return -1},get:function(e){var t=this.find(e);return -1==t?void 0:this.content[t+1]},update:function(e,t,r){var i=r&&r!=e?this.remove(r):this,a=i.find(e),o=i.content.slice();return -1==a?o.push(r||e,t):(o[a+1]=t,r&&(o[a]=r)),new n(o)},remove:function(e){var t=this.find(e);if(-1==t)return this;var r=this.content.slice();return r.splice(t,2),new n(r)},addToStart:function(e,t){return new n([e,t].concat(this.remove(e).content))},addToEnd:function(e,t){var r=this.remove(e).content.slice();return r.push(e,t),new n(r)},addBefore:function(e,t,r){var i=this.remove(t),a=i.content.slice(),o=i.find(e);return a.splice(-1==o?a.length:o,0,t,r),new n(a)},forEach:function(e){for(var t=0;t<this.content.length;t+=2)e(this.content[t],this.content[t+1])},prepend:function(e){return(e=n.from(e)).size?new n(e.content.concat(this.subtract(e).content)):this},append:function(e){return(e=n.from(e)).size?new n(this.subtract(e).content.concat(e.content)):this},subtract:function(e){var t=this;e=n.from(e);for(var r=0;r<e.content.length;r+=2)t=t.remove(e.content[r]);return t},toObject:function(){var e={};return this.forEach(function(t,r){e[t]=r}),e},get size(){return this.content.length>>1}},n.from=function(e){if(e instanceof n)return e;var t=[];if(e)for(var r in e)t.push(r,e[r]);return new n(t)};class o{constructor(e,t){if(this.content=e,this.size=t||0,null==t)for(let t=0;t<e.length;t++)this.size+=e[t].nodeSize}nodesBetween(e,t,r,n=0,i){for(let a=0,o=0;o<t;a++){let s=this.content[a],l=o+s.nodeSize;if(l>e&&!1!==r(s,n+o,i||null,a)&&s.content.size){let i=o+1;s.nodesBetween(Math.max(0,e-i),Math.min(s.content.size,t-i),r,n+i)}o=l}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,r,n){let i="",a=!0;return this.nodesBetween(e,t,(o,s)=>{let l=o.isText?o.text.slice(Math.max(e,s)-s,t-s):o.isLeaf?n?"function"==typeof n?n(o):n:o.type.spec.leafText?o.type.spec.leafText(o):"":"";o.isBlock&&(o.isLeaf&&l||o.isTextblock)&&r&&(a?a=!1:i+=r),i+=l},0),i}append(e){if(!e.size)return this;if(!this.size)return e;let t=this.lastChild,r=e.firstChild,n=this.content.slice(),i=0;for(t.isText&&t.sameMarkup(r)&&(n[n.length-1]=t.withText(t.text+r.text),i=1);i<e.content.length;i++)n.push(e.content[i]);return new o(n,this.size+e.size)}cut(e,t=this.size){if(0==e&&t==this.size)return this;let r=[],n=0;if(t>e)for(let i=0,a=0;a<t;i++){let o=this.content[i],s=a+o.nodeSize;s>e&&((a<e||s>t)&&(o=o.isText?o.cut(Math.max(0,e-a),Math.min(o.text.length,t-a)):o.cut(Math.max(0,e-a-1),Math.min(o.content.size,t-a-1))),r.push(o),n+=o.nodeSize),a=s}return new o(r,n)}cutByIndex(e,t){return e==t?o.empty:0==e&&t==this.content.length?this:new o(this.content.slice(e,t))}replaceChild(e,t){let r=this.content[e];if(r==t)return this;let n=this.content.slice(),i=this.size+t.nodeSize-r.nodeSize;return n[e]=t,new o(n,i)}addToStart(e){return new o([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new o(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let t=0;t<this.content.length;t++)if(!this.content[t].eq(e.content[t]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let t=this.content[e];if(!t)throw RangeError("Index "+e+" out of range for "+this);return t}maybeChild(e){return this.content[e]||null}forEach(e){for(let t=0,r=0;t<this.content.length;t++){let n=this.content[t];e(n,r,t),r+=n.nodeSize}}findDiffStart(e,t=0){return function e(t,r,n){for(let o=0;;o++){if(o==t.childCount||o==r.childCount)return t.childCount==r.childCount?null:n;let s=t.child(o),l=r.child(o);if(s==l){n+=s.nodeSize;continue}if(!s.sameMarkup(l))return n;if(s.isText&&s.text!=l.text){let e=s.text,t=l.text,r=0;for(;e[r]==t[r];r++)n++;return r&&r<e.length&&r<t.length&&a(e.charCodeAt(r-1))&&i(e.charCodeAt(r))&&n--,n}if(s.content.size||l.content.size){let t=e(s.content,l.content,n+1);if(null!=t)return t}n+=s.nodeSize}}(this,e,t)}findDiffEnd(e,t=this.size,r=e.size){return function e(t,r,n,o){for(let s=t.childCount,l=r.childCount;;){if(0==s||0==l)return s==l?null:{a:n,b:o};let c=t.child(--s),u=r.child(--l),h=c.nodeSize;if(c==u){n-=h,o-=h;continue}if(!c.sameMarkup(u))return{a:n,b:o};if(c.isText&&c.text!=u.text){let e=c.text,t=u.text,r=e.length,s=t.length;for(;r>0&&s>0&&e[r-1]==t[s-1];)r--,s--,n--,o--;return r&&s&&r<e.length&&a(e.charCodeAt(r-1))&&i(e.charCodeAt(r))&&(n++,o++),{a:n,b:o}}if(c.content.size||u.content.size){let t=e(c.content,u.content,n-1,o-1);if(t)return t}n-=h,o-=h}}(this,e,t,r)}findIndex(e){if(0==e)return l(0,e);if(e==this.size)return l(this.content.length,e);if(e>this.size||e<0)throw RangeError(`Position ${e} outside of fragment (${this})`);for(let t=0,r=0;;t++){let n=r+this.child(t).nodeSize;if(n>=e){if(n==e)return l(t+1,n);return l(t,r)}r=n}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,t){if(!t)return o.empty;if(!Array.isArray(t))throw RangeError("Invalid input for Fragment.fromJSON");return o.fromArray(t.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return o.empty;let t,r=0;for(let n=0;n<e.length;n++){let i=e[n];r+=i.nodeSize,n&&i.isText&&e[n-1].sameMarkup(i)?(t||(t=e.slice(0,n)),t[t.length-1]=i.withText(t[t.length-1].text+i.text)):t&&t.push(i)}return new o(t||e,r)}static from(e){if(!e)return o.empty;if(e instanceof o)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new o([e],e.nodeSize);throw RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}o.empty=new o([],0);let s={index:0,offset:0};function l(e,t){return s.index=e,s.offset=t,s}function c(e,t){if(e===t)return!0;if(!(e&&"object"==typeof e)||!(t&&"object"==typeof t))return!1;let r=Array.isArray(e);if(Array.isArray(t)!=r)return!1;if(r){if(e.length!=t.length)return!1;for(let r=0;r<e.length;r++)if(!c(e[r],t[r]))return!1}else{for(let r in e)if(!(r in t)||!c(e[r],t[r]))return!1;for(let r in t)if(!(r in e))return!1}return!0}class u{constructor(e,t){this.type=e,this.attrs=t}addToSet(e){let t,r=!1;for(let n=0;n<e.length;n++){let i=e[n];if(this.eq(i))return e;if(this.type.excludes(i.type))t||(t=e.slice(0,n));else{if(i.type.excludes(this.type))return e;!r&&i.type.rank>this.type.rank&&(t||(t=e.slice(0,n)),t.push(this),r=!0),t&&t.push(i)}}return t||(t=e.slice()),r||t.push(this),t}removeFromSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return e.slice(0,t).concat(e.slice(t+1));return e}isInSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return!0;return!1}eq(e){return this==e||this.type==e.type&&c(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,t){if(!t)throw RangeError("Invalid input for Mark.fromJSON");let r=e.marks[t.type];if(!r)throw RangeError(`There is no mark type ${t.type} in this schema`);let n=r.create(t.attrs);return r.checkAttrs(n.attrs),n}static sameSet(e,t){if(e==t)return!0;if(e.length!=t.length)return!1;for(let r=0;r<e.length;r++)if(!e[r].eq(t[r]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&0==e.length)return u.none;if(e instanceof u)return[e];let t=e.slice();return t.sort((e,t)=>e.type.rank-t.type.rank),t}}u.none=[];class h extends Error{}class p{constructor(e,t,r){this.content=e,this.openStart=t,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,t){let r=function e(t,r,n,i,a,o){let{index:s,offset:l}=t.findIndex(r),c=t.maybeChild(s);if(l==r||c.isText)return o&&i<=0&&a<=0&&!o.canReplace(s,s,n)?null:t.cut(0,r).append(n).append(t.cut(r));let u=e(c.content,r-l-1,n,0==s?i-1:0,s==t.childCount-1?a-1:0,c);return u&&t.replaceChild(s,c.copy(u))}(this.content,e+this.openStart,t,this.openStart+1,this.openEnd+1);return r&&new p(r,this.openStart,this.openEnd)}removeBetween(e,t){return new p(function e(t,r,n){let{index:i,offset:a}=t.findIndex(r),o=t.maybeChild(i),{index:s,offset:l}=t.findIndex(n);if(a==r||o.isText){if(l!=n&&!t.child(s).isText)throw RangeError("Removing non-flat range");return t.cut(0,r).append(t.cut(n))}if(i!=s)throw RangeError("Removing non-flat range");return t.replaceChild(i,o.copy(e(o.content,r-a-1,n-a-1)))}(this.content,e+this.openStart,t+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,t){if(!t)return p.empty;let r=t.openStart||0,n=t.openEnd||0;if("number"!=typeof r||"number"!=typeof n)throw RangeError("Invalid input for Slice.fromJSON");return new p(o.fromJSON(e,t.content),r,n)}static maxOpen(e,t=!0){let r=0,n=0;for(let n=e.firstChild;n&&!n.isLeaf&&(t||!n.type.spec.isolating);n=n.firstChild)r++;for(let r=e.lastChild;r&&!r.isLeaf&&(t||!r.type.spec.isolating);r=r.lastChild)n++;return new p(e,r,n)}}function d(e,t){if(!t.type.compatibleContent(e.type))throw new h("Cannot join "+t.type.name+" onto "+e.type.name)}function f(e,t,r){let n=e.node(r);return d(n,t.node(r)),n}function m(e,t){let r=t.length-1;r>=0&&e.isText&&e.sameMarkup(t[r])?t[r]=e.withText(t[r].text+e.text):t.push(e)}function g(e,t,r,n){let i=(t||e).node(r),a=0,o=t?t.index(r):i.childCount;e&&(a=e.index(r),e.depth>r?a++:e.textOffset&&(m(e.nodeAfter,n),a++));for(let e=a;e<o;e++)m(i.child(e),n);t&&t.depth==r&&t.textOffset&&m(t.nodeBefore,n)}function A(e,t){if(!e.type.validContent(t))throw new h("Invalid content for node "+e.type.name);return e.copy(t)}function y(e,t,r){let n=[];return g(null,e,r,n),e.depth>r&&m(A(f(e,t,r+1),y(e,t,r+1)),n),g(t,null,r,n),new o(n)}p.empty=new p(o.empty,0,0);class v{constructor(e,t,r){this.pos=e,this.path=t,this.parentOffset=r,this.depth=t.length/3-1}resolveDepth(e){return null==e?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[3*this.resolveDepth(e)]}index(e){return this.path[3*this.resolveDepth(e)+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e!=this.depth||this.textOffset?1:0)}start(e){return 0==(e=this.resolveDepth(e))?0:this.path[3*e-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(!(e=this.resolveDepth(e)))throw RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]}after(e){if(!(e=this.resolveDepth(e)))throw RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]+this.path[3*e].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;let r=this.pos-this.path[this.path.length-1],n=e.child(t);return r?e.child(t).cut(r):n}get nodeBefore(){let e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):0==e?null:this.parent.child(e-1)}posAtIndex(e,t){t=this.resolveDepth(t);let r=this.path[3*t],n=0==t?0:this.path[3*t-1]+1;for(let t=0;t<e;t++)n+=r.child(t).nodeSize;return n}marks(){let e=this.parent,t=this.index();if(0==e.content.size)return u.none;if(this.textOffset)return e.child(t).marks;let r=e.maybeChild(t-1),n=e.maybeChild(t);if(!r){let e=r;r=n,n=e}let i=r.marks;for(var a=0;a<i.length;a++)!1!==i[a].type.spec.inclusive||n&&i[a].isInSet(n.marks)||(i=i[a--].removeFromSet(i));return i}marksAcross(e){let t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;let r=t.marks,n=e.parent.maybeChild(e.index());for(var i=0;i<r.length;i++)!1!==r[i].type.spec.inclusive||n&&r[i].isInSet(n.marks)||(r=r[i--].removeFromSet(r));return r}sharedDepth(e){for(let t=this.depth;t>0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}blockRange(e=this,t){if(e.pos<this.pos)return e.blockRange(this);for(let r=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);r>=0;r--)if(e.pos<=this.end(r)&&(!t||t(this.node(r))))return new M(this,e,r);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let t=1;t<=this.depth;t++)e+=(e?"/":"")+this.node(t).type.name+"_"+this.index(t-1);return e+":"+this.parentOffset}static resolve(e,t){if(!(t>=0&&t<=e.content.size))throw RangeError("Position "+t+" out of range");let r=[],n=0,i=t;for(let t=e;;){let{index:e,offset:a}=t.content.findIndex(i),o=i-a;if(r.push(t,e,n+a),!o||(t=t.child(e)).isText)break;i=o-1,n+=a+1}return new v(t,r,i)}static resolveCached(e,t){let r=x.get(e);if(r)for(let e=0;e<r.elts.length;e++){let n=r.elts[e];if(n.pos==t)return n}else x.set(e,r=new R);let n=r.elts[r.i]=v.resolve(e,t);return r.i=(r.i+1)%b,n}}class R{constructor(){this.elts=[],this.i=0}}let b=12,x=new WeakMap;class M{constructor(e,t,r){this.$from=e,this.$to=t,this.depth=r}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}let S=Object.create(null);class w{constructor(e,t,r,n=u.none){this.type=e,this.attrs=t,this.marks=n,this.content=r||o.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,t,r,n=0){this.content.nodesBetween(e,t,r,n,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,t,r,n){return this.content.textBetween(e,t,r,n)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,t,r){return this.type==e&&c(this.attrs,t||e.defaultAttrs||S)&&u.sameSet(this.marks,r||u.none)}copy(e=null){return e==this.content?this:new w(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new w(this.type,this.attrs,this.content,e)}cut(e,t=this.content.size){return 0==e&&t==this.content.size?this:this.copy(this.content.cut(e,t))}slice(e,t=this.content.size,r=!1){if(e==t)return p.empty;let n=this.resolve(e),i=this.resolve(t),a=r?0:n.sharedDepth(t),o=n.start(a);return new p(n.node(a).content.cut(n.pos-o,i.pos-o),n.depth-a,i.depth-a)}replace(e,t,r){var n=this.resolve(e),i=this.resolve(t);if(r.openStart>n.depth)throw new h("Inserted content deeper than insertion position");if(n.depth-r.openStart!=i.depth-r.openEnd)throw new h("Inconsistent open depths");return function e(t,r,n,i){let a=t.index(i),s=t.node(i);if(a==r.index(i)&&i<t.depth-n.openStart){let o=e(t,r,n,i+1);return s.copy(s.content.replaceChild(a,o))}if(!n.content.size)return A(s,y(t,r,i));if(n.openStart||n.openEnd||t.depth!=i||r.depth!=i){let{start:e,end:a}=function(e,t){let r=t.depth-e.openStart,n=t.node(r).copy(e.content);for(let e=r-1;e>=0;e--)n=t.node(e).copy(o.from(n));return{start:n.resolveNoCache(e.openStart+r),end:n.resolveNoCache(n.content.size-e.openEnd-r)}}(n,t);return A(s,function e(t,r,n,i,a){let s=t.depth>a&&f(t,r,a+1),l=i.depth>a&&f(n,i,a+1),c=[];return g(null,t,a,c),s&&l&&r.index(a)==n.index(a)?(d(s,l),m(A(s,e(t,r,n,i,a+1)),c)):(s&&m(A(s,y(t,r,a+1)),c),g(r,n,a,c),l&&m(A(l,y(n,i,a+1)),c)),g(i,null,a,c),new o(c)}(t,e,a,r,i))}{let e=t.parent,i=e.content;return A(e,i.cut(0,t.parentOffset).append(n.content).append(i.cut(r.parentOffset)))}}(n,i,r,0)}nodeAt(e){for(let t=this;;){let{index:r,offset:n}=t.content.findIndex(e);if(!(t=t.maybeChild(r)))return null;if(n==e||t.isText)return t;e-=n+1}}childAfter(e){let{index:t,offset:r}=this.content.findIndex(e);return{node:this.content.maybeChild(t),index:t,offset:r}}childBefore(e){if(0==e)return{node:null,index:0,offset:0};let{index:t,offset:r}=this.content.findIndex(e);if(r<e)return{node:this.content.child(t),index:t,offset:r};let n=this.content.child(t-1);return{node:n,index:t-1,offset:r-n.nodeSize}}resolve(e){return v.resolveCached(this,e)}resolveNoCache(e){return v.resolve(this,e)}rangeHasMark(e,t,r){let n=!1;return t>e&&this.nodesBetween(e,t,e=>(r.isInSet(e.marks)&&(n=!0),!n)),n}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),L(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw Error("Called contentMatchAt on a node with invalid content");return t}canReplace(e,t,r=o.empty,n=0,i=r.childCount){let a=this.contentMatchAt(e).matchFragment(r,n,i),s=a&&a.matchFragment(this.content,t);if(!s||!s.validEnd)return!1;for(let e=n;e<i;e++)if(!this.type.allowsMarks(r.child(e).marks))return!1;return!0}canReplaceWith(e,t,r,n){if(n&&!this.type.allowsMarks(n))return!1;let i=this.contentMatchAt(e).matchType(r),a=i&&i.matchFragment(this.content,t);return!!a&&a.validEnd}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let e=u.none;for(let t=0;t<this.marks.length;t++){let r=this.marks[t];r.type.checkAttrs(r.attrs),e=r.addToSet(e)}if(!u.sameSet(e,this.marks))throw RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(e=>e.type.name)}`);this.content.forEach(e=>e.check())}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(e=>e.toJSON())),e}static fromJSON(e,t){let r;if(!t)throw RangeError("Invalid input for Node.fromJSON");if(t.marks){if(!Array.isArray(t.marks))throw RangeError("Invalid mark data for Node.fromJSON");r=t.marks.map(e.markFromJSON)}if("text"==t.type){if("string"!=typeof t.text)throw RangeError("Invalid text node in JSON");return e.text(t.text,r)}let n=o.fromJSON(e,t.content),i=e.nodeType(t.type).create(t.attrs,n,r);return i.type.checkAttrs(i.attrs),i}}w.prototype.text=void 0;class O extends w{constructor(e,t,r,n){if(super(e,t,null,n),!r)throw RangeError("Empty text nodes are not allowed");this.text=r}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):L(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return this.text.slice(e,t)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new O(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new O(this.type,this.attrs,e,this.marks)}cut(e=0,t=this.text.length){return 0==e&&t==this.text.length?this:this.withText(this.text.slice(e,t))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function L(e,t){for(let r=e.length-1;r>=0;r--)t=e[r].type.name+"("+t+")";return t}class N{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,t){var r;let n,i=new _(e,t);if(null==i.next)return N.empty;let a=function e(t){let r=[];do r.push(function(t){let r=[];do r.push(function(t){let r=function(t){if(t.eat("(")){let r=e(t);return t.eat(")")||t.err("Missing closing paren"),r}if(/\W/.test(t.next))t.err("Unexpected token '"+t.next+"'");else{let e=(function(e,t){let r=e.nodeTypes,n=r[t];if(n)return[n];let i=[];for(let e in r){let n=r[e];n.isInGroup(t)&&i.push(n)}return 0==i.length&&e.err("No node type or group '"+t+"' found"),i})(t,t.next).map(e=>(null==t.inline?t.inline=e.isInline:t.inline!=e.isInline&&t.err("Mixing inline and block content"),{type:"name",value:e}));return t.pos++,1==e.length?e[0]:{type:"choice",exprs:e}}}(t);for(;;)if(t.eat("+"))r={type:"plus",expr:r};else if(t.eat("*"))r={type:"star",expr:r};else if(t.eat("?"))r={type:"opt",expr:r};else if(t.eat("{"))r=function(e,t){let r=T(e),n=r;return e.eat(",")&&(n="}"!=e.next?T(e):-1),e.eat("}")||e.err("Unclosed braced range"),{type:"range",min:r,max:n,expr:t}}(t,r);else break;return r}(t));while(t.next&&")"!=t.next&&"|"!=t.next)return 1==r.length?r[0]:{type:"seq",exprs:r}}(t));while(t.eat("|"))return 1==r.length?r[0]:{type:"choice",exprs:r}}(i);i.next&&i.err("Unexpected trailing text");let o=(r=function(e){let t=[[]];return i(function e(t,a){if("choice"==t.type)return t.exprs.reduce((t,r)=>t.concat(e(r,a)),[]);if("seq"==t.type)for(let n=0;;n++){let o=e(t.exprs[n],a);if(n==t.exprs.length-1)return o;i(o,a=r())}else if("star"==t.type){let o=r();return n(a,o),i(e(t.expr,o),o),[n(o)]}else if("plus"==t.type){let o=r();return i(e(t.expr,a),o),i(e(t.expr,o),o),[n(o)]}else if("opt"==t.type)return[n(a)].concat(e(t.expr,a));else if("range"==t.type){let o=a;for(let n=0;n<t.min;n++){let n=r();i(e(t.expr,o),n),o=n}if(-1==t.max)i(e(t.expr,o),o);else for(let a=t.min;a<t.max;a++){let a=r();n(o,a),i(e(t.expr,o),a),o=a}return[n(o)]}else if("name"==t.type)return[n(a,void 0,t.value)];else throw Error("Unknown expr type")}(e,0),r()),t;function r(){return t.push([])-1}function n(e,r,n){let i={term:n,to:r};return t[e].push(i),i}function i(e,t){e.forEach(e=>e.to=t)}}(a),n=Object.create(null),function e(t){let i=[];t.forEach(e=>{r[e].forEach(({term:e,to:t})=>{let n;if(e){for(let t=0;t<i.length;t++)i[t][0]==e&&(n=i[t][1]);C(r,t).forEach(t=>{n||i.push([e,n=[]]),-1==n.indexOf(t)&&n.push(t)})}})});let a=n[t.join(",")]=new N(t.indexOf(r.length-1)>-1);for(let t=0;t<i.length;t++){let r=i[t][1].sort(P);a.next.push({type:i[t][0],next:n[r.join(",")]||e(r)})}return a}(C(r,0)));return function(e,t){for(let r=0,n=[e];r<n.length;r++){let e=n[r],i=!e.validEnd,a=[];for(let t=0;t<e.next.length;t++){let{type:r,next:o}=e.next[t];a.push(r.name),i&&!(r.isText||r.hasRequiredAttrs())&&(i=!1),-1==n.indexOf(o)&&n.push(o)}i&&t.err("Only non-generatable nodes ("+a.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}(o,i),o}matchType(e){for(let t=0;t<this.next.length;t++)if(this.next[t].type==e)return this.next[t].next;return null}matchFragment(e,t=0,r=e.childCount){let n=this;for(let i=t;n&&i<r;i++)n=n.matchType(e.child(i).type);return n}get inlineContent(){return 0!=this.next.length&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:t}=this.next[e];if(!(t.isText||t.hasRequiredAttrs()))return t}return null}compatible(e){for(let t=0;t<this.next.length;t++)for(let r=0;r<e.next.length;r++)if(this.next[t].type==e.next[r].type)return!0;return!1}fillBefore(e,t=!1,r=0){let n=[this];return function i(a,s){let l=a.matchFragment(e,r);if(l&&(!t||l.validEnd))return o.from(s.map(e=>e.createAndFill()));for(let e=0;e<a.next.length;e++){let{type:t,next:r}=a.next[e];if(!(t.isText||t.hasRequiredAttrs())&&-1==n.indexOf(r)){n.push(r);let e=i(r,s.concat(t));if(e)return e}}return null}(this,[])}findWrapping(e){for(let t=0;t<this.wrapCache.length;t+=2)if(this.wrapCache[t]==e)return this.wrapCache[t+1];let t=this.computeWrapping(e);return this.wrapCache.push(e,t),t}computeWrapping(e){let t=Object.create(null),r=[{match:this,type:null,via:null}];for(;r.length;){let n=r.shift(),i=n.match;if(i.matchType(e)){let e=[];for(let t=n;t.type;t=t.via)e.push(t.type);return e.reverse()}for(let e=0;e<i.next.length;e++){let{type:a,next:o}=i.next[e];a.isLeaf||a.hasRequiredAttrs()||a.name in t||n.type&&!o.validEnd||(r.push({match:a.contentMatch,type:a,via:n}),t[a.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];return!function t(r){e.push(r);for(let n=0;n<r.next.length;n++)-1==e.indexOf(r.next[n].next)&&t(r.next[n].next)}(this),e.map((t,r)=>{let n=r+(t.validEnd?"*":" ")+" ";for(let r=0;r<t.next.length;r++)n+=(r?", ":"")+t.next[r].type.name+"->"+e.indexOf(t.next[r].next);return n}).join("\n")}}N.empty=new N(!0);class _{constructor(e,t){this.string=e,this.nodeTypes=t,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),""==this.tokens[this.tokens.length-1]&&this.tokens.pop(),""==this.tokens[0]&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw SyntaxError(e+" (in content expression '"+this.string+"')")}}function T(e){/\D/.test(e.next)&&e.err("Expected number, got '"+e.next+"'");let t=Number(e.next);return e.pos++,t}function P(e,t){return t-e}function C(e,t){let r=[];return function t(n){let i=e[n];if(1==i.length&&!i[0].term)return t(i[0].to);r.push(n);for(let e=0;e<i.length;e++){let{term:n,to:a}=i[e];n||-1!=r.indexOf(a)||t(a)}}(t),r.sort(P)}function I(e){let t=Object.create(null);for(let r in e){let n=e[r];if(!n.hasDefault)return null;t[r]=n.default}return t}function k(e,t){let r=Object.create(null);for(let n in e){let i=t&&t[n];if(void 0===i){let t=e[n];if(t.hasDefault)i=t.default;else throw RangeError("No value supplied for attribute "+n)}r[n]=i}return r}function F(e,t,r,n){for(let i in t)if(!(i in e))throw RangeError(`Unsupported attribute ${i} for ${r} of type ${n}`);for(let r in e)e[r].validate&&e[r].validate(t[r])}function X(e,t){let r=Object.create(null);if(t)for(let n in t)r[n]=new W(e,n,t[n]);return r}class U{constructor(e,t,r){this.name=e,this.schema=t,this.spec=r,this.markSet=null,this.groups=r.group?r.group.split(" "):[],this.attrs=X(e,r.attrs),this.defaultAttrs=I(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(r.inline||"text"==e),this.isText="text"==e}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==N.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(e){return this.groups.indexOf(e)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:k(this.attrs,e)}create(e=null,t,r){if(this.isText)throw Error("NodeType.create can't construct text nodes");return new w(this,this.computeAttrs(e),o.from(t),u.setFrom(r))}createChecked(e=null,t,r){return t=o.from(t),this.checkContent(t),new w(this,this.computeAttrs(e),t,u.setFrom(r))}createAndFill(e=null,t,r){if(e=this.computeAttrs(e),(t=o.from(t)).size){let e=this.contentMatch.fillBefore(t);if(!e)return null;t=e.append(t)}let n=this.contentMatch.matchFragment(t),i=n&&n.fillBefore(o.empty,!0);return i?new w(this,e,t.append(i),u.setFrom(r)):null}validContent(e){let t=this.contentMatch.matchFragment(e);if(!t||!t.validEnd)return!1;for(let t=0;t<e.childCount;t++)if(!this.allowsMarks(e.child(t).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}checkAttrs(e){F(this.attrs,e,"node",this.name)}allowsMarkType(e){return null==this.markSet||this.markSet.indexOf(e)>-1}allowsMarks(e){if(null==this.markSet)return!0;for(let t=0;t<e.length;t++)if(!this.allowsMarkType(e[t].type))return!1;return!0}allowedMarks(e){let t;if(null==this.markSet)return e;for(let r=0;r<e.length;r++)this.allowsMarkType(e[r].type)?t&&t.push(e[r]):t||(t=e.slice(0,r));return t?t.length?t:u.none:e}static compile(e,t){let r=Object.create(null);e.forEach((e,n)=>r[e]=new U(e,t,n));let n=t.spec.topNode||"doc";if(!r[n])throw RangeError("Schema is missing its top node type ('"+n+"')");if(!r.text)throw RangeError("Every schema needs a 'text' type");for(let e in r.text.attrs)throw RangeError("The text node type should not have attributes");return r}}class W{constructor(e,t,r){let n;this.hasDefault=Object.prototype.hasOwnProperty.call(r,"default"),this.default=r.default,this.validate="string"==typeof r.validate?(n=r.validate.split("|"),r=>{let i=null===r?"null":typeof r;if(0>n.indexOf(i))throw RangeError(`Expected value of type ${n} for attribute ${t} on type ${e}, got ${i}`)}):r.validate}get isRequired(){return!this.hasDefault}}class V{constructor(e,t,r,n){this.name=e,this.rank=t,this.schema=r,this.spec=n,this.attrs=X(e,n.attrs),this.excluded=null;let i=I(this.attrs);this.instance=i?new u(this,i):null}create(e=null){return!e&&this.instance?this.instance:new u(this,k(this.attrs,e))}static compile(e,t){let r=Object.create(null),n=0;return e.forEach((e,i)=>r[e]=new V(e,n++,t,i)),r}removeFromSet(e){for(var t=0;t<e.length;t++)e[t].type==this&&(e=e.slice(0,t).concat(e.slice(t+1)),t--);return e}isInSet(e){for(let t=0;t<e.length;t++)if(e[t].type==this)return e[t]}checkAttrs(e){F(this.attrs,e,"mark",this.name)}excludes(e){return this.excluded.indexOf(e)>-1}}class E{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let t=this.spec={};for(let r in e)t[r]=e[r];t.nodes=n.from(e.nodes),t.marks=n.from(e.marks||{}),this.nodes=U.compile(this.spec.nodes,this),this.marks=V.compile(this.spec.marks,this);let r=Object.create(null);for(let e in this.nodes){if(e in this.marks)throw RangeError(e+" can not be both a node and a mark");let t=this.nodes[e],n=t.spec.content||"",i=t.spec.marks;if(t.contentMatch=r[n]||(r[n]=N.parse(n,this.nodes)),t.inlineContent=t.contentMatch.inlineContent,t.spec.linebreakReplacement){if(this.linebreakReplacement)throw RangeError("Multiple linebreak nodes defined");if(!t.isInline||!t.isLeaf)throw RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=t}t.markSet="_"==i?null:i?Y(this,i.split(" ")):""!=i&&t.inlineContent?null:[]}for(let e in this.marks){let t=this.marks[e],r=t.spec.excludes;t.excluded=null==r?[t]:""==r?[]:Y(this,r.split(" "))}this.nodeFromJSON=e=>w.fromJSON(this,e),this.markFromJSON=e=>u.fromJSON(this,e),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,t=null,r,n){if("string"==typeof e)e=this.nodeType(e);else if(e instanceof U){if(e.schema!=this)throw RangeError("Node type from different schema used ("+e.name+")")}else throw RangeError("Invalid node type: "+e);return e.createChecked(t,r,n)}text(e,t){let r=this.nodes.text;return new O(r,r.defaultAttrs,e,u.setFrom(t))}mark(e,t){return"string"==typeof e&&(e=this.marks[e]),e.create(t)}nodeType(e){let t=this.nodes[e];if(!t)throw RangeError("Unknown node type: "+e);return t}}function Y(e,t){let r=[];for(let n=0;n<t.length;n++){let i=t[n],a=e.marks[i],o=a;if(a)r.push(a);else for(let t in e.marks){let n=e.marks[t];("_"==i||n.spec.group&&n.spec.group.split(" ").indexOf(i)>-1)&&r.push(o=n)}if(!o)throw SyntaxError("Unknown mark type: '"+t[n]+"'")}return r}class D{constructor(e,t){this.schema=e,this.rules=t,this.tags=[],this.styles=[];let r=this.matchedStyles=[];t.forEach(e=>{if(null!=e.tag)this.tags.push(e);else if(null!=e.style){let t=/[^=]*/.exec(e.style)[0];0>r.indexOf(t)&&r.push(t),this.styles.push(e)}}),this.normalizeLists=!this.tags.some(t=>{if(!/^(ul|ol)\b/.test(t.tag)||!t.node)return!1;let r=e.nodes[t.node];return r.contentMatch.matchType(r)})}parse(e,t={}){let r=new G(this,t,!1);return r.addAll(e,u.none,t.from,t.to),r.finish()}parseSlice(e,t={}){let r=new G(this,t,!0);return r.addAll(e,u.none,t.from,t.to),p.maxOpen(r.finish())}matchTag(e,t,r){for(let a=r?this.tags.indexOf(r)+1:0;a<this.tags.length;a++){var n,i;let r=this.tags[a];if(n=e,i=r.tag,(n.matches||n.msMatchesSelector||n.webkitMatchesSelector||n.mozMatchesSelector).call(n,i)&&(void 0===r.namespace||e.namespaceURI==r.namespace)&&(!r.context||t.matchesContext(r.context))){if(r.getAttrs){let t=r.getAttrs(e);if(!1===t)continue;r.attrs=t||void 0}return r}}}matchStyle(e,t,r,n){for(let i=n?this.styles.indexOf(n)+1:0;i<this.styles.length;i++){let n=this.styles[i],a=n.style;if(0==a.indexOf(e)&&(!n.context||r.matchesContext(n.context))&&(!(a.length>e.length)||61==a.charCodeAt(e.length)&&a.slice(e.length+1)==t)){if(n.getAttrs){let e=n.getAttrs(t);if(!1===e)continue;n.attrs=e||void 0}return n}}}static schemaRules(e){let t=[];function r(e){let r=null==e.priority?50:e.priority,n=0;for(;n<t.length;n++){let e=t[n];if((null==e.priority?50:e.priority)<r)break}t.splice(n,0,e)}for(let t in e.marks){let n=e.marks[t].spec.parseDOM;n&&n.forEach(e=>{r(e=H(e)),e.mark||e.ignore||e.clearMark||(e.mark=t)})}for(let t in e.nodes){let n=e.nodes[t].spec.parseDOM;n&&n.forEach(e=>{r(e=H(e)),e.node||e.ignore||e.mark||(e.node=t)})}return t}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new D(e,D.schemaRules(e)))}}let Q={address:!0,article:!0,aside:!0,blockquote:!0,body:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},$={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},B={ol:!0,ul:!0};function Z(e,t,r){return null!=t?!!t|2*("full"===t):e&&"pre"==e.whitespace?3:-5&r}class K{constructor(e,t,r,n,i,a){this.type=e,this.attrs=t,this.marks=r,this.solid=n,this.options=a,this.content=[],this.activeMarks=u.none,this.match=i||(4&a?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let t=this.type.contentMatch.fillBefore(o.from(e));if(t)this.match=this.type.contentMatch.matchFragment(t);else{let t=this.type.contentMatch,r;return(r=t.findWrapping(e.type))?(this.match=t,r):null}}return this.match.findWrapping(e.type)}finish(e){if(!(1&this.options)){let e=this.content[this.content.length-1],t;e&&e.isText&&(t=/[ \t\r\n\u000c]+$/.exec(e.text))&&(e.text.length==t[0].length?this.content.pop():this.content[this.content.length-1]=e.withText(e.text.slice(0,e.text.length-t[0].length)))}let t=o.from(this.content);return!e&&this.match&&(t=t.append(this.match.fillBefore(o.empty,!0))),this.type?this.type.create(this.attrs,t,this.marks):t}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!Q.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class G{constructor(e,t,r){this.parser=e,this.options=t,this.isOpen=r,this.open=0,this.localPreserveWS=!1;let n=t.topNode,i,a=Z(null,t.preserveWhitespace,0)|4*!!r;i=n?new K(n.type,n.attrs,u.none,!0,t.topMatch||n.type.contentMatch,a):r?new K(null,null,u.none,!0,null,a):new K(e.schema.topNodeType,null,u.none,!0,null,a),this.nodes=[i],this.find=t.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e,t){3==e.nodeType?this.addTextNode(e,t):1==e.nodeType&&this.addElement(e,t)}addTextNode(e,t){let r=e.nodeValue,n=this.top,i=2&n.options?"full":this.localPreserveWS||(1&n.options)>0,{schema:a}=this.parser;if("full"===i||n.inlineContext(e)||/[^ \t\r\n\u000c]/.test(r)){if(i)if("full"===i)r=r.replace(/\r\n?/g,"\n");else if(a.linebreakReplacement&&/[\r\n]/.test(r)&&this.top.findWrapping(a.linebreakReplacement.create())){let e=r.split(/\r?\n|\r/);for(let r=0;r<e.length;r++)r&&this.insertNode(a.linebreakReplacement.create(),t,!0),e[r]&&this.insertNode(a.text(e[r]),t,!/\S/.test(e[r]));r=""}else r=r.replace(/\r?\n|\r/g," ");else if(r=r.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(r)&&this.open==this.nodes.length-1){let t=n.content[n.content.length-1],i=e.previousSibling;(!t||i&&"BR"==i.nodeName||t.isText&&/[ \t\r\n\u000c]$/.test(t.text))&&(r=r.slice(1))}r&&this.insertNode(a.text(r),t,!/\S/.test(r)),this.findInText(e)}else this.findInside(e)}addElement(e,t,r){let n=this.localPreserveWS,i=this.top;("PRE"==e.tagName||/pre/.test(e.style&&e.style.whiteSpace))&&(this.localPreserveWS=!0);let a=e.nodeName.toLowerCase(),o;B.hasOwnProperty(a)&&this.parser.normalizeLists&&function(e){for(let t=e.firstChild,r=null;t;t=t.nextSibling){let e=1==t.nodeType?t.nodeName.toLowerCase():null;e&&B.hasOwnProperty(e)&&r?(r.appendChild(t),t=r):"li"==e?r=t:e&&(r=null)}}(e);let s=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(o=this.parser.matchTag(e,this,r));o:if(s?s.ignore:$.hasOwnProperty(a))this.findInside(e),this.ignoreFallback(e,t);else if(!s||s.skip||s.closeParent){s&&s.closeParent?this.open=Math.max(0,this.open-1):s&&s.skip.nodeType&&(e=s.skip);let r,n=this.needsBlock;if(Q.hasOwnProperty(a))i.content.length&&i.content[0].isInline&&this.open&&(this.open--,i=this.top),r=!0,i.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e,t);break o}let o=s&&s.skip?t:this.readStyles(e,t);o&&this.addAll(e,o),r&&this.sync(i),this.needsBlock=n}else{let r=this.readStyles(e,t);r&&this.addElementByRule(e,s,r,!1===s.consuming?o:void 0)}this.localPreserveWS=n}leafFallback(e,t){"BR"==e.nodeName&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode("\n"),t)}ignoreFallback(e,t){"BR"!=e.nodeName||this.top.type&&this.top.type.inlineContent||this.findPlace(this.parser.schema.text("-"),t,!0)}readStyles(e,t){let r=e.style;if(r&&r.length)for(let e=0;e<this.parser.matchedStyles.length;e++){let n=this.parser.matchedStyles[e],i=r.getPropertyValue(n);if(i)for(let e;;){let r=this.parser.matchStyle(n,i,this,e);if(!r)break;if(r.ignore)return null;if(t=r.clearMark?t.filter(e=>!r.clearMark(e)):t.concat(this.parser.schema.marks[r.mark].create(r.attrs)),!1===r.consuming)e=r;else break}}return t}addElementByRule(e,t,r,n){let i,a;if(t.node)if((a=this.parser.schema.nodes[t.node]).isLeaf)this.insertNode(a.create(t.attrs),r,"BR"==e.nodeName)||this.leafFallback(e,r);else{let e=this.enter(a,t.attrs||null,r,t.preserveWhitespace);e&&(i=!0,r=e)}else{let e=this.parser.schema.marks[t.mark];r=r.concat(e.create(t.attrs))}let o=this.top;if(a&&a.isLeaf)this.findInside(e);else if(n)this.addElement(e,r,n);else if(t.getContent)this.findInside(e),t.getContent(e,this.parser.schema).forEach(e=>this.insertNode(e,r,!1));else{let n=e;"string"==typeof t.contentElement?n=e.querySelector(t.contentElement):"function"==typeof t.contentElement?n=t.contentElement(e):t.contentElement&&(n=t.contentElement),this.findAround(e,n,!0),this.addAll(n,r),this.findAround(e,n,!1)}i&&this.sync(o)&&this.open--}addAll(e,t,r,n){let i=r||0;for(let a=r?e.childNodes[r]:e.firstChild,o=null==n?null:e.childNodes[n];a!=o;a=a.nextSibling,++i)this.findAtPoint(e,i),this.addDOM(a,t);this.findAtPoint(e,i)}findPlace(e,t,r){let n,i;for(let t=this.open,a=0;t>=0;t--){let o=this.nodes[t],s=o.findWrapping(e);if(s&&(!n||n.length>s.length+a)&&(n=s,i=o,!s.length))break;if(o.solid){if(r)break;a+=2}}if(!n)return null;this.sync(i);for(let e=0;e<n.length;e++)t=this.enterInner(n[e],null,t,!1);return t}insertNode(e,t,r){if(e.isInline&&this.needsBlock&&!this.top.type){let e=this.textblockFromContext();e&&(t=this.enterInner(e,null,t))}let n=this.findPlace(e,t,r);if(n){this.closeExtra();let t=this.top;t.match&&(t.match=t.match.matchType(e.type));let r=u.none;for(let i of n.concat(e.marks))(t.type?t.type.allowsMarkType(i.type):z(i.type,e.type))&&(r=i.addToSet(r));return t.content.push(e.mark(r)),!0}return!1}enter(e,t,r,n){let i=this.findPlace(e.create(t),r,!1);return i&&(i=this.enterInner(e,t,r,!0,n)),i}enterInner(e,t,r,n=!1,i){this.closeExtra();let a=this.top;a.match=a.match&&a.match.matchType(e);let o=Z(e,i,a.options);4&a.options&&0==a.content.length&&(o|=4);let s=u.none;return r=r.filter(t=>(a.type?!a.type.allowsMarkType(t.type):!z(t.type,e))||(s=t.addToSet(s),!1)),this.nodes.push(new K(e,t,s,n,null,o)),this.open++,r}closeExtra(e=!1){let t=this.nodes.length-1;if(t>this.open){for(;t>this.open;t--)this.nodes[t-1].content.push(this.nodes[t].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!!(this.isOpen||this.options.topOpen))}sync(e){for(let t=this.open;t>=0;t--)if(this.nodes[t]==e)return this.open=t,!0;else this.localPreserveWS&&(this.nodes[t].options|=1);return!1}get currentPos(){this.closeExtra();let e=0;for(let t=this.open;t>=0;t--){let r=this.nodes[t].content;for(let t=r.length-1;t>=0;t--)e+=r[t].nodeSize;t&&e++}return e}findAtPoint(e,t){if(this.find)for(let r=0;r<this.find.length;r++)this.find[r].node==e&&this.find[r].offset==t&&(this.find[r].pos=this.currentPos)}findInside(e){if(this.find)for(let t=0;t<this.find.length;t++)null==this.find[t].pos&&1==e.nodeType&&e.contains(this.find[t].node)&&(this.find[t].pos=this.currentPos)}findAround(e,t,r){if(e!=t&&this.find)for(let n=0;n<this.find.length;n++)null==this.find[n].pos&&1==e.nodeType&&e.contains(this.find[n].node)&&t.compareDocumentPosition(this.find[n].node)&(r?2:4)&&(this.find[n].pos=this.currentPos)}findInText(e){if(this.find)for(let t=0;t<this.find.length;t++)this.find[t].node==e&&(this.find[t].pos=this.currentPos-(e.nodeValue.length-this.find[t].offset))}matchesContext(e){if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let t=e.split("/"),r=this.options.context,n=!this.isOpen&&(!r||r.parent.type==this.nodes[0].type),i=-(r?r.depth+1:0)+ +!n,a=(e,o)=>{for(;e>=0;e--){let s=t[e];if(""==s){if(e==t.length-1||0==e)continue;for(;o>=i;o--)if(a(e-1,o))return!0;return!1}{let e=o>0||0==o&&n?this.nodes[o].type:r&&o>=i?r.node(o-i).type:null;if(!e||e.name!=s&&!e.isInGroup(s))return!1;o--}}return!0};return a(t.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let t=e.depth;t>=0;t--){let r=e.node(t).contentMatchAt(e.indexAfter(t)).defaultType;if(r&&r.isTextblock&&r.defaultAttrs)return r}for(let e in this.parser.schema.nodes){let t=this.parser.schema.nodes[e];if(t.isTextblock&&t.defaultAttrs)return t}}}function H(e){let t={};for(let r in e)t[r]=e[r];return t}function z(e,t){let r=t.schema.nodes;for(let n in r){let i=r[n];if(!i.allowsMarkType(e))continue;let a=[],o=e=>{a.push(e);for(let r=0;r<e.edgeCount;r++){let{type:n,next:i}=e.edge(r);if(n==t||0>a.indexOf(i)&&o(i))return!0}};if(o(i.contentMatch))return!0}}class J{constructor(e,t){this.nodes=e,this.marks=t}serializeFragment(e,t={},r){r||(r=q(t).createDocumentFragment());let n=r,i=[];return e.forEach(e=>{if(i.length||e.marks.length){let r=0,a=0;for(;r<i.length&&a<e.marks.length;){let t=e.marks[a];if(!this.marks[t.type.name]){a++;continue}if(!t.eq(i[r][0])||!1===t.type.spec.spanning)break;r++,a++}for(;r<i.length;)n=i.pop()[1];for(;a<e.marks.length;){let r=e.marks[a++],o=this.serializeMark(r,e.isInline,t);o&&(i.push([r,n]),n.appendChild(o.dom),n=o.contentDOM||o.dom)}}n.appendChild(this.serializeNodeInner(e,t))}),r}serializeNodeInner(e,t){if(e.isText)return q(t).createTextNode(e.text);let{dom:r,contentDOM:n}=et(q(t),this.nodes[e.type.name](e),null,e.attrs);if(n){if(e.isLeaf)throw RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(e.content,t,n)}return r}serializeNode(e,t={}){let r=this.serializeNodeInner(e,t);for(let n=e.marks.length-1;n>=0;n--){let i=this.serializeMark(e.marks[n],e.isInline,t);i&&((i.contentDOM||i.dom).appendChild(r),r=i.dom)}return r}serializeMark(e,t,r={}){let n=this.marks[e.type.name];return n&&et(q(r),n(e,t),null,e.attrs)}static renderSpec(e,t,r=null,n){return"string"==typeof t?{dom:e.createTextNode(t)}:et(e,t,r,n)}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new J(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let t=j(e.nodes);return t.text||(t.text=e=>e.text),t}static marksFromSchema(e){return j(e.marks)}}function j(e){let t={};for(let r in e){let n=e[r].spec.toDOM;n&&(t[r]=n)}return t}function q(e){return e.document||window.document}let ee=new WeakMap;function et(e,t,r,n){let i,a,o;if(1==t.nodeType)return{dom:t};if(t.dom&&1==t.dom.nodeType)return t;let s=t[0],l;if("string"!=typeof s)throw RangeError("Invalid array passed to renderSpec");if(n&&(void 0===(a=ee.get(n))&&ee.set(n,(o=null,!function e(t){if(t&&"object"==typeof t)if(Array.isArray(t))if("string"==typeof t[0])o||(o=[]),o.push(t);else for(let r=0;r<t.length;r++)e(t[r]);else for(let r in t)e(t[r])}(n),a=o)),l=a)&&l.indexOf(t)>-1)throw RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");let c=s.indexOf(" ");c>0&&(r=s.slice(0,c),s=s.slice(c+1));let u=r?e.createElementNS(r,s):e.createElement(s),h=t[1],p=1;if(h&&"object"==typeof h&&null==h.nodeType&&!Array.isArray(h)){for(let e in p=2,h)if(null!=h[e]){let t=e.indexOf(" ");t>0?u.setAttributeNS(e.slice(0,t),e.slice(t+1),h[e]):"style"==e&&u.style?u.style.cssText=h[e]:u.setAttribute(e,h[e])}}for(let a=p;a<t.length;a++){let o=t[a];if(0===o){if(a<t.length-1||a>p)throw RangeError("Content hole must be the only child of its parent node");return{dom:u,contentDOM:u}}if("string"==typeof o)u.appendChild(e.createTextNode(o));else{let{dom:t,contentDOM:a}=et(e,o,r,n);if(u.appendChild(t),a){if(i)throw RangeError("Multiple content holes");i=a}}}return{dom:u,contentDOM:i}}},57644(e,t,r){var n=r(96294);let i=["p",0],a=["blockquote",0],o=["hr"],s=["pre",["code",0]],l=["br"],c={doc:{content:"block+"},paragraph:{content:"inline*",group:"block",parseDOM:[{tag:"p"}],toDOM:()=>i},blockquote:{content:"block+",group:"block",defining:!0,parseDOM:[{tag:"blockquote"}],toDOM:()=>a},horizontal_rule:{group:"block",parseDOM:[{tag:"hr"}],toDOM:()=>o},heading:{attrs:{level:{default:1,validate:"number"}},content:"inline*",group:"block",defining:!0,parseDOM:[{tag:"h1",attrs:{level:1}},{tag:"h2",attrs:{level:2}},{tag:"h3",attrs:{level:3}},{tag:"h4",attrs:{level:4}},{tag:"h5",attrs:{level:5}},{tag:"h6",attrs:{level:6}}],toDOM:e=>["h"+e.attrs.level,0]},code_block:{content:"text*",marks:"",group:"block",code:!0,defining:!0,parseDOM:[{tag:"pre",preserveWhitespace:"full"}],toDOM:()=>s},text:{group:"inline"},image:{inline:!0,attrs:{src:{validate:"string"},alt:{default:null,validate:"string|null"},title:{default:null,validate:"string|null"}},group:"inline",draggable:!0,parseDOM:[{tag:"img[src]",getAttrs:e=>({src:e.getAttribute("src"),title:e.getAttribute("title"),alt:e.getAttribute("alt")})}],toDOM(e){let{src:t,alt:r,title:n}=e.attrs;return["img",{src:t,alt:r,title:n}]}},hard_break:{inline:!0,group:"inline",selectable:!1,parseDOM:[{tag:"br"}],toDOM:()=>l}},u=["em",0],h=["strong",0],p=["code",0],d={link:{attrs:{href:{validate:"string"},title:{default:null,validate:"string|null"}},inclusive:!1,parseDOM:[{tag:"a[href]",getAttrs:e=>({href:e.getAttribute("href"),title:e.getAttribute("title")})}],toDOM(e){let{href:t,title:r}=e.attrs;return["a",{href:t,title:r},0]}},em:{parseDOM:[{tag:"i"},{tag:"em"},{style:"font-style=italic"},{style:"font-style=normal",clearMark:e=>"em"==e.type.name}],toDOM:()=>u},strong:{parseDOM:[{tag:"strong"},{tag:"b",getAttrs:e=>"normal"!=e.style.fontWeight&&null},{style:"font-weight=400",clearMark:e=>"strong"==e.type.name},{style:"font-weight",getAttrs:e=>/^(bold(er)?|[5-9]\d{2,})$/.test(e)&&null}],toDOM:()=>h},code:{code:!0,parseDOM:[{tag:"code"}],toDOM:()=>p}};new n.Sj({nodes:c,marks:d}),r.d(t,{},{Z8:d,a9:c})},3772(e,t,r){var n=r(38262),i=r(96294),a=r(42845);let o=["li",0];function s(e,t=null){return function(r,a){let{$from:o,$to:s}=r.selection,l=o.blockRange(s);if(!l)return!1;let c=a?r.tr:null;return!!function(e,t,r,a=null){let o=!1,s=t,l=t.$from.doc;if(t.depth>=2&&t.$from.node(t.depth-1).type.compatibleContent(r)&&0==t.startIndex){if(0==t.$from.index(t.depth-1))return!1;let e=l.resolve(t.start-2);s=new i.u$(e,e,t.depth),t.endIndex<t.parent.childCount&&(t=new i.u$(t.$from,l.resolve(t.$to.end(t.depth)),t.depth)),o=!0}let c=(0,n.oM)(s,r,a,t);return!!c&&(e&&function(e,t,r,a,o){let s=i.FK.empty;for(let e=r.length-1;e>=0;e--)s=i.FK.from(r[e].type.create(r[e].attrs,s));e.step(new n.Wg(t.start-2*!!a,t.end,t.start,t.end,new i.Ji(s,0,0),r.length,!0));let l=0;for(let e=0;e<r.length;e++)r[e].type==o&&(l=e+1);let c=r.length-l,u=t.start+r.length-2*!!a,h=t.parent;for(let r=t.startIndex,i=t.endIndex,a=!0;r<i;r++,a=!1)!a&&(0,n.zy)(e.doc,u,c)&&(e.split(u,c),u+=2*c),u+=h.child(r).nodeSize}(e,t,c,o,r),!0)}(c,l,e,t)&&(a&&a(c.scrollIntoView()),!0)}}function l(e,t){return function(r,o){let{$from:s,$to:l,node:c}=r.selection;if(c&&c.isBlock||s.depth<2||!s.sameParent(l))return!1;let u=s.node(-1);if(u.type!=e)return!1;if(0==s.parent.content.size&&s.node(-1).childCount==s.indexAfter(-1)){if(3==s.depth||s.node(-3).type!=e||s.index(-2)!=s.node(-2).childCount-1)return!1;if(o){let t=i.FK.empty,n=s.index(-1)?1:s.index(-2)?2:3;for(let e=s.depth-n;e>=s.depth-3;e--)t=i.FK.from(s.node(e).copy(t));let l=s.indexAfter(-1)<s.node(-2).childCount?1:s.indexAfter(-2)<s.node(-3).childCount?2:3;t=t.append(i.FK.from(e.createAndFill()));let c=s.before(s.depth-(n-1)),u=r.tr.replace(c,s.after(-l),new i.Ji(t,4-n,0)),h=-1;u.doc.nodesBetween(c,u.doc.content.size,(e,t)=>{if(h>-1)return!1;e.isTextblock&&0==e.content.size&&(h=t+1)}),h>-1&&u.setSelection(a.LN.near(u.doc.resolve(h))),o(u.scrollIntoView())}return!0}let h=l.pos==s.end()?u.contentMatchAt(0).defaultType:null,p=r.tr.delete(s.pos,l.pos),d=h?[t?{type:e,attrs:t}:null,{type:h}]:void 0;return!!(0,n.zy)(p.doc,s.pos,2,d)&&(o&&o(p.split(s.pos,2,d).scrollIntoView()),!0)}}function c(e){return function(t,r){let{$from:a,$to:o}=t.selection,s=a.blockRange(o,t=>t.childCount>0&&t.firstChild.type==e);return!!s&&(!r||(a.node(s.depth-1).type==e?function(e,t,r,a){let o=e.tr,s=a.end,l=a.$to.end(a.depth);s<l&&(o.step(new n.Wg(s-1,l,s,l,new i.Ji(i.FK.from(r.create(null,a.parent.copy())),1,0),1,!0)),a=new i.u$(o.doc.resolve(a.$from.pos),o.doc.resolve(l),a.depth));let c=(0,n.jP)(a);if(null==c)return!1;o.lift(a,c);let u=o.doc.resolve(o.mapping.map(s,-1)-1);return(0,n.n9)(o.doc,u.pos)&&u.nodeBefore.type==u.nodeAfter.type&&o.join(u.pos),t(o.scrollIntoView()),!0}(t,r,e,s):function(e,t,r){let a=e.tr,o=r.parent;for(let e=r.end,t=r.endIndex-1,n=r.startIndex;t>n;t--)e-=o.child(t).nodeSize,a.delete(e-1,e+1);let s=a.doc.resolve(r.start),l=s.nodeAfter;if(a.mapping.map(r.end)!=r.start+s.nodeAfter.nodeSize)return!1;let c=0==r.startIndex,u=r.endIndex==o.childCount,h=s.node(-1),p=s.index(-1);if(!h.canReplace(p+ +!c,p+1,l.content.append(u?i.FK.empty:i.FK.from(o))))return!1;let d=s.pos,f=d+l.nodeSize;return a.step(new n.Wg(d-!!c,f+ +!!u,d+1,f-1,new i.Ji((c?i.FK.empty:i.FK.from(o.copy(i.FK.empty))).append(u?i.FK.empty:i.FK.from(o.copy(i.FK.empty))),+!c,+!u),+!c)),t(a.scrollIntoView()),!0}(t,r,s)))}}function u(e){return function(t,r){let{$from:a,$to:o}=t.selection,s=a.blockRange(o,t=>t.childCount>0&&t.firstChild.type==e);if(!s)return!1;let l=s.startIndex;if(0==l)return!1;let c=s.parent,u=c.child(l-1);if(u.type!=e)return!1;if(r){let a=u.lastChild&&u.lastChild.type==c.type,o=i.FK.from(a?e.create():null),l=new i.Ji(i.FK.from(e.create(null,i.FK.from(c.type.create(null,o)))),a?3:1,0),h=s.start,p=s.end;r(t.tr.step(new n.Wg(h-(a?3:1),p,h,p,l,1,!0)).scrollIntoView())}return!0}}r.d(t,{$B:()=>u,Sd:()=>s,T2:()=>c,wn:()=>l},{Aw:{parseDOM:[{tag:"li"}],toDOM:()=>o,defining:!0}})},42845(e,t,r){var n=r(96294),i=r(38262);let a=Object.create(null);class o{constructor(e,t,r){this.$anchor=e,this.$head=t,this.ranges=r||[new s(e.min(t),e.max(t))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let e=this.ranges;for(let t=0;t<e.length;t++)if(e[t].$from.pos!=e[t].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(e,t=n.Ji.empty){let r=t.content.lastChild,i=null;for(let e=0;e<t.openEnd;e++)i=r,r=r.lastChild;let a=e.steps.length,o=this.ranges;for(let s=0;s<o.length;s++){let{$from:l,$to:c}=o[s],u=e.mapping.slice(a);e.replaceRange(u.map(l.pos),u.map(c.pos),s?n.Ji.empty:t),0==s&&A(e,a,(r?r.isInline:i&&i.isTextblock)?-1:1)}}replaceWith(e,t){let r=e.steps.length,n=this.ranges;for(let i=0;i<n.length;i++){let{$from:a,$to:o}=n[i],s=e.mapping.slice(r),l=s.map(a.pos),c=s.map(o.pos);i?e.deleteRange(l,c):(e.replaceRangeWith(l,c,t),A(e,r,t.isInline?-1:1))}}static findFrom(e,t,r=!1){let n=e.parent.inlineContent?new u(e):g(e.node(0),e.parent,e.pos,e.index(),t,r);if(n)return n;for(let n=e.depth-1;n>=0;n--){let i=t<0?g(e.node(0),e.node(n),e.before(n+1),e.index(n),t,r):g(e.node(0),e.node(n),e.after(n+1),e.index(n)+1,t,r);if(i)return i}return null}static near(e,t=1){return this.findFrom(e,t)||this.findFrom(e,-t)||new f(e.node(0))}static atStart(e){return g(e,e,0,0,1)||new f(e)}static atEnd(e){return g(e,e,e.content.size,e.childCount,-1)||new f(e)}static fromJSON(e,t){if(!t||!t.type)throw RangeError("Invalid input for Selection.fromJSON");let r=a[t.type];if(!r)throw RangeError(`No selection type ${t.type} defined`);return r.fromJSON(e,t)}static jsonID(e,t){if(e in a)throw RangeError("Duplicate use of selection JSON ID "+e);return a[e]=t,t.prototype.jsonID=e,t}getBookmark(){return u.between(this.$anchor,this.$head).getBookmark()}}o.prototype.visible=!0;class s{constructor(e,t){this.$from=e,this.$to=t}}let l=!1;function c(e){l||e.parent.inlineContent||(l=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+e.parent.type.name+")"))}class u extends o{constructor(e,t=e){c(e),c(t),super(e,t)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(e,t){let r=e.resolve(t.map(this.head));if(!r.parent.inlineContent)return o.near(r);let n=e.resolve(t.map(this.anchor));return new u(n.parent.inlineContent?n:r,r)}replace(e,t=n.Ji.empty){if(super.replace(e,t),t==n.Ji.empty){let t=this.$from.marksAcross(this.$to);t&&e.ensureMarks(t)}}eq(e){return e instanceof u&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new h(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(e,t){if("number"!=typeof t.anchor||"number"!=typeof t.head)throw RangeError("Invalid input for TextSelection.fromJSON");return new u(e.resolve(t.anchor),e.resolve(t.head))}static create(e,t,r=t){let n=e.resolve(t);return new this(n,r==t?n:e.resolve(r))}static between(e,t,r){let n=e.pos-t.pos;if((!r||n)&&(r=n>=0?1:-1),!t.parent.inlineContent){let e=o.findFrom(t,r,!0)||o.findFrom(t,-r,!0);if(!e)return o.near(t,r);t=e.$head}return e.parent.inlineContent||(0==n?e=t:(e=(o.findFrom(e,-r,!0)||o.findFrom(e,r,!0)).$anchor).pos<t.pos!=n<0&&(e=t)),new u(e,t)}}o.jsonID("text",u);class h{constructor(e,t){this.anchor=e,this.head=t}map(e){return new h(e.map(this.anchor),e.map(this.head))}resolve(e){return u.between(e.resolve(this.anchor),e.resolve(this.head))}}class p extends o{constructor(e){let t=e.nodeAfter,r=e.node(0).resolve(e.pos+t.nodeSize);super(e,r),this.node=t}map(e,t){let{deleted:r,pos:n}=t.mapResult(this.anchor),i=e.resolve(n);return r?o.near(i):new p(i)}content(){return new n.Ji(n.FK.from(this.node),0,0)}eq(e){return e instanceof p&&e.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new d(this.anchor)}static fromJSON(e,t){if("number"!=typeof t.anchor)throw RangeError("Invalid input for NodeSelection.fromJSON");return new p(e.resolve(t.anchor))}static create(e,t){return new p(e.resolve(t))}static isSelectable(e){return!e.isText&&!1!==e.type.spec.selectable}}p.prototype.visible=!1,o.jsonID("node",p);class d{constructor(e){this.anchor=e}map(e){let{deleted:t,pos:r}=e.mapResult(this.anchor);return t?new h(r,r):new d(r)}resolve(e){let t=e.resolve(this.anchor),r=t.nodeAfter;return r&&p.isSelectable(r)?new p(t):o.near(t)}}class f extends o{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,t=n.Ji.empty){if(t==n.Ji.empty){e.delete(0,e.doc.content.size);let t=o.atStart(e.doc);t.eq(e.selection)||e.setSelection(t)}else super.replace(e,t)}toJSON(){return{type:"all"}}static fromJSON(e){return new f(e)}map(e){return new f(e)}eq(e){return e instanceof f}getBookmark(){return m}}o.jsonID("all",f);let m={map(){return this},resolve:e=>new f(e)};function g(e,t,r,n,i,a=!1){if(t.inlineContent)return u.create(e,r);for(let o=n-(i>0?0:1);i>0?o<t.childCount:o>=0;o+=i){let n=t.child(o);if(n.isAtom){if(!a&&p.isSelectable(n))return p.create(e,r-(i<0?n.nodeSize:0))}else{let t=g(e,n,r+i,i<0?n.childCount:0,i,a);if(t)return t}r+=n.nodeSize*i}return null}function A(e,t,r){let n,a=e.steps.length-1;if(a<t)return;let s=e.steps[a];(s instanceof i.Ln||s instanceof i.Wg)&&(e.mapping.maps[a].forEach((e,t,r,i)=>{null==n&&(n=i)}),e.setSelection(o.near(e.doc.resolve(n),r)))}class y extends i.dL{constructor(e){super(e.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=e.selection,this.storedMarks=e.storedMarks}get selection(){return this.curSelectionFor<this.steps.length&&(this.curSelection=this.curSelection.map(this.doc,this.mapping.slice(this.curSelectionFor)),this.curSelectionFor=this.steps.length),this.curSelection}setSelection(e){if(e.$from.doc!=this.doc)throw RangeError("Selection passed to setSelection must point at the current document");return this.curSelection=e,this.curSelectionFor=this.steps.length,this.updated=(1|this.updated)&-3,this.storedMarks=null,this}get selectionSet(){return(1&this.updated)>0}setStoredMarks(e){return this.storedMarks=e,this.updated|=2,this}ensureMarks(e){return n.CU.sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this}addStoredMark(e){return this.ensureMarks(e.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(e){return this.ensureMarks(e.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(2&this.updated)>0}addStep(e,t){super.addStep(e,t),this.updated=-3&this.updated,this.storedMarks=null}setTime(e){return this.time=e,this}replaceSelection(e){return this.selection.replace(this,e),this}replaceSelectionWith(e,t=!0){let r=this.selection;return t&&(e=e.mark(this.storedMarks||(r.empty?r.$from.marks():r.$from.marksAcross(r.$to)||n.CU.none))),r.replaceWith(this,e),this}deleteSelection(){return this.selection.replace(this),this}insertText(e,t,r){let n=this.doc.type.schema;if(null==t)return e?this.replaceSelectionWith(n.text(e),!0):this.deleteSelection();{if(null==r&&(r=t),!e)return this.deleteRange(t,r);let i=this.storedMarks;if(!i){let e=this.doc.resolve(t);i=r==t?e.marks():e.marksAcross(this.doc.resolve(r))}return this.replaceRangeWith(t,r,n.text(e,i)),this.selection.empty||this.selection.to!=t+e.length||this.setSelection(o.near(this.selection.$to)),this}}setMeta(e,t){return this.meta["string"==typeof e?e:e.key]=t,this}getMeta(e){return this.meta["string"==typeof e?e:e.key]}get isGeneric(){for(let e in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=4,this}get scrolledIntoView(){return(4&this.updated)>0}}function v(e,t){return t&&e?e.bind(t):e}class R{constructor(e,t,r){this.name=e,this.init=v(t.init,r),this.apply=v(t.apply,r)}}let b=[new R("doc",{init:e=>e.doc||e.schema.topNodeType.createAndFill(),apply:e=>e.doc}),new R("selection",{init:(e,t)=>e.selection||o.atStart(t.doc),apply:e=>e.selection}),new R("storedMarks",{init:e=>e.storedMarks||null,apply:(e,t,r,n)=>n.selection.$cursor?e.storedMarks:null}),new R("scrollToSelection",{init:()=>0,apply:(e,t)=>e.scrolledIntoView?t+1:t})];class x{constructor(e,t){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=b.slice(),t&&t.forEach(e=>{if(this.pluginsByKey[e.key])throw RangeError("Adding different instances of a keyed plugin ("+e.key+")");this.plugins.push(e),this.pluginsByKey[e.key]=e,e.spec.state&&this.fields.push(new R(e.key,e.spec.state,e))})}}class M{constructor(e){this.config=e}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(e){return this.applyTransaction(e).state}filterTransaction(e,t=-1){for(let r=0;r<this.config.plugins.length;r++)if(r!=t){let t=this.config.plugins[r];if(t.spec.filterTransaction&&!t.spec.filterTransaction.call(t,e,this))return!1}return!0}applyTransaction(e){if(!this.filterTransaction(e))return{state:this,transactions:[]};let t=[e],r=this.applyInner(e),n=null;for(;;){let i=!1;for(let a=0;a<this.config.plugins.length;a++){let o=this.config.plugins[a];if(o.spec.appendTransaction){let s=n?n[a].n:0,l=n?n[a].state:this,c=s<t.length&&o.spec.appendTransaction.call(o,s?t.slice(s):t,l,r);if(c&&r.filterTransaction(c,a)){if(c.setMeta("appendedTransaction",e),!n){n=[];for(let e=0;e<this.config.plugins.length;e++)n.push(e<a?{state:r,n:t.length}:{state:this,n:0})}t.push(c),r=r.applyInner(c),i=!0}n&&(n[a]={state:r,n:t.length})}}if(!i)return{state:r,transactions:t}}}applyInner(e){if(!e.before.eq(this.doc))throw RangeError("Applying a mismatched transaction");let t=new M(this.config),r=this.config.fields;for(let n=0;n<r.length;n++){let i=r[n];t[i.name]=i.apply(e,this[i.name],this,t)}return t}get tr(){return new y(this)}static create(e){let t=new x(e.doc?e.doc.type.schema:e.schema,e.plugins),r=new M(t);for(let n=0;n<t.fields.length;n++)r[t.fields[n].name]=t.fields[n].init(e,r);return r}reconfigure(e){let t=new x(this.schema,e.plugins),r=t.fields,n=new M(t);for(let t=0;t<r.length;t++){let i=r[t].name;n[i]=this.hasOwnProperty(i)?this[i]:r[t].init(e,n)}return n}toJSON(e){let t={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(t.storedMarks=this.storedMarks.map(e=>e.toJSON())),e&&"object"==typeof e)for(let r in e){if("doc"==r||"selection"==r)throw RangeError("The JSON fields `doc` and `selection` are reserved");let n=e[r],i=n.spec.state;i&&i.toJSON&&(t[r]=i.toJSON.call(n,this[n.key]))}return t}static fromJSON(e,t,r){if(!t)throw RangeError("Invalid input for EditorState.fromJSON");if(!e.schema)throw RangeError("Required config field 'schema' missing");let i=new x(e.schema,e.plugins),a=new M(i);return i.fields.forEach(i=>{if("doc"==i.name)a.doc=n.bP.fromJSON(e.schema,t.doc);else if("selection"==i.name)a.selection=o.fromJSON(a.doc,t.selection);else if("storedMarks"==i.name)t.storedMarks&&(a.storedMarks=t.storedMarks.map(e.schema.markFromJSON));else{if(r)for(let n in r){let o=r[n],s=o.spec.state;if(o.key==i.name&&s&&s.fromJSON&&Object.prototype.hasOwnProperty.call(t,n)){a[i.name]=s.fromJSON.call(o,e,t[n],a);return}}a[i.name]=i.init(e,a)}}),a}}class S{constructor(e){this.spec=e,this.props={},e.props&&function e(t,r,n){for(let i in t){let a=t[i];a instanceof Function?a=a.bind(r):"handleDOMEvents"==i&&(a=e(a,r,{})),n[i]=a}return n}(e.props,this,this.props),this.key=e.key?e.key.key:O("plugin")}getState(e){return e[this.key]}}let w=Object.create(null);function O(e){return e in w?e+"$"+ ++w[e]:(w[e]=0,e+"$")}class L{constructor(e="key"){this.key=O(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}r.d(t,{$t:()=>M,LN:()=>o,U3:()=>u,hs:()=>L,i5:()=>f,k_:()=>S,nh:()=>p,yn:()=>s})},38262(e,t,r){var n=r(96294);class i{constructor(e,t,r){this.pos=e,this.delInfo=t,this.recover=r}get deleted(){return(8&this.delInfo)>0}get deletedBefore(){return(5&this.delInfo)>0}get deletedAfter(){return(6&this.delInfo)>0}get deletedAcross(){return(4&this.delInfo)>0}}class a{constructor(e,t=!1){if(this.ranges=e,this.inverted=t,!e.length&&a.empty)return a.empty}recover(e){let t=0,r=65535&e;if(!this.inverted)for(let e=0;e<r;e++)t+=this.ranges[3*e+2]-this.ranges[3*e+1];return this.ranges[3*r]+t+(e-(65535&e))/65536}mapResult(e,t=1){return this._map(e,t,!1)}map(e,t=1){return this._map(e,t,!0)}_map(e,t,r){let n=0,a=this.inverted?2:1,o=this.inverted?1:2;for(let s=0;s<this.ranges.length;s+=3){let l=this.ranges[s]-(this.inverted?n:0);if(l>e)break;let c=this.ranges[s+a],u=this.ranges[s+o],h=l+c;if(e<=h){let a=c?e==l?-1:e==h?1:t:t,o=l+n+(a<0?0:u);if(r)return o;let p=e==(t<0?l:h)?null:s/3+(e-l)*65536,d=e==l?2:e==h?1:4;return(t<0?e!=l:e!=h)&&(d|=8),new i(o,d,p)}n+=u-c}return r?e+n:new i(e+n,0,null)}touches(e,t){let r=0,n=65535&t,i=this.inverted?2:1,a=this.inverted?1:2;for(let t=0;t<this.ranges.length;t+=3){let o=this.ranges[t]-(this.inverted?r:0);if(o>e)break;let s=this.ranges[t+i];if(e<=o+s&&t==3*n)return!0;r+=this.ranges[t+a]-s}return!1}forEach(e){let t=this.inverted?2:1,r=this.inverted?1:2;for(let n=0,i=0;n<this.ranges.length;n+=3){let a=this.ranges[n],o=a-(this.inverted?i:0),s=a+(this.inverted?0:i),l=this.ranges[n+t],c=this.ranges[n+r];e(o,o+l,s,s+c),i+=c-l}}invert(){return new a(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return 0==e?a.empty:new a(e<0?[0,-e,0]:[0,0,e])}}a.empty=new a([]);class o{constructor(e,t,r=0,n=e?e.length:0){this.mirror=t,this.from=r,this.to=n,this._maps=e||[],this.ownData=!(e||t)}get maps(){return this._maps}slice(e=0,t=this.maps.length){return new o(this._maps,this.mirror,e,t)}appendMap(e,t){this.ownData||(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),this.ownData=!0),this.to=this._maps.push(e),null!=t&&this.setMirror(this._maps.length-1,t)}appendMapping(e){for(let t=0,r=this._maps.length;t<e._maps.length;t++){let n=e.getMirror(t);this.appendMap(e._maps[t],null!=n&&n<t?r+n:void 0)}}getMirror(e){if(this.mirror){for(let t=0;t<this.mirror.length;t++)if(this.mirror[t]==e)return this.mirror[t+(t%2?-1:1)]}}setMirror(e,t){this.mirror||(this.mirror=[]),this.mirror.push(e,t)}appendMappingInverted(e){for(let t=e.maps.length-1,r=this._maps.length+e._maps.length;t>=0;t--){let n=e.getMirror(t);this.appendMap(e._maps[t].invert(),null!=n&&n>t?r-n-1:void 0)}}invert(){let e=new o;return e.appendMappingInverted(this),e}map(e,t=1){if(this.mirror)return this._map(e,t,!0);for(let r=this.from;r<this.to;r++)e=this._maps[r].map(e,t);return e}mapResult(e,t=1){return this._map(e,t,!1)}_map(e,t,r){let n=0;for(let r=this.from;r<this.to;r++){let i=this._maps[r].mapResult(e,t);if(null!=i.recover){let t=this.getMirror(r);if(null!=t&&t>r&&t<this.to){r=t,e=this._maps[t].recover(i.recover);continue}}n|=i.delInfo,e=i.pos}return r?e:new i(e,n,null)}}let s=Object.create(null);class l{getMap(){return a.empty}merge(e){return null}static fromJSON(e,t){if(!t||!t.stepType)throw RangeError("Invalid input for Step.fromJSON");let r=s[t.stepType];if(!r)throw RangeError(`No step type ${t.stepType} defined`);return r.fromJSON(e,t)}static jsonID(e,t){if(e in s)throw RangeError("Duplicate use of step JSON ID "+e);return s[e]=t,t.prototype.jsonID=e,t}}class c{constructor(e,t){this.doc=e,this.failed=t}static ok(e){return new c(e,null)}static fail(e){return new c(null,e)}static fromReplace(e,t,r,i){try{return c.ok(e.replace(t,r,i))}catch(e){if(e instanceof n.vI)return c.fail(e.message);throw e}}}function u(e,t,r){let i=[];for(let n=0;n<e.childCount;n++){let a=e.child(n);a.content.size&&(a=a.copy(u(a.content,t,a))),a.isInline&&(a=t(a,r,n)),i.push(a)}return n.FK.fromArray(i)}class h extends l{constructor(e,t,r){super(),this.from=e,this.to=t,this.mark=r}apply(e){let t=e.slice(this.from,this.to),r=e.resolve(this.from),i=r.node(r.sharedDepth(this.to)),a=new n.Ji(u(t.content,(e,t)=>e.isAtom&&t.type.allowsMarkType(this.mark.type)?e.mark(this.mark.addToSet(e.marks)):e,i),t.openStart,t.openEnd);return c.fromReplace(e,this.from,this.to,a)}invert(){return new p(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return t.deleted&&r.deleted||t.pos>=r.pos?null:new h(t.pos,r.pos,this.mark)}merge(e){return e instanceof h&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new h(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw RangeError("Invalid input for AddMarkStep.fromJSON");return new h(t.from,t.to,e.markFromJSON(t.mark))}}l.jsonID("addMark",h);class p extends l{constructor(e,t,r){super(),this.from=e,this.to=t,this.mark=r}apply(e){let t=e.slice(this.from,this.to),r=new n.Ji(u(t.content,e=>e.mark(this.mark.removeFromSet(e.marks)),e),t.openStart,t.openEnd);return c.fromReplace(e,this.from,this.to,r)}invert(){return new h(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return t.deleted&&r.deleted||t.pos>=r.pos?null:new p(t.pos,r.pos,this.mark)}merge(e){return e instanceof p&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new p(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw RangeError("Invalid input for RemoveMarkStep.fromJSON");return new p(t.from,t.to,e.markFromJSON(t.mark))}}l.jsonID("removeMark",p);class d extends l{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return c.fail("No node at mark step's position");let r=t.type.create(t.attrs,null,this.mark.addToSet(t.marks));return c.fromReplace(e,this.pos,this.pos+1,new n.Ji(n.FK.from(r),0,+!t.isLeaf))}invert(e){let t=e.nodeAt(this.pos);if(t){let e=this.mark.addToSet(t.marks);if(e.length==t.marks.length){for(let r=0;r<t.marks.length;r++)if(!t.marks[r].isInSet(e))return new d(this.pos,t.marks[r]);return new d(this.pos,this.mark)}}return new f(this.pos,this.mark)}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new d(t.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if("number"!=typeof t.pos)throw RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new d(t.pos,e.markFromJSON(t.mark))}}l.jsonID("addNodeMark",d);class f extends l{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return c.fail("No node at mark step's position");let r=t.type.create(t.attrs,null,this.mark.removeFromSet(t.marks));return c.fromReplace(e,this.pos,this.pos+1,new n.Ji(n.FK.from(r),0,+!t.isLeaf))}invert(e){let t=e.nodeAt(this.pos);return t&&this.mark.isInSet(t.marks)?new d(this.pos,this.mark):this}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new f(t.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if("number"!=typeof t.pos)throw RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new f(t.pos,e.markFromJSON(t.mark))}}l.jsonID("removeNodeMark",f);class m extends l{constructor(e,t,r,n=!1){super(),this.from=e,this.to=t,this.slice=r,this.structure=n}apply(e){return this.structure&&A(e,this.from,this.to)?c.fail("Structure replace would overwrite content"):c.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new a([this.from,this.to-this.from,this.slice.size])}invert(e){return new m(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}map(e){let t=e.mapResult(this.to,-1),r=this.from==this.to&&m.MAP_BIAS<0?t:e.mapResult(this.from,1);return r.deletedAcross&&t.deletedAcross?null:new m(r.pos,Math.max(r.pos,t.pos),this.slice,this.structure)}merge(e){if(!(e instanceof m)||e.structure||this.structure)return null;if(this.from+this.slice.size!=e.from||this.slice.openEnd||e.slice.openStart)if(e.to!=this.from||this.slice.openStart||e.slice.openEnd)return null;else{let t=this.slice.size+e.slice.size==0?n.Ji.empty:new n.Ji(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new m(e.from,this.to,t,this.structure)}{let t=this.slice.size+e.slice.size==0?n.Ji.empty:new n.Ji(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new m(this.from,this.to+(e.to-e.from),t,this.structure)}}toJSON(){let e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw RangeError("Invalid input for ReplaceStep.fromJSON");return new m(t.from,t.to,n.Ji.fromJSON(e,t.slice),!!t.structure)}}m.MAP_BIAS=1,l.jsonID("replace",m);class g extends l{constructor(e,t,r,n,i,a,o=!1){super(),this.from=e,this.to=t,this.gapFrom=r,this.gapTo=n,this.slice=i,this.insert=a,this.structure=o}apply(e){if(this.structure&&(A(e,this.from,this.gapFrom)||A(e,this.gapTo,this.to)))return c.fail("Structure gap-replace would overwrite content");let t=e.slice(this.gapFrom,this.gapTo);if(t.openStart||t.openEnd)return c.fail("Gap is not a flat range");let r=this.slice.insertAt(this.insert,t.content);return r?c.fromReplace(e,this.from,this.to,r):c.fail("Content does not fit in gap")}getMap(){return new a([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(e){let t=this.gapTo-this.gapFrom;return new g(this.from,this.from+this.slice.size+t,this.from+this.insert,this.from+this.insert+t,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(e){let t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1),n=this.from==this.gapFrom?t.pos:e.map(this.gapFrom,-1),i=this.to==this.gapTo?r.pos:e.map(this.gapTo,1);return t.deletedAcross&&r.deletedAcross||n<t.pos||i>r.pos?null:new g(t.pos,r.pos,n,i,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to||"number"!=typeof t.gapFrom||"number"!=typeof t.gapTo||"number"!=typeof t.insert)throw RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new g(t.from,t.to,t.gapFrom,t.gapTo,n.Ji.fromJSON(e,t.slice),t.insert,!!t.structure)}}function A(e,t,r){let n=e.resolve(t),i=r-t,a=n.depth;for(;i>0&&a>0&&n.indexAfter(a)==n.node(a).childCount;)a--,i--;if(i>0){let e=n.node(a).maybeChild(n.indexAfter(a));for(;i>0;){if(!e||e.isLeaf)return!0;e=e.firstChild,i--}}return!1}function y(e,t,r,i=r.contentMatch,a=!0){let o=e.doc.nodeAt(t),s=[],l=t+1;for(let t=0;t<o.childCount;t++){let c=o.child(t),u=l+c.nodeSize,h=i.matchType(c.type);if(h){i=h;for(let t=0;t<c.marks.length;t++)r.allowsMarkType(c.marks[t].type)||e.step(new p(l,u,c.marks[t]));if(a&&c.isText&&"pre"!=r.whitespace){let e,t=/\r?\n|\r/g,i;for(;e=t.exec(c.text);)i||(i=new n.Ji(n.FK.from(r.schema.text(" ",r.allowedMarks(c.marks))),0,0)),s.push(new m(l+e.index,l+e.index+e[0].length,i))}}else s.push(new m(l,u,n.Ji.empty));l=u}if(!i.validEnd){let t=i.fillBefore(n.FK.empty,!0);e.replace(l,l,new n.Ji(t,0,0))}for(let t=s.length-1;t>=0;t--)e.step(s[t])}function v(e){let t=e.parent.content.cutByIndex(e.startIndex,e.endIndex);for(let r=e.depth,n=0,i=0;;--r){let a=e.$from.node(r),o=e.$from.index(r)+n,s=e.$to.indexAfter(r)-i;if(r<e.depth&&a.canReplace(o,s,t))return r;if(0==r||a.type.spec.isolating||!((0==o||a.canReplace(o,a.childCount))&&(s==a.childCount||a.canReplace(0,s))))break;o&&(n=1),s<a.childCount&&(i=1)}return null}function R(e,t,r=null,n=e){let i=function(e,t){let{parent:r,startIndex:n,endIndex:i}=e,a=r.contentMatchAt(n).findWrapping(t);if(!a)return null;let o=a.length?a[0]:t;return r.canReplaceWith(n,i,o)?a:null}(e,t),a=i&&function(e,t){let{parent:r,startIndex:n,endIndex:i}=e,a=r.child(n),o=t.contentMatch.findWrapping(a.type);if(!o)return null;let s=(o.length?o[o.length-1]:t).contentMatch;for(let e=n;s&&e<i;e++)s=s.matchType(r.child(e).type);return s&&s.validEnd?o:null}(n,t);return a?i.map(b).concat({type:t,attrs:r}).concat(a.map(b)):null}function b(e){return{type:e,attrs:null}}function x(e,t,r,n){t.forEach((i,a)=>{if(i.isText){let o,s=/\r?\n|\r/g;for(;o=s.exec(i.text);){let i=e.mapping.slice(n).map(r+1+a+o.index);e.replaceWith(i,i+1,t.type.schema.linebreakReplacement.create())}}})}function M(e,t,r,n){t.forEach((i,a)=>{if(i.type==i.type.schema.linebreakReplacement){let i=e.mapping.slice(n).map(r+1+a);e.replaceWith(i,i+1,t.type.schema.text("\n"))}})}function S(e,t,r=1,n){let i=e.resolve(t),a=i.depth-r,o=n&&n[n.length-1]||i.parent;if(a<0||i.parent.type.spec.isolating||!i.parent.canReplace(i.index(),i.parent.childCount)||!o.type.validContent(i.parent.content.cutByIndex(i.index(),i.parent.childCount)))return!1;for(let e=i.depth-1,t=r-2;e>a;e--,t--){let r=i.node(e),a=i.index(e);if(r.type.spec.isolating)return!1;let o=r.content.cutByIndex(a,r.childCount),s=n&&n[t+1];s&&(o=o.replaceChild(0,s.type.create(s.attrs)));let l=n&&n[t]||r;if(!r.canReplace(a+1,r.childCount)||!l.type.validContent(o))return!1}let s=i.indexAfter(a),l=n&&n[0];return i.node(a).canReplaceWith(s,s,l?l.type:i.node(a+1).type)}function w(e,t){let r=e.resolve(t),n=r.index();return O(r.nodeBefore,r.nodeAfter)&&r.parent.canReplace(n,n+1)}function O(e,t){return!!(e&&t&&!e.isLeaf&&function(e,t){t.content.size||e.type.compatibleContent(t.type);let r=e.contentMatchAt(e.childCount),{linebreakReplacement:n}=e.type.schema;for(let i=0;i<t.childCount;i++){let a=t.child(i),o=a.type==n?e.type.schema.nodes.text:a.type;if(!(r=r.matchType(o))||!e.type.allowsMarks(a.marks))return!1}return r.validEnd}(e,t))}function L(e,t,r=-1){let n=e.resolve(t);for(let e=n.depth;;e--){let i,a,o=n.index(e);if(e==n.depth?(i=n.nodeBefore,a=n.nodeAfter):r>0?(i=n.node(e+1),o++,a=n.node(e).maybeChild(o)):(i=n.node(e).maybeChild(o-1),a=n.node(e+1)),i&&!i.isTextblock&&O(i,a)&&n.node(e).canReplace(o,o+1))return t;if(0==e)break;t=r<0?n.before(e):n.after(e)}}function N(e,t,r){let n=e.resolve(t);if(!r.content.size)return t;let i=r.content;for(let e=0;e<r.openStart;e++)i=i.firstChild.content;for(let e=1;e<=(0==r.openStart&&r.size?2:1);e++)for(let t=n.depth;t>=0;t--){let r=t==n.depth?0:n.pos<=(n.start(t+1)+n.end(t+1))/2?-1:1,a=n.index(t)+ +(r>0),o=n.node(t),s=!1;if(1==e)s=o.canReplace(a,a,i);else{let e=o.contentMatchAt(a).findWrapping(i.firstChild.type);s=e&&o.canReplaceWith(a,a,e[0])}if(s)return 0==r?n.pos:r<0?n.before(t+1):n.after(t+1)}return null}function _(e,t,r=t,i=n.Ji.empty){if(t==r&&!i.size)return null;let a=e.resolve(t),o=e.resolve(r);return T(a,o,i)?new m(t,r,i):new P(a,o,i).fit()}function T(e,t,r){return!r.openStart&&!r.openEnd&&e.start()==t.start()&&e.parent.canReplace(e.index(),t.index(),r.content)}l.jsonID("replaceAround",g);class P{constructor(e,t,r){this.$from=e,this.$to=t,this.unplaced=r,this.frontier=[],this.placed=n.FK.empty;for(let t=0;t<=e.depth;t++){let r=e.node(t);this.frontier.push({type:r.type,match:r.contentMatchAt(e.indexAfter(t))})}for(let t=e.depth;t>0;t--)this.placed=n.FK.from(e.node(t).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let e=this.findFittable();e?this.placeNodes(e):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),t=this.placed.size-this.depth-this.$from.depth,r=this.$from,i=this.close(e<0?this.$to:r.doc.resolve(e));if(!i)return null;let a=this.placed,o=r.depth,s=i.depth;for(;o&&s&&1==a.childCount;)a=a.firstChild.content,o--,s--;let l=new n.Ji(a,o,s);return e>-1?new g(r.pos,e,this.$to.pos,this.$to.end(),l,t):l.size||r.pos!=this.$to.pos?new m(r.pos,i.pos,l):null}findFittable(){let e=this.unplaced.openStart;for(let t=this.unplaced.content,r=0,n=this.unplaced.openEnd;r<e;r++){let i=t.firstChild;if(t.childCount>1&&(n=0),i.type.spec.isolating&&n<=r){e=r;break}t=i.content}for(let t=1;t<=2;t++)for(let r=1==t?e:this.unplaced.openStart;r>=0;r--){let e=null,i=(r?(e=k(this.unplaced.content,r-1).firstChild).content:this.unplaced.content).firstChild;for(let a=this.depth;a>=0;a--){let{type:o,match:s}=this.frontier[a],l,c=null;if(1==t&&(i?s.matchType(i.type)||(c=s.fillBefore(n.FK.from(i),!1)):e&&o.compatibleContent(e.type)))return{sliceDepth:r,frontierDepth:a,parent:e,inject:c};if(2==t&&i&&(l=s.findWrapping(i.type)))return{sliceDepth:r,frontierDepth:a,parent:e,wrap:l};if(e&&s.matchType(e.type))break}}}openMore(){let{content:e,openStart:t,openEnd:r}=this.unplaced,i=k(e,t);return!!i.childCount&&!i.firstChild.isLeaf&&(this.unplaced=new n.Ji(e,t+1,Math.max(r,i.size+t>=e.size-r?t+1:0)),!0)}dropNode(){let{content:e,openStart:t,openEnd:r}=this.unplaced,i=k(e,t);if(i.childCount<=1&&t>0){let a=e.size-t<=t+i.size;this.unplaced=new n.Ji(C(e,t-1,1),t-1,a?t-1:r)}else this.unplaced=new n.Ji(C(e,t,1),t,r)}placeNodes({sliceDepth:e,frontierDepth:t,parent:r,inject:i,wrap:a}){for(;this.depth>t;)this.closeFrontierNode();if(a)for(let e=0;e<a.length;e++)this.openFrontierNode(a[e]);let o=this.unplaced,s=r?r.content:o.content,l=o.openStart-e,c=0,u=[],{match:h,type:p}=this.frontier[t];if(i){for(let e=0;e<i.childCount;e++)u.push(i.child(e));h=h.matchFragment(i)}let d=s.size+e-(o.content.size-o.openEnd);for(;c<s.childCount;){let e=s.child(c),t=h.matchType(e.type);if(!t)break;(++c>1||0==l||e.content.size)&&(h=t,u.push(function e(t,r,i){if(r<=0)return t;let a=t.content;return r>1&&(a=a.replaceChild(0,e(a.firstChild,r-1,1==a.childCount?i-1:0))),r>0&&(a=t.type.contentMatch.fillBefore(a).append(a),i<=0&&(a=a.append(t.type.contentMatch.matchFragment(a).fillBefore(n.FK.empty,!0)))),t.copy(a)}(e.mark(p.allowedMarks(e.marks)),1==c?l:0,c==s.childCount?d:-1)))}let f=c==s.childCount;f||(d=-1),this.placed=I(this.placed,t,n.FK.from(u)),this.frontier[t].match=h,f&&d<0&&r&&r.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let e=0,t=s;e<d;e++){let e=t.lastChild;this.frontier.push({type:e.type,match:e.contentMatchAt(e.childCount)}),t=e.content}this.unplaced=f?0==e?n.Ji.empty:new n.Ji(C(o.content,e-1,1),e-1,d<0?o.openEnd:e-1):new n.Ji(C(o.content,e,c),o.openStart,o.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return -1;let e=this.frontier[this.depth],t;if(!e.type.isTextblock||!F(this.$to,this.$to.depth,e.type,e.match,!1)||this.$to.depth==this.depth&&(t=this.findCloseLevel(this.$to))&&t.depth==this.depth)return -1;let{depth:r}=this.$to,n=this.$to.after(r);for(;r>1&&n==this.$to.end(--r);)++n;return n}findCloseLevel(e){s:for(let t=Math.min(this.depth,e.depth);t>=0;t--){let{match:r,type:n}=this.frontier[t],i=t<e.depth&&e.end(t+1)==e.pos+(e.depth-(t+1)),a=F(e,t,n,r,i);if(a){for(let r=t-1;r>=0;r--){let{match:t,type:n}=this.frontier[r],i=F(e,r,n,t,!0);if(!i||i.childCount)continue s}return{depth:t,fit:a,move:i?e.doc.resolve(e.after(t+1)):e}}}}close(e){let t=this.findCloseLevel(e);if(!t)return null;for(;this.depth>t.depth;)this.closeFrontierNode();t.fit.childCount&&(this.placed=I(this.placed,t.depth,t.fit)),e=t.move;for(let r=t.depth+1;r<=e.depth;r++){let t=e.node(r),n=t.type.contentMatch.fillBefore(t.content,!0,e.index(r));this.openFrontierNode(t.type,t.attrs,n)}return e}openFrontierNode(e,t=null,r){let i=this.frontier[this.depth];i.match=i.match.matchType(e),this.placed=I(this.placed,this.depth,n.FK.from(e.create(t,r))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let e=this.frontier.pop().match.fillBefore(n.FK.empty,!0);e.childCount&&(this.placed=I(this.placed,this.frontier.length,e))}}function C(e,t,r){return 0==t?e.cutByIndex(r,e.childCount):e.replaceChild(0,e.firstChild.copy(C(e.firstChild.content,t-1,r)))}function I(e,t,r){return 0==t?e.append(r):e.replaceChild(e.childCount-1,e.lastChild.copy(I(e.lastChild.content,t-1,r)))}function k(e,t){for(let r=0;r<t;r++)e=e.firstChild.content;return e}function F(e,t,r,n,i){let a=e.node(t),o=i?e.indexAfter(t):e.index(t);if(o==a.childCount&&!r.compatibleContent(a.type))return null;let s=n.fillBefore(a.content,!0,o);return s&&!function(e,t,r){for(let n=r;n<t.childCount;n++)if(!e.allowsMarks(t.child(n).marks))return!0;return!1}(r,a.content,o)?s:null}function X(e,t){let r=[],n=Math.min(e.depth,t.depth);for(let i=n;i>=0;i--){let n=e.start(i);if(n<e.pos-(e.depth-i)||t.end(i)>t.pos+(t.depth-i)||e.node(i).type.spec.isolating||t.node(i).type.spec.isolating)break;(n==t.start(i)||i==e.depth&&i==t.depth&&e.parent.inlineContent&&t.parent.inlineContent&&i&&t.start(i-1)==n-1)&&r.push(i)}return r}class U extends l{constructor(e,t,r){super(),this.pos=e,this.attr=t,this.value=r}apply(e){let t=e.nodeAt(this.pos);if(!t)return c.fail("No node at attribute step's position");let r=Object.create(null);for(let e in t.attrs)r[e]=t.attrs[e];r[this.attr]=this.value;let i=t.type.create(r,null,t.marks);return c.fromReplace(e,this.pos,this.pos+1,new n.Ji(n.FK.from(i),0,+!t.isLeaf))}getMap(){return a.empty}invert(e){return new U(this.pos,this.attr,e.nodeAt(this.pos).attrs[this.attr])}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new U(t.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(e,t){if("number"!=typeof t.pos||"string"!=typeof t.attr)throw RangeError("Invalid input for AttrStep.fromJSON");return new U(t.pos,t.attr,t.value)}}l.jsonID("attr",U);class W extends l{constructor(e,t){super(),this.attr=e,this.value=t}apply(e){let t=Object.create(null);for(let r in e.attrs)t[r]=e.attrs[r];t[this.attr]=this.value;let r=e.type.create(t,e.content,e.marks);return c.ok(r)}getMap(){return a.empty}invert(e){return new W(this.attr,e.attrs[this.attr])}map(e){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(e,t){if("string"!=typeof t.attr)throw RangeError("Invalid input for DocAttrStep.fromJSON");return new W(t.attr,t.value)}}l.jsonID("docAttr",W);let V=class extends Error{};(V=function e(t){let r=Error.call(this,t);return r.__proto__=e.prototype,r}).prototype=Object.create(Error.prototype),V.prototype.constructor=V,V.prototype.name="TransformError";class E{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new o}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let t=this.maybeStep(e);if(t.failed)throw new V(t.failed);return this}maybeStep(e){let t=e.apply(this.doc);return t.failed||this.addStep(e,t.doc),t}get docChanged(){return this.steps.length>0}changedRange(){let e=1e9,t=-1e9;for(let r=0;r<this.mapping.maps.length;r++){let n=this.mapping.maps[r];r&&(e=n.map(e,1),t=n.map(t,-1)),n.forEach((r,n,i,a)=>{e=Math.min(e,i),t=Math.max(t,a)})}return 1e9==e?null:{from:e,to:t}}addStep(e,t){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=t}replace(e,t=e,r=n.Ji.empty){let i=_(this.doc,e,t,r);return i&&this.step(i),this}replaceWith(e,t,r){return this.replace(e,t,new n.Ji(n.FK.from(r),0,0))}delete(e,t){return this.replace(e,t,n.Ji.empty)}insert(e,t){return this.replaceWith(e,e,t)}replaceRange(e,t,r){return!function(e,t,r,i){if(!i.size)return e.deleteRange(t,r);let a=e.doc.resolve(t),o=e.doc.resolve(r);if(T(a,o,i))return e.step(new m(t,r,i));let s=X(a,o);0==s[s.length-1]&&s.pop();let l=-(a.depth+1);s.unshift(l);for(let e=a.depth,t=a.pos-1;e>0;e--,t--){let r=a.node(e).type.spec;if(r.defining||r.definingAsContext||r.isolating)break;s.indexOf(e)>-1?l=e:a.before(e)==t&&s.splice(1,0,-e)}let c=s.indexOf(l),u=[],h=i.openStart;for(let e=i.content,t=0;;t++){let r=e.firstChild;if(u.push(r),t==i.openStart)break;e=r.content}for(let e=h-1;e>=0;e--){var p;let t=u[e],r=(p=t.type).spec.defining||p.spec.definingForContent;if(r&&!t.sameMarkup(a.node(Math.abs(l)-1)))h=e;else if(r||!t.type.isTextblock)break}for(let t=i.openStart;t>=0;t--){let l=(t+h+1)%(i.openStart+1),p=u[l];if(p)for(let t=0;t<s.length;t++){let u=s[(t+c)%s.length],h=!0;u<0&&(h=!1,u=-u);let d=a.node(u-1),f=a.index(u-1);if(d.canReplaceWith(f,f,p.type,p.marks))return e.replace(a.before(u),h?o.after(u):r,new n.Ji(function e(t,r,i,a,o){if(r<i){let n=t.firstChild;t=t.replaceChild(0,n.copy(e(n.content,r+1,i,a,n)))}if(r>a){let e=o.contentMatchAt(0),r=e.fillBefore(t).append(t);t=r.append(e.matchFragment(r).fillBefore(n.FK.empty,!0))}return t}(i.content,0,i.openStart,l),l,i.openEnd))}}let d=e.steps.length;for(let n=s.length-1;n>=0&&(e.replace(t,r,i),!(e.steps.length>d));n--){let e=s[n];e<0||(t=a.before(e),r=o.after(e))}}(this,e,t,r),this}replaceRangeWith(e,t,r){var i=e,a=t;if(!r.isInline&&i==a&&this.doc.resolve(i).parent.content.size){let e=function(e,t,r){let n=e.resolve(t);if(n.parent.canReplaceWith(n.index(),n.index(),r))return t;if(0==n.parentOffset)for(let e=n.depth-1;e>=0;e--){let t=n.index(e);if(n.node(e).canReplaceWith(t,t,r))return n.before(e+1);if(t>0)return null}if(n.parentOffset==n.parent.content.size)for(let e=n.depth-1;e>=0;e--){let t=n.indexAfter(e);if(n.node(e).canReplaceWith(t,t,r))return n.after(e+1);if(t<n.node(e).childCount)break}return null}(this.doc,i,r.type);null!=e&&(i=a=e)}return this.replaceRange(i,a,new n.Ji(n.FK.from(r),0,0)),this}deleteRange(e,t){return!function(e,t,r){let n=e.doc.resolve(t),i=e.doc.resolve(r);if(n.parent.isTextblock&&i.parent.isTextblock&&n.start()!=i.start()&&0==n.parentOffset&&0==i.parentOffset){let a=n.sharedDepth(r),o=!1;for(let e=n.depth;e>a;e--)n.node(e).type.spec.isolating&&(o=!0);for(let e=i.depth;e>a;e--)i.node(e).type.spec.isolating&&(o=!0);if(!o){for(let e=n.depth;e>0&&t==n.start(e);e--)t=n.before(e);for(let e=i.depth;e>0&&r==i.start(e);e--)r=i.before(e);n=e.doc.resolve(t),i=e.doc.resolve(r)}}let a=X(n,i);for(let t=0;t<a.length;t++){let r=a[t],o=t==a.length-1;if(o&&0==r||n.node(r).type.contentMatch.validEnd)return e.delete(n.start(r),i.end(r));if(r>0&&(o||n.node(r-1).canReplace(n.index(r-1),i.indexAfter(r-1))))return e.delete(n.before(r),i.after(r))}for(let a=1;a<=n.depth&&a<=i.depth;a++)if(t-n.start(a)==n.depth-a&&r>n.end(a)&&i.end(a)-r!=i.depth-a&&n.start(a-1)==i.start(a-1)&&n.node(a-1).canReplace(n.index(a-1),i.index(a-1)))return e.delete(n.before(a),r);e.delete(t,r)}(this,e,t),this}lift(e,t){return!function(e,t,r){let{$from:i,$to:a,depth:o}=t,s=i.before(o+1),l=a.after(o+1),c=s,u=l,h=n.FK.empty,p=0;for(let e=o,t=!1;e>r;e--)t||i.index(e)>0?(t=!0,h=n.FK.from(i.node(e).copy(h)),p++):c--;let d=n.FK.empty,f=0;for(let e=o,t=!1;e>r;e--)t||a.after(e+1)<a.end(e)?(t=!0,d=n.FK.from(a.node(e).copy(d)),f++):u++;e.step(new g(c,u,s,l,new n.Ji(h.append(d),p,f),h.size-p,!0))}(this,e,t),this}join(e,t=1){return!function(e,t,r){let i=null,{linebreakReplacement:a}=e.doc.type.schema,o=e.doc.resolve(t-r),s=o.node().type;if(a&&s.inlineContent){let e="pre"==s.whitespace,t=!!s.contentMatch.matchType(a);e&&!t?i=!1:!e&&t&&(i=!0)}let l=e.steps.length;if(!1===i){let n=e.doc.resolve(t+r);M(e,n.node(),n.before(),l)}s.inlineContent&&y(e,t+r-1,s,o.node().contentMatchAt(o.index()),null==i);let c=e.mapping.slice(l),u=c.map(t-r);if(e.step(new m(u,c.map(t+r,-1),n.Ji.empty,!0)),!0===i){let t=e.doc.resolve(u);x(e,t.node(),t.before(),e.steps.length)}}(this,e,t),this}wrap(e,t){return!function(e,t,r){let i=n.FK.empty;for(let e=r.length-1;e>=0;e--){if(i.size){let t=r[e].type.contentMatch.matchFragment(i);if(!t||!t.validEnd)throw RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}i=n.FK.from(r[e].type.create(r[e].attrs,i))}let a=t.start,o=t.end;e.step(new g(a,o,a,o,new n.Ji(i,0,0),r.length,!0))}(this,e,t),this}setBlockType(e,t=e,r,i=null){var a=this;if(!r.isTextblock)throw RangeError("Type given to setBlockType should be a textblock");let o=a.steps.length;return a.doc.nodesBetween(e,t,(e,t)=>{var s,l,c;let u,h,p="function"==typeof i?i(e):i;if(e.isTextblock&&!e.hasMarkup(r,p)&&(s=a.doc,l=a.mapping.slice(o).map(t),c=r,h=(u=s.resolve(l)).index(),u.parent.canReplaceWith(h,h+1,c))){let i=null;if(r.schema.linebreakReplacement){let e="pre"==r.whitespace,t=!!r.contentMatch.matchType(r.schema.linebreakReplacement);e&&!t?i=!1:!e&&t&&(i=!0)}!1===i&&M(a,e,t,o),y(a,a.mapping.slice(o).map(t,1),r,void 0,null===i);let s=a.mapping.slice(o),l=s.map(t,1),c=s.map(t+e.nodeSize,1);return a.step(new g(l,c,l+1,c-1,new n.Ji(n.FK.from(r.create(p,null,e.marks)),0,0),1,!0)),!0===i&&x(a,e,t,o),!1}}),this}setNodeMarkup(e,t,r=null,i){return!function(e,t,r,i,a){let o=e.doc.nodeAt(t);if(!o)throw RangeError("No node at given position");r||(r=o.type);let s=r.create(i,null,a||o.marks);if(o.isLeaf)return e.replaceWith(t,t+o.nodeSize,s);if(!r.validContent(o.content))throw RangeError("Invalid content for node type "+r.name);e.step(new g(t,t+o.nodeSize,t+1,t+o.nodeSize-1,new n.Ji(n.FK.from(s),0,0),1,!0))}(this,e,t,r,i),this}setNodeAttribute(e,t,r){return this.step(new U(e,t,r)),this}setDocAttribute(e,t){return this.step(new W(e,t)),this}addNodeMark(e,t){return this.step(new d(e,t)),this}removeNodeMark(e,t){let r=this.doc.nodeAt(e);if(!r)throw RangeError("No node at position "+e);if(t instanceof n.CU)t.isInSet(r.marks)&&this.step(new f(e,t));else{let n=r.marks,i,a=[];for(;i=t.isInSet(n);)a.push(new f(e,i)),n=i.removeFromSet(n);for(let e=a.length-1;e>=0;e--)this.step(a[e])}return this}split(e,t=1,r){return!function(e,t,r=1,i){let a=e.doc.resolve(t),o=n.FK.empty,s=n.FK.empty;for(let e=a.depth,t=a.depth-r,l=r-1;e>t;e--,l--){o=n.FK.from(a.node(e).copy(o));let t=i&&i[l];s=n.FK.from(t?t.type.create(t.attrs,s):a.node(e).copy(s))}e.step(new m(t,t,new n.Ji(o.append(s),r,r),!0))}(this,e,t,r),this}addMark(e,t,r){var n;let i,a,o,s;return n=this,o=[],s=[],n.doc.nodesBetween(e,t,(n,l,c)=>{if(!n.isInline)return;let u=n.marks;if(!r.isInSet(u)&&c.type.allowsMarkType(r.type)){let c=Math.max(l,e),d=Math.min(l+n.nodeSize,t),f=r.addToSet(u);for(let e=0;e<u.length;e++)u[e].isInSet(f)||(i&&i.to==c&&i.mark.eq(u[e])?i.to=d:o.push(i=new p(c,d,u[e])));a&&a.to==c?a.to=d:s.push(a=new h(c,d,r))}}),o.forEach(e=>n.step(e)),s.forEach(e=>n.step(e)),this}removeMark(e,t,r){var i;let a,o;return i=this,a=[],o=0,i.doc.nodesBetween(e,t,(i,s)=>{if(!i.isInline)return;o++;let l=null;if(r instanceof n.sX){let e=i.marks,t;for(;t=r.isInSet(e);)(l||(l=[])).push(t),e=t.removeFromSet(e)}else r?r.isInSet(i.marks)&&(l=[r]):l=i.marks;if(l&&l.length){let r=Math.min(s+i.nodeSize,t);for(let t=0;t<l.length;t++){let n=l[t],i;for(let e=0;e<a.length;e++){let t=a[e];t.step==o-1&&n.eq(a[e].style)&&(i=t)}i?(i.to=r,i.step=o):a.push({style:n,from:Math.max(s,e),to:r,step:o})}}}),a.forEach(e=>i.step(new p(e.from,e.to,e.style))),this}clearIncompatible(e,t,r){return y(this,e,t,r),this}}r.d(t,{$L:()=>_,Ln:()=>m,N0:()=>L,Um:()=>N,Wg:()=>g,X9:()=>o,dL:()=>E,jP:()=>v,n9:()=>w,oM:()=>R,zy:()=>S})},1575(e,t,r){var n=r(42845),i=r(96294),a=r(38262);let o=function(e){for(var t=0;;t++)if(!(e=e.previousSibling))return t},s=function(e){let t=e.assignedSlot||e.parentNode;return t&&11==t.nodeType?t.host:t},l=null,c=function(e,t,r){let n=l||(l=document.createRange());return n.setEnd(e,null==r?e.nodeValue.length:r),n.setStart(e,t||0),n},u=function(){l=null},h=function(e,t,r,n){return r&&(d(e,t,r,n,-1)||d(e,t,r,n,1))},p=/^(img|br|input|textarea|hr)$/i;function d(e,t,r,n,i){for(var a;;){if(e==r&&t==n)return!0;if(t==(i<0?0:f(e))){let r=e.parentNode;if(!r||1!=r.nodeType||m(e)||p.test(e.nodeName)||"false"==e.contentEditable)return!1;t=o(e)+(i<0?0:1),e=r}else{if(1!=e.nodeType)return!1;let r=e.childNodes[t+(i<0?-1:0)];if(1==r.nodeType&&"false"==r.contentEditable)if(null==(a=r.pmViewDesc)||!a.ignoreForSelection)return!1;else t+=i;else e=r,t=i<0?f(e):0}}}function f(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function m(e){let t;for(let r=e;r&&!(t=r.pmViewDesc);r=r.parentNode);return t&&t.node&&t.node.isBlock&&(t.dom==e||t.contentDOM==e)}let g=function(e){return e.focusNode&&h(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)};function A(e,t){let r=document.createEvent("Event");return r.initEvent("keydown",!0,!0),r.keyCode=e,r.key=r.code=t,r}let y="u">typeof navigator?navigator:null,v="u">typeof document?document:null,R=y&&y.userAgent||"",b=/Edge\/(\d+)/.exec(R),x=/MSIE \d/.exec(R),M=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(R),S=!!(x||M||b),w=x?document.documentMode:M?+M[1]:b?+b[1]:0,O=!S&&/gecko\/(\d+)/i.test(R);O&&(/Firefox\/(\d+)/.exec(R)||[0,0])[1];let L=!S&&/Chrome\/(\d+)/.exec(R),N=!!L,_=L?+L[1]:0,T=!S&&!!y&&/Apple Computer/.test(y.vendor),P=T&&(/Mobile\/\w+/.test(R)||!!y&&y.maxTouchPoints>2),C=P||!!y&&/Mac/.test(y.platform),I=!!y&&/Win/.test(y.platform),k=/Android \d/.test(R),F=!!v&&"webkitFontSmoothing"in v.documentElement.style,X=F?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function U(e,t){return"number"==typeof e?e:e[t]}function W(e,t,r){if(!Q(t)&&0==t.left)return;let n=e.someProp("scrollThreshold")||0,i=e.someProp("scrollMargin")||5,a=e.dom.ownerDocument;for(let o=r||e.dom;o;){if(1!=o.nodeType){o=s(o);continue}let e=o,r=e==a.body,l=r?function(e){let t=e.defaultView&&e.defaultView.visualViewport;return t?{left:0,right:t.width,top:0,bottom:t.height}:{left:0,right:e.documentElement.clientWidth,top:0,bottom:e.documentElement.clientHeight}}(a):function(e){let t=e.getBoundingClientRect(),r=t.width/e.offsetWidth||1,n=t.height/e.offsetHeight||1;return{left:t.left,right:t.left+e.clientWidth*r,top:t.top,bottom:t.top+e.clientHeight*n}}(e),c=0,u=0;if(t.top<l.top+U(n,"top")?u=-(l.top-t.top+U(i,"top")):t.bottom>l.bottom-U(n,"bottom")&&(u=t.bottom-t.top>l.bottom-l.top?t.top+U(i,"top")-l.top:t.bottom-l.bottom+U(i,"bottom")),t.left<l.left+U(n,"left")?c=-(l.left-t.left+U(i,"left")):t.right>l.right-U(n,"right")&&(c=t.right-l.right+U(i,"right")),c||u)if(r)a.defaultView.scrollBy(c,u);else{let r=e.scrollLeft,n=e.scrollTop;u&&(e.scrollTop+=u),c&&(e.scrollLeft+=c);let i=e.scrollLeft-r,a=e.scrollTop-n;t={left:t.left-i,top:t.top-a,right:t.right-i,bottom:t.bottom-a}}let h=r?"fixed":getComputedStyle(o).position;if(/^(fixed|sticky)$/.test(h))break;o="absolute"==h?o.offsetParent:s(o)}}function V(e){let t=[],r=e.ownerDocument;for(let n=e;n&&(t.push({dom:n,top:n.scrollTop,left:n.scrollLeft}),e!=r);n=s(n));return t}function E(e,t){for(let r=0;r<e.length;r++){let{dom:n,top:i,left:a}=e[r];n.scrollTop!=i+t&&(n.scrollTop=i+t),n.scrollLeft!=a&&(n.scrollLeft=a)}}let Y=null;function D(e,t){return e.left>=t.left-1&&e.left<=t.right+1&&e.top>=t.top-1&&e.top<=t.bottom+1}function Q(e){return e.top<e.bottom||e.left<e.right}function $(e,t){let r=e.getClientRects();if(r.length){let e=r[t<0?0:r.length-1];if(Q(e))return e}return Array.prototype.find.call(r,Q)||e.getBoundingClientRect()}let B=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function Z(e,t,r){let{node:n,offset:i,atom:a}=e.docView.domFromPos(t,r<0?-1:1),o=F||O;if(3==n.nodeType)if(o&&(B.test(n.nodeValue)||(r<0?!i:i==n.nodeValue.length))){let e=$(c(n,i,i),r);if(O&&i&&/\s/.test(n.nodeValue[i-1])&&i<n.nodeValue.length){let t=$(c(n,i-1,i-1),-1);if(t.top==e.top){let r=$(c(n,i,i+1),-1);if(r.top!=e.top)return K(r,r.left<t.left)}}return e}else{let e=i,t=i,a=r<0?1:-1;return r<0&&!i?(t++,a=-1):r>=0&&i==n.nodeValue.length?(e--,a=1):r<0?e--:t++,K($(c(n,e,t),a),a<0)}if(!e.state.doc.resolve(t-(a||0)).parent.inlineContent){if(null==a&&i&&(r<0||i==f(n))){let e=n.childNodes[i-1];if(1==e.nodeType)return G(e.getBoundingClientRect(),!1)}if(null==a&&i<f(n)){let e=n.childNodes[i];if(1==e.nodeType)return G(e.getBoundingClientRect(),!0)}return G(n.getBoundingClientRect(),r>=0)}if(null==a&&i&&(r<0||i==f(n))){let e=n.childNodes[i-1],t=3==e.nodeType?c(e,f(e)-!o):1!=e.nodeType||"BR"==e.nodeName&&e.nextSibling?null:e;if(t)return K($(t,1),!1)}if(null==a&&i<f(n)){let e=n.childNodes[i];for(;e.pmViewDesc&&e.pmViewDesc.ignoreForCoords;)e=e.nextSibling;let t=e?3==e.nodeType?c(e,0,+!o):1==e.nodeType?e:null:null;if(t)return K($(t,-1),!0)}return K($(3==n.nodeType?c(n):n,-r),r>=0)}function K(e,t){if(0==e.width)return e;let r=t?e.left:e.right;return{top:e.top,bottom:e.bottom,left:r,right:r}}function G(e,t){if(0==e.height)return e;let r=t?e.top:e.bottom;return{top:r,bottom:r,left:e.left,right:e.right}}function H(e,t,r){let n=e.state,i=e.root.activeElement;n!=t&&e.updateState(t),i!=e.dom&&e.focus();try{return r()}finally{n!=t&&e.updateState(n),i!=e.dom&&i&&i.focus()}}let z=/[\u0590-\u08ac]/,J=null,j=null,q=!1;class ee{constructor(e,t,r,n){this.parent=e,this.children=t,this.dom=r,this.contentDOM=n,this.dirty=0,r.pmViewDesc=this}matchesWidget(e){return!1}matchesMark(e){return!1}matchesNode(e,t,r){return!1}matchesHack(e){return!1}parseRule(e){return null}stopEvent(e){return!1}get size(){let e=0;for(let t=0;t<this.children.length;t++)e+=this.children[t].size;return e}get border(){return 0}destroy(){this.parent=void 0,this.dom.pmViewDesc==this&&(this.dom.pmViewDesc=void 0);for(let e=0;e<this.children.length;e++)this.children[e].destroy()}posBeforeChild(e){for(let t=0,r=this.posAtStart;;t++){let n=this.children[t];if(n==e)return r;r+=n.size}}get posBefore(){return this.parent.posBeforeChild(this)}get posAtStart(){return this.parent?this.parent.posBeforeChild(this)+this.border:0}get posAfter(){return this.posBefore+this.size}get posAtEnd(){return this.posAtStart+this.size-2*this.border}localPosFromDOM(e,t,r){let n;if(this.contentDOM&&this.contentDOM.contains(1==e.nodeType?e:e.parentNode))if(r<0){let r,n;if(e==this.contentDOM)r=e.childNodes[t-1];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;r=e.previousSibling}for(;r&&!((n=r.pmViewDesc)&&n.parent==this);)r=r.previousSibling;return r?this.posBeforeChild(n)+n.size:this.posAtStart}else{let r,n;if(e==this.contentDOM)r=e.childNodes[t];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;r=e.nextSibling}for(;r&&!((n=r.pmViewDesc)&&n.parent==this);)r=r.nextSibling;return r?this.posBeforeChild(n):this.posAtEnd}if(e==this.dom&&this.contentDOM)n=t>o(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))n=2&e.compareDocumentPosition(this.contentDOM);else if(this.dom.firstChild){if(0==t)for(let t=e;;t=t.parentNode){if(t==this.dom){n=!1;break}if(t.previousSibling)break}if(null==n&&t==e.childNodes.length)for(let t=e;;t=t.parentNode){if(t==this.dom){n=!0;break}if(t.nextSibling)break}}return(null==n?r>0:n)?this.posAtEnd:this.posAtStart}nearestDesc(e,t=!1){for(let r=!0,n=e;n;n=n.parentNode){let i=this.getDesc(n),a;if(i&&(!t||i.node))if(!r||!(a=i.nodeDOM)||(1==a.nodeType?a.contains(1==e.nodeType?e:e.parentNode):a==e))return i;else r=!1}}getDesc(e){let t=e.pmViewDesc;for(let e=t;e;e=e.parent)if(e==this)return t}posFromDOM(e,t,r){for(let n=e;n;n=n.parentNode){let i=this.getDesc(n);if(i)return i.localPosFromDOM(e,t,r)}return -1}descAt(e){for(let t=0,r=0;t<this.children.length;t++){let n=this.children[t],i=r+n.size;if(r==e&&i!=r){for(;!n.border&&n.children.length;)for(let e=0;e<n.children.length;e++){let t=n.children[e];if(t.size){n=t;break}}return n}if(e<i)return n.descAt(e-r-n.border);r=i}}domFromPos(e,t){if(!this.contentDOM)return{node:this.dom,offset:0,atom:e+1};let r=0,n=0;for(let t=0;r<this.children.length;r++){let i=this.children[r],a=t+i.size;if(a>e||i instanceof es){n=e-t;break}t=a}if(n)return this.children[r].domFromPos(n-this.children[r].border,t);for(let e;r&&!(e=this.children[r-1]).size&&e instanceof et&&e.side>=0;r--);if(t<=0){let e,n=!0;for(;(e=r?this.children[r-1]:null)&&e.dom.parentNode!=this.contentDOM;r--,n=!1);return e&&t&&n&&!e.border&&!e.domAtom?e.domFromPos(e.size,t):{node:this.contentDOM,offset:e?o(e.dom)+1:0}}{let e,n=!0;for(;(e=r<this.children.length?this.children[r]:null)&&e.dom.parentNode!=this.contentDOM;r++,n=!1);return e&&n&&!e.border&&!e.domAtom?e.domFromPos(0,t):{node:this.contentDOM,offset:e?o(e.dom):this.contentDOM.childNodes.length}}}parseRange(e,t,r=0){if(0==this.children.length)return{node:this.contentDOM,from:e,to:t,fromOffset:0,toOffset:this.contentDOM.childNodes.length};let n=-1,i=-1;for(let a=r,s=0;;s++){let r=this.children[s],l=a+r.size;if(-1==n&&e<=l){let i=a+r.border;if(e>=i&&t<=l-r.border&&r.node&&r.contentDOM&&this.contentDOM.contains(r.contentDOM))return r.parseRange(e,t,i);e=a;for(let t=s;t>0;t--){let r=this.children[t-1];if(r.size&&r.dom.parentNode==this.contentDOM&&!r.emptyChildAt(1)){n=o(r.dom)+1;break}e-=r.size}-1==n&&(n=0)}if(n>-1&&(l>t||s==this.children.length-1)){t=l;for(let e=s+1;e<this.children.length;e++){let r=this.children[e];if(r.size&&r.dom.parentNode==this.contentDOM&&!r.emptyChildAt(-1)){i=o(r.dom);break}t+=r.size}-1==i&&(i=this.contentDOM.childNodes.length);break}a=l}return{node:this.contentDOM,from:e,to:t,fromOffset:n,toOffset:i}}emptyChildAt(e){if(this.border||!this.contentDOM||!this.children.length)return!1;let t=this.children[e<0?0:this.children.length-1];return 0==t.size||t.emptyChildAt(e)}domAfterPos(e){let{node:t,offset:r}=this.domFromPos(e,0);if(1!=t.nodeType||r==t.childNodes.length)throw RangeError("No node after pos "+e);return t.childNodes[r]}setSelection(e,t,r,n=!1){let i=Math.min(e,t),a=Math.max(e,t);for(let o=0,s=0;o<this.children.length;o++){let l=this.children[o],c=s+l.size;if(i>s&&a<c)return l.setSelection(e-s-l.border,t-s-l.border,r,n);s=c}let s=this.domFromPos(e,e?-1:1),l=t==e?s:this.domFromPos(t,t?-1:1),c=r.root.getSelection(),u=r.domSelectionRange(),p=!1;if((O||T)&&e==t){let{node:e,offset:t}=s;if(3==e.nodeType){if((p=!!(t&&"\n"==e.nodeValue[t-1]))&&t==e.nodeValue.length)for(let t=e,r;t;t=t.parentNode){if(r=t.nextSibling){"BR"==r.nodeName&&(s=l={node:r.parentNode,offset:o(r)+1});break}let e=t.pmViewDesc;if(e&&e.node&&e.node.isBlock)break}}else{let r=e.childNodes[t-1];p=r&&("BR"==r.nodeName||"false"==r.contentEditable)}}if(O&&u.focusNode&&u.focusNode!=l.node&&1==u.focusNode.nodeType){let e=u.focusNode.childNodes[u.focusOffset];e&&"false"==e.contentEditable&&(n=!0)}if(!(n||p&&T)&&h(s.node,s.offset,u.anchorNode,u.anchorOffset)&&h(l.node,l.offset,u.focusNode,u.focusOffset))return;let d=!1;if((c.extend||e==t)&&!(p&&O)){c.collapse(s.node,s.offset);try{e!=t&&c.extend(l.node,l.offset),d=!0}catch(e){}}if(!d){if(e>t){let e=s;s=l,l=e}let r=document.createRange();r.setEnd(l.node,l.offset),r.setStart(s.node,s.offset),c.removeAllRanges(),c.addRange(r)}}ignoreMutation(e){return!this.contentDOM&&"selection"!=e.type}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(e,t){for(let r=0,n=0;n<this.children.length;n++){let i=this.children[n],a=r+i.size;if(r==a?e<=a&&t>=r:e<a&&t>r){let n=r+i.border,o=a-i.border;if(e>=n&&t<=o){this.dirty=e==r||t==a?2:1,e==n&&t==o&&(i.contentLost||i.dom.parentNode!=this.contentDOM)?i.dirty=3:i.markDirty(e-n,t-n);return}i.dirty=i.dom!=i.contentDOM||i.dom.parentNode!=this.contentDOM||i.children.length?3:2}r=a}this.dirty=2}markParentsDirty(){let e=1;for(let t=this.parent;t;t=t.parent,e++){let r=1==e?2:1;t.dirty<r&&(t.dirty=r)}}get domAtom(){return!1}get ignoreForCoords(){return!1}get ignoreForSelection(){return!1}isText(e){return!1}}class et extends ee{constructor(e,t,r,n){let i,a=t.type.toDOM;if("function"==typeof a&&(a=a(r,()=>i?i.parent?i.parent.posBeforeChild(i):void 0:n)),!t.type.spec.raw){if(1!=a.nodeType){let e=document.createElement("span");e.appendChild(a),a=e}a.contentEditable="false",a.classList.add("ProseMirror-widget")}super(e,[],a,null),this.widget=t,this.widget=t,i=this}matchesWidget(e){return 0==this.dirty&&e.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(e){let t=this.widget.spec.stopEvent;return!!t&&t(e)}ignoreMutation(e){return"selection"!=e.type||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get ignoreForSelection(){return!!this.widget.type.spec.relaxedSide}get side(){return this.widget.type.side}}class er extends ee{constructor(e,t,r,n){super(e,[],t,null),this.textDOM=r,this.text=n}get size(){return this.text.length}localPosFromDOM(e,t){return e!=this.textDOM?this.posAtStart+(t?this.size:0):this.posAtStart+t}domFromPos(e){return{node:this.textDOM,offset:e}}ignoreMutation(e){return"characterData"===e.type&&e.target.nodeValue==e.oldValue}}class en extends ee{constructor(e,t,r,n,i){super(e,[],r,n),this.mark=t,this.spec=i}static create(e,t,r,n){let a=n.nodeViews[t.type.name],o=a&&a(t,n,r);return o&&o.dom||(o=i.ZF.renderSpec(document,t.type.spec.toDOM(t,r),null,t.attrs)),new en(e,t,o.dom,o.contentDOM||o.dom,o)}parseRule(){return 3&this.dirty||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(e){return 3!=this.dirty&&this.mark.eq(e)}markDirty(e,t){if(super.markDirty(e,t),0!=this.dirty){let e=this.parent;for(;!e.node;)e=e.parent;e.dirty<this.dirty&&(e.dirty=this.dirty),this.dirty=0}}slice(e,t,r){let n=en.create(this.parent,this.mark,!0,r),i=this.children,a=this.size;t<a&&(i=ey(i,t,a,r)),e>0&&(i=ey(i,0,e,r));for(let e=0;e<i.length;e++)i[e].parent=n;return n.children=i,n}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}}class ei extends ee{constructor(e,t,r,n,i,a,o){super(e,[],i,a),this.node=t,this.outerDeco=r,this.innerDeco=n,this.nodeDOM=o}static create(e,t,r,n,a,o){let s=a.nodeViews[t.type.name],l,c=s&&s(t,a,()=>l?l.parent?l.parent.posBeforeChild(l):void 0:o,r,n),u=c&&c.dom,h=c&&c.contentDOM;if(t.isText)if(u){if(3!=u.nodeType)throw RangeError("Text must be rendered as a DOM text node")}else u=document.createTextNode(t.text);else if(!u){let e=i.ZF.renderSpec(document,t.type.spec.toDOM(t),null,t.attrs);({dom:u,contentDOM:h}=e)}h||t.isText||"BR"==u.nodeName||(u.hasAttribute("contenteditable")||(u.contentEditable="false"),t.type.spec.draggable&&(u.draggable=!0));let p=u;return(u=ed(u,r,t),c)?l=new el(e,t,r,n,u,h||null,p,c):t.isText?new eo(e,t,r,n,u,p):new ei(e,t,r,n,u,h||null,p)}parseRule(e){if(this.node.type.spec.reparseInView)return null;let t={node:this.node.type.name,attrs:this.node.attrs};if("pre"==this.node.type.whitespace&&(t.preserveWhitespace="full"),this.contentDOM)if(this.contentLost){for(let e=this.children.length-1;e>=0;e--){let r=this.children[e];if(this.dom.contains(r.dom.parentNode)){t.contentElement=r.dom.parentNode;break}}if(!t.contentElement){let r=e&&e.find(t=>1==t.nodeType&&0>e.indexOf(t.parentNode)&&this.dom.contains(t));r?t.contentElement=r:t.getContent=()=>i.FK.empty}}else t.contentElement=this.contentDOM;else t.getContent=()=>this.node.content;return t}matchesNode(e,t,r){return 0==this.dirty&&e.eq(this.node)&&ef(t,this.outerDeco)&&r.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return+!this.node.isLeaf}updateChildren(e,t){let r=this.node.inlineContent,n=t,a=e.composing?this.localCompositionInfo(e,t):null,o=a&&a.pos>-1?a:null,s=a&&a.pos<0,l=new eg(this,o&&o.node,e);(function(e,t,r,n){let i=t.locals(e),a=0;if(0==i.length){for(let r=0;r<e.childCount;r++){let o=e.child(r);n(o,i,t.forChild(a,o),r),a+=o.nodeSize}return}let o=0,s=[],l=null;for(let c=0;;){let u,h,p,d;for(;o<i.length&&i[o].to==a;){let e=i[o++];e.widget&&(u?(h||(h=[u])).push(e):u=e)}if(u)if(h){h.sort(eA);for(let e=0;e<h.length;e++)r(h[e],c,!!l)}else r(u,c,!!l);if(l)d=-1,p=l,l=null;else if(c<e.childCount)d=c,p=e.child(c++);else break;for(let e=0;e<s.length;e++)s[e].to<=a&&s.splice(e--,1);for(;o<i.length&&i[o].from<=a&&i[o].to>a;)s.push(i[o++]);let f=a+p.nodeSize;if(p.isText){let e=f;o<i.length&&i[o].from<e&&(e=i[o].from);for(let t=0;t<s.length;t++)s[t].to<e&&(e=s[t].to);e<f&&(l=p.cut(e-a),p=p.cut(0,e-a),f=e,d=-1)}else for(;o<i.length&&i[o].to<f;)o++;let m=p.isInline&&!p.isLeaf?s.filter(e=>!e.inline):s.slice();n(p,m,t.forChild(a,p),d),a=f}})(this.node,this.innerDeco,(t,a,o)=>{t.spec.marks?l.syncToMarks(t.spec.marks,r,e,a):t.type.side>=0&&!o&&l.syncToMarks(a==this.node.childCount?i.CU.none:this.node.child(a).marks,r,e,a),l.placeWidget(t,e,n)},(t,i,o,c)=>{let u;l.syncToMarks(t.marks,r,e,c),l.findNodeMatch(t,i,o,c)||s&&e.state.selection.from>n&&e.state.selection.to<n+t.nodeSize&&(u=l.findIndexWithChild(a.node))>-1&&l.updateNodeAt(t,i,o,u,e)||l.updateNextNode(t,i,o,e,c,n)||l.addNode(t,i,o,e,n),n+=t.nodeSize}),l.syncToMarks([],r,e,0),this.node.isTextblock&&l.addTextblockHacks(),l.destroyRest(),(l.changed||2==this.dirty)&&(o&&this.protectLocalComposition(e,o),function e(t,r,n){let i=t.firstChild,a=!1;for(let o=0;o<r.length;o++){let s=r[o],l=s.dom;if(l.parentNode==t){for(;l!=i;)i=em(i),a=!0;i=i.nextSibling}else a=!0,t.insertBefore(l,i);if(s instanceof en){let r=i?i.previousSibling:t.lastChild;e(s.contentDOM,s.children,n),i=r?r.nextSibling:t.firstChild}}for(;i;)i=em(i),a=!0;a&&n.trackWrites==t&&(n.trackWrites=null)}(this.contentDOM,this.children,e),P&&function(e){if("UL"==e.nodeName||"OL"==e.nodeName){let t=e.style.cssText;e.style.cssText=t+"; list-style: square !important",window.getComputedStyle(e).listStyle,e.style.cssText=t}}(this.dom))}localCompositionInfo(e,t){let{from:r,to:i}=e.state.selection;if(!(e.state.selection instanceof n.U3)||r<t||i>t+this.node.content.size)return null;let a=e.input.compositionNode;if(!a||!this.dom.contains(a.parentNode))return null;if(!this.node.inlineContent)return{node:a,pos:-1,text:""};{let e=a.nodeValue,n=function(e,t,r,n){for(let i=0,a=0;i<e.childCount&&a<=n;){let o=e.child(i++),s=a;if(a+=o.nodeSize,!o.isText)continue;let l=o.text;for(;i<e.childCount;){let t=e.child(i++);if(a+=t.nodeSize,!t.isText)break;l+=t.text}if(a>=r){if(a>=n&&l.slice(n-t.length-s,n-s)==t)return n-t.length;let e=s<n?l.lastIndexOf(t,n-s-1):-1;if(e>=0&&e+t.length+s>=r)return s+e;if(r==n&&l.length>=n+t.length-s&&l.slice(n-s,n-s+t.length)==t)return n}}return -1}(this.node.content,e,r-t,i-t);return n<0?null:{node:a,pos:n,text:e}}}protectLocalComposition(e,{node:t,pos:r,text:n}){if(this.getDesc(t))return;let i=t;for(;i.parentNode!=this.contentDOM;i=i.parentNode){for(;i.previousSibling;)i.parentNode.removeChild(i.previousSibling);for(;i.nextSibling;)i.parentNode.removeChild(i.nextSibling);i.pmViewDesc&&(i.pmViewDesc=void 0)}let a=new er(this,i,t,n);e.input.compositionNodes.push(a),this.children=ey(this.children,r,r+n.length,e,a)}update(e,t,r,n){return 3!=this.dirty&&!!e.sameMarkup(this.node)&&(this.updateInner(e,t,r,n),!0)}updateInner(e,t,r,n){this.updateOuterDeco(t),this.node=e,this.innerDeco=r,this.contentDOM&&this.updateChildren(n,this.posAtStart),this.dirty=0}updateOuterDeco(e){if(ef(e,this.outerDeco))return;let t=1!=this.nodeDOM.nodeType,r=this.dom;this.dom=ep(this.dom,this.nodeDOM,eh(this.outerDeco,this.node,t),eh(e,this.node,t)),this.dom!=r&&(r.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=e}selectNode(){1==this.nodeDOM.nodeType&&(this.nodeDOM.classList.add("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&(this.nodeDOM.draggable=!0))}deselectNode(){1==this.nodeDOM.nodeType&&(this.nodeDOM.classList.remove("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&this.nodeDOM.removeAttribute("draggable"))}get domAtom(){return this.node.isAtom}}function ea(e,t,r,n,i){ed(n,t,e);let a=new ei(void 0,e,t,r,n,n,n);return a.contentDOM&&a.updateChildren(i,0),a}class eo extends ei{constructor(e,t,r,n,i,a){super(e,t,r,n,i,null,a)}parseRule(){let e=this.nodeDOM.parentNode;for(;e&&e!=this.dom&&!e.pmIsDeco;)e=e.parentNode;return{skip:e||!0}}update(e,t,r,n){return 3!=this.dirty&&(0==this.dirty||!!this.inParent())&&!!e.sameMarkup(this.node)&&(this.updateOuterDeco(t),(0!=this.dirty||e.text!=this.node.text)&&e.text!=this.nodeDOM.nodeValue&&(this.nodeDOM.nodeValue=e.text,n.trackWrites==this.nodeDOM&&(n.trackWrites=null)),this.node=e,this.dirty=0,!0)}inParent(){let e=this.parent.contentDOM;for(let t=this.nodeDOM;t;t=t.parentNode)if(t==e)return!0;return!1}domFromPos(e){return{node:this.nodeDOM,offset:e}}localPosFromDOM(e,t,r){return e==this.nodeDOM?this.posAtStart+Math.min(t,this.node.text.length):super.localPosFromDOM(e,t,r)}ignoreMutation(e){return"characterData"!=e.type&&"selection"!=e.type}slice(e,t,r){let n=this.node.cut(e,t),i=document.createTextNode(n.text);return new eo(this.parent,n,this.outerDeco,this.innerDeco,i,i)}markDirty(e,t){super.markDirty(e,t),this.dom!=this.nodeDOM&&(0==e||t==this.nodeDOM.nodeValue.length)&&(this.dirty=3)}get domAtom(){return!1}isText(e){return this.node.text==e}}class es extends ee{parseRule(){return{ignore:!0}}matchesHack(e){return 0==this.dirty&&this.dom.nodeName==e}get domAtom(){return!0}get ignoreForCoords(){return"IMG"==this.dom.nodeName}}class el extends ei{constructor(e,t,r,n,i,a,o,s){super(e,t,r,n,i,a,o),this.spec=s}update(e,t,r,n){if(3==this.dirty)return!1;if(this.spec.update&&(this.node.type==e.type||this.spec.multiType)){let i=this.spec.update(e,t,r);return i&&this.updateInner(e,t,r,n),i}return(!!this.contentDOM||!!e.isLeaf)&&super.update(e,t,r,n)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(e,t,r,n){this.spec.setSelection?this.spec.setSelection(e,t,r.root):super.setSelection(e,t,r,n)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(e){return!!this.spec.stopEvent&&this.spec.stopEvent(e)}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}}let ec=function(e){e&&(this.nodeName=e)};ec.prototype=Object.create(null);let eu=[new ec];function eh(e,t,r){if(0==e.length)return eu;let n=r?eu[0]:new ec,i=[n];for(let a=0;a<e.length;a++){let o=e[a].type.attrs;if(o)for(let e in o.nodeName&&i.push(n=new ec(o.nodeName)),o){let a=o[e];null!=a&&(r&&1==i.length&&i.push(n=new ec(t.isInline?"span":"div")),"class"==e?n.class=(n.class?n.class+" ":"")+a:"style"==e?n.style=(n.style?n.style+";":"")+a:"nodeName"!=e&&(n[e]=a))}}return i}function ep(e,t,r,n){if(r==eu&&n==eu)return t;let i=t;for(let t=0;t<n.length;t++){let a=n[t],o=r[t];if(t){let t;o&&o.nodeName==a.nodeName&&i!=e&&(t=i.parentNode)&&t.nodeName.toLowerCase()==a.nodeName||((t=document.createElement(a.nodeName)).pmIsDeco=!0,t.appendChild(i),o=eu[0]),i=t}!function(e,t,r){for(let n in t)"class"==n||"style"==n||"nodeName"==n||n in r||e.removeAttribute(n);for(let n in r)"class"!=n&&"style"!=n&&"nodeName"!=n&&r[n]!=t[n]&&e.setAttribute(n,r[n]);if(t.class!=r.class){let n=t.class?t.class.split(" ").filter(Boolean):[],i=r.class?r.class.split(" ").filter(Boolean):[];for(let t=0;t<n.length;t++)-1==i.indexOf(n[t])&&e.classList.remove(n[t]);for(let t=0;t<i.length;t++)-1==n.indexOf(i[t])&&e.classList.add(i[t]);0==e.classList.length&&e.removeAttribute("class")}if(t.style!=r.style){if(t.style){let r=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g,n;for(;n=r.exec(t.style);)e.style.removeProperty(n[1])}r.style&&(e.style.cssText+=r.style)}}(i,o||eu[0],a)}return i}function ed(e,t,r){return ep(e,e,eu,eh(t,r,1!=e.nodeType))}function ef(e,t){if(e.length!=t.length)return!1;for(let r=0;r<e.length;r++)if(!e[r].type.eq(t[r].type))return!1;return!0}function em(e){let t=e.nextSibling;return e.parentNode.removeChild(e),t}class eg{constructor(e,t,r){this.lock=t,this.view=r,this.index=0,this.stack=[],this.changed=!1,this.top=e,this.preMatch=function(e,t){let r=t,n=r.children.length,i=e.childCount,a=new Map,o=[];l:for(;i>0;){let s;for(;;)if(n){let e=r.children[n-1];if(e instanceof en)r=e,n=e.children.length;else{s=e,n--;break}}else if(r==t)break l;else n=r.parent.children.indexOf(r),r=r.parent;let l=s.node;if(l){if(l!=e.child(i-1))break;--i,a.set(s,i),o.push(s)}}return{index:i,matched:a,matches:o.reverse()}}(e.node.content,e)}destroyBetween(e,t){if(e!=t){for(let r=e;r<t;r++)this.top.children[r].destroy();this.top.children.splice(e,t-e),this.changed=!0}}destroyRest(){this.destroyBetween(this.index,this.top.children.length)}syncToMarks(e,t,r,n){let i=0,a=this.stack.length>>1,o=Math.min(a,e.length);for(;i<o&&(i==a-1?this.top:this.stack[i+1<<1]).matchesMark(e[i])&&!1!==e[i].type.spec.spanning;)i++;for(;i<a;)this.destroyRest(),this.top.dirty=0,this.index=this.stack.pop(),this.top=this.stack.pop(),a--;for(;a<e.length;){this.stack.push(this.top,this.index+1);let i=-1,o=this.top.children.length;n<this.preMatch.index&&(o=Math.min(this.index+3,o));for(let t=this.index;t<o;t++){let r=this.top.children[t];if(r.matchesMark(e[a])&&!this.isLocked(r.dom)){i=t;break}}if(i<0&&this.index<this.top.children.length){let t=this.top.children[this.index];t instanceof en&&3!=t.dirty&&t.mark.type==e[a].type&&t.spec.update&&!this.isLocked(t.dom)&&t.spec.update(e[a])&&(t.mark=e[a],i=this.index,this.changed=!0)}if(i>-1)i>this.index&&(this.changed=!0,this.destroyBetween(this.index,i)),this.top=this.top.children[this.index];else{let n=en.create(this.top,e[a],t,r);this.top.children.splice(this.index,0,n),this.top=n,this.changed=!0}this.index=0,a++}}findNodeMatch(e,t,r,n){let i=-1,a;if(n>=this.preMatch.index&&(a=this.preMatch.matches[n-this.preMatch.index]).parent==this.top&&a.matchesNode(e,t,r))i=this.top.children.indexOf(a,this.index);else for(let n=this.index,a=Math.min(this.top.children.length,n+5);n<a;n++){let a=this.top.children[n];if(a.matchesNode(e,t,r)&&!this.preMatch.matched.has(a)){i=n;break}}return!(i<0)&&(this.destroyBetween(this.index,i),this.index++,!0)}updateNodeAt(e,t,r,n,i){let a=this.top.children[n];return 3==a.dirty&&a.dom==a.contentDOM&&(a.dirty=2),!!a.update(e,t,r,i)&&(this.destroyBetween(this.index,n),this.index++,!0)}findIndexWithChild(e){for(;;){let t=e.parentNode;if(!t)return -1;if(t==this.top.contentDOM){let t=e.pmViewDesc;if(t){for(let e=this.index;e<this.top.children.length;e++)if(this.top.children[e]==t)return e}return -1}e=t}}updateNextNode(e,t,r,n,i,a){for(let o=this.index;o<this.top.children.length;o++){let s=this.top.children[o];if(s instanceof ei){let l=this.preMatch.matched.get(s);if(null!=l&&l!=i)return!1;let c=s.dom,u,h=this.isLocked(c)&&!(e.isText&&s.node&&s.node.isText&&s.nodeDOM.nodeValue==e.text&&3!=s.dirty&&ef(t,s.outerDeco));if(!h&&s.update(e,t,r,n))return this.destroyBetween(this.index,o),s.dom!=c&&(this.changed=!0),this.index++,!0;if(!h&&(u=this.recreateWrapper(s,e,t,r,n,a)))return this.destroyBetween(this.index,o),this.top.children[this.index]=u,u.contentDOM&&(u.dirty=2,u.updateChildren(n,a+1),u.dirty=0),this.changed=!0,this.index++,!0;break}}return!1}recreateWrapper(e,t,r,n,i,a){if(e.dirty||t.isAtom||!e.children.length||!e.node.content.eq(t.content)||!ef(r,e.outerDeco)||!n.eq(e.innerDeco))return null;let o=ei.create(this.top,t,r,n,i,a);if(o.contentDOM)for(let t of(o.children=e.children,e.children=[],o.children))t.parent=o;return e.destroy(),o}addNode(e,t,r,n,i){let a=ei.create(this.top,e,t,r,n,i);a.contentDOM&&a.updateChildren(n,i+1),this.top.children.splice(this.index++,0,a),this.changed=!0}placeWidget(e,t,r){let n=this.index<this.top.children.length?this.top.children[this.index]:null;if(n&&n.matchesWidget(e)&&(e==n.widget||!n.widget.type.toDOM.parentNode))this.index++;else{let n=new et(this.top,e,t,r);this.top.children.splice(this.index++,0,n),this.changed=!0}}addTextblockHacks(){let e=this.top.children[this.index-1],t=this.top;for(;e instanceof en;)e=(t=e).children[t.children.length-1];(!e||!(e instanceof eo)||/\n$/.test(e.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(e.node.text))&&((T||N)&&e&&"false"==e.dom.contentEditable&&this.addHackNode("IMG",t),this.addHackNode("BR",this.top))}addHackNode(e,t){if(t==this.top&&this.index<t.children.length&&t.children[this.index].matchesHack(e))this.index++;else{let r=document.createElement(e);"IMG"==e&&(r.className="ProseMirror-separator",r.alt=""),"BR"==e&&(r.className="ProseMirror-trailingBreak");let n=new es(this.top,[],r,null);t!=this.top?t.children.push(n):t.children.splice(this.index++,0,n),this.changed=!0}}isLocked(e){return this.lock&&(e==this.lock||1==e.nodeType&&e.contains(this.lock.parentNode))}}function eA(e,t){return e.type.side-t.type.side}function ey(e,t,r,n,i){let a=[];for(let o=0,s=0;o<e.length;o++){let l=e[o],c=s,u=s+=l.size;c>=r||u<=t?a.push(l):(c<t&&a.push(l.slice(0,t-c,n)),i&&(a.push(i),i=void 0),u>r&&a.push(l.slice(r-c,l.size,n)))}return a}function ev(e,t=null){let r=e.domSelectionRange(),i=e.state.doc;if(!r.focusNode)return null;let a=e.docView.nearestDesc(r.focusNode),s=a&&0==a.size,l=e.docView.posFromDOM(r.focusNode,r.focusOffset,1);if(l<0)return null;let c=i.resolve(l),u,h;if(g(r)){for(u=l;a&&!a.node;)a=a.parent;let e=a.node;if(a&&e.isAtom&&n.nh.isSelectable(e)&&a.parent&&!(e.isInline&&function(e,t,r){for(let n=0==t,i=t==f(e);n||i;){if(e==r)return!0;let t=o(e);if(!(e=e.parentNode))return!1;n=n&&0==t,i=i&&t==f(e)}}(r.focusNode,r.focusOffset,a.dom))){let e=a.posBefore;h=new n.nh(l==e?c:i.resolve(e))}}else{if(r instanceof e.dom.ownerDocument.defaultView.Selection&&r.rangeCount>1){let t=l,n=l;for(let i=0;i<r.rangeCount;i++){let a=r.getRangeAt(i);t=Math.min(t,e.docView.posFromDOM(a.startContainer,a.startOffset,1)),n=Math.max(n,e.docView.posFromDOM(a.endContainer,a.endOffset,-1))}if(t<0)return null;[u,l]=n==e.state.selection.anchor?[n,t]:[t,n],c=i.resolve(l)}else u=e.docView.posFromDOM(r.anchorNode,r.anchorOffset,1);if(u<0)return null}let p=i.resolve(u);if(!h){let r="pointer"==t||e.state.selection.head<c.pos&&!s?1:-1;h=eN(e,p,c,r)}return h}function eR(e){return e.editable?e.hasFocus():eT(e)&&document.activeElement&&document.activeElement.contains(e.dom)}function eb(e,t=!1){let r=e.state.selection;if(eO(e,r),!eR(e))return;let i=e.input.mouseDown;if(!t&&N&&i){let t=e.domSelectionRange(),r=e.domObserver.currentSelection;if(t.anchorNode&&r.anchorNode&&h(t.anchorNode,t.anchorOffset,r.anchorNode,r.anchorOffset)&&i.delaySelUpdate())return void e.domObserver.setCurSelection()}if(e.domObserver.disconnectSelection(),e.cursorWrapper)!function(e){let t=e.domSelection();if(!t)return;let r=e.cursorWrapper.dom,n="IMG"==r.nodeName;n?t.collapse(r.parentNode,o(r)+1):t.collapse(r,0),!n&&!e.state.selection.visible&&S&&w<=11&&(r.disabled=!0,r.disabled=!1)}(e);else{var a;let i,o,s,l,{anchor:c,head:u}=r,h,p;ex&&!(r instanceof n.U3)&&(r.$from.parent.inlineContent||(h=eM(e,r.from)),r.empty||r.$from.parent.inlineContent||(p=eM(e,r.to))),e.docView.setSelection(c,u,e,t),ex&&(h&&ew(h),p&&ew(p)),r.visible?e.dom.classList.remove("ProseMirror-hideselection"):(e.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&((i=(a=e).dom.ownerDocument).removeEventListener("selectionchange",a.input.hideSelectionGuard),s=(o=a.domSelectionRange()).anchorNode,l=o.anchorOffset,i.addEventListener("selectionchange",a.input.hideSelectionGuard=()=>{(o.anchorNode!=s||o.anchorOffset!=l)&&(i.removeEventListener("selectionchange",a.input.hideSelectionGuard),setTimeout(()=>{(!eR(a)||a.state.selection.visible)&&a.dom.classList.remove("ProseMirror-hideselection")},20))})))}e.domObserver.setCurSelection(),e.domObserver.connectSelection()}let ex=T||N&&_<63;function eM(e,t){let{node:r,offset:n}=e.docView.domFromPos(t,0),i=n<r.childNodes.length?r.childNodes[n]:null,a=n?r.childNodes[n-1]:null;if(T&&i&&"false"==i.contentEditable)return eS(i);if((!i||"false"==i.contentEditable)&&(!a||"false"==a.contentEditable)){if(i)return eS(i);else if(a)return eS(a)}}function eS(e){return e.contentEditable="true",T&&e.draggable&&(e.draggable=!1,e.wasDraggable=!0),e}function ew(e){e.contentEditable="false",e.wasDraggable&&(e.draggable=!0,e.wasDraggable=null)}function eO(e,t){if(t instanceof n.nh){let r=e.docView.descAt(t.from);r!=e.lastSelectedViewDesc&&(eL(e),r&&r.selectNode(),e.lastSelectedViewDesc=r)}else eL(e)}function eL(e){e.lastSelectedViewDesc&&(e.lastSelectedViewDesc.parent&&e.lastSelectedViewDesc.deselectNode(),e.lastSelectedViewDesc=void 0)}function eN(e,t,r,i){return e.someProp("createSelectionBetween",n=>n(e,t,r))||n.U3.between(t,r,i)}function e_(e){return(!e.editable||!!e.hasFocus())&&eT(e)}function eT(e){let t=e.domSelectionRange();if(!t.anchorNode)return!1;try{return e.dom.contains(3==t.anchorNode.nodeType?t.anchorNode.parentNode:t.anchorNode)&&(e.editable||e.dom.contains(3==t.focusNode.nodeType?t.focusNode.parentNode:t.focusNode))}catch(e){return!1}}function eP(e,t){let{$anchor:r,$head:i}=e.selection,a=t>0?r.max(i):r.min(i),o=a.parent.inlineContent?a.depth?e.doc.resolve(t>0?a.after():a.before()):null:a;return o&&n.LN.findFrom(o,t)}function eC(e,t){return e.dispatch(e.state.tr.setSelection(t).scrollIntoView()),!0}function eI(e,t,r){let i=e.state.selection;if(i instanceof n.U3){if(r.indexOf("s")>-1){let{$head:r}=i,a=r.textOffset?null:t<0?r.nodeBefore:r.nodeAfter;if(!a||a.isText||!a.isLeaf)return!1;let o=e.state.doc.resolve(r.pos+a.nodeSize*(t<0?-1:1));return eC(e,new n.U3(i.$anchor,o))}else if(!i.empty)return!1;else if(e.endOfTextblock(t>0?"forward":"backward")){let r=eP(e.state,t);return!!r&&r instanceof n.nh&&eC(e,r)}else if(!(C&&r.indexOf("m")>-1)){let r=i.$head,a=r.textOffset?null:t<0?r.nodeBefore:r.nodeAfter,o;if(!a||a.isText)return!1;let s=t<0?r.pos-a.nodeSize:r.pos;return!!(a.isAtom||(o=e.docView.descAt(s))&&!o.contentDOM)&&(n.nh.isSelectable(a)?eC(e,new n.nh(t<0?e.state.doc.resolve(r.pos-a.nodeSize):r)):!!F&&eC(e,new n.U3(e.state.doc.resolve(t<0?s:s+a.nodeSize))))}}else{if(i instanceof n.nh&&i.node.isInline)return eC(e,new n.U3(t>0?i.$to:i.$from));let r=eP(e.state,t);return!!r&&eC(e,r)}}function ek(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function eF(e,t){let r=e.pmViewDesc;return r&&0==r.size&&(t<0||e.nextSibling||"BR"!=e.nodeName)}function eX(e,t){return t<0?function(e){let t=e.domSelectionRange(),r=t.focusNode,n=t.focusOffset;if(!r)return;let i,a,s=!1;for(O&&1==r.nodeType&&n<ek(r)&&eF(r.childNodes[n],-1)&&(s=!0);;)if(n>0)if(1!=r.nodeType)break;else{let e=r.childNodes[n-1];if(eF(e,-1))i=r,a=--n;else if(3==e.nodeType)n=(r=e).nodeValue.length;else break}else if(eU(r))break;else{let t=r.previousSibling;for(;t&&eF(t,-1);)i=r.parentNode,a=o(t),t=t.previousSibling;if(t)n=ek(r=t);else{if((r=r.parentNode)==e.dom)break;n=0}}s?eW(e,r,n):i&&eW(e,i,a)}(e):function(e){let t,r,n=e.domSelectionRange(),i=n.focusNode,a=n.focusOffset;if(!i)return;let s=ek(i);for(;;)if(a<s){if(1!=i.nodeType)break;if(eF(i.childNodes[a],1))t=i,r=++a;else break}else if(eU(i))break;else{let n=i.nextSibling;for(;n&&eF(n,1);)t=n.parentNode,r=o(n)+1,n=n.nextSibling;if(n)a=0,s=ek(i=n);else{if((i=i.parentNode)==e.dom)break;a=s=0}}t&&eW(e,t,r)}(e)}function eU(e){let t=e.pmViewDesc;return t&&t.node&&t.node.isBlock}function eW(e,t,r){if(3!=t.nodeType){let e,n;(n=function(e,t){for(;e&&t==e.childNodes.length&&!m(e);)t=o(e)+1,e=e.parentNode;for(;e&&t<e.childNodes.length;){let r=e.childNodes[t];if(3==r.nodeType)return r;if(1==r.nodeType&&"false"==r.contentEditable)break;e=r,t=0}}(t,r))?(t=n,r=0):(e=function(e,t){for(;e&&!t&&!m(e);)t=o(e),e=e.parentNode;for(;e&&t;){let r=e.childNodes[t-1];if(3==r.nodeType)return r;if(1==r.nodeType&&"false"==r.contentEditable)break;t=(e=r).childNodes.length}}(t,r))&&(t=e,r=e.nodeValue.length)}let n=e.domSelection();if(!n)return;if(g(n)){let e=document.createRange();e.setEnd(t,r),e.setStart(t,r),n.removeAllRanges(),n.addRange(e)}else n.extend&&n.extend(t,r);e.domObserver.setCurSelection();let{state:i}=e;setTimeout(()=>{e.state==i&&eb(e)},50)}function eV(e,t){let r=e.state.doc.resolve(t);if(!(N||I)&&r.parent.inlineContent){let n=e.coordsAtPos(t);if(t>r.start()){let r=e.coordsAtPos(t-1),i=(r.top+r.bottom)/2;if(i>n.top&&i<n.bottom&&Math.abs(r.left-n.left)>1)return r.left<n.left?"ltr":"rtl"}if(t<r.end()){let r=e.coordsAtPos(t+1),i=(r.top+r.bottom)/2;if(i>n.top&&i<n.bottom&&Math.abs(r.left-n.left)>1)return r.left>n.left?"ltr":"rtl"}}return"rtl"==getComputedStyle(e.dom).direction?"rtl":"ltr"}function eE(e,t,r){let i=e.state.selection;if(i instanceof n.U3&&!i.empty||r.indexOf("s")>-1||C&&r.indexOf("m")>-1)return!1;let{$from:a,$to:o}=i;if(!a.parent.inlineContent||e.endOfTextblock(t<0?"up":"down")){let r=eP(e.state,t);if(r&&r instanceof n.nh)return eC(e,r)}if(!a.parent.inlineContent){let r=t<0?a:o,s=i instanceof n.i5?n.LN.near(r,t):n.LN.findFrom(r,t);return!!s&&eC(e,s)}return!1}function eY(e,t){if(!(e.state.selection instanceof n.U3))return!0;let{$head:r,$anchor:i,empty:a}=e.state.selection;if(!r.sameParent(i))return!0;if(!a)return!1;if(e.endOfTextblock(t>0?"forward":"backward"))return!0;let o=!r.textOffset&&(t<0?r.nodeBefore:r.nodeAfter);if(o&&!o.isText){let n=e.state.tr;return t<0?n.delete(r.pos-o.nodeSize,r.pos):n.delete(r.pos,r.pos+o.nodeSize),e.dispatch(n),!0}return!1}function eD(e,t,r){e.domObserver.stop(),t.contentEditable=r,e.domObserver.start()}function eQ(e,t){e.someProp("transformCopied",r=>{t=r(t,e)});let r=[],{content:n,openStart:a,openEnd:o}=t;for(;a>1&&o>1&&1==n.childCount&&1==n.firstChild.childCount;){a--,o--;let e=n.firstChild;r.push(e.type.name,e.attrs!=e.type.defaultAttrs?e.attrs:null),n=e.content}let s=e.someProp("clipboardSerializer")||i.ZF.fromSchema(e.state.schema),l=ez(),c=l.createElement("div");c.appendChild(s.serializeFragment(n,{document:l}));let u=c.firstChild,h,p=0;for(;u&&1==u.nodeType&&(h=eH[u.nodeName.toLowerCase()]);){for(let e=h.length-1;e>=0;e--){let t=l.createElement(h[e]);for(;c.firstChild;)t.appendChild(c.firstChild);c.appendChild(t),p++}u=c.firstChild}return u&&1==u.nodeType&&u.setAttribute("data-pm-slice",`${a} ${o}${p?` -${p}`:""} ${JSON.stringify(r)}`),{dom:c,text:e.someProp("clipboardTextSerializer",r=>r(t,e))||t.content.textBetween(0,t.content.size,"\n\n"),slice:t}}function e$(e,t,r,n,a){let o,s,l=a.parent.type.spec.code;if(!r&&!t)return null;let c=!!t&&(n||l||!r);if(c){if(e.someProp("transformPastedText",r=>{t=r(t,l||n,e)}),l)return s=new i.Ji(i.FK.from(e.state.schema.text(t.replace(/\r\n?/g,"\n"))),0,0),e.someProp("transformPasted",t=>{s=t(s,e,!0)}),s;let r=e.someProp("clipboardTextParser",r=>r(t,a,n,e));if(r)s=r;else{let r=a.marks(),{schema:n}=e.state,s=i.ZF.fromSchema(n);o=document.createElement("div"),t.split(/(?:\r\n?|\n)+/).forEach(e=>{let t=o.appendChild(document.createElement("p"));e&&t.appendChild(s.serializeNode(n.text(e,r)))})}}else e.someProp("transformPastedHTML",t=>{r=t(r,e)}),o=function(e){var t;let r,n=/^(\s*<meta [^>]*>)*/.exec(e);n&&(e=e.slice(n[0].length));let i=ez(),a=i.body,o=/<([a-z][^>\s]+)/i.exec(e),s;if((s=o&&eH[o[1].toLowerCase()])&&(e=s.map(e=>"<"+e+">").join("")+e+s.map(e=>"</"+e+">").reverse().join("")),a.innerHTML=(t=e,(r=window.trustedTypes)?(eJ||(eJ=r.defaultPolicy||r.createPolicy("ProseMirrorClipboard",{createHTML:e=>e})),eJ.createHTML(t)):t),s)for(let e=0;e<s.length;e++)a=a.querySelector(s[e])||a;for(let e=0;e<i.styleSheets.length;e++){let t=i.styleSheets[e];for(let e=0;e<t.rules.length;e++){let r=t.rules[e];if(r instanceof CSSStyleRule){let e=a.querySelectorAll(r.selectorText);for(let t=0;t<e.length;t++)e[t].style.cssText+=r.style.cssText}}}return a}(r),F&&function(e){let t=e.querySelectorAll(N?"span:not([class]):not([style])":"span.Apple-converted-space");for(let r=0;r<t.length;r++){let n=t[r];1==n.childNodes.length&&" "==n.textContent&&n.parentNode&&n.parentNode.replaceChild(e.ownerDocument.createTextNode(" "),n)}}(o);let u=o&&o.querySelector("[data-pm-slice]"),h=u&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(u.getAttribute("data-pm-slice")||"");if(h&&h[3])for(let e=+h[3];e>0;e--){let e=o.firstChild;for(;e&&1!=e.nodeType;)e=e.nextSibling;if(!e)break;o=e}if(s||(s=(e.someProp("clipboardParser")||e.someProp("domParser")||i.S4.fromSchema(e.state.schema)).parseSlice(o,{preserveWhitespace:!!(c||h),context:a,ruleFromNode:e=>"BR"!=e.nodeName||e.nextSibling||!e.parentNode||eB.test(e.parentNode.nodeName)?null:{ignore:!0}})),h)s=function(e,t){if(!e.size)return e;let r=e.content.firstChild.type.schema,n;try{n=JSON.parse(t)}catch(t){return e}let{content:a,openStart:o,openEnd:s}=e;for(let e=n.length-2;e>=0;e-=2){let t=r.nodes[n[e]];if(!t||t.hasRequiredAttrs())break;a=i.FK.from(t.create(n[e+1],a)),o++,s++}return new i.Ji(a,o,s)}(eG(s,+h[1],+h[2]),h[4]);else if((s=i.Ji.maxOpen(function(e,t){if(e.childCount<2)return e;for(let r=t.depth;r>=0;r--){let n=t.node(r).contentMatchAt(t.index(r)),a,o=[];if(e.forEach(e=>{if(!o)return;let t=n.findWrapping(e.type),r;if(!t)return o=null;if(r=o.length&&a.length&&function e(t,r,n,a,o){if(o<t.length&&o<r.length&&t[o]==r[o]){let s=e(t,r,n,a.lastChild,o+1);if(s)return a.copy(a.content.replaceChild(a.childCount-1,s));if(a.contentMatchAt(a.childCount).matchType(o==t.length-1?n.type:t[o+1]))return a.copy(a.content.append(i.FK.from(eZ(n,t,o+1))))}}(t,a,e,o[o.length-1],0))o[o.length-1]=r;else{o.length&&(o[o.length-1]=function e(t,r){if(0==r)return t;let n=t.content.replaceChild(t.childCount-1,e(t.lastChild,r-1)),a=t.contentMatchAt(t.childCount).fillBefore(i.FK.empty,!0);return t.copy(n.append(a))}(o[o.length-1],a.length));let r=eZ(e,t);o.push(r),n=n.matchType(r.type),a=t}}),o)return i.FK.from(o)}return e}(s.content,a),!0)).openStart||s.openEnd){let e=0,t=0;for(let t=s.content.firstChild;e<s.openStart&&!t.type.spec.isolating;e++,t=t.firstChild);for(let e=s.content.lastChild;t<s.openEnd&&!e.type.spec.isolating;t++,e=e.lastChild);s=eG(s,e,t)}return e.someProp("transformPasted",t=>{s=t(s,e,c)}),s}let eB=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function eZ(e,t,r=0){for(let n=t.length-1;n>=r;n--)e=t[n].create(null,i.FK.from(e));return e}function eK(e,t,r,n,a,o){let s=t<0?e.firstChild:e.lastChild,l=s.content;return e.childCount>1&&(o=0),a<n-1&&(l=eK(l,t,r,n,a+1,o)),a>=r&&(l=t<0?s.contentMatchAt(0).fillBefore(l,o<=a).append(l):l.append(s.contentMatchAt(s.childCount).fillBefore(i.FK.empty,!0))),e.replaceChild(t<0?0:e.childCount-1,s.copy(l))}function eG(e,t,r){return t<e.openStart&&(e=new i.Ji(eK(e.content,-1,t,e.openStart,0,e.openEnd),t,e.openEnd)),r<e.openEnd&&(e=new i.Ji(eK(e.content,1,r,e.openEnd,0,0),e.openStart,r)),e}let eH={thead:["table"],tbody:["table"],tfoot:["table"],caption:["table"],colgroup:["table"],col:["table","colgroup"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","tbody","tr"]};function ez(){return document.implementation.createHTMLDocument("title")}let eJ=null,ej={},eq={},e0={touchstart:!0,touchmove:!0};class e1{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:"",button:0},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastChromeDelete=0,this.composing=!1,this.compositionNode=null,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.badSafariComposition=!1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function e2(e,t){e.input.lastSelectionOrigin=t,e.input.lastSelectionTime=Date.now()}function e3(e){e.someProp("handleDOMEvents",t=>{for(let r in t)e.input.eventHandlers[r]||e.dom.addEventListener(r,e.input.eventHandlers[r]=t=>e5(e,t))})}function e5(e,t){return e.someProp("handleDOMEvents",r=>{let n=r[t.type];return!!n&&(n(e,t)||t.defaultPrevented)})}function e4(e){return{left:e.clientX,top:e.clientY}}function e6(e,t,r,n,i){if(-1==n)return!1;let a=e.state.doc.resolve(n);for(let n=a.depth+1;n>0;n--)if(e.someProp(t,t=>n>a.depth?t(e,r,a.nodeAfter,a.before(n),i,!0):t(e,r,a.node(n),a.before(n),i,!1)))return!0;return!1}function e8(e,t,r){if(e.focused||e.focus(),e.state.selection.eq(t))return;let n=e.state.tr.setSelection(t);"pointer"==r&&n.setMeta("pointer",!0),e.dispatch(n)}function e9(e,t,r){let i=e.state.doc;if(-1==t)return i.inlineContent?n.U3.create(i,0,i.content.size):null;let a=i.resolve(t);for(let e=a.depth+1;e>0;e--){let t=e>a.depth?a.nodeAfter:a.node(e),o=a.before(e);if(t.inlineContent)return n.U3.create(i,o+1,o+1+t.content.size);if(r&&n.nh.isSelectable(t))return n.nh.create(i,o)}return null}eq.keydown=(e,t)=>{if((e.input.shiftKey=16==t.keyCode||t.shiftKey,!tn(e))&&(e.input.lastKeyCode=t.keyCode,e.input.lastKeyCodeTime=Date.now(),!k||!N||13!=t.keyCode))if(229!=t.keyCode&&e.domObserver.forceFlush(),!P||13!=t.keyCode||t.ctrlKey||t.altKey||t.metaKey)e.someProp("handleKeyDown",r=>r(e,t))||function(e,t){let r,n=t.keyCode,i=(r="",t.ctrlKey&&(r+="c"),t.metaKey&&(r+="m"),t.altKey&&(r+="a"),t.shiftKey&&(r+="s"),r);if(8==n||C&&72==n&&"c"==i)return eY(e,-1)||eX(e,-1);if(46==n&&!t.shiftKey||C&&68==n&&"c"==i)return eY(e,1)||eX(e,1);if(13==n||27==n)return!0;if(37==n||C&&66==n&&"c"==i){let t=37==n?"ltr"==eV(e,e.state.selection.from)?-1:1:-1;return eI(e,t,i)||eX(e,t)}if(39==n||C&&70==n&&"c"==i){let t=39==n?"ltr"==eV(e,e.state.selection.from)?1:-1:1;return eI(e,t,i)||eX(e,t)}else if(38==n||C&&80==n&&"c"==i)return eE(e,-1,i)||eX(e,-1);else if(40==n||C&&78==n&&"c"==i)return function(e){if(!T||e.state.selection.$head.parentOffset>0)return!1;let{focusNode:t,focusOffset:r}=e.domSelectionRange();if(t&&1==t.nodeType&&0==r&&t.firstChild&&"false"==t.firstChild.contentEditable){let r=t.firstChild;eD(e,r,"true"),setTimeout(()=>eD(e,r,"false"),20)}return!1}(e)||eE(e,1,i)||eX(e,1);else if(i==(C?"m":"c")&&(66==n||73==n||89==n||90==n))return!0;return!1}(e,t)?t.preventDefault():e2(e,"key");else{let t=Date.now();e.input.lastIOSEnter=t,e.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{e.input.lastIOSEnter==t&&(e.someProp("handleKeyDown",t=>t(e,A(13,"Enter"))),e.input.lastIOSEnter=0)},200)}},eq.keyup=(e,t)=>{16==t.keyCode&&(e.input.shiftKey=!1)},eq.keypress=(e,t)=>{if(tn(e)||!t.charCode||t.ctrlKey&&!t.altKey||C&&t.metaKey)return;if(e.someProp("handleKeyPress",r=>r(e,t)))return void t.preventDefault();let r=e.state.selection;if(!(r instanceof n.U3)||!r.$from.sameParent(r.$to)){let n=String.fromCharCode(t.charCode),i=()=>e.state.tr.insertText(n).scrollIntoView();/[\r\n]/.test(n)||e.someProp("handleTextInput",t=>t(e,r.$from.pos,r.$to.pos,n,i))||e.dispatch(i()),t.preventDefault()}};let e7=C?"metaKey":"ctrlKey";ej.mousedown=(e,t)=>{var r;let i,a;e.input.shiftKey=t.shiftKey;let o=ts(e),s=Date.now(),l="singleClick";s-e.input.lastClick.time<500&&(i=(r=e.input.lastClick).x-t.clientX)*i+(a=r.y-t.clientY)*a<100&&!t[e7]&&e.input.lastClick.button==t.button&&("singleClick"==e.input.lastClick.type?l="doubleClick":"doubleClick"==e.input.lastClick.type&&(l="tripleClick")),e.input.lastClick={time:s,x:t.clientX,y:t.clientY,type:l,button:t.button},e.input.mouseDown&&e.input.mouseDown.done();let c=e.posAtCoords(e4(t));c&&("singleClick"==l?e.input.mouseDown=new tt(e,c,t,!!o):("doubleClick"==l?function(e,t,r,n){return e6(e,"handleDoubleClickOn",t,r,n)||e.someProp("handleDoubleClick",r=>r(e,t,n))}:function(e,t,r,i){return e6(e,"handleTripleClickOn",t,r,i)||e.someProp("handleTripleClick",r=>r(e,t,i))||function(e,t,r){if(0!=r.button)return!1;let i=e9(e,t,!0),a=e.state.doc;return!!i&&(e8(e,i,"pointer"),i instanceof n.U3&&a.eq(e.state.doc)&&(e.input.mouseDown=new tr(e,i)),!0)}(e,r,i)})(e,c.pos,c.inside,t)?t.preventDefault():e2(e,"pointer"))};class te{constructor(e){this.view=e,this.mightDrag=null,e.root.addEventListener("mouseup",this.up=this.up.bind(this)),e.root.addEventListener("mousemove",this.move=this.move.bind(this))}up(e){this.done()}move(e){0==e.buttons&&this.done()}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.view.input.mouseDown==this&&(this.view.input.mouseDown=null)}delaySelUpdate(){return!1}}class tt extends te{constructor(e,t,r,i){let a,o;if(super(e),this.pos=t,this.event=r,this.flushed=i,this.delayedSelectionSync=!1,this.startDoc=e.state.doc,this.selectNode=!!r[e7],this.allowDefault=r.shiftKey,t.inside>-1)a=e.state.doc.nodeAt(t.inside),o=t.inside;else{let r=e.state.doc.resolve(t.pos);a=r.parent,o=r.depth?r.before():0}let s=i?null:r.target,l=s?e.docView.nearestDesc(s,!0):null;this.target=l&&1==l.nodeDOM.nodeType?l.nodeDOM:null;let{selection:c}=e.state;0==r.button&&(a.type.spec.draggable&&!1!==a.type.spec.selectable||c instanceof n.nh&&c.from<=o&&c.to>o)&&(this.mightDrag={node:a,pos:o,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&O&&!this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")},20),this.view.domObserver.start()),e2(e,"pointer")}done(){super.done(),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>{this.view.isDestroyed||eb(this.view)})}up(e){if(this.done(),!this.view.dom.contains(e.target))return;let t=this.pos;if(this.view.state.doc!=this.startDoc&&(t=this.view.posAtCoords(e4(e))),this.updateAllowDefault(e),this.allowDefault||!t)e2(this.view,"pointer");else{var r,i,a,o;(r=this.view,i=t.pos,a=t.inside,o=this.selectNode,e6(r,"handleClickOn",i,a,e)||r.someProp("handleClick",t=>t(r,i,e))||(o?function(e,t){if(-1==t)return!1;let r=e.state.selection,i,a;r instanceof n.nh&&(i=r.node);let o=e.state.doc.resolve(t);for(let e=o.depth+1;e>0;e--){let t=e>o.depth?o.nodeAfter:o.node(e);if(n.nh.isSelectable(t)){a=i&&r.$from.depth>0&&e>=r.$from.depth&&o.before(r.$from.depth+1)==r.$from.pos?o.before(r.$from.depth):o.before(e);break}}return null!=a&&(e8(e,n.nh.create(e.state.doc,a),"pointer"),!0)}(r,a):function(e,t){if(-1==t)return!1;let r=e.state.doc.resolve(t),i=r.nodeAfter;return!!(i&&i.isAtom&&n.nh.isSelectable(i))&&(e8(e,new n.nh(r),"pointer"),!0)}(r,a)))?e.preventDefault():0==e.button&&(this.flushed||T&&this.mightDrag&&!this.mightDrag.node.isAtom||N&&!this.view.state.selection.visible&&2>=Math.min(Math.abs(t.pos-this.view.state.selection.from),Math.abs(t.pos-this.view.state.selection.to)))?(e8(this.view,n.LN.near(this.view.state.doc.resolve(t.pos)),"pointer"),e.preventDefault()):e2(this.view,"pointer")}}move(e){this.updateAllowDefault(e),e2(this.view,"pointer"),super.move(e)}updateAllowDefault(e){!this.allowDefault&&(Math.abs(this.event.x-e.clientX)>4||Math.abs(this.event.y-e.clientY)>4)&&(this.allowDefault=!0)}delaySelUpdate(){return!!this.allowDefault&&(this.delayedSelectionSync=!0,!0)}}class tr extends te{constructor(e,t){super(e),this.startSelection=t,this.startDoc=e.state.doc}move(e){if(0==e.buttons||this.view.isDestroyed||!this.view.state.doc.eq(this.startDoc))return void this.done();e.preventDefault(),e2(this.view,"pointer");let t=this.view.posAtCoords(e4(e)),r=t&&e9(this.view,t.inside,!1);if(!r)return;let{doc:i}=this.view.state,a=this.startSelection,[o,s]=r.from<a.from?[a.to,r.from]:[a.from,r.to];e8(this.view,n.U3.create(i,o,s),"pointer")}}function tn(e,t){return!!e.composing||!!(T&&500>Math.abs(Date.now()-e.input.compositionEndedAt))&&(e.input.compositionEndedAt=-2e8,!0)}ej.touchstart=e=>{e.input.lastTouch=Date.now(),ts(e),e2(e,"pointer")},ej.touchmove=e=>{e.input.lastTouch=Date.now(),e2(e,"pointer")},ej.contextmenu=e=>ts(e);let ti=k?5e3:-1;function ta(e,t){clearTimeout(e.input.composingTimeout),t>-1&&(e.input.composingTimeout=setTimeout(()=>ts(e),t))}function to(e){for(e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=Date.now());e.input.compositionNodes.length>0;)e.input.compositionNodes.pop().markParentsDirty()}function ts(e,t=!1){if(!k||!(e.domObserver.flushingSoon>=0)){if(e.domObserver.forceFlush(),to(e),t||e.docView&&e.docView.dirty){let r=ev(e),n=e.state.selection;return r&&!r.eq(n)?e.dispatch(e.state.tr.setSelection(r)):(e.markCursor||t)&&!n.$from.node(n.$from.sharedDepth(n.to)).inlineContent?e.dispatch(e.state.tr.deleteSelection()):e.updateState(e.state),!0}return!1}}eq.compositionstart=eq.compositionupdate=e=>{if(!e.composing){e.domObserver.flush();let{state:t}=e,r=t.selection.$to;if(t.selection instanceof n.U3&&(t.storedMarks||!r.textOffset&&r.parentOffset&&r.nodeBefore.marks.some(e=>!1===e.type.spec.inclusive)||N&&I&&function(e){let{focusNode:t,focusOffset:r}=e.domSelectionRange();if(!t||1!=t.nodeType||r>=t.childNodes.length)return!1;let n=t.childNodes[r];return 1==n.nodeType&&"false"==n.contentEditable}(e)))e.markCursor=e.state.storedMarks||r.marks(),ts(e,!0),e.markCursor=null;else if(ts(e,!t.selection.empty),O&&t.selection.empty&&r.parentOffset&&!r.textOffset&&r.nodeBefore.marks.length){let t=e.domSelectionRange();for(let r=t.focusNode,n=t.focusOffset;r&&1==r.nodeType&&0!=n;){let t=n<0?r.lastChild:r.childNodes[n-1];if(!t)break;if(3==t.nodeType){let r=e.domSelection();r&&r.collapse(t,t.nodeValue.length);break}r=t,n=-1}}e.input.composing=!0}ta(e,ti)},eq.compositionend=(e,t)=>{e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=Date.now(),e.input.compositionPendingChanges=e.domObserver.pendingRecords().length?e.input.compositionID:0,e.input.compositionNode=null,e.input.badSafariComposition?e.domObserver.forceFlush():e.input.compositionPendingChanges&&Promise.resolve().then(()=>e.domObserver.flush()),e.input.compositionID++,ta(e,20))};let tl=S&&w<15||P&&X<604;function tc(e,t,r,n,a){let o=e$(e,t,r,n,e.state.selection.$from);if(e.someProp("handlePaste",t=>t(e,a,o||i.Ji.empty)))return!0;if(!o)return!1;let s=0==o.openStart&&0==o.openEnd&&1==o.content.childCount?o.content.firstChild:null,l=s?e.state.tr.replaceSelectionWith(s,n):e.state.tr.replaceSelection(o);return e.dispatch(l.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function tu(e){let t=e.getData("text/plain")||e.getData("Text");if(t)return t;let r=e.getData("text/uri-list");return r?r.replace(/\r?\n/g," "):""}ej.copy=eq.cut=(e,t)=>{let r=e.state.selection,n="cut"==t.type;if(r.empty)return;let i=tl?null:t.clipboardData,{dom:a,text:o}=eQ(e,r.content());i?(t.preventDefault(),i.clearData(),i.setData("text/html",a.innerHTML),i.setData("text/plain",o)):function(e,t){if(!e.dom.parentNode)return;let r=e.dom.parentNode.appendChild(document.createElement("div"));r.appendChild(t),r.style.cssText="position: fixed; left: -10000px; top: 10px";let n=getSelection(),i=document.createRange();i.selectNodeContents(t),e.dom.blur(),n.removeAllRanges(),n.addRange(i),setTimeout(()=>{r.parentNode&&r.parentNode.removeChild(r),e.focus()},50)}(e,a),n&&e.dispatch(e.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))},eq.paste=(e,t)=>{if(e.composing&&!k)return;let r=tl?null:t.clipboardData,n=e.input.shiftKey&&45!=e.input.lastKeyCode;r&&tc(e,tu(r),r.getData("text/html"),n,t)?t.preventDefault():function(e,t){if(!e.dom.parentNode)return;let r=e.input.shiftKey||e.state.selection.$from.parent.type.spec.code,n=e.dom.parentNode.appendChild(document.createElement(r?"textarea":"div"));r||(n.contentEditable="true"),n.style.cssText="position: fixed; left: -10000px; top: 10px",n.focus();let i=e.input.shiftKey&&45!=e.input.lastKeyCode;setTimeout(()=>{e.focus(),n.parentNode&&n.parentNode.removeChild(n),r?tc(e,n.value,null,i,t):tc(e,n.textContent,n.innerHTML,i,t)},50)}(e,t)};class th{constructor(e,t,r){this.slice=e,this.move=t,this.node=r}}let tp=C?"altKey":"ctrlKey";function td(e,t){let r;return e.someProp("dragCopies",e=>{r=r||e(t)}),null!=r?!r:!t[tp]}for(let e in ej.dragstart=(e,t)=>{let r,i=e.input.mouseDown;if(i&&i.done(),!t.dataTransfer)return;let a=e.state.selection,o=a.empty?null:e.posAtCoords(e4(t));if(o&&o.pos>=a.from&&o.pos<=(a instanceof n.nh?a.to-1:a.to));else if(i&&i.mightDrag)r=n.nh.create(e.state.doc,i.mightDrag.pos);else if(t.target&&1==t.target.nodeType){let i=e.docView.nearestDesc(t.target,!0);i&&i.node.type.spec.draggable&&i!=e.docView&&(r=n.nh.create(e.state.doc,i.posBefore))}let s=(r||e.state.selection).content(),{dom:l,text:c,slice:u}=eQ(e,s);t.dataTransfer.files.length&&N&&!(_>120)||t.dataTransfer.clearData(),t.dataTransfer.setData(tl?"Text":"text/html",l.innerHTML),t.dataTransfer.effectAllowed="copyMove",tl||t.dataTransfer.setData("text/plain",c),e.dragging=new th(u,td(e,t),r)},ej.dragend=e=>{let t=e.dragging;window.setTimeout(()=>{e.dragging==t&&(e.dragging=null)},50)},eq.dragover=eq.dragenter=(e,t)=>t.preventDefault(),eq.drop=(e,t)=>{try{!function(e,t,r){if(!t.dataTransfer)return;let o=e.posAtCoords(e4(t));if(!o)return;let s=e.state.doc.resolve(o.pos),l=r&&r.slice;l?e.someProp("transformPasted",t=>{l=t(l,e,!1)}):l=e$(e,tu(t.dataTransfer),tl?null:t.dataTransfer.getData("text/html"),!1,s);let c=!!(r&&td(e,t));if(e.someProp("handleDrop",r=>r(e,t,l||i.Ji.empty,c)))return t.preventDefault();if(!l)return;t.preventDefault();let u=l?(0,a.Um)(e.state.doc,s.pos,l):s.pos;null==u&&(u=s.pos);let h=e.state.tr;if(c){let{node:e}=r;e?e.replace(h):h.deleteSelection()}let p=h.mapping.map(u),d=0==l.openStart&&0==l.openEnd&&1==l.content.childCount,f=h.doc;if(d?h.replaceRangeWith(p,p,l.content.firstChild):h.replaceRange(p,p,l),h.doc.eq(f))return;let m=h.doc.resolve(p);if(d&&n.nh.isSelectable(l.content.firstChild)&&m.nodeAfter&&m.nodeAfter.sameMarkup(l.content.firstChild))h.setSelection(new n.nh(m));else{let t=h.mapping.map(u);h.mapping.maps[h.mapping.maps.length-1].forEach((e,r,n,i)=>t=i),h.setSelection(eN(e,m,h.doc.resolve(t)))}e.focus(),e.dispatch(h.setMeta("uiEvent","drop"))}(e,t,e.dragging)}finally{e.dragging=null}},ej.focus=e=>{e.input.lastFocus=Date.now(),e.focused||(e.domObserver.stop(),e.dom.classList.add("ProseMirror-focused"),e.domObserver.start(),e.focused=!0,setTimeout(()=>{e.docView&&e.hasFocus()&&!e.domObserver.currentSelection.eq(e.domSelectionRange())&&eb(e)},20))},ej.blur=(e,t)=>{e.focused&&(e.domObserver.stop(),e.dom.classList.remove("ProseMirror-focused"),e.domObserver.start(),t.relatedTarget&&e.dom.contains(t.relatedTarget)&&e.domObserver.currentSelection.clear(),e.focused=!1)},ej.beforeinput=(e,t)=>{if(k&&"deleteContentBackward"==t.inputType){e.domObserver.flushSoon();let{domChangeCount:t}=e.input;setTimeout(()=>{if(e.input.domChangeCount!=t||(e.dom.blur(),e.focus(),e.someProp("handleKeyDown",t=>t(e,A(8,"Backspace")))))return;let{$cursor:r}=e.state.selection;r&&r.pos>0&&e.dispatch(e.state.tr.delete(r.pos-1,r.pos).scrollIntoView())},50)}},eq)ej[e]=eq[e];function tf(e,t){if(e==t)return!0;for(let r in e)if(e[r]!==t[r])return!1;for(let r in t)if(!(r in e))return!1;return!0}class tm{constructor(e,t){this.toDOM=e,this.spec=t||tR,this.side=this.spec.side||0}map(e,t,r,n){let{pos:i,deleted:a}=e.mapResult(t.from+n,this.side<0?-1:1);return a?null:new ty(i-r,i-r,this)}valid(){return!0}eq(e){return this==e||e instanceof tm&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&tf(this.spec,e.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}}class tg{constructor(e,t){this.attrs=e,this.spec=t||tR}map(e,t,r,n){let i=e.map(t.from+n,this.spec.inclusiveStart?-1:1)-r,a=e.map(t.to+n,this.spec.inclusiveEnd?1:-1)-r;return i>=a?null:new ty(i,a,this)}valid(e,t){return t.from<t.to}eq(e){return this==e||e instanceof tg&&tf(this.attrs,e.attrs)&&tf(this.spec,e.spec)}static is(e){return e.type instanceof tg}destroy(){}}class tA{constructor(e,t){this.attrs=e,this.spec=t||tR}map(e,t,r,n){let i=e.mapResult(t.from+n,1);if(i.deleted)return null;let a=e.mapResult(t.to+n,-1);return a.deleted||a.pos<=i.pos?null:new ty(i.pos-r,a.pos-r,this)}valid(e,t){let{index:r,offset:n}=e.content.findIndex(t.from),i;return n==t.from&&!(i=e.child(r)).isText&&n+i.nodeSize==t.to}eq(e){return this==e||e instanceof tA&&tf(this.attrs,e.attrs)&&tf(this.spec,e.spec)}destroy(){}}class ty{constructor(e,t,r){this.from=e,this.to=t,this.type=r}copy(e,t){return new ty(e,t,this.type)}eq(e,t=0){return this.type.eq(e.type)&&this.from+t==e.from&&this.to+t==e.to}map(e,t,r){return this.type.map(e,this,t,r)}static widget(e,t,r){return new ty(e,e,new tm(t,r))}static inline(e,t,r,n){return new ty(e,t,new tg(r,n))}static node(e,t,r,n){return new ty(e,t,new tA(r,n))}get spec(){return this.type.spec}get inline(){return this.type instanceof tg}get widget(){return this.type instanceof tm}}let tv=[],tR={};class tb{constructor(e,t){this.local=e.length?e:tv,this.children=t.length?t:tv}static create(e,t){return t.length?tL(t,e,0,tR):tx}find(e,t,r){let n=[];return this.findInner(null==e?0:e,null==t?1e9:t,n,0,r),n}findInner(e,t,r,n,i){for(let a=0;a<this.local.length;a++){let o=this.local[a];o.from<=t&&o.to>=e&&(!i||i(o.spec))&&r.push(o.copy(o.from+n,o.to+n))}for(let a=0;a<this.children.length;a+=3)if(this.children[a]<t&&this.children[a+1]>e){let o=this.children[a]+1;this.children[a+2].findInner(e-o,t-o,r,n+o,i)}}map(e,t,r){return this==tx||0==e.maps.length?this:this.mapInner(e,t,0,0,r||tR)}mapInner(e,t,r,n,i){let a;for(let o=0;o<this.local.length;o++){let s=this.local[o].map(e,r,n);s&&s.type.valid(t,s)?(a||(a=[])).push(s):i.onRemove&&i.onRemove(this.local[o].spec)}return this.children.length?function(e,t,r,n,i,a,o){let s=e.slice();for(let e=0,t=a;e<r.maps.length;e++){let n=0;r.maps[e].forEach((e,r,i,a)=>{let o=a-i-(r-e);for(let i=0;i<s.length;i+=3){let a=s[i+1];if(a<0||e>a+t-n)continue;let l=s[i]+t-n;r>=l?s[i+1]=e<=l?-2:-1:e>=t&&o&&(s[i]+=o,s[i+1]+=o)}n+=o}),t=r.maps[e].map(t,-1)}let l=!1;for(let t=0;t<s.length;t+=3)if(s[t+1]<0){if(-2==s[t+1]){l=!0,s[t+1]=-1;continue}let c=r.map(e[t]+a),u=c-i;if(u<0||u>=n.content.size){l=!0;continue}let h=r.map(e[t+1]+a,-1)-i,{index:p,offset:d}=n.content.findIndex(u),f=n.maybeChild(p);if(f&&d==u&&d+f.nodeSize==h){let n=s[t+2].mapInner(r,f,c+1,e[t]+a+1,o);n!=tx?(s[t]=u,s[t+1]=h,s[t+2]=n):(s[t+1]=-2,l=!0)}else l=!0}if(l){let l=tL(function(e,t,r,n,i,a,o){for(let s=0;s<e.length;s+=3)-1==e[s+1]&&function e(t,a){for(let e=0;e<t.local.length;e++){let s=t.local[e].map(n,i,a);s?r.push(s):o.onRemove&&o.onRemove(t.local[e].spec)}for(let r=0;r<t.children.length;r+=3)e(t.children[r+2],t.children[r]+a+1)}(e[s+2],t[s]+a+1);return r}(s,e,t,r,i,a,o),n,0,o);t=l.local;for(let e=0;e<s.length;e+=3)s[e+1]<0&&(s.splice(e,3),e-=3);for(let e=0,t=0;e<l.children.length;e+=3){let r=l.children[e];for(;t<s.length&&s[t]<r;)t+=3;s.splice(t,0,l.children[e],l.children[e+1],l.children[e+2])}}return new tb(t.sort(tN),s)}(this.children,a||[],e,t,r,n,i):a?new tb(a.sort(tN),tv):tx}add(e,t){return t.length?this==tx?tb.create(e,t):this.addInner(e,t,0):this}addInner(e,t,r){let n,i=0;e.forEach((e,a)=>{let o=a+r,s;if(s=tw(t,e,o)){for(n||(n=this.children.slice());i<n.length&&n[i]<a;)i+=3;n[i]==a?n[i+2]=n[i+2].addInner(e,s,o+1):n.splice(i,0,a,a+e.nodeSize,tL(s,e,o+1,tR)),i+=3}});let a=tS(i?tO(t):t,-r);for(let t=0;t<a.length;t++)a[t].type.valid(e,a[t])||a.splice(t--,1);return new tb(a.length?this.local.concat(a).sort(tN):this.local,n||this.children)}remove(e){return 0==e.length||this==tx?this:this.removeInner(e,0)}removeInner(e,t){let r=this.children,n=this.local;for(let n=0;n<r.length;n+=3){let i,a=r[n]+t,o=r[n+1]+t;for(let t=0,r;t<e.length;t++)(r=e[t])&&r.from>a&&r.to<o&&(e[t]=null,(i||(i=[])).push(r));if(!i)continue;r==this.children&&(r=this.children.slice());let s=r[n+2].removeInner(i,a+1);s!=tx?r[n+2]=s:(r.splice(n,3),n-=3)}if(n.length){for(let r=0,i;r<e.length;r++)if(i=e[r])for(let e=0;e<n.length;e++)n[e].eq(i,t)&&(n==this.local&&(n=this.local.slice()),n.splice(e--,1))}return r==this.children&&n==this.local?this:n.length||r.length?new tb(n,r):tx}forChild(e,t){let r,n;if(this==tx)return this;if(t.isLeaf)return tb.empty;for(let t=0;t<this.children.length;t+=3)if(this.children[t]>=e){this.children[t]==e&&(r=this.children[t+2]);break}let i=e+1,a=i+t.content.size;for(let e=0;e<this.local.length;e++){let t=this.local[e];if(t.from<a&&t.to>i&&t.type instanceof tg){let e=Math.max(i,t.from)-i,r=Math.min(a,t.to)-i;e<r&&(n||(n=[])).push(t.copy(e,r))}}if(n){let e=new tb(n.sort(tN),tv);return r?new tM([e,r]):e}return r||tx}eq(e){if(this==e)return!0;if(!(e instanceof tb)||this.local.length!=e.local.length||this.children.length!=e.children.length)return!1;for(let t=0;t<this.local.length;t++)if(!this.local[t].eq(e.local[t]))return!1;for(let t=0;t<this.children.length;t+=3)if(this.children[t]!=e.children[t]||this.children[t+1]!=e.children[t+1]||!this.children[t+2].eq(e.children[t+2]))return!1;return!0}locals(e){return t_(this.localsInner(e))}localsInner(e){if(this==tx)return tv;if(e.inlineContent||!this.local.some(tg.is))return this.local;let t=[];for(let e=0;e<this.local.length;e++)this.local[e].type instanceof tg||t.push(this.local[e]);return t}forEachSet(e){e(this)}}tb.empty=new tb([],[]),tb.removeOverlap=t_;let tx=tb.empty;class tM{constructor(e){this.members=e}map(e,t){let r=this.members.map(r=>r.map(e,t,tR));return tM.from(r)}forChild(e,t){if(t.isLeaf)return tb.empty;let r=[];for(let n=0;n<this.members.length;n++){let i=this.members[n].forChild(e,t);i!=tx&&(i instanceof tM?r=r.concat(i.members):r.push(i))}return tM.from(r)}eq(e){if(!(e instanceof tM)||e.members.length!=this.members.length)return!1;for(let t=0;t<this.members.length;t++)if(!this.members[t].eq(e.members[t]))return!1;return!0}locals(e){let t,r=!0;for(let n=0;n<this.members.length;n++){let i=this.members[n].localsInner(e);if(i.length)if(t){r&&(t=t.slice(),r=!1);for(let e=0;e<i.length;e++)t.push(i[e])}else t=i}return t?t_(r?t:t.sort(tN)):tv}static from(e){switch(e.length){case 0:return tx;case 1:return e[0];default:return new tM(e.every(e=>e instanceof tb)?e:e.reduce((e,t)=>e.concat(t instanceof tb?t:t.members),[]))}}forEachSet(e){for(let t=0;t<this.members.length;t++)this.members[t].forEachSet(e)}}function tS(e,t){if(!t||!e.length)return e;let r=[];for(let n=0;n<e.length;n++){let i=e[n];r.push(new ty(i.from+t,i.to+t,i.type))}return r}function tw(e,t,r){if(t.isLeaf)return null;let n=r+t.nodeSize,i=null;for(let t=0,a;t<e.length;t++)(a=e[t])&&a.from>r&&a.to<n&&((i||(i=[])).push(a),e[t]=null);return i}function tO(e){let t=[];for(let r=0;r<e.length;r++)null!=e[r]&&t.push(e[r]);return t}function tL(e,t,r,n){let i=[],a=!1;t.forEach((t,o)=>{let s=tw(e,t,o+r);if(s){a=!0;let e=tL(s,t,r+o+1,n);e!=tx&&i.push(o,o+t.nodeSize,e)}});let o=tS(a?tO(e):e,-r).sort(tN);for(let e=0;e<o.length;e++)o[e].type.valid(t,o[e])||(n.onRemove&&n.onRemove(o[e].spec),o.splice(e--,1));return o.length||i.length?new tb(o,i):tx}function tN(e,t){return e.from-t.from||e.to-t.to}function t_(e){let t=e;for(let r=0;r<t.length-1;r++){let n=t[r];if(n.from!=n.to)for(let i=r+1;i<t.length;i++){let a=t[i];if(a.from==n.from){a.to!=n.to&&(t==e&&(t=e.slice()),t[i]=a.copy(a.from,n.to),tT(t,i+1,a.copy(n.to,a.to)));continue}a.from<n.to&&(t==e&&(t=e.slice()),t[r]=n.copy(n.from,a.from),tT(t,i,n.copy(a.from,n.to)));break}}return t}function tT(e,t,r){for(;t<e.length&&tN(r,e[t])>0;)t++;e.splice(t,0,r)}function tP(e){let t=[];return e.someProp("decorations",r=>{let n=r(e.state);n&&n!=tx&&t.push(n)}),e.cursorWrapper&&t.push(tb.create(e.state.doc,[e.cursorWrapper.deco])),tM.from(t)}let tC={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},tI=S&&w<=11;class tk{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(e){this.anchorNode=e.anchorNode,this.anchorOffset=e.anchorOffset,this.focusNode=e.focusNode,this.focusOffset=e.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(e){return e.anchorNode==this.anchorNode&&e.anchorOffset==this.anchorOffset&&e.focusNode==this.focusNode&&e.focusOffset==this.focusOffset}}class tF{constructor(e,t){this.view=e,this.handleDOMChange=t,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new tk,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.lastChangedTextNode=null,this.observer=window.MutationObserver&&new window.MutationObserver(t=>{for(let e=0;e<t.length;e++)this.queue.push(t[e]);S&&w<=11&&t.some(e=>"childList"==e.type&&e.removedNodes.length||"characterData"==e.type&&e.oldValue.length>e.target.nodeValue.length)?this.flushSoon():T&&e.composing&&t.some(e=>"childList"==e.type&&"TR"==e.target.nodeName)?(e.input.badSafariComposition=!0,this.flushSoon()):this.flush()}),tI&&(this.onCharData=e=>{this.queue.push({target:e.target,type:"characterData",oldValue:e.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,tC)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let e=this.observer.takeRecords();if(e.length){for(let t=0;t<e.length;t++)this.queue.push(e[t]);window.setTimeout(()=>this.flush(),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if(e_(this.view)){if(this.suppressingSelectionUpdates)return eb(this.view);if(S&&w<=11&&!this.view.state.selection.empty){let e=this.view.domSelectionRange();if(e.focusNode&&h(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(e){if(!e.focusNode)return!0;let t=new Set,r;for(let r=e.focusNode;r;r=s(r))t.add(r);for(let n=e.anchorNode;n;n=s(n))if(t.has(n)){r=n;break}let n=r&&this.view.docView.nearestDesc(r);if(n&&n.ignoreMutation({type:"selection",target:3==r.nodeType?r.parentNode:r}))return this.setCurSelection(),!0}pendingRecords(){if(this.observer)for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}flush(){var e;let{view:t}=this;if(!t.docView||this.flushingSoon>-1)return;let r=this.pendingRecords();r.length&&(this.queue=[]);let i=t.domSelectionRange(),a=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(i)&&e_(t)&&!this.ignoreSelectionChange(i),o=-1,s=-1,l=!1,c=[];if(t.editable)for(let e=0;e<r.length;e++){let t=this.registerMutation(r[e],c);t&&(o=o<0?t.from:Math.min(t.from,o),s=s<0?t.to:Math.max(t.to,s),t.typeOver&&(l=!0))}if(c.some(e=>"BR"==e.nodeName)&&(8==t.input.lastKeyCode||46==t.input.lastKeyCode||N&&(t.composing||t.input.compositionEndedAt>Date.now()-50)&&r.some(e=>"childList"==e.type&&e.removedNodes.length))){for(let e of c)if("BR"==e.nodeName&&e.parentNode){let t=e.nextSibling;for(;t&&1==t.nodeType;){if("false"==t.contentEditable){e.parentNode.removeChild(e);break}t=t.firstChild}}}else if(O&&c.length){let e=c.filter(e=>"BR"==e.nodeName);if(2==e.length){let[t,r]=e;t.parentNode&&t.parentNode.parentNode==r.parentNode?r.remove():t.remove()}else{let{focusNode:r}=this.currentSelection;for(let n of e){let e=n.parentNode;e&&"LI"==e.nodeName&&(!r||function(e,t){for(let r=t.parentNode;r&&r!=e.dom;r=r.parentNode){let t=e.docView.nearestDesc(r,!0);if(t&&t.node.isBlock)return r}return null}(t,r)!=e)&&n.remove()}}}let u=null;o<0&&a&&t.input.lastFocus>Date.now()-200&&Math.max(t.input.lastTouch,t.input.lastClick.time)<Date.now()-300&&g(i)&&(u=ev(t))&&u.eq(n.LN.near(t.state.doc.resolve(0),1))?(t.input.lastFocus=0,eb(t),this.currentSelection.set(i),t.scrollToSelection()):(o>-1||a)&&(o>-1&&(t.docView.markDirty(o,s),e=t,!tX.has(e)&&(tX.set(e,null),-1!==["normal","nowrap","pre-line"].indexOf(getComputedStyle(e.dom).whiteSpace))&&(e.requiresGeckoHackNode=O,tU||(console.warn("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package."),tU=!0))),t.input.badSafariComposition&&(t.input.badSafariComposition=!1,function(e,t){var r;let{focusNode:n,focusOffset:i}=e.domSelectionRange();for(let a of t)if((null==(r=a.parentNode)?void 0:r.nodeName)=="TR"){let t=a.nextSibling;for(;t&&"TD"!=t.nodeName&&"TH"!=t.nodeName;)t=t.nextSibling;if(t){let r=t;for(;;){let e=r.firstChild;if(!e||1!=e.nodeType||"false"==e.contentEditable||/^(BR|IMG)$/.test(e.nodeName))break;r=e}r.insertBefore(a,r.firstChild),n==a&&e.domSelection().collapse(a,i)}else a.parentNode.removeChild(a)}}(t,c)),this.handleDOMChange(o,s,l,c),t.docView&&t.docView.dirty?t.updateState(t.state):this.currentSelection.eq(i)||eb(t),this.currentSelection.set(i))}registerMutation(e,t){if(t.indexOf(e.target)>-1)return null;let r=this.view.docView.nearestDesc(e.target);if("attributes"==e.type&&(r==this.view.docView||"contenteditable"==e.attributeName||"style"==e.attributeName&&!e.oldValue&&!e.target.getAttribute("style"))||!r||r.ignoreMutation(e))return null;if("childList"==e.type){for(let r=0;r<e.addedNodes.length;r++){let n=e.addedNodes[r];t.push(n),3==n.nodeType&&(this.lastChangedTextNode=n)}if(r.contentDOM&&r.contentDOM!=r.dom&&!r.contentDOM.contains(e.target))return{from:r.posBefore,to:r.posAfter};let n=e.previousSibling,i=e.nextSibling;if(S&&w<=11&&e.addedNodes.length)for(let t=0;t<e.addedNodes.length;t++){let{previousSibling:r,nextSibling:a}=e.addedNodes[t];(!r||0>Array.prototype.indexOf.call(e.addedNodes,r))&&(n=r),(!a||0>Array.prototype.indexOf.call(e.addedNodes,a))&&(i=a)}let a=n&&n.parentNode==e.target?o(n)+1:0,s=r.localPosFromDOM(e.target,a,-1),l=i&&i.parentNode==e.target?o(i):e.target.childNodes.length;return{from:s,to:r.localPosFromDOM(e.target,l,1)}}return"attributes"==e.type?{from:r.posAtStart-r.border,to:r.posAtEnd+r.border}:(this.lastChangedTextNode=e.target,{from:r.posAtStart,to:r.posAtEnd,typeOver:e.target.nodeValue==e.oldValue})}}let tX=new WeakMap,tU=!1;function tW(e,t){let r=t.startContainer,n=t.startOffset,i=t.endContainer,a=t.endOffset,o=e.domAtPos(e.state.selection.anchor);return h(o.node,o.offset,i,a)&&([r,n,i,a]=[i,a,r,n]),{anchorNode:r,anchorOffset:n,focusNode:i,focusOffset:a}}let tV=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|img|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function tE(e,t,r){return Math.max(r.anchor,r.head)>t.content.size?null:eN(e,t.resolve(r.anchor),t.resolve(r.head))}function tY(e,t,r){let n=e.depth,i=t?e.end():e.pos;for(;n>0&&(t||e.indexAfter(n)==e.node(n).childCount);)n--,i++,t=!1;if(r){let t=e.node(n).maybeChild(e.indexAfter(n));for(;t&&!t.isLeaf;)t=t.firstChild,i++}return i}class tD{constructor(e,t){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new e1,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=t,this.state=t.state,this.directPlugins=t.plugins||[],this.directPlugins.forEach(tK),this.dispatch=this.dispatch.bind(this),this.dom=e&&e.mount||document.createElement("div"),e&&(e.appendChild?e.appendChild(this.dom):"function"==typeof e?e(this.dom):e.mount&&(this.mounted=!0)),this.editable=tB(this),t$(this),this.nodeViews=tZ(this),this.docView=ea(this.state.doc,tQ(this),tP(this),this.dom,this),this.domObserver=new tF(this,(e,t,r,a)=>(function(e,t,r,a,o){let s,l,c,u=e.input.compositionPendingChanges||(e.composing?e.input.compositionID:0);if(e.input.compositionPendingChanges=0,t<0){let t=e.input.lastSelectionTime>Date.now()-50?e.input.lastSelectionOrigin:null,r=ev(e,t);if(r&&!e.state.selection.eq(r)){if(N&&k&&13===e.input.lastKeyCode&&Date.now()-100<e.input.lastKeyCodeTime&&e.someProp("handleKeyDown",t=>t(e,A(13,"Enter"))))return;let n=e.state.tr.setSelection(r);"pointer"==t?n.setMeta("pointer",!0):"key"==t&&n.scrollIntoView(),u&&n.setMeta("composition",u),e.dispatch(n)}return}let h=e.state.doc.resolve(t),p=h.sharedDepth(r);t=h.before(p+1),r=e.state.doc.resolve(r).after(p+1);let d=e.state.selection,f=function(e,t,r,n){let a,o,{node:s,fromOffset:l,toOffset:c,from:u,to:h}=e.docView.parseRange(t,r),p=e.domSelectionRange(),d=p.anchorNode;if(d&&e.dom.contains(1==d.nodeType?d:d.parentNode)&&(o=[{node:d,offset:p.anchorOffset}],g(p)||o.push({node:p.focusNode,offset:p.focusOffset})),N&&8===e.input.lastKeyCode)for(let e=c;e>l;e--){let t=s.childNodes[e-1],r=t.pmViewDesc;if("BR"==t.nodeName&&!r){c=e;break}if(!r||r.size)break}let f=e.state.doc,m=e.someProp("domParser")||i.S4.fromSchema(e.state.schema),A=f.resolve(u),y=null,v=m.parse(s,{topNode:A.parent,topMatch:A.parent.contentMatchAt(A.index()),topOpen:!0,from:l,to:c,preserveWhitespace:"pre"!=A.parent.type.whitespace||"full",findPositions:o,ruleFromNode:(a=n,e=>{let t=e.pmViewDesc;if(t)return t.parseRule(a);if("BR"==e.nodeName&&e.parentNode){if(T&&/^(ul|ol)$/i.test(e.parentNode.nodeName)){let e=document.createElement("div");return e.appendChild(document.createElement("li")),{skip:e}}else if(e.parentNode.lastChild==e||T&&/^(tr|table)$/i.test(e.parentNode.nodeName))return{ignore:!0}}else if("IMG"==e.nodeName&&e.getAttribute("mark-placeholder"))return{ignore:!0};return null}),context:A});if(o&&null!=o[0].pos){let e=o[0].pos,t=o[1]&&o[1].pos;null==t&&(t=e),y={anchor:e+u,head:t+u}}return{doc:v,sel:y,from:u,to:h}}(e,t,r,o),m=e.state.doc,y=m.slice(f.from,f.to);8===e.input.lastKeyCode&&Date.now()-100<e.input.lastKeyCodeTime?(s=e.state.selection.to,l="end"):(s=e.state.selection.from,l="start"),e.input.lastKeyCode=null;let v=function(e,t,r,n,i){let a=e.findDiffStart(t,r),o=r+e.size,s=r+t.size;if(null==a)return null;let{a:l,b:c}=e.findDiffEnd(t,o,s);if("end"==i){let e=Math.max(0,a-Math.min(l,c));n-=l+e-a}if(l<a&&o<s){let e=n<=a&&n>=l?a-n:0;a-=e,c=a+(c-l),l=a}else if(c<a){let e=n<=a&&n>=c?a-n:0;a-=e,l=a+(l-c),c=a}return{start:a,endA:l,endB:c}}(y.content,f.doc.content,f.from,s,l);if(v&&e.input.domChangeCount++,(P&&e.input.lastIOSEnter>Date.now()-225||k)&&o.some(e=>1==e.nodeType&&!tV.test(e.nodeName))&&(!v||v.endA>=v.endB)&&e.someProp("handleKeyDown",t=>t(e,A(13,"Enter")))){e.input.lastIOSEnter=0;return}if(!v)if(a&&d instanceof n.U3&&!d.empty&&d.$head.sameParent(d.$anchor)&&!e.composing&&!(f.sel&&f.sel.anchor!=f.sel.head))v={start:d.from,endA:d.to,endB:d.to};else{if(f.sel){let t=tE(e,e.state.doc,f.sel);if(t&&!t.eq(e.state.selection)){let r=e.state.tr.setSelection(t);u&&r.setMeta("composition",u),e.dispatch(r)}}return}e.state.selection.from<e.state.selection.to&&v.start==v.endB&&e.state.selection instanceof n.U3&&(v.start>e.state.selection.from&&v.start<=e.state.selection.from+2&&e.state.selection.from>=f.from?v.start=e.state.selection.from:v.endA<e.state.selection.to&&v.endA>=e.state.selection.to-2&&e.state.selection.to<=f.to&&(v.endB+=e.state.selection.to-v.endA,v.endA=e.state.selection.to)),S&&w<=11&&v.endB==v.start+1&&v.endA==v.start&&v.start>f.from&&"  "==f.doc.textBetween(v.start-f.from-1,v.start-f.from+1)&&(v.start--,v.endA--,v.endB--);let R=f.doc.resolveNoCache(v.start-f.from),b=f.doc.resolveNoCache(v.endB-f.from),x=m.resolve(v.start),M=R.sameParent(b)&&R.parent.inlineContent&&x.end()>=v.endA;if((P&&e.input.lastIOSEnter>Date.now()-225&&(!M||o.some(e=>"DIV"==e.nodeName||"P"==e.nodeName))||!M&&R.pos<f.doc.content.size&&(!R.sameParent(b)||!R.parent.inlineContent)&&R.pos<b.pos&&!/\S/.test(f.doc.textBetween(R.pos,b.pos,"","")))&&e.someProp("handleKeyDown",t=>t(e,A(13,"Enter")))){e.input.lastIOSEnter=0;return}if(e.state.selection.anchor>v.start&&function(e,t,r,n,i){if(r-t<=i.pos-n.pos||tY(n,!0,!1)<i.pos)return!1;let a=e.resolve(t);if(!n.parent.isTextblock){let e=a.nodeAfter;return null!=e&&r==t+e.nodeSize}if(a.parentOffset<a.parent.content.size||!a.parent.isTextblock)return!1;let o=e.resolve(tY(a,!0,!0));return!(!o.parent.isTextblock||o.pos>r||tY(o,!0,!1)<r)&&n.parent.content.cut(n.parentOffset).eq(o.parent.content)}(m,v.start,v.endA,R,b)&&e.someProp("handleKeyDown",t=>t(e,A(8,"Backspace")))){k&&N&&e.domObserver.suppressSelectionUpdates();return}N&&v.endB==v.start&&(e.input.lastChromeDelete=Date.now()),k&&!M&&R.start()!=b.start()&&0==b.parentOffset&&R.depth==b.depth&&f.sel&&f.sel.anchor==f.sel.head&&f.sel.head==v.endA&&(v.endB-=2,b=f.doc.resolveNoCache(v.endB-f.from),setTimeout(()=>{e.someProp("handleKeyDown",function(t){return t(e,A(13,"Enter"))})},20));let O=v.start,L=v.endA,_=t=>{let r=t||e.state.tr.replace(O,L,f.doc.slice(v.start-f.from,v.endB-f.from));if(f.sel){let t=tE(e,r.doc,f.sel);t&&!(N&&e.composing&&t.empty&&(v.start!=v.endB||e.input.lastChromeDelete<Date.now()-100)&&(t.head==O||t.head==r.mapping.map(L)-1)||S&&t.empty&&t.head==O)&&r.setSelection(t)}return u&&r.setMeta("composition",u),r.scrollIntoView()};if(M)if(R.pos==b.pos){S&&w<=11&&0==R.parentOffset&&(e.domObserver.suppressSelectionUpdates(),setTimeout(()=>eb(e),20));let t=_(e.state.tr.delete(O,L)),r=m.resolve(v.start).marksAcross(m.resolve(v.endA));r&&t.ensureMarks(r),e.dispatch(t)}else if(v.endA==v.endB&&(c=function(e,t){let r=e.firstChild.marks,n=t.firstChild.marks,a=r,o=n,s,l,c;for(let e=0;e<n.length;e++)a=n[e].removeFromSet(a);for(let e=0;e<r.length;e++)o=r[e].removeFromSet(o);if(1==a.length&&0==o.length)l=a[0],s="add",c=e=>e.mark(l.addToSet(e.marks));else{if(0!=a.length||1!=o.length)return null;l=o[0],s="remove",c=e=>e.mark(l.removeFromSet(e.marks))}let u=[];for(let e=0;e<t.childCount;e++)u.push(c(t.child(e)));if(i.FK.from(u).eq(e))return{mark:l,type:s}}(R.parent.content.cut(R.parentOffset,b.parentOffset),x.parent.content.cut(x.parentOffset,v.endA-x.start())))){let t=_(e.state.tr);"add"==c.type?t.addMark(O,L,c.mark):t.removeMark(O,L,c.mark),e.dispatch(t)}else if(R.parent.child(R.index()).isText&&R.index()==b.index()-!b.textOffset){let t=R.parent.textBetween(R.parentOffset,b.parentOffset),r=()=>_(e.state.tr.insertText(t,O,L));e.someProp("handleTextInput",n=>n(e,O,L,t,r))||e.dispatch(r())}else e.dispatch(_());else e.dispatch(_())})(this,e,t,r,a)),this.domObserver.start();var r=this;for(let e in ej){let t=ej[e];r.dom.addEventListener(e,r.input.eventHandlers[e]=e=>{!function(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let r=t.target;r!=e.dom;r=r.parentNode)if(!r||11==r.nodeType||r.pmViewDesc&&r.pmViewDesc.stopEvent(t))return!1;return!0}(r,e)||e5(r,e)||!r.editable&&e.type in eq||t(r,e)},e0[e]?{passive:!0}:void 0)}T&&r.dom.addEventListener("input",()=>null),e3(r),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let e=this._props;for(let t in this._props={},e)this._props[t]=e[t];this._props.state=this.state}return this._props}update(e){e.handleDOMEvents!=this._props.handleDOMEvents&&e3(this);let t=this._props;this._props=e,e.plugins&&(e.plugins.forEach(tK),this.directPlugins=e.plugins),this.updateStateInner(e.state,t)}setProps(e){let t={};for(let e in this._props)t[e]=this._props[e];for(let r in t.state=this.state,e)t[r]=e[r];this.update(t)}updateState(e){this.updateStateInner(e,this._props)}updateStateInner(e,t){var r,n,i;let a=this.state,s=!1,l=!1;e.storedMarks&&this.composing&&(to(this),l=!0),this.state=e;let c=a.plugins!=e.plugins||this._props.plugins!=t.plugins;if(c||this._props.plugins!=t.plugins||this._props.nodeViews!=t.nodeViews){let e=tZ(this);(function(e,t){let r=0,n=0;for(let n in e){if(e[n]!=t[n])return!0;r++}for(let e in t)n++;return r!=n})(e,this.nodeViews)&&(this.nodeViews=e,s=!0)}(c||t.handleDOMEvents!=this._props.handleDOMEvents)&&e3(this),this.editable=tB(this),t$(this);let u=tP(this),p=tQ(this),d=a.plugins==e.plugins||a.doc.eq(e.doc)?e.scrollToSelection>a.scrollToSelection?"to selection":"preserve":"reset",g=s||!this.docView.matchesNode(e.doc,p,u);(g||!e.selection.eq(a.selection))&&(l=!0);let A="preserve"==d&&l&&null==this.dom.style.overflowAnchor&&function(e){let t,r,n=e.dom.getBoundingClientRect(),i=Math.max(0,n.top);for(let a=(n.left+n.right)/2,o=i+1;o<Math.min(innerHeight,n.bottom);o+=5){let n=e.root.elementFromPoint(a,o);if(!n||n==e.dom||!e.dom.contains(n))continue;let s=n.getBoundingClientRect();if(s.top>=i-20){t=n,r=s.top;break}}return{refDOM:t,refTop:r,stack:V(e.dom)}}(this);if(l){let t,r,l;this.domObserver.stop();let c=g&&(S||N)&&!this.composing&&!a.selection.empty&&!e.selection.empty&&(n=a.selection,i=e.selection,l=Math.min(n.$anchor.sharedDepth(n.head),i.$anchor.sharedDepth(i.head)),n.$anchor.start(l)!=i.$anchor.start(l));if(g){let t=N?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=function(e){let t=e.domSelectionRange();if(!t.focusNode)return null;let r=function(e,t){for(;;){if(3==e.nodeType&&t)return e;if(1==e.nodeType&&t>0){if("false"==e.contentEditable)return null;t=f(e=e.childNodes[t-1])}else{if(!e.parentNode||m(e))return null;t=o(e),e=e.parentNode}}}(t.focusNode,t.focusOffset),n=function(e,t){for(;;){if(3==e.nodeType&&t<e.nodeValue.length)return e;if(1==e.nodeType&&t<e.childNodes.length){if("false"==e.contentEditable)return null;e=e.childNodes[t],t=0}else{if(!e.parentNode||m(e))return null;t=o(e)+1,e=e.parentNode}}}(t.focusNode,t.focusOffset);if(r&&n&&r!=n){let t=n.pmViewDesc,i=e.domObserver.lastChangedTextNode;if(r==i||n==i)return i;if(!t||!t.isText(n.nodeValue))return n;if(e.input.compositionNode==n){let e=r.pmViewDesc;if(!(!e||!e.isText(r.nodeValue)))return n}}return r||n}(this)),(s||!this.docView.update(e.doc,p,u,this))&&(this.docView.updateOuterDeco(p),this.docView.destroy(),this.docView=ea(e.doc,p,u,this.dom,this)),!t||this.trackWrites&&this.dom.contains(this.trackWrites)||(c=!0)}let d=this.input.mouseDown;c||!(d&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&(t=this.docView.domFromPos(this.state.selection.anchor,0),r=this.domSelectionRange(),h(t.node,t.offset,r.anchorNode,r.anchorOffset))&&d.delaySelUpdate())?eb(this,c):(eO(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(a),(null==(r=this.dragging)?void 0:r.node)&&!a.doc.eq(e.doc)&&this.updateDraggedNode(this.dragging,a),"reset"==d?this.dom.scrollTop=0:"to selection"==d?this.scrollToSelection():A&&function({refDOM:e,refTop:t,stack:r}){let n=e?e.getBoundingClientRect().top:0;E(r,0==n?0:n-t)}(A)}scrollToSelection(){let e=this.domSelectionRange().focusNode;if(e&&this.dom.contains(1==e.nodeType?e:e.parentNode))if(this.someProp("handleScrollToSelection",e=>e(this)));else if(this.state.selection instanceof n.nh){let t=this.docView.domAfterPos(this.state.selection.from);1==t.nodeType&&W(this,t.getBoundingClientRect(),e)}else W(this,this.coordsAtPos(this.state.selection.head,1),e)}destroyPluginViews(){let e;for(;e=this.pluginViews.pop();)e.destroy&&e.destroy()}updatePluginViews(e){if(e&&e.plugins==this.state.plugins&&this.directPlugins==this.prevDirectPlugins)for(let t=0;t<this.pluginViews.length;t++){let r=this.pluginViews[t];r.update&&r.update(this,e)}else{this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let e=0;e<this.directPlugins.length;e++){let t=this.directPlugins[e];t.spec.view&&this.pluginViews.push(t.spec.view(this))}for(let e=0;e<this.state.plugins.length;e++){let t=this.state.plugins[e];t.spec.view&&this.pluginViews.push(t.spec.view(this))}}}updateDraggedNode(e,t){let r=e.node,i=-1;if(r.from<this.state.doc.content.size&&this.state.doc.nodeAt(r.from)==r.node)i=r.from;else{let e=r.from+(this.state.doc.content.size-t.doc.content.size);(e>0&&e<this.state.doc.content.size&&this.state.doc.nodeAt(e))==r.node&&(i=e)}this.dragging=new th(e.slice,e.move,i<0?void 0:n.nh.create(this.state.doc,i))}someProp(e,t){let r=this._props&&this._props[e],n;if(null!=r&&(n=t?t(r):r))return n;for(let r=0;r<this.directPlugins.length;r++){let i=this.directPlugins[r].props[e];if(null!=i&&(n=t?t(i):i))return n}let i=this.state.plugins;if(i)for(let r=0;r<i.length;r++){let a=i[r].props[e];if(null!=a&&(n=t?t(a):a))return n}}hasFocus(){if(S){let e=this.root.activeElement;if(e==this.dom)return!0;if(!e||!this.dom.contains(e))return!1;for(;e&&this.dom!=e&&this.dom.contains(e);){if("false"==e.contentEditable)return!1;e=e.parentElement}return!0}return this.root.activeElement==this.dom}focus(){this.domObserver.stop(),this.editable&&function(e){if(e.setActive)return e.setActive();if(Y)return e.focus(Y);let t=V(e);e.focus(null==Y?{get preventScroll(){return Y={preventScroll:!0},!0}}:void 0),Y||(Y=!1,E(t,0))}(this.dom),eb(this),this.domObserver.start()}get root(){let e=this._root;if(null==e){for(let e=this.dom.parentNode;e;e=e.parentNode)if(9==e.nodeType||11==e.nodeType&&e.host)return e.getSelection||(Object.getPrototypeOf(e).getSelection=()=>e.ownerDocument.getSelection()),this._root=e}return e||document}updateRoot(){this._root=null}posAtCoords(e){return function(e,t){var r;let n,i,a=e.dom.ownerDocument,o,l=0,u=function(e,t,r){if(e.caretPositionFromPoint)try{let n=e.caretPositionFromPoint(t,r);if(n)return{node:n.offsetNode,offset:Math.min(f(n.offsetNode),n.offset)}}catch(e){}if(e.caretRangeFromPoint){let n=e.caretRangeFromPoint(t,r);if(n)return{node:n.startContainer,offset:Math.min(f(n.startContainer),n.startOffset)}}}(a,t.left,t.top);u&&({node:o,offset:l}=u);let h=(e.root.elementFromPoint?e.root:a).elementFromPoint(t.left,t.top);if(!h||!e.dom.contains(1!=h.nodeType?h.parentNode:h)){let r=e.dom.getBoundingClientRect();if(!D(t,r)||!(h=function e(t,r,n){let i=t.childNodes.length;if(i&&n.top<n.bottom)for(let a=Math.max(0,Math.min(i-1,Math.floor(i*(r.top-n.top)/(n.bottom-n.top))-2)),o=a;;){let n=t.childNodes[o];if(1==n.nodeType){let t=n.getClientRects();for(let i=0;i<t.length;i++){let a=t[i];if(D(r,a))return e(n,r,a)}}if((o=(o+1)%i)==a)break}return t}(e.dom,t,r)))return null}if(T)for(let e=h;o&&e;e=s(e))e.draggable&&(o=void 0);if(h=(n=(r=h).parentNode)&&/^li$/i.test(n.nodeName)&&t.left<r.getBoundingClientRect().left?n:r,o){let r;if(O&&1==o.nodeType&&(l=Math.min(l,o.childNodes.length))<o.childNodes.length){let e=o.childNodes[l],r;"IMG"==e.nodeName&&(r=e.getBoundingClientRect()).right<=t.left&&r.bottom>t.top&&l++}F&&l&&1==o.nodeType&&1==(r=o.childNodes[l-1]).nodeType&&"false"==r.contentEditable&&r.getBoundingClientRect().top>=t.top&&l--,o==e.dom&&l==o.childNodes.length-1&&1==o.lastChild.nodeType&&t.top>o.lastChild.getBoundingClientRect().bottom?i=e.state.doc.content.size:(0==l||1!=o.nodeType||"BR"!=o.childNodes[l-1].nodeName)&&(i=function(e,t,r,n){let i=-1;for(let r=t,a=!1;r!=e.dom;){let t=e.docView.nearestDesc(r,!0),o;if(!t)return null;if(1==t.dom.nodeType&&(t.node.isBlock&&t.parent||!t.contentDOM)&&((o=t.dom.getBoundingClientRect()).width||o.height)&&(t.node.isBlock&&t.parent&&!/^T(R|BODY|HEAD|FOOT)$/.test(t.dom.nodeName)&&(!a&&o.left>n.left||o.top>n.top?i=t.posBefore:(!a&&o.right<n.left||o.bottom<n.top)&&(i=t.posAfter),a=!0),!t.contentDOM&&i<0&&!t.node.isText))return(t.node.isBlock?n.top<(o.top+o.bottom)/2:n.left<(o.left+o.right)/2)?t.posBefore:t.posAfter;r=t.dom.parentNode}return i>-1?i:e.docView.posFromDOM(t,r,-1)}(e,o,l,t))}null==i&&(i=function(e,t,r){let{node:n,offset:i}=function e(t,r){let n,i,a,o=2e8,s,l=0,u=r.top,h=r.top;for(let e=t.firstChild,p=0;e;e=e.nextSibling,p++){let t;if(1==e.nodeType)t=e.getClientRects();else{if(3!=e.nodeType)continue;t=c(e).getClientRects()}for(let c=0;c<t.length;c++){let d=t[c];if(d.top<=u&&d.bottom>=h){u=Math.max(d.bottom,u),h=Math.min(d.top,h);let t=d.left>r.left?d.left-r.left:d.right<r.left?r.left-d.right:0;if(t<o){a=e,o=t,s=t&&3==a.nodeType?{left:d.right<r.left?d.right:d.left,top:r.top}:r,1==e.nodeType&&t&&(l=p+ +(r.left>=(d.left+d.right)/2));continue}}else d.top>r.top&&!n&&d.left<=r.left&&d.right>=r.left&&(n=e,i={left:Math.max(d.left,Math.min(d.right,r.left)),top:d.top});!a&&(r.left>=d.right&&r.top>=d.top||r.left>=d.left&&r.top>=d.bottom)&&(l=p+1)}}return(!a&&n&&(a=n,s=i,o=0),a&&3==a.nodeType)?function(e,t){let r=e.nodeValue.length,n=document.createRange(),i;for(let a=0;a<r;a++){n.setEnd(e,a+1),n.setStart(e,a);let r=$(n,1);if(r.top!=r.bottom&&D(t,r)){i={node:e,offset:a+ +(t.left>=(r.left+r.right)/2)};break}}return n.detach(),i||{node:e,offset:0}}(a,s):!a||o&&1==a.nodeType?{node:t,offset:l}:e(a,s)}(t,r),a=-1;if(1==n.nodeType&&!n.firstChild){let e=n.getBoundingClientRect();a=e.left!=e.right&&r.left>(e.left+e.right)/2?1:-1}return e.docView.posFromDOM(n,i,a)}(e,h,t));let p=e.docView.nearestDesc(h,!0);return{pos:i,inside:p?p.posAtStart-p.border:-1}}(this,e)}coordsAtPos(e,t=1){return Z(this,e,t)}domAtPos(e,t=0){return this.docView.domFromPos(e,t)}nodeDOM(e){let t=this.docView.descAt(e);return t?t.nodeDOM:null}posAtDOM(e,t,r=-1){let n=this.docView.posFromDOM(e,t,r);if(null==n)throw RangeError("DOM position not inside the editor");return n}endOfTextblock(e,t){return function(e,t,r){let n,i;return J==t&&j==r?q:(J=t,j=r,q="up"==r||"down"==r?(n=t.selection,i="up"==r?n.$from:n.$to,H(e,t,()=>{let{node:t}=e.docView.domFromPos(i.pos,"up"==r?-1:1);for(;;){let r=e.docView.nearestDesc(t,!0);if(!r)break;if(r.node.isBlock){t=r.contentDOM||r.dom;break}t=r.dom.parentNode}let n=Z(e,i.pos,1);for(let e=t.firstChild;e;e=e.nextSibling){let t;if(1==e.nodeType)t=e.getClientRects();else{if(3!=e.nodeType)continue;t=c(e,0,e.nodeValue.length).getClientRects()}for(let e=0;e<t.length;e++){let i=t[e];if(i.bottom>i.top+1&&("up"==r?n.top-i.top>(i.bottom-n.top)*2:i.bottom-n.bottom>(n.bottom-i.top)*2))return!1}}return!0})):function(e,t,r){let{$head:n}=t.selection;if(!n.parent.isTextblock)return!1;let i=n.parentOffset,a=i==n.parent.content.size,o=e.domSelection();return o?z.test(n.parent.textContent)&&o.modify?H(e,t,()=>{let{focusNode:t,focusOffset:i,anchorNode:a,anchorOffset:s}=e.domSelectionRange(),l=o.caretBidiLevel;o.modify("move",r,"character");let c=n.depth?e.docView.domAfterPos(n.before()):e.dom,{focusNode:u,focusOffset:h}=e.domSelectionRange(),p=u&&!c.contains(1==u.nodeType?u:u.parentNode)||t==u&&i==h;try{o.collapse(a,s),t&&(t!=a||i!=s)&&o.extend&&o.extend(t,i)}catch(e){}return null!=l&&(o.caretBidiLevel=l),p}):"left"==r||"backward"==r?!i:a:n.pos==n.start()||n.pos==n.end()}(e,t,r))}(this,t||this.state,e)}pasteHTML(e,t){return tc(this,"",e,!1,t||new ClipboardEvent("paste"))}pasteText(e,t){return tc(this,e,null,!0,t||new ClipboardEvent("paste"))}serializeForClipboard(e){return eQ(this,e)}destroy(){if(this.docView){for(let e in this.input.mouseDown&&this.input.mouseDown.done(),this.domObserver.stop(),this.input.eventHandlers)this.dom.removeEventListener(e,this.input.eventHandlers[e]);clearTimeout(this.input.composingTimeout),clearTimeout(this.input.lastIOSEnterFallbackTimeout),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],tP(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,u()}}get isDestroyed(){return null==this.docView}dispatchEvent(e){!e5(this,e)&&ej[e.type]&&(this.editable||!(e.type in eq))&&ej[e.type](this,e)}domSelectionRange(){let e=this.domSelection();return e?T&&11===this.root.nodeType&&function(e){let t=e.activeElement;for(;t&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}(this.dom.ownerDocument)==this.dom&&function(e,t){let r;if(t.getComposedRanges){let r=t.getComposedRanges(e.root)[0];if(r)return tW(e,r)}function n(e){e.preventDefault(),e.stopImmediatePropagation(),r=e.getTargetRanges()[0]}return e.dom.addEventListener("beforeinput",n,!0),document.execCommand("indent"),e.dom.removeEventListener("beforeinput",n,!0),r?tW(e,r):null}(this,e)||e:{focusNode:null,focusOffset:0,anchorNode:null,anchorOffset:0}}domSelection(){return this.root.getSelection()}}function tQ(e){let t=Object.create(null);return t.class="ProseMirror",t.contenteditable=String(e.editable),e.someProp("attributes",r=>{if("function"==typeof r&&(r=r(e.state)),r)for(let e in r)"class"==e?t.class+=" "+r[e]:"style"==e?t.style=(t.style?t.style+";":"")+r[e]:t[e]||"contenteditable"==e||"nodeName"==e||(t[e]=String(r[e]))}),t.translate||(t.translate="no"),[ty.node(0,e.state.doc.content.size,t)]}function t$(e){if(e.markCursor){let t=document.createElement("img");t.className="ProseMirror-separator",t.setAttribute("mark-placeholder","true"),t.setAttribute("alt",""),e.cursorWrapper={dom:t,deco:ty.widget(e.state.selection.from,t,{raw:!0,marks:e.markCursor})}}else e.cursorWrapper=null}function tB(e){return!e.someProp("editable",t=>!1===t(e.state))}function tZ(e){let t=Object.create(null);function r(e){for(let r in e)Object.prototype.hasOwnProperty.call(t,r)||(t[r]=e[r])}return e.someProp("nodeViews",r),e.someProp("markViews",r),t}function tK(e){if(e.spec.state||e.spec.filterTransaction||e.spec.appendTransaction)throw RangeError("Plugins passed directly to the view must not have a state component")}tD.prototype.dispatch=function(e){let t=this._props.dispatchTransaction;t?t.call(this,e):this.updateState(this.state.apply(e))},r.d(t,{Lz:()=>tD,NZ:()=>ty,zF:()=>tb})},33097(e,t,r){function n(e,t,r){let n=e[t];e[t]=e[r],e[r]=n}r.d(t,{A:()=>i});class i{constructor(e=9){this._maxEntries=Math.max(4,e),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()}all(){return this._all(this.data,[])}search(e){let t=this.data,r=[];if(!d(e,t))return r;let n=this.toBBox,i=[];for(;t;){for(let a=0;a<t.children.length;a++){let o=t.children[a],s=t.leaf?n(o):o;d(e,s)&&(t.leaf?r.push(o):p(e,s)?this._all(o,r):i.push(o))}t=i.pop()}return r}collides(e){let t=this.data;if(!d(e,t))return!1;let r=[];for(;t;){for(let n=0;n<t.children.length;n++){let i=t.children[n],a=t.leaf?this.toBBox(i):i;if(d(e,a)){if(t.leaf||p(e,a))return!0;r.push(i)}}t=r.pop()}return!1}load(e){if(!(e&&e.length))return this;if(e.length<this._minEntries){for(let t=0;t<e.length;t++)this.insert(e[t]);return this}let t=this._build(e.slice(),0,e.length-1,0);if(this.data.children.length)if(this.data.height===t.height)this._splitRoot(this.data,t);else{if(this.data.height<t.height){let e=this.data;this.data=t,t=e}this._insert(t,this.data.height-t.height-1,!0)}else this.data=t;return this}insert(e){return e&&this._insert(e,this.data.height-1),this}clear(){return this.data=f([]),this}remove(e,t){let r,n,i;if(!e)return this;let a=this.data,o=this.toBBox(e),s=[],l=[];for(;a||s.length;){if(a||(a=s.pop(),n=s[s.length-1],r=l.pop(),i=!0),a.leaf){let r=function(e,t,r){if(!r)return t.indexOf(e);for(let n=0;n<t.length;n++)if(r(e,t[n]))return n;return -1}(e,a.children,t);if(-1!==r){a.children.splice(r,1),s.push(a),this._condense(s);break}}!i&&!a.leaf&&p(a,o)?(s.push(a),l.push(r),r=0,n=a,a=a.children[0]):n?(r++,a=n.children[r],i=!1):a=null}return this}toBBox(e){return e}compareMinX(e,t){return e.minX-t.minX}compareMinY(e,t){return e.minY-t.minY}toJSON(){return this.data}fromJSON(e){return this.data=e,this}_all(e,t){let r=[];for(;e;)e.leaf?t.push(...e.children):r.push(...e.children),e=r.pop();return t}_build(e,t,r,n){let i,o=r-t+1,s=this._maxEntries;if(o<=s)return a(i=f(e.slice(t,r+1)),this.toBBox),i;n||(n=Math.ceil(Math.log(o)/Math.log(s)),s=Math.ceil(o/Math.pow(s,n-1))),(i=f([])).leaf=!1,i.height=n;let l=Math.ceil(o/s),c=l*Math.ceil(Math.sqrt(s));m(e,t,r,c,this.compareMinX);for(let a=t;a<=r;a+=c){let t=Math.min(a+c-1,r);m(e,a,t,l,this.compareMinY);for(let r=a;r<=t;r+=l){let a=Math.min(r+l-1,t);i.children.push(this._build(e,r,a,n-1))}}return a(i,this.toBBox),i}_chooseSubtree(e,t,r,n){for(;;){let o;if(n.push(t),t.leaf||n.length-1===r)break;let s=1/0,l=1/0;for(let r=0;r<t.children.length;r++){var i,a;let n=t.children[r],c=u(n),h=(i=e,(Math.max((a=n).maxX,i.maxX)-Math.min(a.minX,i.minX))*(Math.max(a.maxY,i.maxY)-Math.min(a.minY,i.minY))-c);h<l?(l=h,s=c<s?c:s,o=n):h===l&&c<s&&(s=c,o=n)}t=o||t.children[0]}return t}_insert(e,t,r){let n=r?e:this.toBBox(e),i=[],a=this._chooseSubtree(n,this.data,t,i);for(a.children.push(e),s(a,n);t>=0;)if(i[t].children.length>this._maxEntries)this._split(i,t),t--;else break;this._adjustParentBBoxes(n,i,t)}_split(e,t){let r=e[t],n=r.children.length,i=this._minEntries;this._chooseSplitAxis(r,i,n);let o=this._chooseSplitIndex(r,i,n),s=f(r.children.splice(o,r.children.length-o));s.height=r.height,s.leaf=r.leaf,a(r,this.toBBox),a(s,this.toBBox),t?e[t-1].children.push(s):this._splitRoot(r,s)}_splitRoot(e,t){this.data=f([e,t]),this.data.height=e.height+1,this.data.leaf=!1,a(this.data,this.toBBox)}_chooseSplitIndex(e,t,r){let n,i=1/0,a=1/0;for(let s=t;s<=r-t;s++){let t=o(e,0,s,this.toBBox),l=o(e,s,r,this.toBBox),c=function(e,t){let r=Math.max(e.minX,t.minX),n=Math.max(e.minY,t.minY);return Math.max(0,Math.min(e.maxX,t.maxX)-r)*Math.max(0,Math.min(e.maxY,t.maxY)-n)}(t,l),h=u(t)+u(l);c<i?(i=c,n=s,a=h<a?h:a):c===i&&h<a&&(a=h,n=s)}return n||r-t}_chooseSplitAxis(e,t,r){let n=e.leaf?this.compareMinX:l,i=e.leaf?this.compareMinY:c;this._allDistMargin(e,t,r,n)<this._allDistMargin(e,t,r,i)&&e.children.sort(n)}_allDistMargin(e,t,r,n){e.children.sort(n);let i=this.toBBox,a=o(e,0,t,i),l=o(e,r-t,r,i),c=h(a)+h(l);for(let n=t;n<r-t;n++){let t=e.children[n];s(a,e.leaf?i(t):t),c+=h(a)}for(let n=r-t-1;n>=t;n--){let t=e.children[n];s(l,e.leaf?i(t):t),c+=h(l)}return c}_adjustParentBBoxes(e,t,r){for(let n=r;n>=0;n--)s(t[n],e)}_condense(e){for(let t=e.length-1,r;t>=0;t--)0===e[t].children.length?t>0?(r=e[t-1].children).splice(r.indexOf(e[t]),1):this.clear():a(e[t],this.toBBox)}}function a(e,t){o(e,0,e.children.length,t,e)}function o(e,t,r,n,i){i||(i=f(null)),i.minX=1/0,i.minY=1/0,i.maxX=-1/0,i.maxY=-1/0;for(let a=t;a<r;a++){let t=e.children[a];s(i,e.leaf?n(t):t)}return i}function s(e,t){return e.minX=Math.min(e.minX,t.minX),e.minY=Math.min(e.minY,t.minY),e.maxX=Math.max(e.maxX,t.maxX),e.maxY=Math.max(e.maxY,t.maxY),e}function l(e,t){return e.minX-t.minX}function c(e,t){return e.minY-t.minY}function u(e){return(e.maxX-e.minX)*(e.maxY-e.minY)}function h(e){return e.maxX-e.minX+(e.maxY-e.minY)}function p(e,t){return e.minX<=t.minX&&e.minY<=t.minY&&t.maxX<=e.maxX&&t.maxY<=e.maxY}function d(e,t){return t.minX<=e.maxX&&t.minY<=e.maxY&&t.maxX>=e.minX&&t.maxY>=e.minY}function f(e){return{children:e,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function m(e,t,r,i,a){let o=[t,r];for(;o.length;){if((r=o.pop())-(t=o.pop())<=i)continue;let s=t+Math.ceil((r-t)/i/2)*i;!function e(t,r,i=0,a=t.length-1,o=function(e,t){return e<t?-1:+(e>t)}){for(;a>i;){if(a-i>600){let n=a-i+1,s=r-i+1,l=Math.log(n),c=.5*Math.exp(2*l/3),u=.5*Math.sqrt(l*c*(n-c)/n)*(s-n/2<0?-1:1),h=Math.max(i,Math.floor(r-s*c/n+u)),p=Math.min(a,Math.floor(r+(n-s)*c/n+u));e(t,r,h,p,o)}let s=t[r],l=i,c=a;for(n(t,i,r),o(t[a],s)>0&&n(t,i,a);l<c;){for(n(t,l,c),l++,c--;0>o(t[l],s);)l++;for(;o(t[c],s)>0;)c--}0===o(t[i],s)?n(t,i,c):n(t,++c,a),c<=r&&(i=c+1),r<=c&&(a=c-1)}}(e,s,t,r,a),o.push(t,s,s,r)}}},80301(e,t,r){let n,i;var a=r(71178),o=r(51649);function s({groupSize:e,panelElement:t,styleProp:r}){let n,[i,a]=function(e){switch(typeof e){case"number":return[e,"px"];case"string":{let t=parseFloat(e);return e.endsWith("%")?[t,"%"]:e.endsWith("px")?[t,"px"]:e.endsWith("rem")?[t,"rem"]:e.endsWith("em")?[t,"em"]:e.endsWith("vh")?[t,"vh"]:e.endsWith("vw")?[t,"vw"]:[t,"%"]}}}(r);switch(a){case"%":n=i/100*e;break;case"px":n=i;break;case"rem":n=i*parseFloat(getComputedStyle(t.ownerDocument.documentElement).fontSize);break;case"em":n=i*parseFloat(getComputedStyle(t).fontSize);break;case"vh":n=i/100*window.innerHeight;break;case"vw":n=i/100*window.innerWidth}return n}function l(e){return parseFloat(e.toFixed(3))}function c({group:e}){let{orientation:t,panels:r}=e;return r.reduce((e,r)=>e+="horizontal"===t?r.element.offsetWidth:r.element.offsetHeight,0)}function u(e){let{panels:t}=e,r=c({group:e});return 0===r?t.map(e=>({groupResizeBehavior:e.panelConstraints.groupResizeBehavior,collapsedSize:0,collapsible:!0===e.panelConstraints.collapsible,defaultSize:void 0,disabled:e.panelConstraints.disabled,minSize:0,maxSize:100,panelId:e.id})):t.map(e=>{let t,{element:n,panelConstraints:i}=e,a=0;void 0!==i.collapsedSize&&(a=l(s({groupSize:r,panelElement:n,styleProp:i.collapsedSize})/r*100)),void 0!==i.defaultSize&&(t=l(s({groupSize:r,panelElement:n,styleProp:i.defaultSize})/r*100));let o=0;void 0!==i.minSize&&(o=l(s({groupSize:r,panelElement:n,styleProp:i.minSize})/r*100));let c=100;return void 0!==i.maxSize&&(c=l(s({groupSize:r,panelElement:n,styleProp:i.maxSize})/r*100)),{groupResizeBehavior:i.groupResizeBehavior,collapsedSize:a,collapsible:!0===i.collapsible,defaultSize:t,disabled:i.disabled,minSize:o,maxSize:c,panelId:e.id}})}function h(e,t="Assertion error"){if(!e)throw Error(t)}function p(e,t){return Array.from(t).sort("horizontal"===e?d:f)}function d(e,t){let r=e.element.offsetLeft-t.element.offsetLeft;return 0!==r?r:e.element.offsetWidth-t.element.offsetWidth}function f(e,t){let r=e.element.offsetTop-t.element.offsetTop;return 0!==r?r:e.element.offsetHeight-t.element.offsetHeight}function m(e){return null!==e&&"object"==typeof e&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function g(e,t){return{x:e.x>=t.left&&e.x<=t.right?0:Math.min(Math.abs(e.x-t.left),Math.abs(e.x-t.right)),y:e.y>=t.top&&e.y<=t.bottom?0:Math.min(Math.abs(e.y-t.top),Math.abs(e.y-t.bottom))}}function A(e){let{element:t,orientation:r,panels:i,separators:a}=e,o=p(r,Array.from(t.children).filter(m).map(e=>({element:e}))).map(({element:e})=>e),s=[],l=!1,u=!1,d=-1,f=-1,A=0,y,v=[];{let e=-1;for(let t of o)t.hasAttribute("data-panel")&&(e++,t.hasAttribute("data-disabled")||(A++,-1===d&&(d=e),f=e))}if(A>1){let t=-1;for(let p of o)if(p.hasAttribute("data-panel")){t++;let a=i.find(e=>e.element===p);if(a){if(y){let i,o=y.element.getBoundingClientRect(),m=p.getBoundingClientRect();if(u){let e="horizontal"===r?new DOMRect(o.right,o.top,0,o.height):new DOMRect(o.left,o.bottom,o.width,0),t="horizontal"===r?new DOMRect(m.left,m.top,0,m.height):new DOMRect(m.left,m.top,m.width,0);switch(v.length){case 0:i=[e,t];break;case 1:{let n=v[0],a=function({orientation:e,rects:t,targetRect:r}){let n={x:r.x+r.width/2,y:r.y+r.height/2},i,a=Number.MAX_VALUE;for(let r of t){let{x:t,y:o}=g(n,r),s="horizontal"===e?t:o;s<a&&(a=s,i=r)}return h(i,"No rect found"),i}({orientation:r,rects:[o,m],targetRect:n.element.getBoundingClientRect()});i=[n,a===o?t:e];break}default:i=v}}else i=v.length?v:["horizontal"===r?new DOMRect(o.right,m.top,m.left-o.right,m.height):new DOMRect(m.left,o.bottom,m.width,m.top-o.bottom)];for(let r of i){let i="width"in r?r:r.element.getBoundingClientRect(),o=(void 0===n&&(n="function"==typeof matchMedia&&!!matchMedia("(pointer:coarse)").matches),n)?e.resizeTargetMinimumSize.coarse:e.resizeTargetMinimumSize.fine;if(i.width<o){let e=o-i.width;i=new DOMRect(i.x-e/2,i.y,i.width+e,i.height)}if(i.height<o){let e=o-i.height;i=new DOMRect(i.x,i.y-e/2,i.width,i.height+e)}let u=t<=d||t>f;l||u||s.push({group:e,groupSize:c({group:e}),panels:[y,a],separator:"width"in r?void 0:r,rect:i}),l=!1}}u=!1,y=a,v=[]}}else if(p.hasAttribute("data-separator")){null!==p.ariaDisabled&&(l=!0);let e=a.find(e=>e.element===p);e?v.push(e):(y=void 0,v=[])}else u=!0}return s}class y{#e={};addListener(e,t){let r=this.#e[e];return void 0===r?this.#e[e]=[t]:r.includes(t)||r.push(t),()=>{this.removeListener(e,t)}}emit(e,t){let r=this.#e[e];if(void 0!==r)if(1===r.length)r[0].call(null,t);else{let e=!1,n=null,i=Array.from(r);for(let r=0;r<i.length;r++){let a=i[r];try{a.call(null,t)}catch(t){null===n&&(e=!0,n=t)}}if(e)throw n}}removeAllListeners(){this.#e={}}removeListener(e,t){let r=this.#e[e];if(void 0!==r){let e=r.indexOf(t);e>=0&&r.splice(e,1)}}}let v={cursorFlags:0,state:"inactive"},R=new y;function b(e){let t=v;v=e,R.emit("change",{prev:t,next:e})}let x=e=>e,M=()=>{};function S(){return void 0===i&&(i=!1,"u">typeof window&&(window.navigator.userAgent.includes("Chrome")||window.navigator.userAgent.includes("Firefox"))&&(i=!0)),i}let w=new WeakMap;function O(e){if(!e.defaultView||!e.adoptedStyleSheets)return;let{prevStyle:t,styleSheet:r}=w.get(e)??{};void 0===r&&(r=new e.defaultView.CSSStyleSheet,e.adoptedStyleSheets&&(Object.isExtensible(e.adoptedStyleSheets)?e.adoptedStyleSheets.push(r):e.adoptedStyleSheets=[...e.adoptedStyleSheets,r]));let n=v;switch(n.state){case"active":case"hover":{let e=function({cursorFlags:e,groups:t,state:r}){let n=0,i=0;switch(r){case"active":case"hover":t.forEach(e=>{if(!e.mutableState.disableCursor)switch(e.orientation){case"horizontal":n++;break;case"vertical":i++}})}if(0!==n||0!==i){if("active"===r&&e&&S()){let t=(4&e)!=0,r=(8&e)!=0;if((1&e)!=0)return t?"se-resize":r?"ne-resize":"e-resize";if((2&e)!=0)return t?"sw-resize":r?"nw-resize":"w-resize";if(t)return"s-resize";if(r)return"n-resize"}return S()?n>0&&i>0?"move":n>0?"ew-resize":"ns-resize":n>0&&i>0?"grab":n>0?"col-resize":"row-resize"}}({cursorFlags:n.cursorFlags,groups:n.hitRegions.map(e=>e.group),state:n.state}),i=`*, *:hover {cursor: ${e} !important; }`;if(t===i)return;t=i,e?0===r.cssRules.length?r.insertRule(i):r.replaceSync(i):1===r.cssRules.length&&r.deleteRule(0);break}case"inactive":t=void 0,1===r.cssRules.length&&r.deleteRule(0)}w.set(e,{prevStyle:t,styleSheet:r})}let L=new Map,N=new y;function _(e,t){for(let[t]of L)if(t.id===e)return t}function T(e,t){for(let[t,r]of L)if(t.id===e)return r;if(t)throw Error(`Could not find data for Group with id ${e}`)}function P(e,t){return N.addListener("groupChange",r=>{r.group.id===e&&t(r)})}function C(e,t,r){let n=L.get(e);(L=new Map(L)).set(e,t),N.emit("groupChange",{group:e,isUserInteraction:r?.isUserInteraction===!0,prev:n,next:t})}function I(e){let t=v,r=L,n=!1;return"active"===t.state&&(b({cursorFlags:0,state:"inactive"}),t.hitRegions.length>0&&(O(e),n=!0,t.hitRegions.forEach(e=>{if(!r.has(e.group))return;let t=T(e.group.id,!0);C(e.group,t,{isUserInteraction:!0})}))),n}function k(e){e.defaultPrevented||I(e.currentTarget)}let F=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function X(e){let t=e.length;for(;t--;){let r=e[t];if(h(r,"Missing node"),function(e){let t,r=getComputedStyle(e);return!!("fixed"===r.position||"auto"!==r.zIndex&&("static"!==r.position||"flex"===(t=getComputedStyle(V(e)??e).display)||"inline-flex"===t)||1>+r.opacity||"transform"in r&&"none"!==r.transform||"webkitTransform"in r&&"none"!==r.webkitTransform||"mixBlendMode"in r&&"normal"!==r.mixBlendMode||"filter"in r&&"none"!==r.filter||"webkitFilter"in r&&"none"!==r.webkitFilter||"isolation"in r&&"isolate"===r.isolation||F.test(r.willChange)||"touch"===r.webkitOverflowScrolling)}(r))return r}return null}function U(e){return e&&Number(getComputedStyle(e).zIndex)||0}function W(e){let t=[];for(;e;)t.push(e),e=V(e);return t}function V(e){let{parentNode:t}=e;return null!==t&&"object"==typeof t&&"nodeType"in t&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE?t.host:t}function E(e,t){let r=[];return t.forEach((t,n)=>{if(n.disabled)return;let i=A(n),a=function(e,t,r){let n,i={x:1/0,y:1/0};for(let a of t){let t=g(r,a.rect);switch(e){case"horizontal":t.x<=i.x&&(n=a,i=t);break;case"vertical":t.y<=i.y&&(n=a,i=t)}}return n?{distance:i,hitRegion:n}:void 0}(n.orientation,i,{x:e.clientX,y:e.clientY});a&&a.distance.x<=0&&a.distance.y<=0&&function({groupElement:e,hitRegion:t,pointerEventTarget:r}){if(!m(r)||r.contains(e)||e.contains(r))return!0;if(function(e,t){let r;if(e===t)throw Error("Cannot compare node with itself");let n={a:W(e),b:W(t)};for(;n.a.at(-1)===n.b.at(-1);)r=n.a.pop(),n.b.pop();h(r,"Stacking order can only be calculated for elements with a common ancestor");let i={a:U(X(n.a)),b:U(X(n.b))};if(i.a===i.b){let e=r.childNodes,t={a:n.a.at(-1),b:n.b.at(-1)},i=e.length;for(;i--;){let r=e[i];if(r===t.a)return 1;if(r===t.b)return -1}}return Math.sign(i.a-i.b)}(r,e)>0){let i=r;for(;i;){var n;if(i.contains(e))break;if(n=i.getBoundingClientRect(),n.x<t.x+t.width&&n.x+n.width>t.x&&n.y<t.y+t.height&&n.y+n.height>t.y)return!1;i=i.parentElement}}return!0}({groupElement:n.element,hitRegion:a.hitRegion.rect,pointerEventTarget:e.target})&&r.push(a.hitRegion)}),r}function Y(e,t,r=0){return Math.abs(l(e)-l(t))<=r}function D(e,t){return Y(e,t)?0:e>t?1:-1}function Q({overrideDisabledPanels:e,panelConstraints:t,prevSize:r,size:n}){let{collapsedSize:i=0,collapsible:a,disabled:o,maxSize:s=100,minSize:c=0}=t;return o&&!e?r:(0>D(n,c)&&(n=a&&0>D(n,(i+c)/2)?i:c),l(n=Math.min(s,n)))}function $({delta:e,initialLayout:t,panelConstraints:r,pivotIndices:n,prevLayout:i,trigger:a}){if(Y(e,0))return t;let o="imperative-api"===a,s=Object.values(t),l=Object.values(i),c=[...s],[u,p]=n;h(null!=u,"Invalid first pivot index"),h(null!=p,"Invalid second pivot index");let d=0;if("keyboard"===a){{let t=e<0?p:u,n=r[t];h(n,`Panel constraints not found for index ${t}`);let{collapsedSize:i=0,collapsible:a,minSize:o=0}=n;if(a){let r=s[t];if(h(null!=r,`Previous layout not found for panel index ${t}`),Y(r,i)){let t=o-r;D(t,Math.abs(e))>0&&(e=e<0?0-t:t)}}}{let t=e<0?u:p,n=r[t];h(n,`No panel constraints found for index ${t}`);let{collapsedSize:i=0,collapsible:a,minSize:o=0}=n;if(a){let r=s[t];if(h(null!=r,`Previous layout not found for panel index ${t}`),Y(r,o)){let t=r-i;D(t,Math.abs(e))>0&&(e=e<0?0-t:t)}}}}else{let t=e<0?p:u,n=r[t];h(n,`Panel constraints not found for index ${t}`);let i=s[t],{collapsible:a,collapsedSize:o,minSize:l}=n;if(a&&0>D(i,l))if(e>0){let t=l-o;0>D(i+e,l)&&(e=0>=D(e,t/2)?0:t)}else{let t=l-o;0>D(i-e,l)&&(e=D(100+e,100-t/2)>0?0:-t)}}{let t=e<0?1:-1,n=e<0?p:u,i=0;for(;;){let e=s[n];if(h(null!=e,`Previous layout not found for panel index ${n}`),i+=Q({overrideDisabledPanels:o,panelConstraints:r[n],prevSize:e,size:100})-e,(n+=t)<0||n>=r.length)break}let a=Math.min(Math.abs(e),Math.abs(i));e=e<0?0-a:a}{let t=e<0?u:p;for(;t>=0&&t<r.length;){let n=Math.abs(e)-Math.abs(d),i=s[t];h(null!=i,`Previous layout not found for panel index ${t}`);let a=i-n,l=Q({overrideDisabledPanels:o,panelConstraints:r[t],prevSize:i,size:a});if(!Y(i,l)&&(d+=i-l,c[t]=l,d.toFixed(3).localeCompare(Math.abs(e).toFixed(3),void 0,{numeric:!0})>=0))break;e<0?t--:t++}}if(function(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!=t[r])return!1;return!0}(l,c))return i;{let t=e<0?p:u,n=s[t];h(null!=n,`Previous layout not found for panel index ${t}`);let i=n+d,a=Q({overrideDisabledPanels:o,panelConstraints:r[t],prevSize:n,size:i});if(c[t]=a,!Y(a,i)){let t=i-a,n=e<0?p:u;for(;n>=0&&n<r.length;){let i=c[n];h(null!=i,`Previous layout not found for panel index ${n}`);let a=i+t,s=Q({overrideDisabledPanels:o,panelConstraints:r[n],prevSize:i,size:a});if(Y(i,s)||(t-=s-i,c[n]=s),Y(t,0))break;e>0?n--:n++}}}if(!Y(Object.values(c).reduce((e,t)=>t+e,0),100,.1))return i;let f=Object.keys(i);return c.reduce((e,t,r)=>(e[f[r]]=t,e),{})}function B(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let r in e)if(void 0===t[r]||0!==D(e[r],t[r]))return!1;return!0}function Z({layout:e,panelConstraints:t}){let r=Object.values(e),n=[...r],i=n.reduce((e,t)=>e+t,0);if(n.length!==t.length)throw Error(`Invalid ${t.length} panel layout: ${n.map(e=>`${e}%`).join(", ")}`);if(!Y(i,100)&&n.length>0)for(let e=0;e<t.length;e++){let t=n[e];h(null!=t,`No layout data found for index ${e}`);let r=100/i*t;n[e]=r}let a=0;for(let e=0;e<t.length;e++){let i=r[e];h(null!=i,`No layout data found for index ${e}`);let o=n[e];h(null!=o,`No layout data found for index ${e}`);let s=Q({overrideDisabledPanels:!0,panelConstraints:t[e],prevSize:i,size:o});o!=s&&(a+=o-s,n[e]=s)}if(!Y(a,0))for(let e=0;e<t.length;e++){let r=n[e];h(null!=r,`No layout data found for index ${e}`);let i=r+a,o=Q({overrideDisabledPanels:!0,panelConstraints:t[e],prevSize:r,size:i});if(r!==o&&(a-=o-r,n[e]=o,Y(a,0)))break}let o=Object.keys(e);return n.reduce((e,t,r)=>(e[o[r]]=t,e),{})}function K({groupId:e,panelId:t}){let r=()=>{for(let[t,{defaultLayoutDeferred:r,derivedPanelConstraints:n,layout:i,groupSize:a,separatorToPanels:o}]of L)if(t.id===e)return{defaultLayoutDeferred:r,derivedPanelConstraints:n,group:t,groupSize:a,layout:i,separatorToPanels:o};throw Error(`Group ${e} not found`)},n=()=>{let e=r().derivedPanelConstraints.find(e=>e.panelId===t);if(void 0!==e)return e;throw Error(`Panel constraints not found for Panel ${t}`)},i=()=>{let e=r().group.panels.find(e=>e.id===t);if(void 0!==e)return e;throw Error(`Layout not found for Panel ${t}`)},a=()=>{let e=r().layout[t];if(void 0!==e)return e;throw Error(`Layout not found for Panel ${t}`)},o=e=>{if(e===a())return;let{defaultLayoutDeferred:n,derivedPanelConstraints:i,group:o,groupSize:s,layout:c,separatorToPanels:u}=r(),h=Z({layout:(({nextSize:e,panels:r,prevLayout:n,derivedPanelConstraints:i})=>{let o=a(),s=r.findIndex(e=>e.id===t),c=0===s,u=s===r.length-1;if(u&&e<o&&(c||r.slice(0,s).every((e,t)=>{let r=i[t];return r?.collapsible&&Y(r.collapsedSize,n[r.panelId])}))){let e=r.slice(0,s).reduce((e,t)=>e+n[t.id],0);return{...n,[t]:l(100-e)}}return $({delta:u?o-e:e-o,initialLayout:n,panelConstraints:i,pivotIndices:u?[s-1,s]:[s,s+1],prevLayout:n,trigger:"imperative-api"})})({nextSize:e,panels:o.panels,prevLayout:c,derivedPanelConstraints:i}),panelConstraints:i});B(c,h)||C(o,{defaultLayoutDeferred:n,derivedPanelConstraints:i,groupSize:s,layout:h,separatorToPanels:u})};return{collapse:()=>{let{collapsible:e,collapsedSize:t}=n(),{mutableValues:r}=i(),s=a();e&&s!==t&&(r.expandToSize=s,o(t))},expand:()=>{let{collapsible:e,collapsedSize:t,minSize:r}=n(),{mutableValues:s}=i(),l=a();if(e&&l===t){let e=s.expandToSize??r;0===e&&(e=1),o(e)}},getSize:()=>{let{group:e}=r(),t=a(),{element:n}=i();return{asPercentage:t,inPixels:"horizontal"===e.orientation?n.offsetWidth:n.offsetHeight}},isCollapsed:()=>{let{collapsible:e,collapsedSize:t}=n(),r=a();return e&&Y(t,r)},resize:e=>{let{group:t}=r(),{element:n}=i(),a=c({group:t});o(l(s({groupSize:a,panelElement:n,styleProp:e})/a*100))}}}function G(e){e.defaultPrevented||E(e,L).forEach(t=>{if(t.separator&&!t.separator.disableDoubleClick){let r=t.panels.find(e=>void 0!==e.panelConstraints.defaultSize);if(r){let n=r.panelConstraints.defaultSize,i=K({groupId:t.group.id,panelId:r.id});i&&void 0!==n&&(i.resize(n),e.preventDefault())}}})}function H(e){for(let[t]of L)if(t.separators.some(t=>t.element===e))return t;throw Error("Could not find parent Group for separator element")}function z({groupId:e}){let t=()=>{for(let[t,r]of L)if(t.id===e)return{group:t,...r};throw Error(`Could not find Group with id "${e}"`)};return{getLayout(){let{defaultLayoutDeferred:e,layout:r}=t();return e?{}:r},setLayout(e){let{defaultLayoutDeferred:r,derivedPanelConstraints:n,group:i,groupSize:a,layout:o,separatorToPanels:s}=t(),l=Z({layout:e,panelConstraints:n});return r?o:(B(o,l)||C(i,{defaultLayoutDeferred:r,derivedPanelConstraints:n,groupSize:a,layout:l,separatorToPanels:s}),l)}}}function J(e,t){let r=H(e),n=T(r.id,!0),i=r.separators.find(t=>t.element===e);h(i,"Matching separator not found");let a=n.separatorToPanels.get(i);h(a,"Matching panels not found");let o=a.map(e=>r.panels.indexOf(e)),s=z({groupId:r.id}).getLayout(),l=Z({layout:$({delta:t,initialLayout:s,panelConstraints:n.derivedPanelConstraints,pivotIndices:o,prevLayout:s,trigger:"keyboard"}),panelConstraints:n.derivedPanelConstraints});B(s,l)||C(r,{defaultLayoutDeferred:n.defaultLayoutDeferred,derivedPanelConstraints:n.derivedPanelConstraints,groupSize:n.groupSize,layout:l,separatorToPanels:n.separatorToPanels},{isUserInteraction:!0})}function j(e){if(e.defaultPrevented)return;let t=e.currentTarget,r=H(t);if(!r.disabled)switch(e.key){case"ArrowDown":e.preventDefault(),"vertical"===r.orientation&&J(t,5);break;case"ArrowLeft":e.preventDefault(),"horizontal"===r.orientation&&J(t,-5);break;case"ArrowRight":e.preventDefault(),"horizontal"===r.orientation&&J(t,5);break;case"ArrowUp":e.preventDefault(),"vertical"===r.orientation&&J(t,-5);break;case"End":e.preventDefault(),J(t,100);break;case"Enter":{e.preventDefault();let r=H(t),{derivedPanelConstraints:n,layout:i,separatorToPanels:a}=T(r.id,!0),o=r.separators.find(e=>e.element===t);h(o,"Matching separator not found");let s=a.get(o);h(s,"Matching panels not found");let l=s[0],c=n.find(e=>e.panelId===l.id);if(h(c,"Panel metadata not found"),c.collapsible){let e=i[l.id];J(t,(c.collapsedSize===e?r.mutableState.expandedPanelSizes[l.id]??c.minSize:c.collapsedSize)-e)}break}case"F6":{e.preventDefault();let r=H(t).separators.map(e=>e.element),n=Array.from(r).findIndex(t=>t===e.currentTarget);h(null!==n,"Index not found");let i=e.shiftKey?n>0?n-1:r.length-1:n+1<r.length?n+1:0;r[i].focus({preventScroll:!0});break}case"Home":e.preventDefault(),J(t,-100)}}function q(e){if(e.defaultPrevented||"mouse"===e.pointerType&&e.button>0)return;let t=L,r=E(e,t),n=new Map,i=!1;r.forEach(e=>{e.separator&&(i||(i=!0,e.separator.element.focus({focusVisible:!1,preventScroll:!0})));let r=t.get(e.group);r&&n.set(e.group,r.layout)}),b({cursorFlags:0,hitRegions:r,initialLayoutMap:n,pointerDownAtPoint:{x:e.clientX,y:e.clientY},state:"active"}),r.length&&e.preventDefault()}function ee({document:e,event:t,hitRegions:r,initialLayoutMap:n,mountedGroups:i,pointerDownAtPoint:a,prevCursorFlags:o}){var s;let l,c,u=0;r.forEach(e=>{let{group:r,groupSize:o}=e,{orientation:s,panels:l}=r,{disableCursor:c}=r.mutableState,h=0;h=a?"horizontal"===s?(t.clientX-a.x)/o*100:(t.clientY-a.y)/o*100:"horizontal"===s?t.clientX<0?-100:100:t.clientY<0?-100:100;let p=n.get(r),d=i.get(r);if(!p||!d)return;let{defaultLayoutDeferred:f,derivedPanelConstraints:m,groupSize:g,layout:A,separatorToPanels:y}=d;if(m&&A&&y){let t=$({delta:h,initialLayout:p,panelConstraints:m,pivotIndices:e.panels.map(e=>l.indexOf(e)),prevLayout:A,trigger:"mouse-or-touch"});if(B(t,A)){if(0!==h&&!c)switch(s){case"horizontal":u|=h<0?1:2;break;case"vertical":u|=h<0?4:8}}else C(e.group,{defaultLayoutDeferred:f,derivedPanelConstraints:m,groupSize:g,layout:t,separatorToPanels:y})}});let h=0;0===t.movementX?h|=3&o:h|=3&u,0===t.movementY?h|=12&o:h|=12&u,s=h,l=v,(c={...v}).cursorFlags=s,v=c,R.emit("change",{prev:l,next:c}),O(e)}function et(e){let t=L,r=v;"active"===r.state&&ee({document:e.currentTarget,event:e,hitRegions:r.hitRegions,initialLayoutMap:r.initialLayoutMap,mountedGroups:t,prevCursorFlags:r.cursorFlags})}function er(e){if(e.defaultPrevented)return;let t=v,r=L;if("active"===t.state){if(0===e.buttons){b({cursorFlags:0,state:"inactive"}),t.hitRegions.forEach(e=>{if(!r.has(e.group))return;let t=T(e.group.id,!0);C(e.group,t,{isUserInteraction:!0})});return}for(let r of t.hitRegions)if(r.separator){let{element:t}=r.separator;t.hasPointerCapture?.(e.pointerId)||t.setPointerCapture?.(e.pointerId)}ee({document:e.currentTarget,event:e,hitRegions:t.hitRegions,initialLayoutMap:t.initialLayoutMap,mountedGroups:r,pointerDownAtPoint:t.pointerDownAtPoint,prevCursorFlags:t.cursorFlags})}else{let n=E(e,r);0===n.length?"inactive"!==t.state&&b({cursorFlags:0,state:"inactive"}):b({cursorFlags:0,hitRegions:n,state:"hover"}),O(e.currentTarget)}}function en(e){e.relatedTarget instanceof HTMLIFrameElement&&"hover"===v.state&&b({cursorFlags:0,state:"inactive"})}function ei(e){e.defaultPrevented||("mouse"!==e.pointerType||!(e.button>0))&&I(e.currentTarget)&&e.preventDefault()}function ea(e){let t=0,r=0,n={};for(let i of e)if(void 0!==i.defaultSize){t++;let e=l(i.defaultSize);r+=e,n[i.panelId]=e}else n[i.panelId]=void 0;let i=e.length-t;if(0!==i){let t=l((100-r)/i);for(let r of e)void 0===r.defaultSize&&(n[r.panelId]=t)}return n}let eo=new Map;function es(e){let t=(0,o.useId)();return`${e??t}`}let el="u">typeof window?o.useLayoutEffect:o.useEffect;function ec(e){let t=(0,o.useRef)(e);return el(()=>{t.current=e},[e]),(0,o.useCallback)((...e)=>t.current?.(...e),[t])}function eu(...e){return ec(t=>{e.forEach(e=>{if(e)switch(typeof e){case"function":e(t);break;case"object":e.current=t}})})}function eh(e){let t=(0,o.useRef)({...e});return el(()=>{for(let r in e)t.current[r]=e[r]},[e]),t.current}let ep=(0,o.createContext)(null);function ed({children:e,className:t,defaultLayout:r,disableCursor:n,disabled:i,elementRef:s,groupRef:d,id:f,onLayoutChange:m,onLayoutChanged:g,orientation:y="horizontal",resizeTargetMinimumSize:R={coarse:20,fine:10},style:b,...M}){let S,w=(0,o.useRef)({onLayoutChange:{},onLayoutChanged:{}}),O=ec(e=>{B(w.current.onLayoutChange,e)||(w.current.onLayoutChange=e,m?.(e))}),N=ec((e,t)=>{B(w.current.onLayoutChanged,e)||(w.current.onLayoutChanged=e,g?.(e,{isUserInteraction:t}))}),I=es(f),F=(0,o.useRef)(null),[X,U]=function(){let[e,t]=(0,o.useState)({});return[e,(0,o.useCallback)(()=>t({}),[])]}(),W=(0,o.useRef)({lastExpandedPanelSizes:{},layouts:{},panels:[],resizeTargetMinimumSize:R,separators:[]}),V=eu(F,s);S=(0,o.useRef)({getLayout:()=>({}),setLayout:x}),(0,o.useImperativeHandle)(d,()=>S.current,[]),el(()=>{Object.assign(S.current,z({groupId:I}))});let E=ec((e,t)=>{let n=v,i=_(e),a=T(e);if(a){let e=!1;return"active"===n.state&&(e=n.hitRegions.some(e=>e.group===i)),{flexGrow:a.layout[t]??1,pointerEvents:e?"none":void 0}}if(r?.[t])return{flexGrow:r?.[t]}}),D=eh({defaultLayout:r,disableCursor:n}),Q=(0,o.useMemo)(()=>({get disableCursor(){return!!D.disableCursor},getPanelStyles:E,id:I,orientation:y,registerPanel:e=>{let t=W.current;return t.panels=p(y,[...t.panels,e]),U(),()=>{t.panels=t.panels.filter(t=>t!==e),U()}},registerSeparator:e=>{let t=W.current;return t.separators=p(y,[...t.separators,e]),U(),()=>{t.separators=t.separators.filter(t=>t!==e),U()}},updatePanelProps:(e,{disabled:t})=>{let r=W.current.panels.find(t=>t.id===e);r&&(r.panelConstraints.disabled=t);let n=_(I),i=T(I);n&&i&&C(n,{...i,derivedPanelConstraints:u(n)})},updateSeparatorProps:(e,{disabled:t,disableDoubleClick:r})=>{let n=W.current.separators.find(t=>t.id===e);n&&(n.disabled=t,n.disableDoubleClick=r)}}),[E,I,U,y,D]),$=(0,o.useRef)(null);return el(()=>{let e,t,r,n,a,o,s,p,d,f,m,g,R,b=F.current;if(null===b)return;let x=W.current;if(void 0!==D.defaultLayout&&Object.keys(D.defaultLayout).length===x.panels.length)for(let t of(e={},x.panels)){let r=D.defaultLayout[t.id];void 0!==r&&(e[t.id]=r)}let M={disabled:!!i,element:b,id:I,mutableState:{defaultLayout:e,disableCursor:!!D.disableCursor,expandedPanelSizes:W.current.lastExpandedPanelSizes,layouts:W.current.layouts},orientation:y,panels:x.panels,resizeTargetMinimumSize:x.resizeTargetMinimumSize,separators:x.separators};$.current=M;let S=(t=!0,h(M.element.ownerDocument.defaultView,"Cannot register an unmounted Group"),r=M.element.ownerDocument.defaultView.ResizeObserver,n=new Set,a=new Set,(o=new r(e=>{for(let r of e){let{borderBoxSize:e,target:n}=r;if(n===M.element){if(t){let e=c({group:M});if(0===e)return;let t=T(M.id);if(!t)return;let r=u(M),n=t.defaultLayoutDeferred?ea(r):t.layout,i=Z({layout:function({group:e,nextGroupSize:t,prevGroupSize:r,prevLayout:n}){if(r<=0||t<=0||r===t)return n;let i=0,a=0,o=!1,s=new Map,c=[];for(let u of e.panels){let e=n[u.id]??0;if("preserve-pixel-size"===u.panelConstraints.groupResizeBehavior){o=!0;let n=l(e/100*r/t*100);s.set(u.id,n),i+=n}else c.push(u.id),a+=e}if(!o||0===c.length)return n;let u=100-i,h={...n};if(s.forEach((e,t)=>{h[t]=e}),a>0)for(let e of c){let t=n[e]??0;h[e]=l(t/a*u)}else{let e=l(u/c.length);for(let t of c)h[t]=e}return h}({group:M,nextGroupSize:e,prevGroupSize:t.groupSize,prevLayout:n}),panelConstraints:r});if(!t.defaultLayoutDeferred&&B(t.layout,i)&&function(e,t){return e.length===t.length&&e.every((e,r)=>(function(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let r in e)if(e[r]!==t[r])return!1;return!0})(e,t[r]))}(t.derivedPanelConstraints,r)&&t.groupSize===e)continue;C(M,{defaultLayoutDeferred:!1,derivedPanelConstraints:r,groupSize:e,layout:i,separatorToPanels:t.separatorToPanels})}}else!function(e,t,r){if(!r[0])return;let n=e.panels.find(e=>e.element===t);if(!n||!n.onResize)return;let i=c({group:e}),a="horizontal"===e.orientation?n.element.offsetWidth:n.element.offsetHeight,o=n.mutableValues.prevSize,s={asPercentage:l(a/i*100),inPixels:a};n.mutableValues.prevSize=s,n.onResize(s,n.id,o)}(M,n,e)}})).observe(M.element),M.panels.forEach(e=>{h(!n.has(e.id),`Panel ids must be unique; id "${e.id}" was used more than once`),n.add(e.id),e.onResize&&o.observe(e.element)}),s=c({group:M}),p=u(M),d=M.panels.map(({id:e})=>e).join(","),(f=M.mutableState.defaultLayout)&&(function(e,t){let r=e.map(e=>e.id),n=Object.keys(t);if(r.length!==n.length)return!1;for(let e of r)if(!n.includes(e))return!1;return!0}(M.panels,f)||(f=void 0)),m=Z({layout:M.mutableState.layouts[d]??f??ea(p),panelConstraints:p}),g=M.element.ownerDocument,eo.set(g,(eo.get(g)??0)+1),R=new Map,A(M).forEach(e=>{e.separator&&R.set(e.separator,e.panels)}),C(M,{defaultLayoutDeferred:0===s,derivedPanelConstraints:p,groupSize:s,layout:m,separatorToPanels:R}),M.separators.forEach(e=>{h(!a.has(e.id),`Separator ids must be unique; id "${e.id}" was used more than once`),a.add(e.id),e.element.addEventListener("keydown",j)}),1===eo.get(g)&&(g.addEventListener("contextmenu",k,!0),g.addEventListener("dblclick",G,!0),g.addEventListener("pointerdown",q,!0),g.addEventListener("pointerleave",et),g.addEventListener("pointermove",er),g.addEventListener("pointerout",en),g.addEventListener("pointerup",ei,!0)),function(){t=!1,eo.set(g,Math.max(0,(eo.get(g)??0)-1)),(L=new Map(L)).delete(M),M.separators.forEach(e=>{e.element.removeEventListener("keydown",j)}),eo.get(g)||(g.removeEventListener("contextmenu",k,!0),g.removeEventListener("dblclick",G,!0),g.removeEventListener("pointerdown",q,!0),g.removeEventListener("pointerleave",et),g.removeEventListener("pointermove",er),g.removeEventListener("pointerout",en),g.removeEventListener("pointerup",ei,!0)),o.disconnect()}),{defaultLayoutDeferred:w,derivedPanelConstraints:_,layout:X}=T(M.id,!0);!w&&_.length>0&&(O(X),N(X,!1));let U=P(I,e=>{let{defaultLayoutDeferred:t,derivedPanelConstraints:r,layout:n}=e.next;if(t||0===r.length)return;let i=M.panels.map(({id:e})=>e).join(",");M.mutableState.layouts[i]=n,r.forEach(t=>{if(t.collapsible){let{layout:r}=e.prev??{};if(r){let e=Y(t.collapsedSize,n[t.panelId]),i=Y(t.collapsedSize,r[t.panelId]);e&&!i&&(M.mutableState.expandedPanelSizes[t.panelId]=r[t.panelId])}}});let a="active"!==v.state;O(n),a&&N(n,e.isUserInteraction)});return()=>{$.current=null,S(),U()}},[i,I,N,O,y,X,D]),(0,o.useEffect)(()=>{let e=$.current;e&&(e.mutableState.defaultLayout=r,e.mutableState.disableCursor=!!n)}),(0,a.jsx)(ep.Provider,{value:Q,children:(0,a.jsx)("div",{...M,className:t,"data-group":!0,"data-testid":I,id:I,ref:V,style:{height:"100%",width:"100%",overflow:"hidden",...b,display:"flex",flexDirection:"horizontal"===y?"row":"column",flexWrap:"nowrap",touchAction:"horizontal"===y?"pan-y":"pan-x"},children:e})})}function ef(e,t){return`react-resizable-panels:${[e,...t].join(":")}`}function em({debounceSaveMs:e=100,onlySaveAfterUserInteractions:t,panelIds:r,storage:n=localStorage,...i}){let a=void 0!==r,s="id"in i?i.id:i.groupId,l=ef(s,r??[]),c=(0,o.useSyncExternalStore)(eg,()=>n.getItem(l),()=>n.getItem(l)),u=(0,o.useMemo)(()=>{if(c){let e=JSON.parse(c);if(Array.from(Object.values(e)).every(e=>"number"==typeof e))return e}},[c]),h=(0,o.useMemo)(()=>{if(!u)return function({id:e,panelIds:t,storage:r}){let n=ef(e,[]),i=r.getItem(n);if(i)try{let e=JSON.parse(i);if(t){let r=e[t.join(",")];if(r&&Array.isArray(r.layout)&&t.length===r.layout.length){let e={};for(let n=0;n<t.length;n++)e[t[n]]=r.layout[n];return e}}else{let t=Object.keys(e);if(1===t.length){let r=e[t[0]];if(r&&Array.isArray(r.layout)){let e=t[0].split(",");if(e.length===r.layout.length){let t={};for(let n=0;n<e.length;n++)t[e[n]]=r.layout[n];return t}}}}}catch{}}({id:s,panelIds:r,storage:n})},[u,s,r,n]),p=u??h,d=(0,o.useRef)(null),f=(0,o.useCallback)(()=>{let e=d.current;e&&(d.current=null,clearTimeout(e))},[]);(0,o.useLayoutEffect)(()=>()=>{f()},[f]);let m=(0,o.useCallback)((e,r)=>{let i;if(!t||r.isUserInteraction){f(),i=a?ef(s,Object.keys(e)):ef(s,[]);try{n.setItem(i,JSON.stringify(e))}catch(e){console.error(e)}}},[f,a,s,t,n]);return{defaultLayout:p,onLayoutChange:(0,o.useCallback)(t=>{f(),0===e?m(t,{isUserInteraction:!1}):d.current=setTimeout(()=>{m(t,{isUserInteraction:!1})},e)},[f,e,m]),onLayoutChanged:m}}function eg(){return function(){}}function eA(){let e=(0,o.useContext)(ep);return h(e,"Group Context not found; did you render a Panel or Separator outside of a Group?"),e}function ey({children:e,className:t,collapsedSize:r="0%",collapsible:n=!1,defaultSize:i,disabled:s,elementRef:l,groupResizeBehavior:c="preserve-relative-size",id:u,maxSize:h="100%",minSize:p="0%",onResize:d,panelRef:f,style:m,...g}){let A,y=!!u,v=es(u),R=eh({disabled:s}),b=(0,o.useRef)(null),x=eu(b,l),{getPanelStyles:S,id:w,orientation:O,registerPanel:L,updatePanelProps:N}=eA(),_=null!==d,T=ec((e,t,r)=>{d?.(e,u,r)});el(()=>{let e=b.current;if(null!==e)return L({element:e,id:v,idIsStable:y,mutableValues:{expandToSize:void 0,prevSize:void 0},onResize:_?T:void 0,panelConstraints:{groupResizeBehavior:c,collapsedSize:r,collapsible:n,defaultSize:i,disabled:R.disabled,maxSize:h,minSize:p}})},[c,r,n,i,_,v,y,h,p,T,L,R]),(0,o.useEffect)(()=>{N(v,{disabled:s})},[s,v,N]),function(e,t){let{id:r}=eA(),n=(0,o.useRef)({collapse:M,expand:M,getSize:()=>({asPercentage:0,inPixels:0}),isCollapsed:()=>!1,resize:M});(0,o.useImperativeHandle)(t,()=>n.current,[]),el(()=>{Object.assign(n.current,K({groupId:r,panelId:e}))})}(v,f);let C=()=>{let e=S(w,v);if(e)return JSON.stringify(e)},I=(0,o.useSyncExternalStore)(e=>P(w,e),C,C);return A=I?JSON.parse(I):void 0!==i?{flexGrow:void 0,flexShrink:void 0,flexBasis:i}:{flexGrow:1},(0,a.jsx)("div",{...g,"data-disabled":s||void 0,"data-panel":!0,"data-testid":v,id:v,ref:x,style:{...ev,display:"flex",flexBasis:0,flexShrink:1,overflow:"visible",...A},children:(0,a.jsx)("div",{className:t,style:{maxHeight:"100%",maxWidth:"100%",flexGrow:1,overflow:"auto",...m,touchAction:"horizontal"===O?"pan-y":"pan-x"},children:e})})}ed.displayName="Group",ey.displayName="Panel";let ev={minHeight:0,maxHeight:"100%",height:"auto",minWidth:0,maxWidth:"100%",width:"auto",border:"none",borderWidth:0,padding:0,margin:0};function eR(){return(0,o.useRef)(null)}function eb({children:e,className:t,disabled:r,disableDoubleClick:n,elementRef:i,id:s,style:l,...c}){let u,h,p=es(s),d=eh({disabled:r,disableDoubleClick:n}),[f,m]=(0,o.useState)({}),[g,A]=(0,o.useState)("inactive"),[y,v]=(0,o.useState)(!1),b=(0,o.useRef)(null),x=eu(b,i),{disableCursor:M,id:S,orientation:w,registerSeparator:O,updateSeparatorProps:L}=eA();return el(()=>{let e=b.current;if(null!==e){var t;let r={disabled:d.disabled,disableDoubleClick:d.disableDoubleClick,element:e,id:p},n=O(r),i=(t=e=>{A("inactive"!==e.next.state&&e.next.hitRegions.some(e=>e.separator===r)?e.next.state:"inactive")},R.addListener("change",t)),a=P(S,e=>{let{derivedPanelConstraints:t,layout:n,separatorToPanels:i}=e.next,a=i.get(r);if(a){let e=a[0],r=a.indexOf(e);m(function({layout:e,panelConstraints:t,panelId:r,panelIndex:n}){let i,a,o=e[r],s=t.find(e=>e.panelId===r);if(s){let l=s.maxSize,c=s.collapsible?s.collapsedSize:s.minSize,u=[n,n+1];a=Z({layout:$({delta:c-o,initialLayout:e,panelConstraints:t,pivotIndices:u,prevLayout:e}),panelConstraints:t})[r],i=Z({layout:$({delta:l-o,initialLayout:e,panelConstraints:t,pivotIndices:u,prevLayout:e}),panelConstraints:t})[r]}return{valueControls:r,valueMax:i,valueMin:a,valueNow:o}}({layout:n,panelConstraints:t,panelId:e.id,panelIndex:r}))}});return()=>{i(),a(),n()}}},[S,p,O,d]),(0,o.useEffect)(()=>{L(p,{disabled:r,disableDoubleClick:n})},[r,n,p,L]),r&&!M&&(u="not-allowed"),h=r?"disabled":"active"===g?"active":y?"focus":g,(0,a.jsx)("div",{...c,"aria-controls":f.valueControls,"aria-disabled":r||void 0,"aria-orientation":"horizontal"===w?"vertical":"horizontal","aria-valuemax":f.valueMax,"aria-valuemin":f.valueMin,"aria-valuenow":f.valueNow,children:e,className:t,"data-separator":h,"data-testid":p,id:p,onBlur:()=>v(!1),onFocus:()=>v(!0),ref:x,role:"separator",style:{flexBasis:"auto",cursor:u,...l,flexGrow:0,flexShrink:0,touchAction:"none"},tabIndex:r?void 0:0})}eb.displayName="Separator",r.d(t,{YJ:()=>ed,Zk:()=>ey,fk:()=>eR,lv:()=>em,wv:()=>eb})},65179(e,t,r){function n([e,t],r){return[e*Math.cos(r)-t*Math.sin(r),e*Math.sin(r)+t*Math.cos(r)]}function i(...e){for(let t=0;t<e.length;t++)if("number"!=typeof e[t])throw Error(`assertNumbers arguments[${t}] is not a number. ${typeof e[t]} == typeof ${e[t]}`);return!0}r.d(t,{LQ:()=>w,zb:()=>R});let a=Math.PI;function o(e,t,r){e.lArcFlag=+(0!==e.lArcFlag),e.sweepFlag=+(0!==e.sweepFlag);let{rX:i,rY:o}=e,{x:s,y:l}=e;if(1e-10>Math.abs(i)||1e-10>Math.abs(o)){e.rX=0,e.rY=0,e.cX=(t+s)/2,e.cY=(r+l)/2,e.phi1=0,e.phi2=0;return}i=Math.abs(e.rX),o=Math.abs(e.rY);let c=e.xRot/180*a,[u,h]=n([(t-s)/2,(r-l)/2],-c),p=Math.pow(u,2)/Math.pow(i,2)+Math.pow(h,2)/Math.pow(o,2);1<p&&(i*=Math.sqrt(p),o*=Math.sqrt(p)),e.rX=i,e.rY=o;let d=Math.pow(i,2)*Math.pow(h,2)+Math.pow(o,2)*Math.pow(u,2),f=(e.lArcFlag!==e.sweepFlag?1:-1)*Math.sqrt(Math.max(0,(Math.pow(i,2)*Math.pow(o,2)-d)/d)),m=i*h/o*f,g=-o*u/i*f,A=n([m,g],c);e.cX=A[0]+(t+s)/2,e.cY=A[1]+(r+l)/2,e.phi1=Math.atan2((h-g)/o,(u-m)/i),e.phi2=Math.atan2((-h-g)/o,(-u-m)/i),0===e.sweepFlag&&e.phi2>e.phi1&&(e.phi2-=2*a),1===e.sweepFlag&&e.phi2<e.phi1&&(e.phi2+=2*a),e.phi1*=180/a,e.phi2*=180/a}function s(e,t,r){i(e,t,r);let n=e*e+t*t-r*r;if(0>n)return[];if(0===n)return[[e*r/(e*e+t*t),t*r/(e*e+t*t)]];let a=Math.sqrt(n);return[[(e*r+t*a)/(e*e+t*t),(t*r-e*a)/(e*e+t*t)],[(e*r-t*a)/(e*e+t*t),(t*r+e*a)/(e*e+t*t)]]}let l=Math.PI/180;function c(e,t,r,n){return e+Math.cos(n/180*a)*t+Math.sin(n/180*a)*r}function u(e,t,r,n){let i=t-e,a=r-t,o=3*i+3*(n-r)-6*a,s=(a-i)*6,l=3*i;return 1e-6>Math.abs(o)?1e-6>Math.abs(s)?[]:[-l/s]:function(e,t,r=1e-6){let n=e*e/4-t;if(n<-r)return[];if(n<=r)return[-e/2];let i=Math.sqrt(n);return[-(e/2)-i,-(e/2)+i]}(s/o,l/o,1e-6)}function h(e,t,r,n,i){let a=1-i;return a*a*a*e+3*a*a*i*t+3*a*i*i*r+i*i*i*n}function p(e,t,r){let n=t[0]-e[0],i=t[1]-e[1],a=r[0]-e[0],o=r[1]-e[1];if(!(1e-10>Math.abs(n*o-i*a)))return!1;let s=n*a+i*o,l=a*a+o*o;return 0<=s&&s<=l&&n*n+i*i<=l}function d(e){let t=e[e.length-1]?.type===w.CLOSE_PATH,r=t?e.length-2:e.length-1,n=[{type:w.MOVE_TO,relative:!1,x:e[r].x,y:e[r].y}];for(let t=r;t>0;t--){let r=e[t],i=e[t-1];if(r.relative)throw Error("Relative command are not supported convert first with `toAbs()`");switch(r.type){case w.HORIZ_LINE_TO:n.push({type:w.HORIZ_LINE_TO,relative:!1,x:i.x});break;case w.VERT_LINE_TO:n.push({type:w.VERT_LINE_TO,relative:!1,y:i.y});break;case w.LINE_TO:case w.MOVE_TO:n.push({type:w.LINE_TO,relative:!1,x:i.x,y:i.y});break;case w.CURVE_TO:n.push({type:w.CURVE_TO,relative:!1,x:i.x,y:i.y,x1:r.x2,y1:r.y2,x2:r.x1,y2:r.y1});break;case w.SMOOTH_CURVE_TO:throw Error("Unsupported command: S (smooth cubic bezier)");case w.SMOOTH_QUAD_TO:throw Error("Unsupported command: T (smooth quadratic bezier)");case w.ARC:throw Error("Unsupported command: A (arc)");case w.QUAD_TO:throw Error("Unsupported command: Q (quadratic bezier)")}}return t&&n.push({type:w.CLOSE_PATH}),n}function f(){return A((e,t,r)=>(e.relative&&(void 0!==e.x1&&(e.x1+=t),void 0!==e.y1&&(e.y1+=r),void 0!==e.x2&&(e.x2+=t),void 0!==e.y2&&(e.y2+=r),void 0!==e.x&&(e.x+=t),void 0!==e.y&&(e.y+=r),e.relative=!1),e))}function m(){let e=0/0,t=0/0,r=0/0,n=0/0;return A((i,a,o)=>(i.type&w.SMOOTH_CURVE_TO&&(i.type=w.CURVE_TO,e=isNaN(e)?a:e,t=isNaN(t)?o:t,i.x1=i.relative?a-e:2*a-e,i.y1=i.relative?o-t:2*o-t),i.type&w.CURVE_TO?(e=i.relative?a+i.x2:i.x2,t=i.relative?o+i.y2:i.y2):(e=0/0,t=0/0),i.type&w.SMOOTH_QUAD_TO&&(i.type=w.QUAD_TO,r=isNaN(r)?a:r,n=isNaN(n)?o:n,i.x1=i.relative?a-r:2*a-r,i.y1=i.relative?o-n:2*o-n),i.type&w.QUAD_TO?(r=i.relative?a+i.x1:i.x1,n=i.relative?o+i.y1:i.y1):(r=0/0,n=0/0),i))}function g(){let e=0/0,t=0/0;return A((r,n,i)=>{if(r.type&w.SMOOTH_QUAD_TO&&(r.type=w.QUAD_TO,e=isNaN(e)?n:e,t=isNaN(t)?i:t,r.x1=r.relative?n-e:2*n-e,r.y1=r.relative?i-t:2*i-t),r.type&w.QUAD_TO){e=r.relative?n+r.x1:r.x1,t=r.relative?i+r.y1:r.y1;let a=r.x1,o=r.y1;r.type=w.CURVE_TO,r.x1=((r.relative?0:n)+2*a)/3,r.y1=((r.relative?0:i)+2*o)/3,r.x2=(r.x+2*a)/3,r.y2=(r.y+2*o)/3}else e=0/0,t=0/0;return r})}function A(e){let t=0,r=0,n=0/0,i=0/0;return function(a){if(isNaN(n)&&!(a.type&w.MOVE_TO))throw Error("path must start with moveto");let o=e(a,t,r,n,i);return a.type&w.CLOSE_PATH&&(t=n,r=i),"x"in a&&void 0!==a.x&&(t=a.relative?t+a.x:a.x),"y"in a&&void 0!==a.y&&(r=a.relative?r+a.y:a.y),a.type&w.MOVE_TO&&(n=t,i=r),o}}function y(e,t,r,n,a,o){return i(e,t,r,n,a,o),A((i,s,l,c)=>{let u=i.x1,h=i.x2,p=i.relative&&!isNaN(c),d=void 0!==i.x?i.x:p?0:s,f=void 0!==i.y?i.y:p?0:l;i.type&w.HORIZ_LINE_TO&&0!==t&&(i.type=w.LINE_TO,i.y=i.relative?0:l),i.type&w.VERT_LINE_TO&&0!==r&&(i.type=w.LINE_TO,i.x=i.relative?0:s),void 0!==i.x&&(i.x=i.x*e+f*r+(p?0:a)),void 0!==i.y&&(i.y=d*t+i.y*n+(p?0:o)),void 0!==i.x1&&(i.x1=i.x1*e+i.y1*r+(p?0:a)),void 0!==i.y1&&(i.y1=u*t+i.y1*n+(p?0:o)),void 0!==i.x2&&(i.x2=i.x2*e+i.y2*r+(p?0:a)),void 0!==i.y2&&(i.y2=h*t+i.y2*n+(p?0:o));let m=e*n-t*r;if(void 0!==i.xRot&&(1!==e||0!==t||0!==r||1!==n))if(0===m)delete i.rX,delete i.rY,delete i.xRot,delete i.lArcFlag,delete i.sweepFlag,i.type=w.LINE_TO;else{var g,A;let a=i.xRot*Math.PI/180,o=Math.sin(a),s=Math.cos(a),l=1/((g=i.rX)*g),c=1/((A=i.rY)*A),u=s*s*l+o*o*c,h=2*o*s*(l-c),p=o*o*l+s*s*c,d=u*n*n-h*t*n+p*t*t,f=h*(e*n+t*r)-2*(u*r*n+p*e*t),y=u*r*r-h*e*r+p*e*e,v=(Math.atan2(f,d-y)+Math.PI)%Math.PI/2,R=Math.sin(v),b=Math.cos(v);i.rX=Math.abs(m)/Math.sqrt(b*b*d+f*R*b+R*R*y),i.rY=Math.abs(m)/Math.sqrt(R*R*d-f*R*b+b*b*y),i.xRot=180*v/Math.PI}return void 0!==i.sweepFlag&&0>m&&(i.sweepFlag=+!i.sweepFlag),i})}function v(){return e=>({...e})}let R={ROUND:function(e=1e13){function t(t){return Math.round(t*e)/e}return i(e),function(e){return"x1"in e&&void 0!==e.x1&&(e.x1=t(e.x1)),"y1"in e&&void 0!==e.y1&&(e.y1=t(e.y1)),"x2"in e&&void 0!==e.x2&&(e.x2=t(e.x2)),"y2"in e&&void 0!==e.y2&&(e.y2=t(e.y2)),"x"in e&&void 0!==e.x&&(e.x=t(e.x)),"y"in e&&void 0!==e.y&&(e.y=t(e.y)),"rX"in e&&void 0!==e.rX&&(e.rX=t(e.rX)),"rY"in e&&void 0!==e.rY&&(e.rY=t(e.rY)),e}},TO_ABS:f,TO_REL:function(){return A((e,t,r)=>(e.relative||(void 0!==e.x1&&(e.x1-=t),void 0!==e.y1&&(e.y1-=r),void 0!==e.x2&&(e.x2-=t),void 0!==e.y2&&(e.y2-=r),void 0!==e.x&&(e.x-=t),void 0!==e.y&&(e.y-=r),e.relative=!0),e))},NORMALIZE_HVZ:function(e=!0,t=!0,r=!0,n=!0){return A((i,a,o,s,l)=>{if(isNaN(s)&&!(i.type&w.MOVE_TO))throw Error("path must start with moveto");if(t&&i.type&w.HORIZ_LINE_TO&&(i.type=w.LINE_TO,i.y=i.relative?0:o),r&&i.type&w.VERT_LINE_TO&&(i.type=w.LINE_TO,i.x=i.relative?0:a),e&&i.type&w.CLOSE_PATH&&(i.type=w.LINE_TO,i.x=i.relative?s-a:s,i.y=i.relative?l-o:l),i.type&w.ARC&&(0===i.rX||0===i.rY)&&(i.type=w.LINE_TO,delete i.rX,delete i.rY,delete i.xRot,delete i.lArcFlag,delete i.sweepFlag),n&&i.type&w.QUAD_TO&&p([a,o],i.relative?[a+i.x1,o+i.y1]:[i.x1,i.y1],i.relative?[a+i.x,o+i.y]:[i.x,i.y])&&(i.type=w.LINE_TO,delete i.x1,delete i.y1),n&&i.type&w.CURVE_TO){let e=[a,o],t=i.relative?[a+i.x1,o+i.y1]:[i.x1,i.y1],r=i.relative?[a+i.x2,o+i.y2]:[i.x2,i.y2],n=i.relative?[a+i.x,o+i.y]:[i.x,i.y];p(e,t,n)&&p(e,r,n)&&(i.type=w.LINE_TO,delete i.x1,delete i.y1,delete i.x2,delete i.y2)}return i})},NORMALIZE_ST:m,QT_TO_C:g,INFO:A,SANITIZE:function(e=0){i(e);let t=0/0,r=0/0,n=0/0,a=0/0;return A((i,o,s,l,c)=>{let u=Math.abs,h=!1,p=0,d=0;if(i.type&w.SMOOTH_CURVE_TO&&(p=isNaN(t)?0:o-t,d=isNaN(r)?0:s-r),i.type&(w.CURVE_TO|w.SMOOTH_CURVE_TO)?(t=i.relative?o+i.x2:i.x2,r=i.relative?s+i.y2:i.y2):(t=0/0,r=0/0),i.type&w.SMOOTH_QUAD_TO?(n=isNaN(n)?o:2*o-n,a=isNaN(a)?s:2*s-a):i.type&w.QUAD_TO?(n=i.relative?o+i.x1:i.x1,a=i.relative?s+i.y1:i.y2):(n=0/0,a=0/0),i.type&w.LINE_COMMANDS||i.type&w.ARC&&(0===i.rX||0===i.rY||!i.lArcFlag)||i.type&w.CURVE_TO||i.type&w.SMOOTH_CURVE_TO||i.type&w.QUAD_TO||i.type&w.SMOOTH_QUAD_TO){let t=void 0===i.x?0:i.relative?i.x:i.x-o,r=void 0===i.y?0:i.relative?i.y:i.y-s;p=isNaN(n)?void 0===i.x1?p:i.relative?i.x:i.x1-o:n-o,d=isNaN(a)?void 0===i.y1?d:i.relative?i.y:i.y1-s:a-s;let l=void 0===i.x2?0:i.relative?i.x:i.x2-o,c=void 0===i.y2?0:i.relative?i.y:i.y2-s;u(t)<=e&&u(r)<=e&&u(p)<=e&&u(d)<=e&&u(l)<=e&&u(c)<=e&&(h=!0)}return i.type&w.CLOSE_PATH&&u(o-l)<=e&&u(s-c)<=e&&(h=!0),h?[]:i})},MATRIX:y,ROTATE:function(e,t=0,r=0){i(e,t,r);let n=Math.sin(e),a=Math.cos(e);return y(a,n,-n,a,t-t*a+r*n,r-t*n-r*a)},TRANSLATE:function(e,t=0){return i(e,t),y(1,0,0,1,e,t)},SCALE:function(e,t=e){return i(e,t),y(e,0,0,t,0,0)},SKEW_X:function(e){return i(e),y(1,0,Math.tan(e),1,0,0)},SKEW_Y:function(e){return i(e),y(1,Math.tan(e),0,1,0,0)},X_AXIS_SYMMETRY:function(e=0){return i(e),y(-1,0,0,1,e,0)},Y_AXIS_SYMMETRY:function(e=0){return i(e),y(1,0,0,-1,0,e)},A_TO_C:function(){return A((e,t,r)=>w.ARC===e.type?function(e,t,r){e.cX||o(e,t,r);let i=e.xRot/180*a;if(1e-10>Math.abs(e.rX)||1e-10>Math.abs(e.rY))return[{relative:e.relative,type:w.CURVE_TO,x1:t+(e.x-t)/3,y1:r+(e.y-r)/3,x2:t+2*(e.x-t)/3,y2:r+2*(e.y-r)/3,x:e.x,y:e.y}];let s=Math.min(e.phi1,e.phi2),c=Math.ceil((Math.max(e.phi1,e.phi2)-s)/90),u=Array(c),h=t,p=r,d=(t,r)=>{let[a,o]=n([t*e.rX,r*e.rY],i);return[e.cX+a,e.cY+o]};for(let t=0;t<c;t++){var f,m,g,A,y,v;let r=(f=e.phi1,m=e.phi2,(1-(g=t/c))*f+g*m),n=(A=e.phi1,y=e.phi2,(1-(v=(t+1)/c))*A+v*y),i=4/3*Math.tan((n-r)*l/4),a=Math.cos(r*l)-i*Math.sin(r*l),o=Math.sin(r*l)+i*Math.cos(r*l),s=Math.cos(n*l),R=Math.sin(n*l),b=s+i*R,x=R-i*s,M=d(a,o),S=d(b,x),O=d(s,R),L={relative:e.relative,type:w.CURVE_TO,x:O[0],y:O[1],x1:M[0],y1:M[1],x2:S[0],y2:S[1]};e.relative&&(L.x1-=h,L.y1-=p,L.x2-=h,L.y2-=p,L.x-=h,L.y-=p),h=O[0],p=O[1],u[t]=L}return u}(e,e.relative?0:t,e.relative?0:r):e)},ANNOTATE_ARCS:function(){return A((e,t,r)=>(e.relative&&(t=0,r=0),w.ARC===e.type&&o(e,t,r),e))},CLONE:v,CALCULATE_BOUNDS:function(){let e=v(),t=f(),r=g(),n=m(),i=A((a,l,p)=>{let d=n(r(t(e(a))));function f(e){e>i.maxX&&(i.maxX=e),e<i.minX&&(i.minX=e)}function m(e){e>i.maxY&&(i.maxY=e),e<i.minY&&(i.minY=e)}if(d.type&w.DRAWING_COMMANDS&&(f(l),m(p)),d.type&w.HORIZ_LINE_TO&&f(d.x),d.type&w.VERT_LINE_TO&&m(d.y),d.type&w.LINE_TO&&(f(d.x),m(d.y)),d.type&w.CURVE_TO){for(let e of(f(d.x),m(d.y),u(l,d.x1,d.x2,d.x)))0<e&&1>e&&f(h(l,d.x1,d.x2,d.x,e));for(let e of u(p,d.y1,d.y2,d.y))0<e&&1>e&&m(h(p,d.y1,d.y2,d.y,e))}if(d.type&w.ARC){f(d.x),m(d.y),o(d,l,p);let e=d.xRot/180*Math.PI,t=Math.cos(e)*d.rX,r=Math.sin(e)*d.rX,n=-Math.sin(e)*d.rY,i=Math.cos(e)*d.rY,[a,u]=d.phi1<d.phi2?[d.phi1,d.phi2]:-180>d.phi2?[d.phi2+360,d.phi1+360]:[d.phi2,d.phi1],h=([e,t])=>{let r=180*Math.atan2(t,e)/Math.PI;return r<a?r+360:r};for(let e of s(n,-t,0).map(h))e>a&&e<u&&f(c(d.cX,t,n,e));for(let e of s(i,-r,0).map(h))e>a&&e<u&&m(c(d.cY,r,i,e))}return a});return i.minX=1/0,i.maxX=-1/0,i.minY=1/0,i.maxY=-1/0,i},REVERSE_PATH:function(e,t=!0){if(e.length<2)return e;let r=R.INFO((e,t,r)=>({...e,x:e.x??t,y:e.y??r,relative:e.relative??!1})),n=[],i=[];for(let a of e){let e=r(a);e.type===w.MOVE_TO&&i.length>0&&(t?n.push(...d(i)):n.unshift(...d(i)),i=[]),i.push(e)}return i.length>0&&(t?n.push(...d(i)):n.unshift(...d(i))),n},REMOVE_COLLINEAR:function(e){if(e.length<=2)return e;let t=[],r=e.map(R.INFO((e,t,r)=>{let n="relative"in e&&e.relative;return["x"in e?e.x+(n?t:0):t,"y"in e?e.y+(n?r:0):r]})),n=r[0];t.push(e[0]);for(let i=1;i<e.length;i++){let a=e[i],o=e[i+1];if(i<e.length-1&&o&&a.type&w.LINE_COMMANDS&&o.type&w.LINE_COMMANDS){let e=r[i+1];if(p(n,r[i],e)){"relative"in o&&o.relative&&("x"in o&&(o.x=e[0]-n[0]),"y"in o&&(o.y=e[1]-n[1]));continue}}t.push(a),n=r[i]}return t}};class b{round(e){return this.transform(R.ROUND(e))}toAbs(){return this.transform(R.TO_ABS())}toRel(){return this.transform(R.TO_REL())}normalizeHVZ(e,t,r){return this.transform(R.NORMALIZE_HVZ(e,t,r))}normalizeST(){return this.transform(R.NORMALIZE_ST())}qtToC(){return this.transform(R.QT_TO_C())}aToC(){return this.transform(R.A_TO_C())}sanitize(e){return this.transform(R.SANITIZE(e))}translate(e,t){return this.transform(R.TRANSLATE(e,t))}scale(e,t){return this.transform(R.SCALE(e,t))}rotate(e,t,r){return this.transform(R.ROTATE(e,t,r))}matrix(e,t,r,n,i,a){return this.transform(R.MATRIX(e,t,r,n,i,a))}skewX(e){return this.transform(R.SKEW_X(e))}skewY(e){return this.transform(R.SKEW_Y(e))}xSymmetry(e){return this.transform(R.X_AXIS_SYMMETRY(e))}ySymmetry(e){return this.transform(R.Y_AXIS_SYMMETRY(e))}annotateArcs(){return this.transform(R.ANNOTATE_ARCS())}}let x=e=>" "===e||" "===e||"\r"===e||"\n"===e,M=e=>48<=e.charCodeAt(0)&&57>=e.charCodeAt(0);class S extends b{curNumber="";curCommandType=-1;curCommandRelative=!1;canParseCommandOrComma=!0;curNumberHasExp=!1;curNumberHasExpDigits=!1;curNumberHasDecimal=!1;curArgs=[];finish(e=[]){if(this.parse(" ",e),0!==this.curArgs.length||!this.canParseCommandOrComma)throw SyntaxError("Unterminated command at the path end.");return e}parse(e,t=[]){let r=e=>{t.push(e),this.curArgs.length=0,this.canParseCommandOrComma=!0};for(let n=0;n<e.length;n++){let i=e[n],a=this.curCommandType===w.ARC&&(3===this.curArgs.length||4===this.curArgs.length)&&1===this.curNumber.length&&("0"===this.curNumber||"1"===this.curNumber),o=M(i)&&("0"===this.curNumber&&"0"===i||a);if(M(i)&&!o){this.curNumber+=i,this.curNumberHasExpDigits=this.curNumberHasExp;continue}if("e"===i||"E"===i){this.curNumber+=i,this.curNumberHasExp=!0;continue}if(("-"===i||"+"===i)&&this.curNumberHasExp&&!this.curNumberHasExpDigits){this.curNumber+=i;continue}if("."===i&&!this.curNumberHasExp&&!this.curNumberHasDecimal&&!a){this.curNumber+=i,this.curNumberHasDecimal=!0;continue}if(this.curNumber&&-1!==this.curCommandType){let e=Number(this.curNumber);if(isNaN(e))throw SyntaxError(`Invalid number ending at ${n}`);if(this.curCommandType===w.ARC){if(0===this.curArgs.length||1===this.curArgs.length){if(0>e)throw SyntaxError(`Expected positive number, got "${e}" at index "${n}"`)}else if((3===this.curArgs.length||4===this.curArgs.length)&&"0"!==this.curNumber&&"1"!==this.curNumber)throw SyntaxError(`Expected a flag, got "${this.curNumber}" at index "${n}"`)}this.curArgs.push(e),this.curArgs.length===O[this.curCommandType]&&(w.HORIZ_LINE_TO===this.curCommandType?r({type:w.HORIZ_LINE_TO,relative:this.curCommandRelative,x:e}):w.VERT_LINE_TO===this.curCommandType?r({type:w.VERT_LINE_TO,relative:this.curCommandRelative,y:e}):this.curCommandType===w.MOVE_TO||this.curCommandType===w.LINE_TO||this.curCommandType===w.SMOOTH_QUAD_TO?(r({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),w.MOVE_TO===this.curCommandType&&(this.curCommandType=w.LINE_TO)):this.curCommandType===w.CURVE_TO?r({type:w.CURVE_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x2:this.curArgs[2],y2:this.curArgs[3],x:this.curArgs[4],y:this.curArgs[5]}):this.curCommandType===w.SMOOTH_CURVE_TO?r({type:w.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===w.QUAD_TO?r({type:w.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===w.ARC&&r({type:w.ARC,relative:this.curCommandRelative,rX:this.curArgs[0],rY:this.curArgs[1],xRot:this.curArgs[2],lArcFlag:this.curArgs[3],sweepFlag:this.curArgs[4],x:this.curArgs[5],y:this.curArgs[6]})),this.curNumber="",this.curNumberHasExpDigits=!1,this.curNumberHasExp=!1,this.curNumberHasDecimal=!1,this.canParseCommandOrComma=!0}if(!x(i)){if(","===i&&this.canParseCommandOrComma){this.canParseCommandOrComma=!1;continue}if("+"===i||"-"===i||"."===i){this.curNumber=i,this.curNumberHasDecimal="."===i;continue}if(o){this.curNumber=i,this.curNumberHasDecimal=!1;continue}if(0!==this.curArgs.length)throw SyntaxError(`Unterminated command at index ${n}.`);if(!this.canParseCommandOrComma)throw SyntaxError(`Unexpected character "${i}" at index ${n}. Command cannot follow comma`);if(this.canParseCommandOrComma=!1,"z"===i||"Z"===i){t.push({type:w.CLOSE_PATH}),this.canParseCommandOrComma=!0,this.curCommandType=-1;continue}if("h"===i||"H"===i)this.curCommandType=w.HORIZ_LINE_TO,this.curCommandRelative="h"===i;else if("v"===i||"V"===i)this.curCommandType=w.VERT_LINE_TO,this.curCommandRelative="v"===i;else if("m"===i||"M"===i)this.curCommandType=w.MOVE_TO,this.curCommandRelative="m"===i;else if("l"===i||"L"===i)this.curCommandType=w.LINE_TO,this.curCommandRelative="l"===i;else if("c"===i||"C"===i)this.curCommandType=w.CURVE_TO,this.curCommandRelative="c"===i;else if("s"===i||"S"===i)this.curCommandType=w.SMOOTH_CURVE_TO,this.curCommandRelative="s"===i;else if("q"===i||"Q"===i)this.curCommandType=w.QUAD_TO,this.curCommandRelative="q"===i;else if("t"===i||"T"===i)this.curCommandType=w.SMOOTH_QUAD_TO,this.curCommandRelative="t"===i;else if("a"===i||"A"===i)this.curCommandType=w.ARC,this.curCommandRelative="a"===i;else throw SyntaxError(`Unexpected character "${i}" at index ${n}.`)}}return t}transform(e){return Object.create(this,{parse:{value(t,r=[]){for(let n of Object.getPrototypeOf(this).parse.call(this,t)){let t=e(n);Array.isArray(t)?r.push(...t):r.push(t)}return r}}})}}class w extends b{commands;constructor(e){super(),"string"==typeof e?this.commands=w.parse(e):this.commands=e}encode(){return w.encode(this.commands)}getBounds(){let e=R.CALCULATE_BOUNDS();return this.transform(e),e}transform(e){let t=[];for(let r of this.commands){let n=e(r);Array.isArray(n)?t.push(...n):t.push(n)}return this.commands=t,this}reverse(e=!0){return this.commands=R.REVERSE_PATH(this.commands,e),this}removeCollinear(){return this.commands=R.REMOVE_COLLINEAR(this.commands),this}static encode(e){var t=e;let r="";Array.isArray(t)||(t=[t]);for(let e=0;e<t.length;e++){let n=t[e];if(n.type===w.CLOSE_PATH)r+="z";else if(n.type===w.HORIZ_LINE_TO)r+=(n.relative?"h":"H")+n.x;else if(n.type===w.VERT_LINE_TO)r+=(n.relative?"v":"V")+n.y;else if(n.type===w.MOVE_TO)r+=(n.relative?"m":"M")+n.x+" "+n.y;else if(n.type===w.LINE_TO)r+=(n.relative?"l":"L")+n.x+" "+n.y;else if(n.type===w.CURVE_TO)r+=(n.relative?"c":"C")+n.x1+" "+n.y1+" "+n.x2+" "+n.y2+" "+n.x+" "+n.y;else if(n.type===w.SMOOTH_CURVE_TO)r+=(n.relative?"s":"S")+n.x2+" "+n.y2+" "+n.x+" "+n.y;else if(n.type===w.QUAD_TO)r+=(n.relative?"q":"Q")+n.x1+" "+n.y1+" "+n.x+" "+n.y;else if(n.type===w.SMOOTH_QUAD_TO)r+=(n.relative?"t":"T")+n.x+" "+n.y;else if(n.type===w.ARC)r+=(n.relative?"a":"A")+n.rX+" "+n.rY+" "+n.xRot+" "+ +n.lArcFlag+" "+ +n.sweepFlag+" "+n.x+" "+n.y;else throw Error(`Unexpected command type "${n?.type}" at index ${e}.`)}return r}static parse(e){let t=new S,r=[];return t.parse(e,r),t.finish(r),r}static CLOSE_PATH=1;static MOVE_TO=2;static HORIZ_LINE_TO=4;static VERT_LINE_TO=8;static LINE_TO=16;static CURVE_TO=32;static SMOOTH_CURVE_TO=64;static QUAD_TO=128;static SMOOTH_QUAD_TO=256;static ARC=512;static LINE_COMMANDS=w.LINE_TO|w.HORIZ_LINE_TO|w.VERT_LINE_TO;static DRAWING_COMMANDS=w.HORIZ_LINE_TO|w.VERT_LINE_TO|w.LINE_TO|w.CURVE_TO|w.SMOOTH_CURVE_TO|w.QUAD_TO|w.SMOOTH_QUAD_TO|w.ARC}let O={[w.MOVE_TO]:2,[w.LINE_TO]:2,[w.HORIZ_LINE_TO]:1,[w.VERT_LINE_TO]:1,[w.CLOSE_PATH]:0,[w.QUAD_TO]:4,[w.SMOOTH_QUAD_TO]:2,[w.CURVE_TO]:6,[w.SMOOTH_CURVE_TO]:4,[w.ARC]:7}},84140(e,t,r){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i,a,o,s=/^\s+/,l=/\s+$/;function c(e,t){if(t=t||{},(e=e||"")instanceof c)return e;if(!(this instanceof c))return new c(e,t);var r,i,a,o,u,h,p,d,f,m,g,A,y,v,R,b,x,M,S,w,L=(i={r:0,g:0,b:0},a=1,o=null,u=null,h=null,p=!1,d=!1,"string"==typeof(r=e)&&(r=function(e){e=e.replace(s,"").replace(l,"").toLowerCase();var t,r=!1;if(O[e])e=O[e],r=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};return(t=F.rgb.exec(e))?{r:t[1],g:t[2],b:t[3]}:(t=F.rgba.exec(e))?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=F.hsl.exec(e))?{h:t[1],s:t[2],l:t[3]}:(t=F.hsla.exec(e))?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=F.hsv.exec(e))?{h:t[1],s:t[2],v:t[3]}:(t=F.hsva.exec(e))?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=F.hex8.exec(e))?{r:P(t[1]),g:P(t[2]),b:P(t[3]),a:P(t[4])/255,format:r?"name":"hex8"}:(t=F.hex6.exec(e))?{r:P(t[1]),g:P(t[2]),b:P(t[3]),format:r?"name":"hex"}:(t=F.hex4.exec(e))?{r:P(t[1]+""+t[1]),g:P(t[2]+""+t[2]),b:P(t[3]+""+t[3]),a:P(t[4]+""+t[4])/255,format:r?"name":"hex8"}:!!(t=F.hex3.exec(e))&&{r:P(t[1]+""+t[1]),g:P(t[2]+""+t[2]),b:P(t[3]+""+t[3]),format:r?"name":"hex"}}(r)),"object"==n(r)&&(X(r.r)&&X(r.g)&&X(r.b)?(f=r.r,m=r.g,g=r.b,i={r:255*_(f,255),g:255*_(m,255),b:255*_(g,255)},p=!0,d="%"===String(r.r).substr(-1)?"prgb":"rgb"):X(r.h)&&X(r.s)&&X(r.v)?(o=I(r.s),u=I(r.v),A=r.h,y=o,v=u,A=6*_(A,360),y=_(y,100),v=_(v,100),R=Math.floor(A),b=A-R,x=v*(1-y),M=v*(1-b*y),S=v*(1-(1-b)*y),i={r:255*[v,M,x,x,S,v][w=R%6],g:255*[S,v,v,M,x,x][w],b:255*[x,x,S,v,v,M][w]},p=!0,d="hsv"):X(r.h)&&X(r.s)&&X(r.l)&&(o=I(r.s),h=I(r.l),i=function(e,t,r){var n,i,a;function o(e,t,r){return(r<0&&(r+=1),r>1&&(r-=1),r<1/6)?e+(t-e)*6*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}if(e=_(e,360),t=_(t,100),r=_(r,100),0===t)n=i=a=r;else{var s=r<.5?r*(1+t):r+t-r*t,l=2*r-s;n=o(l,s,e+1/3),i=o(l,s,e),a=o(l,s,e-1/3)}return{r:255*n,g:255*i,b:255*a}}(r.h,o,h),p=!0,d="hsl"),r.hasOwnProperty("a")&&(a=r.a)),a=N(a),{ok:p,format:r.format||d,r:Math.min(255,Math.max(i.r,0)),g:Math.min(255,Math.max(i.g,0)),b:Math.min(255,Math.max(i.b,0)),a:a});this._originalInput=e,this._r=L.r,this._g=L.g,this._b=L.b,this._a=L.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||L.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=L.ok}function u(e,t,r){e=_(e,255);var n,i,a=Math.max(e,t=_(t,255),r=_(r,255)),o=Math.min(e,t,r),s=(a+o)/2;if(a==o)n=i=0;else{var l=a-o;switch(i=s>.5?l/(2-a-o):l/(a+o),a){case e:n=(t-r)/l+6*(t<r);break;case t:n=(r-e)/l+2;break;case r:n=(e-t)/l+4}n/=6}return{h:n,s:i,l:s}}function h(e,t,r){e=_(e,255);var n,i=Math.max(e,t=_(t,255),r=_(r,255)),a=Math.min(e,t,r),o=i-a;if(i==a)n=0;else{switch(i){case e:n=(t-r)/o+6*(t<r);break;case t:n=(r-e)/o+2;break;case r:n=(e-t)/o+4}n/=6}return{h:n,s:0===i?0:o/i,v:i}}function p(e,t,r,n){var i=[C(Math.round(e).toString(16)),C(Math.round(t).toString(16)),C(Math.round(r).toString(16))];return n&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function d(e,t,r,n){return[C(k(n)),C(Math.round(e).toString(16)),C(Math.round(t).toString(16)),C(Math.round(r).toString(16))].join("")}function f(e,t){t=0===t?0:t||10;var r=c(e).toHsl();return r.s-=t/100,r.s=T(r.s),c(r)}function m(e,t){t=0===t?0:t||10;var r=c(e).toHsl();return r.s+=t/100,r.s=T(r.s),c(r)}function g(e){return c(e).desaturate(100)}function A(e,t){t=0===t?0:t||10;var r=c(e).toHsl();return r.l+=t/100,r.l=T(r.l),c(r)}function y(e,t){t=0===t?0:t||10;var r=c(e).toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(-(t/100*255)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(-(t/100*255)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(-(t/100*255)))),c(r)}function v(e,t){t=0===t?0:t||10;var r=c(e).toHsl();return r.l-=t/100,r.l=T(r.l),c(r)}function R(e,t){var r=c(e).toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,c(r)}function b(e){var t=c(e).toHsl();return t.h=(t.h+180)%360,c(t)}function x(e,t){if(isNaN(t)||t<=0)throw Error("Argument to polyad must be a positive number");for(var r=c(e).toHsl(),n=[c(e)],i=360/t,a=1;a<t;a++)n.push(c({h:(r.h+a*i)%360,s:r.s,l:r.l}));return n}function M(e){var t=c(e).toHsl(),r=t.h;return[c(e),c({h:(r+72)%360,s:t.s,l:t.l}),c({h:(r+216)%360,s:t.s,l:t.l})]}function S(e,t,r){t=t||6,r=r||30;var n=c(e).toHsl(),i=360/r,a=[c(e)];for(n.h=(n.h-(i*t>>1)+720)%360;--t;)n.h=(n.h+i)%360,a.push(c(n));return a}function w(e,t){t=t||6;for(var r=c(e).toHsv(),n=r.h,i=r.s,a=r.v,o=[],s=1/t;t--;)o.push(c({h:n,s:i,v:a})),a=(a+s)%1;return o}c.prototype={isDark:function(){return 128>this.getBrightness()},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,r,n=this.toRgb();return e=n.r/255,t=n.g/255,.2126*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.0722*((r=n.b/255)<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},setAlpha:function(e){return this._a=N(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=h(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=h(this._r,this._g,this._b),t=Math.round(360*e.h),r=Math.round(100*e.s),n=Math.round(100*e.v);return 1==this._a?"hsv("+t+", "+r+"%, "+n+"%)":"hsva("+t+", "+r+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var e=u(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=u(this._r,this._g,this._b),t=Math.round(360*e.h),r=Math.round(100*e.s),n=Math.round(100*e.l);return 1==this._a?"hsl("+t+", "+r+"%, "+n+"%)":"hsla("+t+", "+r+"%, "+n+"%, "+this._roundA+")"},toHex:function(e){return p(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){var t,r,n,i,a,o;return t=this._r,r=this._g,n=this._b,i=this._a,a=e,o=[C(Math.round(t).toString(16)),C(Math.round(r).toString(16)),C(Math.round(n).toString(16)),C(k(i))],a&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*_(this._r,255))+"%",g:Math.round(100*_(this._g,255))+"%",b:Math.round(100*_(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*_(this._r,255))+"%, "+Math.round(100*_(this._g,255))+"%, "+Math.round(100*_(this._b,255))+"%)":"rgba("+Math.round(100*_(this._r,255))+"%, "+Math.round(100*_(this._g,255))+"%, "+Math.round(100*_(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(L[p(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+d(this._r,this._g,this._b,this._a),r=t,n=this._gradientType?"GradientType = 1, ":"";if(e){var i=c(e);r="#"+d(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+t+",endColorstr="+r+")"},toString:function(e){var t=!!e;e=e||this._format;var r=!1,n=this._a<1&&this._a>=0;return!t&&n&&("hex"===e||"hex6"===e||"hex3"===e||"hex4"===e||"hex8"===e||"name"===e)?"name"===e&&0===this._a?this.toName():this.toRgbString():("rgb"===e&&(r=this.toRgbString()),"prgb"===e&&(r=this.toPercentageRgbString()),("hex"===e||"hex6"===e)&&(r=this.toHexString()),"hex3"===e&&(r=this.toHexString(!0)),"hex4"===e&&(r=this.toHex8String(!0)),"hex8"===e&&(r=this.toHex8String()),"name"===e&&(r=this.toName()),"hsl"===e&&(r=this.toHslString()),"hsv"===e&&(r=this.toHsvString()),r||this.toHexString())},clone:function(){return c(this.toString())},_applyModification:function(e,t){var r=e.apply(null,[this].concat([].slice.call(t)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(A,arguments)},brighten:function(){return this._applyModification(y,arguments)},darken:function(){return this._applyModification(v,arguments)},desaturate:function(){return this._applyModification(f,arguments)},saturate:function(){return this._applyModification(m,arguments)},greyscale:function(){return this._applyModification(g,arguments)},spin:function(){return this._applyModification(R,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(S,arguments)},complement:function(){return this._applyCombination(b,arguments)},monochromatic:function(){return this._applyCombination(w,arguments)},splitcomplement:function(){return this._applyCombination(M,arguments)},triad:function(){return this._applyCombination(x,[3])},tetrad:function(){return this._applyCombination(x,[4])}},c.fromRatio=function(e,t){if("object"==n(e)){var r={};for(var i in e)e.hasOwnProperty(i)&&("a"===i?r[i]=e[i]:r[i]=I(e[i]));e=r}return c(e,t)},c.equals=function(e,t){return!!e&&!!t&&c(e).toRgbString()==c(t).toRgbString()},c.random=function(){return c.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},c.mix=function(e,t,r){r=0===r?0:r||50;var n=c(e).toRgb(),i=c(t).toRgb(),a=r/100;return c({r:(i.r-n.r)*a+n.r,g:(i.g-n.g)*a+n.g,b:(i.b-n.b)*a+n.b,a:(i.a-n.a)*a+n.a})},c.readability=function(e,t){var r=c(e),n=c(t);return(Math.max(r.getLuminance(),n.getLuminance())+.05)/(Math.min(r.getLuminance(),n.getLuminance())+.05)},c.isReadable=function(e,t,r){var n,i,a,o,s,l=c.readability(e,t);switch(s=!1,(i=((n=(n=r)||{level:"AA",size:"small"}).level||"AA").toUpperCase(),a=(n.size||"small").toLowerCase(),"AA"!==i&&"AAA"!==i&&(i="AA"),"small"!==a&&"large"!==a&&(a="small"),o={level:i,size:a}).level+o.size){case"AAsmall":case"AAAlarge":s=l>=4.5;break;case"AAlarge":s=l>=3;break;case"AAAsmall":s=l>=7}return s},c.mostReadable=function(e,t,r){var n,i,a,o,s=null,l=0;i=(r=r||{}).includeFallbackColors,a=r.level,o=r.size;for(var u=0;u<t.length;u++)(n=c.readability(e,t[u]))>l&&(l=n,s=c(t[u]));return c.isReadable(e,s,{level:a,size:o})||!i?s:(r.includeFallbackColors=!1,c.mostReadable(e,["#fff","#000"],r))};var O=c.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},L=c.hexNames=function(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);return t}(O);function N(e){return(isNaN(e=parseFloat(e))||e<0||e>1)&&(e=1),e}function _(e,t){"string"==typeof(r=e)&&-1!=r.indexOf(".")&&1===parseFloat(r)&&(e="100%");var r,n,i="string"==typeof(n=e)&&-1!=n.indexOf("%");return(e=Math.min(t,Math.max(0,parseFloat(e))),i&&(e=parseInt(e*t,10)/100),1e-6>Math.abs(e-t))?1:e%t/parseFloat(t)}function T(e){return Math.min(1,Math.max(0,e))}function P(e){return parseInt(e,16)}function C(e){return 1==e.length?"0"+e:""+e}function I(e){return e<=1&&(e=100*e+"%"),e}function k(e){return Math.round(255*parseFloat(e)).toString(16)}var F=(a="[\\s|\\(]+("+(i="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+i+")[,|\\s]+("+i+")\\s*\\)?",o="[\\s|\\(]+("+i+")[,|\\s]+("+i+")[,|\\s]+("+i+")[,|\\s]+("+i+")\\s*\\)?",{CSS_UNIT:new RegExp(i),rgb:RegExp("rgb"+a),rgba:RegExp("rgba"+o),hsl:RegExp("hsl"+a),hsla:RegExp("hsla"+o),hsv:RegExp("hsv"+a),hsva:RegExp("hsva"+o),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function X(e){return!!F.CSS_UNIT.exec(e)}r.d(t,{A:()=>c})},57799(){((e="lang")=>()=>{var t;let r;return t=document?.cookie,(r=t?.split(";").map(e=>e.trim()).find(t=>t.startsWith(e))?.split("=")[1])?[r]:[]})();var e=e=>!!e;((t="lang")=>()=>[window?.localStorage?.getItem(t)].filter(e))(),((e="lang")=>()=>{let t=location?.search?.slice(1).split("&").find(t=>t.startsWith(e))?.split("=")[1];return t?[t]:[]})();var t=e=>!!e;((e="lang")=>()=>[window?.sessionStorage?.getItem(e)].filter(t))()},19788(e,t,r){var n=(e,t={})=>{let r=new Intl.NumberFormat(e,t);return e=>r.format(e)};r.d(t,{A:()=>n})},30139(e,t,r){var n=r(51649),i=()=>new Proxy(Object.assign(()=>"",{}),{get:(e,t)=>"length"===t?0:i()}),a=/^\{.*\}$/,o=/(\{(?:[^{}]+|\{(?:[^{}]+)*\})*\})/g,s=e=>e.substring(1,e.length-1),l=/\?\?/g;function c(e,t,r={}){let n,i;return h(t,(n={},i=new Intl.PluralRules(e),(e,...t)=>{var c;let u,h,p;return c=n[e]||(n[e]=((e,t=!0,r="",n="")=>e.split(o).map(e=>{if(!e.match(o))return e;let t=s(e);if(t.startsWith("{"))return((e,t)=>{let[r,n]=e.split(":");n||(n=r,r=t);let i=n.split("|"),[a,o,s,l,c,u]=i,h=i.filter(e=>void 0!==e).length;return 1===h?{k:r,r:a}:2===h?{k:r,o:a,r:o}:3===h?{k:r,z:a,o:o,r:s}:{k:r,z:a,o:o,t:s,f:l,m:c,r:u}})(s(t),n);let i=(e=>{let[t="",...r]=e.split("|"),[n="",i]=t.split(":"),[a,o]=n.split("?");return{k:a,i:i,n:""===o,f:r}})(t);return n=i.k||n,r||(r=n),i}).map(e=>{if("string"==typeof e)return e;e.k||(e.k=r||"0");let n=Object.fromEntries(Object.keys(e).map(t=>{let r=e[t];return[t,Array.isArray(r)?r.map(e=>e?.trim()):!!r===r?r:r?.trim()]}));return t?Object.fromEntries(Object.entries(n).map(([e,t])=>"i"!==e&&t&&"0"!=t&&[e,t]).filter(Boolean)):n}))(e)),h=(u=t[0])&&"object"==typeof u&&u.constructor===Object,p=1===t.length&&h?u:t,c.map(e=>{if("string"==typeof e)return e;let{k:t="0",f:n=[]}=e,o=p[t];return e.o||e.r?(("boolean"==typeof o?o?e.o:e.r:((e,{z:t,o:r,t:n,f:i,m:a,r:o},s)=>{switch(t&&0==s?"zero":e.select(s)){case"zero":return t;case"one":return r;case"two":return n;case"few":return i??o;case"many":return a??o;default:return o}})(i,e,o))||"").replace(l,o):(""+((n.length?n.reduce((e,t)=>{let n;return(t.match(a)?(n=Object.fromEntries(s(t).split(",").map(e=>e.split(":")).reduce((e,t)=>2===t.length?[...e,t.map(e=>e.trim())]:(e[e.length-1][1]+=","+t[0],e),[])))[e]??n["*"]:r[t]?.(e))??e},o):o)??"")).trim()}).join("")}))}var u=(e={},t)=>"string"==typeof e?t.bind(null,e):Object.assign(Object.defineProperty(()=>"","name",{writable:!0}),e),h=(e,t)=>new Proxy(u(e,t),{get:(e,r)=>r===Symbol.iterator?[][Symbol.iterator].bind(Object.values(e).map(e=>u(e,t))):h(e[r],t)}),p=n.default,d=(e,t={})=>{let r=p.createContext({});return{component:n=>{let[a,o]=p.useState(n.locale),[s,l]=p.useState(()=>a?c(a,e[a],t[a]):i()),u=p.useCallback(r=>{o(r),l(()=>c(r,e[r],t[r]))},[]),h=p.useMemo(()=>({setLocale:u,locale:a,LL:s}),[u,a,s]);return p.createElement(r.Provider,{value:h},n.children)},context:r}};r.d(t,{w:()=>d})},86639(e,t,r){r.d(t,{y:()=>s});let n=/^\{.*\}$/,i=/(\{(?:[^{}]+|\{(?:[^{}]+)*\})*\})/g,a=e=>e.substring(1,e.length-1),o=/\?\?/g;function s(e,t,r={}){let l,u;return c(t,(l={},u=new Intl.PluralRules(e),(e,...t)=>{var s;let c,h,p;return s=l[e]||(l[e]=((e,t=!0,r="",n="")=>e.split(i).map(e=>{if(!e.match(i))return e;let t=a(e);if(t.startsWith("{"))return((e,t)=>{let[r,n]=e.split(":");n||(n=r,r=t);let i=n.split("|"),[a,o,s,l,c,u]=i,h=i.filter(e=>void 0!==e).length;return 1===h?{k:r,r:a}:2===h?{k:r,o:a,r:o}:3===h?{k:r,z:a,o:o,r:s}:{k:r,z:a,o:o,t:s,f:l,m:c,r:u}})(a(t),n);let o=(e=>{let[t="",...r]=e.split("|"),[n="",i]=t.split(":"),[a,o]=n.split("?");return{k:a,i:i,n:""===o,f:r}})(t);return n=o.k||n,r||(r=n),o}).map(e=>{if("string"==typeof e)return e;e.k||(e.k=r||"0");let n=Object.fromEntries(Object.keys(e).map(t=>{let r=e[t];return[t,Array.isArray(r)?r.map(e=>null==e?void 0:e.trim()):!!r===r?r:null==r?void 0:r.trim()]}));return t?Object.fromEntries(Object.entries(n).map(([e,t])=>"i"!==e&&t&&"0"!=t&&[e,t]).filter(Boolean)):n}))(e)),h=(c=t[0])&&"object"==typeof c&&c.constructor===Object,p=1===t.length&&h?c:t,s.map(e=>{if("string"==typeof e)return e;let{k:t="0",f:i=[]}=e,s=p[t];if(e.o||e.r)return(("boolean"==typeof s?s?e.o:e.r:((e,{z:t,o:r,t:n,f:i,m:a,r:o},s)=>{switch(t&&0==s?"zero":e.select(s)){case"zero":return t;case"one":return r;case"two":return n;case"few":return null!=i?i:o;case"many":return null!=a?a:o;default:return o}})(u,e,s))||"").replace(o,s);let l=i.length?i.reduce((e,t)=>{var i,o,s,l;return null!=(o=t.match(n)?null!=(l=(s=Object.fromEntries(a(t).split(",").map(e=>e.split(":")).reduce((e,t)=>2===t.length?[...e,t.map(e=>e.trim())]:(e[e.length-1][1]+=","+t[0],e),[])))[e])?l:s["*"]:null==(i=r[t])?void 0:i.call(r,e))?o:e},s):s;return(""+(null!=l?l:"")).trim()}).join("")}))}let l=(e={},t)=>"string"==typeof e?t.bind(null,e):Object.assign(Object.defineProperty(()=>"","name",{writable:!0}),e),c=(e,t)=>new Proxy(l(e,t),{get:(e,r)=>r===Symbol.iterator?[][Symbol.iterator].bind(Object.values(e).map(e=>l(e,t))):c(e[r],t)})},85469(e,t,r){function n(e){return!e||"object"!=typeof e&&"function"!=typeof e}var i=()=>(e,t)=>(function e(){var t=[].slice.call(arguments),r=!1;"boolean"==typeof t[0]&&(r=t.shift());var i=t[0];if(n(i))throw Error("extendee must be an object");for(var a=t.slice(1),o=a.length,s=0;s<o;s++){var l=a[s];for(var c in l)if(Object.prototype.hasOwnProperty.call(l,c)){var u,h=l[c];if(r&&(Array.isArray(u=h)||"[object Object]"==({}).toString.call(u))){var p=Array.isArray(h)?[]:{};i[c]=e(!0,Object.prototype.hasOwnProperty.call(i,c)&&!n(i[c])?i[c]:p,h)}else i[c]=h}}return i})({},e,t);i(),r.d(t,{m:()=>i})},62534(e,t,r){for(var n={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},i={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},a="u">typeof navigator&&/Mac/.test(navigator.platform),o="u">typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),s=0;s<10;s++)n[48+s]=n[96+s]=String(s);for(var s=1;s<=24;s++)n[s+111]="F"+s;for(var s=65;s<=90;s++)n[s]=String.fromCharCode(s+32),i[s]=String.fromCharCode(s);for(var l in n)i.hasOwnProperty(l)||(i[l]=n[l]);function c(e){var t=!(a&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||o&&e.shiftKey&&e.key&&1==e.key.length||"Unidentified"==e.key)&&e.key||(e.shiftKey?i:n)[e.keyCode]||e.key||"Unidentified";return"Esc"==t&&(t="Escape"),"Del"==t&&(t="Delete"),"Left"==t&&(t="ArrowLeft"),"Up"==t&&(t="ArrowUp"),"Right"==t&&(t="ArrowRight"),"Down"==t&&(t="ArrowDown"),t}r.d(t,{BN:()=>i,E3:()=>n,xT:()=>c})},62454(e,t,r){var n=r(92836),i=r(18565),a=r(29308),o=r(57861),s=r(45558),l=r(98026),c=r(73098),u=r(47698),h=r(56448),p=r(45587),d="__zr_normal__",f=n.Wx.concat(["ignore"]),m=(0,l.TS)(n.Wx,function(e,t){return e[t]=!0,e},{ignore:!1}),g={},A=new a.Ay(0,0,0,0),y=[],v=function(){function e(e){this.id=(0,l.Os)(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return e.prototype._init=function(e){this.attr(e)},e.prototype.drift=function(e,t,r){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=e,n[5]+=t,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var r=this.textConfig,n=r.local,i=t.innerTransformable,o=void 0,l=void 0,c=!1;i.parent=n?this:null;var u=!1;i.copyTransform(t);var d=null!=r.position,f=r.autoOverflowArea,m=void 0;if((f||d)&&(m=A,r.layoutRect?m.copy(r.layoutRect):m.copy(this.getBoundingRect()),n||m.applyTransform(this.transform)),d){this.calculateTextPosition?this.calculateTextPosition(g,r,m):(0,s.X4)(g,r,m),i.x=g.x,i.y=g.y,o=g.align,l=g.verticalAlign;var v=r.origin;if(v&&null!=r.rotation){var R=void 0,b=void 0;"center"===v?(R=.5*m.width,b=.5*m.height):(R=(0,s.lo)(v[0],m.width),b=(0,s.lo)(v[1],m.height)),u=!0,i.originX=-i.x+R+(n?0:m.x),i.originY=-i.y+b+(n?0:m.y)}}null!=r.rotation&&(i.rotation=r.rotation);var x=r.offset;x&&(i.x+=x[0],i.y+=x[1],u||(i.originX=-x[0],i.originY=-x[1]));var M=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(f){var S=M.overflowRect=M.overflowRect||new a.Ay(0,0,0,0);i.getLocalTransform(y),(0,p.B8)(y,y),a.Ay.copy(S,m),S.applyTransform(y)}else M.overflowRect=null;var w=null==r.inside?"string"==typeof r.position&&r.position.indexOf("inside")>=0:r.inside,O=void 0,L=void 0,N=void 0;w&&this.canBeInsideText()?(O=r.insideFill,L=r.insideStroke,(null==O||"auto"===O)&&(O=this.getInsideTextFill()),(null==L||"auto"===L)&&(L=this.getInsideTextStroke(O),N=!0)):(O=r.outsideFill,L=r.outsideStroke,(null==O||"auto"===O)&&(O=this.getOutsideFill()),(null==L||"auto"===L)&&(L=this.getOutsideStroke(O),N=!0)),((O=O||"#000")!==M.fill||L!==M.stroke||N!==M.autoStroke||o!==M.align||l!==M.verticalAlign)&&(c=!0,M.fill=O,M.stroke=L,M.autoStroke=N,M.align=o,M.verticalAlign=l,t.setDefaultTextStyle(M)),t.__dirty|=h.M,c&&t.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(e){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?c.el:c._S},e.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),r="string"==typeof t&&(0,u.qg)(t);r||(r=[255,255,255,1]);for(var n=r[3],i=this.__zr.isDarkMode(),a=0;a<3;a++)r[a]=r[a]*n+255*!i*(1-n);return r[3]=1,(0,u.As)(r,"rgba")},e.prototype.traverse=function(e,t){},e.prototype.attrKV=function(e,t){"textConfig"===e?this.setTextConfig(t):"textContent"===e?this.setTextContent(t):"clipPath"===e?this.setClipPath(t):"extra"===e?(this.extra=this.extra||{},(0,l.X$)(this.extra,t)):this[e]=t},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(e,t){if("string"==typeof e)this.attrKV(e,t);else if((0,l.Gv)(e))for(var r=(0,l.HP)(e),n=0;n<r.length;n++){var i=r[n];this.attrKV(i,e[i])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var t=this._normalState,r=0;r<this.animators.length;r++){var n=this.animators[r],i=n.__fromStateTransition;if(!n.getLoop()&&(!i||i===d)){var a=n.targetName,o=a?t[a]:t;n.saveTo(o)}}},e.prototype._innerSaveToNormal=function(e){var t=this._normalState;t||(t=this._normalState={}),e.textConfig&&!t.textConfig&&(t.textConfig=this.textConfig),this._savePrimaryToNormal(e,t,f)},e.prototype._savePrimaryToNormal=function(e,t,r){for(var n=0;n<r.length;n++){var i=r[n];null==e[i]||i in t||(t[i]=this[i])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(e){return this.states[e]},e.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},e.prototype.clearStates=function(e){this.useState(d,!1,e)},e.prototype.useState=function(e,t,r,n){var i,a=e===d;if(this.hasState()||!a){var o=this.currentStates,s=this.stateTransition;if(!((0,l.qh)(o,e)>=0)||!t&&1!==o.length){if(this.stateProxy&&!a&&(i=this.stateProxy(e)),i||(i=this.states&&this.states[e]),!i&&!a)return void(0,l.vV)("State "+e+" not exists.");a||this.saveCurrentToNormalState(i);var c=this._textContent,u=x(this,c,i,n);u&&!this.__inHover&&(this.__inHover=u),this._applyStateObj(e,i,this._normalState,t,S(this,r,s),s);var p=this._textGuide;return c&&c.useState(e,t,r,!!u),p&&p.useState(e,t,r,!!u),a?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!u&&this.__inHover&&(this.__inHover=0,this.__dirty&=~h.M),i}}},e.prototype.useStates=function(e,t,r){if(e.length){var n=[],i=this.currentStates,a=e.length,o=a===i.length;if(o){for(var s=0;s<a;s++)if(e[s]!==i[s]){o=!1;break}}if(!o){for(var s=0;s<a;s++){var l=e[s],c=void 0;this.stateProxy&&(c=this.stateProxy(l,e)),c||(c=this.states[l]),c&&n.push(c)}var u=n[a-1],p=this._textContent,d=x(this,p,u,r);d&&!this.__inHover&&(this.__inHover=d);var f=this._mergeStates(n),m=this.stateTransition;this.saveCurrentToNormalState(f),this._applyStateObj(e.join(","),f,this._normalState,!1,S(this,t,m),m);var g=this._textGuide;p&&p.useStates(e,t,!!d),g&&g.useStates(e,t,!!d),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!d&&this.__inHover&&(this.__inHover=0,this.__dirty&=~h.M)}}else this.clearStates()},e.prototype.isSilent=function(){for(var e=this;e;){if(e.silent)return!0;var t=e.__hostTarget;e=t?e.ignoreHostSilent?null:t:e.parent}return!1},e.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var t=this.animators[e];t.targetName&&t.changeTarget(this[t.targetName])}},e.prototype.removeState=function(e){var t=(0,l.qh)(this.currentStates,e);if(t>=0){var r=this.currentStates.slice();r.splice(t,1),this.useStates(r)}},e.prototype.replaceState=function(e,t,r){var n=this.currentStates.slice(),i=(0,l.qh)(n,e),a=(0,l.qh)(n,t)>=0;i>=0?a?n.splice(i,1):n[i]=t:r&&!a&&n.push(t),this.useStates(n)},e.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},e.prototype._mergeStates=function(e){for(var t,r={},n=0;n<e.length;n++){var i=e[n];(0,l.X$)(r,i),i.textConfig&&(t=t||{},(0,l.X$)(t,i.textConfig))}return t&&(r.textConfig=t),r},e.prototype._applyStateObj=function(e,t,r,n,i,a){if(1!==this.__inHover){var o=!(t&&n);t&&t.textConfig?(this.textConfig=(0,l.X$)({},n?this.textConfig:r.textConfig),(0,l.X$)(this.textConfig,t.textConfig)):o&&r.textConfig&&(this.textConfig=r.textConfig);for(var s={},c=!1,u=0;u<f.length;u++){var h=f[u],p=i&&m[h];t&&null!=t[h]?p?(c=!0,s[h]=t[h]):this[h]=t[h]:o&&null!=r[h]&&(p?(c=!0,s[h]=r[h]):this[h]=r[h])}if(!i)for(var u=0;u<this.animators.length;u++){var d=this.animators[u],g=d.targetName;d.getLoop()||d.__changeFinalValue(g?(t||r)[g]:t||r)}c&&this._transitionState(e,s,a)}},e.prototype._attachComponent=function(e){if((!e.__zr||e.__hostTarget)&&e!==this){var t=this.__zr;t&&e.addSelfToZr(t),e.__zr=t,e.__hostTarget=this}},e.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},e.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(e){var t=this._textContent;t!==e&&(t&&t!==e&&this.removeTextContent(),e.innerTransformable=new n.Ay,this._attachComponent(e),this._textContent=e,this.markRedraw())},e.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),(0,l.X$)(this.textConfig,e),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=h.M;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var t=this.animators;if(t)for(var r=0;r<t.length;r++)e.animation.addAnimator(t[r]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},e.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var t=this.animators;if(t)for(var r=0;r<t.length;r++)e.animation.removeAnimator(t[r]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},e.prototype.animate=function(e,t,r){var n=e?this[e]:this,a=new i.A(n,t,r);return e&&(a.targetName=e),this.addAnimator(a,e),a},e.prototype.addAnimator=function(e,t){var r=this.__zr,n=this;e.during(function(){n.updateDuringAnimation(t)}).done(function(){var t=n.animators,r=(0,l.qh)(t,e);r>=0&&t.splice(r,1)}),this.animators.push(e),r&&r.animation.addAnimator(e),r&&r.wakeUp()},e.prototype.updateDuringAnimation=function(e){this.markRedraw()},e.prototype.stopAnimation=function(e,t){for(var r=this.animators,n=r.length,i=[],a=0;a<n;a++){var o=r[a];e&&e!==o.scope?i.push(o):o.stop(t)}return this.animators=i,this},e.prototype.animateTo=function(e,t,r){R(this,e,t,r)},e.prototype.animateFrom=function(e,t,r){R(this,e,t,r,!0)},e.prototype._transitionState=function(e,t,r,n){for(var i=R(this,t,r,n),a=0;a<i.length;a++)i[a].__fromStateTransition=e},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.initDefaultProps=function(){var t=e.prototype;function r(e,r,n,i){Object.defineProperty(t,e,{get:function(){return this[r]||a(this,this[r]=[]),this[r]},set:function(e){this[n]=e[0],this[i]=e[1],this[r]=e,a(this,e)}});function a(e,t){Object.defineProperty(t,0,{get:function(){return e[n]},set:function(t){e[n]=t}}),Object.defineProperty(t,1,{get:function(){return e[i]},set:function(t){e[i]=t}})}}t.type="element",t.name="",t.ignore=t.silent=t.ignoreHostSilent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=!1,t.__inHover=0,t.__dirty=h.M,Object.defineProperty&&(r("position","_legacyPos","x","y"),r("scale","_legacyScale","scaleX","scaleY"),r("origin","_legacyOrigin","originX","originY"))}(),e}();function R(e,t,r,n,a){var o=[];!function e(t,r,n,a,o,s,c,u){for(var h=(0,l.HP)(a),p=o.duration,d=o.delay,f=o.additive,m=o.setToFinal,g=!(0,l.Gv)(s),A=t.animators,y=[],v=0;v<h.length;v++){var R=h[v],x=a[R];if(null!=x&&null!=n[R]&&(g||s[R]))if(!(0,l.Gv)(x)||(0,l.Xj)(x)||(0,l.C7)(x))y.push(R);else{if(r){u||(n[R]=x,t.updateDuringAnimation(r));continue}e(t,R,n[R],x,o,s&&s[R],c,u)}else u||(n[R]=x,t.updateDuringAnimation(r),y.push(R))}var M=y.length;if(!f&&M)for(var S=0;S<A.length;S++){var w=A[S];if(w.targetName===r&&w.stopTracks(y)){var O=(0,l.qh)(A,w);A.splice(O,1)}}if(o.force||(M=(y=(0,l.pb)(y,function(e){var t,r;return!((t=a[e])===(r=n[e])||(0,l.Xj)(t)&&(0,l.Xj)(r)&&function(e,t){var r=e.length;if(r!==t.length)return!1;for(var n=0;n<r;n++)if(e[n]!==t[n])return!1;return!0}(t,r))})).length),M>0||o.force&&!c.length){var L=void 0,N=void 0,_=void 0;if(u){N={},m&&(L={});for(var S=0;S<M;S++){var R=y[S];N[R]=n[R],m?L[R]=a[R]:n[R]=a[R]}}else if(m){_={};for(var S=0;S<M;S++){var R=y[S];_[R]=(0,i.F)(n[R]),function(e,t,r){if((0,l.Xj)(t[r]))if((0,l.Xj)(e[r])||(e[r]=[]),(0,l.iu)(t[r])){var n=t[r].length;e[r].length!==n&&(e[r]=new t[r].constructor(n),b(e[r],t[r],n))}else{var i=t[r],a=e[r],o=i.length;if((0,l.Xj)(i[0]))for(var s=i[0].length,c=0;c<o;c++)a[c]?b(a[c],i[c],s):a[c]=Array.prototype.slice.call(i[c]);else b(a,i,o);a.length=i.length}else e[r]=t[r]}(n,a,R)}}var w=new i.A(n,!1,!1,f?(0,l.pb)(A,function(e){return e.targetName===r}):null);w.targetName=r,o.scope&&(w.scope=o.scope),m&&L&&w.whenWithKeys(0,L,y),_&&w.whenWithKeys(0,_,y),w.whenWithKeys(null==p?500:p,u?N:a,y).delay(d||0),t.addAnimator(w,r),c.push(w)}}(e,"",e,t,r=r||{},n,o,a);var s=o.length,c=!1,u=r.done,h=r.aborted,p=function(){c=!0,--s<=0&&(c?u&&u():h&&h())},d=function(){--s<=0&&(c?u&&u():h&&h())};!s&&u&&u(),o.length>0&&r.during&&o[0].during(function(e,t){r.during(t)});for(var f=0;f<o.length;f++){var m=o[f];p&&m.done(p),d&&m.aborted(d),r.force&&m.duration(r.duration),m.start(r.easing)}return o}function b(e,t,r){for(var n=0;n<r;n++)e[n]=t[n]}function x(e,t,r,n){return!(r&&r.hoverLayer||n)||M(e)||t&&M(t)?0:1}function M(e){return"text"===e.type||"tspan"===e.type}function S(e,t,r){return!t&&!e.__inHover&&r&&r.duration>0}(0,l.co)(v,o.A),(0,l.co)(v,n.Ay),t.Ay=v,r.d(t,{yx:()=>1})},18565(e,t,r){r.d(t,{F:()=>d,A:()=>v});var n={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return 0===e?0:Math.pow(1024,e-1)},exponentialOut:function(e){return 1===e?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return 0===e?0:1===e?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,r=.1;return 0===e?0:1===e?1:(!r||r<1?(r=1,t=.1):t=.4*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(e-=1))*Math.sin(2*Math.PI*(e-t)/.4)))},elasticOut:function(e){var t,r=.1;return 0===e?0:1===e?1:(!r||r<1?(r=1,t=.1):t=.4*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*e)*Math.sin(2*Math.PI*(e-t)/.4)+1)},elasticInOut:function(e){var t,r=.1;return 0===e?0:1===e?1:(!r||r<1?(r=1,t=.1):t=.4*Math.asin(1/r)/(2*Math.PI),(e*=2)<1)?-.5*(r*Math.pow(2,10*(e-=1))*Math.sin(2*Math.PI*(e-t)/.4)):r*Math.pow(2,-10*(e-=1))*Math.sin(2*Math.PI*(e-t)/.4)*.5+1},backIn:function(e){return e*e*(2.70158*e-1.70158)},backOut:function(e){return--e*e*(2.70158*e+1.70158)+1},backInOut:function(e){return(e*=2)<1?e*e*(3.5949095*e-2.5949095)*.5:.5*((e-=2)*e*(3.5949095*e+2.5949095)+2)},bounceIn:function(e){return 1-n.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?.5*n.bounceIn(2*e):.5*n.bounceOut(2*e-1)+.5}},i=r(98026),a=r(96320),o=function(){function e(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||i.lQ,this.ondestroy=e.ondestroy||i.lQ,this.onrestart=e.onrestart||i.lQ,e.easing&&this.setEasing(e.easing)}return e.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=t;return}var r=this._life,n=e-this._startTime-this._pausedTime,i=n/r;i<0&&(i=0),i=Math.min(i,1);var a=this.easingFunc,o=a?a(i):i;if(this.onframe(o),1===i)if(!this.loop)return!0;else this._startTime=e-n%r,this._pausedTime=0,this.onrestart();return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(e){this.easing=e,this.easingFunc=(0,i.Tn)(e)?e:n[e]||(0,a.w)(e)},e}(),s=r(47698),l=r(3455),c=Array.prototype.slice;function u(e,t,r,n){for(var i,a=t.length,o=0;o<a;o++)e[o]=(i=t[o],(r[o]-i)*n+i);return e}function h(e,t,r,n){for(var i=t.length,a=0;a<i;a++)e[a]=t[a]+r[a]*n;return e}function p(e,t,r,n){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=t[o][s]+r[o][s]*n}return e}function d(e){if((0,i.Xj)(e)){var t=e.length;if((0,i.Xj)(e[0])){for(var r=[],n=0;n<t;n++)r.push(c.call(e[n]));return r}return c.call(e)}return e}function f(e){return e[0]=Math.floor(e[0])||0,e[1]=Math.floor(e[1])||0,e[2]=Math.floor(e[2])||0,e[3]=null==e[3]?1:e[3],"rgba("+e.join(",")+")"}function m(e){return 4===e||5===e}function g(e){return 1===e||2===e}var A=[0,0,0,0],y=function(){function e(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return e.prototype.isFinished=function(){return this._finished},e.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},e.prototype.needsAnimate=function(){return this.keyframes.length>=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(e,t,r){this._needsSort=!0;var o=this.keyframes,c=o.length,u=!1,h=6,p=t;if((0,i.Xj)(t)){var d=(0,i.Xj)(t&&t[0])?2:1;h=d,(1!==d||(0,i.Et)(t[0]))&&(2!==d||(0,i.Et)(t[0][0]))||(u=!0)}else if((0,i.Et)(t)&&!(0,i.Yp)(t))h=0;else if((0,i.Kg)(t))if(isNaN(+t)){var f=s.qg(t);f&&(p=f,h=3)}else h=0;else if((0,i.C7)(t)){var m=(0,i.X$)({},p);m.colorStops=(0,i.Tj)(t.colorStops,function(e){return{offset:e.offset,color:s.qg(e.color)}}),(0,l.OS)(t)?h=4:(0,l.OH)(t)&&(h=5),p=m}0===c?this.valType=h:(h!==this.valType||6===h)&&(u=!0),this.discrete=this.discrete||u;var g={time:e,value:p,rawValue:t,percent:0};return r&&(g.easing=r,g.easingFunc=(0,i.Tn)(r)?r:n[r]||(0,a.w)(r)),o.push(g),g},e.prototype.prepare=function(e,t){var r=this.keyframes;this._needsSort&&r.sort(function(e,t){return e.time-t.time});for(var n=this.valType,i=r.length,a=r[i-1],o=this.discrete,s=g(n),l=m(n),u=0;u<i;u++){var d=r[u],f=d.value,A=a.value;d.percent=d.time/e,!o&&(s&&u!==i-1?function(e,t,r){if(e.push&&t.push){var n=e.length,i=t.length;if(n!==i)if(n>i)e.length=i;else for(var a=n;a<i;a++)e.push(1===r?t[a]:c.call(t[a]));for(var o=e[0]&&e[0].length,a=0;a<e.length;a++)if(1===r)isNaN(e[a])&&(e[a]=t[a]);else for(var s=0;s<o;s++)isNaN(e[a][s])&&(e[a][s]=t[a][s])}}(f,A,n):l&&function(e,t){for(var r=e.length,n=t.length,i=r>n?t:e,a=Math.min(r,n),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(r,n);s++)i.push({offset:o.offset,color:o.color.slice()})}(f.colorStops,A.colorStops))}if(!o&&5!==n&&t&&this.needsAnimate()&&t.needsAnimate()&&n===t.valType&&!t._finished){this._additiveTrack=t;for(var y=r[0].value,u=0;u<i;u++)0===n?r[u].additiveValue=r[u].value-y:3===n?r[u].additiveValue=h([],r[u].value,y,-1):g(n)&&(r[u].additiveValue=1===n?h([],r[u].value,y,-1):p([],r[u].value,y,-1))}},e.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var r,n,a,o=null!=this._additiveTrack,s=o?"additiveValue":"value",l=this.valType,c=this.keyframes,h=c.length,p=this.propName,d=3===l,y=this._lastFr,v=Math.min;if(1===h)n=a=c[0];else{if(t<0)r=0;else if(t<this._lastFrP){for(r=v(y+1,h-1);r>=0&&!(c[r].percent<=t);r--);r=v(r,h-2)}else{for(r=y;r<h&&!(c[r].percent>t);r++);r=v(r-1,h-2)}a=c[r+1],n=c[r]}if(n&&a){this._lastFr=r,this._lastFrP=t;var R=a.percent-n.percent,b=0===R?1:v((t-n.percent)/R,1);a.easingFunc&&(b=a.easingFunc(b));var x=o?this._additiveValue:d?A:e[p];if((g(l)||d)&&!x&&(x=this._additiveValue=[]),this.discrete)e[p]=b<1?n.rawValue:a.rawValue;else if(g(l))1===l?u(x,n[s],a[s],b):function(e,t,r,n){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s,l=0;l<a;l++)e[o][l]=(s=t[o][l],(r[o][l]-s)*n+s)}}(x,n[s],a[s],b);else if(m(l)){var M,S,w,O,L,N=n[s],_=a[s],T=4===l;(e[p]={type:T?"linear":"radial",x:(M=N.x,(_.x-M)*b+M),y:(S=N.y,(_.y-S)*b+S),colorStops:(0,i.Tj)(N.colorStops,function(e,t){var r,n=_.colorStops[t];return{offset:(r=e.offset,(n.offset-r)*b+r),color:f(u([],e.color,n.color,b))}}),global:_.global},T)?(e[p].x2=(w=N.x2,(_.x2-w)*b+w),e[p].y2=(O=N.y2,(_.y2-O)*b+O)):e[p].r=(L=N.r,(_.r-L)*b+L)}else if(d)u(x,n[s],a[s],b),o||(e[p]=f(x));else{var P,C=(P=n[s],(a[s]-P)*b+P);o?this._additiveValue=C:e[p]=C}o&&this._addToTarget(e)}}},e.prototype._addToTarget=function(e){var t=this.valType,r=this.propName,n=this._additiveValue;0===t?e[r]=e[r]+n:3===t?(s.qg(e[r],A),h(A,A,n,1),e[r]=f(A)):1===t?h(e[r],e[r],n,1):2===t&&p(e[r],e[r],n,1)},e}(),v=function(){function e(e,t,r,n){(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&n)?(0,i.vV)("Can' use additive animation on looped animation."):(this._additiveAnimators=n,this._allowDiscrete=r)}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(e){this._target=e},e.prototype.when=function(e,t,r){return this.whenWithKeys(e,t,(0,i.HP)(t),r)},e.prototype.whenWithKeys=function(e,t,r,n){for(var i=this._tracks,a=0;a<r.length;a++){var o=r[a],s=i[o];if(!s){s=i[o]=new y(o);var l=void 0,c=this._getAdditiveTrack(o);if(c){var u=c.keyframes,h=u[u.length-1];l=h&&h.value,3===c.valType&&l&&(l=f(l))}else l=this._target[o];if(null==l)continue;e>0&&s.addKeyframe(0,d(l),n),this._trackKeys.push(o)}s.addKeyframe(e,d(t[o]),n)}return this._maxTime=Math.max(this._maxTime,e),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,r=0;r<t;r++)e[r].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,t=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,t)for(var r=0;r<t.length;r++)t[r].call(this)},e.prototype._setTracksFinished=function(){for(var e=this._tracks,t=this._trackKeys,r=0;r<t.length;r++)e[t[r]].setFinished()},e.prototype._getAdditiveTrack=function(e){var t,r=this._additiveAnimators;if(r)for(var n=0;n<r.length;n++){var i=r[n].getTrack(e);i&&(t=i)}return t},e.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var t=this,r=[],n=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var a=this._trackKeys[i],s=this._tracks[a],l=this._getAdditiveTrack(a),c=s.keyframes,u=c.length;if(s.prepare(n,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var h=c[u-1];h&&(t._target[s.propName]=h.rawValue),s.setFinished()}else r.push(s)}if(r.length||this._force){var p=new o({life:n,loop:this._loop,delay:this._delay||0,onframe:function(e){t._started=2;var n=t._additiveAnimators;if(n){for(var i=!1,a=0;a<n.length;a++)if(n[a]._clip){i=!0;break}i||(t._additiveAnimators=null)}for(var a=0;a<r.length;a++)r[a].step(t._target,e);var o=t._onframeCbs;if(o)for(var a=0;a<o.length;a++)o[a](t._target,e)},ondestroy:function(){t._doneCallback()}});this._clip=p,this.animation&&this.animation.addClip(p),e&&p.setEasing(e)}else this._doneCallback();return this}},e.prototype.stop=function(e){if(this._clip){var t=this._clip;e&&t.onframe(1),this._abortedCallback()}},e.prototype.delay=function(e){return this._delay=e,this},e.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},e.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},e.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(e){return this._tracks[e]},e.prototype.getTracks=function(){var e=this;return(0,i.Tj)(this._trackKeys,function(t){return e._tracks[t]})},e.prototype.stopTracks=function(e,t){if(!e.length||!this._clip)return!0;for(var r=this._tracks,n=this._trackKeys,i=0;i<e.length;i++){var a=r[e[i]];a&&!a.isFinished()&&(t?a.step(this._target,1):1===this._started&&a.step(this._target,0),a.setFinished())}for(var o=!0,i=0;i<n.length;i++)if(!r[n[i]].isFinished()){o=!1;break}return o&&this._abortedCallback(),o},e.prototype.saveTo=function(e,t,r){if(e){t=t||this._trackKeys;for(var n=0;n<t.length;n++){var i=t[n],a=this._tracks[i];if(!(!a||a.isFinished())){var o=a.keyframes,s=o[r?0:o.length-1];s&&(e[i]=d(s.rawValue))}}}},e.prototype.__changeFinalValue=function(e,t){t=t||(0,i.HP)(e);for(var r=0;r<t.length;r++){var n=t[r],a=this._tracks[n];if(a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,e[n]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},e}()},96320(e,t,r){var n=r(89259),i=r(98026),a=/cubic-bezier\(([0-9,\.e ]+)\)/;function o(e){var t=e&&a.exec(e);if(t){var r=t[1].split(","),o=+(0,i.Bq)(r[0]),s=+(0,i.Bq)(r[1]),l=+(0,i.Bq)(r[2]),c=+(0,i.Bq)(r[3]);if(isNaN(o+s+l+c))return;var u=[];return function(e){return e<=0?0:e>=1?1:(0,n._E)(0,o,l,1,e,u)&&(0,n.Yb)(0,s,c,1,u[0])}}}r.d(t,{w:()=>o})},45825(e,t,r){t.A=r(38123).A.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)}},76050(e,t,r){var n=r(98026);function i(e){var t,r,i=e.style,a=i.lineDash&&i.lineWidth>0&&(t=i.lineDash,r=i.lineWidth,t&&"solid"!==t&&r>0?"dashed"===t?[4*r,2*r]:"dotted"===t?[r]:(0,n.Et)(t)?[t]:(0,n.cy)(t)?t:null:null),o=i.lineDashOffset;if(a){var s=i.strokeNoScale&&e.getLineScale?e.getLineScale():1;s&&1!==s&&(a=(0,n.Tj)(a,function(e){return e/s}),o/=s)}return[a,o]}r.d(t,{V:()=>i})},29571(e,t,r){var n=r(71519),i=r(15938),a=r(12191),o=r(53479),s=r(87691),l=r(90540),c=r(19845),u=r(98026),h=r(76050),p=r(56448),d=r(59741),f=new i.A(!0);function m(e){var t=e.stroke;return null!=t&&"none"!==t&&e.lineWidth>0}function g(e){return"string"==typeof e&&"none"!==e}function A(e){var t=e.fill;return null!=t&&"none"!==t}function y(e,t){if(null!=t.fillOpacity&&1!==t.fillOpacity){var r=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=r}else e.fill()}function v(e,t){if(null!=t.strokeOpacity&&1!==t.strokeOpacity){var r=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=r}else e.stroke()}function R(e,t,r){var n=(0,a.OD)(t.image,t.__image,r);if((0,a.xA)(n)){var i=e.createPattern(n,t.repeat||"repeat");if("function"==typeof DOMMatrix&&i&&i.setTransform){var o=new DOMMatrix;o.translateSelf(t.x||0,t.y||0),o.rotateSelf(0,0,(t.rotation||0)*u.lI),o.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(o)}return i}}var b=["shadowBlur","shadowOffsetX","shadowOffsetY"],x=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function M(e,t,r,i,a){var o=!1;if(!i&&t===(r=r||{}))return!1;if(i||t.opacity!==r.opacity){O(e,a),o=!0;var s=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(s)?n.oN.opacity:s}(i||t.blend!==r.blend)&&(o||(O(e,a),o=!0),e.globalCompositeOperation=t.blend||n.oN.blend);for(var l=0;l<b.length;l++){var c=b[l];(i||t[c]!==r[c])&&(o||(O(e,a),o=!0),e[c]=e.dpr*(t[c]||0))}return(i||t.shadowColor!==r.shadowColor)&&(o||(O(e,a),o=!0),e.shadowColor=t.shadowColor||n.oN.shadowColor),o}function S(e,t,r,n,i){var a=t.style,o=n?null:r&&r.style||{};if(a===o)return!1;var s=M(e,a,o,n,i);if((n||a.fill!==o.fill)&&(s||(O(e,i),s=!0),g(a.fill)&&(e.fillStyle=a.fill)),(n||a.stroke!==o.stroke)&&(s||(O(e,i),s=!0),g(a.stroke)&&(e.strokeStyle=a.stroke)),(n||a.opacity!==o.opacity)&&(s||(O(e,i),s=!0),e.globalAlpha=null==a.opacity?1:a.opacity),t.hasStroke()){var l=a.lineWidth/(a.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==l&&(s||(O(e,i),s=!0),e.lineWidth=l)}for(var c=0;c<x.length;c++){var u=x[c],h=u[0];(n||a[h]!==o[h])&&(s||(O(e,i),s=!0),e[h]=a[h]||u[1])}return s}function w(e,t){var r=t.transform,n=e.dpr||1;r?e.setTransform(n*r[0],n*r[1],n*r[2],n*r[3],n*r[4],n*r[5]):e.setTransform(n,0,0,n,0,0)}function O(e,t){t.batchFill&&(t.batchFill=!1,e.fill()),t.batchStroke&&(t.batchStroke=!1,e.stroke())}function L(e,t){var r={inHover:!1,viewWidth:0,viewHeight:0,beforeBrushParam:{}};N(e,t,r),_(e,r)}function N(e,t,r){var n,i=t.transform;if(!t.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){t.__dirty&=~p.M,t.__isRendered=!1;return}var u=t.__clipPaths,g=r.prevElClipPaths,b=t.style,x=!1,L=!1;if((!g||(0,o.KU)(u,g))&&(g&&(O(e,r),e.restore(),L=x=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),u&&u.length)){O(e,r),e.save();for(var T=!1,P=0;P<u.length;P++){var C=u[P];T=T||C.isZeroArea(),w(e,C),e.beginPath(),C.buildPath(e,C.shape),e.clip()}r.allClipped=T,x=!0,r.prevElClipPaths=u}if(r.allClipped){t.__dirty&=~p.M,t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(r.beforeBrushParam),t.innerBeforeBrush();var I=r.prevEl;I||(L=x=!0);var k=t instanceof s.Ay&&t.autoBatch&&(F=A(b),X=m(b),!(b.lineDash||!(F^X)||F&&"string"!=typeof b.fill||X&&"string"!=typeof b.stroke||b.strokePercent<1||b.strokeOpacity<1||b.fillOpacity<1));if(!x&&(U=I.transform,i&&U?i[0]===U[0]&&i[1]===U[1]&&i[2]===U[2]&&i[3]===U[3]&&i[4]===U[4]&&i[5]===U[5]:+(!i&&!U))?k||O(e,r):(O(e,r),w(e,t)),t instanceof s.Ay)1!==r.lastDrawType&&(L=!0,r.lastDrawType=1),S(e,t,I,L,r),k&&(r.batchFill||r.batchStroke)||e.beginPath(),function(e,t,r,n,i){var a,s,l,c=m(r),u=A(r),d=r.strokePercent,g=d<1,b=!t.path;(!t.silent||g)&&b&&t.createPathProxy();var x=t.path||f,M=t.__dirty;if(!n){var S=r.fill,w=r.stroke,O=u&&!!S.colorStops,L=c&&!!w.colorStops,N=u&&!!S.image,_=c&&!!w.image,T=void 0,P=void 0,C=void 0,I=void 0,k=void 0;(O||L)&&(k=t.getBoundingRect()),O&&(T=M?(0,o.Ff)(e,S,k):t.__canvasFillGradient,t.__canvasFillGradient=T),L&&(P=M?(0,o.Ff)(e,w,k):t.__canvasStrokeGradient,t.__canvasStrokeGradient=P),N&&(C=M||!t.__canvasFillPattern?R(e,S,t):t.__canvasFillPattern,t.__canvasFillPattern=C),_&&(I=M||!t.__canvasStrokePattern?R(e,w,t):t.__canvasStrokePattern,t.__canvasStrokePattern=I),O?e.fillStyle=T:N&&(C?e.fillStyle=C:u=!1),L?e.strokeStyle=P:_&&(I?e.strokeStyle=I:c=!1)}var F=t.getGlobalScale();x.setScale(F[0],F[1],t.segmentIgnoreThreshold),e.setLineDash&&r.lineDash&&(s=(a=(0,h.V)(t))[0],l=a[1]);var X=!0;(b||M&p.Dl)&&(x.setDPR(e.dpr),g?x.setContext(null):(x.setContext(e),X=!1),x.reset(),t.buildPath(x,t.shape,n),x.toStatic(),t.pathUpdated()),X&&x.rebuildPath(e,g?d:1),s&&(e.setLineDash(s),e.lineDashOffset=l),n?(i.batchFill=u,i.batchStroke=c):r.strokeFirst?(c&&v(e,r),u&&y(e,r)):(u&&y(e,r),c&&v(e,r)),s&&e.setLineDash([])}(e,t,b,k,r);else if(t instanceof c.A){3!==r.lastDrawType&&(L=!0,r.lastDrawType=3),S(e,t,I,L,r);var F,X,U,W,V=b.text;if(null!=V&&(V+=""),V){e.font=b.font||d.OH,e.textAlign=b.textAlign,e.textBaseline=b.textBaseline;var E=void 0,Y=void 0;e.setLineDash&&b.lineDash&&(E=(W=(0,h.V)(t))[0],Y=W[1]),E&&(e.setLineDash(E),e.lineDashOffset=Y),b.strokeFirst?(m(b)&&e.strokeText(V,b.x,b.y),A(b)&&e.fillText(V,b.x,b.y)):(A(b)&&e.fillText(V,b.x,b.y),m(b)&&e.strokeText(V,b.x,b.y)),E&&e.setLineDash([])}}else t instanceof l.Ay?(2!==r.lastDrawType&&(L=!0,r.lastDrawType=2),n=L,M(e,t.style,I&&I.style,n,r),function(e,t,r){var n=t.__image=(0,a.OD)(r.image,t.__image,t,t.onload);if(n&&(0,a.xA)(n)){var i=r.x||0,o=r.y||0,s=t.getWidth(),l=t.getHeight(),c=n.width/n.height;if(null==s&&null!=l?s=l*c:null==l&&null!=s?l=s/c:null==s&&null==l&&(s=n.width,l=n.height),r.sWidth&&r.sHeight){var u=r.sx||0,h=r.sy||0;e.drawImage(n,u,h,r.sWidth,r.sHeight,i,o,s,l)}else if(r.sx&&r.sy){var u=r.sx,h=r.sy,p=s-u,d=l-h;e.drawImage(n,u,h,p,d,i,o,s,l)}else e.drawImage(n,i,o,s,l)}}(e,t,b)):t.getTemporalDisplayables&&(4!==r.lastDrawType&&(L=!0,r.lastDrawType=4),function(e,t,r){var n,i,a=t.getDisplayables(),o=t.getTemporalDisplayables();e.save();var s={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover,beforeBrushParam:{}};for(n=t.getCursor(),i=a.length;n<i;n++){var l=a[n];l.beforeBrush&&l.beforeBrush(r.beforeBrushParam),l.innerBeforeBrush(),N(e,l,s),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}_(e,s);for(var c=0,u=o.length;c<u;c++){var l=o[c];l.beforeBrush&&l.beforeBrush(r.beforeBrushParam),l.innerBeforeBrush(),N(e,l,s),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}_(e,s),t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}(e,t,r));t.innerAfterBrush(),t.afterBrush&&(k&&O(e,r),t.afterBrush()),r.prevEl=t,t.__dirty=0,t.__isRendered=!0}function _(e,t){O(e,t),t.prevElClipPaths&&e.restore()}r.d(t,{V$:()=>N,Xi:()=>L,ZQ:()=>R,v6:()=>_})},53479(e,t,r){function n(e){return isFinite(e)}function i(e,t,r){for(var i,a,o,s,l,c,u,h,p,d,f="radial"===t.type?(o=Math.min(i=r.width,a=r.height),s=null==t.x?.5:t.x,l=null==t.y?.5:t.y,c=null==t.r?.5:t.r,t.global||(s=s*i+r.x,l=l*a+r.y,c*=o),s=n(s)?s:.5,l=n(l)?l:.5,c=c>=0&&n(c)?c:.5,e.createRadialGradient(s,l,0,s,l,c)):(u=null==t.x?0:t.x,h=null==t.x2?1:t.x2,p=null==t.y?0:t.y,d=null==t.y2?0:t.y2,t.global||(u=u*r.width+r.x,h=h*r.width+r.x,p=p*r.height+r.y,d=d*r.height+r.y),u=n(u)?u:0,h=n(h)?h:1,p=n(p)?p:0,d=n(d)?d:0,e.createLinearGradient(u,p,h,d)),m=t.colorStops,g=0;g<m.length;g++)f.addColorStop(m[g].offset,m[g].color);return f}function a(e,t){if(e===t||!e&&!t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!0;return!1}function o(e){return parseInt(e,10)}function s(e,t,r){var n=["width","height"][t],i=["clientWidth","clientHeight"][t],a=["paddingLeft","paddingTop"][t],s=["paddingRight","paddingBottom"][t];if(null!=r[n]&&"auto"!==r[n])return parseFloat(r[n]);var l=document.defaultView.getComputedStyle(e);return(e[i]||o(l[n])||o(e.style[n]))-(o(l[a])||0)-(o(l[s])||0)||0}r.d(t,{Ff:()=>i,KU:()=>a,YC:()=>s})},73098(e,t,r){var n=r(38123),i=1;n.A.hasGlobalWindow&&(i=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var a=i;r.d(t,{Y5:()=>a,_S:()=>"#333",el:()=>"#ccc",ps:()=>.4,tY:()=>"#eee"})},45558(e,t,r){var n,i=r(29308),a=r(60501),o=r(59741);function s(e){n||(n=new a.Ay(100)),e=e||o.OH;var t=n.get(e);return t||(t={font:e,strWidthCache:new a.Ay(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:o.yh.measureText("国",e).width,asciiCharWidth:o.yh.measureText("a",e).width},n.put(e,t)),t}var l=0;function c(e,t){return e.asciiWidthMapTried||(e.asciiWidthMap=function(e){if(!(l>=5)){e=e||o.OH;for(var t=[],r=+new Date,n=0;n<=127;n++)t[n]=o.yh.measureText(String.fromCharCode(n),e).width;var i=new Date-r;return i>16?l=5:i>2&&l++,t}}(e.font),e.asciiWidthMapTried=!0),0<=t&&t<=127?null!=e.asciiWidthMap?e.asciiWidthMap[t]:e.asciiCharWidth:e.stWideCharWidth}function u(e,t){var r=e.strWidthCache,n=r.get(t);return null==n&&(n=o.yh.measureText(t,e.font).width,r.put(t,n)),n}function h(e,t,r,n){var a=u(s(t),e),o=m(t),l=d(0,a,r),c=f(0,o,n);return new i.Ay(l,c,a,o)}function p(e,t,r,n){var a=((e||"")+"").split("\n");if(1===a.length)return h(a[0],t,r,n);for(var o=new i.Ay(0,0,0,0),s=0;s<a.length;s++){var l=h(a[s],t,r,n);0===s?o.copy(l):o.union(l)}return o}function d(e,t,r,n){return"right"===r?n?e+=t:e-=t:"center"===r&&(n?e+=t/2:e-=t/2),e}function f(e,t,r,n){return"middle"===r?n?e+=t/2:e-=t/2:"bottom"===r&&(n?e+=t:e-=t),e}function m(e){return s(e).stWideCharWidth}function g(e,t){return"string"==typeof e?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function A(e,t,r){var n=t.position||"inside",i=null!=t.distance?t.distance:5,a=r.height,o=r.width,s=a/2,l=r.x,c=r.y,u="left",h="top";if(n instanceof Array)l+=g(n[0],r.width),c+=g(n[1],r.height),u=null,h=null;else switch(n){case"left":l-=i,c+=s,u="right",h="middle";break;case"right":l+=i+o,c+=s,h="middle";break;case"top":l+=o/2,c-=i,u="center",h="bottom";break;case"bottom":l+=o/2,c+=a+i,u="center";break;case"inside":l+=o/2,c+=s,u="center",h="middle";break;case"insideLeft":l+=i,c+=s,h="middle";break;case"insideRight":l+=o-i,c+=s,u="right",h="middle";break;case"insideTop":l+=o/2,c+=i,u="center";break;case"insideBottom":l+=o/2,c+=a-i,u="center",h="bottom";break;case"insideTopLeft":l+=i,c+=i;break;case"insideTopRight":l+=o-i,c+=i,u="right";break;case"insideBottomLeft":l+=i,c+=a-i,h="bottom";break;case"insideBottomRight":l+=o-i,c+=a-i,u="right",h="bottom"}return(e=e||{}).x=l,e.y=c,e.align=u,e.verticalAlign=h,e}r.d(t,{JK:()=>c,NO:()=>p,Qw:()=>s,X4:()=>A,ks:()=>m,l8:()=>u,ll:()=>d,lo:()=>g,sZ:()=>f})},29308(e,t,r){var n=r(45587),i=r(83509),a=r(26346),o=Math.min,s=Math.max,l=Math.abs,c=["x","y"],u=["width","height"],h=new a.A,p=new a.A,d=new a.A,f=new a.A,m=L(),g=m.minTv,A=m.maxTv,y=[0,0],v=function(){function e(e,t,r,n){R(this,e,t,r,n)}return e.set=function(e,t,r,n,i){return n<0&&(t+=n,n=-n),i<0&&(r+=i,i=-i),e.x=t,e.y=r,e.width=n,e.height=i,e},e.prototype.union=function(e){var t=o(e.x,this.x),r=o(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=s(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=s(e.y+e.height,this.y+this.height)-r:this.height=e.height,this.x=t,this.y=r},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(e){return x(n.vt(),this,e)},e.prototype.intersect=function(t,r,n){return e.intersect(this,t,r,n)},e.intersect=function(t,r,n,i){n&&a.A.set(n,0,0);var o=i&&i.outIntersectRect||null,s=i&&i.clamp;if(o&&(o.x=o.y=o.width=o.height=0/0),!t||!r)return!1;t instanceof e||(t=R(M,t.x,t.y,t.width,t.height)),r instanceof e||(r=R(S,r.x,r.y,r.width,r.height));var l=!!n;m.reset(i,l);var c=m.touchThreshold,u=t.x+c,h=t.x+t.width-c,p=t.y+c,d=t.y+t.height-c,f=r.x+c,v=r.x+r.width-c,b=r.y+c,x=r.y+r.height-c;if(u>h||p>d||f>v||b>x)return!1;var w=!(h<f||v<u||d<b||x<p);return(l||o)&&(y[0]=1/0,y[1]=0,O(u,h,f,v,0,l,o,s),O(p,d,b,x,1,l,o,s),l&&a.A.copy(n,w?m.useDir?m.dirMinTv:g:A)),w},e.contain=function(e,t,r){return t>=e.x&&t<=e.x+e.width&&r>=e.y&&r<=e.y+e.height},e.prototype.contain=function(t,r){return e.contain(this,t,r)},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(e){b(this,e)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return 0===this.width||0===this.height},e.create=function(t){return new e(t?t.x:0,t?t.y:0,t?t.width:0,t?t.height:0)},e.copy=function(e,t){return e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height,e},e.applyTransform=function(e,t,r){if(!r){e!==t&&b(e,t);return}if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var n=r[0],i=r[3],a=r[4],l=r[5];e.x=t.x*n+a,e.y=t.y*i+l,e.width=t.width*n,e.height=t.height*i,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}h.x=d.x=t.x,h.y=f.y=t.y,p.x=f.x=t.x+t.width,p.y=d.y=t.y+t.height,h.transform(r),f.transform(r),p.transform(r),d.transform(r),e.x=o(h.x,p.x,d.x,f.x),e.y=o(h.y,p.y,d.y,f.y);var c=s(h.x,p.x,d.x,f.x),u=s(h.y,p.y,d.y,f.y);e.width=c-e.x,e.height=u-e.y},e.calculateTransform=function(e,t,r){var a=r.width/t.width,o=r.height/t.height;return e=n.D_(e||[]),n.Tl(e,e,i.hZ(w,-t.x,-t.y)),n.hs(e,e,i.hZ(w,a,o)),n.Tl(e,e,i.hZ(w,r.x,r.y)),e},e}();v.create;var R=v.set,b=v.copy,x=v.calculateTransform;v.applyTransform,v.contain;var M=new v(0,0,0,0),S=new v(0,0,0,0),w=[];function O(e,t,r,n,i,a,h,p){var d=l(t-r),f=l(n-e),v=o(d,f),R=c[i],b=c[1-i],x=u[i];t<r||n<e?d<f?(a&&(A[R]=-d),p&&(h[R]=t,h[x]=0)):(a&&(A[R]=f),p&&(h[R]=e,h[x]=0)):(h&&(h[R]=s(e,r),h[x]=o(t,n)-h[R]),a&&(v<y[0]||m.useDir)&&(y[0]=o(v,y[0]),(d<f||!m.bidirectional)&&(g[R]=d,g[b]=0,m.useDir&&m.calcDirMTV()),(d>=f||!m.bidirectional)&&(g[R]=-f,g[b]=0,m.useDir&&m.calcDirMTV())))}function L(){var e=0,t=new a.A,r=new a.A,n={minTv:new a.A,maxTv:new a.A,useDir:!1,dirMinTv:new a.A,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(i,a){n.touchThreshold=0,i&&null!=i.touchThreshold&&(n.touchThreshold=s(0,i.touchThreshold)),n.negativeSize=!1,a&&(n.minTv.set(1/0,1/0),n.maxTv.set(0,0),n.useDir=!1,i&&null!=i.direction&&(n.useDir=!0,n.dirMinTv.copy(n.minTv),r.copy(n.minTv),e=i.direction,n.bidirectional=null==i.bidirectional||!!i.bidirectional,n.bidirectional||t.set(Math.cos(e),Math.sin(e))))},calcDirMTV:function(){var a=n.minTv,o=n.dirMinTv,s=a.y*a.y+a.x*a.x,l=Math.sin(e),c=Math.cos(e),u=l*a.y+c*a.x;if(i(u)){i(a.x)&&i(a.y)&&o.set(0,0);return}(r.x=s*c/u,r.y=s*l/u,i(r.x)&&i(r.y))?o.set(0,0):(n.bidirectional||t.dot(r)>0)&&r.len()<o.len()&&o.copy(r)}};function i(e){return 1e-10>l(e)}return n}t.Ay=v,r.d(t,{bV:()=>L})},57861(e,t){t.A=function(){function e(e){e&&(this._$eventProcessor=e)}return e.prototype.on=function(e,t,r,n){this._$handlers||(this._$handlers={});var i=this._$handlers;if("function"==typeof t&&(n=r,r=t,t=null),!r||!e)return this;var a=this._$eventProcessor;null!=t&&a&&a.normalizeQuery&&(t=a.normalizeQuery(t)),i[e]||(i[e]=[]);for(var o=0;o<i[e].length;o++)if(i[e][o].h===r)return this;var s={h:r,query:t,ctx:n||this,callAtLast:r.zrEventfulCallAtLast},l=i[e].length-1,c=i[e][l];return c&&c.callAtLast?i[e].splice(l,0,s):i[e].push(s),this},e.prototype.isSilent=function(e){var t=this._$handlers;return!t||!t[e]||!t[e].length},e.prototype.off=function(e,t){var r=this._$handlers;if(!r)return this;if(!e)return this._$handlers={},this;if(t){if(r[e]){for(var n=[],i=0,a=r[e].length;i<a;i++)r[e][i].h!==t&&n.push(r[e][i]);r[e]=n}r[e]&&0===r[e].length&&delete r[e]}else delete r[e];return this},e.prototype.trigger=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(!this._$handlers)return this;var n=this._$handlers[e],i=this._$eventProcessor;if(n)for(var a=t.length,o=n.length,s=0;s<o;s++){var l=n[s];if(!i||!i.filter||null==l.query||i.filter(e,l.query))switch(a){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,t[0]);break;case 2:l.h.call(l.ctx,t[0],t[1]);break;default:l.h.apply(l.ctx,t)}}return i&&i.afterTrigger&&i.afterTrigger(e),this},e.prototype.triggerWithContext=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(!this._$handlers)return this;var n=this._$handlers[e],i=this._$eventProcessor;if(n)for(var a=t.length,o=t[a-1],s=n.length,l=0;l<s;l++){var c=n[l];if(!i||!i.filter||null==c.query||i.filter(e,c.query))switch(a){case 0:c.h.call(o);break;case 1:c.h.call(o,t[0]);break;case 2:c.h.call(o,t[0],t[1]);break;default:c.h.apply(o,t.slice(1,a-1))}}return i&&i.afterTrigger&&i.afterTrigger(e),this},e}()},60501(e,t){var r=function(e){this.value=e},n=function(){function e(){this._len=0}return e.prototype.insert=function(e){var t=new r(e);return this.insertEntry(t),t},e.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},e.prototype.remove=function(e){var t=e.prev,r=e.next;t?t.next=r:this.head=r,r?r.prev=t:this.tail=t,e.next=e.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}();t.Ay=function(){function e(e){this._list=new n,this._maxSize=10,this._map={},this._maxSize=e}return e.prototype.put=function(e,t){var n=this._list,i=this._map,a=null;if(null==i[e]){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete i[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=t:s=new r(t),s.key=e,n.insertEntry(s),i[e]=s}return a},e.prototype.get=function(e){var t=this._map[e],r=this._list;if(null!=t)return t!==r.tail&&(r.remove(t),r.insertEntry(t)),t.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}()},84716(e,t,r){var n=r(26346),i=r(29308),a=Math.min,o=Math.max,s=Math.abs,l=[0,0],c=[0,0],u=(0,i.bV)(),h=u.minTv,p=u.maxTv;t.A=function(){function e(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var r=0;r<4;r++)this._corners[r]=new n.A;for(var r=0;r<2;r++)this._axes[r]=new n.A;e&&this.fromBoundingRect(e,t)}return e.prototype.fromBoundingRect=function(e,t){var r=this._corners,i=this._axes,a=e.x,o=e.y,s=a+e.width,l=o+e.height;if(r[0].set(a,o),r[1].set(s,o),r[2].set(s,l),r[3].set(a,l),t)for(var c=0;c<4;c++)r[c].transform(t);n.A.sub(i[0],r[1],r[0]),n.A.sub(i[1],r[3],r[0]),i[0].normalize(),i[1].normalize();for(var c=0;c<2;c++)this._origin[c]=i[c].dot(r[0])},e.prototype.intersect=function(e,t,r){var i=!0,a=!t;return(t&&n.A.set(t,0,0),u.reset(r,!a),!this._intersectCheckOneSide(this,e,a,1)&&(i=!1,a)||!this._intersectCheckOneSide(e,this,a,-1)&&(i=!1,a))?i:(a||u.negativeSize||n.A.copy(t,i?u.useDir?u.dirMinTv:h:p),i)},e.prototype._intersectCheckOneSide=function(e,t,r,i){for(var o=!0,d=0;d<2;d++){var f=e._axes[d];if(e._getProjMinMaxOnAxis(d,e._corners,l),e._getProjMinMaxOnAxis(d,t._corners,c),u.negativeSize||l[1]<c[0]||l[0]>c[1]){if(o=!1,u.negativeSize||r)return o;var m=s(c[0]-l[1]),g=s(l[0]-c[1]);a(m,g)>p.len()&&(m<g?n.A.scale(p,f,-m*i):n.A.scale(p,f,g*i))}else if(!r){var m=s(c[0]-l[1]),g=s(l[0]-c[1]);(u.useDir||a(m,g)<h.len())&&((m<g||!u.bidirectional)&&(n.A.scale(h,f,m*i),u.useDir&&u.calcDirMTV()),(m>=g||!u.bidirectional)&&(n.A.scale(h,f,-g*i),u.useDir&&u.calcDirMTV()))}}return o},e.prototype._getProjMinMaxOnAxis=function(e,t,r){for(var n=this._axes[e],i=this._origin,s=t[0].dot(n)+i[e],l=s,c=s,h=1;h<t.length;h++){var p=t[h].dot(n)+i[e];l=a(p,l),c=o(p,c)}r[0]=l+u.touchThreshold,r[1]=c-u.touchThreshold,u.negativeSize=r[1]<r[0]},e}()},15938(e,t,r){r.d(t,{A:()=>X,q:()=>F});var n=r(83509),i=r(29308),a=r(73098),o=r(89259),s=Math.min,l=Math.max,c=Math.sin,u=Math.cos,h=2*Math.PI,p=n.vt(),d=n.vt(),f=n.vt();function m(e,t,r,n,i,a){i[0]=s(e,r),i[1]=s(t,n),a[0]=l(e,r),a[1]=l(t,n)}var g=[],A=[],y={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},v=[],R=[],b=[],x=[],M=[],S=[],w=Math.min,O=Math.max,L=Math.cos,N=Math.sin,_=Math.abs,T=Math.PI,P=2*T,C="u">typeof Float32Array,I=[];function k(e){return Math.round(e/T*1e8)/1e8%2*T}function F(e,t){var r=k(e[0]);r<0&&(r+=P);var n=r-e[0],i=e[1];i+=n,!t&&i-r>=P?i=r+P:t&&r-i>=P?i=r-P:!t&&r>i?i=r+(P-k(r-i)):t&&r<i&&(i=r-(P-k(i-r))),e[0]=r,e[1]=i}var X=function(){var e;function t(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}return t.prototype.increaseVersion=function(){this._version++},t.prototype.getVersion=function(){return this._version},t.prototype.setScale=function(e,t,r){(r=r||0)>0&&(this._ux=_(r/a.Y5/e)||0,this._uy=_(r/a.Y5/t)||0)},t.prototype.setDPR=function(e){this.dpr=e},t.prototype.setContext=function(e){this._ctx=e},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(y.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},t.prototype.lineTo=function(e,t){var r=_(e-this._xi),n=_(t-this._yi),i=r>this._ux||n>this._uy;if(this.addData(y.L,e,t),this._ctx&&i&&this._ctx.lineTo(e,t),i)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var a=r*r+n*n;a>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=a)}return this},t.prototype.bezierCurveTo=function(e,t,r,n,i,a){return this._drawPendingPt(),this.addData(y.C,e,t,r,n,i,a),this._ctx&&this._ctx.bezierCurveTo(e,t,r,n,i,a),this._xi=i,this._yi=a,this},t.prototype.quadraticCurveTo=function(e,t,r,n){return this._drawPendingPt(),this.addData(y.Q,e,t,r,n),this._ctx&&this._ctx.quadraticCurveTo(e,t,r,n),this._xi=r,this._yi=n,this},t.prototype.arc=function(e,t,r,n,i,a){this._drawPendingPt(),I[0]=n,I[1]=i,F(I,a),n=I[0];var o=(i=I[1])-n;return this.addData(y.A,e,t,r,r,n,o,0,+!a),this._ctx&&this._ctx.arc(e,t,r,n,i,a),this._xi=L(i)*r+e,this._yi=N(i)*r+t,this},t.prototype.arcTo=function(e,t,r,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,r,n,i),this},t.prototype.rect=function(e,t,r,n){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,r,n),this.addData(y.R,e,t,r,n),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(y.Z);var e=this._ctx,t=this._x0,r=this._y0;return e&&e.closePath(),this._xi=t,this._yi=r,this},t.prototype.fill=function(e){e&&e.fill(),this.toStatic()},t.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(e){if(this._saveData){var t=e.length;!(this.data&&this.data.length===t)&&C&&(this.data=new Float32Array(t));for(var r=0;r<t;r++)this.data[r]=e[r];this._len=t}},t.prototype.appendPath=function(e){if(this._saveData){e instanceof Array||(e=[e]);for(var t=e.length,r=0,n=this._len,i=0;i<t;i++)r+=e[i].len();var a=this.data;if(C&&(a instanceof Float32Array||!a)&&(this.data=new Float32Array(n+r),n>0&&a))for(var o=0;o<n;o++)this.data[o]=a[o];for(var i=0;i<t;i++)for(var s=e[i].data,o=0;o<s.length;o++)this.data[n++]=s[o];this._len=n}},t.prototype.addData=function(e,t,r,n,i,a,o,s,l){if(this._saveData){var c=this.data;this._len+arguments.length>c.length&&(this._expandData(),c=this.data);for(var u=0;u<arguments.length;u++)c[this._len++]=arguments[u]}},t.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t<this._len;t++)e[t]=this.data[t];this.data=e}},t.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,C&&this._len>11&&(this.data=new Float32Array(e)))}},t.prototype.getBoundingRect=function(){b[0]=b[1]=M[0]=M[1]=Number.MAX_VALUE,x[0]=x[1]=S[0]=S[1]=-Number.MAX_VALUE;var e,t=this.data,r=0,a=0,v=0,R=0;for(e=0;e<this._len;){var w=t[e++],O=1===e;switch(O&&(r=t[e],a=t[e+1],v=r,R=a),w){case y.M:r=v=t[e++],a=R=t[e++],M[0]=v,M[1]=R,S[0]=v,S[1]=R;break;case y.L:m(r,a,t[e],t[e+1],M,S),r=t[e++],a=t[e++];break;case y.C:!function(e,t,r,n,i,a,c,u,h,p){var d=o.lX,f=o.Yb,m=d(e,r,i,c,g);h[0]=1/0,h[1]=1/0,p[0]=-1/0,p[1]=-1/0;for(var y=0;y<m;y++){var v=f(e,r,i,c,g[y]);h[0]=s(v,h[0]),p[0]=l(v,p[0])}m=d(t,n,a,u,A);for(var y=0;y<m;y++){var R=f(t,n,a,u,A[y]);h[1]=s(R,h[1]),p[1]=l(R,p[1])}h[0]=s(e,h[0]),p[0]=l(e,p[0]),h[0]=s(c,h[0]),p[0]=l(c,p[0]),h[1]=s(t,h[1]),p[1]=l(t,p[1]),h[1]=s(u,h[1]),p[1]=l(u,p[1])}(r,a,t[e++],t[e++],t[e++],t[e++],t[e],t[e+1],M,S),r=t[e++],a=t[e++];break;case y.Q:!function(e,t,r,n,i,a,c,u){var h=o.gC,p=o.k3,d=l(s(h(e,r,i),1),0),f=l(s(h(t,n,a),1),0),m=p(e,r,i,d),g=p(t,n,a,f);c[0]=s(e,i,m),c[1]=s(t,a,g),u[0]=l(e,i,m),u[1]=l(t,a,g)}(r,a,t[e++],t[e++],t[e],t[e+1],M,S),r=t[e++],a=t[e++];break;case y.A:var _=t[e++],T=t[e++],P=t[e++],C=t[e++],I=t[e++],k=t[e++]+I;e+=1;var F=!t[e++];O&&(v=L(I)*P+_,R=N(I)*C+T),function(e,t,r,i,a,o,s,l,m){var g=n.jk,A=n.T9,y=Math.abs(a-o);if(y%h<1e-4&&y>1e-4){l[0]=e-r,l[1]=t-i,m[0]=e+r,m[1]=t+i;return}if(p[0]=u(a)*r+e,p[1]=c(a)*i+t,d[0]=u(o)*r+e,d[1]=c(o)*i+t,g(l,p,d),A(m,p,d),(a%=h)<0&&(a+=h),(o%=h)<0&&(o+=h),a>o&&!s?o+=h:a<o&&s&&(a+=h),s){var v=o;o=a,a=v}for(var R=0;R<o;R+=Math.PI/2)R>a&&(f[0]=u(R)*r+e,f[1]=c(R)*i+t,g(l,f,l),A(m,f,m))}(_,T,P,C,I,k,F,M,S),r=L(k)*P+_,a=N(k)*C+T;break;case y.R:m(v=r=t[e++],R=a=t[e++],v+t[e++],R+t[e++],M,S);break;case y.Z:r=v,a=R}n.jk(b,b,M),n.T9(x,x,S)}return 0===e&&(b[0]=b[1]=x[0]=x[1]=0),new i.Ay(b[0],b[1],x[0]-b[0],x[1]-b[1])},t.prototype._calculateLength=function(){var e=this.data,t=this._len,r=this._ux,n=this._uy,i=0,a=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var c=this._pathSegLen,u=0,h=0,p=0;p<t;){var d=e[p++],f=1===p;f&&(i=e[p],a=e[p+1],s=i,l=a);var m=-1;switch(d){case y.M:i=s=e[p++],a=l=e[p++];break;case y.L:var g=e[p++],A=e[p++],v=g-i,R=A-a;(_(v)>r||_(R)>n||p===t-1)&&(m=Math.sqrt(v*v+R*R),i=g,a=A);break;case y.C:var b=e[p++],x=e[p++],g=e[p++],A=e[p++],M=e[p++],S=e[p++];m=(0,o.h0)(i,a,b,x,g,A,M,S,10),i=M,a=S;break;case y.Q:var b=e[p++],x=e[p++],g=e[p++],A=e[p++];m=(0,o.d8)(i,a,b,x,g,A,10),i=g,a=A;break;case y.A:var T=e[p++],C=e[p++],I=e[p++],k=e[p++],F=e[p++],X=e[p++],U=X+F;p+=1,f&&(s=L(F)*I+T,l=N(F)*k+C),m=O(I,k)*w(P,Math.abs(X)),i=L(U)*I+T,a=N(U)*k+C;break;case y.R:s=i=e[p++],l=a=e[p++],m=2*e[p++]+2*e[p++];break;case y.Z:var v=s-i,R=l-a;m=Math.sqrt(v*v+R*R),i=s,a=l}m>=0&&(c[h++]=m,u+=m)}return this._pathLen=u,u},t.prototype.rebuildPath=function(e,t){var r,n,i,a,s,l,c,u,h,p,d=this.data,f=this._ux,m=this._uy,g=this._len,A=t<1,b=0,x=0,M=0;if(!A||(this._pathSegLen||this._calculateLength(),c=this._pathSegLen,u=t*this._pathLen))c:for(var S=0;S<g;){var T=d[S++],P=1===S;switch(P&&(i=d[S],a=d[S+1],r=i,n=a),T!==y.L&&M>0&&(e.lineTo(h,p),M=0),T){case y.M:r=i=d[S++],n=a=d[S++],e.moveTo(i,a);break;case y.L:s=d[S++],l=d[S++];var C=_(s-i),I=_(l-a);if(C>f||I>m){if(A){var k=c[x++];if(b+k>u){var F=(u-b)/k;e.lineTo(i*(1-F)+s*F,a*(1-F)+l*F);break c}b+=k}e.lineTo(s,l),i=s,a=l,M=0}else{var X=C*C+I*I;X>M&&(h=s,p=l,M=X)}break;case y.C:var U=d[S++],W=d[S++],V=d[S++],E=d[S++],Y=d[S++],D=d[S++];if(A){var k=c[x++];if(b+k>u){var F=(u-b)/k;(0,o.YT)(i,U,V,Y,F,v),(0,o.YT)(a,W,E,D,F,R),e.bezierCurveTo(v[1],R[1],v[2],R[2],v[3],R[3]);break c}b+=k}e.bezierCurveTo(U,W,V,E,Y,D),i=Y,a=D;break;case y.Q:var U=d[S++],W=d[S++],V=d[S++],E=d[S++];if(A){var k=c[x++];if(b+k>u){var F=(u-b)/k;(0,o.kx)(i,U,V,F,v),(0,o.kx)(a,W,E,F,R),e.quadraticCurveTo(v[1],R[1],v[2],R[2]);break c}b+=k}e.quadraticCurveTo(U,W,V,E),i=V,a=E;break;case y.A:var Q=d[S++],$=d[S++],B=d[S++],Z=d[S++],K=d[S++],G=d[S++],H=d[S++],z=!d[S++],J=B>Z?B:Z,j=_(B-Z)>.001,q=K+G,ee=!1;if(A){var k=c[x++];b+k>u&&(q=K+G*(u-b)/k,ee=!0),b+=k}if(j&&e.ellipse?e.ellipse(Q,$,B,Z,H,K,q,z):e.arc(Q,$,J,K,q,z),ee)break c;P&&(r=L(K)*B+Q,n=N(K)*Z+$),i=L(q)*B+Q,a=N(q)*Z+$;break;case y.R:r=i=d[S],n=a=d[S+1],s=d[S++],l=d[S++];var et=d[S++],er=d[S++];if(A){var k=c[x++];if(b+k>u){var en=u-b;e.moveTo(s,l),e.lineTo(s+w(en,et),l),(en-=et)>0&&e.lineTo(s+et,l+w(en,er)),(en-=er)>0&&e.lineTo(s+O(et-en,0),l+er),(en-=et)>0&&e.lineTo(s,l+O(er-en,0));break c}b+=k}e.rect(s,l,et,er);break;case y.Z:if(A){var k=c[x++];if(b+k>u){var F=(u-b)/k;e.lineTo(i*(1-F)+r*F,a*(1-F)+n*F);break c}b+=k}e.closePath(),i=r,a=n}}},t.prototype.clone=function(){var e=new t,r=this.data;return e.data=r.slice?r.slice():Array.prototype.slice.call(r),e._len=this._len,e},t.prototype.canSave=function(){return!!this._saveData},t.CMD=y,t.initDefaultProps=void((e=t.prototype)._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0),t}()},26346(e,t){t.A=function(){function e(e,t){this.x=e||0,this.y=t||0}return e.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(e,t){return this.x=e,this.y=t,this},e.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},e.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},e.prototype.scale=function(e){this.x*=e,this.y*=e},e.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},e.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},e.prototype.dot=function(e){return this.x*e.x+this.y*e.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},e.prototype.distance=function(e){var t=this.x-e.x,r=this.y-e.y;return Math.sqrt(t*t+r*r)},e.prototype.distanceSquare=function(e){var t=this.x-e.x,r=this.y-e.y;return t*t+r*r},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(e){if(e){var t=this.x,r=this.y;return this.x=e[0]*t+e[2]*r+e[4],this.y=e[1]*t+e[3]*r+e[5],this}},e.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},e.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},e.set=function(e,t,r){e.x=t,e.y=r},e.copy=function(e,t){e.x=t.x,e.y=t.y},e.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},e.lenSquare=function(e){return e.x*e.x+e.y*e.y},e.dot=function(e,t){return e.x*t.x+e.y*t.y},e.add=function(e,t,r){e.x=t.x+r.x,e.y=t.y+r.y},e.sub=function(e,t,r){e.x=t.x-r.x,e.y=t.y-r.y},e.scale=function(e,t,r){e.x=t.x*r,e.y=t.y*r},e.scaleAndAdd=function(e,t,r,n){e.x=t.x+r.x*n,e.y=t.y+r.y*n},e.lerp=function(e,t,r,n){var i=1-n;e.x=i*t.x+n*r.x,e.y=i*t.y+n*r.y},e}()},92836(e,t,r){var n=r(45587),i=r(98026),a=r(83509),o=n.D_;function s(e){return e>5e-5||e<-5e-5}var l=[],c=[],u=n.vt(),h=Math.abs,p=function(){var e;function t(){}return t.prototype.getLocalTransform=function(e){return d(this,e)},t.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},t.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},t.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},t.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},t.prototype.needLocalTransform=function(){return s(this.rotation)||s(this.x)||s(this.y)||s(this.scaleX-1)||s(this.scaleY-1)||s(this.skewX)||s(this.skewY)},t.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),r=this.transform;if(!(t||e)){r&&(o(r),this.invTransform=null);return}r=r||n.vt(),t?this.getLocalTransform(r):o(r),e&&(t?n.lK(r,e,r):n.C(r,e)),this.transform=r,this._resolveGlobalScaleRatio(r),this.invTransform=this.invTransform||n.vt(),n.B8(this.invTransform,r)},t.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(null!=t&&1!==t){this.getGlobalScale(l);var r=l[0]<0?-1:1,n=l[1]<0?-1:1,i=((l[0]-r)*t+r)/l[0]||0,a=((l[1]-n)*t+n)/l[1]||0;e[0]*=i,e[1]*=i,e[2]*=a,e[3]*=a}},t.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},t.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],r=e[2]*e[2]+e[3]*e[3],n=Math.atan2(e[1],e[0]),i=Math.PI/2+n-Math.atan2(e[3],e[2]);r=Math.sqrt(r)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-n,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=r,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||n.vt(),n.lK(c,e.invTransform,t),t=c);var r=this.originX,i=this.originY;(r||i)&&(u[4]=r,u[5]=i,n.lK(c,t,u),c[4]-=r,c[5]-=i,t=c),this.setLocalTransform(t)}},t.prototype.getGlobalScale=function(e){var t=this.transform;return(e=e||[],t)?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1])):(e[0]=1,e[1]=1),e},t.prototype.transformCoordToLocal=function(e,t){var r=[e,t],n=this.invTransform;return n&&a.NW(r,r,n),r},t.prototype.transformCoordToGlobal=function(e,t){var r=[e,t],n=this.transform;return n&&a.NW(r,r,n),r},t.prototype.getLineScale=function(){var e=this.transform;return e&&h(e[0]-1)>1e-10&&h(e[3]-1)>1e-10?Math.sqrt(h(e[0]*e[3]-e[2]*e[1])):1},t.prototype.copyTransform=function(e){m(this,e)},t.getLocalTransform=function(e,t){t=t||[];var r=e.originX||0,i=e.originY||0,a=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,c=e.rotation||0,u=e.x,h=e.y,p=e.skewX?Math.tan(e.skewX):0,d=e.skewY?Math.tan(-e.skewY):0;if(r||i||s||l){var f=r+s,m=i+l;t[4]=-f*a-p*m*o,t[5]=-m*o-d*f*a}else t[4]=t[5]=0;return t[0]=a,t[3]=o,t[1]=d*a,t[2]=p*o,c&&n.e$(t,t,c),t[4]+=r+u,t[5]+=i+h,t},t.initDefaultProps=void((e=t.prototype).scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0),t}(),d=p.getLocalTransform,f=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function m(e,t){return(0,i.Ac)(e,t,f)}t.Ay=p,r.d(t,{IT:()=>m,Wx:()=>f})},89259(e,t,r){var n=r(83509),i=Math.pow,a=Math.sqrt,o=a(3),s=1/3,l=(0,n.vt)(),c=(0,n.vt)(),u=(0,n.vt)();function h(e){return e>-1e-8&&e<1e-8}function p(e){return e>1e-8||e<-1e-8}function d(e,t,r,n,i){var a=1-i;return a*a*(a*e+3*i*t)+i*i*(i*n+3*a*r)}function f(e,t,r,n,i){var a=1-i;return 3*(((t-e)*a+2*(r-t)*i)*a+(n-r)*i*i)}function m(e,t,r,n,l,c){var u=n+3*(t-r)-e,p=3*(r-2*t+e),d=3*(t-e),f=e-l,m=p*p-3*u*d,g=p*d-9*u*f,A=d*d-3*p*f,y=0;if(h(m)&&h(g))if(h(p))c[0]=0;else{var v=-d/p;v>=0&&v<=1&&(c[y++]=v)}else{var R=g*g-4*m*A;if(h(R)){var b=g/m,v=-p/u+b,x=-b/2;v>=0&&v<=1&&(c[y++]=v),x>=0&&x<=1&&(c[y++]=x)}else if(R>0){var M=a(R),S=m*p+1.5*u*(-g+M),w=m*p+1.5*u*(-g-M),v=(-p-((S=S<0?-i(-S,s):i(S,s))+(w=w<0?-i(-w,s):i(w,s))))/(3*u);v>=0&&v<=1&&(c[y++]=v)}else{var O=Math.acos((2*m*p-3*u*g)/(2*a(m*m*m)))/3,L=a(m),N=Math.cos(O),v=(-p-2*L*N)/(3*u),x=(-p+L*(N+o*Math.sin(O)))/(3*u),_=(-p+L*(N-o*Math.sin(O)))/(3*u);v>=0&&v<=1&&(c[y++]=v),x>=0&&x<=1&&(c[y++]=x),_>=0&&_<=1&&(c[y++]=_)}}return y}function g(e,t,r,n,i){var o=6*r-12*t+6*e,s=9*t+3*n-3*e-9*r,l=3*t-3*e,c=0;if(h(s)){if(p(o)){var u=-l/o;u>=0&&u<=1&&(i[c++]=u)}}else{var d=o*o-4*s*l;if(h(d))i[0]=-o/(2*s);else if(d>0){var f=a(d),u=(-o+f)/(2*s),m=(-o-f)/(2*s);u>=0&&u<=1&&(i[c++]=u),m>=0&&m<=1&&(i[c++]=m)}}return c}function A(e,t,r,n,i,a){var o=(t-e)*i+e,s=(r-t)*i+t,l=(n-r)*i+r,c=(s-o)*i+o,u=(l-s)*i+s,h=(u-c)*i+c;a[0]=e,a[1]=o,a[2]=c,a[3]=h,a[4]=h,a[5]=u,a[6]=l,a[7]=n}function y(e,t,r,i,o,s,h,p,f,m,g){var A,y,v,R,b,x=.005,M=1/0;l[0]=f,l[1]=m;for(var S=0;S<1;S+=.05)c[0]=d(e,r,o,h,S),c[1]=d(t,i,s,p,S),(R=(0,n.oi)(l,c))<M&&(A=S,M=R);M=1/0;for(var w=0;w<32&&!(x<1e-4);w++)y=A-x,v=A+x,c[0]=d(e,r,o,h,y),c[1]=d(t,i,s,p,y),R=(0,n.oi)(c,l),y>=0&&R<M?(A=y,M=R):(u[0]=d(e,r,o,h,v),u[1]=d(t,i,s,p,v),b=(0,n.oi)(u,l),v<=1&&b<M?(A=v,M=b):x*=.5);return g&&(g[0]=d(e,r,o,h,A),g[1]=d(t,i,s,p,A)),a(M)}function v(e,t,r,n,i,a,o,s,l){for(var c=e,u=t,h=0,p=1/l,f=1;f<=l;f++){var m=f*p,g=d(e,r,i,o,m),A=d(t,n,a,s,m),y=g-c,v=A-u;h+=Math.sqrt(y*y+v*v),c=g,u=A}return h}function R(e,t,r,n){var i=1-n;return i*(i*e+2*n*t)+n*n*r}function b(e,t,r,n){return 2*((1-n)*(t-e)+n*(r-t))}function x(e,t,r,n,i){var o=e-2*t+r,s=2*(t-e),l=e-n,c=0;if(h(o)){if(p(s)){var u=-l/s;u>=0&&u<=1&&(i[c++]=u)}}else{var d=s*s-4*o*l;if(h(d)){var u=-s/(2*o);u>=0&&u<=1&&(i[c++]=u)}else if(d>0){var f=a(d),u=(-s+f)/(2*o),m=(-s-f)/(2*o);u>=0&&u<=1&&(i[c++]=u),m>=0&&m<=1&&(i[c++]=m)}}return c}function M(e,t,r){var n=e+r-2*t;return 0===n?.5:(e-t)/n}function S(e,t,r,n,i){var a=(t-e)*n+e,o=(r-t)*n+t,s=(o-a)*n+a;i[0]=e,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=r}function w(e,t,r,i,o,s,h,p,d){var f,m=.005,g=1/0;l[0]=h,l[1]=p;for(var A=0;A<1;A+=.05){c[0]=R(e,r,o,A),c[1]=R(t,i,s,A);var y=(0,n.oi)(l,c);y<g&&(f=A,g=y)}g=1/0;for(var v=0;v<32&&!(m<1e-4);v++){var b=f-m,x=f+m;c[0]=R(e,r,o,b),c[1]=R(t,i,s,b);var y=(0,n.oi)(c,l);if(b>=0&&y<g)f=b,g=y;else{u[0]=R(e,r,o,x),u[1]=R(t,i,s,x);var M=(0,n.oi)(u,l);x<=1&&M<g?(f=x,g=M):m*=.5}}return d&&(d[0]=R(e,r,o,f),d[1]=R(t,i,s,f)),a(g)}function O(e,t,r,n,i,a,o){for(var s=e,l=t,c=0,u=1/o,h=1;h<=o;h++){var p=h*u,d=R(e,r,i,p),f=R(t,n,a,p),m=d-s,g=f-l;c+=Math.sqrt(m*m+g*g),s=d,l=f}return c}r.d(t,{Et:()=>y,YT:()=>A,Yb:()=>d,_E:()=>m,d8:()=>O,gC:()=>M,h0:()=>v,k3:()=>R,kh:()=>w,kx:()=>S,lX:()=>g,qY:()=>x,rD:()=>f,z7:()=>b})},51254(e,t,r){r.d(t,{Me:()=>d,ot:()=>u,oq:()=>c});var n=r(38123),i=Math.log(2);function a(e,t,r,n,o,s){var l=n+"-"+o,c=e.length;if(s.hasOwnProperty(l))return s[l];if(1===t){var u=Math.round(Math.log((1<<c)-1&~o)/i);return e[r][u]}for(var h=n|1<<r,p=r+1;n&1<<p;)p++;for(var d=0,f=0,m=0;f<c;f++){var g=1<<f;!(g&o)&&(d+=(m%2?-1:1)*e[r][f]*a(e,t-1,p,h,o|g,s),m++)}return s[l]=d,d}function o(e,t){var r=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],n={},i=a(r,8,0,0,0,n);if(0!==i){for(var o=[],s=0;s<8;s++)for(var l=0;l<8;l++)null==o[l]&&(o[l]=0),o[l]+=((s+l)%2?-1:1)*a(r,7,+(0===s),1<<s,1<<l,n)/i*t[s];return function(e,t,r){var n=t*o[6]+r*o[7]+1;e[0]=(t*o[0]+r*o[1]+o[2])/n,e[1]=(t*o[3]+r*o[4]+o[5])/n}}}var s=r(98026),l="___zrEVENTSAVED";function c(e,t,r,i,a){if(t.getBoundingClientRect&&n.A.domSupported&&!u(t)){var c=t[l]||(t[l]={}),h=function(e,t,r){for(var n=r?"invTrans":"trans",i=t[n],a=t.srcCoords,s=[],l=[],c=!0,u=0;u<4;u++){var h=e[u].getBoundingClientRect(),p=2*u,d=h.left,f=h.top;s.push(d,f),c=c&&a&&d===a[p]&&f===a[p+1],l.push(e[u].offsetLeft,e[u].offsetTop)}return c&&i?i:(t.srcCoords=s,t[n]=r?o(l,s):o(s,l))}(function(e,t){var r=t.markers;if(r)return r;r=t.markers=[];for(var n=["left","right"],i=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),l=o.style,c=a%2,u=(a>>1)%2;l.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[c]+":0",i[u]+":0",n[1-c]+":auto",i[1-u]+":auto",""].join("!important;"),e.appendChild(o),r.push(o)}return t.clearMarkers=function(){(0,s.__)(r,function(e){e.parentNode&&e.parentNode.removeChild(e)})},r}(t,c),c,a);if(h)return h(e,r,i),!0}return!1}function u(e){return"CANVAS"===e.nodeName.toUpperCase()}var h=/([&<>"'])/g,p={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function d(e){return null==e?"":(e+"").replace(h,function(e,t){return p[t]})}},38123(e,t){var r=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},n=new function(){this.browser=new r,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow="u">typeof window};"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(n.wxa=!0,n.touchEventsSupported=!0):"u"<typeof document&&"u">typeof self?n.worker=!0:!n.hasGlobalWindow||"Deno"in window||"u">typeof navigator&&"string"==typeof navigator.userAgent&&navigator.userAgent.indexOf("Node.js")>-1?(n.node=!0,n.svgSupported=!0):function(e,t){var r=t.browser,n=e.match(/Firefox\/([\d.]+)/),i=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),a=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);if(n&&(r.firefox=!0,r.version=n[1]),i&&(r.ie=!0,r.version=i[1]),a&&(r.edge=!0,r.version=a[1],r.newEdge=+a[1].split(".")[0]>18),o&&(r.weChat=!0),t.svgSupported="u">typeof SVGRect,t.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,t.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11),t.domSupported="u">typeof document){var s=document.documentElement.style;t.transform3dSupported=(r.ie&&"transition"in s||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||r.ie&&+r.version>=9}}(navigator.userAgent,n),t.A=n},35452(e,t,r){var n=r(38123),i=r(51254),a=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,o=[],s=n.A.browser.firefox&&39>+n.A.browser.version.split(".")[0];function l(e,t,r,n){return r=r||{},n?c(e,t,r):s&&null!=t.layerX&&t.layerX!==t.offsetX?(r.zrX=t.layerX,r.zrY=t.layerY):null!=t.offsetX?(r.zrX=t.offsetX,r.zrY=t.offsetY):c(e,t,r),r}function c(e,t,r){if(n.A.domSupported&&e.getBoundingClientRect){var a=t.clientX,s=t.clientY;if((0,i.ot)(e)){var l=e.getBoundingClientRect();r.zrX=a-l.left,r.zrY=s-l.top;return}if((0,i.oq)(o,e,a,s)){r.zrX=o[0],r.zrY=o[1];return}}r.zrX=r.zrY=0}function u(e){return e||window.event}function h(e,t,r){if(null!=(t=u(t)).zrX)return t;var n=t.type;if(n&&n.indexOf("touch")>=0){var i="touchend"!==n?t.targetTouches[0]:t.changedTouches[0];i&&l(e,i,t,r)}else{l(e,t,t,r);var o=function(e){var t=e.wheelDelta;if(t)return t;var r=e.deltaX,n=e.deltaY;return null==r||null==n?t:3*(0!==n?Math.abs(n):Math.abs(r))*(n>0?-1:n<0?1:r>0?-1:1)}(t);t.zrDelta=o?o/120:-(t.detail||0)/3}var s=t.button;return null==t.which&&void 0!==s&&a.test(t.type)&&(t.which=1&s?1:2&s?3:4&s?2:0),t}function p(e,t,r,n){e.addEventListener(t,r,n)}function d(e,t,r,n){e.removeEventListener(t,r,n)}var f=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};r.d(t,{Yo:()=>l,ds:()=>f,e0:()=>h,f:()=>d,mK:()=>u,q2:()=>p})},45587(e,t,r){function n(){return[1,0,0,1,0,0]}function i(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function a(e,t){return 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}function o(e,t,r){var n=t[0]*r[0]+t[2]*r[1],i=t[1]*r[0]+t[3]*r[1],a=t[0]*r[2]+t[2]*r[3],o=t[1]*r[2]+t[3]*r[3],s=t[0]*r[4]+t[2]*r[5]+t[4],l=t[1]*r[4]+t[3]*r[5]+t[5];return e[0]=n,e[1]=i,e[2]=a,e[3]=o,e[4]=s,e[5]=l,e}function s(e,t,r){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+r[0],e[5]=t[5]+r[1],e}function l(e,t,r,n){void 0===n&&(n=[0,0]);var i=t[0],a=t[2],o=t[4],s=t[1],l=t[3],c=t[5],u=Math.sin(r),h=Math.cos(r);return e[0]=i*h+s*u,e[1]=-i*u+s*h,e[2]=a*h+l*u,e[3]=-a*u+h*l,e[4]=h*(o-n[0])+u*(c-n[1])+n[0],e[5]=h*(c-n[1])-u*(o-n[0])+n[1],e}function c(e,t,r){var n=r[0],i=r[1];return e[0]=t[0]*n,e[1]=t[1]*i,e[2]=t[2]*n,e[3]=t[3]*i,e[4]=t[4]*n,e[5]=t[5]*i,e}function u(e,t){var r=t[0],n=t[2],i=t[4],a=t[1],o=t[3],s=t[5],l=r*o-a*n;return l?(l=1/l,e[0]=o*l,e[1]=-a*l,e[2]=-n*l,e[3]=r*l,e[4]=(n*s-o*i)*l,e[5]=(a*i-r*s)*l,e):null}r.d(t,{B8:()=>u,C:()=>a,D_:()=>i,Tl:()=>s,e$:()=>l,hs:()=>c,lK:()=>o,vt:()=>n})},59741(e,t,r){var n,i,a="sans-serif",o="12px "+a,s=function(e){var t={};if("u"<typeof JSON)return t;for(var r=0;r<e.length;r++){var n=String.fromCharCode(r+32),i=(e.charCodeAt(r)-20)/100;t[n]=i}return t}("007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N"),l={createCanvas:function(){return"u">typeof document&&document.createElement("canvas")},measureText:function(e,t){if(!n){var r=l.createCanvas();n=r&&r.getContext("2d")}if(n)return i!==t&&(i=n.font=t||o),n.measureText(e);e=e||"",t=t||o;var a=/((?:\d+)?\.?\d*)px/.exec(t),c=a&&+a[1]||12,u=0;if(t.indexOf("mono")>=0)u=c*e.length;else for(var h=0;h<e.length;h++){var p=s[e[h]];u+=null==p?c:p*c}return{width:u}},loadImage:function(e,t,r){var n=new Image;return n.onload=t,n.onerror=r,n.src=e,n},getTime:function(){return Date.now?Date.now():+new Date}};r.d(t,{OH:()=>o,gI:()=>12,yh:()=>l,zs:()=>a})},83470(e,t,r){function n(e,t,r,n){var i=t+1;if(i===r)return 1;if(0>n(e[i++],e[t])){for(;i<r&&0>n(e[i],e[i-1]);)i++;var a=e,o=t,s=i;for(s--;o<s;){var l=a[o];a[o++]=a[s],a[s--]=l}}else for(;i<r&&n(e[i],e[i-1])>=0;)i++;return i-t}function i(e,t,r,n,i){for(n===t&&n++;n<r;n++){for(var a,o=e[n],s=t,l=n;s<l;)0>i(o,e[a=s+l>>>1])?l=a:s=a+1;var c=n-s;switch(c){case 3:e[s+3]=e[s+2];case 2:e[s+2]=e[s+1];case 1:e[s+1]=e[s];break;default:for(;c>0;)e[s+c]=e[s+c-1],c--}e[s]=o}}function a(e,t,r,n,i,a){var o=0,s=0,l=1;if(a(e,t[r+i])>0){for(s=n-i;l<s&&a(e,t[r+i+l])>0;)o=l,(l=(l<<1)+1)<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}else{for(s=i+1;l<s&&0>=a(e,t[r+i-l]);)o=l,(l=(l<<1)+1)<=0&&(l=s);l>s&&(l=s);var c=o;o=i-l,l=i-c}for(o++;o<l;){var u=o+(l-o>>>1);a(e,t[r+u])>0?o=u+1:l=u}return l}function o(e,t,r,n,i,a){var o=0,s=0,l=1;if(0>a(e,t[r+i])){for(s=i+1;l<s&&0>a(e,t[r+i-l]);)o=l,(l=(l<<1)+1)<=0&&(l=s);l>s&&(l=s);var c=o;o=i-l,l=i-c}else{for(s=n-i;l<s&&a(e,t[r+i+l])>=0;)o=l,(l=(l<<1)+1)<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}for(o++;o<l;){var u=o+(l-o>>>1);0>a(e,t[r+u])?l=u:o=u+1}return l}function s(e,t,r,s){r||(r=0),s||(s=e.length);var l=s-r;if(!(l<2)){var c=0;if(l<32){c=n(e,r,s,t),i(e,r,s,r+c,t);return}var u=function(e,t){var r,n,i=7,s=0,l=[];function c(c){var u=r[c],h=n[c],p=r[c+1],d=n[c+1];n[c]=h+d,c===s-3&&(r[c+1]=r[c+2],n[c+1]=n[c+2]),s--;var f=o(e[p],e,u,h,0,t);u+=f,0==(h-=f)||0!==(d=a(e[u+h-1],e,p,d,d-1,t))&&(h<=d?function(r,n,s,c){var u,h,p,d=0;for(d=0;d<n;d++)l[d]=e[r+d];var f=0,m=s,g=r;if(e[g++]=e[m++],0==--c){for(d=0;d<n;d++)e[g+d]=l[f+d];return}if(1===n){for(d=0;d<c;d++)e[g+d]=e[m+d];e[g+c]=l[f];return}for(var A=i;;){u=0,h=0,p=!1;do if(0>t(e[m],l[f])){if(e[g++]=e[m++],h++,u=0,0==--c){p=!0;break}}else if(e[g++]=l[f++],u++,h=0,1==--n){p=!0;break}while((u|h)<A)if(p)break;do{if(0!==(u=o(e[m],l,f,n,0,t))){for(d=0;d<u;d++)e[g+d]=l[f+d];if(g+=u,f+=u,(n-=u)<=1){p=!0;break}}if(e[g++]=e[m++],0==--c){p=!0;break}if(0!==(h=a(l[f],e,m,c,0,t))){for(d=0;d<h;d++)e[g+d]=e[m+d];if(g+=h,m+=h,0==(c-=h)){p=!0;break}}if(e[g++]=l[f++],1==--n){p=!0;break}A--}while(u>=7||h>=7)if(p)break;A<0&&(A=0),A+=2}if((i=A)<1&&(i=1),1===n){for(d=0;d<c;d++)e[g+d]=e[m+d];e[g+c]=l[f]}else if(0===n)throw Error();else for(d=0;d<n;d++)e[g+d]=l[f+d]}(u,h,p,d):function(r,n,s,c){var u=0;for(u=0;u<c;u++)l[u]=e[s+u];var h=r+n-1,p=c-1,d=s+c-1,f=0,m=0;if(e[d--]=e[h--],0==--n){for(f=d-(c-1),u=0;u<c;u++)e[f+u]=l[u];return}if(1===c){for(d-=n,h-=n,m=d+1,f=h+1,u=n-1;u>=0;u--)e[m+u]=e[f+u];e[d]=l[p];return}for(var g=i;;){var A=0,y=0,v=!1;do if(0>t(l[p],e[h])){if(e[d--]=e[h--],A++,y=0,0==--n){v=!0;break}}else if(e[d--]=l[p--],y++,A=0,1==--c){v=!0;break}while((A|y)<g)if(v)break;do{if(0!=(A=n-o(l[p],e,r,n,n-1,t))){for(d-=A,h-=A,n-=A,m=d+1,f=h+1,u=A-1;u>=0;u--)e[m+u]=e[f+u];if(0===n){v=!0;break}}if(e[d--]=l[p--],1==--c){v=!0;break}if(0!=(y=c-a(e[h],l,0,c,c-1,t))){for(d-=y,p-=y,c-=y,m=d+1,f=p+1,u=0;u<y;u++)e[m+u]=l[f+u];if(c<=1){v=!0;break}}if(e[d--]=e[h--],0==--n){v=!0;break}g--}while(A>=7||y>=7)if(v)break;g<0&&(g=0),g+=2}if((i=g)<1&&(i=1),1===c){for(d-=n,h-=n,m=d+1,f=h+1,u=n-1;u>=0;u--)e[m+u]=e[f+u];e[d]=l[p]}else if(0===c)throw Error();else for(f=d-(c-1),u=0;u<c;u++)e[f+u]=l[u]}(u,h,p,d))}return r=[],n=[],{mergeRuns:function(){for(;s>1;){var e=s-2;if(e>=1&&n[e-1]<=n[e]+n[e+1]||e>=2&&n[e-2]<=n[e]+n[e-1])n[e-1]<n[e+1]&&e--;else if(n[e]>n[e+1])break;c(e)}},forceMergeRuns:function(){for(;s>1;){var e=s-2;e>0&&n[e-1]<n[e+1]&&e--,c(e)}},pushRun:function(e,t){r[s]=e,n[s]=t,s+=1}}}(e,t),h=function(e){for(var t=0;e>=32;)t|=1&e,e>>=1;return e+t}(l);do{if((c=n(e,r,s,t))<h){var p=l;p>h&&(p=h),i(e,r,r+p,r+c,t),c=p}u.pushRun(r,c),u.mergeRuns(),l-=c,r+=c}while(0!==l)u.forceMergeRuns()}}r.d(t,{A:()=>s})},85445(e,t,r){r.d(t,{$z:()=>0,XM:()=>2,cw:()=>1,jP:()=>1,r4:()=>0})},98026(e,t,r){var n=r(59741),i=N(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(e,t){return e["[object "+t+"]"]=!0,e},{}),a=N(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(e,t){return e["[object "+t+"Array]"]=!0,e},{}),o=Object.prototype.toString,s=Array.prototype,l=s.forEach,c=s.filter,u=s.slice,h=s.map,p=(function(){}).constructor,d=p?p.prototype:null,f="__proto__",m=2311;function g(){return m>=0x1fffffffffffff&&(m=0),m++}function A(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];"u">typeof console&&console.error.apply(console,e)}function y(e){if(null==e||"object"!=typeof e)return e;var t=e,r=o.call(e);if("[object Array]"===r){if(!e[q]){t=[];for(var n=0,s=e.length;n<s;n++)t[n]=y(e[n])}}else if(a[r]){if(!e[q]){var l=e.constructor;if(l.from)t=l.from(e);else{t=new l(e.length);for(var n=0,s=e.length;n<s;n++)t[n]=e[n]}}}else if(!i[r]&&!e[q]&&!D(e))for(var c in t={},e)e.hasOwnProperty(c)&&c!==f&&(t[c]=y(e[c]));return t}function v(e,t){if(Object.assign)Object.assign(e,t);else for(var r in t)t.hasOwnProperty(r)&&r!==f&&(e[r]=t[r]);return e}function R(e,t,r){e=e||{};for(var n=0;n<r.length;n++){var i=r[n];e[i]=t[i]}return e}function b(e,t,r){for(var n=P(t),i=0,a=n.length;i<a;i++){var o=n[i];(r?null!=t[o]:null==e[o])&&(e[o]=t[o])}return e}function x(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r}return -1}function M(e,t){var r=e.prototype;function n(){}for(var i in n.prototype=t.prototype,e.prototype=new n,r)r.hasOwnProperty(i)&&(e.prototype[i]=r[i]);e.prototype.constructor=e,e.superClass=t}function S(e,t,r){if(e="prototype"in e?e.prototype:e,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(t),i=0;i<n.length;i++){var a=n[i];"constructor"!==a&&(r?null!=t[a]:null==e[a])&&(e[a]=t[a])}else b(e,t,r)}function w(e){return!!e&&"string"!=typeof e&&"number"==typeof e.length}function O(e,t,r){if(e&&t)if(e.forEach&&e.forEach===l)e.forEach(t,r);else if(e.length===+e.length)for(var n=0,i=e.length;n<i;n++)t.call(r,e[n],n,e);else for(var a in e)e.hasOwnProperty(a)&&t.call(r,e[a],a,e)}function L(e,t,r){if(!e)return[];if(!t)return H(e);if(e.map&&e.map===h)return e.map(t,r);for(var n=[],i=0,a=e.length;i<a;i++)n.push(t.call(r,e[i],i,e));return n}function N(e,t,r,n){if(e&&t){for(var i=0,a=e.length;i<a;i++)r=t.call(n,r,e[i],i,e);return r}}function _(e,t,r){if(!e)return[];if(!t)return H(e);if(e.filter&&e.filter===c)return e.filter(t,r);for(var n=[],i=0,a=e.length;i<a;i++)t.call(r,e[i],i,e)&&n.push(e[i]);return n}function T(e,t,r){if(e&&t){for(var n=0,i=e.length;n<i;n++)if(t.call(r,e[n],n,e))return e[n]}}function P(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(r);return t}n.yh.createCanvas;var C=d&&F(d.bind)?d.call.bind(d.bind):function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return function(){return e.apply(t,r.concat(u.call(arguments)))}};function I(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return function(){return e.apply(this,t.concat(u.call(arguments)))}}function k(e){return Array.isArray?Array.isArray(e):"[object Array]"===o.call(e)}function F(e){return"function"==typeof e}function X(e){return"string"==typeof e}function U(e){return"[object String]"===o.call(e)}function W(e){return"number"==typeof e}function V(e){var t=typeof e;return"function"===t||!!e&&"object"===t}function E(e){return!!i[o.call(e)]}function Y(e){return!!a[o.call(e)]}function D(e){return"object"==typeof e&&"number"==typeof e.nodeType&&"object"==typeof e.ownerDocument}function Q(e){return null!=e.colorStops}function $(e){return null!=e.image}function B(e){return e!=e}function Z(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=0,n=e.length;r<n;r++)if(null!=e[r])return e[r]}function K(e,t){return null!=e?e:t}function G(e,t,r){return null!=e?e:null!=t?t:r}function H(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return u.apply(e,t)}function z(e){if("number"==typeof e)return[e,e,e,e];var t=e.length;return 2===t?[e[0],e[1],e[0],e[1]]:3===t?[e[0],e[1],e[2],e[1]]:e}function J(e,t){if(!e)throw Error(t)}function j(e){return null==e?null:"function"==typeof e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var q="__ec_primitive__";function ee(e){e[q]=!0}var et=function(){function e(){this.data={}}return e.prototype.delete=function(e){var t=this.has(e);return t&&delete this.data[e],t},e.prototype.has=function(e){return this.data.hasOwnProperty(e)},e.prototype.get=function(e){return this.data[e]},e.prototype.set=function(e,t){return this.data[e]=t,this},e.prototype.keys=function(){return P(this.data)},e.prototype.forEach=function(e){var t=this.data;for(var r in t)t.hasOwnProperty(r)&&e(t[r],r)},e}(),er="function"==typeof Map,en=function(){function e(t){var r=k(t);this.data=er?new Map:new et;var n=this;function i(e,t){r?n.set(e,t):n.set(t,e)}t instanceof e?t.each(i):t&&O(t,i)}return e.prototype.hasKey=function(e){return this.data.has(e)},e.prototype.get=function(e){return this.data.get(e)},e.prototype.set=function(e,t){return this.data.set(e,t),t},e.prototype.each=function(e,t){this.data.forEach(function(r,n){e.call(t,r,n)})},e.prototype.keys=function(){var e=this.data.keys();return er?Array.from(e):e},e.prototype.removeKey=function(e){this.data.delete(e)},e}();function ei(e){return new en(e)}function ea(e,t){for(var r=new e.constructor(e.length+t.length),n=0;n<e.length;n++)r[n]=e[n];for(var i=e.length,n=0;n<t.length;n++)r[n+i]=t[n];return r}function eo(e,t){var r;if(Object.create)r=Object.create(e);else{var n=function(){};n.prototype=e,r=new n}return t&&v(r,t),r}function es(e){var t=e.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function el(e,t){return e.hasOwnProperty(t)}function ec(){}var eu=180/Math.PI;r.d(t,{$3:()=>el,Ac:()=>R,B:()=>M,Bq:()=>j,C7:()=>Q,En:()=>ee,Et:()=>W,Gv:()=>V,HE:()=>$,HP:()=>P,I6:()=>T,Je:()=>Z,Kg:()=>X,Lh:()=>U,NT:()=>b,Os:()=>g,QX:()=>z,TS:()=>N,Tj:()=>L,Tn:()=>F,WV:()=>G,X$:()=>v,Xj:()=>w,Yp:()=>B,__:()=>O,bZ:()=>K,cF:()=>I,co:()=>S,cy:()=>k,di:()=>H,ed:()=>eo,h1:()=>function e(t,r,n){if(!V(r)||!V(t))return n?y(r):t;for(var i in r)if(r.hasOwnProperty(i)&&i!==f){var a=t[i],o=r[i];!(V(o)&&V(a))||k(o)||k(a)||D(o)||D(a)||E(o)||E(a)||o[q]||a[q]?!n&&i in t||(t[i]=y(r[i])):e(a,o,n)}return t},iq:()=>es,iu:()=>Y,lI:()=>eu,lQ:()=>ec,nt:()=>ei,o8:()=>y,oI:()=>C,pb:()=>_,qh:()=>x,vA:()=>J,vV:()=>A,yB:()=>ea})},83509(e,t,r){function n(e,t){return null==e&&(e=0),null==t&&(t=0),[e,t]}function i(e){return[e[0],e[1]]}function a(e,t,r){return e[0]=t,e[1]=r,e}function o(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e}function s(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e}function l(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e}function c(e,t){var r,n=Math.sqrt((r=t)[0]*r[0]+r[1]*r[1]);return 0===n?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}function u(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var h=function(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])};function p(e,t,r,n){return e[0]=t[0]+n*(r[0]-t[0]),e[1]=t[1]+n*(r[1]-t[1]),e}function d(e,t,r){var n=t[0],i=t[1];return e[0]=r[0]*n+r[2]*i+r[4],e[1]=r[1]*n+r[3]*i+r[5],e}function f(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e}function m(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e}r.d(t,{Cc:()=>p,Io:()=>u,NW:()=>d,S8:()=>c,T9:()=>m,WQ:()=>o,hZ:()=>a,hs:()=>l,jb:()=>s,jk:()=>f,o8:()=>i,oi:()=>h,vt:()=>n,xg:()=>u})},82591(e,t,r){var n=r(15727),i=r(87691);t.A=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="compound",t}return(0,n.C6)(t,e),t.prototype._updatePathDirty=function(){for(var e=this.shape.paths,t=this.shapeChanged(),r=0;r<e.length;r++)t=t||e[r].shapeChanged();t&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var e=this.shape.paths||[],t=this.getGlobalScale(),r=0;r<e.length;r++)e[r].path||e[r].createPathProxy(),e[r].path.setScale(t[0],t[1],e[r].segmentIgnoreThreshold)},t.prototype.buildPath=function(e,t){for(var r=t.paths||[],n=0;n<r.length;n++)r[n].buildPath(e,r[n].shape,!0)},t.prototype.afterBrush=function(){for(var e=this.shape.paths||[],t=0;t<e.length;t++)e[t].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),i.Ay.prototype.getBoundingRect.call(this)},t}(i.Ay)},71519(e,t,r){var n=r(15727),i=r(62454),a=r(29308),o=r(98026),s=r(56448),l="__zr_style_"+Math.round(10*Math.random()),c={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},u={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};c[l]=!0;var h=["z","z2","invisible"],p=["invisible"],d=function(e){var t;function r(t){return e.call(this,t)||this}return(0,n.C6)(r,e),r.prototype._init=function(t){for(var r=(0,o.HP)(t),n=0;n<r.length;n++){var i=r[n];"style"===i?this.useStyle(t[i]):e.prototype.attrKV.call(this,i,t[i])}this.style||this.useStyle({})},r.prototype.beforeBrush=function(e){},r.prototype.afterBrush=function(){},r.prototype.innerBeforeBrush=function(){},r.prototype.innerAfterBrush=function(){},r.prototype.shouldBePainted=function(e,t,r,n){var i,a,o,s=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&(i=this,a=e,o=t,f.copy(i.getBoundingRect()),i.transform&&f.applyTransform(i.transform),m.width=a,m.height=o,!f.intersect(m))||s&&!s[0]&&!s[3])return!1;if(r&&this.__clipPaths&&this.__clipPaths.length){for(var l=0;l<this.__clipPaths.length;++l)if(this.__clipPaths[l].isZeroArea())return!1}if(n&&this.parent)for(var c=this.parent;c;){if(c.ignore)return!1;c=c.parent}return!0},r.prototype.contain=function(e,t){return this.rectContain(e,t)},r.prototype.traverse=function(e,t){e.call(t,this)},r.prototype.rectContain=function(e,t){var r=this.transformCoordToLocal(e,t);return this.getBoundingRect().contain(r[0],r[1])},r.prototype.getPaintRect=function(){var e=this._paintRect;if(!this._paintRect||this.__dirty){var t=this.transform,r=this.getBoundingRect(),n=this.style,i=n.shadowBlur||0,o=n.shadowOffsetX||0,s=n.shadowOffsetY||0;e=this._paintRect||(this._paintRect=new a.Ay(0,0,0,0)),t?a.Ay.applyTransform(e,r,t):e.copy(r),(i||o||s)&&(e.width+=2*i+Math.abs(o),e.height+=2*i+Math.abs(s),e.x=Math.min(e.x,e.x+o-i),e.y=Math.min(e.y,e.y+s-i));var l=this.dirtyRectTolerance;e.isZero()||(e.x=Math.floor(e.x-l),e.y=Math.floor(e.y-l),e.width=Math.ceil(e.width+1+2*l),e.height=Math.ceil(e.height+1+2*l))}return e},r.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new a.Ay(0,0,0,0),this._prevPaintRect.copy(e)):this._prevPaintRect=null},r.prototype.getPrevPaintRect=function(){return this._prevPaintRect},r.prototype.animateStyle=function(e){return this.animate("style",e)},r.prototype.updateDuringAnimation=function(e){"style"===e?this.dirtyStyle():this.markRedraw()},r.prototype.attrKV=function(t,r){"style"!==t?e.prototype.attrKV.call(this,t,r):this.style?this.setStyle(r):this.useStyle(r)},r.prototype.setStyle=function(e,t){return"string"==typeof e?this.style[e]=t:(0,o.X$)(this.style,e),this.dirtyStyle(),this},r.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=s.pO,this._rect&&(this._rect=null)},r.prototype.dirty=function(){this.dirtyStyle()},r.prototype.styleChanged=function(){return!!(this.__dirty&s.pO)},r.prototype.styleUpdated=function(){this.__dirty&=~s.pO},r.prototype.createStyle=function(e){return(0,o.ed)(c,e)},r.prototype.useStyle=function(e){e[l]||(e=this.createStyle(e)),this.style=e,this.dirtyStyle()},r.prototype._useHoverStyle=function(e){this.__hoverStyle=e},r.prototype.isStyleObject=function(e){return e[l]},r.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var r=this._normalState;t.style&&!r.style&&(r.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,r,h)},r.prototype._applyStateObj=function(t,r,n,a,s,l){e.prototype._applyStateObj.call(this,t,r,n,a,s,l);var c,u=!(r&&a),d=this.__inHover===i.yx;if(r&&r.style?s?a?c=r.style:(c=this._mergeStyle(this.createStyle(),n.style),this._mergeStyle(c,r.style)):(c=this._mergeStyle(this.createStyle(),a?this.style:n.style),this._mergeStyle(c,r.style)):u&&(c=n.style),c)if(s){var f=this.style;if(this.style=this.createStyle(u?{}:f),u)for(var m=(0,o.HP)(f),g=0;g<m.length;g++){var A=m[g];A in c&&(c[A]=c[A],this.style[A]=f[A])}for(var y=(0,o.HP)(c),g=0;g<y.length;g++){var A=y[g];this.style[A]=this.style[A]}this._transitionState(t,{style:c},l,this.getAnimationStyleProps())}else d?this._useHoverStyle(c):this.useStyle(c);if(!d)for(var v=this.__inHover?p:h,g=0;g<v.length;g++){var A=v[g];r&&null!=r[A]?this[A]=r[A]:u&&null!=n[A]&&(this[A]=n[A])}},r.prototype._mergeStates=function(t){for(var r,n=e.prototype._mergeStates.call(this,t),i=0;i<t.length;i++){var a=t[i];a.style&&(r=r||{},this._mergeStyle(r,a.style))}return r&&(n.style=r),n},r.prototype._mergeStyle=function(e,t){return(0,o.X$)(e,t),e},r.prototype.getAnimationStyleProps=function(){return u},r.initDefaultProps=void((t=r.prototype).type="displayable",t.invisible=!1,t.z=0,t.z2=0,t.zlevel=0,t.culling=!1,t.cursor="pointer",t.rectHover=!1,t.incremental=0,t._rect=null,t.dirtyRectTolerance=0,t.__dirty=s.M|s.pO),r}(i.Ay),f=new a.Ay(0,0,0,0),m=new a.Ay(0,0,0,0);t.Ay=d,r.d(t,{oN:()=>c,sW:()=>u})},11793(e,t){t.A=function(){function e(e){this.colorStops=e||[]}return e.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},e}()},43870(e,t,r){var n=r(15727),i=r(98026),a=r(62454),o=r(29308),s=function(e){function t(t){var r=e.call(this)||this;return r.isGroup=!0,r._children=[],r.attr(t),r}return(0,n.C6)(t,e),t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var t=this._children,r=0;r<t.length;r++)if(t[r].name===e)return t[r]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(e){return e&&e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),this},t.prototype.addBefore=function(e,t){if(e&&e!==this&&e.parent!==this&&t&&t.parent===this){var r=this._children,n=r.indexOf(t);n>=0&&(r.splice(n,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,t){var r=i.qh(this._children,e);return r>=0&&this.replaceAt(t,r),this},t.prototype.replaceAt=function(e,t){var r=this._children,n=r[t];if(e&&e!==this&&e.parent!==this&&e!==n){r[t]=e,n.parent=null;var i=this.__zr;i&&n.removeSelfFromZr(i),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var t=this.__zr;t&&t!==e.__zr&&e.addSelfToZr(t),t&&t.refresh()},t.prototype.remove=function(e){var t=this.__zr,r=this._children,n=i.qh(r,e);return n<0||(r.splice(n,1),e.parent=null,t&&e.removeSelfFromZr(t),t&&t.refresh()),this},t.prototype.removeAll=function(){for(var e=this._children,t=this.__zr,r=0;r<e.length;r++){var n=e[r];t&&n.removeSelfFromZr(t),n.parent=null}return e.length=0,this},t.prototype.eachChild=function(e,t){for(var r=this._children,n=0;n<r.length;n++){var i=r[n];e.call(t,i,n)}return this},t.prototype.traverse=function(e,t){for(var r=0;r<this._children.length;r++){var n=this._children[r],i=e.call(t,n);n.isGroup&&!i&&n.traverse(e,t)}return this},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var r=0;r<this._children.length;r++)this._children[r].addSelfToZr(t)},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var r=0;r<this._children.length;r++)this._children[r].removeSelfFromZr(t)},t.prototype.getBoundingRect=function(e){for(var t=new o.Ay(0,0,0,0),r=e||this._children,n=[],i=null,a=0;a<r.length;a++){var s=r[a];if(!s.ignore&&!s.invisible){var l=s.getBoundingRect(),c=s.getLocalTransform(n);c?(o.Ay.applyTransform(t,l,c),(i=i||t.clone()).union(t)):(i=i||l.clone()).union(l)}}return i||t},t}(a.Ay);s.prototype.type="group",t.A=s},90540(e,t,r){var n=r(15727),i=r(71519),a=r(29308),o=r(98026),s=(0,o.NT)({x:0,y:0},i.oN),l={style:(0,o.NT)({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},i.sW.style)},c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,n.C6)(t,e),t.prototype.createStyle=function(e){return(0,o.ed)(s,e)},t.prototype._getSize=function(e){var t,r=this.style,n=r[e];if(null!=n)return n;var i=(t=r.image)&&"string"!=typeof t&&t.width&&t.height?r.image:this.__image;if(!i)return 0;var a="width"===e?"height":"width",o=r[a];return null==o?i[e]:i[e]/i[a]*o},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return l},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new a.Ay(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}(i.Ay);c.prototype.type="image",t.Ay=c},29668(e,t,r){var n=r(15727);t.A=function(e){function t(t,r,n,i,a,o){var s=e.call(this,a)||this;return s.x=null==t?0:t,s.y=null==r?0:r,s.x2=null==n?1:n,s.y2=null==i?0:i,s.type="linear",s.global=o||!1,s}return(0,n.C6)(t,e),t}(r(11793).A)},87691(e,t,r){r.d(t,{MW:()=>M,Ay:()=>O});var n=r(15727),i=r(71519),a=r(62454),o=r(15938);function s(e,t,r,n,i,a,o){if(0===i)return!1;var s=0,l=e;if(o>t+i&&o>n+i||o<t-i&&o<n-i||a>e+i&&a>r+i||a<e-i&&a<r-i)return!1;if(e===r)return Math.abs(a-e)<=i/2;s=(t-n)/(e-r);var c=s*a-o+(l=(e*n-r*t)/(e-r));return c*c/(s*s+1)<=i/2*i/2}var l=r(89259),c=2*Math.PI;function u(e){return(e%=c)<0&&(e+=c),e}var h=2*Math.PI;function p(e,t,r,n,i,a){if(a>t&&a>n||a<t&&a<n||n===t)return 0;var o=(a-t)/(n-t),s=n<t?1:-1;(1===o||0===o)&&(s=n<t?.5:-.5);var l=o*(r-e)+e;return l===i?1/0:l>i?s:0}var d=o.A.CMD,f=2*Math.PI,m=[-1,-1,-1],g=[-1,-1];function A(e,t,r,n,i){for(var a,o,c=e.data,A=e.len(),y=0,v=0,R=0,b=0,x=0,M=0;M<A;){var S,w,O,L,N,_,T,P,C,I,k,F,X,U,W=c[M++],V=1===M;switch(W===d.M&&M>1&&!r&&(y+=p(v,R,b,x,n,i)),V&&(v=c[M],R=c[M+1],b=v,x=R),W){case d.M:b=c[M++],x=c[M++],v=b,R=x;break;case d.L:if(r){if(s(v,R,c[M],c[M+1],t,n,i))return!0}else y+=p(v,R,c[M],c[M+1],n,i)||0;v=c[M++],R=c[M++];break;case d.C:if(r){if(S=v,w=R,O=c[M++],L=c[M++],N=c[M++],_=c[M++],T=c[M],P=c[M+1],0!==t&&(!(i>w+t)||!(i>L+t)||!(i>_+t)||!(i>P+t))&&(!(i<w-t)||!(i<L-t)||!(i<_-t)||!(i<P-t))&&(!(n>S+t)||!(n>O+t)||!(n>N+t)||!(n>T+t))&&(!(n<S-t)||!(n<O-t)||!(n<N-t)||!(n<T-t))&&l.Et(S,w,O,L,N,_,T,P,n,i,null)<=t/2)return!0}else y+=function(e,t,r,n,i,a,o,s,c,u){if(u>t&&u>n&&u>a&&u>s||u<t&&u<n&&u<a&&u<s)return 0;var h=l._E(t,n,a,s,u,m);if(0===h)return 0;for(var p=0,d=-1,f=void 0,A=void 0,y=0;y<h;y++){var v=m[y],R=0===v||1===v?.5:1;l.Yb(e,r,i,o,v)<c||(d<0&&(d=l.lX(t,n,a,s,g),g[1]<g[0]&&d>1&&function(){var e=g[0];g[0]=g[1],g[1]=e}(),f=l.Yb(t,n,a,s,g[0]),d>1&&(A=l.Yb(t,n,a,s,g[1]))),2===d?v<g[0]?p+=f<t?R:-R:v<g[1]?p+=A<f?R:-R:p+=s<A?R:-R:v<g[0]?p+=f<t?R:-R:p+=s<f?R:-R)}return p}(v,R,c[M++],c[M++],c[M++],c[M++],c[M],c[M+1],n,i)||0;v=c[M++],R=c[M++];break;case d.Q:if(r){if(C=v,I=R,k=c[M++],F=c[M++],X=c[M],U=c[M+1],0!==t&&(!(i>I+t)||!(i>F+t)||!(i>U+t))&&(!(i<I-t)||!(i<F-t)||!(i<U-t))&&(!(n>C+t)||!(n>k+t)||!(n>X+t))&&(!(n<C-t)||!(n<k-t)||!(n<X-t))&&(0,l.kh)(C,I,k,F,X,U,n,i,null)<=t/2)return!0}else y+=function(e,t,r,n,i,a,o,s){if(s>t&&s>n&&s>a||s<t&&s<n&&s<a)return 0;var c=l.qY(t,n,a,s,m);if(0===c)return 0;var u=l.gC(t,n,a);if(u>=0&&u<=1){for(var h=0,p=l.k3(t,n,a,u),d=0;d<c;d++){var f=0===m[d]||1===m[d]?.5:1,g=l.k3(e,r,i,m[d]);g<o||(m[d]<u?h+=p<t?f:-f:h+=a<p?f:-f)}return h}var f=0===m[0]||1===m[0]?.5:1,g=l.k3(e,r,i,m[0]);return g<o?0:a<t?f:-f}(v,R,c[M++],c[M++],c[M],c[M+1],n,i)||0;v=c[M++],R=c[M++];break;case d.A:var E=c[M++],Y=c[M++],D=c[M++],Q=c[M++],$=c[M++],B=c[M++];M+=1;var Z=!!(1-c[M++]);a=Math.cos($)*D+E,o=Math.sin($)*Q+Y,V?(b=a,x=o):y+=p(v,R,a,o,n,i);var K=(n-E)*Q/D+E;if(r){if(function(e,t,r,n,i,a,o,s,l){if(0===o)return!1;var c=Math.sqrt((s-=e)*s+(l-=t)*l);if(c-o>r||c+o<r)return!1;if(Math.abs(n-i)%h<1e-4)return!0;if(a){var p=n;n=u(i),i=u(p)}else n=u(n),i=u(i);n>i&&(i+=h);var d=Math.atan2(l,s);return d<0&&(d+=h),d>=n&&d<=i||d+h>=n&&d+h<=i}(E,Y,Q,$,$+B,Z,t,K,i))return!0}else y+=function(e,t,r,n,i,a,o,s){if((s-=t)>r||s<-r)return 0;var l=Math.sqrt(r*r-s*s);m[0]=-l,m[1]=l;var c=Math.abs(n-i);if(c<1e-4)return 0;if(c>=f-1e-4){n=0,i=f;var u=a?1:-1;return o>=m[0]+e&&o<=m[1]+e?u:0}if(n>i){var h=n;n=i,i=h}n<0&&(n+=f,i+=f);for(var p=0,d=0;d<2;d++){var g=m[d];if(g+e>o){var A=Math.atan2(s,g),u=a?1:-1;A<0&&(A=f+A),(A>=n&&A<=i||A+f>=n&&A+f<=i)&&(A>Math.PI/2&&A<1.5*Math.PI&&(u=-u),p+=u)}}return p}(E,Y,Q,$,$+B,Z,K,i);v=Math.cos($+B)*D+E,R=Math.sin($+B)*Q+Y;break;case d.R:b=v=c[M++],x=R=c[M++];var G=c[M++],H=c[M++];if(a=b+G,o=x+H,r){if(s(b,x,a,x,t,n,i)||s(a,x,a,o,t,n,i)||s(a,o,b,o,t,n,i)||s(b,o,b,x,t,n,i))return!0}else y+=p(a,x,a,o,n,i),y+=p(b,o,b,x,n,i);break;case d.Z:if(r){if(s(v,R,b,x,t,n,i))return!0}else y+=p(v,R,b,x,n,i);v=b,R=x}}return r||1e-4>Math.abs(R-x)||(y+=p(v,R,b,x,n,i)||0),0!==y}var y=r(98026),v=r(47698),R=r(73098),b=r(56448),x=r(92836),M=(0,y.NT)({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},i.oN),S={style:(0,y.NT)({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},i.sW.style)},w=x.Wx.concat(["invisible","culling","z","z2","zlevel","parent"]),O=function(e){var t;function r(t){return e.call(this,t)||this}return(0,n.C6)(r,e),r.prototype.update=function(){var t=this;e.prototype.update.call(this);var n=this.style;if(n.decal){var i=this._decalEl=this._decalEl||new r;i.buildPath===r.prototype.buildPath&&(i.buildPath=function(e){t.buildPath(e,t.shape)}),i.silent=!0;var a=i.style;for(var o in n)a[o]!==n[o]&&(a[o]=n[o]);a.fill=n.fill?n.decal:null,a.decal=null,a.shadowColor=null,n.strokeFirst&&(a.stroke=null);for(var s=0;s<w.length;++s)i[w[s]]=this[w[s]];i.__dirty|=b.M}else this._decalEl&&(this._decalEl=null)},r.prototype.getDecalElement=function(){return this._decalEl},r.prototype._init=function(t){var r=(0,y.HP)(t);this.shape=this.getDefaultShape();var n=this.getDefaultStyle();n&&this.useStyle(n);for(var i=0;i<r.length;i++){var a=r[i],o=t[a];"style"===a?this.style?(0,y.X$)(this.style,o):this.useStyle(o):"shape"===a?(0,y.X$)(this.shape,o):e.prototype.attrKV.call(this,a,o)}this.style||this.useStyle({})},r.prototype.getDefaultStyle=function(){return null},r.prototype.getDefaultShape=function(){return{}},r.prototype.canBeInsideText=function(){return this.hasFill()},r.prototype.getInsideTextFill=function(){var e=this.style.fill;if("none"!==e){if((0,y.Kg)(e)){var t=(0,v.fN)(e,0);return t>.5?R._S:t>.2?R.tY:R.el}else if(e)return R.el}return R._S},r.prototype.getInsideTextStroke=function(e){var t=this.style.fill;if((0,y.Kg)(t)){var r=this.__zr;if(!!(r&&r.isDarkMode())==(0,v.fN)(e,0)<R.ps)return t}},r.prototype.buildPath=function(e,t,r){},r.prototype.pathUpdated=function(){this.__dirty&=~b.Dl},r.prototype.getUpdatedPathProxy=function(e){return this.path||this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},r.prototype.createPathProxy=function(){this.path=new o.A(!1)},r.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return null!=t&&"none"!==t&&e.lineWidth>0},r.prototype.hasFill=function(){var e=this.style.fill;return null!=e&&"none"!==e},r.prototype.getBoundingRect=function(){var e=this._rect,t=this.style,r=!e;if(r){var n=!1;this.path||(n=!0,this.createPathProxy());var i=this.path;(n||this.__dirty&b.Dl)&&(i.beginPath(),this.buildPath(i,this.shape,!1),this.pathUpdated()),e=i.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var a=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||r){a.copy(e);var o=t.strokeNoScale?this.getLineScale():1,s=t.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;s=Math.max(s,null==l?4:l)}o>1e-10&&(a.width+=s/o,a.height+=s/o,a.x-=s/o/2,a.y-=s/o/2)}return a}return e},r.prototype.contain=function(e,t){var r=this.transformCoordToLocal(e,t),n=this.getBoundingRect(),i=this.style;if(e=r[0],t=r[1],n.contain(e,t)){var a=this.path;if(this.hasStroke()){var o=i.lineWidth,s=i.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(o=Math.max(o,this.strokeContainThreshold)),A(a,o/s,!0,e,t)))return!0}if(this.hasFill())return A(a,0,!1,e,t)}return!1},r.prototype.dirtyShape=function(){this.__dirty|=b.Dl,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},r.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},r.prototype.animateShape=function(e){return this.animate("shape",e)},r.prototype.updateDuringAnimation=function(e){"style"===e?this.dirtyStyle():"shape"===e?this.dirtyShape():this.markRedraw()},r.prototype.attrKV=function(t,r){"shape"===t?this.setShape(r):e.prototype.attrKV.call(this,t,r)},r.prototype.setShape=function(e,t){var r=this.shape;return r||(r=this.shape={}),"string"==typeof e?r[e]=t:(0,y.X$)(r,e),this.dirtyShape(),this},r.prototype.shapeChanged=function(){return!!(this.__dirty&b.Dl)},r.prototype.createStyle=function(e){return(0,y.ed)(M,e)},r.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var r=this._normalState;t.shape&&!r.shape&&(r.shape=(0,y.X$)({},this.shape))},r.prototype._applyStateObj=function(t,r,n,i,o,s){if(e.prototype._applyStateObj.call(this,t,r,n,i,o,s),this.__inHover!==a.yx){var l,c=!(r&&i);if(r&&r.shape?o?i?l=r.shape:(l=(0,y.X$)({},n.shape),(0,y.X$)(l,r.shape)):(l=(0,y.X$)({},i?this.shape:n.shape),(0,y.X$)(l,r.shape)):c&&(l=n.shape),l)if(o){this.shape=(0,y.X$)({},this.shape);for(var u={},h=(0,y.HP)(l),p=0;p<h.length;p++){var d=h[p];"object"==typeof l[d]?this.shape[d]=l[d]:u[d]=l[d]}this._transitionState(t,{shape:u},s)}else this.shape=l,this.dirtyShape()}},r.prototype._mergeStates=function(t){for(var r,n=e.prototype._mergeStates.call(this,t),i=0;i<t.length;i++){var a=t[i];a.shape&&(r=r||{},this._mergeStyle(r,a.shape))}return r&&(n.shape=r),n},r.prototype.getAnimationStyleProps=function(){return S},r.prototype.isZeroArea=function(){return!1},r.extend=function(e){var t=function(t){function r(r){var n=t.call(this,r)||this;return e.init&&e.init.call(n,r),n}return(0,n.C6)(r,t),r.prototype.getDefaultStyle=function(){return(0,y.o8)(e.style)},r.prototype.getDefaultShape=function(){return(0,y.o8)(e.shape)},r}(r);for(var i in e)"function"==typeof e[i]&&(t.prototype[i]=e[i]);return t},r.initDefaultProps=void((t=r.prototype).type="path",t.strokeContainThreshold=5,t.segmentIgnoreThreshold=0,t.subPixelOptimize=!1,t.autoBatch=!1,t.__dirty=b.M|b.pO|b.Dl),r}(i.Ay)},19845(e,t,r){var n=r(15727),i=r(71519),a=r(87691),o=r(98026),s=r(59741),l=r(62406),c=(0,o.NT)({strokeFirst:!0,font:s.OH,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},a.MW),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,n.C6)(t,e),t.prototype.hasStroke=function(){return(0,l.n7)(this.style)},t.prototype.hasFill=function(){var e=this.style.fill;return null!=e&&"none"!==e},t.prototype.createStyle=function(e){return(0,o.ed)(c,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){return this._rect||(this._rect=(0,l.Xf)(this.style)),this._rect},t.initDefaultProps=void(t.prototype.dirtyRectTolerance=10),t}(i.Ay);u.prototype.type="tspan",t.A=u},32322(e,t,r){var n=r(15727),i=r(62406),a=r(19845),o=r(98026),s=r(45558),l=r(90540),c=r(60866),u=r(29308),h=r(71519),p=r(59741),d={fill:"#000"},f={},m={style:(0,o.NT)({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},h.sW.style)},g=function(e){function t(t){var r=e.call(this)||this;return r.type="text",r._children=[],r._defaultStyle=d,r.attr(t),r}return(0,n.C6)(t,e),t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t<this._children.length;t++){var r=this._children[t];r.zlevel=this.zlevel,r.z=this.z,r.z2=this.z2,r.culling=this.culling,r.cursor=this.cursor,r.invisible=this.invisible}},t.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(t){var r=this.innerTransformable;return r?r.getLocalTransform(t):e.prototype.getLocalTransform.call(this,t)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),e.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){var e;this._childCursor=0,M(e=this.style),(0,o.__)(e.rich,M),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var r=0;r<this._children.length;r++)this._children[r].__zr=t},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var r=0;r<this._children.length;r++)this._children[r].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var e=new u.Ay(0,0,0,0),t=this._children,r=[],n=null,i=0;i<t.length;i++){var a=t[i],o=a.getBoundingRect(),s=a.getLocalTransform(r);s?(e.copy(o),e.applyTransform(s),(n=n||e.clone()).union(e)):(n=n||o.clone()).union(o)}this._rect=n||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||d},t.prototype.setTextContent=function(e){},t.prototype._mergeStyle=function(e,t){if(!t)return e;var r=t.rich,n=e.rich||r&&{};return(0,o.X$)(e,t),r&&n?(this._mergeRich(n,r),e.rich=n):n&&(e.rich=n),e},t.prototype._mergeRich=function(e,t){for(var r=(0,o.HP)(t),n=0;n<r.length;n++){var i=r[n];e[i]=e[i]||{},(0,o.X$)(e[i],t[i])}},t.prototype.getAnimationStyleProps=function(){return m},t.prototype._getOrCreateChild=function(e){var t=this._children[this._childCursor];return t&&t instanceof e||(t=new e),this._children[this._childCursor++]=t,t.__zr=this.__zr,t.parent=this,t},t.prototype._updatePlainTexts=function(){var e=this.style,t=e.font||p.OH,r=e.padding,n=this._defaultStyle,o=e.x||0,l=e.y||0,c=e.align||n.align||"left",u=e.verticalAlign||n.verticalAlign||"top";(0,i.Ss)(f,n.overflowRect,o,l,c,u),o=f.baseX,l=f.baseY;var h=L(e),d=(0,i.j_)(h,e,f.outerWidth,f.outerHeight),m=N(e),g=!!e.backgroundColor,A=d.outerHeight,y=d.outerWidth,v=d.lines,R=d.lineHeight;this.isTruncated=!!d.isTruncated;var x=o,M=(0,s.sZ)(l,d.contentHeight,u);if(m||r){var _=(0,s.ll)(o,y,c),T=(0,s.sZ)(l,A,u);m&&this._renderBackground(e,e,_,T,y,A)}M+=R/2,r&&(x=O(o,c,r),"top"===u?M+=r[0]:"bottom"===u&&(M-=r[2]));for(var P=0,C=!1,I=!1,k=w("fill"in e?e.fill:(I=!0,n.fill)),F=S("stroke"in e?e.stroke:g||n.autoStroke&&!I?null:(P=2,C=!0,n.stroke)),X=e.textShadowBlur>0,U=0;U<v.length;U++){var W=this._getOrCreateChild(a.A),V=W.createStyle();W.useStyle(V),V.text=v[U],V.x=x,V.y=M,c&&(V.textAlign=c),V.textBaseline="middle",V.opacity=e.opacity,V.strokeFirst=!0,X&&(V.shadowBlur=e.textShadowBlur||0,V.shadowColor=e.textShadowColor||"transparent",V.shadowOffsetX=e.textShadowOffsetX||0,V.shadowOffsetY=e.textShadowOffsetY||0),V.stroke=F,V.fill=k,F&&(V.lineWidth=e.lineWidth||P,V.lineDash=e.lineDash,V.lineDashOffset=e.lineDashOffset||0),V.font=t,b(V,e),M+=R,W.setBoundingRect((0,i.xu)(V,d.contentWidth,d.calculatedLineHeight,C?0:null))}},t.prototype._updateRichTexts=function(){var e=this.style,t=this._defaultStyle,r=e.align||t.align,n=e.verticalAlign||t.verticalAlign,a=e.x||0,o=e.y||0;(0,i.Ss)(f,t.overflowRect,a,o,r,n),a=f.baseX,o=f.baseY;var l=L(e),c=(0,i.FQ)(l,e,f.outerWidth,f.outerHeight,r),u=c.width,h=c.outerWidth,p=c.outerHeight,d=e.padding;this.isTruncated=!!c.isTruncated;var m=(0,s.ll)(a,h,r),g=(0,s.sZ)(o,p,n),A=m,y=g;d&&(A+=d[3],y+=d[0]);var v=A+u;N(e)&&this._renderBackground(e,e,m,g,h,p);for(var R=!!e.backgroundColor,b=0;b<c.lines.length;b++){for(var x=c.lines[b],M=x.tokens,S=M.length,w=x.lineHeight,O=x.width,_=0,T=A,P=v,C=S-1,I=void 0;_<S&&(!(I=M[_]).align||"left"===I.align);)this._placeToken(I,e,w,y,T,"left",R),O-=I.width,T+=I.width,_++;for(;C>=0&&"right"===(I=M[C]).align;)this._placeToken(I,e,w,y,P,"right",R),O-=I.width,P-=I.width,C--;for(T+=(u-(T-A)-(v-P)-O)/2;_<=C;)I=M[_],this._placeToken(I,e,w,y,T+I.width/2,"center",R),T+=I.width,_++;y+=w}},t.prototype._placeToken=function(e,t,r,n,s,l,c){var u=t.rich[e.styleName]||{};u.text=e.text;var h=e.verticalAlign,d=n+r/2;"top"===h?d=n+e.height/2:"bottom"===h&&(d=n+r-e.height/2),!e.isLineHolder&&N(u)&&this._renderBackground(u,t,"right"===l?s-e.width:"center"===l?s-e.width/2:s,d-e.height/2,e.width,e.height);var f=!!u.backgroundColor,m=e.textPadding;m&&(s=O(s,l,m),d-=e.height/2-m[0]-e.innerHeight/2);var g=this._getOrCreateChild(a.A),A=g.createStyle();g.useStyle(A);var y=this._defaultStyle,v=!1,R=0,x=!1,M=w("fill"in u?u.fill:"fill"in t?t.fill:(v=!0,y.fill)),L=S("stroke"in u?u.stroke:"stroke"in t?t.stroke:f||c||y.autoStroke&&!v?null:(R=2,x=!0,y.stroke)),_=u.textShadowBlur>0||t.textShadowBlur>0;A.text=e.text,A.x=s,A.y=d,_&&(A.shadowBlur=u.textShadowBlur||t.textShadowBlur||0,A.shadowColor=u.textShadowColor||t.textShadowColor||"transparent",A.shadowOffsetX=u.textShadowOffsetX||t.textShadowOffsetX||0,A.shadowOffsetY=u.textShadowOffsetY||t.textShadowOffsetY||0),A.textAlign=l,A.textBaseline="middle",A.font=e.font||p.OH,A.opacity=(0,o.WV)(u.opacity,t.opacity,1),b(A,u),L&&(A.lineWidth=(0,o.WV)(u.lineWidth,t.lineWidth,R),A.lineDash=(0,o.bZ)(u.lineDash,t.lineDash),A.lineDashOffset=t.lineDashOffset||0,A.stroke=L),M&&(A.fill=M),g.setBoundingRect((0,i.xu)(A,e.contentWidth,e.contentHeight,x?0:null))},t.prototype._renderBackground=function(e,t,r,n,i,a){var s,u,h=e.backgroundColor,p=e.borderWidth,d=e.borderColor,f=h&&h.image,m=h&&!f,g=e.borderRadius,A=this;if(m||e.lineHeight||p&&d){(s=this._getOrCreateChild(c.A)).useStyle(s.createStyle()),s.style.fill=null;var y=s.shape;y.x=r,y.y=n,y.width=i,y.height=a,y.r=g,s.dirtyShape()}if(m){var v=s.style;v.fill=h||null,v.fillOpacity=(0,o.bZ)(e.fillOpacity,1)}else if(f){(u=this._getOrCreateChild(l.Ay)).onload=function(){A.dirtyStyle()};var R=u.style;R.image=h.image,R.x=r,R.y=n,R.width=i,R.height=a}if(p&&d){var v=s.style;v.lineWidth=p,v.stroke=d,v.strokeOpacity=(0,o.bZ)(e.strokeOpacity,1),v.lineDash=e.borderDash,v.lineDashOffset=e.borderDashOffset||0,s.strokeContainThreshold=0,s.hasFill()&&s.hasStroke()&&(v.strokeFirst=!0,v.lineWidth*=2)}var b=(s||u).style;b.shadowBlur=e.shadowBlur||0,b.shadowColor=e.shadowColor||"transparent",b.shadowOffsetX=e.shadowOffsetX||0,b.shadowOffsetY=e.shadowOffsetY||0,b.opacity=(0,o.WV)(e.opacity,t.opacity,1)},t.makeFont=function(e){var t="";return x(e)&&(t=[e.fontStyle,e.fontWeight,R(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),t&&(0,o.Bq)(t)||e.textFont||e.font},t}(h.Ay),A={left:!0,right:1,center:1},y={top:1,bottom:1,middle:1},v=["fontStyle","fontWeight","fontSize","fontFamily"];function R(e){return"string"==typeof e&&(-1!==e.indexOf("px")||-1!==e.indexOf("rem")||-1!==e.indexOf("em"))?e:isNaN(+e)?p.gI+"px":e+"px"}function b(e,t){for(var r=0;r<v.length;r++){var n=v[r],i=t[n];null!=i&&(e[n]=i)}}function x(e){return null!=e.fontSize||e.fontFamily||e.fontWeight}function M(e){if(e){e.font=g.makeFont(e);var t=e.align;"middle"===t&&(t="center"),e.align=null==t||A[t]?t:"left";var r=e.verticalAlign;"center"===r&&(r="middle"),e.verticalAlign=null==r||y[r]?r:"top",e.padding&&(e.padding=(0,o.QX)(e.padding))}}function S(e,t){return null==e||t<=0||"transparent"===e||"none"===e?null:e.image||e.colorStops?"#000":e}function w(e){return null==e||"none"===e?null:e.image||e.colorStops?"#000":e}function O(e,t,r){return"right"===t?e-r[1]:"center"===t?e+r[3]/2-r[1]/2:e+r[3]}function L(e){var t=e.text;return null!=t&&(t+=""),t}function N(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}t.Ay=g,r.d(t,{I5:()=>R,XE:()=>x})},56448(e,t,r){r.d(t,{Dl:()=>4,M:()=>1,pO:()=>2})},12191(e,t,r){var n=r(60501),i=r(59741),a=new n.Ay(50);function o(e){if("string"!=typeof e)return e;var t=a.get(e);return t&&t.image}function s(e,t,r,n,o){if(!e)return t;if("string"!=typeof e)return e;if(t&&t.__zrImageSrc===e||!r)return t;var s=a.get(e),u={hostEl:r,cb:n,cbPayload:o};return s?c(t=s.image)||s.pending.push(u):((t=i.yh.loadImage(e,l,l)).__zrImageSrc=e,a.put(e,t.__cachedImgObj={image:t,pending:[u]})),t}function l(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var r=e.pending[t],n=r.cb;n&&n(this,r.cbPayload),r.hostEl.dirty()}e.pending.length=0}function c(e){return e&&e.width&&e.height}r.d(t,{OD:()=>s,SR:()=>o,xA:()=>c})},62406(e,t,r){var n=r(12191),i=r(98026),a=r(45558),o=r(29308),s=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function l(e,t,r,n){n=n||{};var o=(0,i.X$)({},n);r=(0,i.bZ)(r,"..."),o.maxIterations=(0,i.bZ)(n.maxIterations,2);var s=o.minChar=(0,i.bZ)(n.minChar,0),l=o.fontMeasureInfo=(0,a.Qw)(t),c=l.asciiCharWidth;o.placeholder=(0,i.bZ)(n.placeholder,"");for(var u=e=Math.max(0,e-1),h=0;h<s&&u>=c;h++)u-=c;var p=(0,a.l8)(l,r);return p>u&&(r="",p=0),u=e-p,o.ellipsis=r,o.ellipsisWidth=p,o.contentWidth=u,o.containerWidth=e,o}function c(e,t,r){var n=r.containerWidth,i=r.contentWidth,o=r.fontMeasureInfo;if(!n){e.textLine="",e.isTruncated=!1;return}var s=(0,a.l8)(o,t);if(s<=n){e.textLine=t,e.isTruncated=!1;return}for(var l=0;;l++){if(s<=i||l>=r.maxIterations){t+=r.ellipsis;break}var c=0===l?function(e,t,r){for(var n=0,i=0,o=e.length;i<o&&n<t;i++)n+=(0,a.JK)(r,e.charCodeAt(i));return i}(t,i,o):s>0?Math.floor(t.length*i/s):0;t=t.substr(0,c),s=(0,a.l8)(o,t)}""===t&&(t=r.placeholder),e.textLine=t,e.isTruncated=!0}function u(e,t,r,n){var o,s=b(e),u=t.overflow,h=t.padding,p=h?h[1]+h[3]:0,d=h?h[0]+h[2]:0,f=t.font,m=(0,a.ks)(f),g=(0,i.bZ)(t.lineHeight,m),y="truncate"===t.lineOverflow,v=!1,R=t.width;null==R&&null!=r&&(R=r-p);var x=t.height;null==x&&null!=n&&(x=n-d);var M=(o=null!=R&&("break"===u||"breakAll"===u)?s?A(s,t.font,R,"breakAll"===u,0).lines:[]:s?s.split("\n"):[]).length*g;if(null==x&&(x=M),M>x&&y){var S=Math.floor(x/g);v=v||o.length>S,M=(o=o.slice(0,S)).length*g}if(s&&"truncate"===u&&null!=R)for(var w=l(R,f,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),O={},L=0;L<o.length;L++)c(O,o[L],w),o[L]=O.textLine,v=v||O.isTruncated;for(var N=x,_=0,T=(0,a.Qw)(f),L=0;L<o.length;L++)_=Math.max((0,a.l8)(T,o[L]),_);null==R&&(R=_);var P=R;return N+=d,{lines:o,height:x,outerWidth:P+=p,outerHeight:N,lineHeight:g,calculatedLineHeight:m,contentWidth:_,contentHeight:M,width:R,isTruncated:v}}var h=function(){},p=function(e){this.tokens=[],e&&(this.tokens=e)},d=function(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1};function f(e,t,r,o,u){var h,p=new d,f=b(e);if(!f)return p;var g=t.padding,A=g?g[1]+g[3]:0,y=g?g[0]+g[2]:0,v=t.width;null==v&&null!=r&&(v=r-A);var R=t.height;null==R&&null!=o&&(R=o-y);for(var x=t.overflow,M=("break"===x||"breakAll"===x)&&null!=v?{width:v,accumWidth:0,breakAll:"breakAll"===x}:null,S=s.lastIndex=0;null!=(h=s.exec(f));){var w=h.index;w>S&&m(p,f.substring(S,w),t,M),m(p,h[2],t,M,h[1]),S=s.lastIndex}S<f.length&&m(p,f.substring(S,f.length),t,M);var O=[],L=0,N=0,_="truncate"===x,T="truncate"===t.lineOverflow,P={};function C(e,t,r){e.width=t,e.lineHeight=r,L+=r,N=Math.max(N,t)}l:for(var I=0;I<p.lines.length;I++){for(var k=p.lines[I],F=0,X=0,U=0;U<k.tokens.length;U++){var W=k.tokens[U],V=W.styleName&&t.rich[W.styleName]||{},E=W.textPadding=V.padding,Y=E?E[1]+E[3]:0,D=W.font=V.font||t.font;W.contentHeight=(0,a.ks)(D);var Q=(0,i.bZ)(V.height,W.contentHeight);if(W.innerHeight=Q,E&&(Q+=E[0]+E[2]),W.height=Q,W.lineHeight=(0,i.WV)(V.lineHeight,t.lineHeight,Q),W.align=V&&V.align||u,W.verticalAlign=V&&V.verticalAlign||"middle",T&&null!=R&&L+W.lineHeight>R){var $=p.lines.length;U>0?(k.tokens=k.tokens.slice(0,U),C(k,X,F),p.lines=p.lines.slice(0,I+1)):p.lines=p.lines.slice(0,I),p.isTruncated=p.isTruncated||p.lines.length<$;break l}var B=V.width,Z=null==B||"auto"===B;if("string"==typeof B&&"%"===B.charAt(B.length-1))W.percentWidth=B,O.push(W),W.contentWidth=(0,a.l8)((0,a.Qw)(D),W.text);else{if(Z){var K=V.backgroundColor,G=K&&K.image;G&&(G=n.SR(G),n.xA(G)&&(W.width=Math.max(W.width,G.width*Q/G.height)))}var H=_&&null!=v?v-X:null;null!=H&&H<W.width?!Z||H<Y?(W.text="",W.width=W.contentWidth=0):(!function(e,t,r,n,i,a){if(!r){e.text="",e.isTruncated=!1;return}var o=(t+"").split("\n");a=l(r,n,i,a);for(var s=!1,u={},h=0,p=o.length;h<p;h++)c(u,o[h],a),o[h]=u.textLine,s=s||u.isTruncated;e.text=o.join("\n"),e.isTruncated=s}(P,W.text,H-Y,D,t.ellipsis,{minChar:t.truncateMinChar}),W.text=P.text,p.isTruncated=p.isTruncated||P.isTruncated,W.width=W.contentWidth=(0,a.l8)((0,a.Qw)(D),W.text)):W.contentWidth=(0,a.l8)((0,a.Qw)(D),W.text)}W.width+=Y,X+=W.width,V&&(F=Math.max(F,W.lineHeight))}C(k,X,F)}p.outerWidth=p.width=(0,i.bZ)(v,N),p.outerHeight=p.height=(0,i.bZ)(R,L),p.contentHeight=L,p.contentWidth=N,p.outerWidth+=A,p.outerHeight+=y;for(var I=0;I<O.length;I++){var W=O[I],z=W.percentWidth;W.width=parseInt(z,10)/100*p.width}return p}function m(e,t,r,n,i){var o,s,l=""===t,c=i&&r.rich[i]||{},u=e.lines,d=c.font||r.font,f=!1;if(n){var m=c.padding,g=m?m[1]+m[3]:0;if(null!=c.width&&"auto"!==c.width){var y=(0,a.lo)(c.width,n.width)+g;u.length>0&&y+n.accumWidth>n.width&&(o=t.split("\n"),f=!0),n.accumWidth=y}else{var v=A(t,d,n.width,n.breakAll,n.accumWidth);n.accumWidth=v.accumWidth+g,s=v.linesWidths,o=v.lines}}o||(o=t.split("\n"));for(var R=(0,a.Qw)(d),b=0;b<o.length;b++){var x=o[b],M=new h;if(M.styleName=i,M.text=x,M.isLineHolder=!x&&!l,"number"==typeof c.width?M.width=c.width:M.width=s?s[b]:(0,a.l8)(R,x),b||f)u.push(new p([M]));else{var S=(u[u.length-1]||(u[0]=new p)).tokens,w=S.length;1===w&&S[0].isLineHolder?S[0]=M:(x||!w||l)&&S.push(M)}}}var g=(0,i.TS)(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function A(e,t,r,n,i){for(var o=[],s=[],l="",c="",u=0,h=0,p=(0,a.Qw)(t),d=0;d<e.length;d++){var f=e.charAt(d);if("\n"===f){c&&(l+=c,h+=u),o.push(l),s.push(h),l="",c="",u=0,h=0;continue}var m=(0,a.JK)(p,f.charCodeAt(0)),A=!n&&!function(e){var t;return(!((t=e.charCodeAt(0))>=32)||!(t<=591))&&(!(t>=880)||!(t<=4351))&&(!(t>=4608)||!(t<=5119))&&(!(t>=7680)||!(t<=8303))||!!g[e]}(f);if(o.length?h+m>r:i+h+m>r){h?(l||c)&&(A?(l||(l=c,c="",h=u=0),o.push(l),s.push(h-u),c+=f,u+=m,l="",h=u):(c&&(l+=c,c="",u=0),o.push(l),s.push(h),l=f,h=m)):A?(o.push(c),s.push(u),c=f,u=m):(o.push(f),s.push(m));continue}h+=m,A?(c+=f,u+=m):(c&&(l+=c,c="",u=0),l+=f)}return c&&(l+=c),l&&(o.push(l),s.push(h)),1===o.length&&(h+=i),{accumWidth:h,lines:o,linesWidths:s}}function y(e,t,r,n,i,s){if(e.baseX=r,e.baseY=n,e.outerWidth=e.outerHeight=null,t){var l=2*t.width,c=2*t.height;o.Ay.set(v,(0,a.ll)(r,l,i),(0,a.sZ)(n,c,s),l,c),o.Ay.intersect(t,v,null,R);var u=R.outIntersectRect;e.outerWidth=u.width,e.outerHeight=u.height,e.baseX=(0,a.ll)(u.x,u.width,i,!0),e.baseY=(0,a.sZ)(u.y,u.height,s,!0)}}var v=new o.Ay(0,0,0,0),R={outIntersectRect:{},clamp:!0};function b(e){return null!=e?e+="":e=""}function x(e){var t=b(e.text),r=e.font;return M(e,(0,a.l8)((0,a.Qw)(r),t),(0,a.ks)(r),null)}function M(e,t,r,n){var i=new o.Ay((0,a.ll)(e.x||0,t,e.textAlign),(0,a.sZ)(e.y||0,r,e.textBaseline),t,r),s=null!=n?n:S(e)?e.lineWidth:0;return s>0&&(i.x-=s/2,i.y-=s/2,i.width+=s,i.height+=s),i}function S(e){var t=e.stroke;return null!=t&&"none"!==t&&e.lineWidth>0}r.d(t,{FQ:()=>f,Ss:()=>y,Xf:()=>x,j_:()=>u,n7:()=>S,xu:()=>M})},94825(e,t,r){r.d(t,{U:()=>i});var n=r(83509);function i(e,t,r){var i=t.smooth,a=t.points;if(a&&a.length>=2){if(i){var o=function(e,t,r,i){var a,o,s,l,c=[],u=[],h=[],p=[];if(i){s=[1/0,1/0],l=[-1/0,-1/0];for(var d=0,f=e.length;d<f;d++)(0,n.jk)(s,s,e[d]),(0,n.T9)(l,l,e[d]);(0,n.jk)(s,s,i[0]),(0,n.T9)(l,l,i[1])}for(var d=0,f=e.length;d<f;d++){var m=e[d];if(r)a=e[d?d-1:f-1],o=e[(d+1)%f];else if(0===d||d===f-1){c.push((0,n.o8)(e[d]));continue}else a=e[d-1],o=e[d+1];(0,n.jb)(u,o,a),(0,n.hs)(u,u,t);var g=(0,n.Io)(m,a),A=(0,n.Io)(m,o),y=g+A;0!==y&&(g/=y,A/=y),(0,n.hs)(h,u,-g),(0,n.hs)(p,u,A);var v=(0,n.WQ)([],m,h),R=(0,n.WQ)([],m,p);i&&((0,n.T9)(v,v,s),(0,n.jk)(v,v,l),(0,n.T9)(R,R,s),(0,n.jk)(R,R,l)),c.push(v),c.push(R)}return r&&c.push(c.shift()),c}(a,i,r,t.smoothConstraint);e.moveTo(a[0][0],a[0][1]);for(var s=a.length,l=0;l<(r?s:s-1);l++){var c=o[2*l],u=o[2*l+1],h=a[(l+1)%s];e.bezierCurveTo(c[0],c[1],u[0],u[1],h[0],h[1])}}else{e.moveTo(a[0][0],a[0][1]);for(var l=1,p=a.length;l<p;l++)e.lineTo(a[l][0],a[l][1])}r&&e.closePath()}}},14865(e,t,r){var n=Math.round;function i(e,t,r){if(t){var i=t.x1,a=t.x2,s=t.y1,l=t.y2;e.x1=i,e.x2=a,e.y1=s,e.y2=l;var c=r&&r.lineWidth;return c&&(n(2*i)===n(2*a)&&(e.x1=e.x2=o(i,c,!0)),n(2*s)===n(2*l)&&(e.y1=e.y2=o(s,c,!0))),e}}function a(e,t,r){if(t){var n=t.x,i=t.y,a=t.width,s=t.height;e.x=n,e.y=i,e.width=a,e.height=s;var l=r&&r.lineWidth;return l&&(e.x=o(n,l,!0),e.y=o(i,l,!0),e.width=Math.max(o(n+a,l,!1)-e.x,+(0!==a)),e.height=Math.max(o(i+s,l,!1)-e.y,+(0!==s))),e}}function o(e,t,r){if(!t)return e;var i=n(2*e);return(i+n(t))%2==0?i/2:(i+(r?1:-1))/2}r.d(t,{M7:()=>o,Op:()=>a,eB:()=>i})},43471(e,t,r){var n=r(15727),i=r(87691),a=function(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},o=function(e){function t(t){return e.call(this,t)||this}return(0,n.C6)(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new a},t.prototype.buildPath=function(e,t){var r=t.cx,n=t.cy,i=Math.max(t.r,0),a=t.startAngle,o=t.endAngle,s=t.clockwise,l=Math.cos(a),c=Math.sin(a);e.moveTo(l*i+r,c*i+n),e.arc(r,n,i,a,o,!s)},t}(i.Ay);o.prototype.type="arc",t.A=o},31571(e,t,r){var n=r(15727),i=r(87691),a=function(){this.cx=0,this.cy=0,this.r=0},o=function(e){function t(t){return e.call(this,t)||this}return(0,n.C6)(t,e),t.prototype.getDefaultShape=function(){return new a},t.prototype.buildPath=function(e,t){e.moveTo(t.cx+t.r,t.cy),e.arc(t.cx,t.cy,t.r,0,2*Math.PI)},t}(i.Ay);o.prototype.type="circle",t.A=o},82861(e,t,r){var n=r(15727),i=r(87691),a=r(14865),o={},s=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1},l=function(e){function t(t){return e.call(this,t)||this}return(0,n.C6)(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new s},t.prototype.buildPath=function(e,t){if(this.subPixelOptimize){var r,n,i,s,l=(0,a.eB)(o,t,this.style);r=l.x1,n=l.y1,i=l.x2,s=l.y2}else r=t.x1,n=t.y1,i=t.x2,s=t.y2;var c=t.percent;0!==c&&(e.moveTo(r,n),c<1&&(i=r*(1-c)+i*c,s=n*(1-c)+s*c),e.lineTo(i,s))},t.prototype.pointAt=function(e){var t=this.shape;return[t.x1*(1-e)+t.x2*e,t.y1*(1-e)+t.y2*e]},t}(i.Ay);l.prototype.type="line",t.A=l},52505(e,t,r){var n=r(15727),i=r(87691),a=r(94825),o=function(){this.points=null,this.smooth=0,this.smoothConstraint=null},s=function(e){function t(t){return e.call(this,t)||this}return(0,n.C6)(t,e),t.prototype.getDefaultShape=function(){return new o},t.prototype.buildPath=function(e,t){a.U(e,t,!0)},t}(i.Ay);s.prototype.type="polygon",t.A=s},39195(e,t,r){var n=r(15727),i=r(87691),a=r(94825),o=function(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null},s=function(e){function t(t){return e.call(this,t)||this}return(0,n.C6)(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new o},t.prototype.buildPath=function(e,t){a.U(e,t,!1)},t}(i.Ay);s.prototype.type="polyline",t.A=s},60866(e,t,r){r.d(t,{A:()=>c});var n=r(15727),i=r(87691),a=r(14865),o=function(){this.x=0,this.y=0,this.width=0,this.height=0},s={},l=function(e){function t(t){return e.call(this,t)||this}return(0,n.C6)(t,e),t.prototype.getDefaultShape=function(){return new o},t.prototype.buildPath=function(e,t){if(this.subPixelOptimize){var r,n,i,o,l,c,u,h,p,d,f,m,g,A,y,v=(0,a.Op)(s,t,this.style);m=v.x,g=v.y,A=v.width,y=v.height,v.r=t.r,t=v}else m=t.x,g=t.y,A=t.width,y=t.height;t.r?(u=(r=t).x,h=r.y,p=r.width,d=r.height,f=r.r,p<0&&(u+=p,p=-p),d<0&&(h+=d,d=-d),"number"==typeof f?n=i=o=l=f:f instanceof Array?1===f.length?n=i=o=l=f[0]:2===f.length?(n=o=f[0],i=l=f[1]):3===f.length?(n=f[0],i=l=f[1],o=f[2]):(n=f[0],i=f[1],o=f[2],l=f[3]):n=i=o=l=0,n+i>p&&(c=n+i,n*=p/c,i*=p/c),o+l>p&&(c=o+l,o*=p/c,l*=p/c),i+o>d&&(c=i+o,i*=d/c,o*=d/c),n+l>d&&(c=n+l,n*=d/c,l*=d/c),e.moveTo(u+n,h),e.lineTo(u+p-i,h),0!==i&&e.arc(u+p-i,h+i,i,-Math.PI/2,0),e.lineTo(u+p,h+d-o),0!==o&&e.arc(u+p-o,h+d-o,o,0,Math.PI/2),e.lineTo(u+l,h+d),0!==l&&e.arc(u+l,h+d-l,l,Math.PI/2,Math.PI),e.lineTo(u,h+n),0!==n&&e.arc(u+n,h+n,n,Math.PI,1.5*Math.PI),e.closePath()):e.rect(m,g,A,y)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(i.Ay);l.prototype.type="rect";var c=l},42933(e,t,r){var n=r(15727),i=r(87691),a=function(){this.cx=0,this.cy=0,this.r=0,this.r0=0},o=function(e){function t(t){return e.call(this,t)||this}return(0,n.C6)(t,e),t.prototype.getDefaultShape=function(){return new a},t.prototype.buildPath=function(e,t){var r=t.cx,n=t.cy,i=2*Math.PI;e.moveTo(r+t.r,n),e.arc(r,n,t.r,0,i,!1),e.moveTo(r+t.r0,n),e.arc(r,n,t.r0,0,i,!0)},t}(i.Ay);o.prototype.type="ring",t.A=o},13818(e,t,r){r.d(t,{A:()=>v});var n=r(15727),i=r(87691),a=r(98026),o=Math.PI,s=2*o,l=Math.sin,c=Math.cos,u=Math.acos,h=Math.atan2,p=Math.abs,d=Math.sqrt,f=Math.max,m=Math.min;function g(e,t,r,n,i,a,o){var s=e-r,l=t-n,c=(o?a:-a)/d(s*s+l*l),u=c*l,h=-c*s,p=e+u,m=t+h,g=r+u,A=n+h,y=(p+g)/2,v=(m+A)/2,R=g-p,b=A-m,x=R*R+b*b,M=i-a,S=p*A-g*m,w=(b<0?-1:1)*d(f(0,M*M*x-S*S)),O=(S*b-R*w)/x,L=(-S*R-b*w)/x,N=(S*b+R*w)/x,_=(-S*R+b*w)/x,T=O-y,P=L-v,C=N-y,I=_-v;return T*T+P*P>C*C+I*I&&(O=N,L=_),{cx:O,cy:L,x0:-u,y0:-h,x1:O*(i/M-1),y1:L*(i/M-1)}}var A=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0},y=function(e){function t(t){return e.call(this,t)||this}return(0,n.C6)(t,e),t.prototype.getDefaultShape=function(){return new A},t.prototype.buildPath=function(e,t){!function(e,t){var r,n=f(t.r,0),i=f(t.r0||0,0),A=n>0,y=i>0;if(A||y){if(A||(n=i,i=0),i>n){var v=n;n=i,i=v}var R=t.startAngle,b=t.endAngle;if(!(isNaN(R)||isNaN(b))){var x=t.cx,M=t.cy,S=!!t.clockwise,w=p(b-R),O=w>s&&w%s;if(O>1e-4&&(w=O),n>1e-4)if(w>s-1e-4)e.moveTo(x+n*c(R),M+n*l(R)),e.arc(x,M,n,R,b,!S),i>1e-4&&(e.moveTo(x+i*c(b),M+i*l(b)),e.arc(x,M,i,b,R,S));else{var L=void 0,N=void 0,_=void 0,T=void 0,P=void 0,C=void 0,I=void 0,k=void 0,F=void 0,X=void 0,U=void 0,W=void 0,V=void 0,E=void 0,Y=void 0,D=void 0,Q=n*c(R),$=n*l(R),B=i*c(b),Z=i*l(b),K=w>1e-4;if(K){var G=t.cornerRadius;G&&(L=(r=function(e){var t;if((0,a.cy)(e)){var r=e.length;if(!r)return e;t=1===r?[e[0],e[0],0,0]:2===r?[e[0],e[0],e[1],e[1]]:3===r?e.concat(e[2]):e}else t=[e,e,e,e];return t}(G))[0],N=r[1],_=r[2],T=r[3]);var H=p(n-i)/2;if(P=m(H,_),C=m(H,T),I=m(H,L),k=m(H,N),U=F=f(P,C),W=X=f(I,k),(F>1e-4||X>1e-4)&&(V=n*c(b),E=n*l(b),Y=i*c(R),D=i*l(R),w<o)){var z=function(e,t,r,n,i,a,o,s){var l=r-e,c=n-t,u=o-i,h=s-a,p=h*l-u*c;if(!(p*p<1e-4))return p=(u*(t-a)-h*(e-i))/p,[e+p*l,t+p*c]}(Q,$,Y,D,V,E,B,Z);if(z){var J=Q-z[0],j=$-z[1],q=V-z[0],ee=E-z[1],et=1/l(u((J*q+j*ee)/(d(J*J+j*j)*d(q*q+ee*ee)))/2),er=d(z[0]*z[0]+z[1]*z[1]);U=m(F,(n-er)/(et+1)),W=m(X,(i-er)/(et-1))}}}if(K)if(U>1e-4){var en=m(_,U),ei=m(T,U),ea=g(Y,D,Q,$,n,en,S),eo=g(V,E,B,Z,n,ei,S);e.moveTo(x+ea.cx+ea.x0,M+ea.cy+ea.y0),U<F&&en===ei?e.arc(x+ea.cx,M+ea.cy,U,h(ea.y0,ea.x0),h(eo.y0,eo.x0),!S):(en>0&&e.arc(x+ea.cx,M+ea.cy,en,h(ea.y0,ea.x0),h(ea.y1,ea.x1),!S),e.arc(x,M,n,h(ea.cy+ea.y1,ea.cx+ea.x1),h(eo.cy+eo.y1,eo.cx+eo.x1),!S),ei>0&&e.arc(x+eo.cx,M+eo.cy,ei,h(eo.y1,eo.x1),h(eo.y0,eo.x0),!S))}else e.moveTo(x+Q,M+$),e.arc(x,M,n,R,b,!S);else e.moveTo(x+Q,M+$);if(i>1e-4&&K)if(W>1e-4){var en=m(L,W),ei=m(N,W),ea=g(B,Z,V,E,i,-ei,S),eo=g(Q,$,Y,D,i,-en,S);e.lineTo(x+ea.cx+ea.x0,M+ea.cy+ea.y0),W<X&&en===ei?e.arc(x+ea.cx,M+ea.cy,W,h(ea.y0,ea.x0),h(eo.y0,eo.x0),!S):(ei>0&&e.arc(x+ea.cx,M+ea.cy,ei,h(ea.y0,ea.x0),h(ea.y1,ea.x1),!S),e.arc(x,M,i,h(ea.cy+ea.y1,ea.cx+ea.x1),h(eo.cy+eo.y1,eo.cx+eo.x1),S),en>0&&e.arc(x+eo.cx,M+eo.cy,en,h(eo.y1,eo.x1),h(eo.y0,eo.x0),!S))}else e.lineTo(x+B,M+Z),e.arc(x,M,i,b,R,S);else e.lineTo(x+B,M+Z)}else e.moveTo(x,M);e.closePath()}}}(e,t)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(i.Ay);y.prototype.type="sector";var v=y},3455(e,t,r){var n=r(98026),i=r(47698),a=r(49705).hp,o=Math.round;function s(e){var t;if(e&&"transparent"!==e){if("string"==typeof e&&e.indexOf("rgba")>-1){var r=(0,i.qg)(e);r&&(e="rgb("+r[0]+","+r[1]+","+r[2]+")",t=r[3])}}else e="none";return{color:e,opacity:null==t?1:t}}function l(e){return e<1e-4&&e>-1e-4}function c(e){return o(1e3*e)/1e3}function u(e){return o(1e4*e)/1e4}function h(e){return"matrix("+c(e[0])+","+c(e[1])+","+c(e[2])+","+c(e[3])+","+u(e[4])+","+u(e[5])+")"}var p={left:"start",right:"end",center:"middle",middle:"middle"};function d(e,t,r){return"top"===r?e+=t/2:"bottom"===r&&(e-=t/2),e}function f(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function m(e){var t=e.style,r=e.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),r[0],r[1]].join(",")}function g(e){return e&&!!e.image}function A(e){return g(e)||e&&!!e.svgElement}function y(e){return"linear"===e.type}function v(e){return"radial"===e.type}function R(e){return e&&("linear"===e.type||"radial"===e.type)}function b(e){return"url(#"+e+")"}function x(e){var t=e.getGlobalScale();return Math.max(Math.ceil(Math.log(Math.max(t[0],t[1]))/Math.log(10)),1)}function M(e){var t=e.x||0,r=e.y||0,i=(e.rotation||0)*n.lI,a=(0,n.bZ)(e.scaleX,1),s=(0,n.bZ)(e.scaleY,1),l=e.skewX||0,c=e.skewY||0,u=[];return(t||r)&&u.push("translate("+t+"px,"+r+"px)"),i&&u.push("rotate("+i+")"),(1!==a||1!==s)&&u.push("scale("+a+","+s+")"),(l||c)&&u.push("skew("+o(l*n.lI)+"deg, "+o(c*n.lI)+"deg)"),u.join(" ")}var S=void 0!==a&&"function"==typeof a.from?function(e){return a.from(e).toString("base64")}:"function"==typeof btoa&&"function"==typeof unescape&&"function"==typeof encodeURIComponent?function(e){return btoa(unescape(encodeURIComponent(e)))}:function(e){return null};r.d(t,{$2:()=>s,Cv:()=>l,MD:()=>x,OH:()=>v,OS:()=>y,Pt:()=>A,WG:()=>S,XP:()=>u,Xu:()=>b,Z1:()=>M,bn:()=>R,dX:()=>f,eQ:()=>p,nV:()=>h,sL:()=>g,sZ:()=>d,si:()=>m})},47698(e,t,r){var n=r(60501),i=r(98026),a={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function o(e){return(e=Math.round(e))<0?0:e>255?255:e}function s(e){return e<0?0:e>1?1:e}function l(e){return e.length&&"%"===e.charAt(e.length-1)?o(parseFloat(e)/100*255):o(parseInt(e,10))}function c(e){return e.length&&"%"===e.charAt(e.length-1)?s(parseFloat(e)/100):s(parseFloat(e))}function u(e,t,r){return(r<0?r+=1:r>1&&(r-=1),6*r<1)?e+(t-e)*r*6:2*r<1?t:3*r<2?e+(t-e)*(2/3-r)*6:e}function h(e,t,r,n,i){return e[0]=t,e[1]=r,e[2]=n,e[3]=i,e}function p(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var d=new n.Ay(20),f=null;function m(e,t){f&&p(f,t),f=d.put(e,f||t.slice())}function g(e,t){if(e){t=t||[];var r=d.get(e);if(r)return p(t,r);var n=(e+="").replace(/ /g,"").toLowerCase();if(n in a)return p(t,a[n]),m(e,t),t;var i=n.length;if("#"===n.charAt(0)){if(4===i||5===i){var o=parseInt(n.slice(1,4),16);return o>=0&&o<=4095?(h(t,(3840&o)>>4|(3840&o)>>8,240&o|(240&o)>>4,15&o|(15&o)<<4,5===i?parseInt(n.slice(4),16)/15:1),m(e,t),t):void h(t,0,0,0,1)}if(7===i||9===i){var o=parseInt(n.slice(1,7),16);return o>=0&&o<=0xffffff?(h(t,(0xff0000&o)>>16,(65280&o)>>8,255&o,9===i?parseInt(n.slice(7),16)/255:1),m(e,t),t):void h(t,0,0,0,1)}return}var s=n.indexOf("("),u=n.indexOf(")");if(-1!==s&&u+1===i){var f=n.substr(0,s),g=n.substr(s+1,u-(s+1)).split(","),y=1;switch(f){case"rgba":if(4!==g.length)return 3===g.length?h(t,+g[0],+g[1],+g[2],1):h(t,0,0,0,1);y=c(g.pop());case"rgb":if(g.length>=3)return h(t,l(g[0]),l(g[1]),l(g[2]),3===g.length?y:c(g[3])),m(e,t),t;return void h(t,0,0,0,1);case"hsla":if(4!==g.length)return void h(t,0,0,0,1);return g[3]=c(g[3]),A(g,t),m(e,t),t;case"hsl":if(3!==g.length)return void h(t,0,0,0,1);return A(g,t),m(e,t),t;default:return}}h(t,0,0,0,1)}}function A(e,t){var r=(parseFloat(e[0])%360+360)%360/360,n=c(e[1]),i=c(e[2]),a=i<=.5?i*(n+1):i+n-i*n,s=2*i-a;return h(t=t||[],o(255*u(s,a,r+1/3)),o(255*u(s,a,r)),o(255*u(s,a,r-1/3)),1),4===e.length&&(t[3]=e[3]),t}function y(e,t){var r=g(e);if(r){for(var n=0;n<3;n++)t<0?r[n]=r[n]*(1-t)|0:r[n]=(255-r[n])*t+r[n]|0,r[n]>255?r[n]=255:r[n]<0&&(r[n]=0);return b(r,4===r.length?"rgba":"rgb")}}function v(e,t,r){if(t&&t.length&&e>=0&&e<=1){var n,i,a,l,c=e*(t.length-1),u=Math.floor(c),h=Math.ceil(c),p=g(t[u]),d=g(t[h]),f=c-u,m=b([o((n=p[0],n+(d[0]-n)*f)),o((i=p[1],i+(d[1]-i)*f)),o((a=p[2],a+(d[2]-a)*f)),s((l=p[3],l+(d[3]-l)*f))],"rgba");return r?{color:m,leftIndex:u,rightIndex:h,value:c}:m}}function R(e,t,r,n){var a,o=g(e);if(e)return o=function(e){if(e){var t,r,n=e[0]/255,i=e[1]/255,a=e[2]/255,o=Math.min(n,i,a),s=Math.max(n,i,a),l=s-o,c=(s+o)/2;if(0===l)t=0,r=0;else{r=c<.5?l/(s+o):l/(2-s-o);var u=((s-n)/6+l/2)/l,h=((s-i)/6+l/2)/l,p=((s-a)/6+l/2)/l;n===s?t=p-h:i===s?t=1/3+u-p:a===s&&(t=2/3+h-u),t<0&&(t+=1),t>1&&(t-=1)}var d=[360*t,r,c];return null!=e[3]&&d.push(e[3]),d}}(o),null!=t&&(o[0]=(a=Math.round(a=(0,i.Tn)(t)?t(o[0]):t))<0?0:a>360?360:a),null!=r&&(o[1]=c((0,i.Tn)(r)?r(o[1]):r)),null!=n&&(o[2]=c((0,i.Tn)(n)?n(o[2]):n)),b(A(o),"rgba")}function b(e,t){if(e&&e.length){var r=e[0]+","+e[1]+","+e[2];return("rgba"===t||"hsva"===t||"hsla"===t)&&(r+=","+e[3]),t+"("+r+")"}}function x(e,t){var r=g(e);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}var M=new n.Ay(100);function S(e){if((0,i.Kg)(e)){var t=M.get(e);return t||(t=y(e,-.1),M.put(e,t)),t}if((0,i.C7)(e)){var r=(0,i.X$)({},e);return r.colorStops=(0,i.Tj)(e.colorStops,function(e){return{offset:e.offset,color:y(e.color,-.1)}}),r}return e}r.d(t,{As:()=>b,Cc:()=>v,P:()=>S,Yu:()=>R,fN:()=>x,qg:()=>g})},95068(e,t,r){r.d(t,{N1:()=>es,Ts:()=>ea,fI:()=>eo,jW:()=>el});var n,i,a,o,s=r(38123),l=r(98026),c=r(15727),u=r(83509),h=function(e,t){this.target=e,this.topTarget=t&&t.topTarget},p=function(){function e(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return e.prototype._dragStart=function(e){for(var t=e.target;t&&!t.draggable;)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new h(t,e),"dragstart",e.event))},e.prototype._drag=function(e){var t=this._draggingTarget;if(t){var r=e.offsetX,n=e.offsetY,i=r-this._x,a=n-this._y;this._x=r,this._y=n,t.drift(i,a,e),this.handler.dispatchToElement(new h(t,e),"drag",e.event);var o=this.handler.findHover(r,n,t).target,s=this._dropTarget;this._dropTarget=o,t!==o&&(s&&o!==s&&this.handler.dispatchToElement(new h(s,e),"dragleave",e.event),o&&o!==s&&this.handler.dispatchToElement(new h(o,e),"dragenter",e.event))}},e.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new h(t,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new h(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},e}(),d=r(57861),f=r(35452),m=function(){function e(){this._track=[]}return e.prototype.recognize=function(e,t,r){return this._doTrack(e,t,r),this._recognize(e)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(e,t,r){var n=e.touches;if(n){for(var i={points:[],touches:[],target:t,event:e},a=0,o=n.length;a<o;a++){var s=n[a],l=f.Yo(r,s,{});i.points.push([l.zrX,l.zrY]),i.touches.push(s)}this._track.push(i)}},e.prototype._recognize=function(e){for(var t in A)if(A.hasOwnProperty(t)){var r=A[t](this._track,e);if(r)return r}},e}();function g(e){var t=e[1][0]-e[0][0],r=e[1][1]-e[0][1];return Math.sqrt(t*t+r*r)}var A={pinch:function(e,t){var r=e.length;if(r){var n=(e[r-1]||{}).points,i=(e[r-2]||{}).points||n;if(i&&i.length>1&&n&&n.length>1){var a=g(n)/g(i);isFinite(a)||(a=1),t.pinchScale=a;var o=[(n[0][0]+n[1][0])/2,(n[0][1]+n[1][1])/2];return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}},y=r(29308),v="silent";function R(){f.ds(this.event)}var b=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handler=null,t}return(0,c.C6)(t,e),t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(d.A),x=function(e,t){this.x=e,this.y=t},M=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],S=new y.Ay(0,0,0,0),w=function(e){function t(t,r,n,i,a){var o=e.call(this)||this;return o._hovered=new x(0,0),o.storage=t,o.painter=r,o.painterRoot=i,o._pointerSize=a,n=n||new b,o.proxy=null,o.setHandlerProxy(n),o._draggingMgr=new p(o),o}return(0,c.C6)(t,e),t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(l.__(M,function(t){e.on&&e.on(t,this[t],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var t=e.zrX,r=e.zrY,n=L(this,t,r),i=this._hovered,a=i.target;a&&!a.__zr&&(a=(i=this.findHover(i.x,i.y)).target);var o=this._hovered=n?new x(t,r):this.findHover(t,r),s=o.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),a&&s!==a&&this.dispatchToElement(i,"mouseout",e),this.dispatchToElement(o,"mousemove",e),s&&s!==a&&this.dispatchToElement(o,"mouseover",e)},t.prototype.mouseout=function(e){var t=e.zrEventControl;"only_globalout"!==t&&this.dispatchToElement(this._hovered,"mouseout",e),"no_globalout"!==t&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new x(0,0)},t.prototype.dispatch=function(e,t){var r=this[e];r&&r.call(this,t)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var t=this.proxy;t.setCursor&&t.setCursor(e)},t.prototype.dispatchToElement=function(e,t,r){var n=(e=e||{}).target;if(!n||!n.silent){for(var i,a="on"+t,o={type:t,event:r,target:(i=e).target,topTarget:i.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:R};n&&(n[a]&&(o.cancelBubble=!!n[a].call(n,o)),n.trigger(t,o),n=n.__hostTarget?n.__hostTarget:n.parent,!o.cancelBubble););!o.cancelBubble&&(this.trigger(t,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(e){"function"==typeof e[a]&&e[a].call(e,o),e.trigger&&e.trigger(t,o)}))}},t.prototype.findHover=function(e,t,r){var n=this.storage.getDisplayList(),i=new x(e,t);if(O(n,i,e,t,r),this._pointerSize&&!i.target){for(var a=[],o=this._pointerSize,s=o/2,l=new y.Ay(e-s,t-s,o,o),c=n.length-1;c>=0;c--){var u=n[c];u===r||u.ignore||u.ignoreCoarsePointer||u.parent&&u.parent.ignoreCoarsePointer||(S.copy(u.getBoundingRect()),u.transform&&S.applyTransform(u.transform),S.intersect(l)&&a.push(u))}if(a.length){for(var h=Math.PI/12,p=2*Math.PI,d=0;d<s;d+=4)for(var f=0;f<p;f+=h)if(O(a,i,e+d*Math.cos(f),t+d*Math.sin(f),r),i.target)return i}}return i},t.prototype.processGesture=function(e,t){this._gestureMgr||(this._gestureMgr=new m);var r=this._gestureMgr;"start"===t&&r.clear();var n=r.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if("end"===t&&r.clear(),n){var i=n.type;e.gestureEvent=i;var a=new x;a.target=n.target,this.dispatchToElement(a,i,n.event)}},t}(d.A);function O(e,t,r,n,i){for(var a=e.length-1;a>=0;a--){var o=e[a],s=void 0;if(o!==i&&!o.ignore&&(s=function(e,t,r){if(e[e.rectHover?"rectContain":"contain"](t,r)){for(var n=e,i=void 0,a=!1;n;){if(n.ignoreClip&&(a=!0),!a){var o=n.getClipPath();if(o&&!o.contain(t,r))return!1}n.silent&&(i=!0);var s=n.__hostTarget;n=s?n.ignoreHostSilent?null:s:n.parent}return!i||v}return!1}(o,r,n))&&(t.topTarget||(t.topTarget=o),s!==v)){t.target=o;break}}}function L(e,t,r){var n=e.painter;return t<0||t>n.getWidth()||r<0||r>n.getHeight()}l.__(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){w.prototype[e]=function(t){var r,n,i=t.zrX,a=t.zrY,o=L(this,i,a);if("mouseup"===e&&o||(n=(r=this.findHover(i,a)).target),"mousedown"===e)this._downEl=n,this._downPoint=[t.zrX,t.zrY],this._upEl=n;else if("mouseup"===e)this._upEl=n;else if("click"===e){if(this._downEl!==this._upEl||!this._downPoint||u.xg(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(r,e,t)}});var N=r(83470),_=r(56448),T=!1;function P(){T||(T=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function C(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var I=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=C}return e.prototype.traverse=function(e,t){for(var r=0;r<this._roots.length;r++)this._roots[r].traverse(e,t)},e.prototype.getDisplayList=function(e,t){t=t||!1;var r=this._displayList;return(e||!r.length)&&this.updateDisplayList(t),r},e.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var t=this._roots,r=this._displayList,n=0,i=t.length;n<i;n++)this._updateAndAddDisplayable(t[n],null,e);r.length=this._displayListLen,(0,N.A)(r,C)},e.prototype._updateAndAddDisplayable=function(e,t,r){if(!e.ignore||r){e.beforeUpdate(),e.update(),e.afterUpdate();var n=e.getClipPath(),i=t&&t.length,a=0,o=e.__clipPaths;if(!e.ignoreClip&&(i||n)){if(o||(o=e.__clipPaths=[]),i)for(var s=0;s<t.length;s++)o[a++]=t[s];for(var l=n,c=e;l;)l.parent=c,l.updateTransform(),o[a++]=l,c=l,l=l.getClipPath()}if(o&&(o.length=a),e.childrenRef){for(var u=e.childrenRef(),h=0;h<u.length;h++){var p=u[h];e.__dirty&&(p.__dirty|=_.M),this._updateAndAddDisplayable(p,o,r)}e.__dirty=0}else isNaN(e.z)&&(P(),e.z=0),isNaN(e.z2)&&(P(),e.z2=0),isNaN(e.zlevel)&&(P(),e.zlevel=0),this._displayList[this._displayListLen++]=e;var d=e.getDecalElement&&e.getDecalElement();d&&this._updateAndAddDisplayable(d,o,r);var f=e.getTextGuideLine();f&&this._updateAndAddDisplayable(f,o,r);var m=e.getTextContent();m&&this._updateAndAddDisplayable(m,o,r)}},e.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},e.prototype.delRoot=function(e){if(e instanceof Array){for(var t=0,r=e.length;t<r;t++)this.delRoot(e[t]);return}var n=l.qh(this._roots,e);n>=0&&this._roots.splice(n,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}(),k=r(45825),F=r(18565);function X(){return new Date().getTime()}var U=function(e){function t(t){var r=e.call(this)||this;return r._running=!1,r._time=0,r._pausedTime=0,r._pauseStart=0,r._paused=!1,r.stage=(t=t||{}).stage||{},r}return(0,c.C6)(t,e),t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var t=e.getClip();t&&this.addClip(t)},t.prototype.removeClip=function(e){if(e.animation){var t=e.prev,r=e.next;t?t.next=r:this._head=r,r?r.prev=t:this._tail=t,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var t=e.getClip();t&&this.removeClip(t),e.animation=null},t.prototype.update=function(e){for(var t=X()-this._pausedTime,r=t-this._time,n=this._head;n;){var i=n.next;n.step(t,r)&&(n.ondestroy(),this.removeClip(n)),n=i}this._time=t,!e&&(this.trigger("frame",r),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0,(0,k.A)(function t(){e._running&&((0,k.A)(t),e._paused||e.update())})},t.prototype.start=function(){this._running||(this._time=X(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=X(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=X()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var e=this._head;e;){var t=e.next;e.prev=e.next=e.animation=null,e=t}this._head=this._tail=null},t.prototype.isFinished=function(){return null==this._head},t.prototype.animate=function(e,t){t=t||{},this.start();var r=new F.A(e,t.loop);return this.addAnimator(r),r},t}(d.A),W=s.A.domSupported,V=(n=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],i={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},a=l.Tj(n,function(e){var t=e.replace("mouse","pointer");return i.hasOwnProperty(t)?t:e}),{mouse:n,touch:["touchstart","touchend","touchmove"],pointer:a}),E=["mousemove","mouseup"],Y=["pointermove","pointerup"],D=!1;function Q(e){var t=e.pointerType;return"pen"===t||"touch"===t}function $(e){e&&(e.zrByTouch=!0)}function B(e,t){for(var r=t,n=!1;r&&9!==r.nodeType&&!(n=r.domBelongToZr||r!==t&&r===e.painterRoot);)r=r.parentNode;return n}var Z=function(e,t){this.stopPropagation=l.lQ,this.stopImmediatePropagation=l.lQ,this.preventDefault=l.lQ,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY},K={mousedown:function(e){e=(0,f.e0)(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=(0,f.e0)(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=(0,f.e0)(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){B(this,(e=(0,f.e0)(this.dom,e)).toElement||e.relatedTarget)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){D=!0,e=(0,f.e0)(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){D||(e=(0,f.e0)(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){$(e=(0,f.e0)(this.dom,e)),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),K.mousemove.call(this,e),K.mousedown.call(this,e)},touchmove:function(e){$(e=(0,f.e0)(this.dom,e)),this.handler.processGesture(e,"change"),K.mousemove.call(this,e)},touchend:function(e){$(e=(0,f.e0)(this.dom,e)),this.handler.processGesture(e,"end"),K.mouseup.call(this,e),new Date-this.__lastTouchMoment<300&&K.click.call(this,e)},pointerdown:function(e){K.mousedown.call(this,e)},pointermove:function(e){Q(e)||K.mousemove.call(this,e)},pointerup:function(e){K.mouseup.call(this,e)},pointerout:function(e){Q(e)||K.mouseout.call(this,e)}};l.__(["click","dblclick","contextmenu"],function(e){K[e]=function(t){t=(0,f.e0)(this.dom,t),this.trigger(e,t)}});var G={pointermove:function(e){Q(e)||G.mousemove.call(this,e)},pointerup:function(e){G.mouseup.call(this,e)},mousemove:function(e){this.trigger("mousemove",e)},mouseup:function(e){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",e),t&&(e.zrEventControl="only_globalout",this.trigger("mouseout",e))}};function H(e,t,r,n){e.mounted[t]=r,e.listenerOpts[t]=n,(0,f.q2)(e.domTarget,t,r,n)}function z(e){var t=e.mounted;for(var r in t)t.hasOwnProperty(r)&&(0,f.f)(e.domTarget,r,t[r],e.listenerOpts[r]);e.mounted={}}var J=function(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t},j=function(e){function t(t,r){var n,i,a=e.call(this)||this;return a.__pointerCapturing=!1,a.dom=t,a.painterRoot=r,a._localHandlerScope=new J(t,K),W&&(a._globalHandlerScope=new J(document,G)),i=(n=a._localHandlerScope).domHandlers,s.A.pointerEventsSupported?l.__(V.pointer,function(e){H(n,e,function(t){i[e].call(a,t)})}):(s.A.touchEventsSupported&&l.__(V.touch,function(e){H(n,e,function(t){i[e].call(a,t),n.touching=!0,null!=n.touchTimer&&(clearTimeout(n.touchTimer),n.touchTimer=null),n.touchTimer=setTimeout(function(){n.touching=!1,n.touchTimer=null},700)})}),l.__(V.mouse,function(e){H(n,e,function(t){t=(0,f.mK)(t),n.touching||i[e].call(a,t)})})),a}return(0,c.C6)(t,e),t.prototype.dispose=function(){z(this._localHandlerScope),W&&z(this._globalHandlerScope)},t.prototype.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||"default")},t.prototype.__togglePointerCapture=function(e){if(this.__mayPointerCapture=null,W&&this.__pointerCapturing^e){this.__pointerCapturing=e;var t=this._globalHandlerScope;e?function(e,t){s.A.pointerEventsSupported?l.__(Y,r):s.A.touchEventsSupported||l.__(E,r);function r(r){H(t,r,function(n){if(!B(e,(n=(0,f.mK)(n)).target)){var i;i=n,n=(0,f.e0)(e.dom,new Z(e,i),!0),t.domHandlers[r].call(e,n)}},{capture:!0})}}(this,t):z(t)}},t}(d.A),q=r(47698),ee=r(73098),et=r(43870),er={},en={},ei=function(){function e(e,t,r){var n,i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!1,this._darkMode=!1,r=r||{},this.dom=t,this.id=e;var a=new I,o=r.renderer||"canvas";er[o]||(o=l.HP(er)[0]),r.useDirtyRect=null!=r.useDirtyRect&&r.useDirtyRect;var c=new er[o](t,a,r,e),u=r.ssr||c.ssrOnly;this.storage=a,this.painter=c;var h=s.A.node||s.A.worker||u?null:new j(c.getViewportRoot(),c.root),p=r.useCoarsePointer;(null==p||"auto"===p?s.A.touchEventsSupported:!!p)&&(n=l.bZ(r.pointerSize,44)),this.handler=new w(a,c,h,c.root,n),this.animation=new U({stage:{update:u?null:function(){return i._flush(!1)}}}),u||this.animation.start()}return e.prototype.add=function(e){!this._disposed&&e&&(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},e.prototype.remove=function(e){!this._disposed&&e&&(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(e,t){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,t),this.refresh())},e.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=function(e){if(!e)return!1;if("string"==typeof e)return(0,q.fN)(e,1)<ee.ps;if(e.colorStops){for(var t=e.colorStops,r=0,n=t.length,i=0;i<n;i++)r+=(0,q.fN)(t[i].color,1);return(r/=n)<ee.ps}return!1}(e))},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(e){this._darkMode=e},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(e){this._disposed||this._refresh({animUpdate:!e,refresh:!0,refreshHover:!1})},e.prototype._refresh=function(e){e.animUpdate&&this.animation.update(!0),this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh({refresh:e.refresh,refreshHover:e.refreshHover}),this._needsRefresh=this._needsRefreshHover=!1},e.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},e.prototype.flush=function(){this._disposed||this._flush(!0)},e.prototype._flush=function(e){var t,r=X(),n=this._needsRefresh,i=this._needsRefreshHover;(n||i)&&(t=!0,this._refresh({animUpdate:e,refresh:n,refreshHover:i}));var a=X();t?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:a-r})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||this._refresh({animUpdate:!1,refresh:!1,refreshHover:!0})},e.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},e.prototype.findHover=function(e,t){if(!this._disposed)return this.handler.findHover(e,t)},e.prototype.on=function(e,t,r){return this._disposed||this.handler.on(e,t,r),this},e.prototype.off=function(e,t){this._disposed||this.handler.off(e,t)},e.prototype.trigger=function(e,t){this._disposed||this.handler.trigger(e,t)},e.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),t=0;t<e.length;t++)e[t]instanceof et.A&&e[t].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},e.prototype.dispose=function(){if(!this._disposed){var e;this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,e=this.id,delete en[e]}},e}();function ea(e,t){var r=new ei(l.Os(),e,t);return en[r.id]=r,r}function eo(e,t){er[e]=t}function es(e){if("function"==typeof o)return o(e)}function el(e){o=e}},9897(e,t,r){var n=r(1932);r.d(t,{},{D:e=>(t,r,i)=>(i.setState=(e,r,...i)=>t("function"==typeof e?(0,n.jM)(e):e,r,...i),e(i.setState,r,i))})},69157(e,t,r){r.d(t,{v:()=>o});var n=r(51649);let i=e=>{let t,r=new Set,n=(e,n)=>{let i="function"==typeof e?e(t):e;if(!Object.is(i,t)){let e=t;t=(null!=n?n:"object"!=typeof i||null===i)?i:Object.assign({},t,i),r.forEach(r=>r(t,e))}},i=()=>t,a={setState:n,getState:i,getInitialState:()=>o,subscribe:e=>(r.add(e),()=>r.delete(e))},o=t=e(n,i,a);return a},a=e=>{let t=e?i(e):i,r=e=>(function(e,t=e=>e){let r=n.default.useSyncExternalStore(e.subscribe,n.default.useCallback(()=>t(e.getState()),[e,t]),n.default.useCallback(()=>t(e.getInitialState()),[e,t]));return n.default.useDebugValue(r),r})(t,e);return Object.assign(r,t),r},o=e=>e?a(e):a},88501(e,t,r){r.d(t,{k:()=>a});var n=r(51649);let i=(e,t)=>{let r=e instanceof Map?e:new Map(e.entries()),n=t instanceof Map?t:new Map(t.entries());if(r.size!==n.size)return!1;for(let[e,t]of r)if(!n.has(e)||!Object.is(t,n.get(e)))return!1;return!0};function a(e){let t=n.default.useRef(void 0);return r=>{let n=e(r);return!function(e,t){if(Object.is(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t||Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1;if(Symbol.iterator in e&&Symbol.iterator in t){if("entries"in e&&"entries"in t)return i(e,t);let r=e[Symbol.iterator](),n=t[Symbol.iterator](),a=r.next(),o=n.next();for(;!a.done&&!o.done;){if(!Object.is(a.value,o.value))return!1;a=r.next(),o=n.next()}return!!a.done&&!!o.done}return i({entries:()=>Object.entries(e)},{entries:()=>Object.entries(t)})}(t.current,n)?t.current=n:t.current}}}};