fika-editor 3.0.8 → 3.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/embed/3276.js
CHANGED
|
@@ -139,4 +139,4 @@ endobj
|
|
|
139
139
|
`;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(t){t||(t={});let[e,r,n,i]=this.resolveScale(t),a=[];for(let t=0;t<this._tree.chld.length;t++){let{x:o,y:s,w:l,h:c}=this._tree.chld[t].bbox;a.push({x:e+o*n,y:r+s*i,w:l*n,h:c*i})}return a}box(t){t||(t={});let[e,r,n,i]=this.resolveScale(t);return{x:e+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(e,{PI:()=>l,jH:()=>p})},1932(t,e,r){var n,i=Symbol.for("immer-nothing"),a=Symbol.for("immer-draftable"),o=Symbol.for("immer-state");function s(t){throw Error(`[Immer] minified error nr: ${t}. 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=t=>!!t&&!!t[o];function A(t){return!!t&&(R(t)||O(t)||!!t[a]||!!t[u]?.[a]||N(t)||L(t))}var y=l[h][u].toString(),v=new WeakMap;function R(t){if(!t||!_(t))return!1;let e=c(t);if(null===e||e===l[h])return!0;let r=l.hasOwnProperty.call(e,u)&&e[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(t,e,r=!0){0===x(t)?(r?Reflect.ownKeys(t):l.keys(t)).forEach(r=>{e(r,t[r],t)}):t.forEach((r,n)=>e(n,r,t))}function x(t){let e=t[o];return e?e.type_:O(t)?1:N(t)?2:3*!!L(t)}var M=(t,e,r=x(t))=>2===r?t.has(e):l[h].hasOwnProperty.call(t,e),S=(t,e,r=x(t))=>2===r?t.get(e):t[e],w=(t,e,r,n=x(t))=>{2===n?t.set(e,r):3===n?t.add(r):t[e]=r},O=Array.isArray,N=t=>t instanceof Map,L=t=>t instanceof Set,_=t=>"object"==typeof t,T=t=>"function"==typeof t,P=t=>t.modified_?t.copy_:t.base_;function I(t,e){if(N(t))return new Map(t);if(L(t))return new Set(t);if(O(t))return Array[h].slice.call(t);let r=R(t);if(!0!==e&&("class_only"!==e||r)){let e=c(t);if(null!==e&&r)return{...t};let n=l.create(e);return l.assign(n,t)}{let e=l.getOwnPropertyDescriptors(t);delete e[o];let r=Reflect.ownKeys(e);for(let n=0;n<r.length;n++){let i=r[n],a=e[i];!1===a[f]&&(a[f]=!0,a[p]=!0),(a.get||a.set)&&(e[i]={[p]:!0,[f]:!0,[d]:a[d],[m]:t[i]})}return l.create(c(t),e)}}function C(t,e=!1){return F(t)||g(t)||!A(t)||(x(t)>1&&l.defineProperties(t,{set:k,add:k,clear:k,delete:k}),l.freeze(t),e&&b(t,(t,e)=>{C(e,!0)},!1)),t}var k={[m]:function(){s(2)}};function F(t){return!(null!==t&&_(t))||l.isFrozen(t)}var X="MapSet",U="Patches",W="ArrayMethods",V={};function E(t){let e=V[t];return e||s(0),e}var Y=t=>!!V[t];function D(t,e){e&&(t.patchPlugin_=E(U),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function Q(t){Z(t),t.drafts_.forEach(K),t.drafts_=null}function Z(t){t===n&&(n=t.parent_)}var B=t=>n={drafts_:[],parent_:n,immer_:t,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 K(t){let e=t[o];0===e.type_||1===e.type_?e.revoke_():e.revoked_=!0}function $(t,e){e.unfinalizedDrafts_=e.drafts_.length;let r=e.drafts_[0];if(void 0!==t&&t!==r){r[o].modified_&&(Q(e),s(4)),A(t)&&(t=G(e,t));let{patchPlugin_:n}=e;n&&n.generateReplacementPatches_(r[o].base_,t,e)}else t=G(e,r);return function(t,e,r=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&C(e,r)}(e,t,!0),Q(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==i?t:void 0}function G(t,e){if(F(e))return e;let r=e[o];if(!r)return tt(e,t.handledSet_,t);if(!z(r,t))return e;if(!r.modified_)return r.base_;if(!r.finalized_){let{callbacks_:e}=r;if(e)for(;e.length>0;)e.pop()(t);q(r,t)}return r.copy_}function H(t){t.finalized_=!0,t.scope_.unfinalizedDrafts_--}var z=(t,e)=>t.scope_===e,J=[];function j(t,e,r,n){let i=t.copy_||t.base_,a=t.type_;if(void 0!==n&&S(i,n,a)===e)return void w(i,n,r,a);if(!t.draftLocations_){let e=t.draftLocations_=new Map;b(i,(t,r)=>{if(g(r)){let n=e.get(r)||[];n.push(t),e.set(r,n)}})}for(let n of t.draftLocations_.get(e)??J)w(i,n,r,a)}function q(t,e){if(t.modified_&&!t.finalized_&&(3===t.type_||1===t.type_&&t.allIndicesReassigned_||(t.assigned_?.size??0)>0)){let{patchPlugin_:r}=e;if(r){let n=r.getPath(t);n&&r.generatePatches_(t,n,e)}H(t)}}function tt(t,e,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||g(t)||e.has(t)||!A(t)||F(t)||(e.add(t),b(t,(n,i)=>{if(g(i)){let e=i[o];z(e,r)&&(w(t,n,P(e),t.type_),H(e))}else A(i)&&tt(i,e,r)})),t}var te={get(t,e){var r,n,i,a;let s;if(e===o)return t;let l=t.scope_.arrayMethodsPlugin_,c=1===t.type_&&"string"==typeof e;if(c&&l?.isArrayOperationMethod(e))return l.createMethodInterceptor(t,e);let u=t.copy_||t.base_;if(!M(u,e,t.type_)){let n;return r=t,(n=ti(u,e))?m in n?n[m]:n.get?.call(r.draft_):void 0}let h=u[e];if(t.finalized_||!A(h)||c&&t.operationMethod&&l?.isMutatingArrayMethod(t.operationMethod)&&Number.isInteger(s=+e)&&String(s)===e)return h;if(h===tn(t.base_,e)||(n=t,i=e,a=h,!(1!==n.type_||!n.allIndicesReassigned_||n.assigned_?.get(i))&&A(a)&&!a[o]&&n.baseRefs_.has(a))){to(t);let r=1===t.type_?+e:e,n=tl(t.scope_,h,t,r);return t.copy_[r]=n}return h},has:(t,e)=>e in(t.copy_||t.base_),ownKeys:t=>Reflect.ownKeys(t.copy_||t.base_),set(t,e,r){let n=ti(t.copy_||t.base_,e);if(n?.set)return n.set.call(t.draft_,r),!0;if(!t.modified_){let n=tn(t.copy_||t.base_,e),i=n?.[o];if(i&&i.base_===r)return t.copy_[e]=r,t.assigned_.set(e,!1),!0;if((r===n?0!==r||1/r==1/n:r!=r&&n!=n)&&(void 0!==r||M(t.base_,e,t.type_)))return!0;to(t),ta(t)}return!!(t.copy_[e]===r&&(void 0!==r||M(t.copy_,e,t.type_))||Number.isNaN(r)&&Number.isNaN(t.copy_[e]))||(t.copy_[e]=r,t.assigned_.set(e,!0),!function(t,e,r){let{scope_:n}=t;if(g(r)){let i=r[o];z(i,n)&&i.callbacks_.push(function(){to(t),j(t,r,P(i),e)})}else A(r)&&t.callbacks_.push(function(){let i=t.copy_||t.base_;3===t.type_?i.has(r)&&tt(r,n.handledSet_,n):S(i,e,t.type_)===r&&n.drafts_.length>1&&(t.assigned_.get(e)??!1)===!0&&t.copy_&&tt(S(t.copy_,e,t.type_),n.handledSet_,n)})}(t,e,r),!0)},deleteProperty:(t,e)=>(to(t),void 0!==tn(t.base_,e)||e in t.base_?(t.assigned_.set(e,!1),ta(t)):t.assigned_.delete(e),t.copy_&&delete t.copy_[e],!0),getOwnPropertyDescriptor(t,e){let r=t.copy_||t.base_,n=Reflect.getOwnPropertyDescriptor(r,e);return n?{[f]:!0,[p]:1!==t.type_||"length"!==e,[d]:n[d],[m]:r[e]}:n},defineProperty(){s(11)},getPrototypeOf:t=>c(t.base_),setPrototypeOf(){s(12)}},tr={};for(let t in te){let e=te[t];tr[t]=function(){let t=arguments;return t[0]=t[0][0],e.apply(this,t)}}function tn(t,e){let r=t[o];return(r?r.copy_||r.base_:t)[e]}function ti(t,e){if(!(e in t))return;let r=c(t);for(;r;){let t=Object.getOwnPropertyDescriptor(r,e);if(t)return t;r=c(r)}}function ta(t){!t.modified_&&(t.modified_=!0,t.parent_&&ta(t.parent_))}function to(t){t.copy_||(t.assigned_=new Map,t.copy_=I(t.base_,t.scope_.immer_.useStrictShallowCopy_))}tr.deleteProperty=function(t,e){return tr.set.call(this,t,e,void 0)},tr.set=function(t,e,r){return te.set.call(this,t[0],e,r,t[0])};var ts=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(t,e,r)=>{let n;if(T(t)&&!T(e)){let r=e;e=t;let n=this;return function(t=r,...i){return n.produce(t,t=>e.call(this,t,...i))}}if(T(e)||s(6),void 0===r||T(r)||s(7),A(t)){let i=B(this),a=tl(i,t,void 0),o=!0;try{n=e(a),o=!1}finally{o?Q(i):Z(i)}return D(i,r),$(n,i)}if(t&&_(t))s(1);else{if(void 0===(n=e(t))&&(n=t),n===i&&(n=void 0),this.autoFreeze_&&C(n,!0),r){let e=[],i=[];E(U).generateReplacementPatches_(t,n,{patches_:e,inversePatches_:i}),r(e,i)}return n}},this.produceWithPatches=(t,e)=>{let r,n;return T(t)?(e,...r)=>this.produceWithPatches(e,e=>t(e,...r)):[this.produce(t,e,(t,e)=>{r=t,n=e}),r,n]},"boolean"==typeof t?.autoFreeze&&this.setAutoFreeze(t.autoFreeze),"boolean"==typeof t?.useStrictShallowCopy&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),"boolean"==typeof t?.useStrictIteration&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){var e;A(t)||s(8),g(t)&&(g(e=t)||s(10),t=function t(e){let r;if(!A(e)||F(e))return e;let n=e[o],i=!0;if(n){if(!n.modified_)return n.base_;n.finalized_=!0,r=I(e,n.scope_.immer_.useStrictShallowCopy_),i=n.scope_.immer_.shouldUseStrictIteration()}else r=I(e,!0);return b(r,(e,n)=>{w(r,e,t(n))},i),n&&(n.finalized_=!1),r}(e));let r=B(this),n=tl(r,t,void 0);return n[o].isManual_=!0,Z(r),n}finishDraft(t,e){let r=t&&t[o];r&&r.isManual_||s(9);let{scope_:n}=r;return D(n,e),$(void 0,n)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,e){let r;for(r=e.length-1;r>=0;r--){let n=e[r];if(0===n.path.length&&"replace"===n.op){t=n.value;break}}r>-1&&(e=e.slice(r+1));let n=E(U).applyPatches_;return g(t)?n(t,e):this.produce(t,t=>n(t,e))}};function tl(t,e,r,i){let[a,o]=N(e)?E(X).proxyMap_(e,r):L(e)?E(X).proxySet_(e,r):function(t,e){let r=O(t),i={type_:+!!r,scope_:e?e.scope_:n,modified_:!1,finalized_:!1,assigned_:void 0,parent_:e,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},a=i,o=te;r&&(a=[i],o=tr);let{revoke:s,proxy:l}=Proxy.revocable(a,o);return i.draft_=l,i.revoke_=s,[l,i]}(e,r);if((r?.scope_??n).drafts_.push(a),o.callbacks_=r?.callbacks_??[],o.key_=i,r&&void 0!==i)r.callbacks_.push(function(t){if(!o||!z(o,t))return;t.mapSetPlugin_?.fixSetContents(o);let e=P(o);j(r,o.draft_??o,e,i),q(o,t)});else o.callbacks_.push(function(t){t.mapSetPlugin_?.fixSetContents(o);let{patchPlugin_:e}=t;o.modified_&&e&&e.generatePatches_(o,[],t)});return a}function tc(){let t="replace",e="remove";function r(t){if(!A(t))return t;if(O(t))return t.map(r);if(N(t))return new Map(Array.from(t.entries()).map(([t,e])=>[t,r(e)]));if(L(t))return new Set(Array.from(t).map(r));let e=Object.create(c(t));for(let n in t)e[n]=r(t[n]);return M(t,a)&&(e[a]=t[a]),e}function n(t){return g(t)?r(t):t}V[U]||(V[U]={applyPatches_:function(n,i){return i.forEach(i=>{let{path:a,op:o}=i,l=n;for(let t=0;t<a.length-1;t++){let e=x(l),r=a[t];"string"!=typeof r&&"number"!=typeof r&&(r=""+r),(0===e||1===e)&&("__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 t: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 e: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)?t:"add":e;if(h===p&&d===t)return;let f=i.concat(r);a.push(d===e?{op:d,path:f}:{op:d,path:f,value:n(p)}),o.push("add"===d?{op:e,path:f}:d===e?{op:"add",path:f,value:n(h)}:{op:t,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 e=0;e<l.length;e++){let r=u[e],p=l[e];if((h||c?.get(e.toString()))&&r!==p){let l=r?.[o];if(l&&l.modified_)continue;let c=i.concat([e]);a.push({op:t,path:c,value:n(r)}),s.push({op:t,path:c,value:n(p)})}}for(let t=l.length;t<u.length;t++){let e=i.concat([t]);a.push({op:"add",path:e,value:n(u[t])})}for(let t=u.length-1;l.length<=t;--t){let r=i.concat([t]);s.push({op:e,path:r})}}(r,i,s,l);case 3:return function(t,r,n,i){let{base_:a,copy_:o}=t,s=0;a.forEach(t=>{if(!o.has(t)){let a=r.concat([s]);n.push({op:e,path:a,value:t}),i.unshift({op:"add",path:a,value:t})}s++}),s=0,o.forEach(t=>{if(!a.has(t)){let a=r.concat([s]);n.push({op:"add",path:a,value:t}),i.unshift({op:e,path:a,value:t})}s++})}(r,i,s,l)}},generateReplacementPatches_:function(e,r,n){let{patches_:a,inversePatches_:o}=n;a.push({op:t,path:[],value:r===i?void 0:r}),o.push({op:t,path:[],value:e})},getPath:function t(e,r=[]){if(void 0!==e.key_){var n;let t,i=e.parent_.copy_??e.parent_.base_,a=_(n=S(i,e.key_))?n?.[o]:null,s=S(i,e.key_);if(void 0===s||s!==e.draft_&&s!==e.base_&&s!==e.copy_||null!=a&&a.base_!==e.base_)return null;let l=3===e.parent_.type_;if(t=l?Array.from(e.parent_.drafts_.keys()).indexOf(e.key_):e.key_,!(l&&i.size>t||M(i,t)))return null;r.push(t)}if(e.parent_)return t(e.parent_,r);r.reverse();try{var i=e.copy_,a=r;let t=i;for(let e=0;e<a.length-1;e++)if(!_(t=S(t,a[e]))||null===t)throw Error(`Cannot resolve path at '${a.join("/")}'`)}catch(t){return null}return r}})}var tu=globalThis.Iterator;tu?.from;var th=new ts,tp=th.produce,td=th.produceWithPatches.bind(th),tf=th.setAutoFreeze.bind(th),tm=th.applyPatches.bind(th);r.d(e,{$i:()=>tm,YT:()=>tc,ht:()=>tf,jM:()=>tp,vI:()=>td})},90754(t,e,r){r.d(e,{A:()=>c});var n=r(51649);let i=(...t)=>t.filter((t,e,r)=>!!t&&""!==t.trim()&&r.indexOf(t)===e).join(" ").trim(),a=t=>{let e=t.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,e,r)=>r?r.toUpperCase():e.toLowerCase());return e.charAt(0).toUpperCase()+e.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:t,size:e,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(e??d):r??f;return(0,n.createElement)("svg",{ref:p,...o,width:e??d??o.width,height:e??d??o.height,stroke:t??g,strokeWidth:y,className:i("lucide",A,l),...!c&&!(t=>{for(let e in t)if(e.startsWith("aria-")||"role"===e||"title"===e)return!0;return!1})(h)&&{"aria-hidden":"true"},...h},[...u.map(([t,e])=>(0,n.createElement)(t,e)),...Array.isArray(c)?c:[c]])}),c=(t,e)=>{let r=(0,n.forwardRef)(({className:r,...o},s)=>(0,n.createElement)(l,{ref:s,iconNode:e,className:i(`lucide-${a(t).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${t}`,r),...o}));return r.displayName=a(t),r}},39637(t,e,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(e,{},{A:n})},64135(t,e,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(e,{},{A:n})},72287(t,e,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(e,{},{A:n})},96657(t,e,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(e,{},{A:n})},89702(t,e,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(e,{},{A:n})},69920(t,e,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(e,{},{A:n})},38972(t,e,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(e,{},{A:n})},52062(t,e,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(e,{},{A:n})},90821(t,e,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(e,{},{A:n})},75133(t,e,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(e,{},{A:n})},25279(t,e,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(e,{},{A:n})},82378(t,e,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(e,{},{A:n})},3435(t,e,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(e,{},{A:n})},99114(t,e,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(e,{},{A:n})},63787(t,e,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(e,{},{A:n})},11955(t,e,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(e,{},{A:n})},59927(t,e,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(e,{},{A:n})},46666(t,e,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(e,{},{A:n})},60781(t,e,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(e,{},{A:n})},88561(t,e,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(e,{},{A:n})},50168(t,e,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(e,{},{A:n})},32392(t,e,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(e,{},{A:n})},81416(t,e,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(e,{},{A:n})},35716(t,e,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(e,{},{A:n})},53729(t,e,r){let n=(0,r(90754).A)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);r.d(e,{},{A:n})},16749(t,e,r){let n=(0,r(90754).A)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);r.d(e,{},{A:n})},44810(t,e,r){let n=(0,r(90754).A)("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);r.d(e,{},{A:n})},70885(t,e,r){let n=(0,r(90754).A)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);r.d(e,{},{A:n})},19250(t,e,r){let n=(0,r(90754).A)("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);r.d(e,{},{A:n})},40983(t,e,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(e,{},{A:n})},85824(t,e,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(e,{},{A:n})},78(t,e,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(e,{},{A:n})},37487(t,e,r){let n=(0,r(90754).A)("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);r.d(e,{},{A:n})},95878(t,e,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(e,{},{A:n})},50184(t,e,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(e,{},{A:n})},95864(t,e,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(e,{},{A:n})},81253(t,e,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(e,{},{A:n})},87379(t,e,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(e,{},{A:n})},30166(t,e,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(e,{},{A:n})},53331(t,e,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(e,{},{A:n})},65262(t,e,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(e,{},{A:n})},15426(t,e,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(e,{},{A:n})},49781(t,e,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(e,{},{A:n})},3227(t,e,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(e,{},{A:n})},41918(t,e,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(e,{},{A:n})},16778(t,e,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(e,{},{A:n})},66216(t,e,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(e,{},{A:n})},8087(t,e,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(e,{},{A:n})},27298(t,e,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(e,{},{A:n})},66278(t,e,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(e,{},{A:n})},67048(t,e,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(e,{},{A:n})},74632(t,e,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(e,{},{A:n})},64776(t,e,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(e,{},{A:n})},33520(t,e,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(e,{},{A:n})},48614(t,e,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(e,{},{A:n})},50643(t,e,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(e,{},{A:n})},13843(t,e,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(e,{},{A:n})},33224(t,e,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(e,{},{A:n})},43458(t,e,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(e,{},{A:n})},85635(t,e,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(e,{},{A:n})},58563(t,e,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(e,{},{A:n})},9083(t,e,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(e,{},{A:n})},64927(t,e,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(e,{},{A:n})},83183(t,e,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(e,{},{A:n})},67899(t,e,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(e,{},{A:n})},40859(t,e,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(e,{},{A:n})},73138(t,e,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(e,{},{A:n})},41268(t,e,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(e,{},{A:n})},17853(t,e,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(e,{},{A:n})},93274(t,e,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(e,{},{A:n})},62460(t,e,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(e,{},{A:n})},57591(t,e,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(e,{},{A:n})},55645(t,e,r){let n=(0,r(90754).A)("minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);r.d(e,{},{A:n})},93224(t,e,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(e,{},{A:n})},12709(t,e,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(e,{},{A:n})},42631(t,e,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(e,{},{A:n})},93277(t,e,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(e,{},{A:n})},3935(t,e,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(e,{},{A:n})},9976(t,e,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(e,{},{A:n})},59316(t,e,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(e,{},{A:n})},23712(t,e,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(e,{},{A:n})},61843(t,e,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(e,{},{A:n})},55832(t,e,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(e,{},{A:n})},64239(t,e,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(e,{},{A:n})},2939(t,e,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(e,{},{A:n})},51776(t,e,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(e,{},{A:n})},99668(t,e,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(e,{},{A:n})},78093(t,e,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(e,{},{A:n})},80339(t,e,r){let n=(0,r(90754).A)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);r.d(e,{},{A:n})},29082(t,e,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(e,{},{A:n})},61495(t,e,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(e,{},{A:n})},89569(t,e,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(e,{},{A:n})},56529(t,e,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(e,{},{A:n})},43507(t,e,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(e,{},{A:n})},95226(t,e,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(e,{},{A:n})},35809(t,e,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(e,{},{A:n})},12794(t,e,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(e,{},{A:n})},43189(t,e,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(e,{},{A:n})},40799(t,e,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(e,{},{A:n})},45867(t,e,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(e,{},{A:n})},38993(t,e,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(e,{},{A:n})},79625(t,e,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(e,{},{A:n})},27041(t,e,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(e,{},{A:n})},65654(t,e,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(e,{},{A:n})},39784(t,e,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(e,{},{A:n})},88439(t,e,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(e,{},{A:n})},10098(t,e,r){let n=(0,r(90754).A)("square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]);r.d(e,{},{A:n})},70644(t,e,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(e,{},{A:n})},73308(t,e,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(e,{},{A:n})},42535(t,e,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(e,{},{A:n})},91201(t,e,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(e,{},{A:n})},47003(t,e,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(e,{},{A:n})},96344(t,e,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(e,{},{A:n})},17754(t,e,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(e,{},{A:n})},67917(t,e,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(e,{},{A:n})},77929(t,e,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(e,{},{A:n})},76422(t,e,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(e,{},{A:n})},82(t,e,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(e,{},{A:n})},63626(t,e,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(e,{},{A:n})},12507(t,e,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(e,{},{A:n})},52543(t,e,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(e,{},{A:n})},17249(t,e,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(e,{},{A:n})},15132(t,e,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(e,{},{A:n})},60334(t,e,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(e,{},{A:n})},86739(t,e,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(e,{},{A:n})},21676(t,e,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(e,{},{A:n})},94574(t,e,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(e,{},{A:n})},61085(t,e,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(e,{},{A:n})},72916(t,e,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(e,{},{A:n})},55159(t,e,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(e,{},{A:n})},3900(t,e,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(e,{},{A:n})},83814(t,e,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(e,{},{A:n})},69237(t,e,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(e,{},{A:n})},30490(t,e,r){let n,i,a;r.d(e,{A:()=>eN});var o,s,l,c,u,h,p,d,f={};r.r(f),r.d(f,{decode:()=>y,encode:()=>b,format:()=>x,parse:()=>C});var m={};r.r(m),r.d(m,{Any:()=>k,Cc:()=>F,Cf:()=>X,P:()=>U,S:()=>W,Z:()=>V});let g={};function A(t,e){"string"!=typeof e&&(e=A.defaultChars);let r=function(t){let e=g[t];if(e)return e;e=g[t]=[];for(let t=0;t<128;t++){let r=String.fromCharCode(t);e.push(r)}for(let r=0;r<t.length;r++){let n=t.charCodeAt(r);e[n]="%"+("0"+n.toString(16).toUpperCase()).slice(-2)}return e}(e);return t.replace(/(%[a-f0-9]{2})+/gi,function(t){let e="";for(let n=0,i=t.length;n<i;n+=3){let a=parseInt(t.slice(n+1,n+3),16);if(a<128){e+=r[a];continue}if((224&a)==192&&n+3<i){let r=parseInt(t.slice(n+4,n+6),16);if((192&r)==128){let t=a<<6&1984|63&r;t<128?e+="��":e+=String.fromCharCode(t),n+=3;continue}}if((240&a)==224&&n+6<i){let r=parseInt(t.slice(n+4,n+6),16),i=parseInt(t.slice(n+7,n+9),16);if((192&r)==128&&(192&i)==128){let t=a<<12&61440|r<<6&4032|63&i;t<2048||t>=55296&&t<=57343?e+="���":e+=String.fromCharCode(t),n+=6;continue}}if((248&a)==240&&n+9<i){let r=parseInt(t.slice(n+4,n+6),16),i=parseInt(t.slice(n+7,n+9),16),o=parseInt(t.slice(n+10,n+12),16);if((192&r)==128&&(192&i)==128&&(192&o)==128){let t=a<<18&1835008|r<<12&258048|i<<6&4032|63&o;t<65536||t>1114111?e+="����":(t-=65536,e+=String.fromCharCode(55296+(t>>10),56320+(1023&t))),n+=9;continue}}e+="�"}return e})}A.defaultChars=";/?:@&=+$,#",A.componentChars="";var y=A;let v={};function R(t,e,r){"string"!=typeof e&&(r=e,e=R.defaultChars),void 0===r&&(r=!0);let n=function(t){let e=v[t];if(e)return e;e=v[t]=[];for(let t=0;t<128;t++){let r=String.fromCharCode(t);/^[0-9a-z]$/i.test(r)?e.push(r):e.push("%"+("0"+t.toString(16).toUpperCase()).slice(-2))}for(let r=0;r<t.length;r++)e[t.charCodeAt(r)]=t[r];return e}(e),i="";for(let e=0,a=t.length;e<a;e++){let o=t.charCodeAt(e);if(r&&37===o&&e+2<a&&/^[0-9a-f]{2}$/i.test(t.slice(e+1,e+3))){i+=t.slice(e,e+3),e+=2;continue}if(o<128){i+=n[o];continue}if(o>=55296&&o<=57343){if(o>=55296&&o<=56319&&e+1<a){let r=t.charCodeAt(e+1);if(r>=56320&&r<=57343){i+=encodeURIComponent(t[e]+t[e+1]),e++;continue}}i+="%EF%BF%BD";continue}i+=encodeURIComponent(t[e])}return i}R.defaultChars=";/?:@&=+$,-_.!~*'()#",R.componentChars="-_.!~*'()";var b=R;function x(t){let e="";return e+=t.protocol||"",e+=t.slashes?"//":"",e+=t.auth?t.auth+"@":"",t.hostname&&-1!==t.hostname.indexOf(":")?e+="["+t.hostname+"]":e+=t.hostname||"",e+=t.port?":"+t.port:"",e+=t.pathname||"",e+=t.search||"",e+=t.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]*)?$/,N=["%","/","?",";","#"].concat(["'"].concat(["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n"," "]))),L=["/","?","#"],_=/^[+a-z0-9A-Z_-]{0,63}$/,T=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,P={javascript:!0,"javascript:":!0},I={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};M.prototype.parse=function(t,e){let r,n,i,a=t;if(a=a.trim(),!e&&1===t.split("#").length){let t=O.exec(a);if(t)return this.pathname=t[1],t[2]&&(this.search=t[2]),this}let o=S.exec(a);if(o&&(r=(o=o[0]).toLowerCase(),this.protocol=o,a=a.substr(o.length)),(e||o||a.match(/^\/\/[^@\/]+@[^@\/]+/))&&(i="//"===a.substr(0,2))&&!(o&&P[o])&&(a=a.substr(2),this.slashes=!0),!P[o]&&(i||o&&!I[o])){let t,e,r=-1;for(let t=0;t<L.length;t++)-1!==(n=a.indexOf(L[t]))&&(-1===r||n<r)&&(r=n);-1!==(e=-1===r?a.lastIndexOf("@"):a.lastIndexOf("@",r))&&(t=a.slice(0,e),a=a.slice(e+1),this.auth=t),r=-1;for(let t=0;t<N.length;t++)-1!==(n=a.indexOf(N[t]))&&(-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 t=this.hostname.split(/\./);for(let e=0,r=t.length;e<r;e++){let r=t[e];if(r&&!r.match(_)){let n="";for(let t=0,e=r.length;t<e;t++)r.charCodeAt(t)>127?n+="x":n+=r[t];if(!n.match(_)){let n=t.slice(0,e),i=t.slice(e+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),I[r]&&this.hostname&&!this.pathname&&(this.pathname=""),this},M.prototype.parseHost=function(t){let e=w.exec(t);e&&(":"!==(e=e[0])&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)};var C=function(t,e){if(t&&t instanceof M)return t;let r=new M;return r.parse(t,e),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(t){let e=atob(t),r=-2&e.length,n=new Uint16Array(r/2);for(let t=0,i=0;t<r;t+=2){let r=e.charCodeAt(t),a=e.charCodeAt(t+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(t){return t>=h.ZERO&&t<=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(t,e,r){this.decodeTree=t,this.emitCodePoint=e,this.errors=r}state=p.EntityStart;consumed=1;result=0;treeIndex=0;excess=1;decodeMode=d.Strict;runConsumed=0;startEntity(t){this.decodeMode=t,this.state=p.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1,this.runConsumed=0}write(t,e){switch(this.state){case p.EntityStart:if(t.charCodeAt(e)===h.NUM)return this.state=p.NumericStart,this.consumed+=1,this.stateNumericStart(t,e+1);return this.state=p.NamedEntity,this.stateNamedEntity(t,e);case p.NumericStart:return this.stateNumericStart(t,e);case p.NumericDecimal:return this.stateNumericDecimal(t,e);case p.NumericHex:return this.stateNumericHex(t,e);case p.NamedEntity:return this.stateNamedEntity(t,e)}}stateNumericStart(t,e){return e>=t.length?-1:(32|t.charCodeAt(e))===h.LOWER_X?(this.state=p.NumericHex,this.consumed+=1,this.stateNumericHex(t,e+1)):(this.state=p.NumericDecimal,this.stateNumericDecimal(t,e))}stateNumericHex(t,e){for(;e<t.length;){var r;let n=t.charCodeAt(e);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 t=n<=h.NINE?n-h.ZERO:(32|n)-h.LOWER_A+10;this.result=16*this.result+t,this.consumed++,e++}}return -1}stateNumericDecimal(t,e){for(;e<t.length;){let r=t.charCodeAt(e);if(!D(r))return this.emitNumericEntity(r,2);this.result=10*this.result+(r-h.ZERO),this.consumed++,e++}return -1}emitNumericEntity(t,e){var r;if(this.consumed<=e)return this.errors?.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===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&&(t!==h.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,e){let{decodeTree:r}=this,n=r[this.treeIndex],i=(n&u.VALUE_LENGTH)>>14;for(;e<t.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(t.charCodeAt(e)!==r)return 0===this.result?0:this.emitNotTerminatedNamedEntity();e++,this.excess++,this.runConsumed++}for(;this.runConsumed<a;){if(e>=t.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(t.charCodeAt(e)!==a)return this.runConsumed=0,0===this.result?0:this.emitNotTerminatedNamedEntity();e++,this.excess++,this.runConsumed++}this.runConsumed=0,this.treeIndex+=1+(a>>1),i=((n=r[this.treeIndex])&u.VALUE_LENGTH)>>14}if(e>=t.length)break;let a=t.charCodeAt(e);if(a===h.SEMI&&0!==i&&(n&u.FLAG13)!=0)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);if(this.treeIndex=function(t,e,r,n){let i=(e&u.BRANCH_LENGTH)>>7,a=e&u.JUMP_TABLE;if(0===i)return 0!==a&&n===a?r:-1;if(a){let e=n-a;return e<0||e>=i?-1:t[r+e]-1}let o=i+1>>1,s=0,l=i-1;for(;s<=l;){let e=s+l>>>1,i=t[r+(e>>1)]>>(1&e)*8&255;if(i<n)s=e+1;else{if(!(i>n))return t[r+o+e];l=e-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(t){var e;return t===h.EQUALS||(e=t)>=h.UPPER_A&&e<=h.UPPER_Z||e>=h.LOWER_A&&e<=h.LOWER_Z||D(e)}(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)}e++,this.excess++}return -1}emitNotTerminatedNamedEntity(){let{result:t,decodeTree:e}=this,r=(e[t]&u.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,r,this.consumed),this.errors?.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,e,r){let{decodeTree:n}=this;return this.emitCodePoint(1===e?n[t]&~(u.VALUE_LENGTH|u.FLAG13):n[t+1],r),3===e&&this.emitCodePoint(n[t+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 Z=(n="",i=new Q(Y,t=>n+=String.fromCodePoint(t)),function(t,e){let r=0,a=0;for(;(a=t.indexOf("&",a))>=0;){n+=t.slice(r,a),i.startEntity(e);let o=i.write(t,a+1);if(o<0){r=a+i.end();break}r=a+o,a=0===o?r+1:r}let o=n+t.slice(r);return n="",o});function B(t){return Z(t,d.Strict)}var K=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(t={}){this.opts={...this.opts,...t}}set(t={}){return this.opts={...this.opts,...t},this.cache={},this}escapeRE(t){return t.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}nestedPairRE(t,e,r=4){let n=this.escapeRE(t),i=this.escapeRE(e),a=`(?:(?!${this.src_ZCc}|${n}|${i}).)`,o=`${n}${a}{0,1000}${i}`;for(let t=2;t<=r;t++)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 t="[0-9A-Fa-f]{1,4}",e=`(?:(?:${t}:${t})|${this.get_ipv4_addr().source})`;return this.cache.src_ip6_addr??=RegExp(`(?:(?:${t}:){6}${e}|::(?:${t}:){5}${e}|(?:${t})?::(?:${t}:){4}${e}|(?:(?:${t}:){0,1}${t})?::(?:${t}:){3}${e}|(?:(?:${t}:){0,2}${t})?::(?:${t}:){2}${e}|(?:(?:${t}:){0,3}${t})?::${t}:${e}|(?:(?:${t}:){0,4}${t})?::${e}|(?:(?:${t}:){0,5}${t})?::${t}|(?:(?:${t}:){0,6}${t})?::)`)}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 t=[...new Set(this.opts.tlds||[])].sort().reverse().join("|");return this.cache.tld=RegExp(`${t||"$#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(t=>this.escapeRE(t)).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")}},$={validate:(t,e,r)=>{let n=r.re.get_http_validator();n.lastIndex=e;let i=n.exec(t);return i?i[0].length:0},normalize:(t,e)=>e.normalize(t)},G={"http:":$,"https:":$,"ftp:":$,"//":{validate:function(t,e,r){let n=r.re.get_relative_proto_validator();n.lastIndex=e;let i=n.exec(t);return i?e>=3&&":"===t[e-3]||e>=3&&"/"===t[e-3]?0:i[0].length:0},normalize:(t,e)=>e.normalize(t)},"mailto:":{validate:function(t,e,r){let n=r.re.get_mailto_validator();n.lastIndex=e;let i=n.exec(t);return i?i[0].length:0},normalize:(t,e)=>e.normalize(t)}},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(t=>{let e=t.indexOf(":"),r=t.slice(0,e);for(let n of t.slice(e+1))a.push(r+n)}),a),urlAuth:!1,maxLength:1e4},z=class{schema;index;lastIndex;raw;text;url;constructor(t,e,r,n){let i=t.slice(r,n);this.schema=e.toLowerCase(),this.index=r,this.lastIndex=n,this.raw=i,this.text=i,this.url=i}},J=class{__opts__;__schemas__;re;constructor(t={}){let{rebuilder:e,...r}=t;this.__opts__={...H,...r},this.__schemas__={...G},this.re=e||new K,this.re.set({...this.__opts__,schema_names:Object.keys(this.__schemas__)})}add(t,e=null){if(e){let r={normalize:(t,e)=>e.normalize(t),...e};this.__schemas__[t]=r}else delete this.__schemas__[t];return this.re.set({...this.__opts__,schema_names:Object.keys(this.__schemas__)}),this}set(t={}){return this.__opts__={...this.__opts__,...t},this.re.set({...this.__opts__,schema_names:Object.keys(this.__schemas__)}),this}test(t){let e,r;if(!t.length)return!1;for((r=this.re.get_schema_search()).lastIndex=0;null!==(e=r.exec(t));)if(this.testSchemaAt(t,e[2],r.lastIndex))return!0;if(this.__opts__.fuzzyLink&&this.__schemas__["http:"]&&((r=this.re.get_fuzzy_link_search()).lastIndex=0,null!==r.exec(t)))return!0;if(this.__opts__.fuzzyEmail&&this.__schemas__["mailto:"]&&t.indexOf("@")>=0){let r=this.re.get_fuzzy_mail_host_search(),n=this.re.get_mail_name_validator();for(r.lastIndex=0;null!==(e=r.exec(t));){let r=t.slice(Math.max(0,e.index-65),e.index);if(n.test(r))return!0}}return!1}testSchemaAt(t,e,r){return this.__schemas__[e.toLowerCase()]?this.__schemas__[e.toLowerCase()].validate(t.slice(0,r+this.__opts__.maxLength),r,this):0}match(t){let e,r,n,i,a,o,s=[],l=this.re.get_schema_search(),c=!1,u=!1,h=!1,p=0;if(!t.length)return null;for(l.lastIndex=0,this.__opts__.fuzzyLink&&this.__schemas__["http:"]&&((e=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 e=r.exec(t);if(!e){h=!0,a=void 0;break}let i=n.exec(t.slice(Math.max(0,e.index-65),e.index));if(i){if((a={schema:"mailto:",index:e.index-i[1].length,lastIndex:e.index+e[0].length}).index>=p)break;r.lastIndex<f&&(r.lastIndex=f)}}if(e&&!u&&(!i||i.index<p))for(e.lastIndex<f&&(e.lastIndex=f);;){let r=e.exec(t);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;e.lastIndex<f&&(e.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 e=l.exec(t);if(!e){c=!0;break}o={schema:e[2],index:e.index+e[1].length,lastIndex:e.index+e[0].length}}if(o.index<p){o=void 0;continue}if(m&&o.index>m.index)break;let e=o;o=void 0;let r=this.testSchemaAt(t,e.schema,e.lastIndex);if(r){d={schema:e.schema,index:e.index,lastIndex:e.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(t,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(t){if(!t.length)return null;let e=this.re.get_schema_at_start().exec(t);if(!e)return null;let r=this.testSchemaAt(t,e[2],e[0].length);if(!r)return null;let n=new z(t,e[2],e.index+e[1].length,e.index+e[0].length+r);return this.__schemas__[n.schema].normalize(n,this),n}tlds(t,e=!1){return t=Array.isArray(t)?t:[t],e?this.__opts__.tlds=this.__opts__.tlds.concat(t):this.__opts__.tlds=t,this.re.set({...this.__opts__,schema_names:Object.keys(this.__schemas__)}),this}normalize(t){t.schema||(t.url=`http://${t.url}`),"mailto:"!==t.schema||/^mailto:/i.test(t.url)||(t.url=`mailto:${t.url}`)}};let j=/^xn--/,q=/[^\0-\x7F]/,tt=/[\x2E\u3002\uFF0E\uFF61]/g,te={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},tr=Math.floor,tn=String.fromCharCode;function ti(t){throw RangeError(te[t])}function ta(t,e){let r=t.split("@"),n="";return r.length>1&&(n=r[0]+"@",t=r[1]),n+(function(t,e){let r=[],n=t.length;for(;n--;)r[n]=e(t[n]);return r})((t=t.replace(tt,".")).split("."),e).join(".")}let to=function(t,e){return t+22+75*(t<26)-((0!=e)<<5)},ts=function(t,e,r){let n=0;for(t=r?tr(t/700):t>>1,t+=tr(t/e);t>455;n+=36)t=tr(t/35);return tr(n+36*t/(t+38))},tl=function(t){let e=[],r=t.length,n=0,i=128,a=72,o=t.lastIndexOf("-");o<0&&(o=0);for(let r=0;r<o;++r)t.charCodeAt(r)>=128&&ti("not-basic"),e.push(t.charCodeAt(r));for(let l=o>0?o+1:0;l<r;){let o=n;for(let e=1,i=36;;i+=36){var s;l>=r&&ti("invalid-input");let o=(s=t.charCodeAt(l++))>=48&&s<58?26+(s-48):s>=65&&s<91?s-65:s>=97&&s<123?s-97:36;o>=36&&ti("invalid-input"),o>tr((0x7fffffff-n)/e)&&ti("overflow"),n+=o*e;let c=i<=a?1:i>=a+26?26:i-a;if(o<c)break;let u=36-c;e>tr(0x7fffffff/u)&&ti("overflow"),e*=u}let c=e.length+1;a=ts(n-o,c,0==o),tr(n/c)>0x7fffffff-i&&ti("overflow"),i+=tr(n/c),n%=c,e.splice(n++,0,i)}return String.fromCodePoint(...e)},tc=function(t){let e=[],r=(t=function(t){let e=[],r=0,n=t.length;for(;r<n;){let i=t.charCodeAt(r++);if(i>=55296&&i<=56319&&r<n){let n=t.charCodeAt(r++);(64512&n)==56320?e.push(((1023&i)<<10)+(1023&n)+65536):(e.push(i),r--)}else e.push(i)}return e}(t)).length,n=128,i=0,a=72;for(let r of t)r<128&&e.push(tn(r));let o=e.length,s=o;for(o&&e.push("-");s<r;){let r=0x7fffffff;for(let e of t)e>=n&&e<r&&(r=e);let l=s+1;for(let c of(r-n>tr((0x7fffffff-i)/l)&&ti("overflow"),i+=(r-n)*l,n=r,t))if(c<n&&++i>0x7fffffff&&ti("overflow"),c===n){let t=i;for(let r=36;;r+=36){let n=r<=a?1:r>=a+26?26:r-a;if(t<n)break;let i=t-n,o=36-n;e.push(tn(to(n+i%o,0))),t=tr(i/o)}e.push(tn(to(t,0))),a=ts(i,l,s===o),i=0,++s}++i,++n}return e.join("")};var tu=Object.defineProperty,th=(t,e)=>{let r={};for(var n in t)tu(r,n,{get:t[n],enumerable:!0});return e||tu(r,Symbol.toStringTag,{value:"Module"}),r},tp=th({arrayReplaceAt:()=>tf,asciiTrim:()=>tX,callable:()=>td,escapeHtml:()=>tO,escapeRE:()=>tL,fromCodePoint:()=>tg,isMdAsciiPunct:()=>tC,isPunctChar:()=>tP,isPunctCharCode:()=>tI,isSpace:()=>t_,isValidEntityCode:()=>tm,isWhiteSpace:()=>tT,lib:()=>tU,normalizeReference:()=>tk,unescapeAll:()=>tb,unescapeMd:()=>tR});function td(t){let e=function(...r){return Reflect.construct(t,r,new.target&&new.target!==e?new.target:t)};return Object.defineProperty(e,"name",{value:t.name}),Object.setPrototypeOf(e,t),e.prototype=t.prototype,e}function tf(t,e,r){return[].concat(t.slice(0,e),r,t.slice(e+1))}function tm(t){return(!(t>=55296)||!(t<=57343))&&(!(t>=64976)||!(t<=65007))&&(65535&t)!=65535&&(65535&t)!=65534&&(!(t>=0)||!(t<=8))&&11!==t&&(!(t>=14)||!(t<=31))&&(!(t>=127)||!(t<=159))&&!(t>1114111)&&!0}function tg(t){return t>65535?String.fromCharCode(55296+((t-=65536)>>10),56320+(1023&t)):String.fromCharCode(t)}var tA=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,ty=RegExp(`${tA.source}|${/&([a-z#][a-z0-9]{1,31});/gi.source}`,"gi"),tv=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function tR(t){return 0>t.indexOf("\\")?t:t.replace(tA,"$1")}function tb(t){return 0>t.indexOf("\\")&&0>t.indexOf("&")?t:t.replace(ty,function(t,e,r){if(e)return e;if(35===r.charCodeAt(0)&&tv.test(r)){let e="x"===r[1].toLowerCase()?parseInt(r.slice(2),16):parseInt(r.slice(1),10);return tm(e)?tg(e):t}let n=B(t);return n!==t?n:t})}var tx=/[&<>"]/,tM=/[&<>"]/g,tS={"&":"&","<":"<",">":">",'"':"""};function tw(t){return tS[t]}function tO(t){return tx.test(t)?t.replace(tM,tw):t}var tN=/[.?*+^$[\]\\(){}|-]/g;function tL(t){return t.replace(tN,"\\$&")}function t_(t){switch(t){case 9:case 32:return!0}return!1}function tT(t){if(t>=8192&&t<=8202)return!0;switch(t){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 tP(t){return U.test(t)||W.test(t)}function tI(t){return tP(tg(t))}function tC(t){switch(t){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 tk(t){return(t=t.trim().replace(/\s+/g," ")).toLowerCase().toUpperCase()}function tF(t){return 32===t||9===t||10===t||13===t}function tX(t){let e=0;for(;e<t.length&&tF(t.charCodeAt(e));e++);let r=t.length-1;for(;r>=e&&tF(t.charCodeAt(r));r--);return t.slice(e,r+1)}var tU={mdurl:f,ucmicro:m};function tW(t,e,r){let n,i,a,o,s=t.posMax,l=t.pos;for(t.pos=e+1,n=1;t.pos<s;){if(93===(a=t.src.charCodeAt(t.pos))&&0==--n){i=!0;break}if(o=t.pos,t.md.inline.skipToken(t),91===a){if(o===t.pos-1)n++;else if(r)return t.pos=l,-1}}let c=-1;return i&&(c=t.pos),t.pos=l,c}function tV(t,e,r){let n,i=e,a={ok:!1,pos:0,str:""};if(60===t.charCodeAt(i)){for(i++;i<r&&10!==(n=t.charCodeAt(i))&&60!==n;){if(62===n){a.pos=i+1,a.str=tb(t.slice(e+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=t.charCodeAt(i))&&!(n<32)&&127!==n;){if(92===n&&i+1<r){if(32===t.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 e===i||0!==o||(a.str=tb(t.slice(e,i)),a.pos=i,a.ok=!0),a}function tE(t,e,r,n){let i,a=e,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=t.charCodeAt(a);if(34!==n&&39!==n&&40!==n)return o;e++,a++,40===n&&(n=41),o.marker=n}for(;a<r;){if((i=t.charCodeAt(a))===o.marker)return o.pos=a+1,o.str+=tb(t.slice(e,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+=tb(t.slice(e,a)),o}var tY=th({parseLinkDestination:()=>tV,parseLinkLabel:()=>tW,parseLinkTitle:()=>tE});function tD(t){return(tD="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function tQ(t,e,r){var n;return(n=function(t,e){if("object"!=tD(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=tD(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==tD(n)?n:n+"")in t)?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var tZ=class{constructor(t,e,r){tQ(this,"map",null),tQ(this,"level",0),tQ(this,"children",null),tQ(this,"content",""),tQ(this,"markup",""),tQ(this,"info",""),tQ(this,"block",!1),tQ(this,"hidden",!1),this.type=t,this.tag=e,this.attrs=null,this.nesting=r,this.meta=null}attrIndex(t){if(!this.attrs)return -1;let e=this.attrs;for(let r=0,n=e.length;r<n;r++)if(e[r][0]===t)return r;return -1}attrPush(t){this.attrs?this.attrs.push(t):this.attrs=[t]}attrSet(t,e){let r=this.attrIndex(t),n=[t,e];r<0?this.attrPush(n):this.attrs[r]=n}attrGet(t){let e=this.attrIndex(t),r=null;return e>=0&&(r=this.attrs[e][1]),r}attrJoin(t,e){let r=this.attrIndex(t);r<0?this.attrPush([t,e]):this.attrs[r][1]=`${this.attrs[r][1]} ${e}`}},tB=class{constructor(){tQ(this,"__rules__",[]),tQ(this,"__cache__",null)}__find__(t){for(let e=0;e<this.__rules__.length;e++)if(this.__rules__[e].name===t)return e;return -1}__compile__(){let t=new Set;this.__rules__.forEach(e=>{e.enabled&&e.alt.forEach(e=>{e&&t.add(e)})}),this.__cache__=Object.create(null),this.__cache__[""]=[],this.__rules__.forEach(t=>{t.enabled&&this.__cache__[""].push(t.fn)}),t.forEach(t=>{this.__cache__[t]=[],this.__rules__.forEach(e=>{e.enabled&&e.alt.indexOf(t)>=0&&this.__cache__[t].push(e.fn)})})}at(t,e,r={}){let n=this.__find__(t);if(-1===n)throw Error(`Parser rule not found: ${t}`);this.__rules__[n].fn=e,this.__rules__[n].alt=r.alt||[],this.__cache__=null}before(t,e,r,n={}){let i=this.__find__(t);if(-1===i)throw Error(`Parser rule not found: ${t}`);this.__rules__.splice(i,0,{name:e,enabled:!0,fn:r,alt:n.alt||[]}),this.__cache__=null}after(t,e,r,n={}){let i=this.__find__(t);if(-1===i)throw Error(`Parser rule not found: ${t}`);this.__rules__.splice(i+1,0,{name:e,enabled:!0,fn:r,alt:n.alt||[]}),this.__cache__=null}push(t,e,r={}){this.__rules__.push({name:t,enabled:!0,fn:e,alt:r.alt||[]}),this.__cache__=null}enable(t,e=!1){Array.isArray(t)||(t=[t]);let r=[];return t.forEach(t=>{let n=this.__find__(t);if(n<0){if(e)return;throw Error(`Rules manager: invalid rule name ${t}`)}this.__rules__[n].enabled=!0,r.push(t)}),this.__cache__=null,r}enableOnly(t,e=!1){Array.isArray(t)||(t=[t]),this.__rules__.forEach(t=>{t.enabled=!1}),this.enable(t,e)}disable(t,e=!1){Array.isArray(t)||(t=[t]);let r=[];return t.forEach(t=>{let n=this.__find__(t);if(n<0){if(e)return;throw Error(`Rules manager: invalid rule name ${t}`)}this.__rules__[n].enabled=!1,r.push(t)}),this.__cache__=null,r}getRules(t){return this.__cache__||this.__compile__(),this.__cache__[t]||[]}},tK={};tK.code_inline=function(t,e,r,n,i){let a=t[e];return`<code${i.renderAttrs(a)}>${tO(a.content)}</code>`},tK.code_block=function(t,e,r,n,i){let a=t[e];return`<pre${i.renderAttrs(a)}><code>${tO(t[e].content)}</code></pre>
|
|
140
140
|
`},tK.fence=function(t,e,r,n,i){let a,o=t[e],s=o.info?tb(o.info).trim():"",l="",c="";if(s){let t=s.split(/(\s+)/g);l=t[0],c=t.slice(2).join("")}if(0===(a=r.highlight&&r.highlight(o.content,l,c)||tO(o.content)).indexOf("<pre"))return a+"\n";if(s){let t=o.attrIndex("class"),e=o.attrs?o.attrs.slice():[];return t<0?e.push(["class",`${r.langPrefix}${l}`]):(e[t]=[e[t][0],e[t][1]],e[t][1]+=` ${r.langPrefix}${l}`),`<pre><code${i.renderAttrs({attrs:e})}>${a}</code></pre>
|
|
141
141
|
`}return`<pre><code${i.renderAttrs(o)}>${a}</code></pre>
|
|
142
|
-
`},tK.image=function(t,e,r,n,i){let a=t[e];return a.attrs[a.attrIndex("alt")][1]=i.renderInlineAsText(a.children,r,n),i.renderToken(t,e,r)},tK.hardbreak=function(t,e,r){return r.xhtmlOut?"<br />\n":"<br>\n"},tK.softbreak=function(t,e,r){return r.breaks?r.xhtmlOut?"<br />\n":"<br>\n":"\n"},tK.text=function(t,e){return tO(t[e].content)},tK.html_block=function(t,e){return t[e].content},tK.html_inline=function(t,e){return t[e].content};var t$=class{constructor(){tQ(this,"rules",Object.assign({},tK))}renderAttrs(t){let e,r,n;if(!t.attrs)return"";for(e=0,n="",r=t.attrs.length;e<r;e++)n+=` ${tO(t.attrs[e][0])}="${tO(String(t.attrs[e][1]))}"`;return n}renderToken(t,e,r){let n=t[e],i="";if(n.hidden)return"";let a=e-1;for(;a>=0&&t[a].hidden&&0===t[a].nesting;)a--;n.block&&-1!==n.nesting&&a>=0&&t[a].hidden&&-1===t[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=e+1;for(;r<t.length&&t[r].hidden&&0===t[r].nesting;)r++;if(r<t.length){let e=t[r];"inline"===e.type||e.hidden?o=!1:-1===e.nesting&&e.tag===n.tag&&(o=!1)}}return i+(o?">\n":">")}renderInline(t,e,r){let n="",i=this.rules;for(let a=0,o=t.length;a<o;a++){let o=t[a].type;void 0!==i[o]?n+=i[o](t,a,e,r,this):n+=this.renderToken(t,a,e)}return n}renderInlineAsText(t,e,r){let n="";for(let i=0,a=t.length;i<a;i++)switch(t[i].type){case"text":case"code_inline":case"html_inline":case"html_block":n+=t[i].content;break;case"image":n+=this.renderInlineAsText(t[i].children,e,r);break;case"softbreak":case"hardbreak":n+="\n"}return n}render(t,e,r){let n="",i=this.rules;for(let a=0,o=t.length;a<o;a++){let o=t[a].type;"inline"===o?n+=this.renderInline(t[a].children,e,r):void 0!==i[o]?n+=i[o](t,a,e,r,this):n+=this.renderToken(t,a,e)}return n}},tG=class{constructor(t,e,r){tQ(this,"tokens",[]),tQ(this,"inlineMode",!1),tQ(this,"Token",tZ),this.src=t,this.env=r,this.md=e}},tH=/\r\n?|\n/g,tz=/\0/g,tJ=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,tj=/\((c|tm|r)\)/i,tq=/\((c|tm|r)\)/gi,t0={c:"©",r:"®",tm:"™"};function t1(t,e){return t0[e.toLowerCase()]}var t2=/['"]/,t3=/['"]/g;function t5(t,e,r,n){t[e]||(t[e]=[]),t[e].push({pos:r,ch:n})}var t4=[["normalize",function(t){let e;e=(e=t.src.replace(tH,"\n")).replace(tz,"�"),t.src=e}],["block",function(t){let e;t.inlineMode?((e=new t.Token("inline","",0)).content=t.src,e.map=[0,1],e.children=[],t.tokens.push(e)):t.md.block.parse(t.src,t.md,t.env,t.tokens)}],["strip_references",function(t){let e=t.tokens,r=0;for(let t=0;t<e.length;t++)"reference_definition"!==e[t].type&&(t!==r&&(e[r]=e[t]),r++);e.length!==r&&(e.length=r)}],["inline",function(t){let e=t.tokens;for(let r=0,n=e.length;r<n;r++){let n=e[r];"inline"===n.type&&t.md.inline.parse(n.content,t.md,t.env,n.children)}}],["linkify",function(t){let e=t.tokens;if(t.md.options.linkify)for(let i=0,a=e.length;i<a;i++){if("inline"!==e[i].type||!t.md.linkify.test(e[i].content))continue;let a=e[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&&t.md.linkify.test(l.content)){let r=l.content,n=t.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 e=0;e<n.length;e++){let i=n[e].url,a=t.md.normalizeLink(i);if(!t.md.validateLink(a))continue;let s=n[e].text;s=n[e].schema?"mailto:"!==n[e].schema||/^mailto:/i.test(s)?t.md.normalizeLinkText(s):t.md.normalizeLinkText(`mailto:${s}`).replace(/^mailto:/,""):t.md.normalizeLinkText(`http://${s}`).replace(/^http:\/\//,"");let l=n[e].index;if(l>u){let e=new t.Token("text","",0);e.content=r.slice(u,l),e.level=c,o.push(e)}let h=new t.Token("link_open","a",1);h.attrs=[["href",a]],h.level=c++,h.markup="linkify",h.info="auto",o.push(h);let p=new t.Token("text","",0);p.content=s,p.level=c,o.push(p);let d=new t.Token("link_close","a",-1);d.level=--c,d.markup="linkify",d.info="auto",o.push(d),u=n[e].lastIndex}if(u<r.length){let e=new t.Token("text","",0);e.content=r.slice(u),e.level=c,o.push(e)}e[i].children=a=tf(a,s,o)}}}}],["replacements",function(t){let e;if(t.md.options.typographer)for(e=t.tokens.length-1;e>=0;e--)"inline"===t.tokens[e].type&&(tj.test(t.tokens[e].content)&&function(t){let e=0;for(let r=t.length-1;r>=0;r--){let n=t[r];"text"!==n.type||e||(n.content=n.content.replace(tq,t1)),"link_open"===n.type&&"auto"===n.info&&e--,"link_close"===n.type&&"auto"===n.info&&e++}}(t.tokens[e].children),tJ.test(t.tokens[e].content)&&function(t){let e=0;for(let r=t.length-1;r>=0;r--){let n=t[r];"text"===n.type&&!e&&tJ.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&&e--,"link_close"===n.type&&"auto"===n.info&&e++}}(t.tokens[e].children))}],["smartquotes",function(t){if(t.md.options.typographer)for(let e=t.tokens.length-1;e>=0;e--)"inline"===t.tokens[e].type&&t2.test(t.tokens[e].content)&&function(t,e){let r,n=[],i={};for(let a=0;a<t.length;a++){let o=t[a],s=t[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;){t3.lastIndex=c;let o=t3.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"!==t[r].type&&"hardbreak"!==t[r].type;r--)if(t[r].content){f=t[r].content.charCodeAt(t[r].content.length-1);break}let m=32;if(c<u)m=l.charCodeAt(c);else for(r=a+1;r<t.length&&"softbreak"!==t[r].type&&"hardbreak"!==t[r].type;r++)if(t[r].content){m=t[r].content.charCodeAt(0);break}let g=tC(f)||tI(f),A=tC(m)||tI(m),y=tT(f),v=tT(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&&t5(i,a,o.index,"’");continue}if(p)for(r=n.length-1;r>=0;r--){let t=n[r];if(n[r].level<s)break;if(t.single===d&&n[r].level===s){let s,l;t=n[r],d?(s=e.md.options.quotes[2],l=e.md.options.quotes[3]):(s=e.md.options.quotes[0],l=e.md.options.quotes[1]),t5(i,a,o.index,l),t5(i,t.token,t.pos,s),n.length=r;continue i}}h?n.push({token:a,pos:o.index,single:d,level:s}):p&&d&&t5(i,a,o.index,"’")}}Object.keys(i).forEach(function(e){let r=Number(e);t[r].content=function(t,e){let r="",n=0;e.sort((t,e)=>t.pos-e.pos);for(let i=0;i<e.length;i++){let a=e[i];r+=t.slice(n,a.pos)+a.ch,n=a.pos+1}return r+t.slice(n)}(t[r].content,i[e])})}(t.tokens[e].children,t)}],["text_join",function(t){let e,r,n=t.tokens,i=n.length;for(let t=0;t<i;t++){if("inline"!==n[t].type)continue;let i=n[t].children,a=i.length;for(e=0;e<a;e++)"text_special"===i[e].type&&(i[e].type="text"),i[e].children&&function(t){let e,r,n=t.length;for(e=0;e<n;e++)"text_special"===t[e].type&&(t[e].type="text");for(e=r=0;e<n;e++)"text"===t[e].type&&e+1<n&&"text"===t[e+1].type?t[e+1].content=t[e].content+t[e+1].content:(e!==r&&(t[r]=t[e]),r++);e!==r&&(t.length=r)}(i[e].children);for(e=r=0;e<a;e++)"text"===i[e].type&&e+1<a&&"text"===i[e+1].type?i[e+1].content=i[e].content+i[e+1].content:(e!==r&&(i[r]=i[e]),r++);e!==r&&(i.length=r)}}]],t6=class{constructor(){tQ(this,"ruler",new tB),tQ(this,"State",tG);for(let t=0;t<t4.length;t++)this.ruler.push(t4[t][0],t4[t][1])}process(t){let e=this.ruler.getRules("");for(let r=0,n=e.length;r<n;r++)e[r](t)}},t8=class{constructor(t,e,r,n){tQ(this,"bMarks",[]),tQ(this,"eMarks",[]),tQ(this,"tShift",[]),tQ(this,"sCount",[]),tQ(this,"bsCount",[]),tQ(this,"blkIndent",0),tQ(this,"line",0),tQ(this,"lineMax",0),tQ(this,"tight",!1),tQ(this,"listIndent",-1),tQ(this,"parentType","root"),tQ(this,"level",0),tQ(this,"Token",tZ),this.src=t,this.md=e,this.env=r,this.tokens=n;let i=this.src;for(let t=0,e=0,r=0,n=0,a=i.length,o=!1;e<a;e++){let s=i.charCodeAt(e);if(!o)if(t_(s)){r++,9===s?n+=4-n%4:n++;continue}else o=!0;(10===s||e===a-1)&&(10!==s&&e++,this.bMarks.push(t),this.eMarks.push(e),this.tShift.push(r),this.sCount.push(n),this.bsCount.push(0),o=!1,r=0,n=0,t=e+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(t,e,r){let n=new tZ(t,e,r);return n.block=!0,r<0&&this.level--,n.level=this.level,r>0&&this.level++,this.tokens.push(n),n}isEmpty(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]}skipEmptyLines(t){for(let e=this.lineMax;t<e&&!(this.bMarks[t]+this.tShift[t]<this.eMarks[t]);t++);return t}skipSpaces(t){for(let e=this.src.length;t<e&&t_(this.src.charCodeAt(t));t++);return t}skipSpacesBack(t,e){if(t<=e)return t;for(;t>e;)if(!t_(this.src.charCodeAt(--t)))return t+1;return t}skipChars(t,e){for(let r=this.src.length;t<r&&this.src.charCodeAt(t)===e;t++);return t}skipCharsBack(t,e,r){if(t<=r)return t;for(;t>r;)if(e!==this.src.charCodeAt(--t))return t+1;return t}getLines(t,e,r,n){if(t>=e)return"";let i=Array(e-t);for(let a=0,o=t;o<e;o++,a++){let t,s=0,l=this.bMarks[o],c=l;for(t=o+1<e||n?this.eMarks[o]+1:this.eMarks[o];c<t&&s<r;){let t=this.src.charCodeAt(c);if(t_(t))9===t?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,t):i[a]=this.src.slice(c,t)}return i.join("")}};function t9(t,e){let r=t.bMarks[e]+t.tShift[e],n=t.eMarks[e];return t.src.slice(r,n)}function t7(t){let e=[],r=t.length,n=0,i=t.charCodeAt(n),a=!1,o=0,s="";for(;n<r;)124===i&&(a?(s+=t.substring(o,n-1),o=n):(e.push(s+t.substring(o,n)),s="",o=n+1)),a=92===i,n++,i=t.charCodeAt(n);return e.push(s+t.substring(o)),e}function et(t,e){let r=t.eMarks[e],n=t.bMarks[e]+t.tShift[e],i=t.src.charCodeAt(n++);return 42!==i&&45!==i&&43!==i||n<r&&!t_(t.src.charCodeAt(n))?-1:n}function ee(t,e){let r=t.bMarks[e]+t.tShift[e],n=t.eMarks[e],i=r;if(i+1>=n)return -1;let a=t.src.charCodeAt(i++);if(a<48||a>57)return -1;for(;;){if(i>=n)return -1;if((a=t.src.charCodeAt(i++))>=48&&a<=57){if(i-r>=10)return -1;continue}if(41===a||46===a)break;return -1}return i<n&&!t_(a=t.src.charCodeAt(i))?-1:i}var er="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",en="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",ei=RegExp(`^(?:${er}|${en}|<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->|<[?][\\s\\S]*?[?]>|<![A-Za-z][^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)`),ea=RegExp(`^(?:${er}|${en})`),eo=[[/^<(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(`${ea.source}\\s*$`),/^$/,!1]],es=[["table",function(t,e,r,n){let i;if(e+2>r)return!1;let a=e+1;if(t.sCount[a]<t.blkIndent||t.sCount[a]-t.blkIndent>=4)return!1;let o=t.bMarks[a]+t.tShift[a];if(o>=t.eMarks[a])return!1;let s=t.src.charCodeAt(o++);if(124!==s&&45!==s&&58!==s||o>=t.eMarks[a])return!1;let l=t.src.charCodeAt(o++);if(124!==l&&45!==l&&58!==l&&!t_(l)||45===s&&t_(l))return!1;for(;o<t.eMarks[a];){let e=t.src.charCodeAt(o);if(124!==e&&45!==e&&58!==e&&!t_(e))return!1;o++}let c=t9(t,e+1),u=c.split("|"),h=[];for(let t=0;t<u.length;t++){let e=u[t].trim();if(!e)if(0===t||t===u.length-1)continue;else return!1;if(!/^:?-+:?$/.test(e))return!1;58===e.charCodeAt(e.length-1)?h.push(58===e.charCodeAt(0)?"center":"right"):58===e.charCodeAt(0)?h.push("left"):h.push("")}if(-1===(c=t9(t,e).trim()).indexOf("|")||t.sCount[e]-t.blkIndent>=4)return!1;(u=t7(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=t.parentType;t.parentType="table";let f=t.md.block.ruler.getRules("blockquote"),m=t.push("table_open","table",1),g=[e,0];m.map=g,t.push("thead_open","thead",1).map=[e,e+1],t.push("tr_open","tr",1).map=[e,e+1];for(let e=0;e<u.length;e++){let r=t.push("th_open","th",1);h[e]&&(r.attrs=[["style",`text-align:${h[e]}`]]);let n=t.push("inline","",0);n.content=u[e].trim(),n.children=[],t.push("th_close","th",-1)}t.push("tr_close","tr",-1),t.push("thead_close","thead",-1);let A=0;for(a=e+2;a<r&&!(t.sCount[a]<t.blkIndent);a++){let n=!1;for(let e=0,i=f.length;e<i;e++)if(f[e](t,a,r,!0)){n=!0;break}if(n||!(c=t9(t,a).trim())||t.sCount[a]-t.blkIndent>=4||((u=t7(c)).length&&""===u[0]&&u.shift(),u.length&&""===u[u.length-1]&&u.pop(),(A+=p-u.length)>65536))break;a===e+2&&(t.push("tbody_open","tbody",1).map=i=[e+2,0]),t.push("tr_open","tr",1).map=[a,a+1];for(let e=0;e<p;e++){let r=t.push("td_open","td",1);h[e]&&(r.attrs=[["style",`text-align:${h[e]}`]]);let n=t.push("inline","",0);n.content=u[e]?u[e].trim():"",n.children=[],t.push("td_close","td",-1)}t.push("tr_close","tr",-1)}return i&&(t.push("tbody_close","tbody",-1),i[1]=a),t.push("table_close","table",-1),g[1]=a,t.parentType=d,t.line=a,!0},["paragraph","reference"]],["code",function(t,e,r){if(t.sCount[e]-t.blkIndent<4)return!1;let n=e+1,i=n;for(;n<r;){if(t.isEmpty(n)){n++;continue}if(t.sCount[n]-t.blkIndent>=4){i=++n;continue}break}t.line=i;let a=t.push("code_block","code",0);return a.content=t.getLines(e,i,4+t.blkIndent,!1)+"\n",a.map=[e,t.line],!0}],["fence",function(t,e,r,n){let i=t.bMarks[e]+t.tShift[e],a=t.eMarks[e];if(t.sCount[e]-t.blkIndent>=4||i+3>a)return!1;let o=t.src.charCodeAt(i);if(126!==o&&96!==o)return!1;let s=i,l=(i=t.skipChars(i,o))-s;if(l<3)return!1;let c=t.src.slice(s,i),u=t.src.slice(i,a);if(96===o&&u.indexOf(String.fromCharCode(o))>=0)return!1;if(n)return!0;let h=e,p=!1;for(;!(++h>=r)&&(!((i=s=t.bMarks[h]+t.tShift[h])<(a=t.eMarks[h]))||!(t.sCount[h]<t.blkIndent));){;if(!(t.src.charCodeAt(i)!==o||t.sCount[h]-t.blkIndent>=4||(i=t.skipChars(i,o))-s<l)&&!((i=t.skipSpaces(i))<a)){p=!0;break}}l=t.sCount[e],t.line=h+ +!!p;let d=t.push("fence","code",0);return d.info=u,d.content=t.getLines(e+1,h,l,!0),d.markup=c,d.map=[e,t.line],!0},["paragraph","reference","blockquote","list"]],["blockquote",function(t,e,r,n){let i,a=t.bMarks[e]+t.tShift[e],o=t.eMarks[e],s=t.lineMax;if(t.sCount[e]-t.blkIndent>=4||62!==t.src.charCodeAt(a))return!1;if(n)return!0;let l=[],c=[],u=[],h=[],p=t.md.block.ruler.getRules("blockquote"),d=t.parentType;t.parentType="blockquote";let f=!1;for(i=e;i<r;i++){let e=t.sCount[i]<t.blkIndent;if((a=t.bMarks[i]+t.tShift[i])>=(o=t.eMarks[i]))break;if(62===t.src.charCodeAt(a++)&&!e){let e,r,n=t.sCount[i]+1;32===t.src.charCodeAt(a)?(a++,n++,r=!1,e=!0):9===t.src.charCodeAt(a)?(e=!0,(t.bsCount[i]+n)%4==3?(a++,n++,r=!1):r=!0):e=!1;let s=n;for(l.push(t.bMarks[i]),t.bMarks[i]=a;a<o;){let e=t.src.charCodeAt(a);if(t_(e))9===e?s+=4-(s+t.bsCount[i]+ +!!r)%4:s++;else break;a++}f=a>=o,c.push(t.bsCount[i]),t.bsCount[i]=t.sCount[i]+1+ +!!e,u.push(t.sCount[i]),t.sCount[i]=s-n,h.push(t.tShift[i]),t.tShift[i]=a-t.bMarks[i];continue}if(f)break;let n=!1;for(let e=0,a=p.length;e<a;e++)if(p[e](t,i,r,!0)){n=!0;break}if(n){t.lineMax=i,0!==t.blkIndent&&(l.push(t.bMarks[i]),c.push(t.bsCount[i]),h.push(t.tShift[i]),u.push(t.sCount[i]),t.sCount[i]-=t.blkIndent);break}l.push(t.bMarks[i]),c.push(t.bsCount[i]),h.push(t.tShift[i]),u.push(t.sCount[i]),t.sCount[i]=-1}let m=t.blkIndent;t.blkIndent=0;let g=t.push("blockquote_open","blockquote",1);g.markup=">";let A=[e,0];g.map=A,t.md.block.tokenize(t,e,i),t.push("blockquote_close","blockquote",-1).markup=">",t.lineMax=s,t.parentType=d,A[1]=t.line;for(let r=0;r<h.length;r++)t.bMarks[r+e]=l[r],t.tShift[r+e]=h[r],t.sCount[r+e]=u[r],t.bsCount[r+e]=c[r];return t.blkIndent=m,!0},["paragraph","reference","blockquote","list"]],["hr",function(t,e,r,n){let i=t.eMarks[e];if(t.sCount[e]-t.blkIndent>=4)return!1;let a=t.bMarks[e]+t.tShift[e],o=t.src.charCodeAt(a++);if(42!==o&&45!==o&&95!==o)return!1;let s=1;for(;a<i;){let e=t.src.charCodeAt(a++);if(e!==o&&!t_(e))return!1;e===o&&s++}if(s<3)return!1;if(n)return!0;t.line=e+1;let l=t.push("hr","hr",0);return l.map=[e,t.line],l.markup=Array(s+1).join(String.fromCharCode(o)),!0},["paragraph","reference","blockquote","list"]],["list",function(t,e,r,n){let i,a,o,s,l,c,u,h=e,p=!0;if(t.sCount[h]-t.blkIndent>=4||t.listIndent>=0&&t.sCount[h]-t.listIndent>=4&&t.sCount[h]<t.blkIndent)return!1;let d=!1;if(n&&"paragraph"===t.parentType&&t.sCount[h]>=t.blkIndent&&(d=!0),(u=ee(t,h))>=0){if(l=!0,o=t.bMarks[h]+t.tShift[h],c=Number(t.src.slice(o,u-1)),d&&1!==c)return!1}else{if(!((u=et(t,h))>=0))return!1;l=!1}if(d&&t.skipSpaces(u)>=t.eMarks[h])return!1;if(n)return!0;let f=t.src.charCodeAt(u-1),m=t.tokens.length;l?(s=t.push("ordered_list_open","ol",1),1!==c&&(s.attrs=[["start",c]])):s=t.push("bullet_list_open","ul",1);let g=[h,0];s.map=g,s.markup=String.fromCharCode(f);let A=!1,y=t.md.block.ruler.getRules("list"),v=t.parentType;for(t.parentType="list";h<r;){let e;a=u,i=t.eMarks[h];let n=t.sCount[h]+u-(t.bMarks[h]+t.tShift[h]),c=n;for(;a<i;){let e=t.src.charCodeAt(a);if(9===e)c+=4-(c+t.bsCount[h])%4;else if(32===e)c++;else break;a++}let d=a;(e=d>=i?1:c-n)>4&&(e=1);let m=n+e;(s=t.push("list_item_open","li",1)).markup=String.fromCharCode(f);let g=[h,0];s.map=g,l&&(s.info=t.src.slice(o,u-1));let v=t.tight,R=t.tShift[h],b=t.sCount[h],x=t.listIndent;if(t.listIndent=t.blkIndent,t.blkIndent=m,t.tight=!0,t.tShift[h]=d-t.bMarks[h],t.sCount[h]=c,d>=i&&t.isEmpty(h+1)?t.line=Math.min(t.line+2,r):t.md.block.tokenize(t,h,r),(!t.tight||A)&&(p=!1),A=t.line-h>1&&t.isEmpty(t.line-1),t.blkIndent=t.listIndent,t.listIndent=x,t.tShift[h]=R,t.sCount[h]=b,t.tight=v,(s=t.push("list_item_close","li",-1)).markup=String.fromCharCode(f),h=t.line,g[1]=h,h>=r||t.sCount[h]<t.blkIndent||t.sCount[h]-t.blkIndent>=4)break;let M=!1;for(let e=0,n=y.length;e<n;e++)if(y[e](t,h,r,!0)){M=!0;break}if(M)break;if(l){if((u=ee(t,h))<0)break;o=t.bMarks[h]+t.tShift[h]}else if((u=et(t,h))<0)break;if(f!==t.src.charCodeAt(u-1))break}return(s=l?t.push("ordered_list_close","ol",-1):t.push("bullet_list_close","ul",-1)).markup=String.fromCharCode(f),g[1]=h,t.line=h,t.parentType=v,p&&function(t,e){let r=t.level+2;for(let n=e+2,i=t.tokens.length-2;n<i;n++)t.tokens[n].level===r&&"paragraph_open"===t.tokens[n].type&&(t.tokens[n+2].hidden=!0,t.tokens[n].hidden=!0,n+=2)}(t,m),!0},["paragraph","reference","blockquote"]],["reference",function(t,e,r,n){let i,a=t.bMarks[e]+t.tShift[e],o=t.eMarks[e],s=e+1;if(t.sCount[e]-t.blkIndent>=4||91!==t.src.charCodeAt(a))return!1;function l(e){let r=t.lineMax;if(e>=r||t.isEmpty(e))return null;let n=!1;if(t.sCount[e]-t.blkIndent>3&&(n=!0),t.sCount[e]<0&&(n=!0),!n){let n=t.md.block.ruler.getRules("reference"),i=t.parentType;t.parentType="reference";let a=!1;for(let i=0,o=n.length;i<o;i++)if(n[i](t,e,r,!0)){a=!0;break}if(t.parentType=i,a)return null}let i=t.bMarks[e]+t.tShift[e],a=t.eMarks[e];return t.src.slice(i,a+1)}let c=t.src.slice(a,o+1);o=c.length;let u=-1;for(a=1;a<o;a++){let t=c.charCodeAt(a);if(91===t)return!1;if(93===t){u=a;break}if(10===t){let t=l(s);null!==t&&(c+=t,o=c.length,s++)}else if(92===t&&++a<o&&10===c.charCodeAt(a)){let t=l(s);null!==t&&(c+=t,o=c.length,s++)}}if(u<0||58!==c.charCodeAt(u+1))return!1;for(a=u+2;a<o;a++){let t=c.charCodeAt(a);if(10===t){let t=l(s);null!==t&&(c+=t,o=c.length,s++)}else if(t_(t));else break}let h=t.md.helpers.parseLinkDestination(c,a,o);if(!h.ok)return!1;let p=t.md.normalizeLink(h.str);if(!t.md.validateLink(p))return!1;let d=a=h.pos,f=s,m=a;for(;a<o;a++){let t=c.charCodeAt(a);if(10===t){let t=l(s);null!==t&&(c+=t,o=c.length,s++)}else if(t_(t));else break}let g=t.md.helpers.parseLinkTitle(c,a,o);for(;g.can_continue;){let e=l(s);if(null===e)break;c+=e,a=o,o=c.length,s++,g=t.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&&t_(c.charCodeAt(a));)a++;if(a<o&&10!==c.charCodeAt(a)&&i)for(i="",a=d,s=f;a<o&&t_(c.charCodeAt(a));)a++;if(a<o&&10!==c.charCodeAt(a))return!1;let A=tk(c.slice(1,u));if(!A)return!1;if(n)return!0;void 0===t.env.references&&(t.env.references={}),void 0===t.env.references[A]&&(t.env.references[A]={title:i,href:p});let y=t.push("reference_definition","",0);y.map=[e,s],y.hidden=!0;let v=Object.create(null);return v.label=A,y.meta=v,t.line=s,!0}],["html_block",function(t,e,r,n){let i=t.bMarks[e]+t.tShift[e],a=t.eMarks[e];if(t.sCount[e]-t.blkIndent>=4||!t.md.options.html||60!==t.src.charCodeAt(i))return!1;let o=t.src.slice(i,a),s=0;for(;s<eo.length&&!eo[s][0].test(o);s++);if(s===eo.length)return!1;if(n)return eo[s][2];let l=e+1,c=eo[s][1].test("");if(!eo[s][1].test(o)){for(;l<r&&(!(t.sCount[l]<t.blkIndent)||!c&&t.isEmpty(l));l++)if(i=t.bMarks[l]+t.tShift[l],a=t.eMarks[l],o=t.src.slice(i,a),eo[s][1].test(o)){0!==o.length&&l++;break}}t.line=l;let u=t.push("html_block","",0);return u.map=[e,l],u.content=t.getLines(e,l,t.blkIndent,!0),!0},["paragraph","reference","blockquote"]],["heading",function(t,e,r,n){let i=t.bMarks[e]+t.tShift[e],a=t.eMarks[e];if(t.sCount[e]-t.blkIndent>=4)return!1;let o=t.src.charCodeAt(i);if(35!==o||i>=a)return!1;let s=1;for(o=t.src.charCodeAt(++i);35===o&&i<a&&s<=6;)s++,o=t.src.charCodeAt(++i);if(s>6||i<a&&!t_(o))return!1;if(n)return!0;a=t.skipSpacesBack(a,i);let l=t.skipCharsBack(a,35,i);l>i&&t_(t.src.charCodeAt(l-1))&&(a=l),t.line=e+1;let c=t.push("heading_open",`h${s}`,1);c.markup="########".slice(0,s),c.map=[e,t.line];let u=t.push("inline","",0);return u.content=tX(t.src.slice(i,a)),u.map=[e,t.line],u.children=[],t.push("heading_close",`h${s}`,-1).markup="########".slice(0,s),!0},["paragraph","reference","blockquote"]],["lheading",function(t,e,r){let n,i=t.md.block.ruler.getRules("paragraph");if(t.sCount[e]-t.blkIndent>=4)return!1;let a=t.parentType;t.parentType="paragraph";let o=0,s=e+1;for(;s<r&&!t.isEmpty(s);s++){if(t.sCount[s]-t.blkIndent>3)continue;if(t.sCount[s]>=t.blkIndent){let e=t.bMarks[s]+t.tShift[s],r=t.eMarks[s];if(e<r&&(45===(n=t.src.charCodeAt(e))||61===n)&&(e=t.skipChars(e,n),(e=t.skipSpaces(e))>=r)){o=61===n?1:2;break}}if(t.sCount[s]<0)continue;let e=!1;for(let n=0,a=i.length;n<a;n++)if(i[n](t,s,r,!0)){e=!0;break}if(e)break}if(!o)return t.parentType=a,!1;let l=tX(t.getLines(e,s,t.blkIndent,!1));t.line=s+1;let c=t.push("heading_open",`h${o}`,1);c.markup=String.fromCharCode(n),c.map=[e,t.line];let u=t.push("inline","",0);return u.content=l,u.map=[e,t.line-1],u.children=[],t.push("heading_close",`h${o}`,-1).markup=String.fromCharCode(n),t.parentType=a,!0}],["paragraph",function(t,e,r){let n=t.md.block.ruler.getRules("paragraph"),i=t.parentType,a=e+1;for(t.parentType="paragraph";a<r&&!t.isEmpty(a);a++){if(t.sCount[a]-t.blkIndent>3||t.sCount[a]<0)continue;let e=!1;for(let i=0,o=n.length;i<o;i++)if(n[i](t,a,r,!0)){e=!0;break}if(e)break}let o=tX(t.getLines(e,a,t.blkIndent,!1));t.line=a,t.push("paragraph_open","p",1).map=[e,t.line];let s=t.push("inline","",0);return s.content=o,s.map=[e,t.line],s.children=[],t.push("paragraph_close","p",-1),t.parentType=i,!0}]],el=class{constructor(){tQ(this,"ruler",new tB),tQ(this,"State",t8);for(let t=0;t<es.length;t++)this.ruler.push(es[t][0],es[t][1],{alt:(es[t][2]||[]).slice()})}tokenize(t,e,r){let n=this.ruler.getRules(""),i=n.length,a=t.md.options.maxNesting,o=e,s=!1;for(;o<r&&(t.line=o=t.skipEmptyLines(o),!(o>=r)&&!(t.sCount[o]<t.blkIndent));){if(t.level>=a){t.line=r;break}let e=t.line,l=!1;for(let a=0;a<i;a++)if(l=n[a](t,o,r,!1)){if(e>=t.line)throw Error("block rule didn't increment state.line");break}if(!l)throw Error("none of the block rules matched");t.tight=!s,t.isEmpty(t.line-1)&&(s=!0),(o=t.line)<r&&t.isEmpty(o)&&(s=!0,t.line=++o)}}parse(t,e,r,n){if(!t)return;let i=new this.State(t,e,r,n);this.tokenize(i,i.line,i.lineMax)}},ec=class{constructor(t,e,r,n){tQ(this,"pos",0),tQ(this,"level",0),tQ(this,"pending",""),tQ(this,"pendingLevel",0),tQ(this,"cache",{}),tQ(this,"backticks",{}),tQ(this,"backticksScanned",!1),tQ(this,"linkLevel",0),tQ(this,"delimiters",[]),tQ(this,"_prev_delimiters",[]),tQ(this,"Token",tZ),this.src=t,this.env=r,this.md=e,this.tokens=n,this.tokens_meta=Array(n.length),this.posMax=this.src.length}pushPending(){let t=new tZ("text","",0);return t.content=this.pending,t.level=this.pendingLevel,this.tokens.push(t),this.pending="",t}push(t,e,r){let n;this.pending&&this.pushPending();let i=new tZ(t,e,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(t,e){let r,n=this.posMax,i=this.src.charCodeAt(t);if(0===t)r=32;else if(1===t)(63488&(r=this.src.charCodeAt(0)))==55296&&(r=65533);else if((64512&(r=this.src.charCodeAt(t-1)))==56320){let e=this.src.charCodeAt(t-2);r=(64512&e)==55296?65536+(e-55296<<10)+(r-56320):65533}else(64512&r)==55296&&(r=65533);let a=t;for(;a<n&&this.src.charCodeAt(a)===i;)a++;let o=a-t,s=a<n?this.src.charCodeAt(a):32;if((64512&s)==55296){let t=this.src.charCodeAt(a+1);s=(64512&t)==56320?65536+(s-55296<<10)+(t-56320):65533}else(64512&s)==56320&&(s=65533);let l=tC(r)||tI(r),c=tC(s)||tI(s),u=tT(r),h=tT(s),p=!h&&(!c||u||l),d=!u&&(!l||h||c);return{can_open:p&&(e||!d||l),can_close:d&&(e||!p||c),length:o}}},eu=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i,eh=[];for(let t=0;t<256;t++)eh.push(0);function ep(t,e){let r,n=[],i=e.length;for(let a=0;a<i;a++){let i=e[a];if(126!==i.marker||-1===i.end)continue;let o=e[i.end];(r=t.tokens[i.token]).type="s_open",r.tag="s",r.nesting=1,r.markup="~~",r.content="",(r=t.tokens[o.token]).type="s_close",r.tag="s",r.nesting=-1,r.markup="~~",r.content="","text"===t.tokens[o.token-1].type&&"~"===t.tokens[o.token-1].content&&n.push(o.token-1)}for(;n.length;){let e=n.pop(),i=e+1;for(;i<t.tokens.length&&"s_close"===t.tokens[i].type;)i++;e!==--i&&(r=t.tokens[i],t.tokens[i]=t.tokens[e],t.tokens[e]=r)}}"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(t){eh[t.charCodeAt(0)]=1});function ed(t,e){let r=e.length;for(let n=r-1;n>=0;n--){let r=e[n];if(95!==r.marker&&42!==r.marker||-1===r.end)continue;let i=e[r.end],a=n>0&&e[n-1].end===r.end+1&&e[n-1].marker===r.marker&&e[n-1].token===r.token-1&&e[r.end+1].token===i.token+1,o=String.fromCharCode(r.marker),s=t.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=t.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&&(t.tokens[e[n-1].token].content="",t.tokens[e[r.end+1].token].content="",n--)}}var ef=/^([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])?)*)$/,em=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/,eg=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,eA=/^&([a-z][a-z0-9]{1,31});/i;function ey(t){let e={},r=t.length;if(!r)return;let n=0,i=-2,a=[];for(let o=0;o<r;o++){let r=t[o];if(a.push(0),(t[n].marker!==r.marker||i!==r.token-1)&&(n=o),i=r.token,r.length=r.length||0,!r.close)continue;e.hasOwnProperty(r.marker)||(e[r.marker]=[-1,-1,-1,-1,-1,-1]);let s=e[r.marker][3*!!r.open+r.length%3],l=n-a[n]-1,c=l;for(;l>s;l-=a[l]+1){let e=t[l];if(e.marker===r.marker&&e.open&&e.end<0){let n=!1;if((e.close||r.open)&&(e.length+r.length)%3==0&&(e.length%3!=0||r.length%3!=0)&&(n=!0),!n){let n=l>0&&!t[l-1].open?a[l-1]+1:0;a[o]=o-l+n,a[l]=n,r.open=!1,e.end=o,e.close=!1,c=-1,i=-2;break}}}-1!==c&&(e[r.marker][3*!!r.open+(r.length||0)%3]=c)}}var ev=[["text",function(t,e){let r=t.pos;for(;r<t.posMax&&!function(t){switch(t){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}}(t.src.charCodeAt(r));)r++;return r!==t.pos&&(e||(t.pending+=t.src.slice(t.pos,r)),t.pos=r,!0)}],["linkify",function(t,e){if(!t.md.options.linkify||t.linkLevel>0)return!1;let r=t.pos;if(r+3>t.posMax||58!==t.src.charCodeAt(r)||47!==t.src.charCodeAt(r+1)||47!==t.src.charCodeAt(r+2))return!1;let n=t.pending.match(eu);if(!n)return!1;let i=n[1],a=t.md.linkify.matchAtStart(t.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=t.md.normalizeLink(o);if(!t.md.validateLink(l))return!1;if(!e){t.pending=t.pending.slice(0,-i.length);let e=t.push("link_open","a",1);e.attrs=[["href",l]],e.markup="linkify",e.info="auto",t.push("text","",0).content=t.md.normalizeLinkText(o);let r=t.push("link_close","a",-1);r.markup="linkify",r.info="auto"}return t.pos+=o.length-i.length,!0}],["newline",function(t,e){let r=t.pos;if(10!==t.src.charCodeAt(r))return!1;let n=t.pending.length-1,i=t.posMax;if(!e)if(n>=0&&32===t.pending.charCodeAt(n))if(n>=1&&32===t.pending.charCodeAt(n-1)){let e=n-1;for(;e>=1&&32===t.pending.charCodeAt(e-1);)e--;t.pending=t.pending.slice(0,e),t.push("hardbreak","br",0)}else t.pending=t.pending.slice(0,-1),t.push("softbreak","br",0);else t.push("softbreak","br",0);for(r++;r<i&&t_(t.src.charCodeAt(r));)r++;return t.pos=r,!0}],["escape",function(t,e){let r=t.pos,n=t.posMax;if(92!==t.src.charCodeAt(r)||++r>=n)return!1;let i=t.src.charCodeAt(r);if(10===i){for(e||t.push("hardbreak","br",0),r++;r<n&&t_(i=t.src.charCodeAt(r));)r++;return t.pos=r,!0}if(32===i){if(!e){let e=t.push("text_special","",0);e.content="\\",e.markup="\\",e.info="escape"}return t.pos=r,!0}let a=t.src[r];if(i>=55296&&i<=56319&&r+1<n){let e=t.src.charCodeAt(r+1);e>=56320&&e<=57343&&(a+=t.src[r+1],r++)}let o="\\"+a;if(!e){let e=t.push("text_special","",0);i<256&&0!==eh[i]?e.content=a:e.content=o,e.markup=o,e.info="escape"}return t.pos=r+1,!0}],["backticks",function(t,e){let r,n=t.pos;if(96!==t.src.charCodeAt(n))return!1;let i=n;n++;let a=t.posMax;for(;n<a&&96===t.src.charCodeAt(n);)n++;let o=t.src.slice(i,n),s=o.length;if(t.backticksScanned&&(t.backticks[s]||0)<=i)return e||(t.pending+=o),t.pos+=s,!0;let l=n;for(;-1!==(r=t.src.indexOf("`",l));){for(l=r+1;l<a&&96===t.src.charCodeAt(l);)l++;let i=l-r;if(i===s){if(!e){let e=t.push("code_inline","code",0);e.markup=o,e.content=t.src.slice(n,r).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return t.pos=l,!0}t.backticks[i]=r}return t.backticksScanned=!0,e||(t.pending+=o),t.pos+=s,!0}],["strikethrough",function(t,e){let r=t.pos,n=t.src.charCodeAt(r);if(e||126!==n)return!1;let i=t.scanDelims(t.pos,!0),a=i.length,o=String.fromCharCode(n);if(a<2)return!1;a%2&&(t.push("text","",0).content=o,a--);for(let e=0;e<a;e+=2)t.push("text","",0).content=o+o,t.delimiters.push({marker:n,length:0,token:t.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return t.pos+=i.length,!0}],["emphasis",function(t,e){let r=t.pos,n=t.src.charCodeAt(r);if(e||95!==n&&42!==n)return!1;let i=t.scanDelims(t.pos,42===n);for(let e=0;e<i.length;e++)t.push("text","",0).content=String.fromCharCode(n),t.delimiters.push({marker:n,length:i.length,token:t.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return t.pos+=i.length,!0}],["link",function(t,e){let r,n,i,a,o="",s="",l=t.pos,c=!0;if(91!==t.src.charCodeAt(t.pos))return!1;let u=t.pos,h=t.posMax,p=t.pos+1,d=t.md.helpers.parseLinkLabel(t,t.pos,!0);if(d<0)return!1;let f=d+1;if(f<h&&40===t.src.charCodeAt(f)){for(c=!1,f++;f<h&&(t_(r=t.src.charCodeAt(f))||10===r);f++);if(f>=h)return!1;if(l=f,(i=t.md.helpers.parseLinkDestination(t.src,f,t.posMax)).ok){for(o=t.md.normalizeLink(i.str),t.md.validateLink(o)?f=i.pos:o="",l=f;f<h&&(t_(r=t.src.charCodeAt(f))||10===r);f++);if(i=t.md.helpers.parseLinkTitle(t.src,f,t.posMax),f<h&&l!==f&&i.ok)for(s=i.str,f=i.pos;f<h&&(t_(r=t.src.charCodeAt(f))||10===r);f++);}(f>=h||41!==t.src.charCodeAt(f))&&(c=!0),f++}if(c){if(void 0===t.env.references)return!1;if(f<h&&91===t.src.charCodeAt(f)?(l=f+1,(f=t.md.helpers.parseLinkLabel(t,f))>=0?n=t.src.slice(l,f++):f=d+1):f=d+1,n||(n=t.src.slice(p,d)),n=tk(n),!(a=t.env.references[n]))return t.pos=u,!1;o=a.href,s=a.title}if(!e){t.pos=p,t.posMax=d;let e=t.push("link_open","a",1),r=[["href",o]];if(e.attrs=r,s&&r.push(["title",s]),n){let t=Object.create(null);t.label=n,e.meta=t}t.linkLevel++,t.md.inline.tokenize(t),t.linkLevel--,t.push("link_close","a",-1)}return t.pos=f,t.posMax=h,!0}],["image",function(t,e){let r,n,i,a,o,s,l,c,u="",h=t.pos,p=t.posMax;if(33!==t.src.charCodeAt(t.pos)||91!==t.src.charCodeAt(t.pos+1))return!1;let d=t.pos+2,f=t.md.helpers.parseLinkLabel(t,t.pos+1,!1);if(f<0)return!1;if((a=f+1)<p&&40===t.src.charCodeAt(a)){for(a++;a<p&&(t_(r=t.src.charCodeAt(a))||10===r);a++);if(a>=p)return!1;for(c=a,(s=t.md.helpers.parseLinkDestination(t.src,a,t.posMax)).ok&&(u=t.md.normalizeLink(s.str),t.md.validateLink(u)?a=s.pos:u=""),c=a;a<p&&(t_(r=t.src.charCodeAt(a))||10===r);a++);if(s=t.md.helpers.parseLinkTitle(t.src,a,t.posMax),a<p&&c!==a&&s.ok)for(l=s.str,a=s.pos;a<p&&(t_(r=t.src.charCodeAt(a))||10===r);a++);else l="";if(a>=p||41!==t.src.charCodeAt(a))return t.pos=h,!1;a++}else{if(void 0===t.env.references)return!1;if(a<p&&91===t.src.charCodeAt(a)?(c=a+1,(a=t.md.helpers.parseLinkLabel(t,a))>=0?i=t.src.slice(c,a++):a=f+1):a=f+1,i||(i=t.src.slice(d,f)),i=tk(i),!(o=t.env.references[i]))return t.pos=h,!1;u=o.href,l=o.title}if(!e){n=t.src.slice(d,f);let e=[];t.md.inline.parse(n,t.md,t.env,e);let r=t.push("image","img",0),a=[["src",u],["alt",""]];if(r.attrs=a,r.children=e,r.content=n,l&&a.push(["title",l]),i){let t=Object.create(null);t.label=i,r.meta=t}}return t.pos=a,t.posMax=p,!0}],["autolink",function(t,e){let r=t.pos;if(60!==t.src.charCodeAt(r))return!1;let n=t.pos,i=t.posMax;for(;;){if(++r>=i)return!1;let e=t.src.charCodeAt(r);if(60===e)return!1;if(62===e)break}let a=t.src.slice(n+1,r);if(em.test(a)){let r=t.md.normalizeLink(a);if(!t.md.validateLink(r))return!1;if(!e){let e=t.push("link_open","a",1);e.attrs=[["href",r]],e.markup="autolink",e.info="auto",t.push("text","",0).content=t.md.normalizeLinkText(a);let n=t.push("link_close","a",-1);n.markup="autolink",n.info="auto"}return t.pos+=a.length+2,!0}if(ef.test(a)){let r=t.md.normalizeLink(`mailto:${a}`);if(!t.md.validateLink(r))return!1;if(!e){let e=t.push("link_open","a",1);e.attrs=[["href",r]],e.markup="autolink",e.info="auto",t.push("text","",0).content=t.md.normalizeLinkText(a);let n=t.push("link_close","a",-1);n.markup="autolink",n.info="auto"}return t.pos+=a.length+2,!0}return!1}],["html_inline",function(t,e){let r;if(!t.md.options.html)return!1;let n=t.posMax,i=t.pos;if(60!==t.src.charCodeAt(i)||i+2>=n)return!1;let a=t.src.charCodeAt(i+1);if(33!==a&&63!==a&&47!==a&&(!((r=32|a)>=97)||!(r<=122)))return!1;let o=t.src.slice(i).match(ei);if(!o)return!1;if(!e){var s,l;let e=t.push("html_inline","",0);e.content=o[0],s=e.content,/^<a[>\s]/i.test(s)&&t.linkLevel++,l=e.content,/^<\/a\s*>/i.test(l)&&t.linkLevel--}return t.pos+=o[0].length,!0}],["entity",function(t,e){let r=t.pos,n=t.posMax;if(38!==t.src.charCodeAt(r)||r+1>=n)return!1;if(35===t.src.charCodeAt(r+1)){let n=t.src.slice(r).match(eg);if(n){if(!e){let e="x"===n[1][0].toLowerCase()?parseInt(n[1].slice(1),16):parseInt(n[1],10),r=t.push("text_special","",0);r.content=tm(e)?tg(e):tg(65533),r.markup=n[0],r.info="entity"}return t.pos+=n[0].length,!0}}else{let n=t.src.slice(r).match(eA);if(n){let r=B(n[0]);if(r!==n[0]){if(!e){let e=t.push("text_special","",0);e.content=r,e.markup=n[0],e.info="entity"}return t.pos+=n[0].length,!0}}}return!1}]],eR=[["balance_pairs",function(t){let e=t.tokens_meta,r=t.tokens_meta.length;ey(t.delimiters);for(let t=0;t<r;t++){var n;let r=null==(n=e[t])?void 0:n.delimiters;r&&ey(r)}}],["strikethrough",function(t){let e=t.tokens_meta,r=t.tokens_meta.length;ep(t,t.delimiters);for(let i=0;i<r;i++){var n;let r=null==(n=e[i])?void 0:n.delimiters;r&&ep(t,r)}}],["emphasis",function(t){let e=t.tokens_meta,r=t.tokens_meta.length;ed(t,t.delimiters);for(let i=0;i<r;i++){var n;let r=null==(n=e[i])?void 0:n.delimiters;r&&ed(t,r)}}],["fragments_join",function(t){let e,r,n=0,i=t.tokens,a=t.tokens.length;for(e=r=0;e<a;e++)i[e].nesting<0&&n--,i[e].level=n,i[e].nesting>0&&n++,"text"===i[e].type&&e+1<a&&"text"===i[e+1].type?i[e+1].content=i[e].content+i[e+1].content:(e!==r&&(i[r]=i[e]),r++);e!==r&&(i.length=r)}]],eb=class{constructor(){tQ(this,"ruler",new tB),tQ(this,"ruler2",new tB),tQ(this,"State",ec);for(let t=0;t<ev.length;t++)this.ruler.push(ev[t][0],ev[t][1]);for(let t=0;t<eR.length;t++)this.ruler2.push(eR[t][0],eR[t][1])}skipToken(t){let e=t.pos,r=this.ruler.getRules(""),n=r.length,i=t.md.options.maxNesting,a=t.cache;if(void 0!==a[e]){t.pos=a[e];return}let o=!1;if(t.level<i){for(let i=0;i<n;i++)if(t.level++,o=r[i](t,!0),t.level--,o){if(e>=t.pos)throw Error("inline rule didn't increment state.pos");break}}else t.pos=t.posMax;!o&&t.pos++,a[e]=t.pos}tokenize(t){let e=this.ruler.getRules(""),r=e.length,n=t.posMax,i=t.md.options.maxNesting;for(;t.pos<n;){let a=t.pos,o=!1;if(t.level<i){for(let n=0;n<r;n++)if(o=e[n](t,!1)){if(a>=t.pos)throw Error("inline rule didn't increment state.pos");break}}if(o){if(t.pos>=n)break;continue}t.pending+=t.src[t.pos++]}t.pending&&t.pushPending()}parse(t,e,r,n){let i=new this.State(t,e,r,n);this.tokenize(i);let a=this.ruler2.getRules(""),o=a.length;for(let t=0;t<o;t++)a[t](i)}},ex={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"]}}}},eM=/^(vbscript|javascript|file|data):/,eS=/^data:image\/(gif|png|jpeg|webp);/,ew=["http:","https:","mailto:"],eO=class{validateLink(t){let e=t.trim().toLowerCase();return!eM.test(e)||eS.test(e)}normalizeLink(t){let e=C(t,!0);if(e.hostname&&(!e.protocol||ew.indexOf(e.protocol)>=0))try{var r;r=e.hostname,e.hostname=ta(r,function(t){return q.test(t)?"xn--"+tc(t):t})}catch(t){}return b(x(e))}normalizeLinkText(t){let e=C(t,!0);if(e.hostname&&(!e.protocol||ew.indexOf(e.protocol)>=0))try{var r;r=e.hostname,e.hostname=ta(r,function(t){return j.test(t)?tl(t.slice(4).toLowerCase()):t})}catch(t){}return y(x(e),y.defaultChars+"%")}constructor(...t){tQ(this,"inline",new eb),tQ(this,"block",new el),tQ(this,"core",new t6),tQ(this,"renderer",new t$),tQ(this,"linkify",new J),tQ(this,"utils",tp),tQ(this,"helpers",Object.assign({},tY));let[e,r]=t;"string"==typeof e?(this.configure(e),r&&this.set(r)):(this.configure("default"),this.set(e||{}))}set(t){return Object.assign(this.options,t),this}configure(t){let e;if("string"==typeof t){if(!(e=ex[t]))throw Error(`Wrong 'markdown-it' preset "${t}", check name`)}else e=t;if(!e)throw Error("Wrong `markdown-it` preset, can't be empty");e.options&&(this.options={...e.options});let r=e.components;if(r){var n;["core","block","inline"].forEach(t=>{var e;let n=null==(e=r[t])?void 0:e.rules;n&&this[t].ruler.enableOnly(n)});let t=null==(n=r.inline)?void 0:n.rules2;t&&this.inline.ruler2.enableOnly(t)}return this}enable(t,e=!1){let r=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(e=>{r=r.concat(this[e].ruler.enable(t,!0))}),r=r.concat(this.inline.ruler2.enable(t,!0));let n=t.filter(t=>0>r.indexOf(t));if(n.length&&!e)throw Error(`MarkdownIt. Failed to enable unknown rule(s): ${n}`);return this}disable(t,e=!1){let r=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(e=>{r=r.concat(this[e].ruler.disable(t,!0))}),r=r.concat(this.inline.ruler2.disable(t,!0));let n=t.filter(t=>0>r.indexOf(t));if(n.length&&!e)throw Error(`MarkdownIt. Failed to disable unknown rule(s): ${n}`);return this}use(t,...e){return t.apply(t,[this,...e]),this}parse(t,e){if("string"!=typeof t)throw Error("Input data should be a String");let r=new this.core.State(t,this,e);return this.core.process(r),r.tokens}render(t,e={}){return this.renderer.render(this.parse(t,e),this.options,e)}parseInline(t,e){let r=new this.core.State(t,this,e);return r.inlineMode=!0,this.core.process(r),r.tokens}renderInline(t,e={}){return this.renderer.render(this.parseInline(t,e),this.options,e)}};tQ(eO,"Token",tZ),tQ(eO,"Ruler",tB),tQ(eO,"Renderer",t$),tQ(eO,"ParserCore",t6),tQ(eO,"StateCore",tG),tQ(eO,"ParserBlock",el),tQ(eO,"StateBlock",t8),tQ(eO,"ParserInline",eb),tQ(eO,"StateInline",ec);var eN=td(eO)},95802(t,e,r){let n,i,a=new Uint16Array(("Ȁaglq \x15\x18\x1bɭ\x0f\0\0\x12p;䀦os;䀧t;䀾t;䀼uot;䀢".split("")).map(t=>t.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!=(P=String.fromCodePoint)?P:function(t){let e="";return t>65535&&(t-=65536,e+=String.fromCharCode(t>>>10&1023|55296),t=56320|1023&t),e+=String.fromCharCode(t)};function l(t){return t>=I.ZERO&&t<=I.NINE}(N=I||(I={}))[N.NUM=35]="NUM",N[N.SEMI=59]="SEMI",N[N.EQUALS=61]="EQUALS",N[N.ZERO=48]="ZERO",N[N.NINE=57]="NINE",N[N.LOWER_A=97]="LOWER_A",N[N.LOWER_F=102]="LOWER_F",N[N.LOWER_X=120]="LOWER_X",N[N.LOWER_Z=122]="LOWER_Z",N[N.UPPER_A=65]="UPPER_A",N[N.UPPER_F=70]="UPPER_F",N[N.UPPER_Z=90]="UPPER_Z",(L=C||(C={}))[L.VALUE_LENGTH=49152]="VALUE_LENGTH",L[L.BRANCH_LENGTH=16256]="BRANCH_LENGTH",L[L.JUMP_TABLE=127]="JUMP_TABLE",(_=k||(k={}))[_.EntityStart=0]="EntityStart",_[_.NumericStart=1]="NumericStart",_[_.NumericDecimal=2]="NumericDecimal",_[_.NumericHex=3]="NumericHex",_[_.NamedEntity=4]="NamedEntity",(T=F||(F={}))[T.Legacy=0]="Legacy",T[T.Strict=1]="Strict",T[T.Attribute=2]="Attribute";let c=(n="",i=new class t{constructor(t,e,r){this.decodeTree=t,this.emitCodePoint=e,this.errors=r,this.state=k.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=F.Strict}startEntity(t){this.decodeMode=t,this.state=k.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,e){switch(this.state){case k.EntityStart:if(t.charCodeAt(e)===I.NUM)return this.state=k.NumericStart,this.consumed+=1,this.stateNumericStart(t,e+1);return this.state=k.NamedEntity,this.stateNamedEntity(t,e);case k.NumericStart:return this.stateNumericStart(t,e);case k.NumericDecimal:return this.stateNumericDecimal(t,e);case k.NumericHex:return this.stateNumericHex(t,e);case k.NamedEntity:return this.stateNamedEntity(t,e)}}stateNumericStart(t,e){return e>=t.length?-1:(32|t.charCodeAt(e))===I.LOWER_X?(this.state=k.NumericHex,this.consumed+=1,this.stateNumericHex(t,e+1)):(this.state=k.NumericDecimal,this.stateNumericDecimal(t,e))}addToNumericResult(t,e,r,n){if(e!==r){let i=r-e;this.result=this.result*Math.pow(n,i)+Number.parseInt(t.substr(e,i),n),this.consumed+=i}}stateNumericHex(t,e){let r=e;for(;e<t.length;){var n;let i=t.charCodeAt(e);if(!l(i)&&(!((n=i)>=I.UPPER_A)||!(n<=I.UPPER_F))&&(!(n>=I.LOWER_A)||!(n<=I.LOWER_F)))return this.addToNumericResult(t,r,e,16),this.emitNumericEntity(i,3);e+=1}return this.addToNumericResult(t,r,e,16),-1}stateNumericDecimal(t,e){let r=e;for(;e<t.length;){let n=t.charCodeAt(e);if(!l(n))return this.addToNumericResult(t,r,e,10),this.emitNumericEntity(n,2);e+=1}return this.addToNumericResult(t,r,e,10),-1}emitNumericEntity(t,e){var r,n,i;if(this.consumed<=e)return null==(r=this.errors)||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===I.SEMI)this.consumed+=1;else if(this.decodeMode===F.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&&(t!==I.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,e){let{decodeTree:r}=this,n=r[this.treeIndex],i=(n&C.VALUE_LENGTH)>>14;for(;e<t.length;e++,this.excess++){let a=t.charCodeAt(e);if(this.treeIndex=function(t,e,r,n){let i=(e&C.BRANCH_LENGTH)>>7,a=e&C.JUMP_TABLE;if(0===i)return 0!==a&&n===a?r:-1;if(a){let e=n-a;return e<0||e>=i?-1:t[r+e]-1}let o=r,s=o+i-1;for(;o<=s;){let e=o+s>>>1,r=t[e];if(r<n)o=e+1;else{if(!(r>n))return t[e+i];s=e-1}}return -1}(r,n,this.treeIndex+Math.max(1,i),a),this.treeIndex<0)return 0===this.result||this.decodeMode===F.Attribute&&(0===i||function(t){var e;return t===I.EQUALS||(e=t)>=I.UPPER_A&&e<=I.UPPER_Z||e>=I.LOWER_A&&e<=I.LOWER_Z||l(e)}(a))?0:this.emitNotTerminatedNamedEntity();if(0!=(i=((n=r[this.treeIndex])&C.VALUE_LENGTH)>>14)){if(a===I.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==F.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return -1}emitNotTerminatedNamedEntity(){var t;let{result:e,decodeTree:r}=this,n=(r[e]&C.VALUE_LENGTH)>>14;return this.emitNamedEntityData(e,n,this.consumed),null==(t=this.errors)||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,e,r){let{decodeTree:n}=this;return this.emitCodePoint(1===e?n[t]&~C.VALUE_LENGTH:n[t+1],r),3===e&&this.emitCodePoint(n[t+2],r),r}end(){var t;switch(this.state){case k.NamedEntity:return 0!==this.result&&(this.decodeMode!==F.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case k.NumericDecimal:return this.emitNumericEntity(0,2);case k.NumericHex:return this.emitNumericEntity(0,3);case k.NumericStart:return null==(t=this.errors)||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case k.EntityStart:return 0}}}(a,t=>n+=s(t)),function(t,e){let r=0,a=0;for(;(a=t.indexOf("&",a))>=0;){n+=t.slice(r,a),i.startEntity(e);let o=i.write(t,a+1);if(o<0){r=a+i.end();break}r=a+o,a=0===o?r+1:r}let o=n+t.slice(r);return n="",o});function u(t){return c(t,F.Strict)}let h=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?("[^"]*"|'[^']*')/g;function p(t,e={}){let r={type:"tag",name:"",voidElement:!1,attribs:{},children:[]},n=t.match(/<\/?([^\s]+?)[/\s>]/);if(n&&(r.name=n[1],"/"===t.charAt(t.length-2)&&(r.voidElement=!0),r.name.startsWith("!--"))){let e=t.indexOf("--\x3e");return{type:"comment",comment:-1!==e?t.slice(4,e):""}}let i=new RegExp(h),a=null;for(;null!==(a=i.exec(t));)if(a[0].trim()){if(a[1]){let t=a[1].trim(),e=[t,""];t.indexOf("=")>-1&&(e=t.split("=")),r.attribs[e[0]]=e[1],i.lastIndex--}else if(a[2]){let t=a[3].trim().substring(1,a[3].length-1);r.attribs[a[2]]=e.disableDecode?t:u(t)}}return r}let d=/<[a-zA-Z0-9\-!/](?:"[^"]*"|'[^']*'|[^'">])*>/g,f=/^\s*$/,m=["mtext","mi","mn","mo","ms"],g=Object.create(null);function A(t,e){return e.disableDecode?t:u(t)}function y(t,e=!0){let r="";if("text"===t.type){let n=t.data.replace(/[\u2062]|[\u200B]/g,"");e&&(n=n.trim()),r+=n}else t.children&&t.children.forEach(t=>{r+=y(t,e)});return r}let v=/^[\u220f-\u2211]|[\u2229-\u2233]|[\u22c0-\u22c3]$/,R=/^\u220f|\u2211|[\u2229-\u222b]|\u222e|\u222f|\u2232|\u2233|[\u22c0-\u22c3]$/;function b(t){let e=y(t);return!!v.test(e)&&e}function x(t,e,r,n=!1,i=!1){let a=e.attribs?.stretchy,o="true"===a?"1":"false"===a?"0":R.test(t)?"1":"0";return{type:"tag",name:"m:nary",attribs:{},children:[{type:"tag",name:"m:naryPr",attribs:{},children:[{type:"tag",name:"m:chr",attribs:{"m:val":t},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 M={bold:"b",italic:"i","bold-italic":"bi"};function S(t,e,r,n,i,a){let o;if(r.isNary){let t=e.children[e.children.length-1];e=t.children[t.children.length-1]}let s=t.children?.find(t=>"mglyph"===t.name),l=function(t,e,r={}){let n=t.attribs||{},i=n.mathcolor||e.find(t=>"mstyle"===t.name&&t.attribs&&t.attribs.color)?.attribs.color||"",a=n.mathsize||e.find(t=>"mstyle"===t.name&&t.attribs&&t.attribs.mathsize)?.attribs.mathsize||"",o=n.scriptlevel||e.find(t=>"mstyle"===t.name&&t.attribs&&t.attribs.scriptlevel)?.attribs.scriptlevel||"",s=n.mathbackground||e.find(t=>"mstyle"===t.name&&t.attribs&&t.attribs.mathbackground)?.attribs.mathbackground||"",l=n.mathvariant||e.find(t=>"mstyle"===t.name&&t.attribs&&t.attribs.mathvariant)?.attribs.mathvariant||"";"b-i"===l&&(l="bold-italic");let c=n.fontweight||e.find(t=>"mstyle"===t.name&&t.attribs&&t.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||e.find(t=>"mstyle"===t.name&&t.attribs&&t.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 e=y(t);""===r.variant&&("mi"===t.name&&e.length>1||"mn"===t.name&&!/^\d+\.\d+$/.test(e))?l="":["mi","mn","mo"].includes(t.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}}(t,i,r?.style);t.style=l,t.hasMglyphChild=s;let c=Object.keys(l).every(t=>{let e=r?.style;return e&&l[t]===e[t]})&&r?.hasMglyphChild===s;if((a===r?.name||["mi","mn","mo"].includes(a)&&["mi","mn","mo"].includes(r?.name))&&c&&!s){let t=e.children[e.children.length-1];o=t.children[t.children.length-1]}else{let r={name:"m:r",type:"tag",attribs:{},children:[]};if(l.variant){let t={name:"w:rPr",type:"tag",attribs:{},children:[]};l.variant.includes("bold")&&t.children.push({name:"w:b",type:"tag",attribs:{},children:[]}),l.variant.includes("italic")&&t.children.push({name:"w:i",type:"tag",attribs:{},children:[]}),r.children.push(t);let e={name:"m:rPr",type:"tag",attribs:{},children:[{name:"m:nor",type:"tag",attribs:{},children:[]}]},n=M[l.variant]||"p";"i"!==n&&e.children.push({name:"m:sty",type:"tag",attribs:{"m:val":n},children:[]}),r.children.push(e)}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:[]},t.children.length<1&&o.children.push({type:"text",data:""}),r.children.push(o),e.children.push(r)}return o}let w={"←":"⃖","⟵":"⃖","→":"⃗","⟶":"⃗","´":"́","˝":"̋","˘":"̆",ˇ:"̌","¸":"̒","^":"̂","¨":"̈","˙":"̇","`":"̀","-":"̅","¯":"̅","−":"̅",".":"̇","~":"̃","˜":"̃"};function O(t,e,r,n,i,a){if(2!==t.children.length)return e;(i=[...i]).unshift(t);let o=t.children[0],s=t.children[1],l=b(o);if(l&&t.attribs?.accent?.toLowerCase()!=="true"&&t.attribs?.accentunder?.toLowerCase()!=="true"){let r=x(l,t,"undOvr","over"===a,"under"===a);t.isNary=!0;let n={name:"m:sub",type:"tag",attribs:{},children:[]},o={name:"m:sup",type:"tag",attribs:{},children:[]};W(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:[]}),e.children.push(r);return}let c=y(s),u={name:"m:e",type:"tag",attribs:{},children:[]};if(W(o,u,!1,!1,i),"under"===a&&"mo"===s.name&&["̲","_"].includes(c)||"over"===a&&"mo"===s.name&&["̅","¯"].includes(c))return void e.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&&t.attribs?.accentunder?.toLowerCase()==="true"&&"mo"===s.name&&c.length<2||"over"===a&&t.attribs?.accent?.toLowerCase()==="true"&&"mo"===s.name&&c.length<2)return void e.children.push({type:"tag",name:"m:acc",attribs:{},children:[{type:"tag",name:"m:accPr",attribs:{},children:[{type:"tag",name:"m:chr",attribs:{"m:val":w[c]||c},children:[]}]},u]});if(t.attribs?.accent?.toLowerCase()!=="true"&&t.attribs?.accentunder?.toLowerCase()!=="true"&&"mo"===s.name&&"mrow"===o.name&&1===c.length)return void e.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,"m:pos":"under"===a?"bot":"top"},children:[]}]},u]});let h={name:"m:lim",type:"tag",attribs:{},children:[]};W(s,h,!1,!1,i),e.children.push({type:"tag",name:"under"===a?"m:limLow":"m:limUpp",attribs:{},children:[u,h]})}var N,L,_,T,P,I,C,k,F,X=Object.freeze({__proto__:null,math:function(t,e,r,n,i){return e.name="m:oMath",e.attribs={"xmlns:m":"http://schemas.openxmlformats.org/officeDocument/2006/math","xmlns:w":"http://schemas.openxmlformats.org/wordprocessingml/2006/main"},e.type="tag",e.children=[],e},menclose:function(t,e,r,n,i){let a=t.attribs?.notation?.split(" ")[0]||"longdiv",o={type:"tag",name:"m:e",attribs:{},children:[]};if("longdiv"===a)e.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 t={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=[t,r,i],l.children=[s,o];break;case"right":case"circle":s.children=[t,r,n],l.children=[s,o];break;case"top":s.children=[r,n,i],l.children=[s,o];break;case"bottom":s.children=[t,n,i],l.children=[s,o];break;case"updiagonalstrike":s.children=[t,r,n,i,{type:"tag",name:"m:strikeBLTR",attribs:{"m:val":"on"},children:[]}],l.children=[s,o];break;case"downdiagonalstrike":s.children=[t,r,n,i,{type:"tag",name:"m:strikeTLBR",attribs:{"m:val":"on"},children:[]}],l.children=[s,o];break;case"verticalstrike":s.children=[t,r,n,i,{type:"tag",name:"m:strikeV",attribs:{"m:val":"on"},children:[]}],l.children=[s,o];break;case"horizontalstrike":s.children=[t,r,n,i,{type:"tag",name:"m:strikeH",attribs:{"m:val":"on"},children:[]}],l.children=[s,o];break;default:s.children=[t,r,n,i],l.children=[s,o]}e.children.push(l)}return o},mfrac:function(t,e,r,n,i){if(2!==t.children.length)return e;let a=t.children[0],o=t.children[1],s={name:"m:num",type:"tag",attribs:{},children:[]},l={name:"m:den",type:"tag",attribs:{},children:[]};(i=[...i]).unshift(t),W(a,s,!1,!1,i),W(o,l,!1,!1,i);let c=t.attribs?.linethickness?.trim(),u=void 0!==c&&/^0+(\.0*)?([a-z%]+)?$/i.test(c)?"noBar":t.attribs?.bevelled==="true"?"skw":"bar";e.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(t,e,r,n,i){t.attribs?.alt&&e.children.push({type:"text",data:t.attribs.alt})},mi:function(t,e,r,n,i){return S(t,e,r,n,i,"mi")},mmultiscripts:function(t,e,r,n,i){if(0===t.children.length)return;let a=t.children[0],o=[],s=[],l=[],c=[],u=t.children.slice(1),h=!1;u.forEach((t,e)=>{"mprescripts"===t.name?h=!0:"none"!==t.name&&(e%2?h?l.push(t):s.push(t):h?c.push(t):o.push(t))}),(i=[...i]).unshift(t);let p={children:[]};W(a,p,!1,!1,i);let d=p.children[0];if(o.length||s.length){let t={name:"m:sub",type:"tag",attribs:{},children:[]};o.forEach(e=>W(e,t,!1,!1,i));let e={name:"m:sup",type:"tag",attribs:{},children:[]};s.forEach(t=>W(t,e,!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(t),r.children.push(e)):o.length?(r.name="m:sSub",r.children.push(t)):(r.name="m:sSup",r.children.push(e)),d=r}if(l.length||c.length){let t={name:"m:sub",type:"tag",attribs:{},children:[]};l.forEach(e=>W(e,t,!1,!1,i));let e={name:"m:sup",type:"tag",attribs:{},children:[]};c.forEach(t=>W(t,e,!1,!1,i)),d={name:"m:sPre",type:"tag",attribs:{},children:[{name:"m:e",type:"tag",attribs:{},children:[d]},t,e]}}e.children.push(d)},mn:function(t,e,r,n,i){return S(t,e,r,n,i,"mn")},mo:function(t,e,r,n,i){return S(t,e,r,n,i,"mo")},mover:function(t,e,r,n,i){return O(t,e,r,n,i,"over")},mroot:function(t,e,r,n,i){if(2!==t.children.length)return e;(i=[...i]).unshift(t);let a=t.children[0],o=t.children[1],s={type:"tag",name:"m:e",attribs:{},children:[]};W(a,s,!1,!1,i);let l={type:"tag",name:"m:deg",attribs:{},children:[]};W(o,l,!1,!1,i);let c=y(o);e.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(t,e,r,n,i){if(r.isNary){let t=e.children[e.children.length-1];return t.children[t.children.length-1]}return e},ms:function(t,e,r,n,i){return S(t,e,r,n,i,"ms")},mspace:function(t,e,r,n,i){t.attribs?.linebreak==="newline"?e.children.push({name:"m:br",type:"tag",attribs:{},children:[]}):e.children.push({name:"m:r",type:"tag",attribs:{},children:[{name:"m:t",type:"tag",attribs:{"xml:space":"preserve"},children:[{type:"text",data:" "}]}]})},msqrt:function(t,e,r,n,i){let a={name:"m:e",type:"tag",attribs:{},children:[]};return e.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(t,e,r,n,i){return e},msub:function(t,e,r,n,i){let a;if(2!==t.children.length)return e;(i=[...i]).unshift(t);let o=t.children[0],s=t.children[1],l=b(o);if(l&&t.attribs?.accent?.toLowerCase()!=="true"&&t.attribs?.accentunder?.toLowerCase()!=="true")a=x(l,t,"subSup",!1,!0),t.isNary=!0;else{let t={name:"m:e",type:"tag",attribs:{},children:[]};W(o,t,!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:[]}]},t]}}let c={name:"m:sub",type:"tag",attribs:{},children:[]};W(s,c,!1,!1,i),a.children.push(c),t.isNary&&(a.children.push({type:"tag",name:"m:sup",attribs:{},children:[]}),a.children.push({type:"tag",name:"m:e",attribs:{},children:[]})),e.children.push(a)},msubsup:function(t,e,r,n,i){let a;if(3!==t.children.length)return e;(i=[...i]).unshift(t);let o=t.children[0],s=t.children[1],l=t.children[2],c=b(o);if(c&&t.attribs?.accent?.toLowerCase()!=="true"&&t.attribs?.accentunder?.toLowerCase()!=="true")a=x(c,t,"subSup"),t.isNary=!0;else{let t={name:"m:e",type:"tag",attribs:{},children:[]};W(o,t,!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:[]}]},t]}}let u={name:"m:sub",type:"tag",attribs:{},children:[]},h={name:"m:sup",type:"tag",attribs:{},children:[]};W(s,u,!1,!1,i),W(l,h,!1,!1,i),a.children.push(u),a.children.push(h),t.isNary&&a.children.push({type:"tag",name:"m:e",attribs:{},children:[]}),e.children.push(a)},msup:function(t,e,r,n,i){let a;if(2!==t.children.length)return e;(i=[...i]).unshift(t);let o=t.children[0],s=t.children[1],l=b(o);if(l&&t.attribs?.accent?.toLowerCase()!=="true"&&t.attribs?.accentunder?.toLowerCase()!=="true")a=x(l,t,"subSup",!0),t.isNary=!0,a.children.push({type:"tag",name:"m:sub"});else{let t={name:"m:e",type:"tag",attribs:{},children:[]};W(o,t,!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:[]}]},t]}}let c={name:"m:sup",type:"tag",attribs:{},children:[]};W(s,c,!1,!1,i),a.children.push(c),t.isNary&&a.children.push({type:"tag",name:"m:e",attribs:{},children:[]}),e.children.push(a)},mtable:function(t,e,r,n,i){let a=Math.max(0,...t.children.map(t=>t.children.length));for(let e of t.children)for(;e.children?.length<a;)e.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 e.children.push(o),o},mtd:function(t,e,r,n,i){let a={name:"m:e",type:"tag",attribs:{},children:[]};return e.children.push(a),a},mtext:function(t,e,r,n,i){return S(t,e,r,n,i,"mtext")},mtr:function(t,e,r,n,i){let a={name:"m:mr",type:"tag",attribs:{},children:[]};return e.children.push(a),a},munder:function(t,e,r,n,i){return O(t,e,r,n,i,"under")},munderover:function(t,e,r,n,i){if(3!==t.children.length)return e;(i=[...i]).unshift(t);let a=t.children[0],o=t.children[1],s=t.children[2],l=b(a);if(l&&t.attributes?.accent?.toLowerCase()!=="true"&&t.attributes?.accentunder?.toLowerCase()!=="true"){let r=x(l,t,"undOvr");t.isNary=!0;let n={name:"m:sub",type:"tag",attribs:{},children:[]},a={name:"m:sup",type:"tag",attribs:{},children:[]};W(o,n,!1,!1,i),W(s,a,!1,!1,i),r.children.push(n),r.children.push(a),r.children.push({type:"tag",name:"m:e",attribs:{},children:[]}),e.children.push(r);return}let c={name:"m:e",type:"tag",attribs:{},children:[]};W(a,c,!1,!1,i);let u={name:"m:lim",type:"tag",attribs:{},children:[]},h={name:"m:lim",type:"tag",attribs:{},children:[]};W(o,u,!1,!1,i),W(s,h,!1,!1,i),e.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(t,e,r,n,i){return e},text:function(t,e,r,n,i){let a=t.data.replace(/[\u2061-\u2064\u200B]/g,"");if(i.find(t=>["mi","mn","mo"].includes(t.name)))a=a.replace(/\s/g,"");else{let t=i.find(t=>"ms"===t.name);t&&(a=(t.attribs?.lquote||'"')+a+(t.attribs?.rquote||'"'))}return a.length&&(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}});let U=["annotation","annotation-xml"];function W(t,e,r=!1,n=!1,i=[]){var a;let o,s;if(U.includes(t.name))return;!r&&["m:deg","m:den","m:e","m:fName","m:lim","m:num","m:sub","m:sup"].includes(e.name)&&(a=i,["0","1","2"].includes(s=a.find(t=>t.attribs?.scriptlevel)?.attribs?.scriptlevel)&&e.children.unshift({type:"tag",name:"m:argPr",attribs:{},children:[{type:"tag",name:"m:scrLvl",attribs:{"m:val":s},children:[]}]}));let l=t.name||t.type;if(X[l]?o=X[l](t,e,r,n,i):(l&&"root"!==l&&console.warn(`Type not supported: ${l}`),o=e),o&&t.children?.length){(i=[...i]).unshift(t);for(let e=0;e<t.children.length;e++)W(t.children[e],o,t.children[e-1],t.children[e+1],i)}}class V{constructor(t,e={}){this.inString=t,this.inXML=function(t,e={}){let r,n=e.components||g,i=[],a=[],o=-1,s=!1,l=[],c=d.exec(t);for(;c;)l.push(c),c=d.exec(t);return l.forEach((t,e)=>{let r=t[0];if(!r||r.startsWith("\x3c!--"))return;let n=0,i=0,a=-1,o=null;for(let t=0;t<r.length;t++){let e=r.charAt(t);o?e===o&&(o=null):'"'===e||"'"===e?o=e:"<"===e?2==++n&&(a=t):">"===e&&i++}let s=a>-1&&/[a-zA-Z0-9\-!/]/.test(r.charAt(a+1));if(n>i&&s){let t=r.substring(0,a),n=r.substring(t.length);l[e][0]=n,l[e].index+=t.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=t.charAt(b),M=l[u+1];if("<"===x&&M){let e=t.substring(b,M.index);h=e.split("<").length>e.split(">").length}if(R){let r=p(g,e);if(o<0)return i.push(r),i;if((d=a[o]).children.push(r),m.includes(d.name)){let r=t.slice(b,M?M.index:void 0).trim();r.length>0&&d.children.push({type:"text",data:A(r,e)})}return i}if(v){if(o++,"tag"===(r=p(g,e)).type&&n[r.name]&&(r.type="component",s=!0),m.includes(r.name)&&!r.voidElement&&!s&&x&&"<"!==x){let n=t.slice(b,M?M.index:void 0).trim();r.children.push({type:"text",data:A(n,e)})}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=t.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,e)})}}),i}(t,e),this.outXML=!1,this.outString=!1}run(){let t={};W({children:this.inXML,type:"root"},t),this.outXML=t}getResult(){return this.outString=[this.outXML].reduce((t,e)=>t+function t(e,r){switch(r.type){case"text":return e+String(r.data).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/\u200B/g,"​");case"tag":{let n=r.voidElement||!r.children.length&&"preserve"!==r.attribs["xml:space"];if(e+=`<${r.name}${r.attribs?function(t){let e=[];for(let r in t)e.push(`${r}="${String(t[r]).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}"`);return e.length?` ${e.join(" ")}`:""}(r.attribs):""}${n?"/>":">"}`,n)return e;return`${e+r.children.reduce(t,"")}</${r.name}>`}case"comment":return e+`<!--${r.comment}-->`}}("",e),""),this.outString}}r.d(e,{},{Q:(t,e)=>{let r=new V(t,e);return r.run(),r.getResult()}})},27380(t,e,r){function n(t){return{all:t=t||new Map,on:function(e,r){var n=t.get(e);n?n.push(r):t.set(e,[r])},off:function(e,r){var n=t.get(e);n&&(r?n.splice(n.indexOf(r)>>>0,1):t.set(e,[]))},emit:function(e,r){var n=t.get(e);n&&n.slice().map(function(t){t(r)}),(n=t.get("*"))&&n.slice().map(function(t){t(e,r)})}}}r.d(e,{A:()=>n})},41884(t,e,r){r.d(e,{d_:()=>i,Ak:()=>a});let n=t=>crypto.getRandomValues(new Uint8Array(t)),i=(t,e=21)=>((t,e,r)=>{let n=256-256%t.length;if(256===n){let n=t.length-1;return (i=e)=>{if(!i)return"";let a="";for(;;){let e=r(i),o=i;for(;o--;)if((a+=t[e[o]&n]).length>=i)return a}}}let i=Math.ceil(409.6*e/n);return (a=e)=>{if(!a)return"";let o="";for(;;){let e=r(i),s=i;for(;s--;)if(e[s]<n&&(o+=t[e[s]%t.length]).length>=a)return o}}})(t,0|e,n),a=(t=21)=>{let e="",r=crypto.getRandomValues(new Uint8Array(t|=0));for(;t--;)e+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[63&r[t]];return e}},93591(t,e,r){let n,i,a,o=(t,e)=>{let r,{o:n,i:i,u:a}=t,o=n,s=(t,e)=>{let n=o,s=e||(i?!i(n,t):n!==t);return(s||a)&&(o=t,r=n),[o,s,r]};return[e?t=>s(e(o,r),t):s,t=>[o,!!t,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=t=>void 0!==s[t]?s[t]:void 0,y=A("MutationObserver"),v=A("IntersectionObserver"),R=A("ResizeObserver"),b=A("ScrollTimeline"),x=t=>"object"==typeof t&&!Array.isArray(t)&&null!==t,M=t=>{let e=!!t&&t.length;return!(!Array.isArray(t)&&("function"==typeof t||!("number"==typeof e&&e>-1&&e%1==0)))&&(!(e>0&&x(t))||e-1 in t)},S=t=>!!t&&t.constructor===Object;function w(t,e){if(M(t))for(let r=0;r<t.length&&!1!==e(t[r],r,t);r++);else t&&w(Object.keys(t),r=>e(t[r],r,t));return t}let O=(t,e)=>t.indexOf(e)>=0,N=(t,e,r)=>("string"!=typeof e&&M(e)?Array.prototype.push.apply(t,e):t.push(e),t),L=t=>Array.from(t||[]),_=t=>Array.isArray(t)?t:"string"!=typeof t&&M(t)?L(t):[t],T=t=>!!t&&!t.length,P=t=>L(new Set(t)),I=(t,e,r)=>{w(t,t=>!t||t.apply(void 0,e||[])),r||(t.length=0)},C="paddingTop",k="paddingRight",F="paddingLeft",X="paddingBottom",U="marginLeft",W="marginRight",V="marginBottom",E="overflowX",Y="overflowY",D="width",Q="height",Z="visible",B="hidden",K="scroll",$=(t,e,r,n)=>{if(t&&e){let n=!0;return w(r,r=>{t[r]!==e[r]&&(n=!1)}),n}return!1},G=(t,e)=>$(t,e,["w","h"]),H=(t,e)=>$(t,e,["x","y"]),z=(t,e)=>$(t,e,["t","r","b","l"]),J=(t,...e)=>t.bind(0,...e),j=t=>{let e,r=t?m:f,n=t?g:d;return[i=>{n(e),e=r(()=>i(),"function"==typeof t?t():t)},()=>n(e)]},q=t=>{let e="function"==typeof t?t():t;if("number"==typeof e){let t=e?m:f,r=e?g:d;return n=>{let i=t(()=>n(),e);return()=>{r(i)}}}return e&&e._},tt=(t,e)=>{let r,n,i,a,{p:o,v:s,S:l,m:c}=e||{},u=function(e){n&&n(),r&&r(),a=n=r=i=void 0,t.apply(this,e)},h=t=>c&&i?c(i,t):t,p=()=>{n&&i&&u(h(i)||i)},d=function(){let t=L(arguments),e=q(o);if(e){let o="function"==typeof l?l():l,c=q(s),d=h(t)||t,f=u.bind(0,d);n&&n(),o&&!a?(f(),a=!0,n=e(()=>a=void 0)):(n=e(f),c&&!r&&(r=c(p))),i=d}else u(t)};return d.O=p,d},te=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),tr=t=>t?Object.keys(t):[],tn=(t,e,r,n,i,a,o)=>(("object"!=typeof t||null===t)&&"function"!=typeof t&&(t={}),w([e,r,n,i,a,o],e=>{w(e,(r,n)=>{let i=e[n];if(t===i)return!0;let a=Array.isArray(i);if(i&&S(i)){let e=t[n],r=e;a&&!Array.isArray(e)?r=[]:a||S(e)||(r={}),t[n]=tn(r,i)}else t[n]=a?i.slice():i})}),t),ti=(t,e)=>w(tn({},t),(t,e,r)=>{void 0===t?delete r[e]:t&&S(t)&&(r[e]=ti(t))}),ta=()=>{},to=(t,e,r)=>l(t,c(e,r)),ts=t=>P((Array.isArray(t)?t:(t||"").split(" ")).filter(t=>t)),tl=(t,e)=>t&&t.getAttribute(e),tc=(t,e)=>t&&t.hasAttribute(e),tu=(t,e,r)=>{w(ts(e),e=>{t&&t.setAttribute(e,String(r||""))})},th=(t,e)=>{w(ts(e),e=>t&&t.removeAttribute(e))},tp=(t,e)=>{let r=ts(tl(t,e)),n=J(tu,t,e),i=(t,e)=>{let n=new Set(r);return w(ts(t),t=>{n[e](t)}),L(n).join(" ")};return{C:t=>n(i(t,"delete")),$:t=>n(i(t,"add")),H:t=>{let e=ts(t);return e.reduce((t,e)=>t&&r.includes(e),e.length>0)}}},td=(t,e,r)=>(tp(t,e).C(r),J(tf,t,e,r)),tf=(t,e,r)=>(tp(t,e).$(r),J(td,t,e,r)),tm=(t,e,r,n)=>(n?tf:td)(t,e,r),tg=(t,e,r)=>tp(t,e).H(r),tA=(t,e)=>{tp(t,"class").C(e)},ty=(t,e)=>(tp(t,"class").$(e),J(tA,t,e)),tv=(t,e)=>{let r=e?e instanceof Element&&e:document;return r?L(r.querySelectorAll(t)):[]},tR=(t,e)=>t instanceof Element&&t.matches(e),tb=t=>t?L(t.childNodes):[],tx=(t,e)=>t instanceof Element&&t.closest(e),tM=t=>{w(_(t),t=>{let e=t&&t.parentElement;t&&e&&e.removeChild(t)})},tS=(t,e)=>J(tM,t&&e&&w(_(e),e=>{e&&t.appendChild(e)})),tw=t=>{let e=document.createElement("div");return tu(e,"class",t),e},tO=t=>{let e=tw(),r=n,i=t.trim();return e.innerHTML=r?r.createHTML(i):i,w(tb(e),t=>tM(t))},tN=(t,e)=>t.getPropertyValue(e)||t[e]||"",tL=t=>{let e=t||0;return isFinite(e)?e:0},t_=t=>tL(parseFloat(t||"")),tT=t=>Math.round(1e4*t)/1e4,tP=t=>`${tT(tL(t))}px`;function tI(t,e){t&&e&&w(e,(e,r)=>{try{let n=t.style,i=null===e||"boolean"==typeof e?"":"number"==typeof e?tP(e):e;0===r.indexOf("--")?n.setProperty(r,i):n[r]=i}catch(t){}})}function tC(t,e,r){let n="string"==typeof e,i=n?"":{};if(t){let a=s.getComputedStyle(t,r)||t.style;i=n?tN(a,e):L(e).reduce((t,e)=>(t[e]=tN(a,e),t),i)}return i}let tk=(t,e,r)=>{let n=e?`${e}-`:"",i=r?`-${r}`:"",a=`${n}top${i}`,o=`${n}right${i}`,s=`${n}bottom${i}`,l=`${n}left${i}`,c=tC(t,[a,o,s,l]);return{t:t_(c[a]),r:t_(c[o]),b:t_(c[s]),l:t_(c[l])}},tF=(t,e)=>`translate${x(t)?`(${t.x},${t.y})`:`${e?"X":"Y"}(${t})`}`,tX={w:0,h:0},tU=(t,e)=>e?{w:e[`${t}Width`],h:e[`${t}Height`]}:tX,tW=J(tU,"offset"),tV=J(tU,"client"),tE=J(tU,"scroll"),tY=t=>{let e=parseFloat(tC(t,D))||0,r=parseFloat(tC(t,Q))||0;return{w:e-u(e),h:r-u(r)}},tD=t=>t.getBoundingClientRect(),tQ=t=>!!(t&&(t[Q]||t[D])),tZ=(t,e)=>{let r=tQ(t);return!tQ(e)&&r},tB=(t,e,r,n)=>{w(ts(e),e=>{t&&t.removeEventListener(e,r,n)})},tK=(t,e,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(I,ts(e).map(e=>{let n=s?i=>{tB(t,e,n,o),r&&r(i)}:r;return t&&t.addEventListener(e,n,l),J(tB,t,e,n,o)}))},t$=t=>t.stopPropagation()||t.preventDefault(),tG=(t,e)=>{let{x:r,y:n}="number"==typeof e?{x:e,y:e}:e||{};"number"==typeof r&&(t.scrollLeft=r),"number"==typeof n&&(t.scrollTop=n)},tH=t=>({x:t.scrollLeft,y:t.scrollTop}),tz=()=>({T:{x:0,y:0},k:{x:0,y:0}}),tJ=({T:t,k:e})=>{let r=(t,e)=>0===t&&t<=e;return{x:r(t.x,e.x),y:r(t.y,e.y)}},tj=({T:t,k:e},r)=>{let n=(t,e,r)=>to(0,1,(t-r)/(t-e)||0);return{x:n(t.x,e.x,r.x),y:n(t.y,e.y,r.y)}},tq=t=>{t&&t.focus&&t.focus({preventScroll:!0,focusVisible:!1})},t0=(t,e)=>{w(_(e),t)},t1=t=>{let e=new Map,r=(t,r)=>{if(t){let n=e.get(t);t0(t=>{n&&n[t?"delete":"clear"](t)},r)}else e.forEach(t=>{t.clear()}),e.clear()},n=(t,i)=>{if("string"==typeof t){let n=e.get(t)||new Set;return e.set(t,n),t0(t=>{"function"==typeof t&&n.add(t)},i),J(r,t,i)}"boolean"==typeof i&&i&&r();let a=tr(t),o=[];return w(a,e=>{let r=t[e];r&&N(o,n(e,r))}),J(I,o)};return n(t||{}),[n,r,(t,r)=>{w(L(e.get(t)),t=>{r&&!T(r)?t.apply(0,r):t()})}]},t2={},t3={},t5=(t,e,r)=>tr(t).map(n=>{let{static:i,instance:a}=t[n],[o,s,l]=r||[],c=r?a:i;if(c){let t=r?c(o,s,e):c(e);return(l||t3)[n]=t}}),t4=t=>t3[t],t6="data-overlayscrollbars",t8="os-environment",t9=`${t8}-scrollbar-hidden`,t7=`${t6}-initialize`,et="noClipping",ee=`${t6}-body`,er=`${t6}-viewport`,en="measuring",ei="scrollbarHidden",ea=`${t6}-padding`,eo=`${t6}-content`,es="os-size-observer",el=`${es}-appear`,ec=`${es}-listener`,eu="os-scrollbar",eh=`${eu}-rtl`,ep=`${eu}-horizontal`,ed=`${eu}-vertical`,ef=`${eu}-track`,em=`${eu}-handle`,eg=`${eu}-visible`,eA=`${eu}-cornerless`,ey=`${eu}-interaction`,ev=`${eu}-unusable`,eR=`${eu}-auto-hide`,eb=`${eR}-hidden`,ex=`${eu}-wheel`,eM=`${ef}-interactive`,eS=`${em}-interactive`,ew=t=>0===t.indexOf(Z),eO=(t,e)=>{if("auto"===t)return e?K:B;let r=t||B;return[B,K,Z].includes(r)?r:B},eN="__osScrollbarsHidingPlugin",eL=t=>JSON.stringify(t,(t,e)=>{if("function"==typeof e)throw 0;return e}),e_=(t,e)=>t?`${e}`.split(".").reduce((t,e)=>t&&te(t,e)?t[e]:void 0,t):void 0,eT=[33,99],eP=[222,666,!0],eI={paddingAbsolute:!1,showNativeOverlaidScrollbars:!1,update:{elementEvents:[["img","load"]],debounce:{mutation:[0,33],resize:null,event:eT,env:eP},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"]}},eC=(t,e)=>{let r,n,i={};return w((r=tr(e),n=tr(t),r.concat(n)),r=>{let n=t[r],a=e[r];if(x(n)&&x(a))tn(i[r]={},eC(n,a)),tr(i[r]).length||delete i[r];else if(te(e,r)&&a!==n){let t=!0;if(Array.isArray(n)||Array.isArray(a))try{eL(n)===eL(a)&&(t=!1)}catch(t){}t&&(i[r]=a)}}),i},ek=(t,e,r)=>n=>[e_(t,n),r||void 0!==e_(e,n)],eF=()=>(a||(a=(()=>{let t=(t,e,r)=>{tS(document.body,t),tS(document.body,t);let n=tV(t),i=tW(t),a=tY(e);return r&&tM(t),{x:i.h-n.h+a.h,y:i.w-n.w+a.w}},e=`.${t8}{scroll-behavior:auto!important;position:fixed;opacity:0;visibility:hidden;overflow:scroll;height:200px;width:200px;z-index:-1}.${t8} div{width:200%;height:200%;margin:10px 0}.${t9}{scrollbar-width:none!important}.${t9}::-webkit-scrollbar,.${t9}::-webkit-scrollbar-corner{appearance:none!important;display:none!important;width:0!important;height:0!important}`,r=tO(`<div class="${t8}"><div></div><style>${e}</style></div>`)[0],n=r.firstChild,a=r.lastChild,l=i;l&&(a.nonce=l);let[c,,u]=t1(),[h,p]=o({o:t(r,n),i:H},J(t,r,n,!0)),[d]=p(),f=(t=>{let e=!1,r=ty(t,t9);try{e="none"===tC(t,"scrollbar-width")||"none"===tC(t,"display","::-webkit-scrollbar")}catch(t){}return r(),e})(r),m={x:0===d.x,y:0===d.y},g={elements:{host:null,padding:!f,viewport:t=>f&&tR(t,"body")&&t,content:!1},scrollbars:{slot:!0},cancel:{nativeScrollbarsOverlaid:!1,body:null}},A=tn({},eI),y=J(tn,{},A),v=J(tn,{},g),R={U:d,M:m,P:f,J:!!b,G:J(c,"r"),K:v,Z:t=>tn(g,t)&&v(),tt:y,nt:t=>tn(A,t)&&y(),ot:tn({},g),st:tn({},A)};if(th(r,"style"),tM(r),tK(s,"resize",()=>{u("r",[])}),"function"==typeof s.matchMedia&&!f&&(!m.x||!m.y)){let t=e=>{tK(s.matchMedia(`(resolution: ${s.devicePixelRatio}dppx)`),"change",()=>{e(),t(e)},{A:!0})};t(()=>{let[t,e]=h();tn(R.U,t),u("r",[e])})}return R})()),a),eX=(t,e,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=e=>{o&&h&&w(h.map(r=>{let[n,i]=r||[];return[i&&n?(e||tv)(n,t):[],i]}),e=>w(e[0],r=>{let n=e[1],s=o.get(r)||[];if(t.contains(r)&&n){let t=tK(r,n,e=>{a?(t(),o.delete(r)):i()});o.set(r,N(s,t))}else I(s),o.delete(r)}))})(),[()=>{a=!0},s]),A=u||[],v=(c||[]).concat(A),R=(i,a)=>{if(!T(a)){let o=d||ta,s=f||ta,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=t===a,R=y&&i,b=R&&tl(a,i||""),x="string"==typeof b?b:null,M=R&&f!==x,S=O(A,i)&&M;if(e&&("childList"===d||!v)){let e=y&&M,c=e&&p&&tR(a,p),u=(c?!o(a,i,f,x):!y||e)&&!s(r,!!c,t,n);w(m,t=>N(l,t)),w(g,t=>N(l,t)),h=h||u}!e&&v&&M&&!o(a,i,f,x)&&(N(c,i),u=u||S)}),g(t=>P(l).reduce((e,r)=>(N(e,tv(t,r)),tR(r,t)?N(e,r):e),[])),e)return!i&&h&&r(!1),[!1];if(!T(c)||u){let t=[P(c),u];return i||r.apply(0,t),t}}},b=new y(J(R,!1));return[()=>(b.observe(t,{attributes:!0,attributeOldValue:!0,attributeFilter:v,subtree:e,childList:e,characterData:e}),l=!0,()=>{l&&(m(),b.disconnect(),l=!1)}),()=>{if(l)return R(!0,b.takeRecords())}]},eU=null,eW=(t,e,r)=>{let{ft:n}=r||{},i=t4("__osSizeObserverPlugin"),[a]=o({o:!1,u:!0});return()=>{let r=[],o=tO(`<div class="${es}"><div class="${ec}"></div></div>`)[0],s=o.firstChild,l=t=>{let r=Array.isArray(t)&&!T(t),n=!1,i=!1;if(r){let[e,,r]=a(t[0].contentRect),o=tQ(e);n=!(i=tZ(e,r))&&!o}else i=!0===t;n||e({_t:!0,ft:i})};if(R){if("boolean"!=typeof eU){let e=new R(ta);e.observe(t,{get box(){eU=!0}}),eU=eU||!1,e.disconnect()}let e=tt(l,{p:0,v:0}),n=t=>e(t),i=new R(n);if(i.observe(eU?t:s),N(r,[()=>{i.disconnect()},!eU&&tS(t,o)]),eU){let e=new R(n);e.observe(t,{box:"border-box"}),N(r,()=>e.disconnect())}}else{if(!i)return ta;let e,[a,c]=i(s,l,n);N(r,(e=[ty(o,el),tK(o,"animationstart",a),tS(t,o)],e.concat(c)))}return J(I,r)}},eV=(t,e)=>"function"==typeof e?e.apply(0,t):e,eE=(t,e,r,n)=>eV(t,void 0===n?r:n)||e.apply(0,t),eY=(t,e,r,n)=>{let i=eV(t,void 0===n?r:n);return!!i&&(i instanceof HTMLElement?i:e.apply(0,t))},eD=new WeakMap,eQ=(t,e,r)=>{let{tt:n}=eF(),i=t instanceof HTMLElement,a=i?t:t.target,c=eD.get(a);if(e&&!c){let c=[],d={},g=t=>{let e=ti(t),r=t4("__osOptionsValidationPlugin");return r?r(e,!0):e},A=tn({},n(),g(e)),[y,x,M]=t1(),[L,_,T]=t1(r),q=(t,e)=>{T(t,e),M(t,e)},[te,ts,tp,td,tv,tO,tN]=((t,e,r,n)=>{let i=!1,a={Kt:!1,pn:!1},c=ek(e,{}),[d,g,A,y,x]=(t=>{let[e,r,n]=(t=>{let e,r,n,i,{K:a,P:o}=eF(),{elements:l}=a(),{padding:c,viewport:u,content:h}=l,p=t instanceof HTMLElement,d=p?{}:t,{elements:f}=d,{padding:m,viewport:g,content:A}=f||{},y=p?t:d.target,v=tR(y,"body"),R=y.ownerDocument,b=R.documentElement,x=()=>R.defaultView||s,M=J(eE,[y]),S=J(eY,[y]),w=J(tw,""),L=J(M,w,u),_=J(S,w,h),T=L(g),P=T===y,C=P&&v,k=!P&&_(A),F=C?b:T,X=C?F:y,U=!P&&S(w,c,m),W=!(!P&&T===k)&&k,V=[W,F,U,X].map(t=>t instanceof HTMLElement&&!(t&&t.parentElement)&&t),D=F&&O(V,F)||(e=tW(F),r=tE(F),n=tC(F,E),i=tC(F,Y),(!(r.w-e.w>0)||ew(n))&&(!(r.h-e.h>0)||ew(i)))?y:F,Q=C?b:F,Z=C?R:F,B={dt:y,vt:X,L:F,ln:U,ht:W,gt:Q,Qt:Z,an:v?b:D,Gt:R,bt:v,At:p,V:P,un:x,yt:t=>tg(F,er,t),wt:(t,e)=>tm(F,er,t,e),St:()=>tm(Q,er,"scrolling",!0)},{dt:K,vt:$,ln:G,L:H,ht:z}=B,j=[()=>{th($,[t6,t7]),th(K,t7),v&&th(b,[t7,t6])}],q=tb([z,H,G,$,K].find(t=>t&&!(t&&O(V,t)))),tt=C?K:z||H,te=J(I,j);return[B,()=>{let t=x(),e=document.activeElement,r=t=>{tS(t&&t.parentElement,tb(t)),tM(t)},n=t=>tK(t,"focusin focusout focus blur",t$,{I:!0,D:!1}),i="tabindex",a=tl(H,i),s=n(e);return tu($,t6,P?"":"host"),tu(G,ea,""),tu(H,er,""),tu(z,eo,""),!P&&(tu(H,i,a||"-1"),v&&tu(b,ee,"")),tS(tt,q),tS($,G),tS(G||$,!P&&H),tS(H,z),N(j,[s,()=>{let t=document.activeElement,e=H&&O(V,H),o=e&&t===H?K:t,s=n(o);th(G,ea),th(z,eo),th(H,er),v&&th(b,ee),a?tu(H,i,a):th(H,i),z&&O(V,z)&&r(z),e&&r(H),G&&O(V,G)&&r(G),tq(o),s()}]),o&&!P&&(tf(H,er,ei),N(j,J(th,H,er))),tq(!P&&v&&e===K&&t.top===t?H:e),s(),q=0,te},te]})(t),i={ln:{t:0,r:0,b:0,l:0},_n:!1,F:{[W]:0,[V]:0,[U]:0,[C]: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:tz()},{dt:a,gt:c,V:u,St:d}=e,{P:m,M:g}=eF(),A=!m&&(g.x||g.y),y=[(({ht:t})=>({Zt:e,fn:r,It:n})=>{let{$t:i}=e||{},{Ot:a}=r;t&&(i||n)&&tI(t,{[Q]:a&&"100%"})})(e),(({vt:t,ln:e,L:r,V:n},i)=>{let[a,s]=o({i:z,o:tk()},J(tk,t,"padding",""));return({Dt:t,Zt:o,fn:l,It:c})=>{let[u,h]=s(c),{P:p}=eF(),{_t:d,xt:f,Ct:m}=o||{},{B:g}=l,[A,y]=t("paddingAbsolute"),v=c||f;(d||h||v)&&([u,h]=a(c));let R=!n&&(y||m||h);if(R){let t=!A||!e&&!p,n=u.r+u.l,a=u.t+u.b,o={[W]:t&&!g?-n:0,[V]:t?-a:0,[U]:t&&g?-n:0,top:t?-u.t:0,right:t?g?-u.r:"auto":0,left:t?g?"auto":-u.l:0,[D]:t&&`calc(100% + ${n}px)`},s={[C]:t?u.t:0,[k]:t?u.r:0,[X]:t?u.b:0,[F]:t?u.l:0};tI(e||r,o),tI(r,s),tn(i,{ln:u,_n:!t,F:e?s:tn({},o,s)})}return{dn:R}}})(e,i),((t,e)=>{let r=eF(),{vt:n,ln:i,L:a,V:c,Qt:u,gt:d,bt:m,wt:g,un:A}=t,{P:y}=r,v=m&&c,R=J(l,0),b={display:()=>!1,direction:t=>"ltr"!==t,flexDirection:t=>t.endsWith("-reverse"),writingMode:t=>"horizontal-tb"!==t},x=tr(b),M={i:G,o:{w:0,h:0}},S={i:H,o:{}},w=t=>{g(en,!v&&t)},[O,N]=o(M,J(tY,a)),[L,_]=o(M,J(tE,a)),[T,I]=o(M),[C]=o(S),[k,F]=o(M),[X]=o(S),[U]=o({i:(t,e)=>{let r,n;return $(t,e,P((r=tr(t),n=tr(e),r.concat(n))))},o:{}}),[W,V]=o({i:(t,e)=>H(t.T,e.T)&&H(t.k,e.k),o:tz()}),D=t4(eN),Q=(t,e)=>{let r,n=e?E:Y;return`${n}${(r=String(t||""))?r[0].toUpperCase()+r.slice(1):""}`};return({Dt:o,Zt:l,fn:c,It:m},{dn:M})=>{var S;let P,{_t:$,Ht:G,xt:H,Ct:z,ft:J,Et:j}=l||{},{X:q,Y:tt,W:te}=D&&D.R(t,e,c,r,o)||{},[ti,ta]=((t,e)=>{let{M:r}=e,[n,i]=t("showNativeOverlaidScrollbars");return[n&&r.x&&r.y,i]})(o,r),[to,ts]=o("overflow"),tl=ew(to.x),tc=ew(to.y),tu=$||M||H||z||j||ta,th=N(m),tp=_(m),td=I(m),tf=F(m);if(ta&&y&&g(ei,!ti),tu){let t,e;tg(n,t6,et)&&w(!0);let r=tt&&tt(),[i]=th=O(m),[o]=tp=L(m),l=tV(a),c=v&&tU("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(),tf=k(h),td=T((t=+(s.devicePixelRatio%1!=0),{w:(e={w:R(u.w-h.w),h:R(u.h-h.h)}).w>t?e.w:0,h:e.h>t?e.h:0}),m)}let[tA,ty]=tf,[tv,tR]=td,[tb,tx]=tp,[tM,tS]=th,[tw]=C({x:tv.w>0,y:tv.h>0}),tO=tl&&tc&&(tw.x||tw.y)||tl&&tw.x&&!tw.y||tc&&tw.y&&!tw.x,tN=M||z||j||tS||tx||ty||tR||ts||ta||tu||G&&v,[tL]=o("update.flowDirectionStyles"),[t_,tT]=U(tL?tL(a)||{}:tC(a,x),m),[tP,tk]=z||J||tT||m?W(((t,e)=>{let r=!tr(t).length,n=!!e||x.some(e=>{let r=t[e];return"string"==typeof r&&b[e](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=tH(d),o=tK(u,K,t=>{let e=tH(d);t.isTrusted&&e.x===i.x&&e.y===i.y&&t.stopPropagation()},{I:!0,A:!0}),s=g("noContent",!0);tG(d,{x:0,y:0}),s();let l=tH(d),c=tE(d);tG(d,{x:c.w,y:c.h});let p=tH(d),m={x:p.x-l.x,y:p.y-l.y};tG(d,{x:-c.w,y:-c.h});let A=tH(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 tG(d,i),f(()=>o()),{T:l,k:v}})(t_,!!tL),m):V(),tF={x:(P=(t,e,r,n)=>{let i=t===Z?B:t.replace(`${Z}-`,""),a=ew(t),o=ew(r);if(!e&&!n)return B;if(a&&o)return Z;if(a){let t=e?Z:B;return e&&n?i:t}let s=o&&n?Z:B;return e?i:s})(to.x,tw.x,to.y,tw.y),y:P(to.y,tw.y,to.x,tw.x)};if(w(!1),tN){let t;S=tF,g((t=t=>[Z,B,K].map(e=>Q(eO(e),t)))(!0).concat(t()).join(" ")),g(tr(S).map(t=>Q(S[t],"x"===t)).join(" "),!0),tF=((t,e)=>{let{overflowX:r,overflowY:n}=tC(t,[E,Y]);return{x:eO(r,e.x),y:eO(n,e.y)}})(a,tw),te&&q&&(q(tF,tb,tM),tI(a,te(tF)))}let[tX,tW]=X(tF);return tm(n,t6,et,tO),tm(i,ea,et,tO),tn(e,{rn:tX,Vt:{x:tA.w,y:tA.h},Rt:{x:tv.w,y:tv.h},j:tw,Tt:((t,e)=>{let{T:r,k:n}=t,{w:i,h:a}=e,o=(t,e,r)=>{let n=p(t)*r,i=p(e)*r;if(n===i){let r=h(t),a=h(e);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}}})(tP,tv)}),{en:tW,nn:ty,sn:tR,cn:tk||tR}}})(e,i)];return[r,t=>{let e={},r=A&&tH(c),n=r&&d();return w(y,r=>{tn(e,r(t,e)||{})}),tG(c,r),n&&n(),u||tG(a,0),e},i,e,n]})(t),[M,L,_]=((t,e,r,n)=>{let i,a,s,l,c,u,h,p,d,f,m,g,A,y=`[${t6}]`,b=`[${er}]`,x=["id","class","style","open","wrap","cols","rows"],{dt:M,vt:w,L:O,gt:L,ht:_,V:T,bt:P,yt:C,wt:k,St:F}=t,X={Ot:!1,B:"rtl"===tC(M,"direction")},U=eF(),W=t4(eN),[V]=o({i:G,o:{w:0,h:0}},()=>{let n=W&&W.R(t,e,X,U,r).Y,i=!(P&&T)&&tg(w,t6,et),a=!T&&C("arrange"),o=a&&tH(L),s=o&&F(),l=k(en,i),c=a&&n&&n(),u=tE(O),h=tY(O);return c&&c(),tG(L,o),s&&s(),i&&l(),{w:u.w+h.w,h:u.h+h.h}}),E=(g=tt(n,{p:()=>d,v:()=>f,S:()=>m,m(t,e){let r,n,[i]=t,[a]=e;return[(r=tr(i),n=tr(a),r.concat(n)).reduce((t,e)=>(t[e]=i[e]||a[e],t),{})]}}),(A=(t,e)=>{if(Array.isArray(e)){let[t,r,n]=e;d=t,f=r,m=n}else"number"==typeof e?d=e:d=!1,f=!1,m=!1;g(t)}).O=g.O,A),Y=t=>{let e="rtl"===tC(M,"direction");tn(t,{Ct:p!==e}),tn(X,{B:e}),p=e},D=(t,e)=>{let[r,i]=t,a={$t:i};return tn(X,{Ot:r}),e||n(a),a},Q=({_t:t,ft:e})=>{let r=e?n:E,i={_t:t||e,ft:e};Y(i),r(i,a)},Z=(t,e)=>{let[,r]=V(),n={xt:r};return Y(n),r&&!e&&E(n,t?s:i),n},B=(t,e,r)=>{let n={Ht:e};return Y(n),e&&!r&&E(n,i),n},[K,$]=_?((t,e)=>{let r,n=tw("os-trinsic-observer"),[i]=o({o:!1}),a=(t,r)=>{if(t){let n=i(0===t.h||t.isIntersecting||t.intersectionRatio>0),[,a]=n;return a&&!r&&e(n)&&[n]}},s=(t,e)=>a(e.pop(),t);return[()=>{let e=[];if(v)(r=new v(J(s,!1),{root:t})).observe(n),N(e,()=>{r.disconnect()});else{let t=()=>{a(tW(n))};N(e,eW(n,t)()),t()}return J(I,N(e,tS(t,n)))},()=>r&&s(!0,r.takeRecords())]})(w,D):[],H=!T&&eW(w,Q,{ft:!0}),[z,j]=eX(w,!1,B,{ct:x,et:x}),q=T&&R&&new R(t=>{let e=t[t.length-1].contentRect;Q({_t:!0,ft:tZ(e,h)}),h=e});return[()=>{q&&q.observe(w);let t=H&&H(),e=K&&K(),r=z(),n=U.G(t=>{let[,e]=V();E({Et:t,xt:e,_t:P},l)});return()=>{q&&q.disconnect(),t&&t(),e&&e(),u&&u(),r(),n()}},({Dt:t,zt:e,It:r})=>{let n={},[o]=t("update.ignoreMutation"),[h,p]=t("update.attributes"),[d,f]=t("update.elementEvents"),[m,g]=t("update.debounce"),A=e||r;if(f||p){let t;c&&c(),u&&u();let[e,r]=eX(_||O,!0,Z,{et:(t=h||[],x.concat(t)),rt:d,it:y,ut:(t,e)=>{var r,n;let i,a,s,l,c,{target:u,attributeName:h}=t;return!e&&!!h&&!T&&(s=tx(u,y),c=tx(l=u&&(r=b,(i=(n=s)?n instanceof Element&&n:document)&&i.querySelector(r)),y)===s,!!s&&!!l&&(s===u||l===u||c&&tx(tx(u,b),y)!==s))||!!tx(u,`.${eu}`)||(a=t,"function"==typeof o&&!!o(a))}});u=e(),c=r}if(g&&(E.O(),Array.isArray(m)||"number"==typeof m?(i=m,a=!1,s=eT,l=eP):S(m)?(i=m.mutation,a=m.resize,s=m.event,l=m.env):(i=!1,a=!1,s=!1,l=!1)),A){let t=j(),e=$&&$(),r=c&&c();t&&tn(n,B(t[0],t[1],A)),e&&tn(n,D(e[0],A)),r&&tn(n,Z(r[0],A))}return Y(n),n},X]})(y,A,c,t=>{ts({},t)}),[T,q,,te]=((t,e,r,n,i,a,o)=>{let s,l,c,p,d,f,g=ta,A=0,y=["mouse","pen"],v=t=>e=>{r.Kt||t(e)},[R,x]=j(),[M,S]=j(100),[O,L]=j(50),[_,T]=j(()=>A),[P,C]=((t,e,r,n)=>{let{K:i}=eF(),{scrollbars:a}=i(),{slot:o}=a,{dt:s,vt:l,L:c,At:u,gt:h,bt:p,V:d}=e,{scrollbars:f}=u?{}:t,{slot:m}=f||{},g=[],A=[],y=[],v=eY([s,l,c],()=>d&&p?s:l,o,m),R=t=>{if(b){let e=null,n=[],i=new b({source:h,axis:t}),a=()=>{e&&e.cancel(),e=null};return{Mt:o=>{let{Tt:s}=r,l=tJ(s)[t],c="x"===t,u=[tF(0,c),tF(`calc(-100% + 100cq${c?"w":"h"})`,c)],h=l?u:u.reverse();return n[0]===h[0]&&n[1]===h[1]||(n=h,a(),e=o.kt.animate({clear:["left"],transform:h},{timeline:i})),a}}}},x={x:R("x"),y:R("y")},M=(t,e,r)=>{let n=r?ty:tA;w(t,t=>{n(t.Lt,e)})},S=(t,e)=>{w(t,t=>{let[r,n]=e(t);tI(r,n)})},O=(t,e,r)=>{let n="boolean"==typeof r;(!n||r)&&M(A,t,e),n&&r||M(y,t,e)},L=t=>{let e=t?"x":"y",r=tw(`${eu} ${t?ep:ed}`),i=tw(ef),a=tw(em),o={Lt:r,Pt:i,kt:a},s=x[e];return N(t?A:y,o),N(g,[tS(r,i),tS(i,a),J(tM,r),s&&s.Mt(o),n(o,O,t)]),o},_=J(L,!0),T=J(L,!1);return _(),T(),[{Ut:()=>{let t=(()=>{let{Rt:t,Vt:e}=r,n=(t,e)=>to(0,1,t/(t+e)||0);return{x:n(e.x,t.x),y:n(e.y,t.y)}})(),e=t=>e=>[e.Lt,{"--os-viewport-percent":tT(t)+""}];S(A,e(t.x)),S(y,e(t.y))},Nt:()=>{if(!b){let{Tt:t}=r,e=tj(t,tH(h)),n=t=>e=>[e.Lt,{"--os-scroll-percent":tT(t)+""}];S(A,n(e.x)),S(y,n(e.y))}},qt:()=>{let{Tt:t}=r,e=tJ(t),n=t=>e=>[e.Lt,{"--os-scroll-direction":t?"0":"1"}];S(A,n(e.x)),S(y,n(e.y)),b&&(A.forEach(x.x.Mt),y.forEach(x.y.Mt))},Bt:()=>{if(d&&!p){let{Rt:t,Tt:e}=r,n=tJ(e),i=tj(e,tH(h)),a=e=>{let{Lt:r}=e,a=(r&&r.parentElement)===c&&r,o=(t,e,r)=>{let n=e*t;return tP(r?n:-n)};return[a,a&&{transform:tF({x:o(i.x,t.x,n.x),y:o(i.y,t.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)}},()=>(tS(v,A[0].Lt),tS(v,y[0].Lt),J(I,g))]})(t,a,i,(s=t=>y.includes(t.pointerType)&&$(),(t,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}=t,[L,_]=j(333),[T,P]=j(444),C=t=>{"function"==typeof b.scrollBy&&b.scrollBy({behavior:"smooth",left:t.x,top:t.y})},k=!0;return J(I,[tK(O,"pointermove pointerleave",v(s)),tK(S,"pointerenter",v(()=>{r(ey,!0)})),tK(S,"pointerleave pointercancel",v(()=>{r(ey,!1)})),tK(S,"wheel",v(t=>{let{deltaX:e,deltaY:n,deltaMode:i}=t;k&&0===i&&(S&&S.parentElement)===A&&C({x:e,y:n}),k=!1,r(ex,!0),L(()=>{k=!0,r(ex)}),t.preventDefault()}),{D:!1,I:!0}),!R&&tK(S,"mousedown",v(()=>{let t=document.activeElement;(tc(t,er)||tc(t,t6)||t===document.body)&&m(J(tq,y),25)})),tK(S,"pointerdown",()=>{let t=tK(x,"click",t=>{e(),t$(t)},{A:!0,I:!0,D:!1}),e=tK(x,"pointerup pointercancel",()=>{e(),setTimeout(t,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=[],tK(w,"pointerdown",v(t=>{let r=tx(t.target,`.${em}`)===O,a=r?O:w,s=e.scrollbars,m=s[r?"dragScroll":"clickScroll"],{button:A,isPrimary:y,pointerType:v}=t,{pointers:R}=s;if(0===A&&y&&m&&(R||[]).includes(v)){I(g),P();let e=!r&&(t.shiftKey||"instant"===m),s=J(tD,O),A=J(tD,w),y=(t,e)=>(t||s())[p]-(e||A())[p],v=u(tD(b)[c])/tW(b)[d]||1,R=tH(b)[f],S=t=>{tG(b,{[f]:R+t})},L=t=>{let{Rt:e}=i;S(1/v*t/(tW(w)[d]-tW(O)[d])*e[f])},_=t[l],k=s(),F=A(),X=k[c],U=y(k,F)+X/2,W=_-F[p]-U,V=r?0:W,E=t=>{I(Q),a.releasePointerCapture(t.pointerId)},Y=r||e,D=M(),Q=[tK(x,o,E),tK(x,"selectstart",t=>t.preventDefault(),{D:!1}),tK(w,o,E),Y&&tK(w,"pointermove",t=>L(V+t[l]-_)),Y&&(()=>{let t=tH(b);D();let e=tH(b),r={x:e.x-t.x,y:e.y-t.y};(h(r.x)>3||h(r.y)>3)&&(M(),tG(b,t),C(r),T(D))})];if(a.setPointerCapture(t.pointerId),e)L(W);else if(!r){let t=t4("__osClickScrollPlugin");if(t){let{Vt:e}=i,r=t(S,L,J(y),W,e[f],m,!!n,t=>{t?D():N(Q,D)});N(Q,r),N(g,J(r,!0))}}}}))),_,P])})),{vt:k,Qt:F,bt:X}=a,{Ft:U,Ut:W,Nt:V,qt:E,Bt:Y}=P,B=(t,e)=>{T();let n=t=>{r.Kt||U(eb,t)};if(t)n();else{let t=!p||!l;A>0&&!e?_(J(n,t)):n(t)}},$=()=>{(p?l:d)||(B(!0),M(()=>{B(!1)}))},G=t=>{y.includes(t.pointerType)&&(l=!0,!r.Kt&&p&&B(!0))},H=t=>{U(eR,t,!0),U(eR,t,!1)},z=[T,S,L,x,()=>g(),tK(k,"pointerover",G,{A:!0}),tK(k,"pointerenter",G),tK(k,"pointerleave",t=>{y.includes(t.pointerType)&&(l=!1,!r.Kt&&p&&B(!1))}),tK(k,"pointermove",v(t=>{y.includes(t.pointerType)&&c&&$()})),tK(F,"scroll",v(t=>{R(()=>{V(),$()}),o(t),Y()}))],q=t4(eN);return[()=>J(I,N(z,C())),({Dt:t,It:e,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}=eF(),{rn:x,j:M}=i,[S,w]=t("showNativeOverlaidScrollbars"),[N,L]=t("scrollbars.theme"),[_,T]=t("scrollbars.visibility"),[P,I]=t("scrollbars.autoHide"),[C,k]=t("scrollbars.autoHideSuspend"),[D]=t("scrollbars.autoHideDelay"),[Q,$]=t("scrollbars.dragScroll"),[G,z]=t("scrollbars.clickScroll"),[j,tt]=t("overflow"),te=m&&!e,tr=S&&R.x&&R.y,tn=!b&&!q,ti=(t,e,r)=>{let n=t.includes(K)&&(_===Z||"auto"===_&&e===K);return U(eg,n,r),n};if(A=D,(w||tn)&&U("os-theme-none",tr||tn),L&&(U(f),U(N,!0),f=N),(k||te)&&(H(!C),te&&C&&(M.x||M.y?(g(),O(()=>{g=tK(F,K,v(J(H,!0)),{A:!0})})):H(!0))),I&&(c="move"===P,p="leave"===P,B(d="never"===P,!0)),$&&U(eS,Q),z&&U(eM,!!G),l||T||tt){let t=ti(j.x,x.x,!0),e=ti(j.y,x.y,!1);U(eA,!(t&&e))}(o||s||u||h||e)&&(V(),W(),Y(),u&&E(),U(ev,!M.x,!0),U(ev,!M.y,!1),U(eh,y&&!X))},{},P]})(t,e,a,_,A,y,n),ti=t=>tr(t).some(e=>!!t[e]),ts=(t,n)=>{let{Kt:o,pn:s}=a;if(s||o&&i)return!1;let{vn:l,It:c,zt:u}=t,h=l||{},p=!!c||!i,d={Dt:ek(e,h,p),vn:h,It:p},f=n||L(tn({},d,{zt:u})),m=g(tn({},d,{fn:_,Zt:f}));q(tn({},d,{Zt:f,tn:m}));let A=ti(f),y=ti(m),v=A||y||!!tr(h).length||p;return i=!0,v&&r(t,{Zt:f,tn:m}),v};return[()=>{let{an:t,gt:e,St:r}=y,n=tH(t),i=[M(),d(),T(),()=>{a.pn=!0}],o=r();return tG(e,n),o(),J(I,i)},ts,t=>{let e=a.Kt;a.Kt=t,t||e===t||ts({It:!0,zt:!0})},()=>{q({Dt:ek(e,{},!1),vn:{},It:!1})},()=>({gn:a,hn:_,bn:A}),{yn:y,wn:te},x]})(t,A,({vn:t,It:e},{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",[t_,{updateHints:{sizeChanged:!!i,directionChanged:!!a,heightIntrinsicChanged:!!o,overflowEdgeChanged:!!u,overflowAmountChanged:!!h,overflowStyleChanged:!!p,scrollCoordinatesChanged:!!d,contentMutation:!!s,hostMutation:!!l,appear:!!c},changedOptions:t||{},force:!!e}])},t=>q("scroll",[t_,t])),tL=t=>{let{gn:e}=tv(),{pn:r}=e;!r&&(eD.delete(a),I(c),q("destroyed",[t_,t]),x(),_())},t_={options(t,e){if(t){let r=eC(A,tn(e?n():{},g(t)));tr(r).length&&(tn(A,r),ts({vn:r}))}return tn({},A)},on:L,off:(t,e)=>{t&&e&&_(t,e)},state(){let{gn:t,hn:e,bn:r}=tv(),{pn:n,Kt:i}=t,{B:a}=e,{Vt:o,Rt:s,rn:l,j:c,ln:u,_n:h,Tt:p}=r;return tn({},{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:t,vt:e,ln:r,L:n,ht:i,gt:a,Qt:o}=tO.yn,{jt:s,Jt:l}=tO.wn,c=t=>{let{kt:e,Pt:r,Lt:n}=t;return{scrollbar:n,track:r,handle:e}},u=t=>{let{Xt:e,Yt:r}=t;return tn({},c(e[0]),{clone:()=>{let t=c(r());return td(),t}})};return tn({},{target:t,host:e,padding:r||n,viewport:n,content:i||n,scrollOffsetElement:a,scrollEventElement:o,scrollbarHorizontal:u(s),scrollbarVertical:u(l)})},update:t=>ts({It:t,zt:!0}),destroy:J(tL,!1),sleep:tp,plugin:t=>d[tr(t)[0]]};return(N(c,[tN]),eD.set(a,t_),t5(t2,eQ,[t_,y,d]),((t,e)=>{let{nativeScrollbarsOverlaid:r,body:n}=e||{},{M:i,P:a,K:o}=eF(),{nativeScrollbarsOverlaid:s,body:l}=o().cancel,c=void 0===n?l:n,u=(i.x||i.y)&&(null!=r?r:s);return!!u||!!(t&&(null===c?!a:c))})(tO.yn.bt,!i&&t.cancel))?tL(!0):(N(c,te()),q("initialized",[t_]),t_.update()),t_}return c};eQ.plugin=t=>{let e=Array.isArray(t),r=e?t:[t],n=r.map(t=>t5(t,eQ)[0]);return w(r,t=>w(t,(e,r)=>{t2[r]=t[r]})),e?n:n[0]},eQ.valid=t=>{let e,r=t&&t.elements,n="function"==typeof r&&r();return S(n)&&(e=n.target,!!eD.get(e))},eQ.env=()=>{let{U:t,M:e,P:r,J:n,ot:i,st:a,K:o,Z:s,tt:l,nt:c}=eF();return tn({},{scrollbarsSize:t,scrollbarsOverlaid:e,scrollbarsHiding:r,scrollTimeline:n,staticDefaultInitialization:i,staticDefaultOptions:a,getDefaultInitialization:o,setDefaultInitialization:s,getDefaultOptions:l,setDefaultOptions:c})},eQ.nonce=t=>{i=t},eQ.trustedTypePolicy=t=>{n=t},r.d(e,{},{ae:eQ})},42451(t,e,r){let{PI:n}=Math,i=n+1e-4,a=.5,o=[1,1];function s(t,e,r,n=t=>t){return t*n(.5-e*(.5-r))}let{min:l}=Math;function c(t,e,r){let n=l(1,e/r);return l(1,t+(l(1,1-n)-t)*(.275*n))}function u(t,e){return[t[0]+e[0],t[1]+e[1]]}function h(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t}function p(t,e){return[t[0]-e[0],t[1]-e[1]]}function d(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t}function f(t,e){return[t[0]*e,t[1]*e]}function m(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t}function g(t){return[t[1],-t[0]]}function A(t,e){let r=e[0];return t[0]=e[1],t[1]=-r,t}function y(t,e){return t[0]*e[0]+t[1]*e[1]}function v(t,e){let r=t[0]-e[0],n=t[1]-e[1];return r*r+n*n}function R(t){var e;return e=Math.hypot(t[0],t[1]),[t[0]/e,t[1]/e]}function b(t,e,r){let n=Math.sin(r),i=Math.cos(r),a=t[0]-e[0],o=t[1]-e[1];return[a*i-o*n+e[0],a*n+o*i+e[1]]}function x(t,e,r,n){let i=Math.sin(n),a=Math.cos(n),o=e[0]-r[0],s=e[1]-r[1];return t[0]=o*a-s*i+r[0],t[1]=o*i+s*a+r[1],t}function M(t,e,r){return u(t,f(p(e,t),r))}let S=[0,0],w=[0,0],O=[0,0];function N(t,e,r){return!1===t||void 0===t?0:!0===t?Math.max(e,r):t}let L=[0,0];function _(t){return null!=t&&t>=0}function T(t,e={}){return function(t,e={}){var r,n;let{size:a=16,smoothing:o=.5,thinning:l=.5,simulatePressure:M=!0,easing:L=t=>t,start:_={},end:T={},last:P=!1}=e,{cap:I=!0,easing:C=t=>t*(2-t)}=_,{cap:k=!0,easing:F=t=>--t*t*t+1}=T;if(0===t.length||a<=0)return[];let X=t[t.length-1].runningLength,U=N(_.taper,a,X),W=N(T.taper,a,X),V=(a*o)**2,E=[],Y=[],D=t.slice(0,10).reduce((t,e)=>{let r=e.pressure;return M&&(r=c(t,e.distance,a)),(t+r)/2},t[0].pressure),Q=s(a,l,t[t.length-1].pressure,L),Z,B=t[0].vector,K=t[0].point,$=K,G=K,H=$,z=!1;for(let e=0;e<t.length;e++){let{pressure:r}=t[e],{point:n,vector:o,distance:f,runningLength:g}=t[e],R=e===t.length-1;if(!R&&X-g<3)continue;l?(M&&(r=c(D,f,a)),Q=s(a,l,r,L)):Q=a/2,void 0===Z&&(Z=Q),Q=Math.max(.01,Q*Math.min(g<U?C(g/U):1,X-g<W?F((X-g)/W):1));let b=(R?t[e]:t[e+1]).vector,N=R?1:y(o,b),_=0>y(o,B)&&!z,T=null!==N&&N<0;if(_||T){A(S,B),m(S,S,Q);for(let t=0;t<=1;t+=.07692307692307693)d(w,n,S),x(w,w,n,i*t),G=[w[0],w[1]],E.push(G),h(O,n,S),x(O,O,n,-(i*t)),H=[O[0],O[1]],Y.push(H);K=G,$=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(t,e,r,n){let i=r[0]-e[0],a=r[1]-e[1];t[0]=e[0]+i*n,t[1]=e[1]+a*n})(S,b,o,N),A(S,S),m(S,S,Q),d(w,n,S),G=[w[0],w[1]],(e<=1||v(K,G)>V)&&(E.push(G),K=G),h(O,n,S),H=[O[0],O[1]],(e<=1||v($,H)>V)&&(Y.push(H),$=H),D=r,B=o}let J=[t[0].point[0],t[0].point[1]],j=t.length>1?[t[t.length-1].point[0],t[t.length-1].point[1]]:u(t[0].point,[1,1]),q=[],tt=[];if(1===t.length){if(!(U||W)||P)return function(t,e){var r;let n=(r=R(g(p(t,u(t,[1,1])))),u(t,f(r,-e))),a=[],o=1/13;for(let e=o;e<=1;e+=o)a.push(b(n,t,2*i*e));return a}(J,Z||Q)}else{let e,a,o;U||W&&1===t.length||(I?q.push(...function(t,e){let r=[],n=1/13;for(let a=n;a<=1;a+=n)r.push(b(e,t,i*a));return r}(J,Y[0])):q.push(...(a=f(e=p(E[0],Y[0]),.5),o=f(e,.51),[p(J,a),p(J,o),u(J,o),u(J,a)])));let s=g([-(r=t[t.length-1].vector)[0],-r[1]]);W||U&&1===t.length?tt.push(j):k?tt.push(...function(t,e,r){let n=[],a=u(t,f(e,r)),o=1/29;for(let e=o;e<1;e+=o)n.push(b(a,t,3*i*e));return n}(j,s,Q)):tt.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(tt,Y.reverse(),q)}(function(t,e={}){let{streamline:r=.5,size:n=16,last:i=!1}=e;if(0===t.length)return[];let s=.15+(1-r)*.85,l=Array.isArray(t[0])?t:t.map(({x:t,y:e,pressure:r=a})=>[t,e,r]);if(2===l.length){let t=l[1];l=l.slice(0,-1);for(let e=1;e<5;e++)l.push(M(l[0],t,e/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 t=1;t<l.length;t++){var g,A;let e=i&&t===m?[l[t][0],l[t][1]]:M(f.point,l[t],s);if(g=f.point,g[0]===e[0]&&g[1]===e[1])continue;let r=(A=f.point,Math.hypot(e[1]-A[1],e[0]-A[0]));if(p+=r,t<m&&!h){if(p<n)continue;h=!0}d(L,f.point,e),f={point:e,pressure:_(l[t][2])?l[t][2]:a,vector:R(L),distance:r,runningLength:p},c.push(f)}return c[0].vector=c[1]?.vector||[0,0],c}(t,e),e)}r.d(e,{$4:()=>T})},14870(t,e,r){r.d(e,{q:()=>en});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(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function y(t){let e=t.indexOf(":");return -1===e?t:t.slice(e+1)}function v(t){return"string"!=typeof t}function R(t){let e="";for(let r of t.children)e+="string"==typeof r?r:R(r);return e}function b(t,e=[],r={}){let n="",i=0,a=t.length;for(;i<a;){let a=t[i];if("{"===a){if("{"===t[i+1]){n+="{",i+=2;continue}let o=t.indexOf("}",i+1);if(-1===o){n+=a,i+=1;continue}let s=t.slice(i+1,o);/^\d+$/.test(s)?n+=e[Number(s)]??"":n+=r[s]??"",i=o+1;continue}if("}"===a&&"}"===t[i+1]){n+="}",i+=2;continue}n+=a,i+=1}return n}function x(t){let e=t.split("\\\\").join("\\"),r="",n=null;for(let t of e)o.includes(t)&&"\\"!==n?r+="\\"+t:r+=t,n=t;return r}function M(t,e,r){return void 0!==t?r&&void 0!==r[t]?r[t]:t:e}function S(t,e=!1){if(void 0===t)return e;let r=t.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(t){return this.attrs[t]}constructor(t,e){for(let e of(A(this,"text",""),A(this,"attrs",{}),t.children)){if(!v(e))continue;let t=y(e.tagName);"brk"===t?(this.attrs.brk="\\\\",this.text+="\\\\"):w.has(t)&&(this.attrs[t]=N(e,"val"))}}}function N(t,e){for(let r of Object.keys(t.attributes))if(y(r)===e){let e=t.attributes[r];return null==e?void 0:e}}let L=new Set(["box","sSub","sSup","sSubSup","num","den","deg","e"]);class _{convert(t){let e=this.oMath(t);for(let t of this.unsupported)this.options.onUnsupported?.(t);return e}noteUnsupported(t){this.unsupported.add(t)}oMath(t){return this.processChildren(t)}processChildrenList(t,e){let r=[];for(let n of t.children){if(!v(n))continue;let t=y(n.tagName);if(e&&!e.has(t))continue;let i=this.dispatch(t,n);(null!=i||null!=(i=this.processUnknown(t,n)))&&r.push({stag:t,value:i,node:n})}return r}processChildrenDict(t,e){let r={};for(let{stag:n,value:i}of this.processChildrenList(t,e))r[n]=i;return r}processChildren(t,e){let r="";for(let{value:n}of this.processChildrenList(t,e))r+=n instanceof O?n.text:String(n);return r}dispatch(t,e){switch(t){case"acc":return this.doAcc(e);case"r":return this.doR(e);case"bar":return this.doBar(e);case"sub":return this.doSub(e);case"sup":return this.doSup(e);case"f":return this.doF(e);case"func":return this.doFunc(e);case"fName":return this.doFName(e);case"groupChr":return this.doGroupChr(e);case"d":return this.doD(e);case"rad":return this.doRad(e);case"eqArr":return this.doEqArr(e);case"limLow":return this.doLimLow(e);case"limUpp":return this.doLimUpp(e);case"lim":return this.doLim(e);case"m":return this.doM(e);case"mr":return this.doMr(e);case"nary":return this.doNary(e);case"borderBox":return this.doBorderBox(e);case"phant":return this.doPhant(e);case"sPre":return this.doSPre(e);default:return null}}processUnknown(t,e){return L.has(t)?this.processChildren(e):t.endsWith("Pr")?new O(e,this):(this.noteUnsupported(t),R(e))}doAcc(t){let e=this.processChildrenDict(t),r=e.accPr;return b(M(r?.get("chr"),"\\hat{{{0}}}",s)??"",[e.e??""])}doBar(t){let e=this.processChildrenDict(t),r=e.barPr,n=M(r?.get("pos"),"\\overline{{{0}}}",h)??"",i=e.e??"";return(r?.text??"")+b(n,[i])}doD(t){let e=this.processChildrenDict(t).dPr,r=M(e?.get("begChr"),"(",c),n=M(e?.get("endChr"),")",c),i=M(e?.get("sepChr"),"|",c),a=this.processChildrenList(t,new Set(["e"])).map(t=>String(t.value)),o=i?x(i):"",s=a.join(o);return(e?.text??"")+b("\\left{left}{text}\\right{right}",[],{left:r?x(r):".",text:s,right:n?x(n):"."})}doSub(t){return b(T,[this.processChildren(t)])}doSup(t){return b(P,[this.processChildren(t)])}doF(t){let e=this.processChildrenDict(t),r=e.fPr,n=M(r?.get("type"),d,p)??"";n===d&&S(r?.get("smallFrac"))&&(n="\\tfrac{{{num}}}{{{den}}}");let i=e.num??"",a=e.den??"";return(r?.text??"")+b(n,[],{num:i,den:a})}doFunc(t){let e=this.processChildrenDict(t),r=e.fName??"",n=e.e??"";return r.split("{fe}").join(n)}doFName(t){let e=[];for(let{stag:r,value:n}of this.processChildrenList(t))if("r"===r){let t=String(n).trim();void 0!==u[t]?e.push(u[t]):(this.noteUnsupported("fName:"+t),e.push(String(n)))}else e.push(String(n));let r=e.join("");return r.includes("{fe}")?r:r+"{fe}"}doGroupChr(t){let e=this.processChildrenDict(t),r=e.groupChrPr,n=M(r?.get("chr"),void 0,s)??"",i=e.e??"";return(r?.text??"")+b(n,[i])}doRad(t){let e=this.processChildrenDict(t),r=e.e??"",n=e.deg;return n?b("\\sqrt[{deg}]{{{text}}}",[],{deg:n,text:r}):b("\\sqrt{{{text}}}",[],{text:r})}doEqArr(t){return b("\\begin{{array}}{{c}}{text}\\end{{array}}",[],{text:this.processChildrenList(t,new Set(["e"])).map(t=>String(t.value)).join("\\\\")})}doLimLow(t){let e=this.processChildrenDict(t,new Set(["e","lim"])),r=e.e??"",n=e.lim??"",i=m[r];return i?b(i,[],{lim:n}):(this.noteUnsupported("limLow:"+r),r+n)}doLimUpp(t){let e=this.processChildrenDict(t,new Set(["e","lim"]));return b("\\overset{{{lim}}}{{{text}}}",[],{lim:e.lim??"",text:e.e??""})}doLim(t){return this.processChildren(t).split(g["0"]).join(g["1"])}doM(t){let e=[],r="\\begin{{matrix}}{text}\\end{{matrix}}";for(let{stag:n,value:i,node:a}of this.processChildrenList(t)){if("mPr"===n){let t=function t(e,r,n){for(let i of e.children){if(!v(i))continue;if(y(i.tagName)===r){let t=N(i,n);if(void 0!==t)return t}let e=t(i,r,n);if(void 0!==e)return e}}(a,"mcJc","val");t&&f[t]&&(r=f[t]);continue}"mr"===n&&e.push(String(i))}return b(r,[],{text:e.join("\\\\")})}doMr(t){return this.processChildrenList(t,new Set(["e"])).map(t=>String(t.value)).join("&")}doNary(t){let e=[],r="",n="";for(let{stag:i,value:a}of this.processChildrenList(t))"naryPr"===i?(r=M(a.get("chr"),void 0,l)??"",n=a.get("naryLim")??a.get("limLoc")??a.get("intLim")??""):e.push(String(a));return r+("undOvr"===n?"\\limits":"")+e.join("")}doBorderBox(t){return b("\\boxed{{{0}}}",[this.processChildrenDict(t).e??""])}doPhant(t){let e=this.processChildrenDict(t),r=e.phantPr,n=e.e??"";return S(r?.get("show"),!0)?n:b("\\phantom{{{0}}}",[n])}doSPre(t){let e=this.processChildrenDict(t),r=e.e??"",n=e.sub??"",i=e.sup??"";return`{}${n}${i}{${r}}`}processUnicode(t){let e="";for(let r of t.normalize("NFC")){let t=c[r];void 0!==t?e+=t:o.includes(r)?e+=r:e+=function(t){let e=String(t).normalize("NFC"),r="";for(let t of e){let e=a[t.codePointAt(0)];void 0!==e?r+="{"+e+"}":r+=t}return r}(r)}return e}doR(t){let e=[],r=[];for(let n of t.children){if(!v(n)||"t"!==y(n.tagName))continue;let t=R(n);e.push(this.processUnicode(t)),r.push(t)}let n=x(e.join("")),i=r.join("");return!i.includes("{")&&n.includes("\\{")&&(n=n.split("\\{").join("{")),!i.includes("}")&&n.includes("\\}")&&(n=n.split("\\}").join("}")),n}constructor(t={}){A(this,"options",void 0),A(this,"unsupported",void 0),this.options=t,this.unsupported=new Set}}let T="_{{{0}}}",P="^{{{0}}}";function I(t){return t.replace(/&(#x[0-9a-fA-F]+|#\d+|amp|lt|gt|quot|apos);/g,function(t,e){if("amp"===e)return"&";if("lt"===e)return"<";if("gt"===e)return">";if("quot"===e)return'"';if("apos"===e)return"'";if("#"===e[0]){var r="x"===e[1]||"X"===e[1],n=parseInt(e.slice(r?2:1),r?16:10);if(!Number.isNaN(n)&&n>=0&&n<=1114111)try{return String.fromCodePoint(n)}catch(t){}}return t})}var C=r(49705).hp;let k=0,F=new Set(["m:oMath","m:oMathPara"]);async function X(t,e){try{let r=t.file(e);if(!r)return null;let n=await r.async("string");return function t(e,r={}){let n={};if(!e.length)return n;if(1===e.length&&"string"==typeof e[0])return Object.keys(r).length?{attrs:{order:k++,...r},value:e[0]}:e[0];for(let r of e){if("string"==typeof r&&""===r.trim())continue;if("object"!=typeof r)return;if("?xml"===r.tagName)continue;n[r.tagName]||(n[r.tagName]=[]);let e=t(r.children||[],r.attributes);"object"==typeof e&&(e.attrs?e.attrs.order=k++:e.attrs={order:k++},F.has(r.tagName)&&Object.defineProperty(e,"__rawNode",{value:r,enumerable:!1})),Object.keys(r.attributes||{}).length&&(e.attrs={...e.attrs,...r.attributes}),n[r.tagName].push(e)}for(let t in n)1===n[t].length&&(n[t]=n[t][0]);return n}(function t(e,r){var n=(r=r||{}).pos||0,i=!!r.keepComments,a=!!r.keepWhitespace,o=!!r.decodeEntities,s=!!r.skipXmlDeclaration;function l(t){return"string"==typeof t&&"?xml"===t.toLowerCase()}function c(t){for(var r=[];e[n];)if(60==e.charCodeAt(n)){if(47===e.charCodeAt(n+1)){var c=n+2;if(n=e.indexOf(">",n),-1==e.substring(c,n).indexOf(t)){var u=e.substring(0,n).split("\n");throw Error("Unexpected close tag\nLine: "+(u.length-1)+"\nColumn: "+(u[u.length-1].length+1)+"\nChar: "+e[n])}return n+1&&(n+=1),r}if(33===e.charCodeAt(n+1)){if(45==e.charCodeAt(n+2)){let t=n;for(;-1!==n&&(62!==e.charCodeAt(n)||45!=e.charCodeAt(n-1)||45!=e.charCodeAt(n-2)||-1==n);)n=e.indexOf(">",n+1);-1===n&&(n=e.length),i&&r.push(e.substring(t,n+1))}else{if(91===e.charCodeAt(n+2)&&91===e.charCodeAt(n+8)&&"cdata"===e.substr(n+3,5).toLowerCase()){var h=e.indexOf("]]>",n);-1==h?(r.push(e.substr(n+9)),n=e.length):(r.push(e.substring(n+9,h)),n=h+3);continue}{let t=n+1;n+=2;for(var p=!1;(62!==e.charCodeAt(n)||!0===p)&&e[n];)91===e.charCodeAt(n)?p=!0:!0===p&&93===e.charCodeAt(n)&&(p=!1),n++;r.push(e.substring(t,n))}}n++;continue}var d=f();if(s&&l(d.tagName))continue;r.push(d)}else{var m=function(){var t=n;-2==(n=e.indexOf("<",n)-1)&&(n=e.length);var r=e.slice(t,n+1);return o?I(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 t=n;-1===u.indexOf(e[n])&&e[n];)n++;return e.slice(t,n)}var p,d=r.selfClosingTags||r.noChildNodes||["img","br","input","meta","link","hr"];function f(){n++;let t=h(),r="?"===t[0],i=n,a={},s=[];for(;e[n]&&62!==e.charCodeAt(n)&&(!r||63!==e.charCodeAt(n)||62!==e.charCodeAt(n+1));){var l=e.charCodeAt(n);if(l>64&&l<91||l>96&&l<123){for(var p=h(),f=null;32===e.charCodeAt(n)||9===e.charCodeAt(n)||10===e.charCodeAt(n)||13===e.charCodeAt(n);)n++;if(61===e.charCodeAt(n)){for(n++;32===e.charCodeAt(n)||9===e.charCodeAt(n)||10===e.charCodeAt(n)||13===e.charCodeAt(n);)n++;var m=e.charCodeAt(n);if(39===m||34===m){if(f=function(){var t=e[n],r=n+1;n=e.indexOf(t,r);var i=e.slice(r,n);return o?I(i):i}(),-1===n)return{tagName:t,attributes:a,children:s}}else if(m&&62!==m){for(var g=n;e[n]&&-1===u.indexOf(e[n]);)n++;f=e.slice(g,n),o&&(f=I(f))}}a[p]=f}else n++}if(r){var A=e.slice(i,n).trim();return A.length>0&&0===Object.keys(a).length&&(s=[A]),63===e.charCodeAt(n)&&62===e.charCodeAt(n+1)?n+=2:62===e.charCodeAt(n)&&(n+=1),{tagName:t,attributes:a,children:s}}if(47!==e.charCodeAt(n-1)&&63!==e.charCodeAt(n-1))if("script"==t){var y=n+1;n=e.indexOf("<\/script>",n),s=[e.slice(y,n)],n+=9}else"style"==t?(y=n+1,n=e.indexOf("</style>",n),s=[e.slice(y,n)],n+=8):-1===d.indexOf(t)?(n++,s=c(t)):n++;else n++;return{tagName:t,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 t=RegExp("\\s"+r.attrName+"\\s*=['\"]"+r.attrValue+"['\"]").exec(e);return t?t.index:-1}());)-1!==(n=e.lastIndexOf("<",n))&&p.push(f()),e=e.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 t(e,r,n=0,i=""){var a=[];return e.forEach(function(e,o){if("object"==typeof e&&r(e,o,n,i)&&a.push(e),"object"==typeof e&&e.children){var s=t(e.children,r,n+1,(i?i+".":"")+o+"."+e.tagName);a=a.concat(s)}}),a}(p,r.filter)),r.simplify)?function e(r){if("string"==typeof r)return e(t(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(t){if("object"==typeof t){n[t.tagName]||(n[t.tagName]=[]);var r=e(t.children);n[t.tagName].push(r),Object.keys(t.attributes).length&&"object"==typeof r&&!Array.isArray(r)&&(r._attributes=t.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(t){return"1"===t||"true"===t}function W(t){return t.substr((~-t.lastIndexOf(".")>>>0)+2)}function V(t,e){if(!t)return t;let r="";if(t.constructor===Array)for(let n=0;n<t.length;n++)r+=e(t[n],n);else r+=e(t,0);return r}function E(t,e){if(!t)return t;for(let r of e)if(!(t=t[r]))break;return t}function Y(t){return t?Math.round(t/6e4):0}function D(t){let e={"&":"&","<":"<",">":">",'"':""","'":"'"};return t.replace(/[&<>"']/g,t=>e[t])}function Q(t){let e=t.toString(16);for(;e.length<2;)e="0"+e;return e}function Z(t,e=4){return parseFloat(t.toFixed(e))}function B(t,e,r,n){let i,a;if(r)a=r;else{let t=E(e.slideContent,["p:sld","p:clrMapOvr","a:overrideClrMapping","attrs"]);a=t||(t=E(e.slideLayoutContent,["p:sldLayout","p:clrMapOvr","a:overrideClrMapping","attrs"]))||E(e.slideMasterContent,["p:sldMaster","p:clrMap","attrs"])}let o=t.substr(2);if("phClr"===o&&n)i=n;else{if(a)switch(o){case"tx1":case"tx2":case"bg1":case"bg2":t="a:"+a[o]}else switch(o){case"tx1":t="a:dk1";break;case"tx2":t="a:dk2";break;case"bg1":t="a:lt1";break;case"bg2":t="a:lt2"}let r=E(e.themeContent,["a:theme","a:themeElements","a:clrScheme",t]);(i=E(r,["a:srgbClr","attrs","val"]))||!r||(i=E(r,["a:sysClr","attrs","lastClr"]))}return i}function K(t,e,r){return(r<0&&(r+=6),r>=6&&(r-=6),r<1)?(e-t)*r+t:r<3?e:r<4?(e-t)*(4-r)+t:t}function $(t,e,r){let n=(0,i.A)(t).toHsl();e>=1&&(e=1);let a=n.l*e+(1-e);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(t){let e="";return t["a:noFill"]&&(e="NO_FILL"),t["a:solidFill"]&&(e="SOLID_FILL"),t["a:gradFill"]&&(e="GRADIENT_FILL"),t["a:pattFill"]&&(e="PATTERN_FILL"),t["a:blipFill"]&&(e="PIC_FILL"),t["a:grpFill"]&&(e="GROUP_FILL"),e}function H(t=""){return{ref:t,base64:"",blob:"",align:{t:0,b:0,l:0,r:0},alignType:"stretch"}}function z(t=""){return{ref:t,blob:""}}async function J(t,e,r,n="base64"){let i;if(!t||"base64"!==n&&"blob"!==n)return"";let a=D(t),o=(i=e[r]||{},e[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=e.zip.file(a);if(!c)return"";let u=await c.async("arraybuffer"),h=function(t){let e="";switch(t.toLowerCase()){case"jpg":case"jpeg":e="image/jpeg";break;case"png":e="image/png";break;case"gif":e="image/gif";break;case"emf":e="image/x-emf";break;case"wmf":e="image/x-wmf";break;case"svg":e="image/svg+xml";break;case"mp4":e="video/mp4";break;case"webm":e="video/webm";break;case"ogg":e="video/ogg";break;case"avi":e="video/avi";break;case"mpg":e="video/mpg";break;case"wmv":e="video/wmv";break;case"mp3":e="audio/mpeg";break;case"wav":e="audio/wav";break;case"tif":case"tiff":e="image/tiff"}return e}(l);if("emf"===l){let t=function(t){if("u"<typeof document)return"";let e=function(t){if(!t||t.length<44)return null;let e=new DataView(t.buffer,t.byteOffset,t.byteLength);if(0x464d4520!==e.getUint32(40,!0))return null;let r=0;for(;r+8<=t.length;){let n=e.getUint32(r,!0),i=e.getUint32(r+4,!0);if(i<8||r+i>t.length||14===n)break;if(81===n&&i>80){let n=function(t,e,r){if(r+80>t.length)return null;let n=e.getUint32(r+48,!0),i=e.getUint32(r+52,!0),a=e.getUint32(r+56,!0),o=e.getUint32(r+60,!0);if(0===i||0===o)return null;let s=r+n;if(s+40>t.length)return null;let l=e.getInt32(s+4,!0),c=e.getInt32(s+8,!0),u=e.getUint16(s+14,!0);if(0!==e.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>t.length)return null;let f=t.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 t=0;t<p;t++){let e=(m?t:p-1-t)*y,r=t*h*4;for(let t=0;t<h;t++){let n=e+t*A;if(n+A>f.length)break;g[r+4*t+0]=f[n+2],g[r+4*t+1]=f[n+1],g[r+4*t+2]=f[n+0],g[r+4*t+3]=32===u?f[n+3]:255}}return{width:h,height:p,data:g}}(t,e,r);if(n)return n}r+=i}return null}(t);if(!e)return"";let r=document.createElement("canvas");r.width=e.width,r.height=e.height;let n=r.getContext("2d");return n?(n.putImageData(new ImageData(e.data,e.width,e.height),0,0),r.toDataURL("image/png")):""}(new Uint8Array(u));if(t){if("base64"===n)s.base64=t;else{let e=Uint8Array.from(atob(t.split(",")[1]),t=>t.charCodeAt(0));s.blob=URL.createObjectURL(new Blob([e],{type:"image/png"}))}return s[n]}}return"base64"===n?s.base64=`data:${h};base64,${function(t){let e,r,n,i,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=new Uint8Array(t),s=o.byteLength,l=s%3,c=s-l,u="";for(let t=0;t<c;t+=3)e=(0xfc0000&(i=o[t]<<16|o[t+1]<<8|o[t+2]))>>18,u+=a[e]+a[r=(258048&i)>>12]+a[n=(4032&i)>>6]+a[63&i];return 1===l?(e=(252&(i=o[c]))>>2,u+=a[e]+a[r=(3&i)<<4]+"=="):2===l&&(e=(64512&(i=o[c]<<8|o[c+1]))>>10,u+=a[e]+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(t,e,r="base64"){return await J(t,e,"loadedImages",r)}async function q(t,e,r="blob"){return"blob"!==r?"":await J(t,e,"loadedVideos","blob")}async function tt(t,e,r="blob"){return"blob"!==r?"":await J(t,e,"loadedAudios","blob")}async function te(t,e){let r,n=H(t||"");if(!t)return n;let i="blob"===(r=E(e,["options","imageMode"]))||"both"===r||"none"===r?r:"base64";return("base64"===i||"both"===i)&&(n.base64=await j(t,e,"base64")),("blob"===i||"both"===i)&&(n.blob=await j(t,e,"blob")),n}async function tr(t,e){let r=z(t||"");return t?("blob"==("blob"===E(e,["options","videoMode"])?"blob":"none")&&(r.blob=await q(t,e,"blob")),r):r}async function tn(t,e){let r=z(t||"");return t?("blob"==("blob"===E(e,["options","audioMode"])?"blob":"none")&&(r.blob=await tt(t,e,"blob")),r):r}async function ti(t,e,r){let n;if(!e)return H();let i=E(e,["a:blip","attrs","r:embed"]);if("slideBg"===t||"slide"===t?n=E(r,["slideResObj",i,"target"]):"slideLayoutBg"===t?n=E(r,["layoutResObj",i,"target"]):"slideMasterBg"===t?n=E(r,["masterResObj",i,"target"]):"themeBg"===t?n=E(r,["themeResObj",i,"target"]):"diagramBg"===t&&(n=E(r,["diagramResObj",i,"target"])),!n)return H();let a=await te(n,r),o={t:0,b:0,l:0,r:0},s="stretch";if(e["a:stretch"]){s="stretch";let t=E(e,["a:stretch","a:fillRect","attrs"]);t&&(t.t&&(o.t=parseInt(t.t)/1e3),t.b&&(o.b=parseInt(t.b)/1e3),t.l&&(o.l=parseInt(t.l)/1e3),t.r&&(o.r=parseInt(t.r)/1e3))}else if(e["a:tile"]){s="tile";let t=E(e,["a:tile","attrs"]);t&&(t.t&&(o.t=parseInt(t.t)/1e3),t.b&&(o.b=parseInt(t.b)/1e3),t.l&&(o.l=parseInt(t.l)/1e3),t.r&&(o.r=parseInt(t.r)/1e3))}else e["a:scale"]&&(s="scale");return a.align=o,a.alignType=s,a}function ta(t){let e=E(t["a:blip"],["a:alphaModFix","attrs"]),r=1;return e&&e.amt&&""!==e.amt&&(r=parseInt(e.amt)/1e5),r}async function to(t,e,r){let n=await ti(e,t["a:blipFill"],r),i=E(t["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 ts(t,e){if(!t["a:gsLst"])return null;let r=t["a:gsLst"]["a:gs"],n=[];for(let t=0;t<r.length;t++){let i=tf(r[t],void 0,void 0,e),a=E(r[t],["attrs","pos"]);n[t]={pos:a?a/1e3+"%":"",color:i}}let i=t["a:lin"],a=0,o="line";if(i)a=Y(i.attrs.ang);else{let e=t["a:path"];e&&e.attrs&&e.attrs.path&&(o=e.attrs.path)}return{rot:a,path:o,colors:n.sort((t,e)=>parseInt(t.pos)-parseInt(e.pos))}}function tl(t,e){if(!t)return null;let r=t["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=tf(i,void 0,void 0,e)),a&&(s=tf(a,void 0,void 0,e)),{type:n,foregroundColor:o,backgroundColor:s}}function tc(t,e,r,n){if(t){let i=t["a:gradFill"],a=i["a:gsLst"]["a:gs"],o=[];for(let t=0;t<a.length;t++){let i=tf(a[t],r["p:sldMaster"]["p:clrMap"].attrs,e,n),s=E(a[t],["attrs","pos"]);o[t]={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 t=i["a:path"];t&&t.attrs&&t.attrs.path&&(c=t.attrs.path)}return{rot:l,path:c,colors:o.sort((t,e)=>parseInt(t.pos)-parseInt(e.pos))}}return e?-1===e.indexOf("#")?`#${e}`:e:null}async function tu(t){let e=t.slideContent,r=t.slideLayoutContent,n=t.slideMasterContent,i=E(e,["p:sld","p:cSld","p:bg","p:bgPr"]),a=E(e,["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(e,["p:sld","p:clrMapOvr","a:overrideClrMapping","attrs"]);o=tf(s,a=l?l:E(r,["p:sldLayout","p:clrMapOvr","a:overrideClrMapping","attrs"])||E(n,["p:sldMaster","p:clrMap","attrs"]),void 0,t)}else if("GRADIENT_FILL"===a){let e=tc(i,void 0,n,t);"string"==typeof e?o=e:e&&(o=e,s="gradient")}else if("PIC_FILL"===a)o=await to(i,"slideBg",t),s="image";else if("PATTERN_FILL"===a){let e=tl(i,t);e&&(o=e,s="pattern")}}else if(a){let i,l=E(e,["p:sld","p:clrMapOvr","a:overrideClrMapping","attrs"]),c=tf(a,i=l?l:E(r,["p:sldLayout","p:clrMapOvr","a:overrideClrMapping","attrs"])||E(n,["p:sldMaster","p:clrMap","attrs"]),void 0,t),u=Number(a.attrs.idx);if(u>1e3){let e=t.themeContent["a:theme"]["a:themeElements"]["a:fmtScheme"]["a:bgFillStyleLst"],r=[];Object.keys(e).forEach(t=>{let n=e[t];if("attrs"!==t)if(n.constructor===Array)for(let e=0;e<n.length;e++){let i={};i[t]=n[e],n[e].attrs&&(i.idex=n[e].attrs.order,i.attrs={order:n[e].attrs.order}),r.push(i)}else{let e={};e[t]=n,n.attrs&&(e.idex=n.attrs.order,e.attrs={order:n.attrs.order}),r.push(e)}});let a=r.slice(0);a.sort((t,e)=>t.idex-e.idex);let l=a[u-1e3-1],h=G(l);if("SOLID_FILL"===h)o=tf(l["a:solidFill"],i,c,t);else if("GRADIENT_FILL"===h){let e=tc(l,c,n,t);"string"==typeof e?o=e:e&&(o=e,s="gradient")}}}else{let e;if(i=E(r,["p:sldLayout","p:cSld","p:bg","p:bgPr"]),a=E(r,["p:sldLayout","p:cSld","p:bg","p:bgRef"]),e=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=tf(i["a:solidFill"],e,void 0,t);else if("GRADIENT_FILL"===r){let e=tc(i,void 0,n,t);"string"==typeof e?o=e:e&&(o=e,s="gradient")}else if("PIC_FILL"===r)o=await to(i,"slideLayoutBg",t),s="image";else if("PATTERN_FILL"===r){let e=tl(i,t);e&&(o=e,s="pattern")}}else if(a){let r=tf(a,e,void 0,t),i=Number(a.attrs.idx);if(i>1e3){let a=t.themeContent["a:theme"]["a:themeElements"]["a:fmtScheme"]["a:bgFillStyleLst"],l=[];Object.keys(a).forEach(t=>{let e=a[t];if("attrs"!==t)if(e.constructor===Array)for(let r=0;r<e.length;r++){let n={};n[t]=e[r],e[r].attrs&&(n.idex=e[r].attrs.order,n.attrs={order:e[r].attrs.order}),l.push(n)}else{let r={};r[t]=e,e.attrs&&(r.idex=e.attrs.order,r.attrs={order:e.attrs.order}),l.push(r)}});let c=l.slice(0);c.sort((t,e)=>t.idex-e.idex);let u=c[i-1e3-1],h=G(u);if("SOLID_FILL"===h)o=tf(u["a:solidFill"],e,r,t);else if("GRADIENT_FILL"===h){let e=tc(u,r,n,t);"string"==typeof e?o=e:e&&(o=e,s="gradient")}else if("PIC_FILL"===h)o=await to(u,"themeBg",t),s="image";else if("PATTERN_FILL"===h){let e=tl(u,t);e&&(o=e,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 e=G(i);if("SOLID_FILL"===e)o=tf(i["a:solidFill"],r,void 0,t);else if("GRADIENT_FILL"===e){let e=tc(i,void 0,n,t);"string"==typeof e?o=e:e&&(o=e,s="gradient")}else if("PIC_FILL"===e)o=await to(i,"slideMasterBg",t),s="image";else if("PATTERN_FILL"===e){let e=tl(i,t);e&&(o=e,s="pattern")}}else if(a){let i=tf(a,r,void 0,t),l=Number(a.attrs.idx);if(l>1e3){let r=t.themeContent["a:theme"]["a:themeElements"]["a:fmtScheme"]["a:bgFillStyleLst"],a=[];Object.keys(r).forEach(t=>{let e=r[t];if("attrs"!==t)if(e.constructor===Array)for(let r=0;r<e.length;r++){let n={};n[t]=e[r],e[r].attrs&&(n.idex=e[r].attrs.order,n.attrs={order:e[r].attrs.order}),a.push(n)}else{let r={};r[t]=e,e.attrs&&(r.idex=e.attrs.order,r.attrs={order:e.attrs.order}),a.push(r)}});let c=a.slice(0);c.sort((t,e)=>t.idex-e.idex);let u=c[l-1e3-1],h=G(u);if("SOLID_FILL"===h)o=tf(u["a:solidFill"],e,i,t);else if("GRADIENT_FILL"===h){let e=tc(u,i,n,t);"string"==typeof e?o=e:e&&(o=e,s="gradient")}else if("PIC_FILL"===h)o=await to(u,"themeBg",t),s="image";else if("PATTERN_FILL"===h){let e=tl(u,t);e&&(o=e,s="pattern")}}}}}return{type:s,value:o}}async function th(t,e,r,n){if(!t)return{state:"missing"};let i=E(t,["p:spPr"]),a=i?G(i):"",o="color",s="";if("NO_FILL"===a)return{state:"none"};if("SOLID_FILL"===a)s=tf(i["a:solidFill"],void 0,void 0,e),o="color";else if("GRADIENT_FILL"===a)s=ts(i["a:gradFill"],e),o="gradient";else if("PIC_FILL"===a){let t=i["a:blipFill"],n=await ti(r,t,e),a=ta(t);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=tl({"a:pattFill":i["a:pattFill"]},e),o="pattern";else if("GROUP_FILL"===a){let t=await td(n,e,r);return t?{state:"found",fill:t}:{state:"none"}}if(!s){let r=E(t,["attrs","useBgFill"]);if("1"===r||"true"===r){let t=await tu(e);return t?{state:"found",fill:t}:{state:"none"}}let n=E(t,["p:style","a:fillRef"]);if(n&&0===Number(E(n,["attrs","idx"])))return{state:"none"};s=tf(n,void 0,void 0,e),o="color"}return s?{state:"found",fill:{type:o,value:s}}:{state:"missing"}}async function tp(t,e,r,n={}){let i,{groupHierarchy:a=[],slideLayoutSpNode:o,slideMasterSpNode:s}=n;for(let n of(i=[{node:t,source:r}],o&&i.push({node:o,source:"slideLayoutBg"}),s&&i.push({node:s,source:"slideMasterBg"}),i)){let t=await th(n.node,e,n.source,a);if("none"===t.state)break;if("found"===t.state)return t.fill}return null}async function td(t,e,r){for(let n of t){if(!n||!n["p:grpSpPr"])continue;let t=n["p:grpSpPr"],i=G(t);if("SOLID_FILL"===i){let r=tf(t["a:solidFill"],void 0,void 0,e);if(r)return{type:"color",value:r}}else if("GRADIENT_FILL"===i){let r=ts(t["a:gradFill"],e);if(r)return{type:"gradient",value:r}}else if("PIC_FILL"===i){let n=t["a:blipFill"],i=await ti(r,n,e),a=ta(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=tl({"a:pattFill":t["a:pattFill"]},e);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 tf(t,e,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,N,L;if(!t)return"";let _="";if(t["a:srgbClr"])_=E(y=t["a:srgbClr"],["attrs","val"]);else if(t["a:schemeClr"])_=B("a:"+E(y=t["a:schemeClr"],["attrs","val"]),n,e,r)||"";else if(t["a:scrgbClr"]){let e=(y=t["a:scrgbClr"]).attrs,r=-1!==e.r.indexOf("%")?e.r.split("%").shift():e.r,n=-1!==e.g.indexOf("%")?e.g.split("%").shift():e.g,i=-1!==e.b.indexOf("%")?e.b.split("%").shift():e.b;_=Q(255*(Number(r)/100))+Q(255*(Number(n)/100))+Q(255*(Number(i)/100))}else if(t["a:prstClr"]){let e,r,n;r=E(y=t["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(t=>t.toLowerCase()===r))&&(e=["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]),_=e}else if(t["a:hslClr"]){let e,r,n,i=(y=t["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,e=l<=.5?l*(s+1):l+s-l*s,n=255*K(r=2*l-e,e,a+2),{r:n,g:255*K(r,e,a),b:255*K(r,e,a-2)});_=Q(c.r)+Q(c.g)+Q(c.b)}else if(t["a:sysClr"]){let e=E(y=t["a:sysClr"],["attrs","lastClr"]);e&&(_=e)}let T=!1,P=parseInt(E(y,["a:alpha","attrs","val"]))/1e5;if(!isNaN(P)){let t=(0,i.A)(_);t.setAlpha(P),_=t.toHex8(),T=!0}let I=parseInt(E(y,["a:hueMod","attrs","val"]))/1e5;isNaN(I)||(o=_,s=T,(R=(v=(0,i.A)(o).toHsl()).h*I)>=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 C=parseInt(E(y,["a:lumMod","attrs","val"]))/1e5;isNaN(C)||(l=_,c=T,(x=(b=(0,i.A)(l).toHsl()).l*C)>=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,_=(L=g+(N=(0,i.A)(m).toHsl()).l)>=1?A?(0,i.A)({h:N.h,s:N.s,l:1,a:N.a}).toHex8():(0,i.A)({h:N.h,s:N.s,l:1,a:N.a}).toHex():A?(0,i.A)({h:N.h,s:N.s,l:L,a:N.a}).toHex8():(0,i.A)({h:N.h,s:N.s,l:L,a:N.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)||(_=$(_,U,T)),_&&-1===_.indexOf("#")&&(_="#"+_),_}function tm(t){let e=E(t,["attrs"]);if(!e)return;let r={type:e.type||"none"};return e.w&&(r.width=e.w),e.len&&(r.length=e.len),r}function tg(t,e,r){let n=E(t,["p:spPr","a:ln"]),i=E(t,["p:style","a:lnRef"]),a=n;if(!a&&i){let t=E(i,["attrs","idx"]);a=r.themeContent["a:theme"]["a:themeElements"]["a:fmtScheme"]["a:lnStyleLst"]["a:ln"][Number(t)-1]}a||(a=t);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!==t&&(s||l)?.75:0);let u=null;if(a["a:solidFill"]){let t=tf(a["a:solidFill"],void 0,void 0,r);t&&(u={type:"color",value:t})}if(!u&&!n&&i){let t=tf(i,void 0,void 0,r);t&&(u={type:"color",value:t})}if(!u&&a["a:gradFill"]){let t=ts(a["a:gradFill"],r);t&&t.colors&&t.colors.length>0&&(u={type:"gradient",value:t})}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:tm(E(a,["a:headEnd"])),tailEnd:tm(E(a,["a:tailEnd"]))}}function tA(t,e){if(!t)return[];t.constructor!==Array&&(t=[t]);let r=[];for(let n of t){let t=E(n,["c:spPr","a:solidFill","a:schemeClr"]);t||(t=E(n,["c:spPr","a:ln","a:solidFill","a:schemeClr"])),t||(t=E(n,["c:marker","c:spPr","a:ln","a:solidFill","a:schemeClr"]));let i=E(t,["attrs","val"]);if(i){i=E(e.themeContent,["a:theme","a:themeElements","a:clrScheme",`a:${i}`,"a:srgbClr","attrs","val"]);let r=E(t,["a:tint","attrs","val"])/1e5;i&&!isNaN(r)&&(i=$(i,r))}else i=E(n,["c:spPr","a:solidFill","a:srgbClr","attrs","val"]);i&&(i="#"+i),r.push(i)}return r}function ty(t){let e=[];return t&&V(t,(t,r)=>{let n=[],i=E(t,["c:tx","c:strRef","c:strCache","c:pt","c:v"])||r,a={};return E(t,["c:cat","c:strRef","c:strCache","c:pt"])?V(t["c:cat"]["c:strRef"]["c:strCache"]["c:pt"],t=>(a[t.attrs.idx]=t["c:v"],"")):E(t,["c:cat","c:numRef","c:numCache","c:pt"])&&V(t["c:cat"]["c:numRef"]["c:numCache"]["c:pt"],t=>(a[t.attrs.idx]=t["c:v"],"")),E(t,["c:val","c:numRef","c:numCache","c:pt"])&&V(t["c:val"]["c:numRef"]["c:numCache"]["c:pt"],t=>(n.push({x:t.attrs.idx,y:parseFloat(t["c:v"])}),"")),e.push({key:i,values:n,xlabels:a}),""}),e}function tv(t){let e=[];if(!t)return e;let r=t.constructor===Array?t:[t],n=r[0],i=[];for(let t of(V(n["c:xVal"]["c:numRef"]["c:numCache"]["c:pt"],t=>(i.push(parseFloat(t["c:v"])),"")),e.push(i),r)){let r=[];V(t["c:yVal"]["c:numRef"]["c:numCache"]["c:pt"],t=>(r.push(parseFloat(t["c:v"])),"")),e.push(r)}return e}let tR=72/914400;function tb(t){let e=1,r=E(t,["a:pPr","attrs","lvl"]);return void 0!==r&&(e=parseInt(r)+1),e}function tx(t,e){if(!t)return"";let r=E(t,["p:txBody","a:lstStyle",e,"attrs","algn"]);return r||(r=E(t,["p:txBody","a:p","a:pPr","attrs","algn"])),r||""}function tM(t,e){e&&t.push(e)}function tS(t,e,r){e&&(tM(t,E(e,["p:txBody","a:lstStyle",`a:lvl${r}pPr`])),tM(t,E(e,["p:txBody","a:p","a:pPr"])))}function tw(t,e,r,n,i,a,o){var s;if(!t)return null;let l=t["a:pPr"],c=tb(t),u=[];return tM(u,l),e&&tM(u,E(e,["a:lstStyle",`a:lvl${c}pPr`])),tS(u,r,c),tS(u,n,c),!function(t,e,r,n){if(!n)return;let i=`a:lvl${r}pPr`;"title"===e||"ctrTitle"===e||"subTitle"===e?(tM(t,E(n,["p:titleStyle",i])),"subTitle"===e&&tM(t,E(n,["p:bodyStyle",i]))):"body"===e?tM(t,E(n,["p:bodyStyle",i])):tM(t,E(n,["p:otherStyle",i]))}(u,i,c,a),s=E(o,["defaultTextStyle"]),s&&(tM(u,E(s,[`a:lvl${c}pPr`])),tM(u,E(s,["a:defPPr"]))),u}function tO(t){let e=E(t,["a:spcPct","attrs","val"]),r=E(t,["a:spcPts","attrs","val"]);return e?parseInt(e)/1e5+"em":r?parseInt(r)/100+"pt":void 0}function tN(t,e){let r=E(t,["attrs",e]);if(void 0!==r&&""!==r)return Z(parseInt(r)*tR)+"pt"}function tL(t,e,r,n){let i=E(t,["p:txBody","a:bodyPr","attrs",n]);return null!=i&&""!==i||null!=(i=E(e,["p:txBody","a:bodyPr","attrs",n]))&&""!==i?i:E(r,["p:txBody","a:bodyPr","attrs",n])}function t_(t){if(null==t||""===t)return null;let e=parseInt(t,10);return Number.isFinite(e)?Z(e*tR):null}function tT(t,e,r){let n;return(t?n=t["a:off"].attrs:e?n=e["a:off"].attrs:r&&(n=r["a:off"].attrs),n)?{top:Z(parseInt(n.y)*tR),left:Z(parseInt(n.x)*tR)}:{top:0,left:0}}function tP(t,e,r){let n;return(t?n=t["a:ext"].attrs:e?n=e["a:ext"].attrs:r&&(n=r["a:ext"].attrs),n)?{width:Z(parseInt(n.cx)*tR),height:Z(parseInt(n.cy)*tR)}:{width:0,height:0}}function tI(t){let e=t&&t.__rawNode;return e?(function(t,e={}){return new _(e).convert(t)})(e).replaceAll(/</g,"<").replaceAll(/>/g,">").replaceAll(/&/g,"&").replaceAll(/'/g,"'").replaceAll(/"/g,'"').trim():""}let tC=t=>t?Array.isArray(t)?t:[t]:[],tk=(t,e)=>{if(!t||"object"!=typeof t)return null;if(t["a:rPr"]){let e=t["a:rPr"];return Array.isArray(e)?e[0]:e}for(let[r,n]of Object.entries(t))if("attrs"!==r&&(!e||"m:ctrlPr"!==r))for(let t of tC(n)){let r=tk(t,e);if(r)return r}return null};function tF(t,e){let r=tf(t,void 0,void 0,e),n=t.attrs,i=n.dir?parseInt(n.dir)/6e4:0,a=n.dist?parseInt(n.dist)*tR:0,o=n.blurRad?parseInt(n.blurRad)*tR:"",s=a*Math.sin(i*Math.PI/180);return{h:a*Math.cos(i*Math.PI/180),v:s,blur:o,color:r}}function tX(t,e){e&&t.push(e)}function tU(t){return`a:lvl${t}pPr`}function tW(t,e,r){e&&(tX(t,E(e,["p:txBody","a:lstStyle",tU(r),"a:defRPr"])),tX(t,E(e,["p:txBody","a:p","a:pPr","a:defRPr"])))}function tV(t,e,r,n){if(!n)return;let i=tU(r);"title"===e||"ctrTitle"===e||"subTitle"===e?(tX(t,E(n,["p:titleStyle",i,"a:defRPr"])),"subTitle"===e&&tX(t,E(n,["p:bodyStyle",i,"a:defRPr"]))):"body"===e?tX(t,E(n,["p:bodyStyle",i,"a:defRPr"])):tX(t,E(n,["p:otherStyle",i,"a:defRPr"]))}function tE(t,e,r,n,i,a){let o=[],s=E(t,["a:rPr"]);return tX(o,s),s||tX(o,E(e,["a:endParaRPr"])),tX(o,E(e,["a:pPr","a:defRPr"])),r&&tX(o,E(r,["a:lstStyle",tU(a),"a:defRPr"])),tW(o,n,a),tW(o,i,a),o}function tY(t,e,r,n,i,a,o,s){let l=tE(t,e,r,n,i,s);return tV(l,a,s,o),l}function tD(t,e){for(let r of t){let t=E(r,["attrs",e]);if(void 0!==t&&""!==t)return t}return""}function tQ(t){return/[\u2E80-\u9FFF\uF900-\uFAFF\uFF00-\uFF60\uFFE0-\uFFE6\u3000-\u303F]/.test(t)}function tZ(t,e){for(let r of t){let t=function(t,e){if(!t)return"";let r=G(t);return"SOLID_FILL"===r?tf(t["a:solidFill"],void 0,void 0,e):"GRADIENT_FILL"===r?ts(t["a:gradFill"],e):""}(r,e);if(t)return t}return""}function tB(t,e,r,n,i,a,o,s,l,c){let u=E(t,["a:rPr"]);if(u&&"NO_FILL"===G(u))return"transparent";let h=tE(t,e,r,n,i,s),p=tZ(h,c);if(!p){if(l&&(p=tf(l,void 0,void 0,c)),!p){let t=E(n,["p:style","a:fontRef"]);t&&(p=tf(t,void 0,void 0,c))}if(!p){let t=E(i,["p:style","a:fontRef"]);t&&(p=tf(t,void 0,void 0,c))}}return p||(tV(h,a,s,o),p=tZ(h,c)),p||""}function tK(t,e,r,n,i,a,o,s,l){let c=tY(t,e,r,n,i,a,o,s);l&&(tX(c,E(l,[tU(s),"a:defRPr"])),tX(c,E(l,["a:defPPr","a:defRPr"])));let u=tD(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 t$(t){return"string"==typeof t?t:t&&"string"==typeof t.value?t.value:void 0}function tG(t,e,r,n,i,a){if(!t)return"";let o="",s=E(e,["p:style","a:fontRef"]),l=e&&e["a:tcPr"]?void 0:a.slideMasterTextStyles,c=e&&e["a:tcPr"]?a.defaultTextStyle:void 0,u=t["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(t=>t.type="br"),f.length>1&&f.shift(),(h=h.concat(f)).sort((t,e)=>!t.attrs||!e.attrs||t.attrs.order-e.attrs.order)));let m=function(t){let e=[],r=(t,r)=>{let n=tI(t);n&&e.push({type:"math",latex:n,node:t,attrs:{order:r}})};for(let e of tC(t["a14:m"])){let t=e&&e.attrs&&e.attrs.order||0;for(let n of["m:oMath","m:oMathPara"])for(let i of tC(e[n]))r(i,t)}for(let e of["m:oMath","m:oMathPara"])for(let n of tC(t[e]))r(n,n&&n.attrs&&n.attrs.order||0);return e}(u);m.length&&(h=(h||[]).concat(m)).sort((t,e)=>(t.attrs&&t.attrs.order||0)-(e.attrs&&e.attrs.order||0));let g=function(t,e,r,n,i,a){let o=E(t,["a:pPr","attrs","algn"]);if(o||(o=E(e,["p:txBody","a:p","a:pPr","attrs","algn"])),!o){let e="a:lvl"+tb(t)+"pPr";(o=tx(n,e))||(o=tx(i,e)),o||"title"!==r&&"ctrTitle"!==r&&"subTitle"!==r?o||"body"!==r?o||(o=E(a,["slideMasterTextStyles","p:otherStyle",e,"attrs","algn"])):o=E(a,["slideMasterTextStyles","p:bodyStyle",e,"attrs","algn"]):(o=E(a,["slideMasterTextStyles","p:titleStyle",e,"attrs","algn"]))||"subTitle"!==r||(o=E(a,["slideMasterTextStyles","p:bodyStyle",e,"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,e,i,r,n,a),A=function(t,e,r,n,i,a,o){let s=tw(t,e,r,n,i,a,o);if(!s)return null;let l={};for(let t of s){if(void 0===l.lineSpacing){let e=function(t){let e=E(t,["a:spcPct","attrs","val"]),r=E(t,["a:spcPts","attrs","val"]);return e?Math.round(parseInt(e)/1e3/100*120)/100:r?parseInt(r)/100+"pt":void 0}(t["a:lnSpc"]);void 0!==e&&(l.lineSpacing=e)}if(void 0===l.spaceBefore){let e=tO(t["a:spcBef"]);void 0!==e&&(l.spaceBefore=e)}if(void 0===l.spaceAfter){let e=tO(t["a:spcAft"]);void 0!==e&&(l.spaceAfter=e)}}let c=function(t,e,r){for(let n of[t,e&&e["p:txBody"],r&&r["p:txBody"]]){let t=E(n,["a:bodyPr","a:normAutofit","attrs","lnSpcReduction"]);if(void 0!==t)return parseInt(t)}}(e,r,n);if(void 0!==c){let t=c/1e5;void 0!==l.lineSpacing?"number"==typeof l.lineSpacing&&(l.lineSpacing=Math.round(l.lineSpacing*(1-t)*100)/100):l.lineSpacing=Math.round((1-t)*100)/100}return Object.keys(l).length>0?l:null}(u,t,r,n,i,l,a),y=function(t,e,r,n,i,a,o){let s=tw(t,e,r,n,i,a,o);if(!s)return null;let l={};for(let t of s){if(void 0===l.marginLeft){let e=tN(t,"marL");void 0!==e&&(l.marginLeft=e)}if(void 0===l.textIndent){let e=tN(t,"indent");void 0!==e&&(l.textIndent=e)}}return Object.keys(l).length>0?l:null}(u,t,r,n,i,l,a),v=function(t,e,r,n,i,a,o){if(!(t["a:r"]||t["a:br"]||t["a:fld"]))return"";let s=tw(t,e,r,n,i,a,o);if(!s)return"";for(let t of s){if(t["a:buNone"])break;if(t["a:buChar"]||t["a:buBlip"])return"ul";if(t["a:buAutoNum"])return"ol"}return""}(u,t,r,n,i,l,a),R=function(t){let e=t["a:pPr"];if(!e)return 0;let r=E(e,["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 t=p.pop();o+=`</${t}>`}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 t=p.pop();o+=`</${t}>`}o+=`<p style="${x}">`}if(h){let e=null,p="",d=h.find(t=>!t.type),f=null;for(let m of h){if("math"===m.type){if(p&&e){let t=p.replace(/\t/g," ").replace(/\s/g," ");o+=`<span style="${e.styleText}">${t}</span>`}p="",e=null;let h=D(m.latex),g=function(t,e,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=tk(h=t&&t.node,!0)||tk(h,!1))?{"a:rPr":p}:{},y=(d=A&&A["a:rPr"])&&d.attrs&&d.attrs.sz||!e?A:e,v=(f=A&&A["a:rPr"])&&(f["a:solidFill"]||f["a:gradFill"]||f["a:pattFill"])||!e?A:e,R=tK(y,r,n,a,o,s,l,m,c),b=tB(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,t,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=tH(m,u,t,s,r,n,i,l,c,a);if(!e||e.styleText!==h.styleText||e.hasLink!==h.hasLink||h.hasLink){if(p){let t=p.replace(/\t/g," ").replace(/\s/g," ");o+=`<span style="${e.styleText}">${t}</span>`,p=""}if(h.hasLink){let t=h.text.replace(/\t/g," ").replace(/\s/g," ");o+=`<span style="${h.styleText}"><a href="${h.linkURL}" target="_blank">${t}</a></span>`,e=null}else e=h,p=h.text}else p+=h.text}if(p&&e){let t=p.replace(/\t/g," ").replace(/\s/g," ");o+=`<span style="${e.styleText}">${t}</span>`}}else o+=function(t,e,r,n,i,a,o,s,l,c){let{styleText:u,text:h,hasLink:p,linkURL:d}=tH(t,e,r,n,i,a,o,s,l,c),f=h.replace(/\t/g," ").replace(/\s/g," ");return p?`<span style="${u}"><a href="${d}" target="_blank">${f}</a></span>`:`<span style="${u}">${f}</span>`}(u,e,t,s,r,n,i,l,c,a);v?o+="</p></li>":o+="</p>"}for(;p.length>0;){let t=p.pop();o+=`</${t}>`}return o}function tH(t,e,r,n,i,a,o,s,l,c){let u,h,p=1,d=E(e["a:pPr"],["attrs","lvl"]);void 0!==d&&(p=parseInt(d)+1);let f=t$(t["a:t"]);"string"!=typeof f&&(f=t$(E(t,["a:fld","a:t"]))),"string"!=typeof f&&(f=" ");let m="",g=tB(t,e,r,i,a,o,s,p,n,c),A=tK(t,e,r,i,a,o,s,p,l),y=function(t,e,r,n,i,a,o,s,l,c){let u=tQ(c),h=function(t,e){let r=tQ(e);for(let e of t){let t=E(e,["a:latin","attrs","typeface"]),n=E(e,["a:ea","attrs","typeface"]),i=E(e,["a:cs","attrs","typeface"]),a=E(e,["a:sym","attrs","typeface"]);if(r&&n)return n;if(t)return t;if(n)return n;if(i)return i;if(a)return a}return""}(tY(t,e,r,n,i,a,o,s),c);if(!h||h.startsWith("+")){let t=E(l.themeContent,["a:theme","a:themeElements","a:fontScheme"]);if(t&&h&&h.startsWith("+"))switch(h){case"+mj-lt":return E(t,["a:majorFont","a:latin","attrs","typeface"]);case"+mn-lt":return E(t,["a:minorFont","a:latin","attrs","typeface"]);case"+mj-ea":return E(t,["a:majorFont","a:ea","attrs","typeface"]);case"+mn-ea":return E(t,["a:minorFont","a:ea","attrs","typeface"]);case"+mj-cs":return E(t,["a:majorFont","a:cs","attrs","typeface"]);case"+mn-cs":return E(t,["a:minorFont","a:cs","attrs","typeface"]);default:return h.replace(/^\+/,"")}h="title"===a||"subTitle"===a||"ctrTitle"===a?(u?E(t,["a:majorFont","a:ea","attrs","typeface"]):"")||E(t,["a:majorFont","a:latin","attrs","typeface"])||E(t,["a:majorFont","a:ea","attrs","typeface"]):(u?E(t,["a:minorFont","a:ea","attrs","typeface"]):"")||E(t,["a:minorFont","a:latin","attrs","typeface"])||E(t,["a:minorFont","a:ea","attrs","typeface"])}return h||""}(t,e,r,i,a,o,s,p,c,f),v=U(tD(tY(t,e,r,i,a,o,s,p),"b"))?"bold":"",R=U(tD(tY(t,e,r,i,a,o,s,p),"i"))?"italic":"",b="sng"===tD(tY(t,e,r,i,a,o,s,p),"u")?"underline":"",x="sngStrike"===tD(tY(t,e,r,i,a,o,s,p),"strike")?"line-through":"",M=(u=tD(tY(t,e,r,i,a,o,s,p),"spc"))&&0!==parseInt(u)?parseInt(u)/100+"pt":"",S=function(t,e,r,n,i,a,o,s,l){let c=function(t,e){for(let r of t){let t=E(r,["a:effectLst","a:outerShdw"]);if(!t)continue;let n=tF(t,e);if(n)return n}return null}(tY(t,e,r,n,i,a,o,s),l);if(c){let{h:t,v:e,blur:r,color:n}=c;if(!isNaN(e)&&!isNaN(t))return t+"pt "+e+"pt "+(r?r+"pt":"")+" "+n}return""}(t,e,r,i,a,o,s,p,c),w=(h=tD(tY(t,e,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:t,rot:e}=g,r=t.map(t=>`${t.color} ${t.pos}`).join(", "),n=`linear-gradient(${e+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(t,["a:rPr","a:hlinkClick","attrs","r:id"]),N=O&&c.slideResObj[O];return N&&(m=function(t,e,r){let n=t,i=E(e,["a:rPr"]),a=i?G(i):"";if("SOLID_FILL"!==a&&"GRADIENT_FILL"!==a){var o;let t=((o=B("a:hlink",r))?o.startsWith("#")?o:`#${o}`:"")||"#0563C1";/color\s*:/.test(n)?n=n.replace(/color\s*:\s*[^;]+;/,`color: ${t};`):n+=`color: ${t};`}return"none"===E(e,["a:rPr","attrs","u"])||/text-decoration\s*:\s*underline/.test(n)||(n+="text-decoration: underline;"),n}(m,t,c)),{styleText:m,text:f,hasLink:N,linkURL:N?c.slideResObj[O].target:null}}function tz(t,e,r){let n=E(t,["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*e,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(t=>{if(!u[t])return;let e=u[t]["a:pt"];e&&Object.keys(e).forEach(t=>{let r=e[t],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(t=>{if(!h[t])return;let e=h[t]["a:pt"];e&&Object.keys(e).forEach(t=>{let r=e[t],n=r.x,i=r.y,a=r.order;g.push({type:"lnto",x:n,y:i,order:a})})})),p){let t=[];Array.isArray(p)||(p=[p]),Object.keys(p).forEach(e=>{p[e]&&p[e]["a:pt"]&&t.push(p[e]["a:pt"])}),t.forEach(t=>{let e=[];t.forEach(t=>{let r={x:t.attrs.x,y:t.attrs.y};e.push(r)});let r=t[0].attrs.order;g.push({type:"cubicBezTo",cubBzPt:e,order:r})})}if(d){let t=[];Array.isArray(d)||(d=[d]),Object.keys(d).forEach(e=>{d[e]&&d[e]["a:pt"]&&t.push(d[e]["a:pt"])}),t.forEach(t=>{let e=[];t.forEach(t=>{let r={x:t.attrs.x,y:t.attrs.y};e.push(r)});let r=t[0].attrs.order;g.push({type:"quadBezTo",quadBzPt:e,order:r})})}f&&(Array.isArray(f)?f:[f]).forEach(t=>{let e=t.attrs,r=e.order,n=e.hR,i=e.wR,a=e.stAng,o=e.swAng,s=0,l=0,c=E(t,["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((t,e)=>t.order-e.order);let t=0;for(;t<g.length;){if("movto"===g[t].type)c+=" M"+parseInt(g[t].x)*s+","+parseInt(g[t].y)*l;else if("lnto"===g[t].type)c+=" L"+parseInt(g[t].x)*s+","+parseInt(g[t].y)*l;else if("cubicBezTo"===g[t].type)c+=" C"+parseInt(g[t].cubBzPt[0].x)*s+","+parseInt(g[t].cubBzPt[0].y)*l+" "+parseInt(g[t].cubBzPt[1].x)*s+","+parseInt(g[t].cubBzPt[1].y)*l+" "+parseInt(g[t].cubBzPt[2].x)*s+","+parseInt(g[t].cubBzPt[2].y)*l;else if("quadBezTo"===g[t].type)c+=" Q"+parseInt(g[t].quadBzPt[0].x)*s+","+parseInt(g[t].quadBzPt[0].y)*l+" "+parseInt(g[t].quadBzPt[1].x)*s+","+parseInt(g[t].quadBzPt[1].y)*l;else if("arcTo"===g[t].type){let e=parseInt(g[t].hR)*s,r=parseInt(g[t].wR)*l,n=parseInt(g[t].stAng)/6e4,i=n+parseInt(g[t].swAng)/6e4;c+=function(t,e,r,n,i,a,o){let s,l=i;if(a>=i)for(;l<=a;){let a=Math.PI/180*l,o=t+Math.cos(a)*r,c=e+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=t+Math.cos(a)*r,c=e+Math.sin(a)*n;l===i&&(s=" M "+o+" "+c),s+=" L "+o+" "+c,l--}return s+(o?" z":"")}(r,e,r,e,n,i,!1)}else"close"===g[t].type&&(c+="z");t++}}return c}function tJ(t){return t?Array.isArray(t)?t:[t]:[]}async function tj(t,e){let r=e.split("/").pop();try{let n=t.file(e);if(!n||!r.toLowerCase().endsWith(".fntdata")&&!r.toLowerCase().endsWith(".eot"))return"";let i=await n.async("arraybuffer"),a=function(t){let e=new DataView(t),r=new Uint8Array(t);try{let t=e.getUint32(0,!0),n=e.getUint32(4,!0),i=e.getUint32(8,!0),a=e.getUint16(34,!0);if(20556!==a||65536!==i&&131073!==i&&131074!==i)return null;let o=t-n;if(o<0||o>=t)return null;let s=r.slice(o,t);if(s.length>=4){let t=s[0]<<24|s[1]<<16|s[2]<<8|s[3];if(65536!==t&&0x4f54544f!==t)return null}return s}catch(t){return null}}(i);if(!a)return"";let o=new Blob([a],{type:"font/ttf"});return URL.createObjectURL(o)}catch(t){return""}}let tq={微软雅黑:"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 t0(t,e){if(t)return tf(t["a:solidFill"]||t,void 0,void 0,e)}async function t1(t,e,r,n){let i,a,o,s,l=E(t,["attrs","rowSpan"]),c=E(t,["attrs","gridSpan"]),u=E(t,["attrs","vMerge"]),h=E(t,["attrs","hMerge"]),p=E(t,["a:tcPr","attrs","anchor"]),d=E(t,["a:tcPr"]);if(d){let t=await tp({"p:spPr":d},n,"slide");t&&"color"===t.type&&t.value&&(i=t.value)}if(!i){let t;r&&(t=E(e,[r,"a:tcStyle","a:fill","a:solidFill"])),t&&(i=tf(t,void 0,void 0,n))}r&&(s=E(e,[r,"a:tcTxStyle"])),s&&(a=t0(s,n),"on"===E(s,["attrs","b"])&&(o=!0));let f=E(t,["a:tcPr","a:lnB"]);!f&&(r&&(f=E(e&&e[r],["a:tcStyle","a:tcBdr","a:bottom","a:ln"])),f||(f=E(e,["a:wholeTbl","a:tcStyle","a:tcBdr","a:bottom","a:ln"])));let m=E(t,["a:tcPr","a:lnT"]);!m&&(r&&(m=E(e&&e[r],["a:tcStyle","a:tcBdr","a:top","a:ln"])),m||(m=E(e,["a:wholeTbl","a:tcStyle","a:tcBdr","a:top","a:ln"])));let g=E(t,["a:tcPr","a:lnL"]);!g&&(r&&(g=E(e&&e[r],["a:tcStyle","a:tcBdr","a:left","a:ln"])),g||(g=E(e,["a:wholeTbl","a:tcStyle","a:tcBdr","a:left","a:ln"])));let A=E(t,["a:tcPr","a:lnR"]);!A&&(r&&(A=E(e&&e[r],["a:tcStyle","a:tcBdr","a:right","a:ln"])),A||(A=E(e,["a:wholeTbl","a:tcStyle","a:tcBdr","a:right","a:ln"])));let y={};return f&&(y.bottom=tg(f,void 0,n)),m&&(y.top=tg(m,void 0,n)),g&&(y.left=tg(g,void 0,n)),A&&(y.right=tg(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 t2(t,e,r,n,i,a,o){let s="",l=a>=i?1:-1,c=i,u=t=>l>0?t<=a:t>=a;for(;u(c);){let a=Math.PI/180*c,o=t+Math.cos(a)*r,u=e+Math.sin(a)*n;c===i&&(s=` M${o} ${u}`),s+=` L${o} ${u}`,c+=l}return o&&(s+=" z"),s}function t3(t,e,r,n){let i="";switch(t){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 ${e} 0 L ${e} ${r} L 0 ${r} Z`;break;case"flowChartPredefinedProcess":i=`M 0 0 L ${e} 0 L ${e} ${r} L 0 ${r} Z M ${1/8*e} 0 L ${1/8*e} ${r} M ${7/8*e} 0 L ${7/8*e} ${r}`;break;case"flowChartInternalStorage":i=`M 0 0 L ${e} 0 L ${e} ${r} L 0 ${r} Z M ${1/8*e} 0 L ${1/8*e} ${r} M 0 ${1/8*r} L ${e} ${1/8*r}`;break;case"flowChartCollate":i=`M 0,0 L ${e},0 L 0,${r} L ${e},${r} z`;break;case"flowChartDocument":{let t=10800*e/21600,n=17322*r/21600,a=20172*r/21600,o=23922*r/21600;i=`M 0,0 L ${e},0 L ${e},${n} C ${t},${n} ${t},${o} 0,${a} z`}break;case"flowChartMultidocument":{let t=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*e/21600,d=2e4*e/21600,f=9298*e/21600,m=19298*e/21600,g=18595*e/21600,A=2972*e/21600,y=20800*e/21600;i=`M 0,${n} L ${g},${n} L ${g},${t} C ${f},${t} ${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 ${e},0 L ${e},${c} C ${y},${c} ${d},${h} ${d},${h}`}break;case"actionButtonBackPrevious":{let t=e/2,n=r/2,a=3*Math.min(e,r)/8,o=t+a;i=`M 0,0 L ${e},0 L ${e},${r} L 0,${r} z M ${t-a},${n} L ${o},${n-a} L ${o},${n+a} z`}break;case"actionButtonBeginning":{let t=e/2,n=r/2,a=Math.min(e,r),o=3*a/8,s=n-o,l=n+o,c=t-o,u=t+o,h=3*a/4,p=c+h/8;i=`M 0,0 L ${e},0 L ${e},${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 t=e/2,n=r/2,a=Math.min(e,r),o=3*a/8,s=n-o,l=n+o,c=9*a/32,u=t-c,h=t+c,p=3*a/16,d=h-p,f=s+p;i=`M 0,0 L ${e},0 L ${e},${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 t=e/2,n=r/2,a=Math.min(e,r),o=3*a/8,s=n-o,l=n+o,c=t-o,u=t+o,h=3*a/4,p=c+7*h/8;i=`M 0,${r} L ${e},${r} L ${e},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 t=e/2,n=r/2,a=3*Math.min(e,r)/8,o=t-a;i=`M 0,${r} L ${e},${r} L ${e},0 L 0,0 z M ${t+a},${n} L ${o},${n-a} L ${o},${n+a} z`}break;case"actionButtonHelp":{let t=e/2,n=r/2,a=Math.min(e,r),o=3*a/8,s=n-o,l=t-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 ${e},0 L ${e},${r} L 0,${r} z M ${A},${d} ${t2(x,d,p,p,180,360,!1).replace("M","L")} ${t2(w,d,u,h,0,90,!1).replace("M","L")} ${t2(w,f,R,b,270,180,!1).replace("M","L")} L ${v},${m} L ${y},${m} L ${y},${f} ${t2(M,f,u,h,180,270,!1).replace("M","L")} ${t2(v,d,R,b,90,0,!1).replace("M","L")} ${t2(x,d,u,u,0,-180,!1).replace("M","L")} z M ${t},${g} ${t2(t,S,b,b,270,630,!1).replace("M","L")} z`}break;case"actionButtonHome":{let t=e/2,n=r/2,a=Math.min(e,r),o=3*a/8,s=n-o,l=n+o,c=t-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 ${e},0 L ${e},${r} L 0,${r} z M ${t},${s} L ${c},${n} L ${d},${n} L ${d},${l} L ${y},${l} L ${y},${n} L ${t+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 t=e/2,n=r/2,a=Math.min(e,r),o=3*a/8,s=n-o,l=t-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 ${e},0 L ${e},${r} L 0,${r} z M ${t},${s} ${t2(t,b,o,o,270,630,!1).replace("M","L")} z M ${t},${h} ${t2(t,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 t=e/2,n=r/2,a=Math.min(e,r),o=t-3*a/8,s=n-3*a/8,l=t+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 ${e},${r} L ${e},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 t=e/2,n=r/2,a=Math.min(e,r),o=3*a/8,s=n-o,l=n+o,c=t-o,u=t+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 ${e},${r} L ${e},0 L 0,0 z M ${u},${y} L ${c+p},${s} L ${t},${y} L ${v},${y} L ${v},${A} ${t2(x,A,b,b,0,90,!1).replace("M","L")} L ${R},${g} ${t2(R,M,b,b,90,180,!1).replace("M","L")} L ${c+m},${y} L ${c},${y} L ${c},${A} ${t2(S,A,f,f,180,90,!1).replace("M","L")} L ${t},${l} ${t2(t,w,f,f,90,0,!1).replace("M","L")} L ${c+7*h/8},${y} z`}break;case"actionButtonSound":{let t=e/2,n=r/2,a=Math.min(e,r),o=3*a/8,s=n-o,l=t-o,c=t+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 ${e},0 L ${e},${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*e/21600},${5800*r/21600} L ${14522*e/21600},0 L ${14155*e/21600},${5325*r/21600} L ${18380*e/21600},${4457*r/21600} L ${16702*e/21600},${7315*r/21600} L ${21097*e/21600},${8137*r/21600} L ${17607*e/21600},${10475*r/21600} L ${e},${13290*r/21600} L ${16837*e/21600},${12942*r/21600} L ${18145*e/21600},${18095*r/21600} L ${14020*e/21600},${14457*r/21600} L ${13247*e/21600},${19737*r/21600} L ${10532*e/21600},${14935*r/21600} L ${8485*e/21600},${r} L ${7715*e/21600},${15627*r/21600} L ${4762*e/21600},${17617*r/21600} L ${5667*e/21600},${13937*r/21600} L ${135*e/21600},${14587*r/21600} L ${3722*e/21600},${11775*r/21600} L 0,${8615*r/21600} L ${4627*e/21600},${7617*r/21600} L ${370*e/21600},${2295*r/21600} L ${7312*e/21600},${6320*r/21600} L ${8352*e/21600},${2295*r/21600} z`;break;case"irregularSeal2":i=`M ${11462*e/21600},${4342*r/21600} L ${14790*e/21600},0 L ${14525*e/21600},${5777*r/21600} L ${18007*e/21600},${3172*r/21600} L ${16380*e/21600},${6532*r/21600} L ${e},${6645*r/21600} L ${16985*e/21600},${9402*r/21600} L ${18270*e/21600},${11290*r/21600} L ${16380*e/21600},${12310*r/21600} L ${18877*e/21600},${15632*r/21600} L ${14640*e/21600},${14350*r/21600} L ${14942*e/21600},${17370*r/21600} L ${12180*e/21600},${15935*r/21600} L ${11612*e/21600},${18842*r/21600} L ${9872*e/21600},${17370*r/21600} L ${8700*e/21600},${19712*r/21600} L ${7527*e/21600},${18125*r/21600} L ${4917*e/21600},${r} L ${4805*e/21600},${18240*r/21600} L ${1285*e/21600},${17825*r/21600} L ${3330*e/21600},${15370*r/21600} L 0,${12877*r/21600} L ${3935*e/21600},${11592*r/21600} L ${1172*e/21600},${8270*r/21600} L ${5372*e/21600},${7817*r/21600} L ${4502*e/21600},${3625*r/21600} L ${8550*e/21600},${6382*r/21600} L ${9722*e/21600},${1887*r/21600} z`;break;case"flowChartTerminator":{let t=3475*e/21600,n=18125*e/21600,a=10800*r/21600;i=`M ${t},0 L ${n},0 ${t2(n,r/2,t,a,270,450,!1).replace("M","L")} L ${t},${r} ${t2(t,r/2,t,a,90,270,!1).replace("M","L")} z`}break;case"flowChartPunchedTape":{let t=5*e/20,n=2*r/20,a=18*r/20;i=`M 0,${n} ${t2(t,n,t,n,180,0,!1).replace("M","L")} ${t2(.75*e,n,t,n,180,360,!1).replace("M","L")} L ${e},${a} ${t2(.75*e,a,t,n,0,-180,!1).replace("M","L")} ${t2(t,a,t,n,0,180,!1).replace("M","L")} z`}break;case"flowChartOnlineStorage":{let t=e/6,n=3*r/6;i=`M ${t},0 L ${e},0 ${t2(e,r/2,t,n,270,90,!1).replace("M","L")} L ${t},${r} ${t2(t,r/2,t,n,90,270,!1).replace("M","L")} z`}break;case"flowChartDisplay":{let t=e/6,n=5*e/6,a=3*r/6;i=`M 0,${a} L ${t},0 L ${n},0 ${t2(e,r/2,t,a,270,450,!1).replace("M","L")} L ${t},${r} z`}break;case"flowChartDelay":{let t=e/2,n=r/2;i=`M 0,0 L ${t},0 ${t2(t,n,t,n,270,450,!1).replace("M","L")} L 0,${r} z`}break;case"flowChartMagneticTape":{let t=e/2,n=r/2,a=n*Math.sin(Math.PI/4),o=n+a,s=180*Math.atan(r/e)/Math.PI;i=`M ${t},${r} ${t2(t,n,t,n,90,180,!1).replace("M","L")} ${t2(t,n,t,n,180,270,!1).replace("M","L")} ${t2(t,n,t,n,270,360,!1).replace("M","L")} ${t2(t,n,t,n,0,s,!1).replace("M","L")} L ${e},${o} L ${e},${r} z`}break;case"ellipse":case"flowChartConnector":case"flowChartSummingJunction":case"flowChartOr":{let n=e/2,a=r/2,o=e/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"===t)i+=` M ${e/2} 0 L ${e/2} ${r} M 0 ${r/2} L ${e} ${r/2}`;else if("flowChartSummingJunction"===t){let t=Math.PI/4,o=e/2*Math.cos(t),s=r/2*Math.sin(t),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 t of c){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)}else c&&(a=parseInt(E(c,["attrs","fmla"]).substring(4))/5e4,o=0);switch(t){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(t,e,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(t,e)/2*o,h=Math.min(t,e)/2*s,p=Math.min(t,e)/2*l,d=Math.min(t,e)/2*c;return"round"===i?`M0,${e-h} Q0,${e} ${h},${e} L${t-p},${e} Q${t},${e} ${t},${e-p} L${t},${d} Q${t},0 ${t-d},0 L${u},0 Q0,0 0,${u} z`:"snip"===i?`M0,${u} L0,${e-h} L${h},${e} L${t-p},${e} L${t},${e-p} L${t},${d} L${t-d},0 L${u},0 z`:""}(e,r,a,o,s,l)}break;case"snipRoundRect":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=.33334,o=.33334;if(t)for(let e of t){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)}i=`M0,${r} L${e},${r} L${e},${r/2*o} L${e/2+e/2*(1-o)},0 L${e/2*a},0 Q0,0 0,${r/2*a} z`}break;case"bentConnector2":i=`M ${e} 0 L ${e} ${r} L 0 ${r}`;break;case"rtTriangle":i=`M 0 0 L 0 ${r} L ${e} ${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))*tR);let s=e*o,l=0,c=0,u=r,h=e,p=r;"flowChartMerge"===t&&([s,l]=[e-s,r-l],[c,u]=[e-c,r-u],[h,p]=[e-h,r-p]),i=`M ${s} ${l} L ${c} ${u} L ${h} ${p} Z`}break;case"diamond":case"flowChartDecision":case"flowChartSort":i=`M ${e/2} 0 L 0 ${r/2} L ${e/2} ${r} L ${e} ${r/2} Z`,"flowChartSort"===t&&(i+=` M 0 ${r/2} L ${e} ${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 t=Math.min(e,r),n=Math.max(0,Math.min(parseInt(a.substring(4)),5e4*e/t));o=t*n/1e5/e}let s=e*o,l=0,c=0,u=r,h=e,p=r,d=(1-o)*e,f=0;"flowChartManualInput"===t&&(o=0,l=r/5,s=e*o,d=(1-o)*e),"flowChartManualOperation"===t&&([s,l]=[e-s,r-l],[c,u]=[e-c,r-u],[h,p]=[e-h,r-p],[d,f]=[e-d,r-f]),i=`M ${s} ${l} L ${c} ${u} L ${h} ${p} L ${d} ${f} Z`}break;case"parallelogram":case"flowChartInputOutput":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),a=.25;if(t){let n=Math.min(e,r),i=Math.max(0,Math.min(parseInt(t.substring(4)),1e5*e/n));a=n*i/2e5/e}i=`M ${a*e} 0 L 0 ${r} L ${(1-a)*e} ${r} L ${e} 0 Z`}break;case"pentagon":i=`M ${.5*e} 0 L 0 ${.375*r} L ${.15*e} ${r} L ${.85*e} ${r} L ${e} ${.375*r} Z`;break;case"hexagon":case"flowChartPreparation":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),a=25e3*tR;t&&(a=parseInt(t.substring(4))*tR);let o=1e5*tR,s=Math.min(e,r),l=5e4*tR*e/s,c=s*(a<0?0:a>l?l:a)/o,u=e-c,h=115470*tR*(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 ${e},${p} L ${u},${f} L ${c},${f} z`}break;case"heptagon":i=`M ${.5*e} 0 L ${e/8} ${r/4} L 0 ${5/8*r} L ${e/4} ${r} L ${.75*e} ${r} L ${e} ${5/8*r} L ${7/8*e} ${r/4} Z`;break;case"octagon":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),a=.25;t&&(a=parseInt(t.substring(4))/1e5);let o=1-a;i=`M ${a*e} 0 L 0 ${a*r} L 0 ${o*r} L ${a*e} ${r} L ${o*e} ${r} L ${e} ${o*r} L ${e} ${a*r} L ${o*e} 0 Z`}break;case"decagon":i=`M ${3/8*e} 0 L ${e/8} ${r/8} L 0 ${r/2} L ${e/8} ${7/8*r} L ${3/8*e} ${r} L ${5/8*e} ${r} L ${7/8*e} ${7/8*r} L ${e} ${r/2} L ${7/8*e} ${r/8} L ${5/8*e} 0 Z`;break;case"dodecagon":i=`M ${3/8*e} 0 L ${e/8} ${r/8} L 0 ${3/8*r} L 0 ${5/8*r} L ${e/8} ${7/8*r} L ${3/8*e} ${r} L ${5/8*e} ${r} L ${7/8*e} ${7/8*r} L ${e} ${5/8*r} L ${e} ${3/8*r} L ${7/8*e} ${r/8} L ${5/8*e} 0 Z`;break;case"star4":{let t=e/2,a=r/2,o=e/2,s=r/2,l=19098*tR,c=5e4*tR,u=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]);u&&"adj"===u.attrs.name&&(l=parseInt(u.attrs.fmla.substring(4))*tR);let h=l<0?0:l>c?c:l,p=o*h/c*.7071067811847432,d=s*h/c*.7071067811883519,f=t-p,m=t+p,g=a-d,A=a+d;i=`M 0,${a} L ${f},${g} L ${t},0 L ${m},${g} L ${e},${a} L ${m},${A} L ${t},${r} L ${f},${A} z`}break;case"star5":{let t=e/2,a=r/2,o=e/2,s=r/2,l=19098*tR,c=105146*tR,u=110557*tR,h=5e4*tR,p=1e5*tR,d=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]);d&&Object.keys(d).forEach(t=>{let e=d[t].attrs.name;"adj"===e?l=parseInt(d[t].attrs.fmla.substring(4))*tR:"hf"===e?c=parseInt(d[t].attrs.fmla.substring(4))*tR:"vf"===e&&(u=parseInt(d[t].attrs.fmla.substring(4))*tR)});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,N=A- -.3090169943945457*M;i=`M ${t-y},${R} L ${t-w},${O} L ${t},0 L ${t+w},${O} L ${t+y},${R} L ${t+S},${N} L ${t+v},${b} L ${t},${A+M} L ${t-v},${b} L ${t-S},${N} z`}break;case"star6":{let t=e/2,a=r/2,o=e/2,s=r/2,l=r/4,c=28868*tR,u=115470*tR,h=5e4*tR,p=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]);p&&Object.keys(p).forEach(t=>{let e=p[t].attrs.name;"adj"===e?c=parseInt(p[t].attrs.fmla.substring(4))*tR:"hf"===e&&(u=parseInt(p[t].attrs.fmla.substring(4))*tR)});let d=c<0?0:c>h?h:c,f=o*u/(1e5*tR),m=.866025403783588*f,g=t-m,A=t+m,y=a+l,v=f*d/h,R=v/2,b=t-R,x=t+R,M=s*d/h*.8660254037861398,S=a-M,w=a+M;i=`M ${g},${l} L ${b},${S} L ${t},0 L ${x},${S} L ${A},${l} L ${t+v},${a} L ${A},${y} L ${x},${w} L ${t},${r} L ${b},${w} L ${g},${y} L ${t-v},${a} z`}break;case"star7":{let t=e/2,a=r/2,o=e/2,s=r/2,l=34601*tR,c=102572*tR,u=105210*tR,h=5e4*tR,p=1e5*tR,d=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]);d&&Object.keys(d).forEach(t=>{let e=d[t].attrs.name;"adj"===e?l=parseInt(d[t].attrs.fmla.substring(4))*tR:"hf"===e?c=parseInt(d[t].attrs.fmla.substring(4))*tR:"vf"===e&&(u=parseInt(d[t].attrs.fmla.substring(4))*tR)});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,N=78183*S/1e5,L=43388*S/1e5,_=A-90097*w/1e5,T=A-22252*w/1e5,P=A+62349*w/1e5;i=`M ${t-y},${x} L ${t-O},${T} L ${t-v},${b} L ${t-L},${_} L ${t},0 L ${t+L},${_} L ${t+v},${b} L ${t+O},${T} L ${t+y},${x} L ${t+N},${P} L ${t+R},${M} L ${t},${A+w} L ${t-R},${M} L ${t-N},${P} z`}break;case"star8":{let t=e/2,a=r/2,o=e/2,s=r/2,l=37500*tR,c=5e4*tR,u=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]);u&&"adj"===u.attrs.name&&(l=parseInt(u.attrs.fmla.substring(4))*tR);let h=l<0?0:l>c?c:l,p=.7071067811847432*o,d=t-p,f=t+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=t-R,w=t-b,O=t+b,N=t+R,L=a-x,_=a-M,T=a+M,P=a+x;i=`M 0,${a} L ${S},${_} L ${d},${g} L ${w},${L} L ${t},0 L ${O},${L} L ${f},${g} L ${N},${_} L ${e},${a} L ${N},${T} L ${f},${A} L ${O},${P} L ${t},${r} L ${w},${P} L ${d},${A} L ${S},${T} z`}break;case"star10":{let t=e/2,a=r/2,o=e/2,s=r/2,l=42533*tR,c=105146*tR,u=5e4*tR,h=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]);h&&Object.keys(h).forEach(t=>{let e=h[t].attrs.name;"adj"===e?l=parseInt(h[t].attrs.fmla.substring(4))*tR:"hf"===e&&(c=parseInt(h[t].attrs.fmla.substring(4))*tR)});let p=l<0?0:l>u?u:l,d=o*c/(1e5*tR),f=95106*d/1e5,m=58779*d/1e5,g=t-f,A=t-m,y=t+m,v=t+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,N=s*p/u,L=80902*O/1e5,_=30902*O/1e5,T=95106*N/1e5,P=58779*N/1e5,I=t-L,C=t-_,k=t+_,F=t+L,X=a-T,U=a-P,W=a+P,V=a+T;i=`M ${g},${M} L ${I},${U} L ${A},${x} L ${C},${X} L ${t},0 L ${k},${X} L ${y},${x} L ${F},${U} L ${v},${M} L ${t+O},${a} L ${v},${S} L ${F},${W} L ${y},${w} L ${k},${V} L ${t},${r} L ${C},${V} L ${A},${w} L ${I},${W} L ${g},${S} L ${t-O},${a} z`}break;case"star12":{let t=e/2,a=r/2,o=e/2,s=r/2,l=r/4,c=e/4,u=37500*tR,h=5e4*tR,p=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]);p&&"adj"===p.attrs.name&&(u=parseInt(p.attrs.fmla.substring(4))*tR);let d=u<0?0:u>h?h:u,f=.866025403783588*o,m=.8660254037861398*s,g=t-f,A=3*e/4,y=t+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,N=.965925826290169*M,L=.7071067811883519*M,_=.25881904510334236*M,T=t-S,P=t-w,I=t-O,C=t+O,k=t+w,F=t+S,X=a-N,U=a-L,W=a-_,V=a+_,Y=a+L,D=a+N;i=`M 0,${a} L ${T},${W} L ${g},${l} L ${P},${U} L ${c},${v} L ${I},${X} L ${t},0 L ${C},${X} L ${A},${v} L ${k},${U} L ${y},${l} L ${F},${W} L ${e},${a} L ${F},${V} L ${y},${R} L ${k},${Y} L ${A},${b} L ${C},${D} L ${t},${r} L ${I},${D} L ${c},${b} L ${P},${Y} L ${g},${R} L ${T},${V} z`}break;case"star16":{let t=e/2,a=r/2,o=e/2,s=r/2,l=37500*tR,c=5e4*tR,u=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]);u&&"adj"===u.attrs.name&&(l=parseInt(u.attrs.fmla.substring(4))*tR);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=t-p,v=t-d,R=t-f,b=t+f,x=t+d,M=t+p,S=a-m,w=a-g,O=a-A,N=a+A,L=a+g,_=a+m,T=o*h/c,P=s*h/c,I=98079*T/1e5,C=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=t-I,D=t-C,Q=t-k,Z=t-F,B=t+F,K=t+k,$=t+C,G=t+I,H=a-X,z=a-U,J=a-W,j=a-V,q=a+V,tt=a+W,te=a+U,tr=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 ${Z},${H} L ${t},0 L ${B},${H} L ${b},${S} L ${K},${z} L ${x},${w} L ${$},${J} L ${M},${O} L ${G},${j} L ${e},${a} L ${G},${q} L ${M},${N} L ${$},${tt} L ${x},${L} L ${K},${te} L ${b},${_} L ${B},${tr} L ${t},${r} L ${Z},${tr} L ${R},${_} L ${Q},${te} L ${v},${L} L ${D},${tt} L ${y},${N} L ${Y},${q} z`}break;case"star24":{let t=e/2,a=r/2,o=e/2,s=r/2,l=r/4,c=e/4,u=37500*tR,h=5e4*tR,p=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]);p&&"adj"===p.attrs.name&&(u=parseInt(p.attrs.fmla.substring(4))*tR);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=t-f,M=t-m,S=t-g,w=t-c,O=t-A,N=t+A,L=t+c,_=t+g,T=t+m,P=t+f,I=a-y,C=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,Z=s*d/h,B=99144*Q/1e5,K=92388*Q/1e5,$=79335*Q/1e5,G=60876*Q/1e5,H=38268*Q/1e5,z=13053*Q/1e5,J=99144*Z/1e5,j=92388*Z/1e5,q=79335*Z/1e5,tt=60876*Z/1e5,te=38268*Z/1e5,tr=13053*Z/1e5,tn=t-B,ti=t-K,ta=t-$,to=t-G,ts=t-H,tl=t-z,tc=t+z,tu=t+H,th=t+G,tp=t+$,td=t+K,tf=t+B,tm=a-J,tg=a-j,tA=a-q,ty=a-tt,tv=a-te,tb=a-tr,tx=a+tr,tM=a+te,tS=a+tt,tw=a+q,tO=a+j,tN=a+J;i=`M 0,${a} L ${tn},${tb} L ${x},${X} L ${ti},${tv} L ${M},${F} L ${ta},${ty} L ${S},${k} L ${to},${tA} L ${w},${C} L ${ts},${tg} L ${O},${I} L ${tl},${tm} L ${t},0 L ${tc},${tm} L ${N},${I} L ${tu},${tg} L ${L},${C} L ${th},${tA} L ${_},${k} L ${tp},${ty} L ${T},${F} L ${td},${tv} L ${P},${X} L ${tf},${tb} L ${e},${a} L ${tf},${tx} L ${P},${U} L ${td},${tM} L ${T},${W} L ${tp},${tS} L ${_},${V} L ${th},${tw} L ${L},${Y} L ${tu},${tO} L ${N},${D} L ${tc},${tN} L ${t},${r} L ${tl},${tN} L ${O},${D} L ${ts},${tO} L ${w},${Y} L ${to},${tw} L ${S},${V} L ${ta},${tS} L ${M},${W} L ${ti},${tM} L ${x},${U} L ${tn},${tx} z`}break;case"star32":{let t=e/2,a=r/2,o=e/2,s=r/2,l=37500*tR,c=5e4*tR,u=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]);u&&"adj"===u.attrs.name&&(l=parseInt(u.attrs.fmla.substring(4))*tR);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=t-p,N=t-d,L=t-f,_=t-m,T=t-g,P=t-A,I=t-y,C=t+y,k=t+A,F=t+g,X=t+m,U=t+f,W=t+d,V=t+p,Y=a-v,D=a-R,Q=a-b,Z=a-x,B=a-M,K=a-S,$=a-w,G=a+w,H=a+S,z=a+M,J=a+x,j=a+b,q=a+R,tt=a+v,te=o*h/c,tr=s*h/c,tn=99518*te/1e5,ti=95694*te/1e5,ta=88192*te/1e5,to=77301*te/1e5,ts=63439*te/1e5,tl=47140*te/1e5,tc=29028*te/1e5,tu=9802*te/1e5,th=99518*tr/1e5,tp=95694*tr/1e5,td=88192*tr/1e5,tf=77301*tr/1e5,tm=63439*tr/1e5,tg=47140*tr/1e5,tA=29028*tr/1e5,ty=9802*tr/1e5,tv=t-tn,tb=t-ti,tx=t-ta,tM=t-to,tS=t-ts,tw=t-tl,tO=t-tc,tN=t-tu,tL=t+tu,t_=t+tc,tT=t+tl,tP=t+ts,tI=t+to,tC=t+ta,tk=t+ti,tF=t+tn,tX=a-th,tU=a-tp,tW=a-td,tV=a-tf,tE=a-tm,tY=a-tg,tD=a-tA,tQ=a-ty,tZ=a+ty,tB=a+tA,tK=a+tg,t$=a+tm,tG=a+tf,tH=a+td,tz=a+tp,tJ=a+th;i=`M 0,${a} L ${tv},${tQ} L ${O},${$} L ${tb},${tD} L ${N},${K} L ${tx},${tY} L ${L},${B} L ${tM},${tE} L ${_},${Z} L ${tS},${tV} L ${T},${Q} L ${tw},${tW} L ${P},${D} L ${tO},${tU} L ${I},${Y} L ${tN},${tX} L ${t},0 L ${tL},${tX} L ${C},${Y} L ${t_},${tU} L ${k},${D} L ${tT},${tW} L ${F},${Q} L ${tP},${tV} L ${X},${Z} L ${tI},${tE} L ${U},${B} L ${tC},${tY} L ${W},${K} L ${tk},${tD} L ${V},${$} L ${tF},${tQ} L ${e},${a} L ${tF},${tZ} L ${V},${G} L ${tk},${tB} L ${W},${H} L ${tC},${tK} L ${U},${z} L ${tI},${t$} L ${X},${J} L ${tP},${tG} L ${F},${j} L ${tT},${tH} L ${k},${q} L ${t_},${tz} L ${C},${tt} L ${tL},${tJ} L ${t},${r} L ${tN},${tJ} L ${I},${tt} L ${tO},${tz} L ${P},${q} L ${tw},${tH} L ${T},${j} L ${tS},${tG} L ${_},${J} L ${tM},${t$} L ${L},${z} L ${tx},${tK} L ${N},${H} L ${tb},${tB} L ${O},${G} L ${tv},${tZ} 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"===t?(c=0,u=270,h=r,p=!0):"pieWedge"===t?(c=180,u=270,h=2*r,p=!0):"arc"===t&&(c=270,u=0,h=r,p=!1),O)for(let t of Array.isArray(O)?O:[O]){let e=E(t,["attrs","name"]),r=E(t,["attrs","fmla"]);e&&r&&("adj1"===e?c=parseInt(r.substring(4))/6e4:"adj2"===e&&(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=e/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 t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=45,o=270;if(t)for(let e of t){let t=E(e,["attrs","name"]);"adj1"===t?a=parseInt(E(e,["attrs","fmla"]).substring(4))/6e4:"adj2"===t&&(o=parseInt(E(e,["attrs","fmla"]).substring(4))/6e4)}let s=r/2,l=e/2;i=t2(l,s,l,s,a,o,!0)}break;case"frame":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),a=12500*tR,o=5e4*tR;t&&(a=parseInt(t.substring(4))*tR);let s=Math.min(e,r)*(a<0?0:a>o?o:a)/(1e5*tR),l=e-s,c=r-s;i=`M 0,0 L ${e},0 L ${e},${r} L 0,${r} z M ${s},${s} L ${s},${c} L ${l},${c} L ${l},${s} z`}break;case"donut":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),a=25e3*tR,o=5e4*tR;t&&(a=parseInt(t.substring(4))*tR);let s=Math.min(e,r)*(a<0?0:a>o?o:a)/(1e5*tR),l=e/2-s,c=r/2-s,u=`M ${e/2-e/2},${r/2} A ${e/2},${r/2} 0 1,0 ${e/2+e/2},${r/2} A ${e/2},${r/2} 0 1,0 ${e/2-e/2},${r/2} Z`,h=`M ${e/2+l},${r/2} A ${l},${c} 0 1,0 ${e/2-l},${r/2} A ${l},${c} 0 1,0 ${e/2+l},${r/2} Z`;i=`${u} ${h}`}break;case"noSmoking":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),a=18750*tR,o=5e4*tR;t&&(a=parseInt(t.substring(4))*tR);let s=Math.min(e,r)*(a<0?0:a>o?o:a)/(1e5*tR),l=e/2-s,c=r/2-s,u=Math.atan(r/e),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=e/2+R,M=r/2+b,S=e/2-R,w=r/2-b,O=180*m/Math.PI,N=180*g/Math.PI,L=180*f/Math.PI,_=`M ${e/2-e/2},${r/2} A ${e/2},${r/2} 0 1,0 ${e/2+e/2},${r/2} A ${e/2},${r/2} 0 1,0 ${e/2-e/2},${r/2} Z`,T=`M ${x},${M} ${t2(e/2,r/2,l,c,O,O+L,!1).replace("M","L")} z`,P=`M ${S},${w} ${t2(e/2,r/2,l,c,N,N+L,!1).replace("M","L")} z`;i=`${_} ${T} ${P}`}break;case"halfFrame":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=3.5,o=3.5,s=1e5*tR;if(t)for(let e of t){let t=E(e,["attrs","name"]);"adj1"===t?a=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj2"===t&&(o=parseInt(E(e,["attrs","fmla"]).substring(4))*tR)}let l=Math.min(e,r),c=s*e/l,u=l*(o<0?0:o>c?c:o)/s,h=s*(r-r*u/e)/l,p=l*(a<0?0:a>h?h:a)/s,d=e-p*e/r,f=r-u*r/e;i=`M 0,0 L ${e},0 L ${d},${p} L ${u},${p} L ${u},${f} L 0,${r} z`}break;case"blockArc":{let t,a,o,s,l=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),c=180,u=0,h=25e3*tR,p=5e4*tR;if(l)for(let t of l){let e=E(t,["attrs","name"]);"adj1"===e?c=parseInt(E(t,["attrs","fmla"]).substring(4))/6e4:"adj2"===e?u=parseInt(E(t,["attrs","fmla"]).substring(4))/6e4:"adj3"===e&&(h=parseInt(E(t,["attrs","fmla"]).substring(4))*tR)}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=e/2,x=r/2,M=e/2,S=r/2;if(d>90&&d<270){let e=b*Math.sin(Math.PI/2-v),r=x*Math.cos(Math.PI/2-v),n=b*Math.cos(Math.atan(r/e)),i=x*Math.sin(Math.atan(r/e));t=M-n,a=S-i}else{let e=b*Math.sin(v),r=x*Math.cos(v),n=b*Math.cos(Math.atan(e/r)),i=x*Math.sin(Math.atan(e/r));t=M+n,a=S+i}let w=Math.min(e,r)*m/(1e5*tR),O=b-w,N=x-w;if(y<=450&&y>270||y>=630&&y<720){let t=O*Math.sin(R),e=N*Math.cos(R),r=O*Math.cos(Math.atan(t/e)),n=N*Math.sin(Math.atan(t/e));o=M+r,s=S+n}else{let t=O*Math.sin(Math.PI/2-R),e=N*Math.cos(Math.PI/2-R),r=O*Math.cos(Math.atan(e/t)),n=N*Math.sin(Math.atan(e/t));o=M-r,s=S-n}i=`M ${t},${a} ${t2(b,x,b,x,d,y,!1).replace("M","L")} L ${o},${s} ${t2(b,x,O,N,f,f+-A,!1).replace("M","L")} z`}break;case"bracePair":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),a=8333*tR,o=25e3*tR;t&&(a=parseInt(t.substring(4))*tR);let s=r/2,l=a<0?0:a>o?o:a,c=Math.min(e,r),u=c*l/(1e5*tR),h=c*l/(5e4*tR),p=e-h,d=e-u,f=s-u,m=s+u,g=r-u;i=`M ${h},${r} ${t2(h,g,u,u,90,180,!1).replace("M","L")} L ${u},${m} ${t2(0,m,u,u,0,-90,!1).replace("M","L")} ${t2(0,f,u,u,90,0,!1).replace("M","L")} L ${u},${u} ${t2(h,u,u,u,180,270,!1).replace("M","L")} M ${p},0 ${t2(p,u,u,u,270,360,!1).replace("M","L")} L ${d},${f} ${t2(e,f,u,u,180,90,!1).replace("M","L")} ${t2(e,m,u,u,270,180,!1).replace("M","L")} L ${d},${g} ${t2(p,g,u,u,0,90,!1).replace("M","L")}`}break;case"leftBrace":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=8333*tR,o=5e4*tR,s=1e5*tR;if(t)for(let e of t){let t=E(e,["attrs","name"]);"adj1"===t?a=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj2"===t&&(o=parseInt(E(e,["attrs","fmla"]).substring(4))*tR)}let l=o<0?0:o>s?s:o,c=Math.min(e,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 ${e},${r} ${t2(e,r-p,e/2,p,90,180,!1).replace("M","L")} L ${e/2},${m} ${t2(0,m,e/2,p,0,-90,!1).replace("M","L")} ${t2(0,f,e/2,p,90,0,!1).replace("M","L")} L ${e/2},${p} ${t2(e,p,e/2,p,180,270,!1).replace("M","L")}`}break;case"rightBrace":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=8333*tR,o=5e4*tR,s=1e5*tR;if(t)for(let e of t){let t=E(e,["attrs","name"]);"adj1"===t?a=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj2"===t&&(o=parseInt(E(e,["attrs","fmla"]).substring(4))*tR)}let l=o<0?0:o>s?s:o,c=Math.min(e,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 ${t2(0,p,e/2,p,270,360,!1).replace("M","L")} L ${e/2},${f} ${t2(e,f,e/2,p,180,90,!1).replace("M","L")} ${t2(e,d+p,e/2,p,270,180,!1).replace("M","L")} L ${e/2},${m} ${t2(0,m,e/2,p,0,90,!1).replace("M","L")}`}break;case"bracketPair":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),a=16667*tR,o=5e4*tR;t&&(a=parseInt(t.substring(4))*tR);let s=Math.min(e,r)*(a<0?0:a>o?o:a)/(1e5*tR),l=e-s,c=r-s;i=`${t2(s,s,s,s,270,180,!1)} ${t2(s,c,s,s,180,90,!1).replace("M","L")} ${t2(l,s,s,s,270,360,!1)} ${t2(l,c,s,s,0,90,!1).replace("M","L")}`}break;case"leftBracket":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),a=8333*tR,o=5e4*tR*r/Math.min(e,r);t&&(a=parseInt(t.substring(4))*tR);let s=Math.min(e,r)*(a<0?0:a>o?o:a)/(1e5*tR);s>e&&(s=e);let l=r-s;i=`M ${e},${r} ${t2(s,l,s,s,90,180,!1).replace("M","L")} L 0,${s} ${t2(s,s,s,s,180,270,!1).replace("M","L")} L ${e},0`}break;case"rightBracket":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),a=8333*tR,o=5e4*tR*r/Math.min(e,r);t&&(a=parseInt(t.substring(4))*tR);let s=Math.min(e,r)*(a<0?0:a>o?o:a)/(1e5*tR),l=r-s,c=e-s;i=`M 0,${r} ${t2(c,l,s,s,90,0,!1).replace("M","L")} L ${e},${r/2} ${t2(c,s,s,s,360,270,!1).replace("M","L")} L 0,0`}break;case"moon":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),a=.5;t&&(a=parseInt(t.substring(4))/1e5);let o=r/2,s=(1-a)*e;i=`M ${e},${r} ${t2(e,o,e,o,90,270,!1).replace("M","L")} ${t2(e,o,s,o,270,90,!1).replace("M","L")} z`}break;case"corner":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=5e4*tR,o=5e4*tR,s=1e5*tR;if(t)for(let e of t){let t=E(e,["attrs","name"]);"adj1"===t?a=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj2"===t&&(o=parseInt(E(e,["attrs","fmla"]).substring(4))*tR)}let l=Math.min(e,r),c=s*r/l,u=s*e/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 ${e},${p} L ${e},${r} L 0,${r} z`}break;case"diagStripe":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),a=5e4*tR,o=1e5*tR;t&&(a=parseInt(t.substring(4))*tR);let s=a<0?0:a>o?o:a,l=e*s/o,c=r*s/o;i=`M 0,${c} L ${l},0 L ${e},0 L 0,${r} z`}break;case"gear6":case"gear9":i=function(t,e){let r=1.5*t,n=2*Math.PI,i=n/(2*e),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+t*Math.cos(s-a))+","+(r+t*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+t*Math.cos(s+a))+",")+(r+t*Math.sin(s+a)),l=!l;return c+" "}(e,r/3.5,parseInt(t.substring(4)));break;case"bentConnector3":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),a=.5;t&&(a=parseInt(t.substring(4))/1e5),i=`M 0 0 L ${a*e} 0 L ${a*e} ${r} L ${e} ${r}`}break;case"plus":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),a=.25;t&&(a=parseInt(t.substring(4))/1e5);let o=1-a;i=`M ${a*e} 0 L ${a*e} ${a*r} L 0 ${a*r} L 0 ${o*r} L ${a*e} ${o*r} L ${a*e} ${r} L ${o*e} ${r} L ${o*e} ${o*r} L ${e} ${o*r} L ${e} ${a*r} L ${o*e} ${a*r} L ${o*e} 0 Z`}break;case"teardrop":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),a=1e5*tR,o=a,s=2e5*tR;t&&(a=parseInt(t.substring(4))*tR);let l=a<0?0:a>s?s:a,c=Math.sqrt(2),u=e/2*c,h=r/2*c,p=45*Math.PI/180,d=e/2+u*l/o*Math.cos(p),f=r/2-h*l/o*Math.cos(p),m=(e/2+d)/2,g=(r/2+f)/2;i=`${t2(e/2,r/2,e/2,r/2,180,270,!1)} Q ${m},0 ${d},${f} Q ${e},${g} ${e},${r/2} ${t2(e/2,r/2,e/2,r/2,0,90,!1).replace("M","L")} ${t2(e/2,r/2,e/2,r/2,90,180,!1).replace("M","L")} z`}break;case"plaque":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),a=16667*tR,o=5e4*tR;t&&(a=parseInt(t.substring(4))*tR);let s=(a<0?0:a>o?o:a)*Math.min(e,r)/(1e5*tR),l=e-s,c=r-s;i=`M 0,${s} ${t2(0,0,s,s,90,0,!1).replace("M","L")} L ${l},0 ${t2(e,0,s,s,180,90,!1).replace("M","L")} L ${e},${c} ${t2(e,r,s,s,270,180,!1).replace("M","L")} L ${s},${r} ${t2(0,r,s,s,0,-90,!1).replace("M","L")} z`}break;case"sun":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),a=25e3*tR,o=12500*tR,s=46875*tR;t&&(a=parseInt(t.substring(4))*tR);let l=a<o?o:a>s?s:a,c=5e4*tR,u=1e5*tR,h=c-l,p=3*(c-30274*h/32768)/4,d=3*(c-12540*h/32768)/4,f=p+3662*tR,m=d+36620*tR,g=d+12500*tR,A=u-p,y=u-f,v=u-m,R=u-g,b=18436*e/21600,x=3163*r/21600,M=3163*e/21600,S=18436*r/21600,w=e*p/u,O=e*f/u,N=e*m/u,L=e*g/u,_=e*A/u,T=e*y/u,P=e*v/u,I=e*R/u,C=e*l/u,k=e*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,Z=r*R/u;i=`M ${e},${r/2} L ${_},${Z} L ${_},${V} z M ${b},${x} L ${T},${Q} L ${N},${U} z M ${e/2},0 L ${I},${X} L ${L},${X} z M ${M},${x} L ${P},${U} L ${O},${Q} z M 0,${r/2} L ${w},${V} L ${w},${Z} z M ${M},${S} L ${O},${W} L ${P},${D} z M ${e/2},${r} L ${L},${Y} L ${I},${Y} z M ${b},${S} L ${N},${D} L ${T},${W} z M ${C},${r/2} ${t2(e/2,r/2,k,F,180,540,!1).replace("M","L")} z`}break;case"heart":{let t=49*e/48,n=10*e/48,a=e/2-t,o=e/2-n,s=e/2+n,l=e/2+t,c=-r/3;i=`M ${e/2},${r/4} C ${s},${c} ${l},${r/4} ${e/2},${r} C ${a},${r/4} ${o},${c} ${e/2},${r/4} z`}break;case"lightningBolt":{let t=5022*e/21600,n=11050*e/21600,a=8472*e/21600,o=10012*e/21600,s=14767*e/21600,l=12222*e/21600,c=12860*e/21600,u=7602*e/21600,h=16577*e/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 ${e},${r} L ${o},${R} L ${l},${y} L ${t},${g} L ${u},${v} L 0,${p} z`}break;case"cube":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),a=25e3*tR;t&&(a=parseInt(t.substring(4))*tR);let o=1e5*tR,s=Math.min(e,r)*(a<0?0:a>o?o:a)/o,l=r-s,c=e-s;i=`M 0,${s} L ${s},0 L ${e},0 L ${e},${l} L ${c},${r} L 0,${r} z M 0,${s} L ${c},${s} M ${c},${s} L ${e},0 M ${c},${s} L ${c},${r}`}break;case"bevel":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),a=12500*tR;t&&(a=parseInt(t.substring(4))*tR);let o=5e4*tR,s=Math.min(e,r)*(a<0?0:a>o?o:a)/(1e5*tR),l=e-s,c=r-s;i=`M 0,0 L ${e},0 L ${e},${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 ${e},0 L ${l},${s} M ${e},${r} L ${l},${c}`}break;case"foldedCorner":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),a=16667*tR;t&&(a=parseInt(t.substring(4))*tR);let o=5e4*tR,s=Math.min(e,r)*(a<0?0:a>o?o:a)/(1e5*tR),l=s/5,c=e-s,u=r-s;i=`M ${c},${r} L ${c+l},${u+l} L ${e},${u} L ${c},${r} L 0,${r} L 0,0 L ${e},0 L ${e},${u}`}break;case"cloud":case"cloudCallout":{let a=3900*e/43200,o=14370*r/43200,s=6753*e/43200,l=9190*r/43200,c=5333*e/43200,u=7267*r/43200,h=5945*r/43200,p=(t,e,r,n,i,a)=>t2(t-r*Math.cos(i*Math.PI/180),e-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 t of[[s,l,-0xae6581/6e4,7426832/6e4],[c,u,-8646143/6e4,5396714/6e4],[4365*e/43200,h,-8748475/6e4,5983381/6e4],[4857*e/43200,6595*r/43200,-7859164/6e4,7034504/6e4],[c,7273*r/43200,-4722533/6e4,6541615/6e4],[6775*e/43200,9220*r/43200,-46.26725,130.269],[5785*e/43200,7867*r/43200,37501/6e4,6842e3/6e4],[6752*e/43200,9215*r/43200,22.4516,115.17255],[7720*e/43200,10543*r/43200,3974558/6e4,4542661/6e4],[4360*e/43200,5918*r/43200,-0xfbb78d/6e4,8804134/6e4],[4345*e/43200,h,-246.8285,152.51885]]){let e=p(f[0],f[1],...t);d+=e;let r=e.lastIndexOf("L"),n=e.substring(r+1).split(" ");f=[parseFloat(n[0]),parseFloat(n[1])]}if(d+=" z","cloudCallout"===t){let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),i=-20833*tR,a=62500*tR;if(t)for(let e of t){let t=E(e,["attrs","name"]);"adj1"===t?i=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj2"===t&&(a=parseInt(E(e,["attrs","fmla"]).substring(4))*tR)}let o=1e5*tR,s=Math.min(e,r),l=e/2,c=r/2,u=e*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,N=O*R/b+f,L=1200*s/21600,_=600*s/21600,T=p+_,P=S*v/b+p+L,I=O*v/b+p+M;d+=`${t2(T-_,f,_,_,0,360,!0)} M ${P},${w} ${t2(P-L,w,L,L,0,360,!0).replace("M","L")} M ${I},${N} ${t2(I-M,N,M,M,0,360,!0).replace("M","L")}`}i=d}break;case"smileyFace":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),a=4653*tR;t&&(a=parseInt(t.substring(4))*tR);let o=4653*tR,s=e/2,l=r/2,c=a<-o?-o:a>o?o:a,u=6215*e/21600,h=13135*e/21600,p=16640*e/21600,d=7570*r/21600,f=16515*r/21600,m=r*c/(1e5*tR),g=f-m,A=f+m+r*c/(5e4*tR),y=1125*e/21600,v=1125*r/21600,R=4969*e/21699;i=`${t2(u,d,y,v,0,360,!0)} ${t2(h,d,y,v,0,360,!0)} M ${R},${g} Q ${s},${A} ${p},${g} Q ${s},${A} ${R},${g} M 0,${l} ${t2(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*tR;a&&(o=parseInt(a.substring(4))*tR);let s=25e3*tR,l=Math.min(e,r)*(o<0?0:o>s?s:o)/(1e5*tR),c=l/2,u=l/4;if("verticalScroll"===t){let t=l+c,n=e-l,a=e-c,o=n-c,s=r-l,h=r-c;i=`M ${l},${s} L ${l},${c} ${t2(t,c,c,c,180,270,!1).replace("M","L")} L ${a},0 ${t2(a,c,c,c,270,450,!1).replace("M","L")} L ${n},${l} L ${n},${h} ${t2(o,h,c,c,0,90,!1).replace("M","L")} L ${c},${r} ${t2(c,h,c,c,90,270,!1).replace("M","L")} z M ${t},0 ${t2(t,c,c,c,270,450,!1).replace("M","L")} ${t2(t,t/2,u,u,90,270,!1).replace("M","L")} L ${l+l},${c} M ${n},${l} L ${t},${l} M ${l},${h} ${t2(c,h,c,c,0,270,!1).replace("M","L")} ${t2(c,(h+s)/2,u,u,270,450,!1).replace("M","L")} z M ${l},${h} L ${l},${s}`}else if("horizontalScroll"===t){let t=l+c,n=r-l,a=r-c,o=n-c,s=e-l,h=e-c;i=`M 0,${t} ${t2(c,t,c,c,180,270,!1).replace("M","L")} L ${s},${l} L ${s},${c} ${t2(h,c,c,c,180,360,!1).replace("M","L")} L ${e},${o} ${t2(h,o,c,c,0,90,!1).replace("M","L")} L ${l},${n} L ${l},${a} ${t2(c,a,c,c,0,180,!1).replace("M","L")} z M ${h},${l} ${t2(h,c,c,c,90,-180,!1).replace("M","L")} ${t2((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},${t} ${t2(t/2,t,u,u,180,360,!1).replace("M","L")} ${t2(c,t,c,c,0,180,!1).replace("M","L")} M ${l},${t} L ${l},${n}`}}break;case"wedgeEllipseCallout":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=-20833*tR,o=62500*tR;if(t)for(let e of t){let t=E(e,["attrs","name"]);"adj1"===t?a=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj2"===t&&(o=parseInt(E(e,["attrs","fmla"]).substring(4))*tR)}let s=1e5*tR,l=11*Math.PI/180,c=r/2,u=e/2,h=e*a/s,p=r*o/s,d=u+h,f=c+p,m=Math.atan2(p*e,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} ${t2(u,c,u,c,180*A/Math.PI,180*g/Math.PI,!0).replace("M","L")}`}break;case"wedgeRectCallout":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=-20833*tR,o=62500*tR;if(t)for(let e of t){let t=E(e,["attrs","name"]);"adj1"===t?a=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj2"===t&&(o=parseInt(E(e,["attrs","fmla"]).substring(4))*tR)}let s=1e5*tR,l=r/2,c=e/2,u=e*a/s,h=r*o/s,p=c+u,d=l+h,f=Math.abs(h)-Math.abs(u*r/e),m=e*(u>0?7:2)/12,g=e*(u>0?10:5)/12,A=r*(h>0?7:2)/12,y=r*(h>0?10:5)/12,v=f>0?e:u>0?p:e,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 ${e},0 L ${e},${A} L ${v},${f>0?A:u>0?d:A} L ${e},${y} L ${e},${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 t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=-20833*tR,o=62500*tR,s=16667*tR;if(t)for(let e of t){let t=E(e,["attrs","name"]);"adj1"===t?a=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj2"===t?o=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj3"===t&&(s=parseInt(E(e,["attrs","fmla"]).substring(4))*tR)}let l=1e5*tR,c=Math.min(e,r),u=r/2,h=e/2,p=e*a/l,d=r*o/l,f=h+p,m=u+d,g=Math.abs(d)-Math.abs(p*r/e),A=e*(p>0?7:2)/12,y=e*(p>0?10:5)/12,v=r*(d>0?7:2)/12,R=r*(d>0?10:5)/12,b=g>0?e:p>0?f:e,x=g>0&&d>0?m:r,M=c*s/l,S=e-M,w=r-M;i=`M 0,${M} ${t2(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 ${t2(S,M,M,M,270,360,!1).replace("M","L")} L ${e},${v} L ${b},${g>0?v:p>0?m:v} L ${e},${R} L ${e},${w} ${t2(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} ${t2(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*tR,m=-8333*tR,g=18750*tR,A=-16667*tR,y=1e5*tR,v=-16667*tR,R=112963*tR,b=-8333*tR;if(d)for(let t of d){let e=E(t,["attrs","name"]);"adj1"===e?f=parseInt(E(t,["attrs","fmla"]).substring(4))*tR:"adj2"===e?m=parseInt(E(t,["attrs","fmla"]).substring(4))*tR:"adj3"===e?g=parseInt(E(t,["attrs","fmla"]).substring(4))*tR:"adj4"===e?A=parseInt(E(t,["attrs","fmla"]).substring(4))*tR:"adj5"===e?y=parseInt(E(t,["attrs","fmla"]).substring(4))*tR:"adj6"===e?v=parseInt(E(t,["attrs","fmla"]).substring(4))*tR:"adj7"===e?R=parseInt(E(t,["attrs","fmla"]).substring(4))*tR:"adj8"===e&&(b=parseInt(E(t,["attrs","fmla"]).substring(4))*tR)}let x=1e5*tR,M=`M 0,0 L ${e},0 L ${e},${r} L 0,${r} z`;switch(t){case"borderCallout1":case"callout1":d||(f=18750*tR,m=-8333*tR,g=112500*tR,A=-38333*tR),o=r*f/x,a=e*m/x,l=r*g/x,s=e*A/x,i=`${M} M ${a},${o} L ${s},${l}`;break;case"borderCallout2":case"callout2":d||(f=18750*tR,m=-8333*tR,g=18750*tR,A=-16667*tR,y=112500*tR,v=-46667*tR),o=r*f/x,a=e*m/x,l=r*g/x,s=e*A/x,u=r*y/x,c=e*v/x,i=`${M} M ${a},${o} L ${s},${l} L ${c},${u}`;break;case"borderCallout3":case"callout3":d||(f=18750*tR,m=-8333*tR,g=18750*tR,A=-16667*tR,y=1e5*tR,v=-16667*tR,R=112963*tR,b=-8333*tR),o=r*f/x,a=e*m/x,l=r*g/x,s=e*A/x,u=r*y/x,c=e*v/x,p=r*R/x,h=e*b/x,i=`${M} M ${a},${o} L ${s},${l} L ${c},${u} L ${h},${p}`;break;case"accentBorderCallout1":case"accentCallout1":d||(f=18750*tR,m=-8333*tR,g=112500*tR,A=-38333*tR),o=r*f/x,a=e*m/x,l=r*g/x,s=e*A/x,i=`${M} M ${a},${o} L ${s},${l} M ${a},0 L ${a},${r}`;break;case"accentBorderCallout2":case"accentCallout2":d||(f=18750*tR,m=-8333*tR,g=18750*tR,A=-16667*tR,y=112500*tR,v=-46667*tR),o=r*f/x,a=e*m/x,l=r*g/x,s=e*A/x,u=r*y/x,c=e*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*tR,m=-8333*tR,g=18750*tR,A=-16667*tR,y=1e5*tR,v=-16667*tR,R=112963*tR,b=-8333*tR),o=r*f/x,a=e*m/x,l=r*g/x,s=e*A/x,u=r*y/x,c=e*v/x,p=r*R/x,h=e*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 t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=5e4*tR,o=5e4*tR,s=16667*tR;if(t)for(let e of t){let t=E(e,["attrs","name"]);"adj1"===t?a=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj2"===t?o=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj3"===t&&(s=parseInt(E(e,["attrs","fmla"]).substring(4))*tR)}let l=33333*tR,c=1e5*tR,u=2e5*tR,h=Math.min(e,r),p=e/2,d=r/2,f=s<0?0:s>l?l:s,m=c-f,g=c*(p-e/32)/h,A=h*(o<0?0:o>g?g:o)/c,y=e-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),N=f*h/(4e5*tR),L=p-e/32,_=p+e/32,T=b+N,P=O-N;i=`M 0,${M} L ${A},0 L ${A},${b} L ${p},${b} ${t2(p,T,e/32,N,270,450,!1).replace("M","L")} ${t2(p,P,e/32,N,270,90,!1).replace("M","L")} L ${y},${O} L ${y},${r-w} L ${e},${S} L ${y},${r} L ${y},${x} L ${p},${x} ${t2(p,x-N,e/32,N,90,180,!1).replace("M","L")} L ${L},${w-b} L ${A},${w-b} L ${A},${w} z M ${_},${T} L ${_},${O} M ${L},${P} L ${L},${w-b}`}break;case"ribbon":case"ribbon2":{let a=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),o=16667*tR,s=5e4*tR;if(a)for(let t of a){let e=E(t,["attrs","name"]);"adj1"===e?o=parseInt(E(t,["attrs","fmla"]).substring(4))*tR:"adj2"===e&&(s=parseInt(E(t,["attrs","fmla"]).substring(4))*tR)}let l=25e3*tR,c=33333*tR,u=75e3*tR,h=1e5*tR,p=2e5*tR,d=e/2,f=e/8,m=e/32,g=o<0?0:o>c?c:o,A=e-f,y=e*(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,N=r*g/(4e5*tR);if("ribbon2"===t){let t=r*g/p,n=r-t,a=r*g/h,o=r-a,s=0+a,l=(s+r)/2,c=r-N,u=n-N;i=`M 0,${r} L ${f},${l} L 0,${s} L ${v},${s} L ${v},${N} ${t2(b,N,m,N,180,270,!1).replace("M","L")} L ${x},0 ${t2(x,N,m,N,270,360,!1).replace("M","L")} L ${R},${s} L ${e},${s} L ${A},${l} L ${e},${r} L ${O},${r} ${t2(O,c,m,N,90,270,!1).replace("M","L")} L ${x},${n} ${t2(x,u,m,N,90,-90,!1).replace("M","L")} L ${b},${o} ${t2(b,u,m,N,270,90,!1).replace("M","L")} L ${w},${n} ${t2(w,c,m,N,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"===t){let t=r*g/p,n=r*g/h,a=r-n,o=a/2,s=r-N,l=n-N;i=`M 0,0 L ${w},0 ${t2(w,N,m,N,270,450,!1).replace("M","L")} L ${b},${t} ${t2(b,l,m,N,270,90,!1).replace("M","L")} L ${x},${n} ${t2(x,l,m,N,90,-90,!1).replace("M","L")} L ${O},${t} ${t2(O,N,m,N,90,270,!1).replace("M","L")} L ${e},0 L ${A},${o} L ${e},${a} L ${R},${a} L ${R},${s} ${t2(x,s,m,N,0,90,!1).replace("M","L")} L ${b},${r} ${t2(b,s,m,N,90,180,!1).replace("M","L")} L ${v},${a} L 0,${a} L ${f},${o} z M ${M},${N} L ${M},${n} M ${S},${n} L ${S},${N} 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"===t?6250*tR:12500*tR,s=0;if(a)for(let t of a){let e=E(t,["attrs","name"]);"adj1"===e?o=parseInt(E(t,["attrs","fmla"]).substring(4))*tR:"adj2"===e&&(s=parseInt(E(t,["attrs","fmla"]).substring(4))*tR)}let l=-1e4*tR,c=5e4*tR,u=1e5*tR;if("doubleWave"===t){let t=12500*tR,n=s<l?l:s>u?u:s,a=r*(o<0?0:o>t?t:o)/u,h=10*a/3,p=a-h,d=a+h,f=r-a,m=f-h,g=f+h,A=e*n/c,y=A>0?0:A,v=0-y,R=A>0?A:0,b=e-R,x=(y+b)/6,M=(y+b)/3,S=(v+b)/2,w=S+x,O=0+R,N=e+y,L=(O+N)/2,_=L+x;i=`M ${v},${a} C ${v+x},${p} ${v+M},${d} ${S},${a} C ${w},${p} ${(w+b)/2},${d} ${b},${a} L ${N},${f} C ${(_+N)/2},${g} ${_},${m} ${L},${f} C ${O+M},${g} ${O+x},${m} ${O},${f} z`}else if("wave"===t){let t=2e4*tR,n=s<l?l:s>u?u:s,a=r*(o<0?0:o>t?t:o)/u,h=10*a/3,p=r-a,d=e*n/c,f=d>0?0:d,m=0-f,g=d>0?d:0,A=e-g,y=(f+A)/3,v=m+y,R=0+g,b=e+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*tR,s=5e4*tR,l=12500*tR;if(a)for(let t of a){let e=E(t,["attrs","name"]);"adj1"===e?o=parseInt(E(t,["attrs","fmla"]).substring(4))*tR:"adj2"===e?s=parseInt(E(t,["attrs","fmla"]).substring(4))*tR:"adj3"===e&&(l=parseInt(E(t,["attrs","fmla"]).substring(4))*tR)}let c=25e3*tR,u=75e3*tR,h=1e5*tR,p=e/2,d=e/8,f=o<0?0:o>h?h:o,m=h-f,g=f-m/2>0?f-m/2:0,A=p-e*(s<c?c:s>u?u:s)/(2e5*tR),y=A+d,v=e-y,R=e-A,b=e-d,x=r*(l<g?g:l>f?f:l)/h,M=4*x/e,S=y-y*y/e,w=y/2,O=e-w,N=r*f/h,L=N-x,_=M*(A-A*A/e),T=r-N,P=14*x/16,I=A/2,C=M*I,k=e-I;if("ellipseRibbon"===t){let t=M*S,r=M*w,n=_+L,a=x+L-n+x+L,o=(P+T)/2,s=_+T,l=n+T,c=C+T,u=t+L;i=`M 0,0 Q ${w},${r} ${y},${t} L ${A},${n} Q ${p},${a} ${R},${n} L ${v},${t} Q ${O},${r} ${e},0 L ${b},${o} L ${e},${T} Q ${k},${c} ${R},${s} L ${R},${l} Q ${p},${a+T} ${A},${l} L ${A},${s} Q ${I},${c} 0,${T} L ${d},${o} z M ${A},${s} L ${A},${n} M ${R},${n} L ${R},${s} M ${y},${t} L ${y},${u} M ${v},${u} L ${v},${t}`}else if("ellipseRibbon2"===t){let t=M*S,n=r-t,a=r-M*w,o=_+L,s=r-o,l=x+L-o+x+L,c=r-l,u=r-(P+T)/2,h=r-(_+T),f=r-(o+T),m=r-(C+T),g=r-(l+T),F=r-(t+L);i=`M 0,${r} L ${d},${u} L 0,${N} Q ${I},${m} ${A},${h} L ${A},${f} Q ${p},${g} ${R},${f} L ${R},${h} Q ${k},${m} ${e},${N} L ${b},${u} L ${e},${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 ${e} ${r}`;break;case"rightArrow":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=.25,o=.5;if(t){let n=e/r;for(let e of t){let t=E(e,["attrs","name"]);"adj1"===t?a=.5-parseInt(E(e,["attrs","fmla"]).substring(4))/2e5:"adj2"===t&&(o=1-parseInt(E(e,["attrs","fmla"]).substring(4))/1e5/n)}}i=`M ${e} ${r/2} L ${o*e} 0 L ${o*e} ${a*r} L 0 ${a*r} L 0 ${(1-a)*r} L ${o*e} ${(1-a)*r} L ${o*e} ${r} Z`}break;case"leftArrow":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=.25,o=.5;if(t){let n=e/r;for(let e of t){let t=E(e,["attrs","name"]);"adj1"===t?a=.5-parseInt(E(e,["attrs","fmla"]).substring(4))/2e5:"adj2"===t&&(o=parseInt(E(e,["attrs","fmla"]).substring(4))/1e5/n)}}i=`M 0 ${r/2} L ${o*e} ${r} L ${o*e} ${(1-a)*r} L ${e} ${(1-a)*r} L ${e} ${a*r} L ${o*e} ${a*r} L ${o*e} 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 t=r/e;for(let e of a){let r=E(e,["attrs","name"]);"adj1"===r?o=parseInt(E(e,["attrs","fmla"]).substring(4))/2e5:"adj2"===r&&(s=parseInt(E(e,["attrs","fmla"]).substring(4))/1e5/t)}}"flowChartOffpageConnector"===t&&(o=.5,s=.212),i=`M ${(.5-o)*e} 0 L ${(.5-o)*e} ${(1-s)*r} L 0 ${(1-s)*r} L ${e/2} ${r} L ${e} ${(1-s)*r} L ${(.5+o)*e} ${(1-s)*r} L ${(.5+o)*e} 0 Z`}break;case"upArrow":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=.25,o=.5;if(t){let n=r/e;for(let e of t){let t=E(e,["attrs","name"]);"adj1"===t?a=parseInt(E(e,["attrs","fmla"]).substring(4))/2e5:"adj2"===t&&(o=parseInt(E(e,["attrs","fmla"]).substring(4))/1e5/n)}}i=`M ${e/2} 0 L 0 ${o*r} L ${(.5-a)*e} ${o*r} L ${(.5-a)*e} ${r} L ${(.5+a)*e} ${r} L ${(.5+a)*e} ${o*r} L ${e} ${o*r} Z`}break;case"leftRightArrow":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=.25,o=.25;if(t){let n=e/r;for(let e of t){let t=E(e,["attrs","name"]);"adj1"===t?a=.5-parseInt(E(e,["attrs","fmla"]).substring(4))/2e5:"adj2"===t&&(o=parseInt(E(e,["attrs","fmla"]).substring(4))/1e5/n)}}i=`M 0 ${r/2} L ${o*e} ${r} L ${o*e} ${(1-a)*r} L ${(1-o)*e} ${(1-a)*r} L ${(1-o)*e} ${r} L ${e} ${r/2} L ${(1-o)*e} 0 L ${(1-o)*e} ${a*r} L ${o*e} ${a*r} L ${o*e} 0 Z`}break;case"upDownArrow":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=.25,o=.25;if(t){let n=r/e;for(let e of t){let t=E(e,["attrs","name"]);"adj1"===t?a=.5-parseInt(E(e,["attrs","fmla"]).substring(4))/2e5:"adj2"===t&&(o=parseInt(E(e,["attrs","fmla"]).substring(4))/1e5/n)}}i=`M ${e/2} 0 L 0 ${o*r} L ${a*e} ${o*r} L ${a*e} ${(1-o)*r} L 0 ${(1-o)*r} L ${e/2} ${r} L ${e} ${(1-o)*r} L ${(1-a)*e} ${(1-o)*r} L ${(1-a)*e} ${o*r} L ${e} ${o*r} Z`}break;case"quadArrow":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=22500*tR,o=22500*tR,s=22500*tR,l=5e4*tR,c=1e5*tR;if(t)for(let e of t){let t=E(e,["attrs","name"]);"adj1"===t?a=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj2"===t?o=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj3"===t&&(s=parseInt(E(e,["attrs","fmla"]).substring(4))*tR)}let u=r/2,h=e/2,p=Math.min(e,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*tR),x=h-b,M=h+b,S=e-A,w=u-y,O=u+y,N=u-b,L=u+b,_=r-A;i=`M 0,${u} L ${A},${w} L ${A},${N} L ${x},${N} L ${x},${A} L ${v},${A} L ${h},0 L ${R},${A} L ${M},${A} L ${M},${N} L ${S},${N} L ${S},${w} L ${e},${u} L ${S},${O} L ${S},${L} L ${M},${L} L ${M},${_} L ${R},${_} L ${h},${r} L ${v},${_} L ${x},${_} L ${x},${L} L ${A},${L} L ${A},${O} z`}break;case"leftRightUpArrow":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=25e3*tR,o=25e3*tR,s=25e3*tR,l=5e4*tR,c=1e5*tR;if(t)for(let e of t){let t=E(e,["attrs","name"]);"adj1"===t?a=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj2"===t?o=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj3"===t&&(s=parseInt(E(e,["attrs","fmla"]).substring(4))*tR)}let u=e/2,h=Math.min(e,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*tR),v=u-y,R=u+y,b=e-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 ${e},${M} L ${b},${r} L ${b},${w} L ${g},${w} L ${g},${r} z`}break;case"leftUpArrow":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=25e3*tR,o=25e3*tR,s=25e3*tR,l=5e4*tR,c=1e5*tR;if(t)for(let e of t){let t=E(e,["attrs","name"]);"adj1"===t?a=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj2"===t?o=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj3"===t&&(s=parseInt(E(e,["attrs","fmla"]).substring(4))*tR)}let u=Math.min(e,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=e-g,y=r-g,v=u*h/c,R=e-v,b=r-v,x=u*d/(2e5*tR),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 ${e},${m} L ${S},${m} L ${S},${O} L ${m},${O} L ${m},${r} z`}break;case"bentUpArrow":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=25e3*tR,o=25e3*tR,s=25e3*tR,l=5e4*tR,c=1e5*tR;if(t)for(let e of t){let t=E(e,["attrs","name"]);"adj1"===t?a=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj2"===t?o=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj3"===t&&(s=parseInt(E(e,["attrs","fmla"]).substring(4))*tR)}let u=Math.min(e,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=e-u*p/l,m=e-u*p/c,g=u*h/(2e5*tR),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 ${e},${d} L ${y},${d} L ${y},${r} L 0,${r} z`}break;case"bentArrow":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=25e3*tR,o=25e3*tR,s=25e3*tR,l=43750*tR,c=5e4*tR,u=1e5*tR;if(t)for(let e of t){let t=E(e,["attrs","name"]);"adj1"===t?a=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj2"===t?o=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj3"===t?s=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj4"===t&&(l=parseInt(E(e,["attrs","fmla"]).substring(4))*tR)}let h=Math.min(e,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=e-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=e-A,O=g+f,N=g+b,L=O+M;i=`M 0,${r} L 0,${N} ${t2(b,N,b,b,180,270,!1).replace("M","L")} L ${w},${g} L ${w},0 L ${e},${m} L ${w},${O+g} L ${w},${O} L ${S},${O} ${t2(S,L,M,M,270,180,!1).replace("M","L")} L ${f},${r} z`}break;case"uturnArrow":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=25e3*tR,o=25e3*tR,s=25e3*tR,l=43750*tR,c=75e3*tR,u=25e3*tR,h=1e5*tR;if(t)for(let e of t){let t=E(e,["attrs","name"]);"adj1"===t?a=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj2"===t?o=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj3"===t?s=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj4"===t?l=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj5"===t&&(c=parseInt(E(e,["attrs","fmla"]).substring(4))*tR)}let p=Math.min(e,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=e-x,O=w/2,N=h*(O<S?O:S)/p,L=p*(l<0?0:l>N?N:l)/h,_=L-R,T=_>0?_:0,P=R+T,I=e-b,C=I-b,k=C+x,F=w-L,X=k-T;i=`M 0,${r} L 0,${L} ${t2(L,L,L,L,180,270,!1).replace("M","L")} L ${F},0 ${t2(F,L,L,L,270,360,!1).replace("M","L")} L ${w},${S} L ${e},${S} L ${I},${M} L ${C},${S} L ${k},${S} L ${k},${P} ${t2(X,P,T,T,0,-90,!1).replace("M","L")} L ${P},${R} ${t2(P,P,T,T,270,180,!1).replace("M","L")} L ${R},${r} z`}break;case"stripedRightArrow":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=5e4*tR,o=5e4*tR,s=1e5*tR;if(t)for(let e of t){let t=E(e,["attrs","name"]);"adj1"===t?a=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj2"===t&&(o=parseInt(E(e,["attrs","fmla"]).substring(4))*tR)}let l=r/2,c=Math.min(e,r),u=84375*tR*e/c,h=a<0?0:a>s?s:a,p=5*c/32,d=e-c*(o<0?0:o>u?u:o)/s,f=r*h/(2e5*tR),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 ${e},${l} L ${d},${r} L ${d},${g} L ${p},${g} z`}break;case"notchedRightArrow":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=5e4*tR,o=5e4*tR,s=1e5*tR;if(t)for(let e of t){let t=E(e,["attrs","name"]);"adj1"===t?a=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj2"===t&&(o=parseInt(E(e,["attrs","fmla"]).substring(4))*tR)}let l=r/2,c=Math.min(e,r),u=s*e/c,h=a<0?0:a>s?s:a,p=c*(o<0?0:o>u?u:o)/s,d=e-p,f=r*h/(2e5*tR),m=l-f,g=l+f;i=`M 0,${m} L ${d},${m} L ${d},0 L ${e},${l} L ${d},${r} L ${d},${g} L 0,${g} L ${f*p/l},${l} z`}break;case"homePlate":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),a=5e4*tR,o=1e5*tR;t&&(a=parseInt(t.substring(4))*tR);let s=r/2,l=Math.min(e,r),c=o*e/l,u=e-l*(a<0?0:a>c?c:a)/o;i=`M 0,0 L ${u},0 L ${e},${s} L ${u},${r} L 0,${r} z`}break;case"chevron":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),a=5e4*tR,o=1e5*tR;t&&(a=parseInt(t.substring(4))*tR);let s=r/2,l=Math.min(e,r),c=o*e/l,u=l*(a<0?0:a>c?c:a)/o,h=e-u;i=`M 0,0 L ${h},0 L ${e},${s} L ${h},${r} L 0,${r} L ${u},${s} z`}break;case"rightArrowCallout":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=25e3*tR,o=25e3*tR,s=25e3*tR,l=64977*tR,c=1e5*tR;if(t)for(let e of t){let t=E(e,["attrs","name"]);"adj1"===t?a=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj2"===t?o=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj3"===t?s=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj4"===t&&(l=parseInt(E(e,["attrs","fmla"]).substring(4))*tR)}let u=r/2,h=Math.min(e,r),p=5e4*tR*r/h,d=o<0?0:o>p?p:o,f=2*d,m=c*e/h,g=s<0?0:s>m?m:s,A=c-g*h/e,y=h*d/c,v=h*(a<0?0:a>f?f:a)/(2e5*tR),R=u-v,b=u+v,x=e-h*g/c,M=e*(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 ${e},${u} L ${x},${u+y} L ${x},${b} L ${M},${b} L ${M},${r} L 0,${r} z`}break;case"downArrowCallout":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=25e3*tR,o=25e3*tR,s=25e3*tR,l=64977*tR,c=1e5*tR;if(t)for(let e of t){let t=E(e,["attrs","name"]);"adj1"===t?a=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj2"===t?o=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj3"===t?s=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj4"===t&&(l=parseInt(E(e,["attrs","fmla"]).substring(4))*tR)}let u=e/2,h=Math.min(e,r),p=5e4*tR*e/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*tR),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 ${e},0 L ${e},${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 t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=25e3*tR,o=25e3*tR,s=25e3*tR,l=64977*tR,c=1e5*tR;if(t)for(let e of t){let t=E(e,["attrs","name"]);"adj1"===t?a=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj2"===t?o=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj3"===t?s=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj4"===t&&(l=parseInt(E(e,["attrs","fmla"]).substring(4))*tR)}let u=r/2,h=Math.min(e,r),p=5e4*tR*r/h,d=o<0?0:o>p?p:o,f=2*d,m=c*e/h,g=s<0?0:s>m?m:s,A=c-g*h/e,y=h*d/c,v=h*(a<0?0:a>f?f:a)/(2e5*tR),R=u-v,b=u+v,x=h*g/c,M=e*(l<0?0:l>A?A:l)/c,S=e-M;i=`M 0,${u} L ${x},${u-y} L ${x},${R} L ${S},${R} L ${S},0 L ${e},0 L ${e},${r} L ${S},${r} L ${S},${b} L ${x},${b} L ${x},${u+y} z`}break;case"upArrowCallout":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=25e3*tR,o=25e3*tR,s=25e3*tR,l=64977*tR,c=1e5*tR;if(t)for(let e of t){let t=E(e,["attrs","name"]);"adj1"===t?a=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj2"===t?o=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj3"===t?s=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj4"===t&&(l=parseInt(E(e,["attrs","fmla"]).substring(4))*tR)}let u=e/2,h=Math.min(e,r),p=5e4*tR*e/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*tR),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 ${e},${S} L ${e},${r} L 0,${r} z`}break;case"leftRightArrowCallout":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=25e3*tR,o=25e3*tR,s=25e3*tR,l=48123*tR,c=5e4*tR,u=1e5*tR,h=2e5*tR;if(t)for(let e of t){let t=E(e,["attrs","name"]);"adj1"===t?a=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj2"===t?o=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj3"===t?s=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj4"===t&&(l=parseInt(E(e,["attrs","fmla"]).substring(4))*tR)}let p=r/2,d=e/2,f=Math.min(e,r),m=c*r/f,g=o<0?0:o>m?m:o,A=2*g,y=c*e/f,v=s<0?0:s>y?y:s,R=u-v*f/(e/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,N=f*v/u,L=e-N,_=e*(l<0?0:l>R?R:l)/h,T=d-_,P=d+_;i=`M 0,${p} L ${N},${M} L ${N},${S} L ${T},${S} L ${T},0 L ${P},0 L ${P},${S} L ${L},${S} L ${L},${M} L ${e},${p} L ${L},${O} L ${L},${w} L ${P},${w} L ${P},${r} L ${T},${r} L ${T},${w} L ${N},${w} L ${N},${O} z`}break;case"quadArrowCallout":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=18515*tR,o=18515*tR,s=18515*tR,l=48123*tR,c=5e4*tR,u=1e5*tR,h=2e5*tR;if(t)for(let e of t){let t=E(e,["attrs","name"]);"adj1"===t?a=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj2"===t?o=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj3"===t?s=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj4"===t&&(l=parseInt(E(e,["attrs","fmla"]).substring(4))*tR)}let p=r/2,d=e/2,f=Math.min(e,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=e*b/h,O=r*b/h,N=e-S,L=d-w,_=d+w,T=d-x,P=d+x,I=d-M,C=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 ${L},${V} L ${L},${F} L ${I},${F} L ${I},${S} L ${T},${S} L ${d},0 L ${P},${S} L ${C},${S} L ${C},${F} L ${_},${F} L ${_},${V} L ${N},${V} L ${N},${U} L ${e},${p} L ${N},${W} L ${N},${Y} L ${_},${Y} L ${_},${X} L ${C},${X} L ${C},${k} L ${P},${k} L ${d},${r} L ${T},${k} L ${I},${k} L ${I},${X} L ${L},${X} L ${L},${Y} L ${S},${Y} L ${S},${W} z`}break;case"curvedDownArrow":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=25e3*tR,o=5e4*tR,s=25e3*tR,l=1e5*tR;if(t)for(let e of t){let t=E(e,["attrs","name"]);"adj1"===t?a=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj2"===t?o=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj3"===t&&(s=parseInt(E(e,["attrs","fmla"]).substring(4))*tR)}let c=e/2,u=Math.min(e,r),h=5e4*tR*e/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=e-d/2,w=r-y,O=180*Math.atan(R/y)/Math.PI,N=180*Math.atan(p/2/g)/Math.PI,L=270+O,_=270-N;i=`M ${S},${r} L ${b-M},${w} L ${b},${w} ${t2(f,r,f,r,L,L+-O,!1).replace("M","L")} L ${v},0 ${t2(v,r,f,r,270,270+O,!1).replace("M","L")} L ${b+p},${w} L ${x+M},${w} z M ${v},0 ${t2(v,r,f,r,_,_+(N-90),!1).replace("M","L")} ${t2(f,r,f,r,180,180+(90+N),!1).replace("M","L")}`}break;case"curvedLeftArrow":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=25e3*tR,o=5e4*tR,s=25e3*tR,l=1e5*tR;if(t)for(let e of t){let t=E(e,["attrs","name"]);"adj1"===t?a=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj2"===t?o=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj3"===t&&(s=parseInt(E(e,["attrs","fmla"]).substring(4))*tR)}let c=r/2,u=Math.min(e,r),h=5e4*tR*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)*e/g,y=l*A/u,v=u*(s<0?0:s>y?y:s)/l,R=m+d,b=Math.sqrt(e*e-v*v)*m/e,x=m+b,M=R+b,S=(f-d)/2,w=r-f/2,O=0+v,N=Math.atan(b/v),L=180*N/Math.PI,_=180*(Math.atan(d/2/A)-N)/Math.PI;i=`M ${e},${R} ${t2(0,m,e,m,0,-90,!1).replace("M","L")} L 0,0 ${t2(0,R,e,m,270,360,!1).replace("M","L")} L ${e},${R} ${t2(0,R,e,m,0,L,!1).replace("M","L")} L ${O},${M} L ${O},${M+S} L 0,${w} L ${O},${x-S} L ${O},${x} ${t2(0,m,e,m,L,L+_,!1).replace("M","L")} ${t2(0,m,e,m,0,-90,!1).replace("M","L")} ${t2(0,R,e,m,270,360,!1).replace("M","L")}`}break;case"curvedRightArrow":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=25e3*tR,o=5e4*tR,s=25e3*tR,l=1e5*tR;if(t)for(let e of t){let t=E(e,["attrs","name"]);"adj1"===t?a=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj2"===t?o=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj3"===t&&(s=parseInt(E(e,["attrs","fmla"]).substring(4))*tR)}let c=r/2,u=Math.min(e,r),h=5e4*tR*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)*e/g,y=l*A/u,v=u*(s<0?0:s>y?y:s)/l,R=m+d,b=Math.sqrt(e*e-v*v)*m/e,x=m+b,M=R+b,S=(f-d)/2,w=r-f/2,O=e-v,N=Math.atan(b/v),L=180*(Math.PI-N)/Math.PI,_=-(180*N)/Math.PI,T=180*N/Math.PI,P=180*(Math.atan(d/2/A)-Math.PI/2)/Math.PI;i=`M 0,${m} ${t2(e,m,e,m,180,180+_,!1).replace("M","L")} L ${O},${x} L ${O},${x-S} L ${e},${w} L ${O},${M+S} L ${O},${M} ${t2(e,R,e,m,L,L+T,!1).replace("M","L")} L 0,${m} ${t2(e,m,e,m,180,270,!1).replace("M","L")} L ${e},${d} ${t2(e,R,e,m,270,270+P,!1).replace("M","L")}`}break;case"curvedUpArrow":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=25e3*tR,o=5e4*tR,s=25e3*tR,l=1e5*tR;if(t)for(let e of t){let t=E(e,["attrs","name"]);"adj1"===t?a=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj2"===t?o=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj3"===t&&(s=parseInt(E(e,["attrs","fmla"]).substring(4))*tR)}let c=e/2,u=Math.min(e,r),h=5e4*tR*e/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=e-d/2,w=0+y,O=Math.atan(R/y),N=Math.atan(p/2/g),L=Math.PI/2-O,_=180*(Math.PI/2-N)/Math.PI,T=180*(N-O)/Math.PI,P=180*L/Math.PI,I=180*O/Math.PI;i=`${t2(f,0,f,r,_,_+T,!1)} L ${b},${w} L ${b-M},${w} L ${S},0 L ${x+M},${w} L ${x},${w} ${t2(v,0,f,r,P,P+I,!1).replace("M","L")} L ${f},${r} ${t2(f,0,f,r,90,180,!1).replace("M","L")} L ${p},0 ${t2(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 t of l){let e=E(t,["attrs","name"]);"adj1"===e?a=parseInt(E(t,["attrs","fmla"]).substring(4)):"adj2"===e?o=parseInt(E(t,["attrs","fmla"]).substring(4)):"adj3"===e&&(s=parseInt(E(t,["attrs","fmla"]).substring(4)))}else a=parseInt(E(l,["attrs","fmla"]).substring(4));let c=5e4*tR,u=1e5*tR,h=2e5*tR,p=e/2,d=r/2,f=r/2;if("mathNotEqual"===t){void 0===a&&(a=23520),void 0===o&&(o=66e5),void 0===s&&(s=11760),a*=tR,o=o/6e4*Math.PI/180,s*=tR;let t=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*tR*e/h,v=p-y,R=p+y,b=d-A,x=d+A,M=b-g,S=x+g,w=(o<t?t:o>n?n:o)-Math.PI/2,O=f*Math.tan(w),N=Math.sqrt(O*O+f*f),L=N*g/f,_=p+O-L/2,T=_-O*M/f,P=_-O*b/f,I=_-O*x/f,C=_-O*S/f,k=g*f/N,F=w>0?_+k:_+L,X=w>0?_:_+L-k,U=g*O/N,W=w>0?U:0,V=w>0?0:-U,E=e-F,Y=e-X,D=r-W,Q=r-V;i=`M ${v},${M} L ${T},${M} L ${X},${V} L ${F},${W} L ${T+L},${M} L ${R},${M} L ${R},${b} L ${P+L},${b} L ${I+L},${x} L ${R},${x} L ${R},${S} L ${C+L},${S} L ${Y},${Q} L ${E},${D} L ${C},${S} L ${v},${S} L ${v},${x} L ${I},${x} L ${P},${b} L ${v},${b} z`}else if("mathDivide"===t){void 0===a&&(a=23520),void 0===o&&(o=5880),void 0===s&&(s=11760),a*=tR,o*=tR,s*=tR;let t=1e3*tR,n=36745*tR,l=73490*tR,c=a<t?t:a>n?n:a,f=(l-c)/4,m=n*e/r,g=f<m?f:m,A=s<t?t: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=e*l/h,M=d-v,S=d+v,w=M-(R+b)-b,O=r-w,N=p-x,L=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 ${N},${M} L ${L},${M} L ${L},${S} L ${N},${S} z`}else if("mathEqual"===t){void 0===a&&(a=23520),void 0===o&&(o=11760),a*=tR,o*=tR;let t=36745*tR,n=a<0?0:a>t?t:a,s=u-2*n,l=r*n/u,c=r*(o<0?0:o>s?s:o)/h,f=73490*tR*e/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"===t){void 0===a&&(a=23520);let t=r*((a*=tR)<0?0:a>u?u:a)/h,n=73490*tR*e/h,o=d-t,s=d+t,l=p-n,c=p+n;i=`M ${l},${o} L ${c},${o} L ${c},${s} L ${l},${s} z`}else if("mathMultiply"===t){void 0===a&&(a=23520),a*=tR;let t=51965*tR,n=Math.min(e,r)*(a<0?0:a>t?t:a)/u,o=Math.atan(r/e),s=Math.sin(o),l=Math.cos(o),c=Math.tan(o),h=Math.sqrt(e*e+r*r),f=h-h*t/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=e-b,w=e-v,O=r-R,N=r-x,L=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},${N} L ${p},${L} L ${b},${N} L ${v},${O} L ${v+(d-R)/c},${d} z`}else if("mathPlus"===t){void 0===a&&(a=23520),a*=tR;let t=73490*tR,n=Math.min(e,r),o=a<0?0:a>t?t:a,s=e*t/h,l=r*t/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*tR;a&&(o=parseInt(a.substring(4))*tR),("flowChartMagneticDisk"===t||"flowChartMagneticDrum"===t)&&(o=5e4*tR);let s=Math.min(e,r),l=5e4*tR*r/s,c=s*(o<0?0:o>l?l:o)/(2e5*tR),u=r-c,h=e/2,p=`${t2(h,c,h,c,0,180,!1)} ${t2(h,c,h,c,180,360,!1).replace("M","L")} L ${e},${u} ${t2(h,u,h,c,0,180,!1).replace("M","L")} L 0,${c}`;"flowChartMagneticDrum"===t&&(p=p.replace(/([MLQC])\s*([-\d.e]+)\s*([-\d.e]+)/gi,(t,n,i,a)=>{let o=e/2-(parseFloat(a)-r/2),s=r/2+(parseFloat(i)-e/2);return`${n}${o} ${s}`}).replace(/([MLQC])\s*([-\d.e]+)\s*([-\d.e]+)\s*([-\d.e]+)\s*([-\d.e]+)/gi,(t,n,i,a,o,s)=>{let l=e/2-(parseFloat(a)-r/2),c=r/2+(parseFloat(i)-e/2),u=e/2-(parseFloat(s)-r/2),h=r/2+(parseFloat(o)-e/2);return`${n}${l} ${c} ${u} ${h}`})),i=p}break;case"swooshArrow":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=25e3*tR,o=16667*tR;if(t)for(let e of t){let t=E(e,["attrs","name"]);"adj1"===t?a=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj2"===t&&(o=parseInt(E(e,["attrs","fmla"]).substring(4))*tR)}let s=+tR,l=75e3*tR,c=1e5*tR,u=Math.min(e,r),h=u/8,p=r/6,d=7e4*tR*e/u,f=r*(a<s?s:a>l?l:a)/c,m=e-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=e/6,S=e/4;i=`M 0,${r} Q ${M},${p+p} ${m},${h} L ${m-A},0 L ${e},${b/2-x} L ${R+A},${b} L ${R},${v} Q ${S},${v+p/2} 0,${r} z`}break;case"circularArrow":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=12500*tR,o=19.03865*Math.PI/180,s=340.96135*Math.PI/180,l=180*Math.PI/180,c=12500*tR;if(t)for(let e of t){let t=E(e,["attrs","name"]);"adj1"===t?a=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj2"===t?o=parseInt(E(e,["attrs","fmla"]).substring(4))/6e4*Math.PI/180:"adj3"===t?s=parseInt(E(e,["attrs","fmla"]).substring(4))/6e4*Math.PI/180:"adj4"===t?l=parseInt(E(e,["attrs","fmla"]).substring(4))/6e4*Math.PI/180:"adj5"===t&&(c=parseInt(E(e,["attrs","fmla"]).substring(4))*tR)}let u=e/2,h=r/2,p=e/2,d=r/2,f=Math.min(e,r),m=25e3*tR,g=1e5*tR,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,N=p+O-w,L=d+O-w,_=N-S,T=L-S,P=_+O,I=T+O,C=P*Math.sin(x),k=I*Math.cos(x),F=P*Math.cos(Math.atan2(C,k)),X=I*Math.sin(Math.atan2(C,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,Z=Math.abs(Q-Math.PI>0?Q-v:Q),B=x+(o<0?0:o>Z?Z:o),K=P*Math.sin(B),$=I*Math.cos(B),G=P*Math.cos(Math.atan2(K,$)),H=I*Math.sin(Math.atan2(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),tt=j-u,te=q-h,tr=z-u,tn=J-h,ti=Math.min(N,L),ta=tt*ti/N,to=te*ti/L,ts=tr*ti/N,tl=tn*ti/L,tc=ts-ta,tu=tl-to,th=Math.sqrt(tc*tc+tu*tu),tp=ta*tl-ts*to,td=Math.sqrt(Math.max(0,ti*ti*th*th-tp*tp)),tf=-1*tu>0?-1:1,tm=(tp*tu+tf*tc*td)/(th*th),tg=(tp*tu-tf*tc*td)/(th*th),tA=(-tp*tc+Math.abs(tu)*td)/(th*th),ty=(-tp*tc-Math.abs(tu)*td)/(th*th),tv=Math.sqrt((ts-tg)**2+(tl-ty)**2)-Math.sqrt((ts-tm)**2+(tl-tA)**2),tb=u+(tv>0?tm:tg)*N/ti,tx=h+(tv>0?tA:ty)*L/ti,tM=tt*V/_,tS=te*V/T,tw=tr*V/_,tO=tn*V/T,tN=tw-tM,tL=tO-tS,t_=Math.sqrt(tN*tN+tL*tL),tT=tM*tO-tw*tS,tP=Math.sqrt(Math.max(0,V*V*t_*t_-tT*tT)),tI=(tT*tL+tf*tN*tP)/(t_*t_),tC=(tT*tL-tf*tN*tP)/(t_*t_),tk=(-tT*tN+Math.abs(tL)*tP)/(t_*t_),tF=(-tT*tN-Math.abs(tL)*tP)/(t_*t_),tX=Math.sqrt((tM-tC)**2+(tS-tF)**2)-Math.sqrt((tM-tI)**2+(tS-tk)**2),tU=tX>0?tI:tC,tW=tX>0?tk:tF,tV=u+tU*_/V,tE=h+tW*T/V,tY=Math.atan2(tW*T/V,tU*_/V),tD=tY>0?tY:tY+v,tQ=M-tD,tZ=Math.sqrt((tb-tV)**2+(tx-tE)**2)/2-w,tB=Math.atan2(tx-h,tb-u),tK=(tB>0?tB:tB+v)-M,t$=180*M/Math.PI,tG=t$+180*(tK>0?tK:tK+v)/Math.PI,tH=180*tD/Math.PI,tz=tH+180*(tQ>0?tQ-v:tQ)/Math.PI;i=`${t2(e/2,r/2,N,L,t$,tG,!1)} L ${tZ>0?tb:z},${tZ>0?tx:J} L ${u+G},${h+H} L ${tZ>0?tV:j},${tZ>0?tE:q} L ${tV},${tE} ${t2(e/2,r/2,_,T,tH,tz,!1).replace("M","L")} z`}break;case"leftCircularArrow":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=12500*tR,o=-19.03865*Math.PI/180,s=19.03865*Math.PI/180,l=180*Math.PI/180,c=12500*tR;if(t)for(let e of t){let t=E(e,["attrs","name"]);"adj1"===t?a=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj2"===t?o=parseInt(E(e,["attrs","fmla"]).substring(4))/6e4*Math.PI/180:"adj3"===t?s=parseInt(E(e,["attrs","fmla"]).substring(4))/6e4*Math.PI/180:"adj4"===t?l=parseInt(E(e,["attrs","fmla"]).substring(4))/6e4*Math.PI/180:"adj5"===t&&(c=parseInt(E(e,["attrs","fmla"]).substring(4))*tR)}let u=e/2,h=r/2,p=e/2,d=r/2,f=Math.min(e,r),m=25e3*tR,g=1e5*tR,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,N=p+O-w,L=d+O-w,_=N-S,T=L-S,P=_+O,I=T+O,C=P*Math.cos(x),k=I*Math.sin(x),F=u+C,X=h+k,U=Math.min(_,T),W=(1+Math.sqrt(1-(C*C-U*U)*(k*k-U*U)/(C*C*k*k)))/((C*C-U*U)/C/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),Z=P*Math.cos(Q),B=I*Math.sin(Q),K=N*Math.cos(M),$=L*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),tt=j-u,te=q-h,tr=z-u,tn=J-h,ti=Math.min(N,L),ta=tt*ti/N,to=te*ti/L,ts=tr*ti/N,tl=tn*ti/L,tc=ts-ta,tu=tl-to,th=Math.sqrt(tc*tc+tu*tu),tp=ta*tl-ts*to,td=Math.sqrt(Math.max(0,ti*ti*th*th-tp*tp)),tf=-1*tu>0?-1:1,tm=(tp*tu+tf*tc*td)/(th*th),tg=(tp*tu-tf*tc*td)/(th*th),tA=(-tp*tc+Math.abs(tu)*td)/(th*th),ty=(-tp*tc-Math.abs(tu)*td)/(th*th),tv=Math.sqrt((ts-tg)**2+(tl-ty)**2)-Math.sqrt((ts-tm)**2+(tl-tA)**2),tb=u+(tv>0?tm:tg)*N/ti,tx=h+(tv>0?tA:ty)*L/ti,tM=tt*U/_,tS=te*U/T,tw=tr*U/_,tO=tn*U/T,tN=tw-tM,tL=tO-tS,t_=Math.sqrt(tN*tN+tL*tL),tT=tM*tO-tw*tS,tP=Math.sqrt(Math.max(0,U*U*t_*t_-tT*tT)),tI=(tT*tL+tf*tN*tP)/(t_*t_),tC=(tT*tL-tf*tN*tP)/(t_*t_),tk=(-tT*tN+Math.abs(tL)*tP)/(t_*t_),tF=(-tT*tN-Math.abs(tL)*tP)/(t_*t_),tX=Math.sqrt((tM-tC)**2+(tS-tF)**2)-Math.sqrt((tM-tI)**2+(tS-tk)**2),tU=tX>0?tI:tC,tW=tX>0?tk:tF,tV=u+tU*_/U,tE=h+tW*T/U,tY=Math.atan2(tW*T/U,tU*_/U),tD=tY>0?tY:tY+v,tQ=M-tD,tZ=tQ>0?tQ:tQ+v,tB=Math.sqrt((tb-tV)**2+(tx-tE)**2)/2-w,tK=Math.atan2(tx-h,tb-u),t$=(tK>0?tK:tK+v)-M,tG=180*(M+(t$>0?t$-v:t$))/Math.PI,tH=180*M/Math.PI,tz=180*(tD+tZ)/Math.PI,tJ=tz+-(180*tZ)/Math.PI;i=`M ${u+K},${h+$} L ${u+G},${h+H} ${t2(e/2,r/2,_,T,tz,tJ,!1).replace("M","L")} L ${tB>0?tV:j},${tB>0?tE:q} L ${u+Z},${h+B} L ${tB>0?tb:z},${tB>0?tx:J} L ${tb},${tx} ${t2(e/2,r/2,N,L,tG,tH,!1).replace("M","L")} z`}}return i}function t5(t,e){if(!t||!e)return null;let r=E(t,[e,"p:transition"]);return r||(r=E(t,[e,"mc:AlternateContent","mc:Choice","p:transition"]))?r:r=E(t,[e,"mc:AlternateContent","mc:Fallback","p:transition"])}let t4=new Set(["entr","exit","emph","path","verb","mediacall"]),t6={clickEffect:"onClick",withEffect:"withPrevious",afterEffect:"afterPrevious",clickPar:"onClick",withGroup:"withPrevious",afterGroup:"afterPrevious",interactiveSeq:"onClick"};function t8(t){return null==t?[]:Array.isArray(t)?t:[t]}function t9(t){if(null==t||""===t||"indefinite"===t)return null;let e=parseInt(t,10);return Number.isFinite(e)?e:null}async function t7(t,e,r=!1){if(!e)return null;let n=`${r?"drawing:":"xml:"}${e}`;if(t.diagramFileCache[n])return t.diagramFileCache[n];let i=await X(t.zip,e);return i&&r&&(i=JSON.parse(JSON.stringify(i).replace(/dsp:/g,"p:"))),t.diagramFileCache[n]=i,i}async function et(t,e){let r=E(t,["a:graphic","a:graphicData","dgm:relIds","attrs"])||{},n={data:null,layout:null,quickStyle:null,colors:null,drawing:null},i={},a={},o=E(e.slideResObj,[r["r:dm"],"target"]),s=E(e.slideResObj,[r["r:lo"],"target"]),l=E(e.slideResObj,[r["r:qs"],"target"]),c=E(e.slideResObj,[r["r:cs"],"target"]);o&&(n.data=await t7(e,o)),s&&(n.layout=await t7(e,s)),l&&(n.quickStyle=await t7(e,l)),c&&(n.colors=await t7(e,c));let u=n.data?function(t){let e=E(t,["dgm:dataModel","dgm:extLst","a:ext"]);if(!e)return"";for(let t of(Array.isArray(e)||(e=[e]),e)){let e=E(t,["dsp:dataModelExt","attrs","relId"]);if(e)return e}return""}(n.data):"",h=E(e.slideResObj,[u,"target"]);if(h){n.drawing=i=await t7(e,h,!0)||{};let t=h.split("/").pop(),r=h.replace(t,"_rels/"+t)+".rels",o=await X(e.zip,r);if(o){let e=o.Relationships.Relationship;if(e&&e.constructor!==Array&&(e=[e]),e)for(let r of e){let e=r.attrs.Target;e=0===(e=e.replace(/\\/g,"/")).indexOf("/ppt/")?e.substr(1):-1!==e.indexOf("../")?e.replace("../","ppt/"):h.replace(t,"")+e,a[r.attrs.Id]={type:r.attrs.Type.replace("http://schemas.openxmlformats.org/officeDocument/2006/relationships/",""),target:e}}}}return{...e,digramFileContent:i,diagramResObj:a,diagramContent:n}}let ee=["http://schemas.openxmlformats.org/officeDocument/2006/relationships/","http://schemas.microsoft.com/office/2007/relationships/"];function er(t){if(!t)return"";for(let e of ee)if(0===t.indexOf(e))return t.replace(e,"");return t}async function en(t,e={}){let r,i=[],a={},o={},s={},l={},c={...e,imageMode:e.imageMode||"base64",videoMode:e.videoMode||"none",audioMode:e.audioMode||"none"};if(t instanceof ArrayBuffer?r=new Uint8Array(t):"u">typeof File&&t instanceof File?r=new Uint8Array(await t.arrayBuffer()):"u">typeof C&&C.isBuffer(t)&&(r=new Uint8Array(t)),r&&208===r[0]&&207===r[1]&&17===r[2]&&224===r[3])throw Error("ENCRYPTED_FILE");let u=await n.loadAsync(t),h=await eu(u),{width:p,height:d,defaultTextStyle:f}=await ep(u),{themeContent:m,themeColors:g}=await ed(u),A=await eh(u);for(let t of h.slides){let e=await em(u,t,m,f,a,o,s,c,l);e&&i.push(e)}return{slides:i,usedFonts:A,themeColors:g,size:{width:p,height:d}}}function ei(t){return t?t.constructor===Array?t:[t]:[]}function ea(t,e){return(/(\d+)\.xml/.exec(t)?.[1]||0)-(/(\d+)\.xml/.exec(e)?.[1]||0)}function eo(t){return String(t||"").replace(/\\/g,"/").replace(/^\//,"")}function es(t,e){let r=String(e||"").replace(/\\/g,"/");if(!r)return"";if(r.startsWith("/"))return eo(r);let n=eo(t),i=n.lastIndexOf("/"),a=-1===i?"":n.slice(0,i+1),o=[];for(let t of`${a}${r}`.split("/"))t&&"."!==t&&(".."===t?o.pop():o.push(t));return o.join("/")}async function el(t){for(let e of ei(E(await X(t,"_rels/.rels"),["Relationships","Relationship"]))){let t=E(e,["attrs","Type"]),r=E(e,["attrs","Target"]),n=E(e,["attrs","TargetMode"]);if((!n||"external"!==String(n).toLowerCase())&&"officeDocument"===er(t)&&r){let t=es("",r);if(t)return t}}return"ppt/presentation.xml"}async function ec(t){let e,r,n,i,a=await el(t),o=ei(E(await X(t,(n=-1===(r=(e=eo(a)).lastIndexOf("/"))?"":e.slice(0,r+1),i=-1===r?e:e.slice(r+1),`${n}_rels/${i}.rels`)),["Relationships","Relationship"])),s={},l=[];for(let t of o){let e=E(t,["attrs","Id"]),r=E(t,["attrs","Type"]),n=E(t,["attrs","Target"]),i=E(t,["attrs","TargetMode"]);if(!e||!n||i&&"external"===String(i).toLowerCase())continue;let o=es(a,n);o&&(s[e]=o,"slide"===er(r)&&l.push(o))}let c=ei(E(await X(t,a),["p:presentation","p:sldIdLst","p:sldId"])),u=[];for(let t of c){var h;let e=(h=t?.attrs)&&(h["r:id"]||h.rId)||"";e&&s[e]&&u.push(s[e])}return u.length?u:l}async function eu(t){let e=ei(E(await X(t,"[Content_Types].xml"),["Types","Override"])),r=[],n=[];for(let t of e){let e=t?.attrs?.ContentType,i=t?.attrs?.PartName;if(!e||!i)continue;let a=String(i).replace(/^\//,"");switch(e){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(ea);let i=await ec(t);return i.length||(i=r.sort(ea)),{slides:i,slideLayouts:n}}async function eh(t){let e=E(await X(t,"ppt/presentation.xml"),["p:presentation","p:embeddedFontLst","p:embeddedFont"]),r=[];if(!e)return r;let n=e.constructor===Array?e:[e],i=await X(t,"ppt/_rels/presentation.xml.rels"),a={};if(i){let t=E(i,["Relationships","Relationship"]);if(t)for(let e of(t.constructor!==Array&&(t=[t]),t)){let t=E(e,["attrs","Id"]),r=E(e,["attrs","Target"]);t&&r&&(a[t]=r)}}let o=["p:regular","p:bold","p:italic","p:boldItalic"];for(let e of n){let n=E(e,["p:font","attrs","typeface"]);if(!n)continue;let i="";for(let r of o){let n=e[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 tj(t,l))break}r.push({name:n,fontFamily:function(t){if(!t)return"";if(tq[t])return tq[t];let e=t.toLowerCase();for(let[t,r]of Object.entries(tq))if(t.toLowerCase()===e)return r;for(let[r,n]of Object.entries(tq))if(e.startsWith(r.toLowerCase()))return`${t}, ${n}`;return function(t){let e=t.toLowerCase();return e.includes("mono")||e.includes("code")||e.includes("console")||e.includes("courier")||e.includes("terminal")||e.includes("fixed")?`${t}, monospace`:e.includes("serif")||e.includes("roman")||e.includes("mincho")||e.includes("song")||e.includes("sung")||e.includes("ming")||e.includes("times")||e.includes("georgia")?`${t}, serif`:e.includes("script")||e.includes("cursive")||e.includes("hand")||e.includes("writing")||e.includes("kai")||e.includes("shu")?`${t}, cursive`:`${t}, sans-serif`}(t)}(n),blob:i})}return r}async function ep(t){let e=await X(t,"ppt/presentation.xml"),r=e["p:presentation"]["p:sldSz"].attrs,n=e["p:presentation"]["p:defaultTextStyle"];return{width:parseInt(r.cx)*tR,height:parseInt(r.cy)*tR,defaultTextStyle:n}}async function ed(t){let e,r=null,n=(await X(t,"ppt/_rels/presentation.xml.rels")).Relationships.Relationship;if(n.constructor===Array){for(let t of n)if("http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme"===t.attrs.Type){e=t.attrs.Target;break}}else"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme"===n.attrs.Type&&(e=n.attrs.Target);if(!e){let r=await X(t,"ppt/slideMasters/_rels/slideMaster1.xml.rels");if(r){let t=r.Relationships.Relationship;if(t.constructor===Array){for(let r of t)if("http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme"===r.attrs.Type){e=r.attrs.Target;break}}else"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme"===t.attrs.Type&&(e=t.attrs.Target)}}if(e){(e=e.replace(/\\/g,"/")).startsWith("../")&&(e=e.substring(3));let n=0===e.indexOf("/ppt/")?e.substr(1):"ppt/"+e;r=await X(t,n)}let i=[];if(r){let t=E(r,["a:theme","a:themeElements","a:clrScheme"]);if(t)for(let e=1;e<=6&&void 0!==t[`a:accent${e}`];e++){let r=E(t,[`a:accent${e}`,"a:srgbClr","attrs","val"]);r&&i.push("#"+r)}}return{themeContent:r,themeColors:i}}async function ef(t,e,r){if(!e)return null;if(Object.prototype.hasOwnProperty.call(r,e))return r[e];let n=await X(t,e);return r[e]=n,n}async function em(t,e,r,n,i,a,o,s,l){let c,u=e.replace("slides/slide","slides/_rels/slide")+".rels",h=await X(t,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 t of p){let e=er(t.attrs.Type),r=t.attrs.Target;"External"!==t.attrs.TargetMode&&(r=0===(r=r.replace(/\\/g,"/")).indexOf("/ppt/")?r.substr(1):-1!==r.indexOf("../")?r.replace("../","ppt/"):"ppt/slides/"+r),"slideLayout"===e?f=r:"notesSlide"===e&&(d=r),A[t.attrs.Id]={type:e,target:r}}let b=function(t){let e="",r=E(t,["p:notes","p:cSld","p:spTree","p:sp"]);if(!r)return"";for(let t of(r.constructor!==Array&&(r=[r]),r)){if("body"!==E(t,["p:nvSpPr","p:nvPr","p:ph","attrs","type"]))continue;let r=E(t,["p:txBody"]);if(!r)continue;let n=r["a:p"];if(!n)continue;n.constructor!==Array&&(n=[n]);let i=[];for(let t of n){let r=t["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;)e+=`</${i.pop()}>`;void 0===i[l]?(e+=`<${o}>`,i[l]=o):i[l]!==o&&(e+=`</${i[l]}>`,e+=`<${o}>`,i[l]=o),e+=`<li><p style="text-align:${a};">`}else{for(;i.length>0;)e+=`</${i.pop()}>`;e+=`<p style="text-align:${a};">`}let c=t["a:r"];if(c)for(let t of(c.constructor!==Array&&(c=[c]),c)){let r=t$(E(t,["a:t"]));r&&"string"==typeof r&&(e+=r)}o?e+="</p></li>":e+="</p>"}for(;i.length>0;)e+=`</${i.pop()}>`}return e}(await X(t,d)),x=await ef(t,f,l),M=ey(x),S=f.replace("slideLayouts/slideLayout","slideLayouts/_rels/slideLayout")+".rels",w=await ef(t,S,l);if(w&&(p=w.Relationships.Relationship))for(let t of(p.constructor!==Array&&(p=[p]),p)){let e=er(t.attrs.Type),r=t.attrs.Target;r=0===(r=r.replace(/\\/g,"/")).indexOf("/ppt/")?r.substr(1):-1!==r.indexOf("../")?r.replace("../","ppt/"):"ppt/slideLayouts/"+r,"slideMaster"===e?m=r:y[t.attrs.Id]={type:e,target:r}}let O=await ef(t,m,l),N=E(O,["p:sldMaster","p:txStyles"]),L=ey(O),_=m.replace("slideMasters/slideMaster","slideMasters/_rels/slideMaster")+".rels",T=await ef(t,_,l);if(T&&(p=T.Relationships.Relationship))for(let t of(p.constructor!==Array&&(p=[p]),p)){let e=er(t.attrs.Type),r=t.attrs.Target;r=0===(r=r.replace(/\\/g,"/")).indexOf("/ppt/")?r.substr(1):-1!==r.indexOf("../")?r.replace("../","ppt/"):"ppt/slideMasters/"+r,"theme"===e?g=r:v[t.attrs.Id]={type:e,target:r}}let P=r;if(g){P=await ef(t,g,l)||P;let e=g.split("/").pop(),r=g.replace(e,"_rels/"+e)+".rels",n=await X(t,r);if(n&&(p=n.Relationships.Relationship))for(let t of(p.constructor!==Array&&(p=[p]),p)){let e=t.attrs.Target;e=0===(e=e.replace(/\\/g,"/")).indexOf("/ppt/")?e.substr(1):e.replace("../","ppt/"),R[t.attrs.Id]={type:er(t.attrs.Type),target:e}}}let I=await ef(t,"ppt/tableStyles.xml",l),C=await X(t,e);if(!C)return null;let k=C["p:sld"]["p:cSld"]["p:spTree"],F={zip:t,loadedImages:i,loadedVideos:a,loadedAudios:o,options:s,slideLayoutContent:x,slideLayoutTables:M,slideMasterContent:O,slideMasterTables:L,slideContent:C,tableStyles:I,slideResObj:A,slideMasterTextStyles:N,layoutResObj:y,masterResObj:v,themeContent:P,themeResObj:R,diagramFileCache:{},defaultTextStyle:n},U=await eA(F),W=await tu(F),V=[];for(let t in k)for(let e of(k[t].constructor!==Array&&(k[t]=[k[t]]),k[t])){let r=await ev(t,e,F,"slide");r&&V.push(r)}let Y=t5(C,"p:sld");Y||(Y=t5(x,"p:sldLayout")),Y||(Y=t5(O,"p:sldMaster"));let D=function(t){if(!t)return null;let e={type:"none",duration:1e3,direction:null},r=t.attrs||{},n=!1,i=/^p\d{2}:dur$/;for(let t in r)if(i.test(t)&&!isNaN(parseInt(r[t],10))){e.duration=parseInt(r[t],10),n=!0;break}if(!n&&r.spd)switch(r.spd){case"slow":default:e.duration=1e3;break;case"med":e.duration=800;break;case"fast":e.duration=500}"0"===r.advClick&&r.advTm&&(e.autoNextAfter=parseInt(r.advTm,10));let a=/^(p|p\d{2}):/;for(let r in t)if("attrs"!==r&&a.test(r)){let i=t[r];if(e.type=r.substring(r.indexOf(":")+1),i&&i.attrs){let t=i.attrs;!t.dur||isNaN(parseInt(t.dur,10))||n||(e.duration=parseInt(t.dur,10)),t.dir&&(e.direction=t.dir)}break}return e}(Y),{animations:Q,builds:Z}=(c=C?E(C,["p:sld","p:timing"])||E(C,["p:sld","mc:AlternateContent","mc:Choice","p:timing"])||E(C,["p:sld","mc:AlternateContent","mc:Fallback","p:timing"]):null)?{animations:function t(e,r="onClick",n=0,i=[]){if(!e||"object"!=typeof e)return i;let a=e.attrs||{},o=t6[a.nodeType]||r,s=function(t,e=0){let r=t9(t?.attrs?.delay);if(null!=r&&r>=0)return r;let n=t?.["p:stCondLst"];for(let t of t8(n?.["p:cond"]||n)){let e=t9(t?.attrs?.delay);if(null!=e&&e>=0)return e}return e}(e,n);if(a.presetClass&&t4.has(a.presetClass)){let t,r,n,l,c=[...new Set(function t(e,r=[]){if(!e||"object"!=typeof e)return r;let n=e.attrs?.spid;for(let i of(null!=n&&""!==n&&r.push(String(n)),Object.keys(e)))if("attrs"!==i&&"value"!==i)for(let n of t8(e[i]))t(n,r);return r}(e))],u=(t=null,(r=e=>{if(!e||"object"!=typeof e)return;let n=t9(e.attrs?.dur);for(let i of(null!=n&&n>=0&&(t=n),Object.keys(e)))if("attrs"!==i&&"value"!==i)for(let t of t8(e[i]))r(t)})(e),t),h=(n="",(l=t=>{if(t&&"object"==typeof t){for(let e of(t.attrs?.filter&&(n=t.attrs.filter),Object.keys(t)))if("attrs"!==e&&"value"!==e)for(let r of t8(t[e]))l(r)}})(e),n),p=t6[a.nodeType]||o;for(let t of c){let e={spid:t,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&&(e.filter=h),i.push(e)}return i}for(let r of Object.keys(e))if("attrs"!==r&&"value"!==r)for(let n of t8(e[r]))t(n,o,s,i);return i}(c),builds:function(t){let e=t?.["p:bldLst"];if(!e)return[];let r=[];for(let[t,n]of[["p:bldP","paragraph"],["p:bldDgm","diagram"],["p:bldGraphic","graphic"],["p:bldOleChart","oleChart"]])for(let i of t8(e[t])){let t=i?.attrs?.spid;if(null==t||""===t)continue;let e={spid:String(t),type:n};(i.attrs?.animBg==="1"||i.attrs?.animBg==="true")&&(e.animBg=!0),r.push(e)}return r}(c)}:{animations:[],builds:[]},B=E(C,["p:sld","attrs","showMasterSp"]);return{fill:W,elements:V,layoutElements:U,note:b,transition:D,hideBackground:"0"===B||"false"===B,animations:Q,builds:Z}}function eg(t,e){let r=E(t,["a:hlinkClick","attrs"]);if(!r)return null;let n=r["r:id"];if(!n)return null;let i=e.slideResObj[n];if(!i||"hyperlink"!==i.type)return null;let a=i.target;return a&&/^https?:\/\//.test(a)?a:null}async function eA(t){let e=[],r=t.slideLayoutContent,n=t.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 ev(r,i[r][n],t,"slideLayoutBg");a&&e.push(a)}}else if(!E(i[r],["p:nvSpPr","p:nvPr","p:ph"])){let n=await ev(r,i[r],t,"slideLayoutBg");n&&e.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 ev(r,a[r][n],t,"slideMasterBg");i&&e.push(i)}}else if(!E(a[r],["p:nvSpPr","p:nvPr","p:ph"])){let n=await ev(r,a[r],t,"slideMasterBg");n&&e.push(n)}}return e}function ey(t){if(!t)return{idTable:{},idxTable:{},typeTable:{}};let e=Object.keys(t),r=t[e[0]]?.["p:cSld"]?.["p:spTree"];if(!r)return{idTable:{},idxTable:{},typeTable:{}};let n={},i={},a={};for(let t in r){if("p:nvGrpSpPr"===t||"p:grpSpPr"===t)continue;let e=r[t];if(e.constructor===Array)for(let t of e){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)}else{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)}}return{idTable:n,idxTable:i,typeTable:a}}async function ev(t,e,r,n,i=[]){let a;switch(t){case"p:sp":a=await ex(e,r,n,i);break;case"p:cxnSp":a=await eM(e,r,n);break;case"p:pic":a=await ew(e,r,n);break;case"p:graphicFrame":a=await eO(e,r,n);break;case"p:grpSp":a=await eb(e,r,n,i);break;case"mc:AlternateContent":E(e,["mc:Fallback","p:grpSpPr","a:xfrm"])?a=await eb(E(e,["mc:Fallback"]),r,n,i):E(e,["mc:Choice"])&&(a=await eR(e,r,n))}if(a&&"object"==typeof a&&!a.id){let t=E(e,["p:nvSpPr","p:cNvPr","attrs","id"])||E(e,["p:nvPicPr","p:cNvPr","attrs","id"])||E(e,["p:nvCxnSpPr","p:cNvPr","attrs","id"])||E(e,["p:nvGrpSpPr","p:cNvPr","attrs","id"])||E(e,["p:nvGraphicFramePr","p:cNvPr","attrs","id"])||E(e,["mc:Choice","p:sp","p:nvSpPr","p:cNvPr","attrs","id"])||E(e,["mc:Fallback","p:sp","p:nvSpPr","p:cNvPr","attrs","id"])||E(e,["mc:Fallback","p:nvGrpSpPr","p:cNvPr","attrs","id"]);a.id=t||""}return a}async function eR(t,e,r){let n=E(t,["mc:Choice"]),i=E(t,["mc:Fallback"]),a=t.attrs.order,o=E(n,["p:sp","p:spPr","a:xfrm"]),{top:s,left:l}=tT(o,void 0,void 0),{width:c,height:u}=tP(o,void 0,void 0),h=function t(e){let r=[];return"object"!=typeof e||(e["m:oMath"]&&(r=r.concat(e["m:oMath"])),Object.values(e).forEach(e=>{(Array.isArray(e)||"object"==typeof e)&&(r=r.concat(t(e)))})),r}(n)[0];if(!h)return null;let p=tI(h),d=E(i,["p:sp","p:spPr","a:blipFill"]),f=await ti(r,d,e),m="";if(E(n,["p:sp","p:txBody","a:p","a:r"])){let t=E(n,["p:sp"]);m=tG(t["p:txBody"],t,void 0,void 0,void 0,e)}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 eb(t,e,r,n=[]){let i=t.attrs.order,a=E(t,["p:grpSpPr","a:xfrm"]);if(!a)return null;let o=parseInt(a["a:off"].attrs.x)*tR,s=parseInt(a["a:off"].attrs.y)*tR,l=parseInt(a["a:chOff"].attrs.x)*tR,c=parseInt(a["a:chOff"].attrs.y)*tR,u=parseInt(a["a:ext"].attrs.cx)*tR,h=parseInt(a["a:ext"].attrs.cy)*tR,p=parseInt(a["a:chExt"].attrs.cx)*tR,d=parseInt(a["a:chExt"].attrs.cy)*tR,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,t],R=[];for(let n in t)if(t[n].constructor===Array)for(let i of t[n]){let t=await ev(n,i,e,r,v);t&&R.push(t)}else{let i=await ev(n,t[n],e,r,v);i&&R.push(i)}let b=(t,e=0,r=0)=>{let n=((t.rotate||0)%360+360)%360,i=1e-6>Math.abs(A-y),a=90===n||270===n,o=t.left+t.width/2,s=t.top+t.height/2,l=t.width*(a&&!i?y:A),c=t.height*(a&&!i?A:y);return{...t,left:Z((o-e)*A-l/2),top:Z((s-r)*y-c/2),width:Z(l),height:Z(c)}},x=R.map(t=>({...b(t,l,c),..."group"===t.type&&t.elements?{elements:function t(e,r=0){return r>10?e:e.map(e=>{let n=b(e);return"group"===e.type&&e.elements&&(n.elements=t(e.elements,r+1)),n})}(t.elements)}:{}}));return{type:"group",top:Z(s),left:Z(o),width:Z(u),height:Z(h),rotate:g,order:i,isFlipV:f,isFlipH:m,elements:x}}async function ex(t,e,r,n=[]){let i,a,o=E(t,["p:nvSpPr","p:cNvPr"]),s=E(o,["attrs","name"]),l=E(t,["p:nvSpPr","p:nvPr","p:ph","attrs","idx"]),c=E(t,["p:nvSpPr","p:nvPr","p:ph","attrs","type"]),u=E(t,["attrs","order"]);c?l?(i=e.slideLayoutTables.idxTable[l],a=e.slideMasterTables.idxTable[l],i||(i=e.slideLayoutTables.typeTable[c]),a||(a=e.slideMasterTables.typeTable[c])):(i=e.slideLayoutTables.typeTable[c],a=e.slideMasterTables.typeTable[c]):l&&(i=e.slideLayoutTables.idxTable[l],a=e.slideMasterTables.idxTable[l]),!c&&U(E(t,["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=e.slideMasterTables.typeTable.title),c||(c="diagramBg"===r?"diagram":"obj");let h=eg(o,e);return await eS(t,i,a,s,c,u,e,r,h,n)}async function eM(t,e,r){let n=E(t,["p:nvCxnSpPr","p:cNvPr"]),i=E(n,["attrs","name"]),a=void 0===t["p:nvCxnSpPr"]["p:nvPr"]["p:ph"]?void 0:t["p:nvCxnSpPr"]["p:nvPr"]["p:ph"].attrs.type,o=t.attrs.order,s=eg(n,e);return await eS(t,void 0,void 0,i,a,o,e,r,s)}async function eS(t,e,r,n,i,a,o,s,l,c=[]){let u,h,p,d=["p:spPr","a:xfrm"],f=E(t,d),m=E(e,d),g=E(r,d),A=E(t,["p:spPr","a:prstGeom","attrs","prst"]),y=E(t,["p:spPr","a:custGeom"]),v={};if(A){let e=E(t,["p:spPr","a:prstGeom","a:avLst","a:gd"]);if(e)for(let t of Array.isArray(e)?e:[e]){let e=E(t,["attrs","name"]),r=E(t,["attrs","fmla"]);e&&r&&r.startsWith("val ")&&(v[e]=parseInt(r.substring(4))/5e4)}}let{top:R,left:b}=tT(f,m,g),{width:x,height:M}=tP(f,m,g),S={x:0,y:0,width:x,height:M},w=U(E(f,["attrs","flipV"])),O=U(E(f,["attrs","flipH"])),N=Y(E(f,["attrs","rot"])),L=E(t,["p:txXfrm"]);if(L){let t=E(L,["attrs","rot"]);t&&(u=Y(t)+90)}else u=N;let _="";t["p:txBody"]&&(_=tG(t["p:txBody"],t,e,r,i,o));let{borderColor:T,borderWidth:P,borderType:I,strokeDasharray:C,headEnd:k,tailEnd:F}=tg(t,i,o),X=await tp(t,o,s,{groupHierarchy:c,slideLayoutSpNode:e,slideMasterSpNode:r}),W=E(t,["p:spPr","a:effectLst","a:outerShdw"]);W&&(h=tF(W,o));let V=((p=E(t,["p:txBody","a:bodyPr","attrs","anchor"]))||!(p=E(e,["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(t,e,r){for(let n of[t,e,r]){let t=E(n,["p:txBody","a:bodyPr","attrs","vert"]);if(t)return t}return"horz"}(t,e,r),Q="none"!==E(t,["p:txBody","a:bodyPr","attrs","wrap"]),Z=function(t,e,r){function n(t){if(!t)return null;if(t["a:noAutofit"])return{result:null};if(t["a:spAutoFit"])return{result:{type:"shape",wrapText:"none"!==E(t,["attrs","wrap"])}};if(t["a:normAutofit"]){let e=E(t["a:normAutofit"],["attrs","fontScale"]);return e?{result:{type:"text",fontScale:parseInt(e)/1e3}}:{result:{type:"text"}}}return null}let i=n(E(t,["p:txBody","a:bodyPr"]));if(i)return i.result;let a=n(E(e,["p:txBody","a:bodyPr"]));if(a)return a.result;let o=n(E(r,["p:txBody","a:bodyPr"]));return o?o.result:null}(t,e,r),B=function(t,e,r){let n=E(t,["p:txBody","a:bodyPr"]),i=E(e,["p:txBody","a:bodyPr"]),a=E(r,["p:txBody","a:bodyPr"]);if(!n&&!i&&!a)return null;let o=tL(t,e,r,"lIns");(null==o||""===o)&&(o=91440);let s=tL(t,e,r,"tIns");(null==s||""===s)&&(s=45720);let l=tL(t,e,r,"rIns");(null==l||""===l)&&(l=91440);let c=tL(t,e,r,"bIns");(null==c||""===c)&&(c=45720);let u=t_(o);null===u&&(u=0);let h=t_(s);null===h&&(h=0);let p=t_(l);null===p&&(p=0);let d=t_(c);return null===d&&(d=0),{l:u,t:h,r:p,b:d}}(t,e,r),K={left:b,top:R,width:x,height:M,borderColor:T,borderWidth:P,borderType:I,borderStrokeDasharray:C,fill:X,content:_,isFlipV:w,isFlipH:O,rotate:N,vAlign:V,wrap:Q,name:n,order:a};h&&(K.shadow=h),Z&&(K.autoFit=Z),l&&(K.link=l),B&&(K.textInset=B),k&&(K.headEnd=k),F&&(K.tailEnd=F);let $=K.content&&function(t){if("u"<typeof DOMParser)return""!==t.replace(/<[^>]+>/g,"").replace(/\s+/g," ").trim();let e=new DOMParser().parseFromString(t,"text/html");return""!==(e.body.textContent||e.body.innerText).trim()}(K.content);if(y&&"diagram"!==i){let t=tz(y,x,M);$||(K.content="");let e={...K,type:"shape",isVertical:D,shapType:"custom",path:t,pathViewBox:S};return function(t){let e=E(t,["a:pathLst","a:path"]);if(!e)return!1;let r=Array.isArray(e)?e:[e];return 1===r.length&&"none"===E(r[0],["attrs","fill"])}(y)&&(e.strokeOnly=!0),e}let G="";A&&(G=t3(A,x,M,t));let H=["arc","leftBrace","rightBrace","bracePair","leftBracket","rightBracket","bracketPair"].includes(A);if(A&&("obj"===i||!i||"rect"!==A)){$||(K.content="");let t={...K,type:"shape",isVertical:D,shapType:A,path:G,pathViewBox:S,keypoints:v};return H&&(t.strokeOnly=!0),t}if(A&&!$&&(X||P)){let t={...K,type:"shape",isVertical:D,content:"",shapType:A,path:G,pathViewBox:S,keypoints:v};return H&&(t.strokeOnly=!0),t}return{...K,type:"text",isVertical:D,rotate:u}}async function ew(t,e,r){let n,i,a,o,s,l;n="slideMasterBg"===r?e.masterResObj:"slideLayoutBg"===r?e.layoutResObj:e.slideResObj;let c=eg(E(t,["p:nvPicPr","p:cNvPr"]),e),u=t.attrs.order,h=t["p:blipFill"]["a:blip"].attrs["r:embed"];if(!h||!n[h])return null;let p=n[h].target,d=t["p:spPr"]["a:xfrm"];if(!d){let r=E(t,["p:nvPicPr","p:nvPr","p:ph","attrs","idx"]);r&&(d=E(e.slideLayoutTables,["idxTable",r,"p:spPr","a:xfrm"]))}let{top:f,left:m}=tT(d,void 0,void 0),{width:g,height:A}=tP(d,void 0,void 0),y=await te(p,e),v=U(E(d,["attrs","flipV"])),R=U(E(d,["attrs","flipH"])),b=0,x=E(t,["p:spPr","a:xfrm","attrs","rot"]);x&&(b=Y(x));let M=E(t,["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 tr(i,e):{ref:i,blob:""},w&&(S={ref:i,blob:""})}let N=E(t,["p:nvPicPr","p:nvPr","a:audioFile"]),L={ref:"",blob:""};if(N&&(L="mp3"===(s=W(o=n[N.attrs["r:link"]].target).toLowerCase())||"wav"===s||"ogg"===s?await tn(o,e):{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(N)return{type:"audio",top:f,left:m,width:g,height:A,rotate:b,ref:L.ref,blob:L.blob,order:u};let _=E(t,["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(t,["p:spPr","a:prstGeom","attrs","prst"]),P=E(t,["p:spPr","a:custGeom"]),{borderColor:I,borderWidth:C,borderType:k,strokeDasharray:F}=tg(t,void 0,e),X=function(t){if(!t)return null;let e=t["a:blip"];if(!e)return null;let r={},n=e["a:extLst"];if(n&&n["a:ext"])for(let t of Array.isArray(n["a:ext"])?n["a:ext"]:[n["a:ext"]]){if(!t["a14:imgProps"]||!t["a14:imgProps"]["a14:imgLayer"])continue;let e=t["a14:imgProps"]["a14:imgLayer"]["a14:imgEffect"];if(e)for(let t of Array.isArray(e)?e:[e]){if(t["a14:saturation"]){let e=E(t,["a14:saturation","attrs","sat"]);e&&(r.saturation=parseInt(e)/1e5)}if(t["a14:brightnessContrast"]){let e=E(t,["a14:brightnessContrast","attrs","bright"]),n=E(t,["a14:brightnessContrast","attrs","contrast"]);e&&(r.brightness=parseInt(e)/1e5),n&&(r.contrast=parseInt(n)/1e5)}if(t["a14:sharpenSoften"]){let e=E(t,["a14:sharpenSoften","attrs","amount"]);if(e){let t=parseInt(e)/1e5;t>0?r.sharpen=t:r.soften=Math.abs(t)}}if(t["a14:colorTemperature"]){let e=E(t,["a14:colorTemperature","attrs","colorTemp"]);e&&(r.colorTemperature=parseInt(e))}}}return Object.keys(r).length>0?r:null}(t["p:blipFill"]),V=ta(t["p:blipFill"]);if(T||P){let e,r;if(P){let t=function(t){var e,r,n;let i,a=t["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(t){let e=[];if(t["a:moveTo"]){let r=t["a:moveTo"]["a:pt"];r&&e.push({type:"moveTo",points:[{x:parseInt(r.attrs?.x)||0,y:parseInt(r.attrs?.y)||0}]})}return tJ(t["a:lnTo"]).forEach(t=>{let r=t["a:pt"];r&&e.push({type:"lineTo",points:[{x:parseInt(r.attrs?.x)||0,y:parseInt(r.attrs?.y)||0}]})}),tJ(t["a:cubicBezTo"]).forEach(t=>{let r=tJ(t["a:pt"]).map(t=>({x:parseInt(t.attrs?.x)||0,y:parseInt(t.attrs?.y)||0}));3===r.length&&e.push({type:"cubicBezTo",points:r})}),tJ(t["a:arcTo"]).forEach(t=>{e.push({type:"arcTo",wR:parseInt(t.attrs?.wR)||0,hR:parseInt(t.attrs?.hR)||0,stAng:parseInt(t.attrs?.stAng)||0,swAng:parseInt(t.attrs?.swAng)||0})}),tJ(t["a:quadBezTo"]).forEach(t=>{let r=tJ(t["a:pt"]).map(t=>({x:parseInt(t.attrs?.x)||0,y:parseInt(t.attrs?.y)||0}));e.push({type:"quadBezTo",points:r})}),t["a:close"]&&e.push({type:"close"}),e}(o);return 0===c.length?"custom":function(t){let{lineCount:e,curveCount:r,isClosed:n,vertices:i,hasCurves:a,isCircular:o,pathWidth:s,pathHeight:l}=t;if(o||t.arcCount>=2&&n&&0===e)return"ellipse";if(!a&&n&&i.length>=3){let t;var c=i;let e=(t=[],c.forEach(e=>{t.some(t=>100>Math.abs(t.x-e.x)&&100>Math.abs(t.y-e.y))||t.push(e)}),t),r=e.length;switch(r){case 3:return"triangle";case 4:return function(t){var e,r,n;let i,a,o,s,l,c,u,h,p,d,f,m;if(4!==t.length)return"custom";let g=[];for(let e=0;e<4;e++){let r=t[e],n=t[(e+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(t){let e=Math.abs(t[0].length-t[2].length)/Math.max(t[0].length,t[2].length)<.1,r=Math.abs(t[1].length-t[3].length)/Math.max(t[1].length,t[3].length)<.1;if(!e||!r)return!1;for(let e=0;e<4;e++){let r=t[e],n=t[(e+1)%4];if(Math.abs((r.dx*n.dx+r.dy*n.dy)/(r.length*n.length))>.1)return!1}return!0}(g)?(i=(e=g).reduce((t,e)=>t+e.length,0)/4,e.every(t=>Math.abs(t.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"}(e);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===e&&4===r&&n)return"roundRect";if(e>=3&&r>0&&r<=e&&n){let t=function(t){switch(t){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"}}(e);if("custom"!==t)return"rectangle"===t?"roundRect":t}return"custom"}((e=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:e},e.forEach(t=>{switch(t.type){case"moveTo":i.vertices.push(t.points[0]);break;case"lineTo":i.lineCount++,i.vertices.push(t.points[0]);break;case"cubicBezTo":i.curveCount++,i.hasCurves=!0,3===t.points.length&&i.vertices.push(t.points[2]);break;case"quadBezTo":i.curveCount++,i.hasCurves=!0,t.points.length>=2&&i.vertices.push(t.points[t.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(t,e,r){let n=t.filter(t=>"cubicBezTo"===t.type);if(4!==n.length)return!1;let i=n.map(t=>t.points[2]),a=i.some(t=>Math.abs(t.y)<.1*r),o=i.some(t=>Math.abs(t.y-r)<.1*r),s=i.some(t=>Math.abs(t.x)<.1*e),l=i.some(t=>Math.abs(t.x-e)<.1*e);return(a||o)&&(s||l)}(e,r,n)),i))}(P);e="custom"!==t?`custom:${t}`:"custom",r=tz(P,g,A)}else e=T,r=t3(T,g,A,t)||"";let n={type:"shape",shapType:e,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:I,borderWidth:C,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:I,borderWidth:C,borderType:k,borderStrokeDasharray:F,opacity:V};return X&&(Q.filters=X),c&&(Q.link=c),Q}async function eO(t,e,r){let n;switch(E(t,["a:graphic","a:graphicData","attrs","uri"])){case"http://schemas.openxmlformats.org/drawingml/2006/table":n=await eN(t,e);break;case"http://schemas.openxmlformats.org/drawingml/2006/chart":n=await eL(t,e);break;case"http://schemas.openxmlformats.org/drawingml/2006/diagram":n=await e_(t,e);break;case"http://schemas.openxmlformats.org/presentationml/2006/ole":let i=E(t,["a:graphic","a:graphicData","mc:AlternateContent","mc:Fallback","p:oleObj"]);i||(i=E(t,["a:graphic","a:graphicData","p:oleObj"])),i&&(n=await eb(i,e,r))}return n}async function eN(t,e){let r,n,i=t.attrs.order,a=E(t,["a:graphic","a:graphicData","a:tbl"]),o=E(t,["p:xfrm"]),{top:s,left:l}=tT(o,void 0,void 0),{width:c,height:u}=tP(o,void 0,void 0),h=E(t,["a:graphic","a:graphicData","a:tbl","a:tblPr"]),p=E(t,["a:graphic","a:graphicData","a:tbl","a:tblGrid","a:gridCol"]);p.constructor!==Array&&(p=[p]);let d=[];if(p)for(let t of p){let e=parseInt(E(t,["attrs","w"])||0)*tR;d.push(e)}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 t=e.tableStyles["a:tblStyleLst"]["a:tblStyle"];if(t)if(t.constructor===Array)for(let e=0;e<t.length;e++)t[e].attrs.styleId===b&&(r=t[e]);else t.attrs.styleId===b&&(r=t)}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=tg({"p:spPr":{"a:ln":S["a:bottom"]["a:ln"]}},void 0,e)),S["a:top"]&&(n.top=tg({"p:spPr":{"a:ln":S["a:top"]["a:ln"]}},void 0,e)),S["a:right"]&&(n.right=tg({"p:spPr":{"a:ln":S["a:right"]["a:ln"]}},void 0,e)),S["a:left"]&&(n.left=tg({"p:spPr":{"a:ln":S["a:left"]["a:ln"]}},void 0,e)),x=n);let w="",O=E(r,["a:tblBg","a:fillRef"]);O&&(w=tf(O,void 0,void 0,e)),void 0===O&&(w=tf(O=E(r,["a:wholeTbl","a:tcStyle","a:fill","a:solidFill"]),void 0,void 0,e));let N=a["a:tr"];N.constructor!==Array&&(N=[N]);let L=[],_=[];for(let t=0;t<N.length;t++){let n=N[t],i=parseInt(E(N[t],["attrs","h"])||0)*tR;_.push(i);let{fillColor:a,fontColor:o,fontBold:s}=function(t,e,r,n,i){let a,o,s;if(n&&n["a:wholeTbl"]){let t=E(n,["a:wholeTbl","a:tcStyle","a:fill","a:solidFill"]);if(t){let e=tf(t,void 0,void 0,i);e&&(a=e)}let e=E(n,["a:wholeTbl","a:tcTxStyle"]);if(e){let t=t0(e,i);t&&(o=t),"on"===E(e,["attrs","b"])&&(s=!0)}}if(0===e&&1===r.isFrstRowAttr&&n){let t=E(n,["a:firstRow","a:tcStyle","a:fill","a:solidFill"]);if(t){let e=tf(t,void 0,void 0,i);e&&(a=e)}let e=E(n,["a:firstRow","a:tcTxStyle"]);if(e){let t=t0(e,i);t&&(o=t),"on"===E(e,["attrs","b"])&&(s=!0)}}else if(e>0&&1===r.isBandRowAttr&&n){if(a="",e%2==0&&n["a:band2H"]){let t=E(n,["a:band2H","a:tcStyle","a:fill","a:solidFill"]);if(t){let e=tf(t,void 0,void 0,i);e&&(a=e)}let e=E(n,["a:band2H","a:tcTxStyle"]);if(e){let t=t0(e,i);t&&(o=t)}"on"===E(e,["attrs","b"])&&(s=!0)}if(e%2!=0&&n["a:band1H"]){let t=E(n,["a:band1H","a:tcStyle","a:fill","a:solidFill"]);if(t){let e=tf(t,void 0,void 0,i);e&&(a=e)}let e=E(n,["a:band1H","a:tcTxStyle"]);if(e){let t=t0(e,i);t&&(o=t),"on"===E(e,["attrs","b"])&&(s=!0)}}}if(e===t.length-1&&1===r.isLstRowAttr&&n){let t=E(n,["a:lastRow","a:tcStyle","a:fill","a:solidFill"]);if(t){let e=tf(t,void 0,void 0,i);e&&(a=e)}let e=E(n,["a:lastRow","a:tcTxStyle"]);if(e){let t=t0(e,i);t&&(o=t),"on"===E(e,["attrs","b"])&&(s=!0)}}return{fillColor:a,fontColor:o,fontBold:s}}(N,t,R,r,e),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&&t===N.length-1&&E(r,["a:seCell"])?i="a:seCell":1===R.isFrstRowAttr&&0===t&&E(r,["a:neCell"])&&(i="a:neCell");else if(n>0&&1===R.isBandColAttr&&(1!==R.isFrstColAttr||0!==t)&&(1!==R.isLstRowAttr||t!==N.length-1)&&n!==l.length-1&&n%2!=0){let t=E(r,["a:band2V"]);void 0===t?(t=E(r,["a:band1V"]))&&(i="a:band2V"):i="a:band2V"}n===l.length-1&&1===R.isLstColAttr&&(i="a:lastCol",1===R.isLstRowAttr&&t===N.length-1&&E(r,["a:swCell"])?i="a:swCell":1===R.isFrstRowAttr&&0===t&&E(r,["a:nwCell"])&&(i="a:nwCell"));let h=tG(u["a:txBody"],u,void 0,void 0,void 0,e),p=await t1(u,r,i,e),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 t;if(1===R.isFrstColAttr&&1!==R.isLstRowAttr)t="a:firstCol";else if(1===R.isBandColAttr&&1!==R.isLstRowAttr){let e=E(r,["a:band2V"]);e?t="a:band2V":(e=E(r,["a:band1V"]))&&(t="a:band2V")}1===R.isLstColAttr&&1!==R.isLstRowAttr&&(t="a:lastCol");let n=tG(l["a:txBody"],l,void 0,void 0,void 0,e),i=await t1(l,r,t,e),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)}L.push(c)}let T=d.reduce((t,e)=>t+e,0);return T&&(T=Z(T)),{type:"table",top:s,left:l,width:T||c,height:u,data:L,order:i,borders:x,rowHeights:_,colWidths:d}}async function eL(t,e){let r=t.attrs.order,n=E(t,["p:xfrm"]),{top:i,left:a}=tT(n,void 0,void 0),{width:o,height:s}=tP(n,void 0,void 0),l=t["a:graphic"]["a:graphicData"]["c:chart"].attrs["r:id"],c=E(e.slideResObj,[l,"target"]);if(c||(c=E(e.layoutResObj,[l,"target"])),c||(c=E(e.masterResObj,[l,"target"])),!c)return null;let u=function(t,e){let r=null;for(let n in t)if(t[n]["c:ser"])switch(n){case"c:lineChart":r={type:"lineChart",data:ty(t[n]["c:ser"]),colors:tA(t[n]["c:ser"],e),grouping:E(t[n],["c:grouping","attrs","val"]),marker:!!t[n]["c:marker"]};break;case"c:line3DChart":r={type:"line3DChart",data:ty(t[n]["c:ser"]),colors:tA(t[n]["c:ser"],e),grouping:E(t[n],["c:grouping","attrs","val"])};break;case"c:barChart":r={type:"barChart",data:ty(t[n]["c:ser"]),colors:tA(t[n]["c:ser"],e),grouping:E(t[n],["c:grouping","attrs","val"]),barDir:E(t[n],["c:barDir","attrs","val"])};break;case"c:bar3DChart":r={type:"bar3DChart",data:ty(t[n]["c:ser"]),colors:tA(t[n]["c:ser"],e),grouping:E(t[n],["c:grouping","attrs","val"]),barDir:E(t[n],["c:barDir","attrs","val"])};break;case"c:pieChart":r={type:"pieChart",data:ty(t[n]["c:ser"]),colors:tA(t[n]["c:ser"]["c:dPt"],e)};break;case"c:pie3DChart":r={type:"pie3DChart",data:ty(t[n]["c:ser"]),colors:tA(t[n]["c:ser"]["c:dPt"],e)};break;case"c:doughnutChart":r={type:"doughnutChart",data:ty(t[n]["c:ser"]),colors:tA(t[n]["c:ser"]["c:dPt"],e),holeSize:E(t[n],["c:holeSize","attrs","val"])};break;case"c:areaChart":r={type:"areaChart",data:ty(t[n]["c:ser"]),colors:tA(t[n]["c:ser"],e),grouping:E(t[n],["c:grouping","attrs","val"])};break;case"c:area3DChart":r={type:"area3DChart",data:ty(t[n]["c:ser"]),colors:tA(t[n]["c:ser"],e),grouping:E(t[n],["c:grouping","attrs","val"])};break;case"c:scatterChart":r={type:"scatterChart",data:tv(t[n]["c:ser"]),colors:tA(t[n]["c:ser"],e),style:E(t[n],["c:scatterStyle","attrs","val"])};break;case"c:bubbleChart":r={type:"bubbleChart",data:tv(t[n]["c:ser"]),colors:tA(t[n]["c:ser"],e)};break;case"c:radarChart":r={type:"radarChart",data:ty(t[n]["c:ser"]),colors:tA(t[n]["c:ser"],e),style:E(t[n],["c:radarStyle","attrs","val"])};break;case"c:surfaceChart":r={type:"surfaceChart",data:ty(t[n]["c:ser"]),colors:tA(t[n]["c:ser"],e)};break;case"c:surface3DChart":r={type:"surface3DChart",data:ty(t[n]["c:ser"]),colors:tA(t[n]["c:ser"],e)};break;case"c:stockChart":r={type:"stockChart",data:ty(t[n]["c:ser"]),colors:[]}}return r}(E(await X(e.zip,c),["c:chartSpace","c:chart","c:plotArea"]),e);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 e_(t,e){let r=t.attrs.order,n=E(t,["p:xfrm"]),{left:i,top:a}=tT(n,void 0,void 0),{width:o,height:s}=tP(n,void 0,void 0),l=await et(t,e),c=E(l.digramFileContent,["p:drawing","p:spTree","p:sp"]),u=[],h=[];if(c)for(let t of Array.isArray(c)?c:[c]){let e=await ex(t,l,"diagramBg");e&&u.push(e)}return l.diagramContent&&l.diagramContent.data&&(h=function(t){let e=[],r=E(t,["dgm:dataModel","dgm:ptLst","dgm:pt"]);if(!r)return e;for(let t of(Array.isArray(r)||(r=[r]),r)){let r=E(t,["dgm:t"]);if(r){let t="",n=E(r,["a:p"]);n&&(Array.isArray(n)||(n=[n]),n.forEach(e=>{let r=E(e,["a:r"]);r&&(Array.isArray(r)||(r=[r]),r.forEach(e=>{let r=t$(E(e,["a:t"]));r&&"string"==typeof r&&(t+=r)})),t.length>0&&(t+="\n")}));let i=t.trim();i&&e.push(i)}}return e}(l.diagramContent.data)),{type:"diagram",left:i,top:a,width:o,height:s,elements:u,textList:h,order:r}}},46762(t,e,r){var n=r(38262),i=r(96294),a=r(42845);let o=(t,e)=>!t.selection.empty&&(e&&e(t.tr.deleteSelection().scrollIntoView()),!0);function s(t,e,r=!1){for(let n=t;n;n="start"==e?n.firstChild:n.lastChild){if(n.isTextblock)return!0;if(r&&1!=n.childCount)break}return!1}function l(t){if(!t.parent.type.spec.isolating)for(let e=t.depth-1;e>=0;e--){if(t.index(e)>0)return t.doc.resolve(t.before(e+1));if(t.node(e).type.spec.isolating)break}return null}function c(t){if(!t.parent.type.spec.isolating)for(let e=t.depth-1;e>=0;e--){let r=t.node(e);if(t.index(e)+1<r.childCount)return t.doc.resolve(t.after(e+1));if(r.type.spec.isolating)break}return null}let u=(t,e)=>{let{$head:r,$anchor:n}=t.selection;return!!r.parent.type.spec.code&&!!r.sameParent(n)&&(e&&e(t.tr.insertText("\n").scrollIntoView()),!0)};function h(t){for(let e=0;e<t.edgeCount;e++){let{type:r}=t.edge(e);if(r.isTextblock&&!r.hasRequiredAttrs())return r}return null}let p=(t,e)=>{let r=t.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(e){let r=(!n.parentOffset&&i.index()<i.parent.childCount?n:i).pos,s=t.tr.insert(r,o.createAndFill());s.setSelection(a.U3.create(s.doc,r+1)),e(s.scrollIntoView())}return!0},d=(t,e)=>{let{$cursor:r}=t.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)(t.doc,i))return e&&e(t.tr.split(i).scrollIntoView()),!0}let i=r.blockRange(),a=i&&(0,n.jP)(i);return null!=a&&(e&&e(t.tr.lift(i,a).scrollIntoView()),!0)},f=(t,e)=>{if(t.selection instanceof a.nh&&t.selection.node.isBlock){let{$from:r}=t.selection;return!!r.parentOffset&&!!(0,n.zy)(t.doc,r.pos)&&(e&&e(t.tr.split(r.pos).scrollIntoView()),!0)}if(!t.selection.$from.depth)return!1;let r=t.tr;!t.selection.empty&&(t.selection instanceof a.U3||t.selection instanceof a.i5)&&r.deleteSelection();let{$from:i}=r.selection,o=r.steps.length,s=[],l,c,u=!1,p=!1;for(let t=i.depth;;t--){if(i.node(t).isBlock){let e;u=i.end(t)==i.pos+(i.depth-t),p=i.start(t)==i.pos-(i.depth-t),c=h(i.node(t-1).contentMatchAt(i.indexAfter(t-1)));s.unshift(e||(u&&c?{type:c}:null)),l=t;break}if(1==t)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 t=r.mapping.slice(o),e=t.map(i.before(l)),n=r.doc.resolve(e);c&&i.node(l-1).canReplaceWith(n.index(),n.index()+1,c)&&r.setNodeMarkup(t.map(i.before(l)),c)}return e&&e(r.scrollIntoView()),!0},m=(t,e)=>(e&&e(t.tr.setSelection(new a.i5(t.doc))),!0);function g(t,e,r,o){let l,c,u,h=e.nodeBefore,p=e.nodeAfter,d,f,m=h.type.spec.isolating||p.type.spec.isolating;if(!m&&(l=e.nodeBefore,c=e.nodeAfter,u=e.index(),l&&c&&l.type.compatibleContent(c.type)&&(!l.content.size&&e.parent.canReplace(u-1,u)?(r&&r(t.tr.delete(e.pos-l.nodeSize,e.pos).scrollIntoView()),!0):!!e.parent.canReplace(u,u+1)&&!!(c.isTextblock||(0,n.n9)(t.doc,e.pos))&&(r&&r(t.tr.join(e.pos).scrollIntoView()),!0))))return!0;let g=!m&&e.parent.canReplace(e.index(),e.index()+1);if(g&&(d=(f=h.contentMatchAt(h.childCount)).findWrapping(p.type))&&f.matchType(d[0]||p.type).validEnd){if(r){let a=e.pos+p.nodeSize,o=i.FK.empty;for(let t=d.length-1;t>=0;t--)o=i.FK.from(d[t].create(null,o));o=i.FK.from(h.copy(o));let s=t.tr.step(new n.Wg(e.pos-1,a,e.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(e,1),y=A&&A.$from.blockRange(A.$to),v=y&&(0,n.jP)(y);if(null!=v&&v>=e.depth)return r&&r(t.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 t=o.length-1;t>=0;t--)a=i.FK.from(o[t].copy(a));r(t.tr.step(new n.Wg(e.pos-o.length,e.pos+p.nodeSize,e.pos+l,e.pos+p.nodeSize-l,new i.Ji(a,o.length,0),0,!0)).scrollIntoView())}return!0}}return!1}function A(t){return function(e,r){let n=e.selection,i=t<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(e.tr.setSelection(a.U3.create(e.doc,t<0?i.start(o):i.end(o)))),!0)}}let y=A(-1),v=A(1);function R(t,e=null){return function(r,i){let{$from:a,$to:o}=r.selection,s=a.blockRange(o),l=s&&(0,n.oM)(s,t,e);return!!l&&(i&&i(r.tr.wrap(s,l).scrollIntoView()),!0)}}function b(t,e=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(t,e,r,n){for(let i=0;i<e.length;i++){let{$from:a,$to:o}=e[i],s=0==a.depth&&t.inlineContent&&t.type.allowsMarkType(r);if(t.nodesBetween(a.pos,o.pos,(t,e)=>{if(s||!n&&t.isAtom&&t.isInline&&e>=a.pos&&e+t.nodeSize<=o.pos)return!1;s=t.inlineContent&&t.type.allowsMarkType(r)}),s)return!0}return!1}(r.doc,u,t,i))return!1;if(s)if(c)s(t.isInSet(r.storedMarks||c.marks())?r.tr.removeStoredMark(t):r.tr.addStoredMark(t.create(e)));else{let l,c=r.tr;i||(u=function(t){let e=[];for(let r=0;r<t.length;r++){let{$from:n,$to:i}=t[r];n.doc.nodesBetween(n.pos,i.pos,(t,r)=>{if(t.isAtom&&t.content.size&&t.isInline&&r>=n.pos&&r+t.nodeSize<=i.pos)return r+1>n.pos&&e.push(new a.yn(n,n.doc.resolve(r+1))),n=n.doc.resolve(r+1+t.content.size),!1}),n.pos<i.pos&&e.push(new a.yn(n,i))}return e}(u)),l=n?!u.some(e=>r.doc.rangeHasMark(e.$from.pos,e.$to.pos,t)):!u.every(e=>{let r=!1;return c.doc.nodesBetween(e.$from.pos,e.$to.pos,(n,i,a)=>{if(r)return!1;r=!t.isInSet(n.marks)&&!!a&&a.type.allowsMarkType(t)&&!(n.isText&&/^\s*$/.test(n.textBetween(Math.max(0,e.$from.pos-i),Math.min(n.nodeSize,e.$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,t.create(e))}else c.removeMark(n.pos,i.pos,t)}s(c.scrollIntoView())}return!0}}function x(...t){return function(e,r,n){for(let i=0;i<t.length;i++)if(t[i](e,r,n))return!0;return!1}}let M=x(o,(t,e,r)=>{let o=function(t,e){let{$cursor:r}=t.selection;return r&&(e?e.endOfTextblock("backward",t):!(r.parentOffset>0))?r:null}(t,r);if(!o)return!1;let c=l(o);if(!c){let r=o.blockRange(),i=r&&(0,n.jP)(r);return null!=i&&(e&&e(t.tr.lift(r,i).scrollIntoView()),!0)}let u=c.nodeBefore;if(g(t,c,e,-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)(t.doc,o.before(r),o.after(r),i.Ji.empty);if(l&&l.slice.size<l.to-l.from){if(e){let r=t.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)),e(r.scrollIntoView())}return!0}if(1==r||o.node(r-1).childCount>1)break}return!!u.isAtom&&c.depth==o.depth-1&&(e&&e(t.tr.delete(c.pos-u.nodeSize,c.pos).scrollIntoView()),!0)},(t,e,r)=>{let{$head:n,empty:i}=t.selection,o=n;if(!i)return!1;if(n.parent.isTextblock){if(r?!r.endOfTextblock("backward",t):n.parentOffset>0)return!1;o=l(n)}let s=o&&o.nodeBefore;return!!s&&!!a.nh.isSelectable(s)&&(e&&e(t.tr.setSelection(a.nh.create(t.doc,o.pos-s.nodeSize)).scrollIntoView()),!0)}),S=x(o,(t,e,r)=>{let o=function(t,e){let{$cursor:r}=t.selection;return r&&(e?e.endOfTextblock("forward",t):!(r.parentOffset<r.parent.content.size))?r:null}(t,r);if(!o)return!1;let l=c(o);if(!l)return!1;let u=l.nodeAfter;if(g(t,l,e,1))return!0;if(0==o.parent.content.size&&(s(u,"start")||a.nh.isSelectable(u))){let r=(0,n.$L)(t.doc,o.before(),o.after(),i.Ji.empty);if(r&&r.slice.size<r.to-r.from){if(e){let n=t.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))),e(n.scrollIntoView())}return!0}}return!!u.isAtom&&l.depth==o.depth-1&&(e&&e(t.tr.delete(l.pos,l.pos+u.nodeSize).scrollIntoView()),!0)},(t,e,r)=>{let{$head:n,empty:i}=t.selection,o=n;if(!i)return!1;if(n.parent.isTextblock){if(r?!r.endOfTextblock("forward",t):n.parentOffset<n.parent.content.size)return!1;o=c(n)}let s=o&&o.nodeAfter;return!!s&&!!a.nh.isSelectable(s)&&(e&&e(t.tr.setSelection(a.nh.create(t.doc,o.pos)).scrollIntoView()),!0)}),w={Enter:x(u,p,d,f),"Mod-Enter":(t,e)=>{let{$head:r,$anchor:n}=t.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(e){let n=r.after(),i=t.tr.replaceWith(n,n,s.createAndFill());i.setSelection(a.LN.near(i.doc.resolve(n),1)),e(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 t in w)O[t]=w[t];let N=("u">typeof navigator?/Mac|iP(hone|[oa]d)/.test(navigator.platform):"u">typeof os&&!!os.platform&&"darwin"==os.platform())?O:w;r.d(e,{Im:()=>R,st:()=>x,wh:()=>b},{BS:(t,e)=>f(t,e&&(r=>{let n=t.storedMarks||t.selection.$to.parentOffset&&t.selection.$from.marks();n&&r.ensureMarks(n),e(r)})),G2:(t,e)=>{let r=t.selection,i=r instanceof a.nh,o;if(i){if(r.node.isTextblock||!(0,n.n9)(t.doc,r.from))return!1;o=r.from}else if(null==(o=(0,n.N0)(t.doc,r.from,-1)))return!1;if(e){let r=t.tr.join(o);i&&r.setSelection(a.nh.create(r.doc,o-t.doc.resolve(o).nodeBefore.nodeSize)),e(r.scrollIntoView())}return!0},RV:N,Ub:m,Z1:p,bh:(t,e)=>{let r=t.selection,i;if(r instanceof a.nh){if(r.node.isTextblock||!(0,n.n9)(t.doc,r.to))return!1;i=r.to}else if(null==(i=(0,n.N0)(t.doc,r.to,1)))return!1;return e&&e(t.tr.join(i).scrollIntoView()),!0},hy:(t,e)=>{let{$from:r,to:n}=t.selection,i,o=r.sharedDepth(n);return 0!=o&&(i=r.before(o),e&&e(t.tr.setSelection(a.nh.create(t.doc,i))),!0)},iz:d,pC:u,yY:(t,e)=>{let{$from:r,$to:i}=t.selection,a=r.blockRange(i),o=a&&(0,n.jP)(a);return null!=o&&(e&&e(t.tr.lift(a,o).scrollIntoView()),!0)}})},73337(t,e,r){var n=r(42845),i=r(38262);function a(t={}){return new n.k_({view:e=>new o(e,t)})}class o{constructor(t,e){var r;this.editorView=t,this.cursorPos=null,this.element=null,this.timeout=-1,this.lastDragEvent=null,this.width=null!=(r=e.width)?r:1,this.color=!1===e.color?void 0:e.color||"black",this.class=e.class,this.handlers=["dragover","dragend","drop","dragleave"].map(e=>{let r=t=>{this[e](t)};return t.dom.addEventListener(e,r),{name:e,handler:r}})}destroy(){this.handlers.forEach(({name:t,handler:e})=>this.editorView.dom.removeEventListener(t,e))}update(t,e){if(null!=this.cursorPos&&e.doc!=t.state.doc)if(this.lastDragEvent){let t=this.computeTarget(this.lastDragEvent);t==this.cursorPos?this.updateOverlay():this.setCursor(t)}else this.updateOverlay()}setCursor(t){t!=this.cursorPos&&(this.cursorPos=t,null==t?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let t,e,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 t=r.nodeBefore,e=r.nodeAfter;if(t||e){let r=this.editorView.nodeDOM(this.cursorPos-(t?t.nodeSize:0));if(r){let n=r.getBoundingClientRect(),a=t?n.bottom:n.top;t&&e&&(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 t=this.editorView.coordsAtPos(this.cursorPos),e=this.width/2*s;i={left:t.left-e,right:t.left+e,top:t.top,bottom:t.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;t=r.left-c.scrollLeft*n,e=r.top-c.scrollTop*i}else t=-pageXOffset,e=-pageYOffset;this.element.style.left=(i.left-t)/s+"px",this.element.style.top=(i.top-e)/l+"px",this.element.style.width=(i.right-i.left)/s+"px",this.element.style.height=(i.bottom-i.top)/l+"px"}scheduleRemoval(t){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),t)}computeTarget(t){let e=this.editorView.posAtCoords({left:t.clientX,top:t.clientY}),r=e&&e.inside>=0&&this.editorView.state.doc.nodeAt(e.inside),n=r&&r.type.spec.disableDropCursor,a="function"==typeof n?n(this.editorView,e,t):n;if(!e||a)return null;let o=e.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let t=(0,i.Um)(this.editorView.state.doc,o,this.editorView.dragging.slice);null!=t&&(o=t)}return o}dragover(t){if(!this.editorView.editable)return;this.lastDragEvent=t;let e=this.computeTarget(t);null!=e&&(this.setCursor(e),this.scheduleRemoval(5e3))}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(t){this.editorView.dom.contains(t.relatedTarget)||this.setCursor(null)}}r.d(e,{A:()=>a})},89552(t,e,r){var n=r(14413),i=r(42845),a=r(96294),o=r(1575);class s extends i.LN{constructor(t){super(t,t)}map(t,e){let r=t.resolve(e.map(this.head));return s.valid(r)?new s(r):i.LN.near(r)}content(){return a.Ji.empty}eq(t){return t instanceof s&&t.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(t,e){if("number"!=typeof e.pos)throw RangeError("Invalid input for GapCursor.fromJSON");return new s(t.resolve(e.pos))}getBookmark(){return new l(this.anchor)}static valid(t){let e=t.parent;if(e.inlineContent||!function(t){for(let e=t.depth;e>=0;e--){let r=t.index(e),n=t.node(e);if(0==r){if(n.type.spec.isolating)return!0;continue}for(let t=n.child(r-1);;t=t.lastChild){if(0==t.childCount&&!t.inlineContent||c(t.type))return!0;if(t.inlineContent)return!1}}return!0}(t)||!function(t){for(let e=t.depth;e>=0;e--){let r=t.indexAfter(e),n=t.node(e);if(r==n.childCount){if(n.type.spec.isolating)return!0;continue}for(let t=n.child(r);;t=t.firstChild){if(0==t.childCount&&!t.inlineContent||c(t.type))return!0;if(t.inlineContent)return!1}}return!0}(t))return!1;let r=e.type.spec.allowGapCursor;if(null!=r)return r;let n=e.contentMatchAt(t.index()).defaultType;return n&&n.isTextblock}static findGapCursorFrom(t,e,r=!1){a:for(;;){if(!r&&s.valid(t))return t;let n=t.pos,a=null;for(let r=t.depth;;r--){let i=t.node(r);if(e>0?t.indexAfter(r)<i.childCount:t.index(r)>0){a=i.child(e>0?t.indexAfter(r):t.index(r)-1);break}if(0==r)return null;n+=e;let o=t.doc.resolve(n);if(s.valid(o))return o}for(;;){let o=e>0?a.firstChild:a.lastChild;if(!o){if(a.isAtom&&!a.isText&&!i.nh.isSelectable(a)){t=t.doc.resolve(n+a.nodeSize*e),r=!1;continue a}break}a=o,n+=e;let l=t.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(t){this.pos=t}map(t){return new l(t.map(this.pos))}resolve(t){let e=t.resolve(this.pos);return s.valid(e)?new s(e):i.LN.near(e)}}function c(t){return t.isAtom||t.spec.isolating||t.spec.createGapCursor}function u(){return new i.k_({props:{decorations:m,createSelectionBetween:(t,e,r)=>e.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(t,e){let r="vert"==t?e>0?"down":"up":e>0?"right":"left";return function(t,n,a){let o=t.selection,l=e>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=t.doc.resolve(e>0?l.after():l.before())}let u=s.findGapCursorFrom(l,e,c);return!!u&&(n&&n(t.tr.setSelection(new s(u))),!0)}}function d(t,e,r){if(!t||!t.editable)return!1;let n=t.state.doc.resolve(e);if(!s.valid(n))return!1;let a=t.posAtCoords({left:r.clientX,top:r.clientY});return!(a&&a.inside>-1&&i.nh.isSelectable(t.state.doc.nodeAt(a.inside)))&&(t.dispatch(t.state.tr.setSelection(new s(n))),!0)}function f(t,e){if("insertCompositionText"!=e.inputType||!(t.state.selection instanceof s))return!1;let{$from:r}=t.state.selection,n=r.parent.contentMatchAt(r.index()).findWrapping(t.state.schema.nodes.text);if(!n)return!1;let o=a.FK.empty;for(let t=n.length-1;t>=0;t--)o=a.FK.from(n[t].createAndFill(null,o));let l=t.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))),t.dispatch(l),!1}function m(t){if(!(t.selection instanceof s))return null;let e=document.createElement("div");return e.className="ProseMirror-gapcursor",o.zF.create(t.doc,[o.NZ.widget(t.selection.head,e,{key:"gapcursor"})])}r.d(e,{z:()=>u})},53034(t,e,r){r.d(e,{b6:()=>v,ZS:()=>x,tN:()=>b});var n=function(){};n.prototype.append=function(t){return t.length?(t=n.from(t),!this.length&&t||t.length<200&&this.leafAppend(t)||this.length<200&&t.leafPrepend(this)||this.appendInner(t)):this},n.prototype.prepend=function(t){return t.length?n.from(t).append(this):this},n.prototype.appendInner=function(t){return new a(this,t)},n.prototype.slice=function(t,e){return(void 0===t&&(t=0),void 0===e&&(e=this.length),t>=e)?n.empty:this.sliceInner(Math.max(0,t),Math.min(this.length,e))},n.prototype.get=function(t){if(!(t<0)&&!(t>=this.length))return this.getInner(t)},n.prototype.forEach=function(t,e,r){void 0===e&&(e=0),void 0===r&&(r=this.length),e<=r?this.forEachInner(t,e,r,0):this.forEachInvertedInner(t,e,r,0)},n.prototype.map=function(t,e,r){void 0===e&&(e=0),void 0===r&&(r=this.length);var n=[];return this.forEach(function(e,r){return n.push(t(e,r))},e,r),n},n.from=function(t){return t instanceof n?t:t&&t.length?new i(t):n.empty};var i=function(t){function e(e){t.call(this),this.values=e}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={length:{configurable:!0},depth:{configurable:!0}};return e.prototype.flatten=function(){return this.values},e.prototype.sliceInner=function(t,r){return 0==t&&r==this.length?this:new e(this.values.slice(t,r))},e.prototype.getInner=function(t){return this.values[t]},e.prototype.forEachInner=function(t,e,r,n){for(var i=e;i<r;i++)if(!1===t(this.values[i],n+i))return!1},e.prototype.forEachInvertedInner=function(t,e,r,n){for(var i=e-1;i>=r;i--)if(!1===t(this.values[i],n+i))return!1},e.prototype.leafAppend=function(t){if(this.length+t.length<=200)return new e(this.values.concat(t.flatten()))},e.prototype.leafPrepend=function(t){if(this.length+t.length<=200)return new e(t.flatten().concat(this.values))},r.length.get=function(){return this.values.length},r.depth.get=function(){return 0},Object.defineProperties(e.prototype,r),e}(n);n.empty=new i([]);var a=function(t){function e(e,r){t.call(this),this.left=e,this.right=r,this.length=e.length+r.length,this.depth=Math.max(e.depth,r.depth)+1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},e.prototype.getInner=function(t){return t<this.left.length?this.left.get(t):this.right.get(t-this.left.length)},e.prototype.forEachInner=function(t,e,r,n){var i=this.left.length;if(e<i&&!1===this.left.forEachInner(t,e,Math.min(r,i),n)||r>i&&!1===this.right.forEachInner(t,Math.max(e-i,0),Math.min(this.length,r)-i,n+i))return!1},e.prototype.forEachInvertedInner=function(t,e,r,n){var i=this.left.length;if(e>i&&!1===this.right.forEachInvertedInner(t,e-i,Math.max(r,i)-i,n+i)||r<i&&!1===this.left.forEachInvertedInner(t,Math.min(e,i),r,n))return!1},e.prototype.sliceInner=function(t,e){if(0==t&&e==this.length)return this;var r=this.left.length;return e<=r?this.left.slice(t,e):t>=r?this.right.slice(t-r,e-r):this.left.slice(t,r).append(this.right.slice(0,e-r))},e.prototype.leafAppend=function(t){var r=this.right.leafAppend(t);if(r)return new e(this.left,r)},e.prototype.leafPrepend=function(t){var r=this.left.leafPrepend(t);if(r)return new e(r,this.right)},e.prototype.appendInner=function(t){return this.left.depth>=Math.max(this.right.depth,t.depth)+1?new e(this.left,new e(this.right,t)):new e(this,t)},e}(n),o=r(38262),s=r(42845);class l{constructor(t,e){this.items=t,this.eventCount=e}popEvent(t,e){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}e&&(n=(r=this.remapping(o,this.items.length)).maps.length);let s=t.tr,u=[],h=[];return this.items.forEach((t,e)=>{if(!t.step){r||(n=(r=this.remapping(o,e+1)).maps.length),n--,h.push(t);return}if(r){h.push(new c(t.map));let e=t.step.map(r.slice(n)),i;e&&s.maybeStep(e).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(t.step);if(t.selection)return i=r?t.selection.map(r.slice(n)):t.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(t,e,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<t.steps.length;r++){let i=t.steps[r].invert(t.docs[r]),a=new c(t.mapping.maps[r],i,e),o;(o=d&&d.merge(a))&&(a=o,r?s.pop():p=p.slice(0,p.length-1)),s.push(a),e&&(u++,e=void 0),n||(d=a)}let f=u-r.depth;return f>h&&(i=p,a=f,i.forEach((t,e)=>{if(t.selection&&0==a--)return o=e,!1}),p=i.slice(o),u-=f),new l(p.append(s),u)}remapping(t,e){let r=new o.X9;return this.items.forEach((e,n)=>{let i=null!=e.mirrorOffset&&n-e.mirrorOffset>=t?r.maps.length-e.mirrorOffset:void 0;r.appendMap(e.map,i)},t,e),r}addMaps(t){return 0==this.eventCount?this:new l(this.items.append(t.map(t=>new c(t))),this.eventCount)}rebased(t,e){if(!this.eventCount)return this;let r=[],n=Math.max(0,this.items.length-e),i=t.mapping,a=t.steps.length,o=this.eventCount;this.items.forEach(t=>{t.selection&&o--},n);let s=e;this.items.forEach(e=>{let n=i.getMirror(--s);if(null==n)return;a=Math.min(a,n);let l=i.maps[n];if(e.step){let a=t.steps[n].invert(t.docs[n]),u=e.selection&&e.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 t=e;t<a;t++)u.push(new c(i.maps[t]));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 t=0;return this.items.forEach(e=>{!e.step&&t++}),t}compress(t=this.items.length){let e=this.remapping(0,t),r=e.maps.length,i=[],a=0;return this.items.forEach((n,o)=>{if(o>=t)i.push(n),n.selection&&a++;else if(n.step){let t=n.step.map(e.slice(r)),o=t&&t.getMap();if(r--,o&&e.appendMap(o,r),t){let s=n.selection&&n.selection.map(e.slice(r));s&&a++;let l=new c(o.invert(),t,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(t,e,r,n){this.map=t,this.step=e,this.selection=r,this.mirrorOffset=n}merge(t){if(this.step&&t.step&&!t.selection){let e=t.step.merge(this.step);if(e)return new c(e.getMap().invert(),e,this.selection)}}}class u{constructor(t,e,r,n,i){this.done=t,this.undone=e,this.prevRanges=r,this.prevTime=n,this.prevComposition=i}}let h=20;function p(t){let e=[];for(let r=t.length-1;r>=0&&0==e.length;r--)t[r].forEach((t,r,n,i)=>e.push(n,i));return e}function d(t,e){if(!t)return null;let r=[];for(let n=0;n<t.length;n+=2){let i=e.map(t[n],1),a=e.map(t[n+1],-1);i<=a&&r.push(i,a)}return r}let f=!1,m=null;function g(t){let e=t.plugins;if(m!=e){f=!1,m=e;for(let t=0;t<e.length;t++)if(e[t].spec.historyPreserveItems){f=!0;break}}return f}let A=new s.hs("history"),y=new s.hs("closeHistory");function v(t={}){return t={depth:t.depth||100,newGroupDelay:t.newGroupDelay||500},new s.k_({key:A,state:{init:()=>new u(l.empty,l.empty,null,0,-1),apply:(e,r,n)=>(function(t,e,r,n){let i=r.getMeta(A),a;if(i)return i.historyState;r.getMeta(y)&&(t=new u(t.done,t.undone,null,0,-1));let o=r.getMeta("appendedTransaction");if(0==r.steps.length)return t;if(o&&o.getMeta(A))if(o.getMeta(A).redo)return new u(t.done.addTransform(r,void 0,n,g(e)),t.undone,p(r.mapping.maps),t.prevTime,t.prevComposition);else return new u(t.done,t.undone.addTransform(r,void 0,n,g(e)),null,t.prevTime,t.prevComposition);if(!1===r.getMeta("addToHistory")||o&&!1===o.getMeta("addToHistory"))if(a=r.getMeta("rebased"))return new u(t.done.rebased(r,a),t.undone.rebased(r,a),d(t.prevRanges,r.mapping),t.prevTime,t.prevComposition);else return new u(t.done.addMaps(r.mapping.maps),t.undone.addMaps(r.mapping.maps),d(t.prevRanges,r.mapping),t.prevTime,t.prevComposition);{let i=r.getMeta("composition"),a=0==t.prevTime||!o&&t.prevComposition!=i&&(t.prevTime<(r.time||0)-n.newGroupDelay||!function(t,e){if(!e)return!1;if(!t.docChanged)return!0;let r=!1;return t.mapping.maps[0].forEach((t,n)=>{for(let i=0;i<e.length;i+=2)t<=e[i+1]&&n>=e[i]&&(r=!0)}),r}(r,t.prevRanges)),s=o?d(t.prevRanges,r.mapping):p(r.mapping.maps);return new u(t.done.addTransform(r,a?e.selection.getBookmark():void 0,n,g(e)),l.empty,s,r.time,null==i?t.prevComposition:i)}})(r,n,e,t)},config:t,props:{handleDOMEvents:{beforeinput(t,e){let r=e.inputType,n="historyUndo"==r?b:"historyRedo"==r?x:null;return!!n&&!!t.editable&&(e.preventDefault(),n(t.state,t.dispatch))}}}})}function R(t,e){return(r,n)=>{let i=A.getState(r);if(!i||0==(t?i.undone:i.done).eventCount)return!1;if(n){let a=function(t,e,r){let n=g(e),i=A.get(e).spec.config,a=(r?t.undone:t.done).popEvent(e,n);if(!a)return null;let o=a.selection.resolve(a.transform.doc),s=(r?t.done:t.undone).addTransform(a.transform,e.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,t);a&&n(e?a.scrollIntoView():a)}return!0}}let b=R(!1,!0),x=R(!0,!0)},38341(t,e,r){var n=r(42845),i=r(38262);class a{constructor(t,e,r={}){var n;this.match=t,this.match=t,this.handler="string"==typeof e?(n=e,function(t,e,r,i){let a=n;if(e[1]){let t=e[0].lastIndexOf(e[1]);a+=e[0].slice(t+e[1].length);let n=(r+=t)-i;n>0&&(a=e[0].slice(t-n,t)+a,r=i)}return t.tr.insertText(a,r,i)}):e,this.undoable=!1!==r.undoable,this.inCode=r.inCode||!1,this.inCodeMark=!1!==r.inCodeMark}}function o({rules:t}){let e=new n.k_({state:{init:()=>null,apply(t,e){let r=t.getMeta(this);return r||(t.selectionSet||t.docChanged?null:e)}},props:{handleTextInput:(r,n,i,a)=>s(r,n,i,a,t,e),handleDOMEvents:{compositionend:r=>{setTimeout(()=>{let{$cursor:n}=r.state.selection;n&&s(r,n.pos,n.pos,"",t,e)})}}},isInputRules:!0});return e}function s(t,e,r,n,i,a){if(t.composing)return!1;let o=t.state,s=o.doc.resolve(e),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(t=>t.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=e-(h[0].length-n.length);if(!u.inCodeMark){let t=!1;if(o.doc.nodesBetween(p,s.pos,e=>{e.isInline&&e.marks.some(t=>t.type.spec.code)&&(t=!0)}),t)continue}let d=u.handler(o,h,p,r);if(d)return u.undoable&&d.setMeta(a,{transform:d,from:e,to:r,text:n}),t.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(t,e,r=null,n){return new a(t,(t,a,o,s)=>{let l=r instanceof Function?r(a):r,c=t.tr.delete(o,s),u=c.doc.resolve(o).blockRange(),h=u&&(0,i.oM)(u,e,l);if(!h)return null;c.wrap(u,h);let p=c.doc.resolve(o-1).nodeBefore;return p&&p.type==e&&(0,i.n9)(c.doc,o-1)&&(!n||n(a,p))&&c.join(o-1),c})}r.d(e,{fV:()=>a,sM:()=>o,tG:()=>f},{Fr:[u,h,p,d],P8:l,dv:(t,e)=>{let r=t.plugins;for(let n=0;n<r.length;n++){let i=r[n],a;if(i.spec.isInputRules&&(a=i.getState(t))){if(e){let r=t.tr,n=a.transform;for(let t=n.steps.length-1;t>=0;t--)r.step(n.steps[t].invert(n.docs[t]));if(a.text){let e=r.doc.resolve(a.from).marks();r.replaceWith(a.from,a.to,t.schema.text(a.text,e))}else r.delete(a.from,a.to);e(r)}return!0}}return!1},gO:c})},14413(t,e,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(t,e,r=!0){return e.altKey&&(t="Alt-"+t),e.ctrlKey&&(t="Ctrl-"+t),e.metaKey&&(t="Meta-"+t),r&&e.shiftKey&&(t="Shift-"+t),t}function l(t){return new i.k_({props:{handleKeyDown:c(t)}})}function c(t){let e=function(t){let e=Object.create(null);for(let r in t)e[function(t){let e,r,n,i,o=t.split(/-(?!$)/),s=o[o.length-1];"Space"==s&&(s=" ");for(let t=0;t<o.length-1;t++){let s=o[t];if(/^(cmd|meta|m)$/i.test(s))i=!0;else if(/^a(lt)?$/i.test(s))e=!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 e&&(s="Alt-"+s),r&&(s="Ctrl-"+s),i&&(s="Meta-"+s),n&&(s="Shift-"+s),s}(r)]=t[r];return e}(t);return function(t,r){let i=(0,n.xT)(r),a,l=e[s(i,r)];if(l&&l(t.state,t.dispatch,t))return!0;if(1==i.length&&" "!=i){if(r.shiftKey){let n=e[s(i,r,!1)];if(n&&n(t.state,t.dispatch,t))return!0}if((r.altKey||r.metaKey||r.ctrlKey)&&!(o&&r.ctrlKey&&r.altKey)&&(a=n.E3[r.keyCode])&&a!=i){let n=e[s(a,r)];if(n&&n(t.state,t.dispatch,t))return!0}}return!1}}r.d(e,{K:()=>c,w:()=>l})},96294(t,e,r){function n(t){this.content=t}function i(t){return t>=56320&&t<57344}function a(t){return t>=55296&&t<56320}r.d(e,{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(t){for(var e=0;e<this.content.length;e+=2)if(this.content[e]===t)return e;return -1},get:function(t){var e=this.find(t);return -1==e?void 0:this.content[e+1]},update:function(t,e,r){var i=r&&r!=t?this.remove(r):this,a=i.find(t),o=i.content.slice();return -1==a?o.push(r||t,e):(o[a+1]=e,r&&(o[a]=r)),new n(o)},remove:function(t){var e=this.find(t);if(-1==e)return this;var r=this.content.slice();return r.splice(e,2),new n(r)},addToStart:function(t,e){return new n([t,e].concat(this.remove(t).content))},addToEnd:function(t,e){var r=this.remove(t).content.slice();return r.push(t,e),new n(r)},addBefore:function(t,e,r){var i=this.remove(e),a=i.content.slice(),o=i.find(t);return a.splice(-1==o?a.length:o,0,e,r),new n(a)},forEach:function(t){for(var e=0;e<this.content.length;e+=2)t(this.content[e],this.content[e+1])},prepend:function(t){return(t=n.from(t)).size?new n(t.content.concat(this.subtract(t).content)):this},append:function(t){return(t=n.from(t)).size?new n(this.subtract(t).content.concat(t.content)):this},subtract:function(t){var e=this;t=n.from(t);for(var r=0;r<t.content.length;r+=2)e=e.remove(t.content[r]);return e},toObject:function(){var t={};return this.forEach(function(e,r){t[e]=r}),t},get size(){return this.content.length>>1}},n.from=function(t){if(t instanceof n)return t;var e=[];if(t)for(var r in t)e.push(r,t[r]);return new n(e)};class o{constructor(t,e){if(this.content=t,this.size=e||0,null==e)for(let e=0;e<t.length;e++)this.size+=t[e].nodeSize}nodesBetween(t,e,r,n=0,i){for(let a=0,o=0;o<e;a++){let s=this.content[a],l=o+s.nodeSize;if(l>t&&!1!==r(s,n+o,i||null,a)&&s.content.size){let i=o+1;s.nodesBetween(Math.max(0,t-i),Math.min(s.content.size,e-i),r,n+i)}o=l}}descendants(t){this.nodesBetween(0,this.size,t)}textBetween(t,e,r,n){let i="",a=!0;return this.nodesBetween(t,e,(o,s)=>{let l=o.isText?o.text.slice(Math.max(t,s)-s,e-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(t){if(!t.size)return this;if(!this.size)return t;let e=this.lastChild,r=t.firstChild,n=this.content.slice(),i=0;for(e.isText&&e.sameMarkup(r)&&(n[n.length-1]=e.withText(e.text+r.text),i=1);i<t.content.length;i++)n.push(t.content[i]);return new o(n,this.size+t.size)}cut(t,e=this.size){if(0==t&&e==this.size)return this;let r=[],n=0;if(e>t)for(let i=0,a=0;a<e;i++){let o=this.content[i],s=a+o.nodeSize;s>t&&((a<t||s>e)&&(o=o.isText?o.cut(Math.max(0,t-a),Math.min(o.text.length,e-a)):o.cut(Math.max(0,t-a-1),Math.min(o.content.size,e-a-1))),r.push(o),n+=o.nodeSize),a=s}return new o(r,n)}cutByIndex(t,e){return t==e?o.empty:0==t&&e==this.content.length?this:new o(this.content.slice(t,e))}replaceChild(t,e){let r=this.content[t];if(r==e)return this;let n=this.content.slice(),i=this.size+e.nodeSize-r.nodeSize;return n[t]=e,new o(n,i)}addToStart(t){return new o([t].concat(this.content),this.size+t.nodeSize)}addToEnd(t){return new o(this.content.concat(t),this.size+t.nodeSize)}eq(t){if(this.content.length!=t.content.length)return!1;for(let e=0;e<this.content.length;e++)if(!this.content[e].eq(t.content[e]))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(t){let e=this.content[t];if(!e)throw RangeError("Index "+t+" out of range for "+this);return e}maybeChild(t){return this.content[t]||null}forEach(t){for(let e=0,r=0;e<this.content.length;e++){let n=this.content[e];t(n,r,e),r+=n.nodeSize}}findDiffStart(t,e=0){return function t(e,r,n){for(let o=0;;o++){if(o==e.childCount||o==r.childCount)return e.childCount==r.childCount?null:n;let s=e.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 t=s.text,e=l.text,r=0;for(;t[r]==e[r];r++)n++;return r&&r<t.length&&r<e.length&&a(t.charCodeAt(r-1))&&i(t.charCodeAt(r))&&n--,n}if(s.content.size||l.content.size){let e=t(s.content,l.content,n+1);if(null!=e)return e}n+=s.nodeSize}}(this,t,e)}findDiffEnd(t,e=this.size,r=t.size){return function t(e,r,n,o){for(let s=e.childCount,l=r.childCount;;){if(0==s||0==l)return s==l?null:{a:n,b:o};let c=e.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 t=c.text,e=u.text,r=t.length,s=e.length;for(;r>0&&s>0&&t[r-1]==e[s-1];)r--,s--,n--,o--;return r&&s&&r<t.length&&a(t.charCodeAt(r-1))&&i(t.charCodeAt(r))&&(n++,o++),{a:n,b:o}}if(c.content.size||u.content.size){let e=t(c.content,u.content,n-1,o-1);if(e)return e}n-=h,o-=h}}(this,t,e,r)}findIndex(t){if(0==t)return l(0,t);if(t==this.size)return l(this.content.length,t);if(t>this.size||t<0)throw RangeError(`Position ${t} outside of fragment (${this})`);for(let e=0,r=0;;e++){let n=r+this.child(e).nodeSize;if(n>=t){if(n==t)return l(e+1,n);return l(e,r)}r=n}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(t=>t.toJSON()):null}static fromJSON(t,e){if(!e)return o.empty;if(!Array.isArray(e))throw RangeError("Invalid input for Fragment.fromJSON");return o.fromArray(e.map(t.nodeFromJSON))}static fromArray(t){if(!t.length)return o.empty;let e,r=0;for(let n=0;n<t.length;n++){let i=t[n];r+=i.nodeSize,n&&i.isText&&t[n-1].sameMarkup(i)?(e||(e=t.slice(0,n)),e[e.length-1]=i.withText(e[e.length-1].text+i.text)):e&&e.push(i)}return new o(e||t,r)}static from(t){if(!t)return o.empty;if(t instanceof o)return t;if(Array.isArray(t))return this.fromArray(t);if(t.attrs)return new o([t],t.nodeSize);throw RangeError("Can not convert "+t+" to a Fragment"+(t.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}o.empty=new o([],0);let s={index:0,offset:0};function l(t,e){return s.index=t,s.offset=e,s}function c(t,e){if(t===e)return!0;if(!(t&&"object"==typeof t)||!(e&&"object"==typeof e))return!1;let r=Array.isArray(t);if(Array.isArray(e)!=r)return!1;if(r){if(t.length!=e.length)return!1;for(let r=0;r<t.length;r++)if(!c(t[r],e[r]))return!1}else{for(let r in t)if(!(r in e)||!c(t[r],e[r]))return!1;for(let r in e)if(!(r in t))return!1}return!0}class u{constructor(t,e){this.type=t,this.attrs=e}addToSet(t){let e,r=!1;for(let n=0;n<t.length;n++){let i=t[n];if(this.eq(i))return t;if(this.type.excludes(i.type))e||(e=t.slice(0,n));else{if(i.type.excludes(this.type))return t;!r&&i.type.rank>this.type.rank&&(e||(e=t.slice(0,n)),e.push(this),r=!0),e&&e.push(i)}}return e||(e=t.slice()),r||e.push(this),e}removeFromSet(t){for(let e=0;e<t.length;e++)if(this.eq(t[e]))return t.slice(0,e).concat(t.slice(e+1));return t}isInSet(t){for(let e=0;e<t.length;e++)if(this.eq(t[e]))return!0;return!1}eq(t){return this==t||this.type==t.type&&c(this.attrs,t.attrs)}toJSON(){let t={type:this.type.name};for(let e in this.attrs){t.attrs=this.attrs;break}return t}static fromJSON(t,e){if(!e)throw RangeError("Invalid input for Mark.fromJSON");let r=t.marks[e.type];if(!r)throw RangeError(`There is no mark type ${e.type} in this schema`);let n=r.create(e.attrs);return r.checkAttrs(n.attrs),n}static sameSet(t,e){if(t==e)return!0;if(t.length!=e.length)return!1;for(let r=0;r<t.length;r++)if(!t[r].eq(e[r]))return!1;return!0}static setFrom(t){if(!t||Array.isArray(t)&&0==t.length)return u.none;if(t instanceof u)return[t];let e=t.slice();return e.sort((t,e)=>t.type.rank-e.type.rank),e}}u.none=[];class h extends Error{}class p{constructor(t,e,r){this.content=t,this.openStart=e,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(t,e){let r=function t(e,r,n,i,a,o){let{index:s,offset:l}=e.findIndex(r),c=e.maybeChild(s);if(l==r||c.isText)return o&&i<=0&&a<=0&&!o.canReplace(s,s,n)?null:e.cut(0,r).append(n).append(e.cut(r));let u=t(c.content,r-l-1,n,0==s?i-1:0,s==e.childCount-1?a-1:0,c);return u&&e.replaceChild(s,c.copy(u))}(this.content,t+this.openStart,e,this.openStart+1,this.openEnd+1);return r&&new p(r,this.openStart,this.openEnd)}removeBetween(t,e){return new p(function t(e,r,n){let{index:i,offset:a}=e.findIndex(r),o=e.maybeChild(i),{index:s,offset:l}=e.findIndex(n);if(a==r||o.isText){if(l!=n&&!e.child(s).isText)throw RangeError("Removing non-flat range");return e.cut(0,r).append(e.cut(n))}if(i!=s)throw RangeError("Removing non-flat range");return e.replaceChild(i,o.copy(t(o.content,r-a-1,n-a-1)))}(this.content,t+this.openStart,e+this.openStart),this.openStart,this.openEnd)}eq(t){return this.content.eq(t.content)&&this.openStart==t.openStart&&this.openEnd==t.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let t={content:this.content.toJSON()};return this.openStart>0&&(t.openStart=this.openStart),this.openEnd>0&&(t.openEnd=this.openEnd),t}static fromJSON(t,e){if(!e)return p.empty;let r=e.openStart||0,n=e.openEnd||0;if("number"!=typeof r||"number"!=typeof n)throw RangeError("Invalid input for Slice.fromJSON");return new p(o.fromJSON(t,e.content),r,n)}static maxOpen(t,e=!0){let r=0,n=0;for(let n=t.firstChild;n&&!n.isLeaf&&(e||!n.type.spec.isolating);n=n.firstChild)r++;for(let r=t.lastChild;r&&!r.isLeaf&&(e||!r.type.spec.isolating);r=r.lastChild)n++;return new p(t,r,n)}}function d(t,e){if(!e.type.compatibleContent(t.type))throw new h("Cannot join "+e.type.name+" onto "+t.type.name)}function f(t,e,r){let n=t.node(r);return d(n,e.node(r)),n}function m(t,e){let r=e.length-1;r>=0&&t.isText&&t.sameMarkup(e[r])?e[r]=t.withText(e[r].text+t.text):e.push(t)}function g(t,e,r,n){let i=(e||t).node(r),a=0,o=e?e.index(r):i.childCount;t&&(a=t.index(r),t.depth>r?a++:t.textOffset&&(m(t.nodeAfter,n),a++));for(let t=a;t<o;t++)m(i.child(t),n);e&&e.depth==r&&e.textOffset&&m(e.nodeBefore,n)}function A(t,e){if(!t.type.validContent(e))throw new h("Invalid content for node "+t.type.name);return t.copy(e)}function y(t,e,r){let n=[];return g(null,t,r,n),t.depth>r&&m(A(f(t,e,r+1),y(t,e,r+1)),n),g(e,null,r,n),new o(n)}p.empty=new p(o.empty,0,0);class v{constructor(t,e,r){this.pos=t,this.path=e,this.parentOffset=r,this.depth=e.length/3-1}resolveDepth(t){return null==t?this.depth:t<0?this.depth+t:t}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(t){return this.path[3*this.resolveDepth(t)]}index(t){return this.path[3*this.resolveDepth(t)+1]}indexAfter(t){return t=this.resolveDepth(t),this.index(t)+(t!=this.depth||this.textOffset?1:0)}start(t){return 0==(t=this.resolveDepth(t))?0:this.path[3*t-1]+1}end(t){return t=this.resolveDepth(t),this.start(t)+this.node(t).content.size}before(t){if(!(t=this.resolveDepth(t)))throw RangeError("There is no position before the top-level node");return t==this.depth+1?this.pos:this.path[3*t-1]}after(t){if(!(t=this.resolveDepth(t)))throw RangeError("There is no position after the top-level node");return t==this.depth+1?this.pos:this.path[3*t-1]+this.path[3*t].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let t=this.parent,e=this.index(this.depth);if(e==t.childCount)return null;let r=this.pos-this.path[this.path.length-1],n=t.child(e);return r?t.child(e).cut(r):n}get nodeBefore(){let t=this.index(this.depth),e=this.pos-this.path[this.path.length-1];return e?this.parent.child(t).cut(0,e):0==t?null:this.parent.child(t-1)}posAtIndex(t,e){e=this.resolveDepth(e);let r=this.path[3*e],n=0==e?0:this.path[3*e-1]+1;for(let e=0;e<t;e++)n+=r.child(e).nodeSize;return n}marks(){let t=this.parent,e=this.index();if(0==t.content.size)return u.none;if(this.textOffset)return t.child(e).marks;let r=t.maybeChild(e-1),n=t.maybeChild(e);if(!r){let t=r;r=n,n=t}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(t){let e=this.parent.maybeChild(this.index());if(!e||!e.isInline)return null;let r=e.marks,n=t.parent.maybeChild(t.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(t){for(let e=this.depth;e>0;e--)if(this.start(e)<=t&&this.end(e)>=t)return e;return 0}blockRange(t=this,e){if(t.pos<this.pos)return t.blockRange(this);for(let r=this.depth-(this.parent.inlineContent||this.pos==t.pos?1:0);r>=0;r--)if(t.pos<=this.end(r)&&(!e||e(this.node(r))))return new M(this,t,r);return null}sameParent(t){return this.pos-this.parentOffset==t.pos-t.parentOffset}max(t){return t.pos>this.pos?t:this}min(t){return t.pos<this.pos?t:this}toString(){let t="";for(let e=1;e<=this.depth;e++)t+=(t?"/":"")+this.node(e).type.name+"_"+this.index(e-1);return t+":"+this.parentOffset}static resolve(t,e){if(!(e>=0&&e<=t.content.size))throw RangeError("Position "+e+" out of range");let r=[],n=0,i=e;for(let e=t;;){let{index:t,offset:a}=e.content.findIndex(i),o=i-a;if(r.push(e,t,n+a),!o||(e=e.child(t)).isText)break;i=o-1,n+=a+1}return new v(e,r,i)}static resolveCached(t,e){let r=x.get(t);if(r)for(let t=0;t<r.elts.length;t++){let n=r.elts[t];if(n.pos==e)return n}else x.set(t,r=new R);let n=r.elts[r.i]=v.resolve(t,e);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(t,e,r){this.$from=t,this.$to=e,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(t,e,r,n=u.none){this.type=t,this.attrs=e,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(t){return this.content.child(t)}maybeChild(t){return this.content.maybeChild(t)}forEach(t){this.content.forEach(t)}nodesBetween(t,e,r,n=0){this.content.nodesBetween(t,e,r,n,this)}descendants(t){this.nodesBetween(0,this.content.size,t)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(t,e,r,n){return this.content.textBetween(t,e,r,n)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(t){return this==t||this.sameMarkup(t)&&this.content.eq(t.content)}sameMarkup(t){return this.hasMarkup(t.type,t.attrs,t.marks)}hasMarkup(t,e,r){return this.type==t&&c(this.attrs,e||t.defaultAttrs||S)&&u.sameSet(this.marks,r||u.none)}copy(t=null){return t==this.content?this:new w(this.type,this.attrs,t,this.marks)}mark(t){return t==this.marks?this:new w(this.type,this.attrs,this.content,t)}cut(t,e=this.content.size){return 0==t&&e==this.content.size?this:this.copy(this.content.cut(t,e))}slice(t,e=this.content.size,r=!1){if(t==e)return p.empty;let n=this.resolve(t),i=this.resolve(e),a=r?0:n.sharedDepth(e),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(t,e,r){var n=this.resolve(t),i=this.resolve(e);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 t(e,r,n,i){let a=e.index(i),s=e.node(i);if(a==r.index(i)&&i<e.depth-n.openStart){let o=t(e,r,n,i+1);return s.copy(s.content.replaceChild(a,o))}if(!n.content.size)return A(s,y(e,r,i));if(n.openStart||n.openEnd||e.depth!=i||r.depth!=i){let{start:t,end:a}=function(t,e){let r=e.depth-t.openStart,n=e.node(r).copy(t.content);for(let t=r-1;t>=0;t--)n=e.node(t).copy(o.from(n));return{start:n.resolveNoCache(t.openStart+r),end:n.resolveNoCache(n.content.size-t.openEnd-r)}}(n,e);return A(s,function t(e,r,n,i,a){let s=e.depth>a&&f(e,r,a+1),l=i.depth>a&&f(n,i,a+1),c=[];return g(null,e,a,c),s&&l&&r.index(a)==n.index(a)?(d(s,l),m(A(s,t(e,r,n,i,a+1)),c)):(s&&m(A(s,y(e,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)}(e,t,a,r,i))}{let t=e.parent,i=t.content;return A(t,i.cut(0,e.parentOffset).append(n.content).append(i.cut(r.parentOffset)))}}(n,i,r,0)}nodeAt(t){for(let e=this;;){let{index:r,offset:n}=e.content.findIndex(t);if(!(e=e.maybeChild(r)))return null;if(n==t||e.isText)return e;t-=n+1}}childAfter(t){let{index:e,offset:r}=this.content.findIndex(t);return{node:this.content.maybeChild(e),index:e,offset:r}}childBefore(t){if(0==t)return{node:null,index:0,offset:0};let{index:e,offset:r}=this.content.findIndex(t);if(r<t)return{node:this.content.child(e),index:e,offset:r};let n=this.content.child(e-1);return{node:n,index:e-1,offset:r-n.nodeSize}}resolve(t){return v.resolveCached(this,t)}resolveNoCache(t){return v.resolve(this,t)}rangeHasMark(t,e,r){let n=!1;return e>t&&this.nodesBetween(t,e,t=>(r.isInSet(t.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 t=this.type.name;return this.content.size&&(t+="("+this.content.toStringInner()+")"),N(this.marks,t)}contentMatchAt(t){let e=this.type.contentMatch.matchFragment(this.content,0,t);if(!e)throw Error("Called contentMatchAt on a node with invalid content");return e}canReplace(t,e,r=o.empty,n=0,i=r.childCount){let a=this.contentMatchAt(t).matchFragment(r,n,i),s=a&&a.matchFragment(this.content,e);if(!s||!s.validEnd)return!1;for(let t=n;t<i;t++)if(!this.type.allowsMarks(r.child(t).marks))return!1;return!0}canReplaceWith(t,e,r,n){if(n&&!this.type.allowsMarks(n))return!1;let i=this.contentMatchAt(t).matchType(r),a=i&&i.matchFragment(this.content,e);return!!a&&a.validEnd}canAppend(t){return t.content.size?this.canReplace(this.childCount,this.childCount,t.content):this.type.compatibleContent(t.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let t=u.none;for(let e=0;e<this.marks.length;e++){let r=this.marks[e];r.type.checkAttrs(r.attrs),t=r.addToSet(t)}if(!u.sameSet(t,this.marks))throw RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(t=>t.type.name)}`);this.content.forEach(t=>t.check())}toJSON(){let t={type:this.type.name};for(let e in this.attrs){t.attrs=this.attrs;break}return this.content.size&&(t.content=this.content.toJSON()),this.marks.length&&(t.marks=this.marks.map(t=>t.toJSON())),t}static fromJSON(t,e){let r;if(!e)throw RangeError("Invalid input for Node.fromJSON");if(e.marks){if(!Array.isArray(e.marks))throw RangeError("Invalid mark data for Node.fromJSON");r=e.marks.map(t.markFromJSON)}if("text"==e.type){if("string"!=typeof e.text)throw RangeError("Invalid text node in JSON");return t.text(e.text,r)}let n=o.fromJSON(t,e.content),i=t.nodeType(e.type).create(e.attrs,n,r);return i.type.checkAttrs(i.attrs),i}}w.prototype.text=void 0;class O extends w{constructor(t,e,r,n){if(super(t,e,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):N(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(t,e){return this.text.slice(t,e)}get nodeSize(){return this.text.length}mark(t){return t==this.marks?this:new O(this.type,this.attrs,this.text,t)}withText(t){return t==this.text?this:new O(this.type,this.attrs,t,this.marks)}cut(t=0,e=this.text.length){return 0==t&&e==this.text.length?this:this.withText(this.text.slice(t,e))}eq(t){return this.sameMarkup(t)&&this.text==t.text}toJSON(){let t=super.toJSON();return t.text=this.text,t}}function N(t,e){for(let r=t.length-1;r>=0;r--)e=t[r].type.name+"("+e+")";return e}class L{constructor(t){this.validEnd=t,this.next=[],this.wrapCache=[]}static parse(t,e){var r;let n,i=new _(t,e);if(null==i.next)return L.empty;let a=function t(e){let r=[];do r.push(function(e){let r=[];do r.push(function(e){let r=function(e){if(e.eat("(")){let r=t(e);return e.eat(")")||e.err("Missing closing paren"),r}if(/\W/.test(e.next))e.err("Unexpected token '"+e.next+"'");else{let t=(function(t,e){let r=t.nodeTypes,n=r[e];if(n)return[n];let i=[];for(let t in r){let n=r[t];n.isInGroup(e)&&i.push(n)}return 0==i.length&&t.err("No node type or group '"+e+"' found"),i})(e,e.next).map(t=>(null==e.inline?e.inline=t.isInline:e.inline!=t.isInline&&e.err("Mixing inline and block content"),{type:"name",value:t}));return e.pos++,1==t.length?t[0]:{type:"choice",exprs:t}}}(e);for(;;)if(e.eat("+"))r={type:"plus",expr:r};else if(e.eat("*"))r={type:"star",expr:r};else if(e.eat("?"))r={type:"opt",expr:r};else if(e.eat("{"))r=function(t,e){let r=T(t),n=r;return t.eat(",")&&(n="}"!=t.next?T(t):-1),t.eat("}")||t.err("Unclosed braced range"),{type:"range",min:r,max:n,expr:e}}(e,r);else break;return r}(e));while(e.next&&")"!=e.next&&"|"!=e.next)return 1==r.length?r[0]:{type:"seq",exprs:r}}(e));while(e.eat("|"))return 1==r.length?r[0]:{type:"choice",exprs:r}}(i);i.next&&i.err("Unexpected trailing text");let o=(r=function(t){let e=[[]];return i(function t(e,a){if("choice"==e.type)return e.exprs.reduce((e,r)=>e.concat(t(r,a)),[]);if("seq"==e.type)for(let n=0;;n++){let o=t(e.exprs[n],a);if(n==e.exprs.length-1)return o;i(o,a=r())}else if("star"==e.type){let o=r();return n(a,o),i(t(e.expr,o),o),[n(o)]}else if("plus"==e.type){let o=r();return i(t(e.expr,a),o),i(t(e.expr,o),o),[n(o)]}else if("opt"==e.type)return[n(a)].concat(t(e.expr,a));else if("range"==e.type){let o=a;for(let n=0;n<e.min;n++){let n=r();i(t(e.expr,o),n),o=n}if(-1==e.max)i(t(e.expr,o),o);else for(let a=e.min;a<e.max;a++){let a=r();n(o,a),i(t(e.expr,o),a),o=a}return[n(o)]}else if("name"==e.type)return[n(a,void 0,e.value)];else throw Error("Unknown expr type")}(t,0),r()),e;function r(){return e.push([])-1}function n(t,r,n){let i={term:n,to:r};return e[t].push(i),i}function i(t,e){t.forEach(t=>t.to=e)}}(a),n=Object.create(null),function t(e){let i=[];e.forEach(t=>{r[t].forEach(({term:t,to:e})=>{let n;if(t){for(let e=0;e<i.length;e++)i[e][0]==t&&(n=i[e][1]);I(r,e).forEach(e=>{n||i.push([t,n=[]]),-1==n.indexOf(e)&&n.push(e)})}})});let a=n[e.join(",")]=new L(e.indexOf(r.length-1)>-1);for(let e=0;e<i.length;e++){let r=i[e][1].sort(P);a.next.push({type:i[e][0],next:n[r.join(",")]||t(r)})}return a}(I(r,0)));return function(t,e){for(let r=0,n=[t];r<n.length;r++){let t=n[r],i=!t.validEnd,a=[];for(let e=0;e<t.next.length;e++){let{type:r,next:o}=t.next[e];a.push(r.name),i&&!(r.isText||r.hasRequiredAttrs())&&(i=!1),-1==n.indexOf(o)&&n.push(o)}i&&e.err("Only non-generatable nodes ("+a.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}(o,i),o}matchType(t){for(let e=0;e<this.next.length;e++)if(this.next[e].type==t)return this.next[e].next;return null}matchFragment(t,e=0,r=t.childCount){let n=this;for(let i=e;n&&i<r;i++)n=n.matchType(t.child(i).type);return n}get inlineContent(){return 0!=this.next.length&&this.next[0].type.isInline}get defaultType(){for(let t=0;t<this.next.length;t++){let{type:e}=this.next[t];if(!(e.isText||e.hasRequiredAttrs()))return e}return null}compatible(t){for(let e=0;e<this.next.length;e++)for(let r=0;r<t.next.length;r++)if(this.next[e].type==t.next[r].type)return!0;return!1}fillBefore(t,e=!1,r=0){let n=[this];return function i(a,s){let l=a.matchFragment(t,r);if(l&&(!e||l.validEnd))return o.from(s.map(t=>t.createAndFill()));for(let t=0;t<a.next.length;t++){let{type:e,next:r}=a.next[t];if(!(e.isText||e.hasRequiredAttrs())&&-1==n.indexOf(r)){n.push(r);let t=i(r,s.concat(e));if(t)return t}}return null}(this,[])}findWrapping(t){for(let e=0;e<this.wrapCache.length;e+=2)if(this.wrapCache[e]==t)return this.wrapCache[e+1];let e=this.computeWrapping(t);return this.wrapCache.push(t,e),e}computeWrapping(t){let e=Object.create(null),r=[{match:this,type:null,via:null}];for(;r.length;){let n=r.shift(),i=n.match;if(i.matchType(t)){let t=[];for(let e=n;e.type;e=e.via)t.push(e.type);return t.reverse()}for(let t=0;t<i.next.length;t++){let{type:a,next:o}=i.next[t];a.isLeaf||a.hasRequiredAttrs()||a.name in e||n.type&&!o.validEnd||(r.push({match:a.contentMatch,type:a,via:n}),e[a.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(t){if(t>=this.next.length)throw RangeError(`There's no ${t}th edge in this content match`);return this.next[t]}toString(){let t=[];return!function e(r){t.push(r);for(let n=0;n<r.next.length;n++)-1==t.indexOf(r.next[n].next)&&e(r.next[n].next)}(this),t.map((e,r)=>{let n=r+(e.validEnd?"*":" ")+" ";for(let r=0;r<e.next.length;r++)n+=(r?", ":"")+e.next[r].type.name+"->"+t.indexOf(e.next[r].next);return n}).join("\n")}}L.empty=new L(!0);class _{constructor(t,e){this.string=t,this.nodeTypes=e,this.inline=null,this.pos=0,this.tokens=t.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(t){return this.next==t&&(this.pos++||!0)}err(t){throw SyntaxError(t+" (in content expression '"+this.string+"')")}}function T(t){/\D/.test(t.next)&&t.err("Expected number, got '"+t.next+"'");let e=Number(t.next);return t.pos++,e}function P(t,e){return e-t}function I(t,e){let r=[];return function e(n){let i=t[n];if(1==i.length&&!i[0].term)return e(i[0].to);r.push(n);for(let t=0;t<i.length;t++){let{term:n,to:a}=i[t];n||-1!=r.indexOf(a)||e(a)}}(e),r.sort(P)}function C(t){let e=Object.create(null);for(let r in t){let n=t[r];if(!n.hasDefault)return null;e[r]=n.default}return e}function k(t,e){let r=Object.create(null);for(let n in t){let i=e&&e[n];if(void 0===i){let e=t[n];if(e.hasDefault)i=e.default;else throw RangeError("No value supplied for attribute "+n)}r[n]=i}return r}function F(t,e,r,n){for(let i in e)if(!(i in t))throw RangeError(`Unsupported attribute ${i} for ${r} of type ${n}`);for(let r in t)t[r].validate&&t[r].validate(e[r])}function X(t,e){let r=Object.create(null);if(e)for(let n in e)r[n]=new W(t,n,e[n]);return r}class U{constructor(t,e,r){this.name=t,this.schema=e,this.spec=r,this.markSet=null,this.groups=r.group?r.group.split(" "):[],this.attrs=X(t,r.attrs),this.defaultAttrs=C(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(r.inline||"text"==t),this.isText="text"==t}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==L.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(t){return this.groups.indexOf(t)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let t in this.attrs)if(this.attrs[t].isRequired)return!0;return!1}compatibleContent(t){return this==t||this.contentMatch.compatible(t.contentMatch)}computeAttrs(t){return!t&&this.defaultAttrs?this.defaultAttrs:k(this.attrs,t)}create(t=null,e,r){if(this.isText)throw Error("NodeType.create can't construct text nodes");return new w(this,this.computeAttrs(t),o.from(e),u.setFrom(r))}createChecked(t=null,e,r){return e=o.from(e),this.checkContent(e),new w(this,this.computeAttrs(t),e,u.setFrom(r))}createAndFill(t=null,e,r){if(t=this.computeAttrs(t),(e=o.from(e)).size){let t=this.contentMatch.fillBefore(e);if(!t)return null;e=t.append(e)}let n=this.contentMatch.matchFragment(e),i=n&&n.fillBefore(o.empty,!0);return i?new w(this,t,e.append(i),u.setFrom(r)):null}validContent(t){let e=this.contentMatch.matchFragment(t);if(!e||!e.validEnd)return!1;for(let e=0;e<t.childCount;e++)if(!this.allowsMarks(t.child(e).marks))return!1;return!0}checkContent(t){if(!this.validContent(t))throw RangeError(`Invalid content for node ${this.name}: ${t.toString().slice(0,50)}`)}checkAttrs(t){F(this.attrs,t,"node",this.name)}allowsMarkType(t){return null==this.markSet||this.markSet.indexOf(t)>-1}allowsMarks(t){if(null==this.markSet)return!0;for(let e=0;e<t.length;e++)if(!this.allowsMarkType(t[e].type))return!1;return!0}allowedMarks(t){let e;if(null==this.markSet)return t;for(let r=0;r<t.length;r++)this.allowsMarkType(t[r].type)?e&&e.push(t[r]):e||(e=t.slice(0,r));return e?e.length?e:u.none:t}static compile(t,e){let r=Object.create(null);t.forEach((t,n)=>r[t]=new U(t,e,n));let n=e.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 t in r.text.attrs)throw RangeError("The text node type should not have attributes");return r}}class W{constructor(t,e,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 ${e} on type ${t}, got ${i}`)}):r.validate}get isRequired(){return!this.hasDefault}}class V{constructor(t,e,r,n){this.name=t,this.rank=e,this.schema=r,this.spec=n,this.attrs=X(t,n.attrs),this.excluded=null;let i=C(this.attrs);this.instance=i?new u(this,i):null}create(t=null){return!t&&this.instance?this.instance:new u(this,k(this.attrs,t))}static compile(t,e){let r=Object.create(null),n=0;return t.forEach((t,i)=>r[t]=new V(t,n++,e,i)),r}removeFromSet(t){for(var e=0;e<t.length;e++)t[e].type==this&&(t=t.slice(0,e).concat(t.slice(e+1)),e--);return t}isInSet(t){for(let e=0;e<t.length;e++)if(t[e].type==this)return t[e]}checkAttrs(t){F(this.attrs,t,"mark",this.name)}excludes(t){return this.excluded.indexOf(t)>-1}}class E{constructor(t){this.linebreakReplacement=null,this.cached=Object.create(null);let e=this.spec={};for(let r in t)e[r]=t[r];e.nodes=n.from(t.nodes),e.marks=n.from(t.marks||{}),this.nodes=U.compile(this.spec.nodes,this),this.marks=V.compile(this.spec.marks,this);let r=Object.create(null);for(let t in this.nodes){if(t in this.marks)throw RangeError(t+" can not be both a node and a mark");let e=this.nodes[t],n=e.spec.content||"",i=e.spec.marks;if(e.contentMatch=r[n]||(r[n]=L.parse(n,this.nodes)),e.inlineContent=e.contentMatch.inlineContent,e.spec.linebreakReplacement){if(this.linebreakReplacement)throw RangeError("Multiple linebreak nodes defined");if(!e.isInline||!e.isLeaf)throw RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=e}e.markSet="_"==i?null:i?Y(this,i.split(" ")):""!=i&&e.inlineContent?null:[]}for(let t in this.marks){let e=this.marks[t],r=e.spec.excludes;e.excluded=null==r?[e]:""==r?[]:Y(this,r.split(" "))}this.nodeFromJSON=t=>w.fromJSON(this,t),this.markFromJSON=t=>u.fromJSON(this,t),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(t,e=null,r,n){if("string"==typeof t)t=this.nodeType(t);else if(t instanceof U){if(t.schema!=this)throw RangeError("Node type from different schema used ("+t.name+")")}else throw RangeError("Invalid node type: "+t);return t.createChecked(e,r,n)}text(t,e){let r=this.nodes.text;return new O(r,r.defaultAttrs,t,u.setFrom(e))}mark(t,e){return"string"==typeof t&&(t=this.marks[t]),t.create(e)}nodeType(t){let e=this.nodes[t];if(!e)throw RangeError("Unknown node type: "+t);return e}}function Y(t,e){let r=[];for(let n=0;n<e.length;n++){let i=e[n],a=t.marks[i],o=a;if(a)r.push(a);else for(let e in t.marks){let n=t.marks[e];("_"==i||n.spec.group&&n.spec.group.split(" ").indexOf(i)>-1)&&r.push(o=n)}if(!o)throw SyntaxError("Unknown mark type: '"+e[n]+"'")}return r}class D{constructor(t,e){this.schema=t,this.rules=e,this.tags=[],this.styles=[];let r=this.matchedStyles=[];e.forEach(t=>{if(null!=t.tag)this.tags.push(t);else if(null!=t.style){let e=/[^=]*/.exec(t.style)[0];0>r.indexOf(e)&&r.push(e),this.styles.push(t)}}),this.normalizeLists=!this.tags.some(e=>{if(!/^(ul|ol)\b/.test(e.tag)||!e.node)return!1;let r=t.nodes[e.node];return r.contentMatch.matchType(r)})}parse(t,e={}){let r=new G(this,e,!1);return r.addAll(t,u.none,e.from,e.to),r.finish()}parseSlice(t,e={}){let r=new G(this,e,!0);return r.addAll(t,u.none,e.from,e.to),p.maxOpen(r.finish())}matchTag(t,e,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=t,i=r.tag,(n.matches||n.msMatchesSelector||n.webkitMatchesSelector||n.mozMatchesSelector).call(n,i)&&(void 0===r.namespace||t.namespaceURI==r.namespace)&&(!r.context||e.matchesContext(r.context))){if(r.getAttrs){let e=r.getAttrs(t);if(!1===e)continue;r.attrs=e||void 0}return r}}}matchStyle(t,e,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(t)&&(!n.context||r.matchesContext(n.context))&&(!(a.length>t.length)||61==a.charCodeAt(t.length)&&a.slice(t.length+1)==e)){if(n.getAttrs){let t=n.getAttrs(e);if(!1===t)continue;n.attrs=t||void 0}return n}}}static schemaRules(t){let e=[];function r(t){let r=null==t.priority?50:t.priority,n=0;for(;n<e.length;n++){let t=e[n];if((null==t.priority?50:t.priority)<r)break}e.splice(n,0,t)}for(let e in t.marks){let n=t.marks[e].spec.parseDOM;n&&n.forEach(t=>{r(t=H(t)),t.mark||t.ignore||t.clearMark||(t.mark=e)})}for(let e in t.nodes){let n=t.nodes[e].spec.parseDOM;n&&n.forEach(t=>{r(t=H(t)),t.node||t.ignore||t.mark||(t.node=e)})}return e}static fromSchema(t){return t.cached.domParser||(t.cached.domParser=new D(t,D.schemaRules(t)))}}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},Z={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},B={ol:!0,ul:!0};function K(t,e,r){return null!=e?!!e|2*("full"===e):t&&"pre"==t.whitespace?3:-5&r}class ${constructor(t,e,r,n,i,a){this.type=t,this.attrs=e,this.marks=r,this.solid=n,this.options=a,this.content=[],this.activeMarks=u.none,this.match=i||(4&a?null:t.contentMatch)}findWrapping(t){if(!this.match){if(!this.type)return[];let e=this.type.contentMatch.fillBefore(o.from(t));if(e)this.match=this.type.contentMatch.matchFragment(e);else{let e=this.type.contentMatch,r;return(r=e.findWrapping(t.type))?(this.match=e,r):null}}return this.match.findWrapping(t.type)}finish(t){if(!(1&this.options)){let t=this.content[this.content.length-1],e;t&&t.isText&&(e=/[ \t\r\n\u000c]+$/.exec(t.text))&&(t.text.length==e[0].length?this.content.pop():this.content[this.content.length-1]=t.withText(t.text.slice(0,t.text.length-e[0].length)))}let e=o.from(this.content);return!t&&this.match&&(e=e.append(this.match.fillBefore(o.empty,!0))),this.type?this.type.create(this.attrs,e,this.marks):e}inlineContext(t){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:t.parentNode&&!Q.hasOwnProperty(t.parentNode.nodeName.toLowerCase())}}class G{constructor(t,e,r){this.parser=t,this.options=e,this.isOpen=r,this.open=0,this.localPreserveWS=!1;let n=e.topNode,i,a=K(null,e.preserveWhitespace,0)|4*!!r;i=n?new $(n.type,n.attrs,u.none,!0,e.topMatch||n.type.contentMatch,a):r?new $(null,null,u.none,!0,null,a):new $(t.schema.topNodeType,null,u.none,!0,null,a),this.nodes=[i],this.find=e.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(t,e){3==t.nodeType?this.addTextNode(t,e):1==t.nodeType&&this.addElement(t,e)}addTextNode(t,e){let r=t.nodeValue,n=this.top,i=2&n.options?"full":this.localPreserveWS||(1&n.options)>0,{schema:a}=this.parser;if("full"===i||n.inlineContext(t)||/[^ \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 t=r.split(/\r?\n|\r/);for(let r=0;r<t.length;r++)r&&this.insertNode(a.linebreakReplacement.create(),e,!0),t[r]&&this.insertNode(a.text(t[r]),e,!/\S/.test(t[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 e=n.content[n.content.length-1],i=t.previousSibling;(!e||i&&"BR"==i.nodeName||e.isText&&/[ \t\r\n\u000c]$/.test(e.text))&&(r=r.slice(1))}r&&this.insertNode(a.text(r),e,!/\S/.test(r)),this.findInText(t)}else this.findInside(t)}addElement(t,e,r){let n=this.localPreserveWS,i=this.top;("PRE"==t.tagName||/pre/.test(t.style&&t.style.whiteSpace))&&(this.localPreserveWS=!0);let a=t.nodeName.toLowerCase(),o;B.hasOwnProperty(a)&&this.parser.normalizeLists&&function(t){for(let e=t.firstChild,r=null;e;e=e.nextSibling){let t=1==e.nodeType?e.nodeName.toLowerCase():null;t&&B.hasOwnProperty(t)&&r?(r.appendChild(e),e=r):"li"==t?r=e:t&&(r=null)}}(t);let s=this.options.ruleFromNode&&this.options.ruleFromNode(t)||(o=this.parser.matchTag(t,this,r));o:if(s?s.ignore:Z.hasOwnProperty(a))this.findInside(t),this.ignoreFallback(t,e);else if(!s||s.skip||s.closeParent){s&&s.closeParent?this.open=Math.max(0,this.open-1):s&&s.skip.nodeType&&(t=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(!t.firstChild){this.leafFallback(t,e);break o}let o=s&&s.skip?e:this.readStyles(t,e);o&&this.addAll(t,o),r&&this.sync(i),this.needsBlock=n}else{let r=this.readStyles(t,e);r&&this.addElementByRule(t,s,r,!1===s.consuming?o:void 0)}this.localPreserveWS=n}leafFallback(t,e){"BR"==t.nodeName&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(t.ownerDocument.createTextNode("\n"),e)}ignoreFallback(t,e){"BR"!=t.nodeName||this.top.type&&this.top.type.inlineContent||this.findPlace(this.parser.schema.text("-"),e,!0)}readStyles(t,e){let r=t.style;if(r&&r.length)for(let t=0;t<this.parser.matchedStyles.length;t++){let n=this.parser.matchedStyles[t],i=r.getPropertyValue(n);if(i)for(let t;;){let r=this.parser.matchStyle(n,i,this,t);if(!r)break;if(r.ignore)return null;if(e=r.clearMark?e.filter(t=>!r.clearMark(t)):e.concat(this.parser.schema.marks[r.mark].create(r.attrs)),!1===r.consuming)t=r;else break}}return e}addElementByRule(t,e,r,n){let i,a;if(e.node)if((a=this.parser.schema.nodes[e.node]).isLeaf)this.insertNode(a.create(e.attrs),r,"BR"==t.nodeName)||this.leafFallback(t,r);else{let t=this.enter(a,e.attrs||null,r,e.preserveWhitespace);t&&(i=!0,r=t)}else{let t=this.parser.schema.marks[e.mark];r=r.concat(t.create(e.attrs))}let o=this.top;if(a&&a.isLeaf)this.findInside(t);else if(n)this.addElement(t,r,n);else if(e.getContent)this.findInside(t),e.getContent(t,this.parser.schema).forEach(t=>this.insertNode(t,r,!1));else{let n=t;"string"==typeof e.contentElement?n=t.querySelector(e.contentElement):"function"==typeof e.contentElement?n=e.contentElement(t):e.contentElement&&(n=e.contentElement),this.findAround(t,n,!0),this.addAll(n,r),this.findAround(t,n,!1)}i&&this.sync(o)&&this.open--}addAll(t,e,r,n){let i=r||0;for(let a=r?t.childNodes[r]:t.firstChild,o=null==n?null:t.childNodes[n];a!=o;a=a.nextSibling,++i)this.findAtPoint(t,i),this.addDOM(a,e);this.findAtPoint(t,i)}findPlace(t,e,r){let n,i;for(let e=this.open,a=0;e>=0;e--){let o=this.nodes[e],s=o.findWrapping(t);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 t=0;t<n.length;t++)e=this.enterInner(n[t],null,e,!1);return e}insertNode(t,e,r){if(t.isInline&&this.needsBlock&&!this.top.type){let t=this.textblockFromContext();t&&(e=this.enterInner(t,null,e))}let n=this.findPlace(t,e,r);if(n){this.closeExtra();let e=this.top;e.match&&(e.match=e.match.matchType(t.type));let r=u.none;for(let i of n.concat(t.marks))(e.type?e.type.allowsMarkType(i.type):z(i.type,t.type))&&(r=i.addToSet(r));return e.content.push(t.mark(r)),!0}return!1}enter(t,e,r,n){let i=this.findPlace(t.create(e),r,!1);return i&&(i=this.enterInner(t,e,r,!0,n)),i}enterInner(t,e,r,n=!1,i){this.closeExtra();let a=this.top;a.match=a.match&&a.match.matchType(t);let o=K(t,i,a.options);4&a.options&&0==a.content.length&&(o|=4);let s=u.none;return r=r.filter(e=>(a.type?!a.type.allowsMarkType(e.type):!z(e.type,t))||(s=e.addToSet(s),!1)),this.nodes.push(new $(t,e,s,n,null,o)),this.open++,r}closeExtra(t=!1){let e=this.nodes.length-1;if(e>this.open){for(;e>this.open;e--)this.nodes[e-1].content.push(this.nodes[e].finish(t));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(t){for(let e=this.open;e>=0;e--)if(this.nodes[e]==t)return this.open=e,!0;else this.localPreserveWS&&(this.nodes[e].options|=1);return!1}get currentPos(){this.closeExtra();let t=0;for(let e=this.open;e>=0;e--){let r=this.nodes[e].content;for(let e=r.length-1;e>=0;e--)t+=r[e].nodeSize;e&&t++}return t}findAtPoint(t,e){if(this.find)for(let r=0;r<this.find.length;r++)this.find[r].node==t&&this.find[r].offset==e&&(this.find[r].pos=this.currentPos)}findInside(t){if(this.find)for(let e=0;e<this.find.length;e++)null==this.find[e].pos&&1==t.nodeType&&t.contains(this.find[e].node)&&(this.find[e].pos=this.currentPos)}findAround(t,e,r){if(t!=e&&this.find)for(let n=0;n<this.find.length;n++)null==this.find[n].pos&&1==t.nodeType&&t.contains(this.find[n].node)&&e.compareDocumentPosition(this.find[n].node)&(r?2:4)&&(this.find[n].pos=this.currentPos)}findInText(t){if(this.find)for(let e=0;e<this.find.length;e++)this.find[e].node==t&&(this.find[e].pos=this.currentPos-(t.nodeValue.length-this.find[e].offset))}matchesContext(t){if(t.indexOf("|")>-1)return t.split(/\s*\|\s*/).some(this.matchesContext,this);let e=t.split("/"),r=this.options.context,n=!this.isOpen&&(!r||r.parent.type==this.nodes[0].type),i=-(r?r.depth+1:0)+ +!n,a=(t,o)=>{for(;t>=0;t--){let s=e[t];if(""==s){if(t==e.length-1||0==t)continue;for(;o>=i;o--)if(a(t-1,o))return!0;return!1}{let t=o>0||0==o&&n?this.nodes[o].type:r&&o>=i?r.node(o-i).type:null;if(!t||t.name!=s&&!t.isInGroup(s))return!1;o--}}return!0};return a(e.length-1,this.open)}textblockFromContext(){let t=this.options.context;if(t)for(let e=t.depth;e>=0;e--){let r=t.node(e).contentMatchAt(t.indexAfter(e)).defaultType;if(r&&r.isTextblock&&r.defaultAttrs)return r}for(let t in this.parser.schema.nodes){let e=this.parser.schema.nodes[t];if(e.isTextblock&&e.defaultAttrs)return e}}}function H(t){let e={};for(let r in t)e[r]=t[r];return e}function z(t,e){let r=e.schema.nodes;for(let n in r){let i=r[n];if(!i.allowsMarkType(t))continue;let a=[],o=t=>{a.push(t);for(let r=0;r<t.edgeCount;r++){let{type:n,next:i}=t.edge(r);if(n==e||0>a.indexOf(i)&&o(i))return!0}};if(o(i.contentMatch))return!0}}class J{constructor(t,e){this.nodes=t,this.marks=e}serializeFragment(t,e={},r){r||(r=q(e).createDocumentFragment());let n=r,i=[];return t.forEach(t=>{if(i.length||t.marks.length){let r=0,a=0;for(;r<i.length&&a<t.marks.length;){let e=t.marks[a];if(!this.marks[e.type.name]){a++;continue}if(!e.eq(i[r][0])||!1===e.type.spec.spanning)break;r++,a++}for(;r<i.length;)n=i.pop()[1];for(;a<t.marks.length;){let r=t.marks[a++],o=this.serializeMark(r,t.isInline,e);o&&(i.push([r,n]),n.appendChild(o.dom),n=o.contentDOM||o.dom)}}n.appendChild(this.serializeNodeInner(t,e))}),r}serializeNodeInner(t,e){if(t.isText)return q(e).createTextNode(t.text);let{dom:r,contentDOM:n}=te(q(e),this.nodes[t.type.name](t),null,t.attrs);if(n){if(t.isLeaf)throw RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(t.content,e,n)}return r}serializeNode(t,e={}){let r=this.serializeNodeInner(t,e);for(let n=t.marks.length-1;n>=0;n--){let i=this.serializeMark(t.marks[n],t.isInline,e);i&&((i.contentDOM||i.dom).appendChild(r),r=i.dom)}return r}serializeMark(t,e,r={}){let n=this.marks[t.type.name];return n&&te(q(r),n(t,e),null,t.attrs)}static renderSpec(t,e,r=null,n){return"string"==typeof e?{dom:t.createTextNode(e)}:te(t,e,r,n)}static fromSchema(t){return t.cached.domSerializer||(t.cached.domSerializer=new J(this.nodesFromSchema(t),this.marksFromSchema(t)))}static nodesFromSchema(t){let e=j(t.nodes);return e.text||(e.text=t=>t.text),e}static marksFromSchema(t){return j(t.marks)}}function j(t){let e={};for(let r in t){let n=t[r].spec.toDOM;n&&(e[r]=n)}return e}function q(t){return t.document||window.document}let tt=new WeakMap;function te(t,e,r,n){let i,a,o;if(1==e.nodeType)return{dom:e};if(e.dom&&1==e.dom.nodeType)return e;let s=e[0],l;if("string"!=typeof s)throw RangeError("Invalid array passed to renderSpec");if(n&&(void 0===(a=tt.get(n))&&tt.set(n,(o=null,!function t(e){if(e&&"object"==typeof e)if(Array.isArray(e))if("string"==typeof e[0])o||(o=[]),o.push(e);else for(let r=0;r<e.length;r++)t(e[r]);else for(let r in e)t(e[r])}(n),a=o)),l=a)&&l.indexOf(e)>-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?t.createElementNS(r,s):t.createElement(s),h=e[1],p=1;if(h&&"object"==typeof h&&null==h.nodeType&&!Array.isArray(h)){for(let t in p=2,h)if(null!=h[t]){let e=t.indexOf(" ");e>0?u.setAttributeNS(t.slice(0,e),t.slice(e+1),h[t]):"style"==t&&u.style?u.style.cssText=h[t]:u.setAttribute(t,h[t])}}for(let a=p;a<e.length;a++){let o=e[a];if(0===o){if(a<e.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(t.createTextNode(o));else{let{dom:e,contentDOM:a}=te(t,o,r,n);if(u.appendChild(e),a){if(i)throw RangeError("Multiple content holes");i=a}}}return{dom:u,contentDOM:i}}},57644(t,e,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:t=>["h"+t.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:t=>({src:t.getAttribute("src"),title:t.getAttribute("title"),alt:t.getAttribute("alt")})}],toDOM(t){let{src:e,alt:r,title:n}=t.attrs;return["img",{src:e,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:t=>({href:t.getAttribute("href"),title:t.getAttribute("title")})}],toDOM(t){let{href:e,title:r}=t.attrs;return["a",{href:e,title:r},0]}},em:{parseDOM:[{tag:"i"},{tag:"em"},{style:"font-style=italic"},{style:"font-style=normal",clearMark:t=>"em"==t.type.name}],toDOM:()=>u},strong:{parseDOM:[{tag:"strong"},{tag:"b",getAttrs:t=>"normal"!=t.style.fontWeight&&null},{style:"font-weight=400",clearMark:t=>"strong"==t.type.name},{style:"font-weight",getAttrs:t=>/^(bold(er)?|[5-9]\d{2,})$/.test(t)&&null}],toDOM:()=>h},code:{code:!0,parseDOM:[{tag:"code"}],toDOM:()=>p}};new n.Sj({nodes:c,marks:d}),r.d(e,{},{Z8:d,a9:c})},3772(t,e,r){var n=r(38262),i=r(96294),a=r(42845);let o=["li",0];function s(t,e=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(t,e,r,a=null){let o=!1,s=e,l=e.$from.doc;if(e.depth>=2&&e.$from.node(e.depth-1).type.compatibleContent(r)&&0==e.startIndex){if(0==e.$from.index(e.depth-1))return!1;let t=l.resolve(e.start-2);s=new i.u$(t,t,e.depth),e.endIndex<e.parent.childCount&&(e=new i.u$(e.$from,l.resolve(e.$to.end(e.depth)),e.depth)),o=!0}let c=(0,n.oM)(s,r,a,e);return!!c&&(t&&function(t,e,r,a,o){let s=i.FK.empty;for(let t=r.length-1;t>=0;t--)s=i.FK.from(r[t].type.create(r[t].attrs,s));t.step(new n.Wg(e.start-2*!!a,e.end,e.start,e.end,new i.Ji(s,0,0),r.length,!0));let l=0;for(let t=0;t<r.length;t++)r[t].type==o&&(l=t+1);let c=r.length-l,u=e.start+r.length-2*!!a,h=e.parent;for(let r=e.startIndex,i=e.endIndex,a=!0;r<i;r++,a=!1)!a&&(0,n.zy)(t.doc,u,c)&&(t.split(u,c),u+=2*c),u+=h.child(r).nodeSize}(t,e,c,o,r),!0)}(c,l,t,e)&&(a&&a(c.scrollIntoView()),!0)}}function l(t,e){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!=t)return!1;if(0==s.parent.content.size&&s.node(-1).childCount==s.indexAfter(-1)){if(3==s.depth||s.node(-3).type!=t||s.index(-2)!=s.node(-2).childCount-1)return!1;if(o){let e=i.FK.empty,n=s.index(-1)?1:s.index(-2)?2:3;for(let t=s.depth-n;t>=s.depth-3;t--)e=i.FK.from(s.node(t).copy(e));let l=s.indexAfter(-1)<s.node(-2).childCount?1:s.indexAfter(-2)<s.node(-3).childCount?2:3;e=e.append(i.FK.from(t.createAndFill()));let c=s.before(s.depth-(n-1)),u=r.tr.replace(c,s.after(-l),new i.Ji(e,4-n,0)),h=-1;u.doc.nodesBetween(c,u.doc.content.size,(t,e)=>{if(h>-1)return!1;t.isTextblock&&0==t.content.size&&(h=e+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?[e?{type:t,attrs:e}: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(t){return function(e,r){let{$from:a,$to:o}=e.selection,s=a.blockRange(o,e=>e.childCount>0&&e.firstChild.type==t);return!!s&&(!r||(a.node(s.depth-1).type==t?function(t,e,r,a){let o=t.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),e(o.scrollIntoView()),!0}(e,r,t,s):function(t,e,r){let a=t.tr,o=r.parent;for(let t=r.end,e=r.endIndex-1,n=r.startIndex;e>n;e--)t-=o.child(e).nodeSize,a.delete(t-1,t+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)),e(a.scrollIntoView()),!0}(e,r,s)))}}function u(t){return function(e,r){let{$from:a,$to:o}=e.selection,s=a.blockRange(o,e=>e.childCount>0&&e.firstChild.type==t);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!=t)return!1;if(r){let a=u.lastChild&&u.lastChild.type==c.type,o=i.FK.from(a?t.create():null),l=new i.Ji(i.FK.from(t.create(null,i.FK.from(c.type.create(null,o)))),a?3:1,0),h=s.start,p=s.end;r(e.tr.step(new n.Wg(h-(a?3:1),p,h,p,l,1,!0)).scrollIntoView())}return!0}}r.d(e,{$B:()=>u,Sd:()=>s,T2:()=>c,wn:()=>l},{Aw:{parseDOM:[{tag:"li"}],toDOM:()=>o,defining:!0}})},42845(t,e,r){var n=r(96294),i=r(38262);let a=Object.create(null);class o{constructor(t,e,r){this.$anchor=t,this.$head=e,this.ranges=r||[new s(t.min(e),t.max(e))]}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 t=this.ranges;for(let e=0;e<t.length;e++)if(t[e].$from.pos!=t[e].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(t,e=n.Ji.empty){let r=e.content.lastChild,i=null;for(let t=0;t<e.openEnd;t++)i=r,r=r.lastChild;let a=t.steps.length,o=this.ranges;for(let s=0;s<o.length;s++){let{$from:l,$to:c}=o[s],u=t.mapping.slice(a);t.replaceRange(u.map(l.pos),u.map(c.pos),s?n.Ji.empty:e),0==s&&A(t,a,(r?r.isInline:i&&i.isTextblock)?-1:1)}}replaceWith(t,e){let r=t.steps.length,n=this.ranges;for(let i=0;i<n.length;i++){let{$from:a,$to:o}=n[i],s=t.mapping.slice(r),l=s.map(a.pos),c=s.map(o.pos);i?t.deleteRange(l,c):(t.replaceRangeWith(l,c,e),A(t,r,e.isInline?-1:1))}}static findFrom(t,e,r=!1){let n=t.parent.inlineContent?new u(t):g(t.node(0),t.parent,t.pos,t.index(),e,r);if(n)return n;for(let n=t.depth-1;n>=0;n--){let i=e<0?g(t.node(0),t.node(n),t.before(n+1),t.index(n),e,r):g(t.node(0),t.node(n),t.after(n+1),t.index(n)+1,e,r);if(i)return i}return null}static near(t,e=1){return this.findFrom(t,e)||this.findFrom(t,-e)||new f(t.node(0))}static atStart(t){return g(t,t,0,0,1)||new f(t)}static atEnd(t){return g(t,t,t.content.size,t.childCount,-1)||new f(t)}static fromJSON(t,e){if(!e||!e.type)throw RangeError("Invalid input for Selection.fromJSON");let r=a[e.type];if(!r)throw RangeError(`No selection type ${e.type} defined`);return r.fromJSON(t,e)}static jsonID(t,e){if(t in a)throw RangeError("Duplicate use of selection JSON ID "+t);return a[t]=e,e.prototype.jsonID=t,e}getBookmark(){return u.between(this.$anchor,this.$head).getBookmark()}}o.prototype.visible=!0;class s{constructor(t,e){this.$from=t,this.$to=e}}let l=!1;function c(t){l||t.parent.inlineContent||(l=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+t.parent.type.name+")"))}class u extends o{constructor(t,e=t){c(t),c(e),super(t,e)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(t,e){let r=t.resolve(e.map(this.head));if(!r.parent.inlineContent)return o.near(r);let n=t.resolve(e.map(this.anchor));return new u(n.parent.inlineContent?n:r,r)}replace(t,e=n.Ji.empty){if(super.replace(t,e),e==n.Ji.empty){let e=this.$from.marksAcross(this.$to);e&&t.ensureMarks(e)}}eq(t){return t instanceof u&&t.anchor==this.anchor&&t.head==this.head}getBookmark(){return new h(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(t,e){if("number"!=typeof e.anchor||"number"!=typeof e.head)throw RangeError("Invalid input for TextSelection.fromJSON");return new u(t.resolve(e.anchor),t.resolve(e.head))}static create(t,e,r=e){let n=t.resolve(e);return new this(n,r==e?n:t.resolve(r))}static between(t,e,r){let n=t.pos-e.pos;if((!r||n)&&(r=n>=0?1:-1),!e.parent.inlineContent){let t=o.findFrom(e,r,!0)||o.findFrom(e,-r,!0);if(!t)return o.near(e,r);e=t.$head}return t.parent.inlineContent||(0==n?t=e:(t=(o.findFrom(t,-r,!0)||o.findFrom(t,r,!0)).$anchor).pos<e.pos!=n<0&&(t=e)),new u(t,e)}}o.jsonID("text",u);class h{constructor(t,e){this.anchor=t,this.head=e}map(t){return new h(t.map(this.anchor),t.map(this.head))}resolve(t){return u.between(t.resolve(this.anchor),t.resolve(this.head))}}class p extends o{constructor(t){let e=t.nodeAfter,r=t.node(0).resolve(t.pos+e.nodeSize);super(t,r),this.node=e}map(t,e){let{deleted:r,pos:n}=e.mapResult(this.anchor),i=t.resolve(n);return r?o.near(i):new p(i)}content(){return new n.Ji(n.FK.from(this.node),0,0)}eq(t){return t instanceof p&&t.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new d(this.anchor)}static fromJSON(t,e){if("number"!=typeof e.anchor)throw RangeError("Invalid input for NodeSelection.fromJSON");return new p(t.resolve(e.anchor))}static create(t,e){return new p(t.resolve(e))}static isSelectable(t){return!t.isText&&!1!==t.type.spec.selectable}}p.prototype.visible=!1,o.jsonID("node",p);class d{constructor(t){this.anchor=t}map(t){let{deleted:e,pos:r}=t.mapResult(this.anchor);return e?new h(r,r):new d(r)}resolve(t){let e=t.resolve(this.anchor),r=e.nodeAfter;return r&&p.isSelectable(r)?new p(e):o.near(e)}}class f extends o{constructor(t){super(t.resolve(0),t.resolve(t.content.size))}replace(t,e=n.Ji.empty){if(e==n.Ji.empty){t.delete(0,t.doc.content.size);let e=o.atStart(t.doc);e.eq(t.selection)||t.setSelection(e)}else super.replace(t,e)}toJSON(){return{type:"all"}}static fromJSON(t){return new f(t)}map(t){return new f(t)}eq(t){return t instanceof f}getBookmark(){return m}}o.jsonID("all",f);let m={map(){return this},resolve:t=>new f(t)};function g(t,e,r,n,i,a=!1){if(e.inlineContent)return u.create(t,r);for(let o=n-(i>0?0:1);i>0?o<e.childCount:o>=0;o+=i){let n=e.child(o);if(n.isAtom){if(!a&&p.isSelectable(n))return p.create(t,r-(i<0?n.nodeSize:0))}else{let e=g(t,n,r+i,i<0?n.childCount:0,i,a);if(e)return e}r+=n.nodeSize*i}return null}function A(t,e,r){let n,a=t.steps.length-1;if(a<e)return;let s=t.steps[a];(s instanceof i.Ln||s instanceof i.Wg)&&(t.mapping.maps[a].forEach((t,e,r,i)=>{null==n&&(n=i)}),t.setSelection(o.near(t.doc.resolve(n),r)))}class y extends i.dL{constructor(t){super(t.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=t.selection,this.storedMarks=t.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(t){if(t.$from.doc!=this.doc)throw RangeError("Selection passed to setSelection must point at the current document");return this.curSelection=t,this.curSelectionFor=this.steps.length,this.updated=(1|this.updated)&-3,this.storedMarks=null,this}get selectionSet(){return(1&this.updated)>0}setStoredMarks(t){return this.storedMarks=t,this.updated|=2,this}ensureMarks(t){return n.CU.sameSet(this.storedMarks||this.selection.$from.marks(),t)||this.setStoredMarks(t),this}addStoredMark(t){return this.ensureMarks(t.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(t){return this.ensureMarks(t.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(2&this.updated)>0}addStep(t,e){super.addStep(t,e),this.updated=-3&this.updated,this.storedMarks=null}setTime(t){return this.time=t,this}replaceSelection(t){return this.selection.replace(this,t),this}replaceSelectionWith(t,e=!0){let r=this.selection;return e&&(t=t.mark(this.storedMarks||(r.empty?r.$from.marks():r.$from.marksAcross(r.$to)||n.CU.none))),r.replaceWith(this,t),this}deleteSelection(){return this.selection.replace(this),this}insertText(t,e,r){let n=this.doc.type.schema;if(null==e)return t?this.replaceSelectionWith(n.text(t),!0):this.deleteSelection();{if(null==r&&(r=e),!t)return this.deleteRange(e,r);let i=this.storedMarks;if(!i){let t=this.doc.resolve(e);i=r==e?t.marks():t.marksAcross(this.doc.resolve(r))}return this.replaceRangeWith(e,r,n.text(t,i)),this.selection.empty||this.selection.to!=e+t.length||this.setSelection(o.near(this.selection.$to)),this}}setMeta(t,e){return this.meta["string"==typeof t?t:t.key]=e,this}getMeta(t){return this.meta["string"==typeof t?t:t.key]}get isGeneric(){for(let t in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=4,this}get scrolledIntoView(){return(4&this.updated)>0}}function v(t,e){return e&&t?t.bind(e):t}class R{constructor(t,e,r){this.name=t,this.init=v(e.init,r),this.apply=v(e.apply,r)}}let b=[new R("doc",{init:t=>t.doc||t.schema.topNodeType.createAndFill(),apply:t=>t.doc}),new R("selection",{init:(t,e)=>t.selection||o.atStart(e.doc),apply:t=>t.selection}),new R("storedMarks",{init:t=>t.storedMarks||null,apply:(t,e,r,n)=>n.selection.$cursor?t.storedMarks:null}),new R("scrollToSelection",{init:()=>0,apply:(t,e)=>t.scrolledIntoView?e+1:e})];class x{constructor(t,e){this.schema=t,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=b.slice(),e&&e.forEach(t=>{if(this.pluginsByKey[t.key])throw RangeError("Adding different instances of a keyed plugin ("+t.key+")");this.plugins.push(t),this.pluginsByKey[t.key]=t,t.spec.state&&this.fields.push(new R(t.key,t.spec.state,t))})}}class M{constructor(t){this.config=t}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(t){return this.applyTransaction(t).state}filterTransaction(t,e=-1){for(let r=0;r<this.config.plugins.length;r++)if(r!=e){let e=this.config.plugins[r];if(e.spec.filterTransaction&&!e.spec.filterTransaction.call(e,t,this))return!1}return!0}applyTransaction(t){if(!this.filterTransaction(t))return{state:this,transactions:[]};let e=[t],r=this.applyInner(t),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<e.length&&o.spec.appendTransaction.call(o,s?e.slice(s):e,l,r);if(c&&r.filterTransaction(c,a)){if(c.setMeta("appendedTransaction",t),!n){n=[];for(let t=0;t<this.config.plugins.length;t++)n.push(t<a?{state:r,n:e.length}:{state:this,n:0})}e.push(c),r=r.applyInner(c),i=!0}n&&(n[a]={state:r,n:e.length})}}if(!i)return{state:r,transactions:e}}}applyInner(t){if(!t.before.eq(this.doc))throw RangeError("Applying a mismatched transaction");let e=new M(this.config),r=this.config.fields;for(let n=0;n<r.length;n++){let i=r[n];e[i.name]=i.apply(t,this[i.name],this,e)}return e}get tr(){return new y(this)}static create(t){let e=new x(t.doc?t.doc.type.schema:t.schema,t.plugins),r=new M(e);for(let n=0;n<e.fields.length;n++)r[e.fields[n].name]=e.fields[n].init(t,r);return r}reconfigure(t){let e=new x(this.schema,t.plugins),r=e.fields,n=new M(e);for(let e=0;e<r.length;e++){let i=r[e].name;n[i]=this.hasOwnProperty(i)?this[i]:r[e].init(t,n)}return n}toJSON(t){let e={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(e.storedMarks=this.storedMarks.map(t=>t.toJSON())),t&&"object"==typeof t)for(let r in t){if("doc"==r||"selection"==r)throw RangeError("The JSON fields `doc` and `selection` are reserved");let n=t[r],i=n.spec.state;i&&i.toJSON&&(e[r]=i.toJSON.call(n,this[n.key]))}return e}static fromJSON(t,e,r){if(!e)throw RangeError("Invalid input for EditorState.fromJSON");if(!t.schema)throw RangeError("Required config field 'schema' missing");let i=new x(t.schema,t.plugins),a=new M(i);return i.fields.forEach(i=>{if("doc"==i.name)a.doc=n.bP.fromJSON(t.schema,e.doc);else if("selection"==i.name)a.selection=o.fromJSON(a.doc,e.selection);else if("storedMarks"==i.name)e.storedMarks&&(a.storedMarks=e.storedMarks.map(t.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(e,n)){a[i.name]=s.fromJSON.call(o,t,e[n],a);return}}a[i.name]=i.init(t,a)}}),a}}class S{constructor(t){this.spec=t,this.props={},t.props&&function t(e,r,n){for(let i in e){let a=e[i];a instanceof Function?a=a.bind(r):"handleDOMEvents"==i&&(a=t(a,r,{})),n[i]=a}return n}(t.props,this,this.props),this.key=t.key?t.key.key:O("plugin")}getState(t){return t[this.key]}}let w=Object.create(null);function O(t){return t in w?t+"$"+ ++w[t]:(w[t]=0,t+"$")}class N{constructor(t="key"){this.key=O(t)}get(t){return t.config.pluginsByKey[this.key]}getState(t){return t[this.key]}}r.d(e,{$t:()=>M,LN:()=>o,U3:()=>u,hs:()=>N,i5:()=>f,k_:()=>S,nh:()=>p,yn:()=>s})},38262(t,e,r){var n=r(96294);class i{constructor(t,e,r){this.pos=t,this.delInfo=e,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(t,e=!1){if(this.ranges=t,this.inverted=e,!t.length&&a.empty)return a.empty}recover(t){let e=0,r=65535&t;if(!this.inverted)for(let t=0;t<r;t++)e+=this.ranges[3*t+2]-this.ranges[3*t+1];return this.ranges[3*r]+e+(t-(65535&t))/65536}mapResult(t,e=1){return this._map(t,e,!1)}map(t,e=1){return this._map(t,e,!0)}_map(t,e,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>t)break;let c=this.ranges[s+a],u=this.ranges[s+o],h=l+c;if(t<=h){let a=c?t==l?-1:t==h?1:e:e,o=l+n+(a<0?0:u);if(r)return o;let p=t==(e<0?l:h)?null:s/3+(t-l)*65536,d=t==l?2:t==h?1:4;return(e<0?t!=l:t!=h)&&(d|=8),new i(o,d,p)}n+=u-c}return r?t+n:new i(t+n,0,null)}touches(t,e){let r=0,n=65535&e,i=this.inverted?2:1,a=this.inverted?1:2;for(let e=0;e<this.ranges.length;e+=3){let o=this.ranges[e]-(this.inverted?r:0);if(o>t)break;let s=this.ranges[e+i];if(t<=o+s&&e==3*n)return!0;r+=this.ranges[e+a]-s}return!1}forEach(t){let e=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+e],c=this.ranges[n+r];t(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(t){return 0==t?a.empty:new a(t<0?[0,-t,0]:[0,0,t])}}a.empty=new a([]);class o{constructor(t,e,r=0,n=t?t.length:0){this.mirror=e,this.from=r,this.to=n,this._maps=t||[],this.ownData=!(t||e)}get maps(){return this._maps}slice(t=0,e=this.maps.length){return new o(this._maps,this.mirror,t,e)}appendMap(t,e){this.ownData||(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),this.ownData=!0),this.to=this._maps.push(t),null!=e&&this.setMirror(this._maps.length-1,e)}appendMapping(t){for(let e=0,r=this._maps.length;e<t._maps.length;e++){let n=t.getMirror(e);this.appendMap(t._maps[e],null!=n&&n<e?r+n:void 0)}}getMirror(t){if(this.mirror){for(let e=0;e<this.mirror.length;e++)if(this.mirror[e]==t)return this.mirror[e+(e%2?-1:1)]}}setMirror(t,e){this.mirror||(this.mirror=[]),this.mirror.push(t,e)}appendMappingInverted(t){for(let e=t.maps.length-1,r=this._maps.length+t._maps.length;e>=0;e--){let n=t.getMirror(e);this.appendMap(t._maps[e].invert(),null!=n&&n>e?r-n-1:void 0)}}invert(){let t=new o;return t.appendMappingInverted(this),t}map(t,e=1){if(this.mirror)return this._map(t,e,!0);for(let r=this.from;r<this.to;r++)t=this._maps[r].map(t,e);return t}mapResult(t,e=1){return this._map(t,e,!1)}_map(t,e,r){let n=0;for(let r=this.from;r<this.to;r++){let i=this._maps[r].mapResult(t,e);if(null!=i.recover){let e=this.getMirror(r);if(null!=e&&e>r&&e<this.to){r=e,t=this._maps[e].recover(i.recover);continue}}n|=i.delInfo,t=i.pos}return r?t:new i(t,n,null)}}let s=Object.create(null);class l{getMap(){return a.empty}merge(t){return null}static fromJSON(t,e){if(!e||!e.stepType)throw RangeError("Invalid input for Step.fromJSON");let r=s[e.stepType];if(!r)throw RangeError(`No step type ${e.stepType} defined`);return r.fromJSON(t,e)}static jsonID(t,e){if(t in s)throw RangeError("Duplicate use of step JSON ID "+t);return s[t]=e,e.prototype.jsonID=t,e}}class c{constructor(t,e){this.doc=t,this.failed=e}static ok(t){return new c(t,null)}static fail(t){return new c(null,t)}static fromReplace(t,e,r,i){try{return c.ok(t.replace(e,r,i))}catch(t){if(t instanceof n.vI)return c.fail(t.message);throw t}}}function u(t,e,r){let i=[];for(let n=0;n<t.childCount;n++){let a=t.child(n);a.content.size&&(a=a.copy(u(a.content,e,a))),a.isInline&&(a=e(a,r,n)),i.push(a)}return n.FK.fromArray(i)}class h extends l{constructor(t,e,r){super(),this.from=t,this.to=e,this.mark=r}apply(t){let e=t.slice(this.from,this.to),r=t.resolve(this.from),i=r.node(r.sharedDepth(this.to)),a=new n.Ji(u(e.content,(t,e)=>t.isAtom&&e.type.allowsMarkType(this.mark.type)?t.mark(this.mark.addToSet(t.marks)):t,i),e.openStart,e.openEnd);return c.fromReplace(t,this.from,this.to,a)}invert(){return new p(this.from,this.to,this.mark)}map(t){let e=t.mapResult(this.from,1),r=t.mapResult(this.to,-1);return e.deleted&&r.deleted||e.pos>=r.pos?null:new h(e.pos,r.pos,this.mark)}merge(t){return t instanceof h&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new h(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,e){if("number"!=typeof e.from||"number"!=typeof e.to)throw RangeError("Invalid input for AddMarkStep.fromJSON");return new h(e.from,e.to,t.markFromJSON(e.mark))}}l.jsonID("addMark",h);class p extends l{constructor(t,e,r){super(),this.from=t,this.to=e,this.mark=r}apply(t){let e=t.slice(this.from,this.to),r=new n.Ji(u(e.content,t=>t.mark(this.mark.removeFromSet(t.marks)),t),e.openStart,e.openEnd);return c.fromReplace(t,this.from,this.to,r)}invert(){return new h(this.from,this.to,this.mark)}map(t){let e=t.mapResult(this.from,1),r=t.mapResult(this.to,-1);return e.deleted&&r.deleted||e.pos>=r.pos?null:new p(e.pos,r.pos,this.mark)}merge(t){return t instanceof p&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new p(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,e){if("number"!=typeof e.from||"number"!=typeof e.to)throw RangeError("Invalid input for RemoveMarkStep.fromJSON");return new p(e.from,e.to,t.markFromJSON(e.mark))}}l.jsonID("removeMark",p);class d extends l{constructor(t,e){super(),this.pos=t,this.mark=e}apply(t){let e=t.nodeAt(this.pos);if(!e)return c.fail("No node at mark step's position");let r=e.type.create(e.attrs,null,this.mark.addToSet(e.marks));return c.fromReplace(t,this.pos,this.pos+1,new n.Ji(n.FK.from(r),0,+!e.isLeaf))}invert(t){let e=t.nodeAt(this.pos);if(e){let t=this.mark.addToSet(e.marks);if(t.length==e.marks.length){for(let r=0;r<e.marks.length;r++)if(!e.marks[r].isInSet(t))return new d(this.pos,e.marks[r]);return new d(this.pos,this.mark)}}return new f(this.pos,this.mark)}map(t){let e=t.mapResult(this.pos,1);return e.deletedAfter?null:new d(e.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(t,e){if("number"!=typeof e.pos)throw RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new d(e.pos,t.markFromJSON(e.mark))}}l.jsonID("addNodeMark",d);class f extends l{constructor(t,e){super(),this.pos=t,this.mark=e}apply(t){let e=t.nodeAt(this.pos);if(!e)return c.fail("No node at mark step's position");let r=e.type.create(e.attrs,null,this.mark.removeFromSet(e.marks));return c.fromReplace(t,this.pos,this.pos+1,new n.Ji(n.FK.from(r),0,+!e.isLeaf))}invert(t){let e=t.nodeAt(this.pos);return e&&this.mark.isInSet(e.marks)?new d(this.pos,this.mark):this}map(t){let e=t.mapResult(this.pos,1);return e.deletedAfter?null:new f(e.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(t,e){if("number"!=typeof e.pos)throw RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new f(e.pos,t.markFromJSON(e.mark))}}l.jsonID("removeNodeMark",f);class m extends l{constructor(t,e,r,n=!1){super(),this.from=t,this.to=e,this.slice=r,this.structure=n}apply(t){return this.structure&&A(t,this.from,this.to)?c.fail("Structure replace would overwrite content"):c.fromReplace(t,this.from,this.to,this.slice)}getMap(){return new a([this.from,this.to-this.from,this.slice.size])}invert(t){return new m(this.from,this.from+this.slice.size,t.slice(this.from,this.to))}map(t){let e=t.mapResult(this.to,-1),r=this.from==this.to&&m.MAP_BIAS<0?e:t.mapResult(this.from,1);return r.deletedAcross&&e.deletedAcross?null:new m(r.pos,Math.max(r.pos,e.pos),this.slice,this.structure)}merge(t){if(!(t instanceof m)||t.structure||this.structure)return null;if(this.from+this.slice.size!=t.from||this.slice.openEnd||t.slice.openStart)if(t.to!=this.from||this.slice.openStart||t.slice.openEnd)return null;else{let e=this.slice.size+t.slice.size==0?n.Ji.empty:new n.Ji(t.slice.content.append(this.slice.content),t.slice.openStart,this.slice.openEnd);return new m(t.from,this.to,e,this.structure)}{let e=this.slice.size+t.slice.size==0?n.Ji.empty:new n.Ji(this.slice.content.append(t.slice.content),this.slice.openStart,t.slice.openEnd);return new m(this.from,this.to+(t.to-t.from),e,this.structure)}}toJSON(){let t={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(t.slice=this.slice.toJSON()),this.structure&&(t.structure=!0),t}static fromJSON(t,e){if("number"!=typeof e.from||"number"!=typeof e.to)throw RangeError("Invalid input for ReplaceStep.fromJSON");return new m(e.from,e.to,n.Ji.fromJSON(t,e.slice),!!e.structure)}}m.MAP_BIAS=1,l.jsonID("replace",m);class g extends l{constructor(t,e,r,n,i,a,o=!1){super(),this.from=t,this.to=e,this.gapFrom=r,this.gapTo=n,this.slice=i,this.insert=a,this.structure=o}apply(t){if(this.structure&&(A(t,this.from,this.gapFrom)||A(t,this.gapTo,this.to)))return c.fail("Structure gap-replace would overwrite content");let e=t.slice(this.gapFrom,this.gapTo);if(e.openStart||e.openEnd)return c.fail("Gap is not a flat range");let r=this.slice.insertAt(this.insert,e.content);return r?c.fromReplace(t,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(t){let e=this.gapTo-this.gapFrom;return new g(this.from,this.from+this.slice.size+e,this.from+this.insert,this.from+this.insert+e,t.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(t){let e=t.mapResult(this.from,1),r=t.mapResult(this.to,-1),n=this.from==this.gapFrom?e.pos:t.map(this.gapFrom,-1),i=this.to==this.gapTo?r.pos:t.map(this.gapTo,1);return e.deletedAcross&&r.deletedAcross||n<e.pos||i>r.pos?null:new g(e.pos,r.pos,n,i,this.slice,this.insert,this.structure)}toJSON(){let t={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(t.slice=this.slice.toJSON()),this.structure&&(t.structure=!0),t}static fromJSON(t,e){if("number"!=typeof e.from||"number"!=typeof e.to||"number"!=typeof e.gapFrom||"number"!=typeof e.gapTo||"number"!=typeof e.insert)throw RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new g(e.from,e.to,e.gapFrom,e.gapTo,n.Ji.fromJSON(t,e.slice),e.insert,!!e.structure)}}function A(t,e,r){let n=t.resolve(e),i=r-e,a=n.depth;for(;i>0&&a>0&&n.indexAfter(a)==n.node(a).childCount;)a--,i--;if(i>0){let t=n.node(a).maybeChild(n.indexAfter(a));for(;i>0;){if(!t||t.isLeaf)return!0;t=t.firstChild,i--}}return!1}function y(t,e,r,i=r.contentMatch,a=!0){let o=t.doc.nodeAt(e),s=[],l=e+1;for(let e=0;e<o.childCount;e++){let c=o.child(e),u=l+c.nodeSize,h=i.matchType(c.type);if(h){i=h;for(let e=0;e<c.marks.length;e++)r.allowsMarkType(c.marks[e].type)||t.step(new p(l,u,c.marks[e]));if(a&&c.isText&&"pre"!=r.whitespace){let t,e=/\r?\n|\r/g,i;for(;t=e.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+t.index,l+t.index+t[0].length,i))}}else s.push(new m(l,u,n.Ji.empty));l=u}if(!i.validEnd){let e=i.fillBefore(n.FK.empty,!0);t.replace(l,l,new n.Ji(e,0,0))}for(let e=s.length-1;e>=0;e--)t.step(s[e])}function v(t){let e=t.parent.content.cutByIndex(t.startIndex,t.endIndex);for(let r=t.depth,n=0,i=0;;--r){let a=t.$from.node(r),o=t.$from.index(r)+n,s=t.$to.indexAfter(r)-i;if(r<t.depth&&a.canReplace(o,s,e))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(t,e,r=null,n=t){let i=function(t,e){let{parent:r,startIndex:n,endIndex:i}=t,a=r.contentMatchAt(n).findWrapping(e);if(!a)return null;let o=a.length?a[0]:e;return r.canReplaceWith(n,i,o)?a:null}(t,e),a=i&&function(t,e){let{parent:r,startIndex:n,endIndex:i}=t,a=r.child(n),o=e.contentMatch.findWrapping(a.type);if(!o)return null;let s=(o.length?o[o.length-1]:e).contentMatch;for(let t=n;s&&t<i;t++)s=s.matchType(r.child(t).type);return s&&s.validEnd?o:null}(n,e);return a?i.map(b).concat({type:e,attrs:r}).concat(a.map(b)):null}function b(t){return{type:t,attrs:null}}function x(t,e,r,n){e.forEach((i,a)=>{if(i.isText){let o,s=/\r?\n|\r/g;for(;o=s.exec(i.text);){let i=t.mapping.slice(n).map(r+1+a+o.index);t.replaceWith(i,i+1,e.type.schema.linebreakReplacement.create())}}})}function M(t,e,r,n){e.forEach((i,a)=>{if(i.type==i.type.schema.linebreakReplacement){let i=t.mapping.slice(n).map(r+1+a);t.replaceWith(i,i+1,e.type.schema.text("\n"))}})}function S(t,e,r=1,n){let i=t.resolve(e),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 t=i.depth-1,e=r-2;t>a;t--,e--){let r=i.node(t),a=i.index(t);if(r.type.spec.isolating)return!1;let o=r.content.cutByIndex(a,r.childCount),s=n&&n[e+1];s&&(o=o.replaceChild(0,s.type.create(s.attrs)));let l=n&&n[e]||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(t,e){let r=t.resolve(e),n=r.index();return O(r.nodeBefore,r.nodeAfter)&&r.parent.canReplace(n,n+1)}function O(t,e){return!!(t&&e&&!t.isLeaf&&function(t,e){e.content.size||t.type.compatibleContent(e.type);let r=t.contentMatchAt(t.childCount),{linebreakReplacement:n}=t.type.schema;for(let i=0;i<e.childCount;i++){let a=e.child(i),o=a.type==n?t.type.schema.nodes.text:a.type;if(!(r=r.matchType(o))||!t.type.allowsMarks(a.marks))return!1}return r.validEnd}(t,e))}function N(t,e,r=-1){let n=t.resolve(e);for(let t=n.depth;;t--){let i,a,o=n.index(t);if(t==n.depth?(i=n.nodeBefore,a=n.nodeAfter):r>0?(i=n.node(t+1),o++,a=n.node(t).maybeChild(o)):(i=n.node(t).maybeChild(o-1),a=n.node(t+1)),i&&!i.isTextblock&&O(i,a)&&n.node(t).canReplace(o,o+1))return e;if(0==t)break;e=r<0?n.before(t):n.after(t)}}function L(t,e,r){let n=t.resolve(e);if(!r.content.size)return e;let i=r.content;for(let t=0;t<r.openStart;t++)i=i.firstChild.content;for(let t=1;t<=(0==r.openStart&&r.size?2:1);t++)for(let e=n.depth;e>=0;e--){let r=e==n.depth?0:n.pos<=(n.start(e+1)+n.end(e+1))/2?-1:1,a=n.index(e)+ +(r>0),o=n.node(e),s=!1;if(1==t)s=o.canReplace(a,a,i);else{let t=o.contentMatchAt(a).findWrapping(i.firstChild.type);s=t&&o.canReplaceWith(a,a,t[0])}if(s)return 0==r?n.pos:r<0?n.before(e+1):n.after(e+1)}return null}function _(t,e,r=e,i=n.Ji.empty){if(e==r&&!i.size)return null;let a=t.resolve(e),o=t.resolve(r);return T(a,o,i)?new m(e,r,i):new P(a,o,i).fit()}function T(t,e,r){return!r.openStart&&!r.openEnd&&t.start()==e.start()&&t.parent.canReplace(t.index(),e.index(),r.content)}l.jsonID("replaceAround",g);class P{constructor(t,e,r){this.$from=t,this.$to=e,this.unplaced=r,this.frontier=[],this.placed=n.FK.empty;for(let e=0;e<=t.depth;e++){let r=t.node(e);this.frontier.push({type:r.type,match:r.contentMatchAt(t.indexAfter(e))})}for(let e=t.depth;e>0;e--)this.placed=n.FK.from(t.node(e).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let t=this.findFittable();t?this.placeNodes(t):this.openMore()||this.dropNode()}let t=this.mustMoveInline(),e=this.placed.size-this.depth-this.$from.depth,r=this.$from,i=this.close(t<0?this.$to:r.doc.resolve(t));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 t>-1?new g(r.pos,t,this.$to.pos,this.$to.end(),l,e):l.size||r.pos!=this.$to.pos?new m(r.pos,i.pos,l):null}findFittable(){let t=this.unplaced.openStart;for(let e=this.unplaced.content,r=0,n=this.unplaced.openEnd;r<t;r++){let i=e.firstChild;if(e.childCount>1&&(n=0),i.type.spec.isolating&&n<=r){t=r;break}e=i.content}for(let e=1;e<=2;e++)for(let r=1==e?t:this.unplaced.openStart;r>=0;r--){let t=null,i=(r?(t=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==e&&(i?s.matchType(i.type)||(c=s.fillBefore(n.FK.from(i),!1)):t&&o.compatibleContent(t.type)))return{sliceDepth:r,frontierDepth:a,parent:t,inject:c};if(2==e&&i&&(l=s.findWrapping(i.type)))return{sliceDepth:r,frontierDepth:a,parent:t,wrap:l};if(t&&s.matchType(t.type))break}}}openMore(){let{content:t,openStart:e,openEnd:r}=this.unplaced,i=k(t,e);return!!i.childCount&&!i.firstChild.isLeaf&&(this.unplaced=new n.Ji(t,e+1,Math.max(r,i.size+e>=t.size-r?e+1:0)),!0)}dropNode(){let{content:t,openStart:e,openEnd:r}=this.unplaced,i=k(t,e);if(i.childCount<=1&&e>0){let a=t.size-e<=e+i.size;this.unplaced=new n.Ji(I(t,e-1,1),e-1,a?e-1:r)}else this.unplaced=new n.Ji(I(t,e,1),e,r)}placeNodes({sliceDepth:t,frontierDepth:e,parent:r,inject:i,wrap:a}){for(;this.depth>e;)this.closeFrontierNode();if(a)for(let t=0;t<a.length;t++)this.openFrontierNode(a[t]);let o=this.unplaced,s=r?r.content:o.content,l=o.openStart-t,c=0,u=[],{match:h,type:p}=this.frontier[e];if(i){for(let t=0;t<i.childCount;t++)u.push(i.child(t));h=h.matchFragment(i)}let d=s.size+t-(o.content.size-o.openEnd);for(;c<s.childCount;){let t=s.child(c),e=h.matchType(t.type);if(!e)break;(++c>1||0==l||t.content.size)&&(h=e,u.push(function t(e,r,i){if(r<=0)return e;let a=e.content;return r>1&&(a=a.replaceChild(0,t(a.firstChild,r-1,1==a.childCount?i-1:0))),r>0&&(a=e.type.contentMatch.fillBefore(a).append(a),i<=0&&(a=a.append(e.type.contentMatch.matchFragment(a).fillBefore(n.FK.empty,!0)))),e.copy(a)}(t.mark(p.allowedMarks(t.marks)),1==c?l:0,c==s.childCount?d:-1)))}let f=c==s.childCount;f||(d=-1),this.placed=C(this.placed,e,n.FK.from(u)),this.frontier[e].match=h,f&&d<0&&r&&r.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let t=0,e=s;t<d;t++){let t=e.lastChild;this.frontier.push({type:t.type,match:t.contentMatchAt(t.childCount)}),e=t.content}this.unplaced=f?0==t?n.Ji.empty:new n.Ji(I(o.content,t-1,1),t-1,d<0?o.openEnd:t-1):new n.Ji(I(o.content,t,c),o.openStart,o.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return -1;let t=this.frontier[this.depth],e;if(!t.type.isTextblock||!F(this.$to,this.$to.depth,t.type,t.match,!1)||this.$to.depth==this.depth&&(e=this.findCloseLevel(this.$to))&&e.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(t){s:for(let e=Math.min(this.depth,t.depth);e>=0;e--){let{match:r,type:n}=this.frontier[e],i=e<t.depth&&t.end(e+1)==t.pos+(t.depth-(e+1)),a=F(t,e,n,r,i);if(a){for(let r=e-1;r>=0;r--){let{match:e,type:n}=this.frontier[r],i=F(t,r,n,e,!0);if(!i||i.childCount)continue s}return{depth:e,fit:a,move:i?t.doc.resolve(t.after(e+1)):t}}}}close(t){let e=this.findCloseLevel(t);if(!e)return null;for(;this.depth>e.depth;)this.closeFrontierNode();e.fit.childCount&&(this.placed=C(this.placed,e.depth,e.fit)),t=e.move;for(let r=e.depth+1;r<=t.depth;r++){let e=t.node(r),n=e.type.contentMatch.fillBefore(e.content,!0,t.index(r));this.openFrontierNode(e.type,e.attrs,n)}return t}openFrontierNode(t,e=null,r){let i=this.frontier[this.depth];i.match=i.match.matchType(t),this.placed=C(this.placed,this.depth,n.FK.from(t.create(e,r))),this.frontier.push({type:t,match:t.contentMatch})}closeFrontierNode(){let t=this.frontier.pop().match.fillBefore(n.FK.empty,!0);t.childCount&&(this.placed=C(this.placed,this.frontier.length,t))}}function I(t,e,r){return 0==e?t.cutByIndex(r,t.childCount):t.replaceChild(0,t.firstChild.copy(I(t.firstChild.content,e-1,r)))}function C(t,e,r){return 0==e?t.append(r):t.replaceChild(t.childCount-1,t.lastChild.copy(C(t.lastChild.content,e-1,r)))}function k(t,e){for(let r=0;r<e;r++)t=t.firstChild.content;return t}function F(t,e,r,n,i){let a=t.node(e),o=i?t.indexAfter(e):t.index(e);if(o==a.childCount&&!r.compatibleContent(a.type))return null;let s=n.fillBefore(a.content,!0,o);return s&&!function(t,e,r){for(let n=r;n<e.childCount;n++)if(!t.allowsMarks(e.child(n).marks))return!0;return!1}(r,a.content,o)?s:null}function X(t,e){let r=[],n=Math.min(t.depth,e.depth);for(let i=n;i>=0;i--){let n=t.start(i);if(n<t.pos-(t.depth-i)||e.end(i)>e.pos+(e.depth-i)||t.node(i).type.spec.isolating||e.node(i).type.spec.isolating)break;(n==e.start(i)||i==t.depth&&i==e.depth&&t.parent.inlineContent&&e.parent.inlineContent&&i&&e.start(i-1)==n-1)&&r.push(i)}return r}class U extends l{constructor(t,e,r){super(),this.pos=t,this.attr=e,this.value=r}apply(t){let e=t.nodeAt(this.pos);if(!e)return c.fail("No node at attribute step's position");let r=Object.create(null);for(let t in e.attrs)r[t]=e.attrs[t];r[this.attr]=this.value;let i=e.type.create(r,null,e.marks);return c.fromReplace(t,this.pos,this.pos+1,new n.Ji(n.FK.from(i),0,+!e.isLeaf))}getMap(){return a.empty}invert(t){return new U(this.pos,this.attr,t.nodeAt(this.pos).attrs[this.attr])}map(t){let e=t.mapResult(this.pos,1);return e.deletedAfter?null:new U(e.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(t,e){if("number"!=typeof e.pos||"string"!=typeof e.attr)throw RangeError("Invalid input for AttrStep.fromJSON");return new U(e.pos,e.attr,e.value)}}l.jsonID("attr",U);class W extends l{constructor(t,e){super(),this.attr=t,this.value=e}apply(t){let e=Object.create(null);for(let r in t.attrs)e[r]=t.attrs[r];e[this.attr]=this.value;let r=t.type.create(e,t.content,t.marks);return c.ok(r)}getMap(){return a.empty}invert(t){return new W(this.attr,t.attrs[this.attr])}map(t){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(t,e){if("string"!=typeof e.attr)throw RangeError("Invalid input for DocAttrStep.fromJSON");return new W(e.attr,e.value)}}l.jsonID("docAttr",W);let V=class extends Error{};(V=function t(e){let r=Error.call(this,e);return r.__proto__=t.prototype,r}).prototype=Object.create(Error.prototype),V.prototype.constructor=V,V.prototype.name="TransformError";class E{constructor(t){this.doc=t,this.steps=[],this.docs=[],this.mapping=new o}get before(){return this.docs.length?this.docs[0]:this.doc}step(t){let e=this.maybeStep(t);if(e.failed)throw new V(e.failed);return this}maybeStep(t){let e=t.apply(this.doc);return e.failed||this.addStep(t,e.doc),e}get docChanged(){return this.steps.length>0}changedRange(){let t=1e9,e=-1e9;for(let r=0;r<this.mapping.maps.length;r++){let n=this.mapping.maps[r];r&&(t=n.map(t,1),e=n.map(e,-1)),n.forEach((r,n,i,a)=>{t=Math.min(t,i),e=Math.max(e,a)})}return 1e9==t?null:{from:t,to:e}}addStep(t,e){this.docs.push(this.doc),this.steps.push(t),this.mapping.appendMap(t.getMap()),this.doc=e}replace(t,e=t,r=n.Ji.empty){let i=_(this.doc,t,e,r);return i&&this.step(i),this}replaceWith(t,e,r){return this.replace(t,e,new n.Ji(n.FK.from(r),0,0))}delete(t,e){return this.replace(t,e,n.Ji.empty)}insert(t,e){return this.replaceWith(t,t,e)}replaceRange(t,e,r){return!function(t,e,r,i){if(!i.size)return t.deleteRange(e,r);let a=t.doc.resolve(e),o=t.doc.resolve(r);if(T(a,o,i))return t.step(new m(e,r,i));let s=X(a,o);0==s[s.length-1]&&s.pop();let l=-(a.depth+1);s.unshift(l);for(let t=a.depth,e=a.pos-1;t>0;t--,e--){let r=a.node(t).type.spec;if(r.defining||r.definingAsContext||r.isolating)break;s.indexOf(t)>-1?l=t:a.before(t)==e&&s.splice(1,0,-t)}let c=s.indexOf(l),u=[],h=i.openStart;for(let t=i.content,e=0;;e++){let r=t.firstChild;if(u.push(r),e==i.openStart)break;t=r.content}for(let t=h-1;t>=0;t--){var p;let e=u[t],r=(p=e.type).spec.defining||p.spec.definingForContent;if(r&&!e.sameMarkup(a.node(Math.abs(l)-1)))h=t;else if(r||!e.type.isTextblock)break}for(let e=i.openStart;e>=0;e--){let l=(e+h+1)%(i.openStart+1),p=u[l];if(p)for(let e=0;e<s.length;e++){let u=s[(e+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 t.replace(a.before(u),h?o.after(u):r,new n.Ji(function t(e,r,i,a,o){if(r<i){let n=e.firstChild;e=e.replaceChild(0,n.copy(t(n.content,r+1,i,a,n)))}if(r>a){let t=o.contentMatchAt(0),r=t.fillBefore(e).append(e);e=r.append(t.matchFragment(r).fillBefore(n.FK.empty,!0))}return e}(i.content,0,i.openStart,l),l,i.openEnd))}}let d=t.steps.length;for(let n=s.length-1;n>=0&&(t.replace(e,r,i),!(t.steps.length>d));n--){let t=s[n];t<0||(e=a.before(t),r=o.after(t))}}(this,t,e,r),this}replaceRangeWith(t,e,r){var i=t,a=e;if(!r.isInline&&i==a&&this.doc.resolve(i).parent.content.size){let t=function(t,e,r){let n=t.resolve(e);if(n.parent.canReplaceWith(n.index(),n.index(),r))return e;if(0==n.parentOffset)for(let t=n.depth-1;t>=0;t--){let e=n.index(t);if(n.node(t).canReplaceWith(e,e,r))return n.before(t+1);if(e>0)return null}if(n.parentOffset==n.parent.content.size)for(let t=n.depth-1;t>=0;t--){let e=n.indexAfter(t);if(n.node(t).canReplaceWith(e,e,r))return n.after(t+1);if(e<n.node(t).childCount)break}return null}(this.doc,i,r.type);null!=t&&(i=a=t)}return this.replaceRange(i,a,new n.Ji(n.FK.from(r),0,0)),this}deleteRange(t,e){return!function(t,e,r){let n=t.doc.resolve(e),i=t.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 t=n.depth;t>a;t--)n.node(t).type.spec.isolating&&(o=!0);for(let t=i.depth;t>a;t--)i.node(t).type.spec.isolating&&(o=!0);if(!o){for(let t=n.depth;t>0&&e==n.start(t);t--)e=n.before(t);for(let t=i.depth;t>0&&r==i.start(t);t--)r=i.before(t);n=t.doc.resolve(e),i=t.doc.resolve(r)}}let a=X(n,i);for(let e=0;e<a.length;e++){let r=a[e],o=e==a.length-1;if(o&&0==r||n.node(r).type.contentMatch.validEnd)return t.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 t.delete(n.before(r),i.after(r))}for(let a=1;a<=n.depth&&a<=i.depth;a++)if(e-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 t.delete(n.before(a),r);t.delete(e,r)}(this,t,e),this}lift(t,e){return!function(t,e,r){let{$from:i,$to:a,depth:o}=e,s=i.before(o+1),l=a.after(o+1),c=s,u=l,h=n.FK.empty,p=0;for(let t=o,e=!1;t>r;t--)e||i.index(t)>0?(e=!0,h=n.FK.from(i.node(t).copy(h)),p++):c--;let d=n.FK.empty,f=0;for(let t=o,e=!1;t>r;t--)e||a.after(t+1)<a.end(t)?(e=!0,d=n.FK.from(a.node(t).copy(d)),f++):u++;t.step(new g(c,u,s,l,new n.Ji(h.append(d),p,f),h.size-p,!0))}(this,t,e),this}join(t,e=1){return!function(t,e,r){let i=null,{linebreakReplacement:a}=t.doc.type.schema,o=t.doc.resolve(e-r),s=o.node().type;if(a&&s.inlineContent){let t="pre"==s.whitespace,e=!!s.contentMatch.matchType(a);t&&!e?i=!1:!t&&e&&(i=!0)}let l=t.steps.length;if(!1===i){let n=t.doc.resolve(e+r);M(t,n.node(),n.before(),l)}s.inlineContent&&y(t,e+r-1,s,o.node().contentMatchAt(o.index()),null==i);let c=t.mapping.slice(l),u=c.map(e-r);if(t.step(new m(u,c.map(e+r,-1),n.Ji.empty,!0)),!0===i){let e=t.doc.resolve(u);x(t,e.node(),e.before(),t.steps.length)}}(this,t,e),this}wrap(t,e){return!function(t,e,r){let i=n.FK.empty;for(let t=r.length-1;t>=0;t--){if(i.size){let e=r[t].type.contentMatch.matchFragment(i);if(!e||!e.validEnd)throw RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}i=n.FK.from(r[t].type.create(r[t].attrs,i))}let a=e.start,o=e.end;t.step(new g(a,o,a,o,new n.Ji(i,0,0),r.length,!0))}(this,t,e),this}setBlockType(t,e=t,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(t,e,(t,e)=>{var s,l,c;let u,h,p="function"==typeof i?i(t):i;if(t.isTextblock&&!t.hasMarkup(r,p)&&(s=a.doc,l=a.mapping.slice(o).map(e),c=r,h=(u=s.resolve(l)).index(),u.parent.canReplaceWith(h,h+1,c))){let i=null;if(r.schema.linebreakReplacement){let t="pre"==r.whitespace,e=!!r.contentMatch.matchType(r.schema.linebreakReplacement);t&&!e?i=!1:!t&&e&&(i=!0)}!1===i&&M(a,t,e,o),y(a,a.mapping.slice(o).map(e,1),r,void 0,null===i);let s=a.mapping.slice(o),l=s.map(e,1),c=s.map(e+t.nodeSize,1);return a.step(new g(l,c,l+1,c-1,new n.Ji(n.FK.from(r.create(p,null,t.marks)),0,0),1,!0)),!0===i&&x(a,t,e,o),!1}}),this}setNodeMarkup(t,e,r=null,i){return!function(t,e,r,i,a){let o=t.doc.nodeAt(e);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 t.replaceWith(e,e+o.nodeSize,s);if(!r.validContent(o.content))throw RangeError("Invalid content for node type "+r.name);t.step(new g(e,e+o.nodeSize,e+1,e+o.nodeSize-1,new n.Ji(n.FK.from(s),0,0),1,!0))}(this,t,e,r,i),this}setNodeAttribute(t,e,r){return this.step(new U(t,e,r)),this}setDocAttribute(t,e){return this.step(new W(t,e)),this}addNodeMark(t,e){return this.step(new d(t,e)),this}removeNodeMark(t,e){let r=this.doc.nodeAt(t);if(!r)throw RangeError("No node at position "+t);if(e instanceof n.CU)e.isInSet(r.marks)&&this.step(new f(t,e));else{let n=r.marks,i,a=[];for(;i=e.isInSet(n);)a.push(new f(t,i)),n=i.removeFromSet(n);for(let t=a.length-1;t>=0;t--)this.step(a[t])}return this}split(t,e=1,r){return!function(t,e,r=1,i){let a=t.doc.resolve(e),o=n.FK.empty,s=n.FK.empty;for(let t=a.depth,e=a.depth-r,l=r-1;t>e;t--,l--){o=n.FK.from(a.node(t).copy(o));let e=i&&i[l];s=n.FK.from(e?e.type.create(e.attrs,s):a.node(t).copy(s))}t.step(new m(e,e,new n.Ji(o.append(s),r,r),!0))}(this,t,e,r),this}addMark(t,e,r){var n;let i,a,o,s;return n=this,o=[],s=[],n.doc.nodesBetween(t,e,(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,t),d=Math.min(l+n.nodeSize,e),f=r.addToSet(u);for(let t=0;t<u.length;t++)u[t].isInSet(f)||(i&&i.to==c&&i.mark.eq(u[t])?i.to=d:o.push(i=new p(c,d,u[t])));a&&a.to==c?a.to=d:s.push(a=new h(c,d,r))}}),o.forEach(t=>n.step(t)),s.forEach(t=>n.step(t)),this}removeMark(t,e,r){var i;let a,o;return i=this,a=[],o=0,i.doc.nodesBetween(t,e,(i,s)=>{if(!i.isInline)return;o++;let l=null;if(r instanceof n.sX){let t=i.marks,e;for(;e=r.isInSet(t);)(l||(l=[])).push(e),t=e.removeFromSet(t)}else r?r.isInSet(i.marks)&&(l=[r]):l=i.marks;if(l&&l.length){let r=Math.min(s+i.nodeSize,e);for(let e=0;e<l.length;e++){let n=l[e],i;for(let t=0;t<a.length;t++){let e=a[t];e.step==o-1&&n.eq(a[t].style)&&(i=e)}i?(i.to=r,i.step=o):a.push({style:n,from:Math.max(s,t),to:r,step:o})}}}),a.forEach(t=>i.step(new p(t.from,t.to,t.style))),this}clearIncompatible(t,e,r){return y(this,t,e,r),this}}r.d(e,{$L:()=>_,Ln:()=>m,N0:()=>N,Um:()=>L,Wg:()=>g,X9:()=>o,dL:()=>E,jP:()=>v,n9:()=>w,oM:()=>R,zy:()=>S})},1575(t,e,r){var n=r(42845),i=r(96294),a=r(38262);let o=function(t){for(var e=0;;e++)if(!(t=t.previousSibling))return e},s=function(t){let e=t.assignedSlot||t.parentNode;return e&&11==e.nodeType?e.host:e},l=null,c=function(t,e,r){let n=l||(l=document.createRange());return n.setEnd(t,null==r?t.nodeValue.length:r),n.setStart(t,e||0),n},u=function(){l=null},h=function(t,e,r,n){return r&&(d(t,e,r,n,-1)||d(t,e,r,n,1))},p=/^(img|br|input|textarea|hr)$/i;function d(t,e,r,n,i){for(var a;;){if(t==r&&e==n)return!0;if(e==(i<0?0:f(t))){let r=t.parentNode;if(!r||1!=r.nodeType||m(t)||p.test(t.nodeName)||"false"==t.contentEditable)return!1;e=o(t)+(i<0?0:1),t=r}else{if(1!=t.nodeType)return!1;let r=t.childNodes[e+(i<0?-1:0)];if(1==r.nodeType&&"false"==r.contentEditable)if(null==(a=r.pmViewDesc)||!a.ignoreForSelection)return!1;else e+=i;else t=r,e=i<0?f(t):0}}}function f(t){return 3==t.nodeType?t.nodeValue.length:t.childNodes.length}function m(t){let e;for(let r=t;r&&!(e=r.pmViewDesc);r=r.parentNode);return e&&e.node&&e.node.isBlock&&(e.dom==t||e.contentDOM==t)}let g=function(t){return t.focusNode&&h(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset)};function A(t,e){let r=document.createEvent("Event");return r.initEvent("keydown",!0,!0),r.keyCode=t,r.key=r.code=e,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 N=!S&&/Chrome\/(\d+)/.exec(R),L=!!N,_=N?+N[1]:0,T=!S&&!!y&&/Apple Computer/.test(y.vendor),P=T&&(/Mobile\/\w+/.test(R)||!!y&&y.maxTouchPoints>2),I=P||!!y&&/Mac/.test(y.platform),C=!!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(t,e){return"number"==typeof t?t:t[e]}function W(t,e,r){if(!Q(e)&&0==e.left)return;let n=t.someProp("scrollThreshold")||0,i=t.someProp("scrollMargin")||5,a=t.dom.ownerDocument;for(let o=r||t.dom;o;){if(1!=o.nodeType){o=s(o);continue}let t=o,r=t==a.body,l=r?function(t){let e=t.defaultView&&t.defaultView.visualViewport;return e?{left:0,right:e.width,top:0,bottom:e.height}:{left:0,right:t.documentElement.clientWidth,top:0,bottom:t.documentElement.clientHeight}}(a):function(t){let e=t.getBoundingClientRect(),r=e.width/t.offsetWidth||1,n=e.height/t.offsetHeight||1;return{left:e.left,right:e.left+t.clientWidth*r,top:e.top,bottom:e.top+t.clientHeight*n}}(t),c=0,u=0;if(e.top<l.top+U(n,"top")?u=-(l.top-e.top+U(i,"top")):e.bottom>l.bottom-U(n,"bottom")&&(u=e.bottom-e.top>l.bottom-l.top?e.top+U(i,"top")-l.top:e.bottom-l.bottom+U(i,"bottom")),e.left<l.left+U(n,"left")?c=-(l.left-e.left+U(i,"left")):e.right>l.right-U(n,"right")&&(c=e.right-l.right+U(i,"right")),c||u)if(r)a.defaultView.scrollBy(c,u);else{let r=t.scrollLeft,n=t.scrollTop;u&&(t.scrollTop+=u),c&&(t.scrollLeft+=c);let i=t.scrollLeft-r,a=t.scrollTop-n;e={left:e.left-i,top:e.top-a,right:e.right-i,bottom:e.bottom-a}}let h=r?"fixed":getComputedStyle(o).position;if(/^(fixed|sticky)$/.test(h))break;o="absolute"==h?o.offsetParent:s(o)}}function V(t){let e=[],r=t.ownerDocument;for(let n=t;n&&(e.push({dom:n,top:n.scrollTop,left:n.scrollLeft}),t!=r);n=s(n));return e}function E(t,e){for(let r=0;r<t.length;r++){let{dom:n,top:i,left:a}=t[r];n.scrollTop!=i+e&&(n.scrollTop=i+e),n.scrollLeft!=a&&(n.scrollLeft=a)}}let Y=null;function D(t,e){return t.left>=e.left-1&&t.left<=e.right+1&&t.top>=e.top-1&&t.top<=e.bottom+1}function Q(t){return t.top<t.bottom||t.left<t.right}function Z(t,e){let r=t.getClientRects();if(r.length){let t=r[e<0?0:r.length-1];if(Q(t))return t}return Array.prototype.find.call(r,Q)||t.getBoundingClientRect()}let B=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function K(t,e,r){let{node:n,offset:i,atom:a}=t.docView.domFromPos(e,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 t=Z(c(n,i,i),r);if(O&&i&&/\s/.test(n.nodeValue[i-1])&&i<n.nodeValue.length){let e=Z(c(n,i-1,i-1),-1);if(e.top==t.top){let r=Z(c(n,i,i+1),-1);if(r.top!=t.top)return $(r,r.left<e.left)}}return t}else{let t=i,e=i,a=r<0?1:-1;return r<0&&!i?(e++,a=-1):r>=0&&i==n.nodeValue.length?(t--,a=1):r<0?t--:e++,$(Z(c(n,t,e),a),a<0)}if(!t.state.doc.resolve(e-(a||0)).parent.inlineContent){if(null==a&&i&&(r<0||i==f(n))){let t=n.childNodes[i-1];if(1==t.nodeType)return G(t.getBoundingClientRect(),!1)}if(null==a&&i<f(n)){let t=n.childNodes[i];if(1==t.nodeType)return G(t.getBoundingClientRect(),!0)}return G(n.getBoundingClientRect(),r>=0)}if(null==a&&i&&(r<0||i==f(n))){let t=n.childNodes[i-1],e=3==t.nodeType?c(t,f(t)-!o):1!=t.nodeType||"BR"==t.nodeName&&t.nextSibling?null:t;if(e)return $(Z(e,1),!1)}if(null==a&&i<f(n)){let t=n.childNodes[i];for(;t.pmViewDesc&&t.pmViewDesc.ignoreForCoords;)t=t.nextSibling;let e=t?3==t.nodeType?c(t,0,+!o):1==t.nodeType?t:null:null;if(e)return $(Z(e,-1),!0)}return $(Z(3==n.nodeType?c(n):n,-r),r>=0)}function $(t,e){if(0==t.width)return t;let r=e?t.left:t.right;return{top:t.top,bottom:t.bottom,left:r,right:r}}function G(t,e){if(0==t.height)return t;let r=e?t.top:t.bottom;return{top:r,bottom:r,left:t.left,right:t.right}}function H(t,e,r){let n=t.state,i=t.root.activeElement;n!=e&&t.updateState(e),i!=t.dom&&t.focus();try{return r()}finally{n!=e&&t.updateState(n),i!=t.dom&&i&&i.focus()}}let z=/[\u0590-\u08ac]/,J=null,j=null,q=!1;class tt{constructor(t,e,r,n){this.parent=t,this.children=e,this.dom=r,this.contentDOM=n,this.dirty=0,r.pmViewDesc=this}matchesWidget(t){return!1}matchesMark(t){return!1}matchesNode(t,e,r){return!1}matchesHack(t){return!1}parseRule(t){return null}stopEvent(t){return!1}get size(){let t=0;for(let e=0;e<this.children.length;e++)t+=this.children[e].size;return t}get border(){return 0}destroy(){this.parent=void 0,this.dom.pmViewDesc==this&&(this.dom.pmViewDesc=void 0);for(let t=0;t<this.children.length;t++)this.children[t].destroy()}posBeforeChild(t){for(let e=0,r=this.posAtStart;;e++){let n=this.children[e];if(n==t)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(t,e,r){let n;if(this.contentDOM&&this.contentDOM.contains(1==t.nodeType?t:t.parentNode))if(r<0){let r,n;if(t==this.contentDOM)r=t.childNodes[e-1];else{for(;t.parentNode!=this.contentDOM;)t=t.parentNode;r=t.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(t==this.contentDOM)r=t.childNodes[e];else{for(;t.parentNode!=this.contentDOM;)t=t.parentNode;r=t.nextSibling}for(;r&&!((n=r.pmViewDesc)&&n.parent==this);)r=r.nextSibling;return r?this.posBeforeChild(n):this.posAtEnd}if(t==this.dom&&this.contentDOM)n=e>o(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))n=2&t.compareDocumentPosition(this.contentDOM);else if(this.dom.firstChild){if(0==e)for(let e=t;;e=e.parentNode){if(e==this.dom){n=!1;break}if(e.previousSibling)break}if(null==n&&e==t.childNodes.length)for(let e=t;;e=e.parentNode){if(e==this.dom){n=!0;break}if(e.nextSibling)break}}return(null==n?r>0:n)?this.posAtEnd:this.posAtStart}nearestDesc(t,e=!1){for(let r=!0,n=t;n;n=n.parentNode){let i=this.getDesc(n),a;if(i&&(!e||i.node))if(!r||!(a=i.nodeDOM)||(1==a.nodeType?a.contains(1==t.nodeType?t:t.parentNode):a==t))return i;else r=!1}}getDesc(t){let e=t.pmViewDesc;for(let t=e;t;t=t.parent)if(t==this)return e}posFromDOM(t,e,r){for(let n=t;n;n=n.parentNode){let i=this.getDesc(n);if(i)return i.localPosFromDOM(t,e,r)}return -1}descAt(t){for(let e=0,r=0;e<this.children.length;e++){let n=this.children[e],i=r+n.size;if(r==t&&i!=r){for(;!n.border&&n.children.length;)for(let t=0;t<n.children.length;t++){let e=n.children[t];if(e.size){n=e;break}}return n}if(t<i)return n.descAt(t-r-n.border);r=i}}domFromPos(t,e){if(!this.contentDOM)return{node:this.dom,offset:0,atom:t+1};let r=0,n=0;for(let e=0;r<this.children.length;r++){let i=this.children[r],a=e+i.size;if(a>t||i instanceof ts){n=t-e;break}e=a}if(n)return this.children[r].domFromPos(n-this.children[r].border,e);for(let t;r&&!(t=this.children[r-1]).size&&t instanceof te&&t.side>=0;r--);if(e<=0){let t,n=!0;for(;(t=r?this.children[r-1]:null)&&t.dom.parentNode!=this.contentDOM;r--,n=!1);return t&&e&&n&&!t.border&&!t.domAtom?t.domFromPos(t.size,e):{node:this.contentDOM,offset:t?o(t.dom)+1:0}}{let t,n=!0;for(;(t=r<this.children.length?this.children[r]:null)&&t.dom.parentNode!=this.contentDOM;r++,n=!1);return t&&n&&!t.border&&!t.domAtom?t.domFromPos(0,e):{node:this.contentDOM,offset:t?o(t.dom):this.contentDOM.childNodes.length}}}parseRange(t,e,r=0){if(0==this.children.length)return{node:this.contentDOM,from:t,to:e,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&&t<=l){let i=a+r.border;if(t>=i&&e<=l-r.border&&r.node&&r.contentDOM&&this.contentDOM.contains(r.contentDOM))return r.parseRange(t,e,i);t=a;for(let e=s;e>0;e--){let r=this.children[e-1];if(r.size&&r.dom.parentNode==this.contentDOM&&!r.emptyChildAt(1)){n=o(r.dom)+1;break}t-=r.size}-1==n&&(n=0)}if(n>-1&&(l>e||s==this.children.length-1)){e=l;for(let t=s+1;t<this.children.length;t++){let r=this.children[t];if(r.size&&r.dom.parentNode==this.contentDOM&&!r.emptyChildAt(-1)){i=o(r.dom);break}e+=r.size}-1==i&&(i=this.contentDOM.childNodes.length);break}a=l}return{node:this.contentDOM,from:t,to:e,fromOffset:n,toOffset:i}}emptyChildAt(t){if(this.border||!this.contentDOM||!this.children.length)return!1;let e=this.children[t<0?0:this.children.length-1];return 0==e.size||e.emptyChildAt(t)}domAfterPos(t){let{node:e,offset:r}=this.domFromPos(t,0);if(1!=e.nodeType||r==e.childNodes.length)throw RangeError("No node after pos "+t);return e.childNodes[r]}setSelection(t,e,r,n=!1){let i=Math.min(t,e),a=Math.max(t,e);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(t-s-l.border,e-s-l.border,r,n);s=c}let s=this.domFromPos(t,t?-1:1),l=e==t?s:this.domFromPos(e,e?-1:1),c=r.root.getSelection(),u=r.domSelectionRange(),p=!1;if((O||T)&&t==e){let{node:t,offset:e}=s;if(3==t.nodeType){if((p=!!(e&&"\n"==t.nodeValue[e-1]))&&e==t.nodeValue.length)for(let e=t,r;e;e=e.parentNode){if(r=e.nextSibling){"BR"==r.nodeName&&(s=l={node:r.parentNode,offset:o(r)+1});break}let t=e.pmViewDesc;if(t&&t.node&&t.node.isBlock)break}}else{let r=t.childNodes[e-1];p=r&&("BR"==r.nodeName||"false"==r.contentEditable)}}if(O&&u.focusNode&&u.focusNode!=l.node&&1==u.focusNode.nodeType){let t=u.focusNode.childNodes[u.focusOffset];t&&"false"==t.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||t==e)&&!(p&&O)){c.collapse(s.node,s.offset);try{t!=e&&c.extend(l.node,l.offset),d=!0}catch(t){}}if(!d){if(t>e){let t=s;s=l,l=t}let r=document.createRange();r.setEnd(l.node,l.offset),r.setStart(s.node,s.offset),c.removeAllRanges(),c.addRange(r)}}ignoreMutation(t){return!this.contentDOM&&"selection"!=t.type}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(t,e){for(let r=0,n=0;n<this.children.length;n++){let i=this.children[n],a=r+i.size;if(r==a?t<=a&&e>=r:t<a&&e>r){let n=r+i.border,o=a-i.border;if(t>=n&&e<=o){this.dirty=t==r||e==a?2:1,t==n&&e==o&&(i.contentLost||i.dom.parentNode!=this.contentDOM)?i.dirty=3:i.markDirty(t-n,e-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 t=1;for(let e=this.parent;e;e=e.parent,t++){let r=1==t?2:1;e.dirty<r&&(e.dirty=r)}}get domAtom(){return!1}get ignoreForCoords(){return!1}get ignoreForSelection(){return!1}isText(t){return!1}}class te extends tt{constructor(t,e,r,n){let i,a=e.type.toDOM;if("function"==typeof a&&(a=a(r,()=>i?i.parent?i.parent.posBeforeChild(i):void 0:n)),!e.type.spec.raw){if(1!=a.nodeType){let t=document.createElement("span");t.appendChild(a),a=t}a.contentEditable="false",a.classList.add("ProseMirror-widget")}super(t,[],a,null),this.widget=e,this.widget=e,i=this}matchesWidget(t){return 0==this.dirty&&t.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(t){let e=this.widget.spec.stopEvent;return!!e&&e(t)}ignoreMutation(t){return"selection"!=t.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 tr extends tt{constructor(t,e,r,n){super(t,[],e,null),this.textDOM=r,this.text=n}get size(){return this.text.length}localPosFromDOM(t,e){return t!=this.textDOM?this.posAtStart+(e?this.size:0):this.posAtStart+e}domFromPos(t){return{node:this.textDOM,offset:t}}ignoreMutation(t){return"characterData"===t.type&&t.target.nodeValue==t.oldValue}}class tn extends tt{constructor(t,e,r,n,i){super(t,[],r,n),this.mark=e,this.spec=i}static create(t,e,r,n){let a=n.nodeViews[e.type.name],o=a&&a(e,n,r);return o&&o.dom||(o=i.ZF.renderSpec(document,e.type.spec.toDOM(e,r),null,e.attrs)),new tn(t,e,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(t){return 3!=this.dirty&&this.mark.eq(t)}markDirty(t,e){if(super.markDirty(t,e),0!=this.dirty){let t=this.parent;for(;!t.node;)t=t.parent;t.dirty<this.dirty&&(t.dirty=this.dirty),this.dirty=0}}slice(t,e,r){let n=tn.create(this.parent,this.mark,!0,r),i=this.children,a=this.size;e<a&&(i=ty(i,e,a,r)),t>0&&(i=ty(i,0,t,r));for(let t=0;t<i.length;t++)i[t].parent=n;return n.children=i,n}ignoreMutation(t){return this.spec.ignoreMutation?this.spec.ignoreMutation(t):super.ignoreMutation(t)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}}class ti extends tt{constructor(t,e,r,n,i,a,o){super(t,[],i,a),this.node=e,this.outerDeco=r,this.innerDeco=n,this.nodeDOM=o}static create(t,e,r,n,a,o){let s=a.nodeViews[e.type.name],l,c=s&&s(e,a,()=>l?l.parent?l.parent.posBeforeChild(l):void 0:o,r,n),u=c&&c.dom,h=c&&c.contentDOM;if(e.isText)if(u){if(3!=u.nodeType)throw RangeError("Text must be rendered as a DOM text node")}else u=document.createTextNode(e.text);else if(!u){let t=i.ZF.renderSpec(document,e.type.spec.toDOM(e),null,e.attrs);({dom:u,contentDOM:h}=t)}h||e.isText||"BR"==u.nodeName||(u.hasAttribute("contenteditable")||(u.contentEditable="false"),e.type.spec.draggable&&(u.draggable=!0));let p=u;return(u=td(u,r,e),c)?l=new tl(t,e,r,n,u,h||null,p,c):e.isText?new to(t,e,r,n,u,p):new ti(t,e,r,n,u,h||null,p)}parseRule(t){if(this.node.type.spec.reparseInView)return null;let e={node:this.node.type.name,attrs:this.node.attrs};if("pre"==this.node.type.whitespace&&(e.preserveWhitespace="full"),this.contentDOM)if(this.contentLost){for(let t=this.children.length-1;t>=0;t--){let r=this.children[t];if(this.dom.contains(r.dom.parentNode)){e.contentElement=r.dom.parentNode;break}}if(!e.contentElement){let r=t&&t.find(e=>1==e.nodeType&&0>t.indexOf(e.parentNode)&&this.dom.contains(e));r?e.contentElement=r:e.getContent=()=>i.FK.empty}}else e.contentElement=this.contentDOM;else e.getContent=()=>this.node.content;return e}matchesNode(t,e,r){return 0==this.dirty&&t.eq(this.node)&&tf(e,this.outerDeco)&&r.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return+!this.node.isLeaf}updateChildren(t,e){let r=this.node.inlineContent,n=e,a=t.composing?this.localCompositionInfo(t,e):null,o=a&&a.pos>-1?a:null,s=a&&a.pos<0,l=new tg(this,o&&o.node,t);(function(t,e,r,n){let i=e.locals(t),a=0;if(0==i.length){for(let r=0;r<t.childCount;r++){let o=t.child(r);n(o,i,e.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 t=i[o++];t.widget&&(u?(h||(h=[u])).push(t):u=t)}if(u)if(h){h.sort(tA);for(let t=0;t<h.length;t++)r(h[t],c,!!l)}else r(u,c,!!l);if(l)d=-1,p=l,l=null;else if(c<t.childCount)d=c,p=t.child(c++);else break;for(let t=0;t<s.length;t++)s[t].to<=a&&s.splice(t--,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 t=f;o<i.length&&i[o].from<t&&(t=i[o].from);for(let e=0;e<s.length;e++)s[e].to<t&&(t=s[e].to);t<f&&(l=p.cut(t-a),p=p.cut(0,t-a),f=t,d=-1)}else for(;o<i.length&&i[o].to<f;)o++;let m=p.isInline&&!p.isLeaf?s.filter(t=>!t.inline):s.slice();n(p,m,e.forChild(a,p),d),a=f}})(this.node,this.innerDeco,(e,a,o)=>{e.spec.marks?l.syncToMarks(e.spec.marks,r,t,a):e.type.side>=0&&!o&&l.syncToMarks(a==this.node.childCount?i.CU.none:this.node.child(a).marks,r,t,a),l.placeWidget(e,t,n)},(e,i,o,c)=>{let u;l.syncToMarks(e.marks,r,t,c),l.findNodeMatch(e,i,o,c)||s&&t.state.selection.from>n&&t.state.selection.to<n+e.nodeSize&&(u=l.findIndexWithChild(a.node))>-1&&l.updateNodeAt(e,i,o,u,t)||l.updateNextNode(e,i,o,t,c,n)||l.addNode(e,i,o,t,n),n+=e.nodeSize}),l.syncToMarks([],r,t,0),this.node.isTextblock&&l.addTextblockHacks(),l.destroyRest(),(l.changed||2==this.dirty)&&(o&&this.protectLocalComposition(t,o),function t(e,r,n){let i=e.firstChild,a=!1;for(let o=0;o<r.length;o++){let s=r[o],l=s.dom;if(l.parentNode==e){for(;l!=i;)i=tm(i),a=!0;i=i.nextSibling}else a=!0,e.insertBefore(l,i);if(s instanceof tn){let r=i?i.previousSibling:e.lastChild;t(s.contentDOM,s.children,n),i=r?r.nextSibling:e.firstChild}}for(;i;)i=tm(i),a=!0;a&&n.trackWrites==e&&(n.trackWrites=null)}(this.contentDOM,this.children,t),P&&function(t){if("UL"==t.nodeName||"OL"==t.nodeName){let e=t.style.cssText;t.style.cssText=e+"; list-style: square !important",window.getComputedStyle(t).listStyle,t.style.cssText=e}}(this.dom))}localCompositionInfo(t,e){let{from:r,to:i}=t.state.selection;if(!(t.state.selection instanceof n.U3)||r<e||i>e+this.node.content.size)return null;let a=t.input.compositionNode;if(!a||!this.dom.contains(a.parentNode))return null;if(!this.node.inlineContent)return{node:a,pos:-1,text:""};{let t=a.nodeValue,n=function(t,e,r,n){for(let i=0,a=0;i<t.childCount&&a<=n;){let o=t.child(i++),s=a;if(a+=o.nodeSize,!o.isText)continue;let l=o.text;for(;i<t.childCount;){let e=t.child(i++);if(a+=e.nodeSize,!e.isText)break;l+=e.text}if(a>=r){if(a>=n&&l.slice(n-e.length-s,n-s)==e)return n-e.length;let t=s<n?l.lastIndexOf(e,n-s-1):-1;if(t>=0&&t+e.length+s>=r)return s+t;if(r==n&&l.length>=n+e.length-s&&l.slice(n-s,n-s+e.length)==e)return n}}return -1}(this.node.content,t,r-e,i-e);return n<0?null:{node:a,pos:n,text:t}}}protectLocalComposition(t,{node:e,pos:r,text:n}){if(this.getDesc(e))return;let i=e;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 tr(this,i,e,n);t.input.compositionNodes.push(a),this.children=ty(this.children,r,r+n.length,t,a)}update(t,e,r,n){return 3!=this.dirty&&!!t.sameMarkup(this.node)&&(this.updateInner(t,e,r,n),!0)}updateInner(t,e,r,n){this.updateOuterDeco(e),this.node=t,this.innerDeco=r,this.contentDOM&&this.updateChildren(n,this.posAtStart),this.dirty=0}updateOuterDeco(t){if(tf(t,this.outerDeco))return;let e=1!=this.nodeDOM.nodeType,r=this.dom;this.dom=tp(this.dom,this.nodeDOM,th(this.outerDeco,this.node,e),th(t,this.node,e)),this.dom!=r&&(r.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=t}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 ta(t,e,r,n,i){td(n,e,t);let a=new ti(void 0,t,e,r,n,n,n);return a.contentDOM&&a.updateChildren(i,0),a}class to extends ti{constructor(t,e,r,n,i,a){super(t,e,r,n,i,null,a)}parseRule(){let t=this.nodeDOM.parentNode;for(;t&&t!=this.dom&&!t.pmIsDeco;)t=t.parentNode;return{skip:t||!0}}update(t,e,r,n){return 3!=this.dirty&&(0==this.dirty||!!this.inParent())&&!!t.sameMarkup(this.node)&&(this.updateOuterDeco(e),(0!=this.dirty||t.text!=this.node.text)&&t.text!=this.nodeDOM.nodeValue&&(this.nodeDOM.nodeValue=t.text,n.trackWrites==this.nodeDOM&&(n.trackWrites=null)),this.node=t,this.dirty=0,!0)}inParent(){let t=this.parent.contentDOM;for(let e=this.nodeDOM;e;e=e.parentNode)if(e==t)return!0;return!1}domFromPos(t){return{node:this.nodeDOM,offset:t}}localPosFromDOM(t,e,r){return t==this.nodeDOM?this.posAtStart+Math.min(e,this.node.text.length):super.localPosFromDOM(t,e,r)}ignoreMutation(t){return"characterData"!=t.type&&"selection"!=t.type}slice(t,e,r){let n=this.node.cut(t,e),i=document.createTextNode(n.text);return new to(this.parent,n,this.outerDeco,this.innerDeco,i,i)}markDirty(t,e){super.markDirty(t,e),this.dom!=this.nodeDOM&&(0==t||e==this.nodeDOM.nodeValue.length)&&(this.dirty=3)}get domAtom(){return!1}isText(t){return this.node.text==t}}class ts extends tt{parseRule(){return{ignore:!0}}matchesHack(t){return 0==this.dirty&&this.dom.nodeName==t}get domAtom(){return!0}get ignoreForCoords(){return"IMG"==this.dom.nodeName}}class tl extends ti{constructor(t,e,r,n,i,a,o,s){super(t,e,r,n,i,a,o),this.spec=s}update(t,e,r,n){if(3==this.dirty)return!1;if(this.spec.update&&(this.node.type==t.type||this.spec.multiType)){let i=this.spec.update(t,e,r);return i&&this.updateInner(t,e,r,n),i}return(!!this.contentDOM||!!t.isLeaf)&&super.update(t,e,r,n)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(t,e,r,n){this.spec.setSelection?this.spec.setSelection(t,e,r.root):super.setSelection(t,e,r,n)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(t){return!!this.spec.stopEvent&&this.spec.stopEvent(t)}ignoreMutation(t){return this.spec.ignoreMutation?this.spec.ignoreMutation(t):super.ignoreMutation(t)}}let tc=function(t){t&&(this.nodeName=t)};tc.prototype=Object.create(null);let tu=[new tc];function th(t,e,r){if(0==t.length)return tu;let n=r?tu[0]:new tc,i=[n];for(let a=0;a<t.length;a++){let o=t[a].type.attrs;if(o)for(let t in o.nodeName&&i.push(n=new tc(o.nodeName)),o){let a=o[t];null!=a&&(r&&1==i.length&&i.push(n=new tc(e.isInline?"span":"div")),"class"==t?n.class=(n.class?n.class+" ":"")+a:"style"==t?n.style=(n.style?n.style+";":"")+a:"nodeName"!=t&&(n[t]=a))}}return i}function tp(t,e,r,n){if(r==tu&&n==tu)return e;let i=e;for(let e=0;e<n.length;e++){let a=n[e],o=r[e];if(e){let e;o&&o.nodeName==a.nodeName&&i!=t&&(e=i.parentNode)&&e.nodeName.toLowerCase()==a.nodeName||((e=document.createElement(a.nodeName)).pmIsDeco=!0,e.appendChild(i),o=tu[0]),i=e}!function(t,e,r){for(let n in e)"class"==n||"style"==n||"nodeName"==n||n in r||t.removeAttribute(n);for(let n in r)"class"!=n&&"style"!=n&&"nodeName"!=n&&r[n]!=e[n]&&t.setAttribute(n,r[n]);if(e.class!=r.class){let n=e.class?e.class.split(" ").filter(Boolean):[],i=r.class?r.class.split(" ").filter(Boolean):[];for(let e=0;e<n.length;e++)-1==i.indexOf(n[e])&&t.classList.remove(n[e]);for(let e=0;e<i.length;e++)-1==n.indexOf(i[e])&&t.classList.add(i[e]);0==t.classList.length&&t.removeAttribute("class")}if(e.style!=r.style){if(e.style){let r=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g,n;for(;n=r.exec(e.style);)t.style.removeProperty(n[1])}r.style&&(t.style.cssText+=r.style)}}(i,o||tu[0],a)}return i}function td(t,e,r){return tp(t,t,tu,th(e,r,1!=t.nodeType))}function tf(t,e){if(t.length!=e.length)return!1;for(let r=0;r<t.length;r++)if(!t[r].type.eq(e[r].type))return!1;return!0}function tm(t){let e=t.nextSibling;return t.parentNode.removeChild(t),e}class tg{constructor(t,e,r){this.lock=e,this.view=r,this.index=0,this.stack=[],this.changed=!1,this.top=t,this.preMatch=function(t,e){let r=e,n=r.children.length,i=t.childCount,a=new Map,o=[];l:for(;i>0;){let s;for(;;)if(n){let t=r.children[n-1];if(t instanceof tn)r=t,n=t.children.length;else{s=t,n--;break}}else if(r==e)break l;else n=r.parent.children.indexOf(r),r=r.parent;let l=s.node;if(l){if(l!=t.child(i-1))break;--i,a.set(s,i),o.push(s)}}return{index:i,matched:a,matches:o.reverse()}}(t.node.content,t)}destroyBetween(t,e){if(t!=e){for(let r=t;r<e;r++)this.top.children[r].destroy();this.top.children.splice(t,e-t),this.changed=!0}}destroyRest(){this.destroyBetween(this.index,this.top.children.length)}syncToMarks(t,e,r,n){let i=0,a=this.stack.length>>1,o=Math.min(a,t.length);for(;i<o&&(i==a-1?this.top:this.stack[i+1<<1]).matchesMark(t[i])&&!1!==t[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<t.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 e=this.index;e<o;e++){let r=this.top.children[e];if(r.matchesMark(t[a])&&!this.isLocked(r.dom)){i=e;break}}if(i<0&&this.index<this.top.children.length){let e=this.top.children[this.index];e instanceof tn&&3!=e.dirty&&e.mark.type==t[a].type&&e.spec.update&&!this.isLocked(e.dom)&&e.spec.update(t[a])&&(e.mark=t[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=tn.create(this.top,t[a],e,r);this.top.children.splice(this.index,0,n),this.top=n,this.changed=!0}this.index=0,a++}}findNodeMatch(t,e,r,n){let i=-1,a;if(n>=this.preMatch.index&&(a=this.preMatch.matches[n-this.preMatch.index]).parent==this.top&&a.matchesNode(t,e,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(t,e,r)&&!this.preMatch.matched.has(a)){i=n;break}}return!(i<0)&&(this.destroyBetween(this.index,i),this.index++,!0)}updateNodeAt(t,e,r,n,i){let a=this.top.children[n];return 3==a.dirty&&a.dom==a.contentDOM&&(a.dirty=2),!!a.update(t,e,r,i)&&(this.destroyBetween(this.index,n),this.index++,!0)}findIndexWithChild(t){for(;;){let e=t.parentNode;if(!e)return -1;if(e==this.top.contentDOM){let e=t.pmViewDesc;if(e){for(let t=this.index;t<this.top.children.length;t++)if(this.top.children[t]==e)return t}return -1}t=e}}updateNextNode(t,e,r,n,i,a){for(let o=this.index;o<this.top.children.length;o++){let s=this.top.children[o];if(s instanceof ti){let l=this.preMatch.matched.get(s);if(null!=l&&l!=i)return!1;let c=s.dom,u,h=this.isLocked(c)&&!(t.isText&&s.node&&s.node.isText&&s.nodeDOM.nodeValue==t.text&&3!=s.dirty&&tf(e,s.outerDeco));if(!h&&s.update(t,e,r,n))return this.destroyBetween(this.index,o),s.dom!=c&&(this.changed=!0),this.index++,!0;if(!h&&(u=this.recreateWrapper(s,t,e,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(t,e,r,n,i,a){if(t.dirty||e.isAtom||!t.children.length||!t.node.content.eq(e.content)||!tf(r,t.outerDeco)||!n.eq(t.innerDeco))return null;let o=ti.create(this.top,e,r,n,i,a);if(o.contentDOM)for(let e of(o.children=t.children,t.children=[],o.children))e.parent=o;return t.destroy(),o}addNode(t,e,r,n,i){let a=ti.create(this.top,t,e,r,n,i);a.contentDOM&&a.updateChildren(n,i+1),this.top.children.splice(this.index++,0,a),this.changed=!0}placeWidget(t,e,r){let n=this.index<this.top.children.length?this.top.children[this.index]:null;if(n&&n.matchesWidget(t)&&(t==n.widget||!n.widget.type.toDOM.parentNode))this.index++;else{let n=new te(this.top,t,e,r);this.top.children.splice(this.index++,0,n),this.changed=!0}}addTextblockHacks(){let t=this.top.children[this.index-1],e=this.top;for(;t instanceof tn;)t=(e=t).children[e.children.length-1];(!t||!(t instanceof to)||/\n$/.test(t.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(t.node.text))&&((T||L)&&t&&"false"==t.dom.contentEditable&&this.addHackNode("IMG",e),this.addHackNode("BR",this.top))}addHackNode(t,e){if(e==this.top&&this.index<e.children.length&&e.children[this.index].matchesHack(t))this.index++;else{let r=document.createElement(t);"IMG"==t&&(r.className="ProseMirror-separator",r.alt=""),"BR"==t&&(r.className="ProseMirror-trailingBreak");let n=new ts(this.top,[],r,null);e!=this.top?e.children.push(n):e.children.splice(this.index++,0,n),this.changed=!0}}isLocked(t){return this.lock&&(t==this.lock||1==t.nodeType&&t.contains(this.lock.parentNode))}}function tA(t,e){return t.type.side-e.type.side}function ty(t,e,r,n,i){let a=[];for(let o=0,s=0;o<t.length;o++){let l=t[o],c=s,u=s+=l.size;c>=r||u<=e?a.push(l):(c<e&&a.push(l.slice(0,e-c,n)),i&&(a.push(i),i=void 0),u>r&&a.push(l.slice(r-c,l.size,n)))}return a}function tv(t,e=null){let r=t.domSelectionRange(),i=t.state.doc;if(!r.focusNode)return null;let a=t.docView.nearestDesc(r.focusNode),s=a&&0==a.size,l=t.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 t=a.node;if(a&&t.isAtom&&n.nh.isSelectable(t)&&a.parent&&!(t.isInline&&function(t,e,r){for(let n=0==e,i=e==f(t);n||i;){if(t==r)return!0;let e=o(t);if(!(t=t.parentNode))return!1;n=n&&0==e,i=i&&e==f(t)}}(r.focusNode,r.focusOffset,a.dom))){let t=a.posBefore;h=new n.nh(l==t?c:i.resolve(t))}}else{if(r instanceof t.dom.ownerDocument.defaultView.Selection&&r.rangeCount>1){let e=l,n=l;for(let i=0;i<r.rangeCount;i++){let a=r.getRangeAt(i);e=Math.min(e,t.docView.posFromDOM(a.startContainer,a.startOffset,1)),n=Math.max(n,t.docView.posFromDOM(a.endContainer,a.endOffset,-1))}if(e<0)return null;[u,l]=n==t.state.selection.anchor?[n,e]:[e,n],c=i.resolve(l)}else u=t.docView.posFromDOM(r.anchorNode,r.anchorOffset,1);if(u<0)return null}let p=i.resolve(u);if(!h){let r="pointer"==e||t.state.selection.head<c.pos&&!s?1:-1;h=tL(t,p,c,r)}return h}function tR(t){return t.editable?t.hasFocus():tT(t)&&document.activeElement&&document.activeElement.contains(t.dom)}function tb(t,e=!1){let r=t.state.selection;if(tO(t,r),!tR(t))return;let i=t.input.mouseDown;if(!e&&L&&i){let e=t.domSelectionRange(),r=t.domObserver.currentSelection;if(e.anchorNode&&r.anchorNode&&h(e.anchorNode,e.anchorOffset,r.anchorNode,r.anchorOffset)&&i.delaySelUpdate())return void t.domObserver.setCurSelection()}if(t.domObserver.disconnectSelection(),t.cursorWrapper)!function(t){let e=t.domSelection();if(!e)return;let r=t.cursorWrapper.dom,n="IMG"==r.nodeName;n?e.collapse(r.parentNode,o(r)+1):e.collapse(r,0),!n&&!t.state.selection.visible&&S&&w<=11&&(r.disabled=!0,r.disabled=!1)}(t);else{var a;let i,o,s,l,{anchor:c,head:u}=r,h,p;tx&&!(r instanceof n.U3)&&(r.$from.parent.inlineContent||(h=tM(t,r.from)),r.empty||r.$from.parent.inlineContent||(p=tM(t,r.to))),t.docView.setSelection(c,u,t,e),tx&&(h&&tw(h),p&&tw(p)),r.visible?t.dom.classList.remove("ProseMirror-hideselection"):(t.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&((i=(a=t).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(()=>{(!tR(a)||a.state.selection.visible)&&a.dom.classList.remove("ProseMirror-hideselection")},20))})))}t.domObserver.setCurSelection(),t.domObserver.connectSelection()}let tx=T||L&&_<63;function tM(t,e){let{node:r,offset:n}=t.docView.domFromPos(e,0),i=n<r.childNodes.length?r.childNodes[n]:null,a=n?r.childNodes[n-1]:null;if(T&&i&&"false"==i.contentEditable)return tS(i);if((!i||"false"==i.contentEditable)&&(!a||"false"==a.contentEditable)){if(i)return tS(i);else if(a)return tS(a)}}function tS(t){return t.contentEditable="true",T&&t.draggable&&(t.draggable=!1,t.wasDraggable=!0),t}function tw(t){t.contentEditable="false",t.wasDraggable&&(t.draggable=!0,t.wasDraggable=null)}function tO(t,e){if(e instanceof n.nh){let r=t.docView.descAt(e.from);r!=t.lastSelectedViewDesc&&(tN(t),r&&r.selectNode(),t.lastSelectedViewDesc=r)}else tN(t)}function tN(t){t.lastSelectedViewDesc&&(t.lastSelectedViewDesc.parent&&t.lastSelectedViewDesc.deselectNode(),t.lastSelectedViewDesc=void 0)}function tL(t,e,r,i){return t.someProp("createSelectionBetween",n=>n(t,e,r))||n.U3.between(e,r,i)}function t_(t){return(!t.editable||!!t.hasFocus())&&tT(t)}function tT(t){let e=t.domSelectionRange();if(!e.anchorNode)return!1;try{return t.dom.contains(3==e.anchorNode.nodeType?e.anchorNode.parentNode:e.anchorNode)&&(t.editable||t.dom.contains(3==e.focusNode.nodeType?e.focusNode.parentNode:e.focusNode))}catch(t){return!1}}function tP(t,e){let{$anchor:r,$head:i}=t.selection,a=e>0?r.max(i):r.min(i),o=a.parent.inlineContent?a.depth?t.doc.resolve(e>0?a.after():a.before()):null:a;return o&&n.LN.findFrom(o,e)}function tI(t,e){return t.dispatch(t.state.tr.setSelection(e).scrollIntoView()),!0}function tC(t,e,r){let i=t.state.selection;if(i instanceof n.U3){if(r.indexOf("s")>-1){let{$head:r}=i,a=r.textOffset?null:e<0?r.nodeBefore:r.nodeAfter;if(!a||a.isText||!a.isLeaf)return!1;let o=t.state.doc.resolve(r.pos+a.nodeSize*(e<0?-1:1));return tI(t,new n.U3(i.$anchor,o))}else if(!i.empty)return!1;else if(t.endOfTextblock(e>0?"forward":"backward")){let r=tP(t.state,e);return!!r&&r instanceof n.nh&&tI(t,r)}else if(!(I&&r.indexOf("m")>-1)){let r=i.$head,a=r.textOffset?null:e<0?r.nodeBefore:r.nodeAfter,o;if(!a||a.isText)return!1;let s=e<0?r.pos-a.nodeSize:r.pos;return!!(a.isAtom||(o=t.docView.descAt(s))&&!o.contentDOM)&&(n.nh.isSelectable(a)?tI(t,new n.nh(e<0?t.state.doc.resolve(r.pos-a.nodeSize):r)):!!F&&tI(t,new n.U3(t.state.doc.resolve(e<0?s:s+a.nodeSize))))}}else{if(i instanceof n.nh&&i.node.isInline)return tI(t,new n.U3(e>0?i.$to:i.$from));let r=tP(t.state,e);return!!r&&tI(t,r)}}function tk(t){return 3==t.nodeType?t.nodeValue.length:t.childNodes.length}function tF(t,e){let r=t.pmViewDesc;return r&&0==r.size&&(e<0||t.nextSibling||"BR"!=t.nodeName)}function tX(t,e){return e<0?function(t){let e=t.domSelectionRange(),r=e.focusNode,n=e.focusOffset;if(!r)return;let i,a,s=!1;for(O&&1==r.nodeType&&n<tk(r)&&tF(r.childNodes[n],-1)&&(s=!0);;)if(n>0)if(1!=r.nodeType)break;else{let t=r.childNodes[n-1];if(tF(t,-1))i=r,a=--n;else if(3==t.nodeType)n=(r=t).nodeValue.length;else break}else if(tU(r))break;else{let e=r.previousSibling;for(;e&&tF(e,-1);)i=r.parentNode,a=o(e),e=e.previousSibling;if(e)n=tk(r=e);else{if((r=r.parentNode)==t.dom)break;n=0}}s?tW(t,r,n):i&&tW(t,i,a)}(t):function(t){let e,r,n=t.domSelectionRange(),i=n.focusNode,a=n.focusOffset;if(!i)return;let s=tk(i);for(;;)if(a<s){if(1!=i.nodeType)break;if(tF(i.childNodes[a],1))e=i,r=++a;else break}else if(tU(i))break;else{let n=i.nextSibling;for(;n&&tF(n,1);)e=n.parentNode,r=o(n)+1,n=n.nextSibling;if(n)a=0,s=tk(i=n);else{if((i=i.parentNode)==t.dom)break;a=s=0}}e&&tW(t,e,r)}(t)}function tU(t){let e=t.pmViewDesc;return e&&e.node&&e.node.isBlock}function tW(t,e,r){if(3!=e.nodeType){let t,n;(n=function(t,e){for(;t&&e==t.childNodes.length&&!m(t);)e=o(t)+1,t=t.parentNode;for(;t&&e<t.childNodes.length;){let r=t.childNodes[e];if(3==r.nodeType)return r;if(1==r.nodeType&&"false"==r.contentEditable)break;t=r,e=0}}(e,r))?(e=n,r=0):(t=function(t,e){for(;t&&!e&&!m(t);)e=o(t),t=t.parentNode;for(;t&&e;){let r=t.childNodes[e-1];if(3==r.nodeType)return r;if(1==r.nodeType&&"false"==r.contentEditable)break;e=(t=r).childNodes.length}}(e,r))&&(e=t,r=t.nodeValue.length)}let n=t.domSelection();if(!n)return;if(g(n)){let t=document.createRange();t.setEnd(e,r),t.setStart(e,r),n.removeAllRanges(),n.addRange(t)}else n.extend&&n.extend(e,r);t.domObserver.setCurSelection();let{state:i}=t;setTimeout(()=>{t.state==i&&tb(t)},50)}function tV(t,e){let r=t.state.doc.resolve(e);if(!(L||C)&&r.parent.inlineContent){let n=t.coordsAtPos(e);if(e>r.start()){let r=t.coordsAtPos(e-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(e<r.end()){let r=t.coordsAtPos(e+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(t.dom).direction?"rtl":"ltr"}function tE(t,e,r){let i=t.state.selection;if(i instanceof n.U3&&!i.empty||r.indexOf("s")>-1||I&&r.indexOf("m")>-1)return!1;let{$from:a,$to:o}=i;if(!a.parent.inlineContent||t.endOfTextblock(e<0?"up":"down")){let r=tP(t.state,e);if(r&&r instanceof n.nh)return tI(t,r)}if(!a.parent.inlineContent){let r=e<0?a:o,s=i instanceof n.i5?n.LN.near(r,e):n.LN.findFrom(r,e);return!!s&&tI(t,s)}return!1}function tY(t,e){if(!(t.state.selection instanceof n.U3))return!0;let{$head:r,$anchor:i,empty:a}=t.state.selection;if(!r.sameParent(i))return!0;if(!a)return!1;if(t.endOfTextblock(e>0?"forward":"backward"))return!0;let o=!r.textOffset&&(e<0?r.nodeBefore:r.nodeAfter);if(o&&!o.isText){let n=t.state.tr;return e<0?n.delete(r.pos-o.nodeSize,r.pos):n.delete(r.pos,r.pos+o.nodeSize),t.dispatch(n),!0}return!1}function tD(t,e,r){t.domObserver.stop(),e.contentEditable=r,t.domObserver.start()}function tQ(t,e){t.someProp("transformCopied",r=>{e=r(e,t)});let r=[],{content:n,openStart:a,openEnd:o}=e;for(;a>1&&o>1&&1==n.childCount&&1==n.firstChild.childCount;){a--,o--;let t=n.firstChild;r.push(t.type.name,t.attrs!=t.type.defaultAttrs?t.attrs:null),n=t.content}let s=t.someProp("clipboardSerializer")||i.ZF.fromSchema(t.state.schema),l=tz(),c=l.createElement("div");c.appendChild(s.serializeFragment(n,{document:l}));let u=c.firstChild,h,p=0;for(;u&&1==u.nodeType&&(h=tH[u.nodeName.toLowerCase()]);){for(let t=h.length-1;t>=0;t--){let e=l.createElement(h[t]);for(;c.firstChild;)e.appendChild(c.firstChild);c.appendChild(e),p++}u=c.firstChild}return u&&1==u.nodeType&&u.setAttribute("data-pm-slice",`${a} ${o}${p?` -${p}`:""} ${JSON.stringify(r)}`),{dom:c,text:t.someProp("clipboardTextSerializer",r=>r(e,t))||e.content.textBetween(0,e.content.size,"\n\n"),slice:e}}function tZ(t,e,r,n,a){let o,s,l=a.parent.type.spec.code;if(!r&&!e)return null;let c=!!e&&(n||l||!r);if(c){if(t.someProp("transformPastedText",r=>{e=r(e,l||n,t)}),l)return s=new i.Ji(i.FK.from(t.state.schema.text(e.replace(/\r\n?/g,"\n"))),0,0),t.someProp("transformPasted",e=>{s=e(s,t,!0)}),s;let r=t.someProp("clipboardTextParser",r=>r(e,a,n,t));if(r)s=r;else{let r=a.marks(),{schema:n}=t.state,s=i.ZF.fromSchema(n);o=document.createElement("div"),e.split(/(?:\r\n?|\n)+/).forEach(t=>{let e=o.appendChild(document.createElement("p"));t&&e.appendChild(s.serializeNode(n.text(t,r)))})}}else t.someProp("transformPastedHTML",e=>{r=e(r,t)}),o=function(t){var e;let r,n=/^(\s*<meta [^>]*>)*/.exec(t);n&&(t=t.slice(n[0].length));let i=tz(),a=i.body,o=/<([a-z][^>\s]+)/i.exec(t),s;if((s=o&&tH[o[1].toLowerCase()])&&(t=s.map(t=>"<"+t+">").join("")+t+s.map(t=>"</"+t+">").reverse().join("")),a.innerHTML=(e=t,(r=window.trustedTypes)?(tJ||(tJ=r.defaultPolicy||r.createPolicy("ProseMirrorClipboard",{createHTML:t=>t})),tJ.createHTML(e)):e),s)for(let t=0;t<s.length;t++)a=a.querySelector(s[t])||a;for(let t=0;t<i.styleSheets.length;t++){let e=i.styleSheets[t];for(let t=0;t<e.rules.length;t++){let r=e.rules[t];if(r instanceof CSSStyleRule){let t=a.querySelectorAll(r.selectorText);for(let e=0;e<t.length;e++)t[e].style.cssText+=r.style.cssText}}}return a}(r),F&&function(t){let e=t.querySelectorAll(L?"span:not([class]):not([style])":"span.Apple-converted-space");for(let r=0;r<e.length;r++){let n=e[r];1==n.childNodes.length&&" "==n.textContent&&n.parentNode&&n.parentNode.replaceChild(t.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 t=+h[3];t>0;t--){let t=o.firstChild;for(;t&&1!=t.nodeType;)t=t.nextSibling;if(!t)break;o=t}if(s||(s=(t.someProp("clipboardParser")||t.someProp("domParser")||i.S4.fromSchema(t.state.schema)).parseSlice(o,{preserveWhitespace:!!(c||h),context:a,ruleFromNode:t=>"BR"!=t.nodeName||t.nextSibling||!t.parentNode||tB.test(t.parentNode.nodeName)?null:{ignore:!0}})),h)s=function(t,e){if(!t.size)return t;let r=t.content.firstChild.type.schema,n;try{n=JSON.parse(e)}catch(e){return t}let{content:a,openStart:o,openEnd:s}=t;for(let t=n.length-2;t>=0;t-=2){let e=r.nodes[n[t]];if(!e||e.hasRequiredAttrs())break;a=i.FK.from(e.create(n[t+1],a)),o++,s++}return new i.Ji(a,o,s)}(tG(s,+h[1],+h[2]),h[4]);else if((s=i.Ji.maxOpen(function(t,e){if(t.childCount<2)return t;for(let r=e.depth;r>=0;r--){let n=e.node(r).contentMatchAt(e.index(r)),a,o=[];if(t.forEach(t=>{if(!o)return;let e=n.findWrapping(t.type),r;if(!e)return o=null;if(r=o.length&&a.length&&function t(e,r,n,a,o){if(o<e.length&&o<r.length&&e[o]==r[o]){let s=t(e,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==e.length-1?n.type:e[o+1]))return a.copy(a.content.append(i.FK.from(tK(n,e,o+1))))}}(e,a,t,o[o.length-1],0))o[o.length-1]=r;else{o.length&&(o[o.length-1]=function t(e,r){if(0==r)return e;let n=e.content.replaceChild(e.childCount-1,t(e.lastChild,r-1)),a=e.contentMatchAt(e.childCount).fillBefore(i.FK.empty,!0);return e.copy(n.append(a))}(o[o.length-1],a.length));let r=tK(t,e);o.push(r),n=n.matchType(r.type),a=e}}),o)return i.FK.from(o)}return t}(s.content,a),!0)).openStart||s.openEnd){let t=0,e=0;for(let e=s.content.firstChild;t<s.openStart&&!e.type.spec.isolating;t++,e=e.firstChild);for(let t=s.content.lastChild;e<s.openEnd&&!t.type.spec.isolating;e++,t=t.lastChild);s=tG(s,t,e)}return t.someProp("transformPasted",e=>{s=e(s,t,c)}),s}let tB=/^(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 tK(t,e,r=0){for(let n=e.length-1;n>=r;n--)t=e[n].create(null,i.FK.from(t));return t}function t$(t,e,r,n,a,o){let s=e<0?t.firstChild:t.lastChild,l=s.content;return t.childCount>1&&(o=0),a<n-1&&(l=t$(l,e,r,n,a+1,o)),a>=r&&(l=e<0?s.contentMatchAt(0).fillBefore(l,o<=a).append(l):l.append(s.contentMatchAt(s.childCount).fillBefore(i.FK.empty,!0))),t.replaceChild(e<0?0:t.childCount-1,s.copy(l))}function tG(t,e,r){return e<t.openStart&&(t=new i.Ji(t$(t.content,-1,e,t.openStart,0,t.openEnd),e,t.openEnd)),r<t.openEnd&&(t=new i.Ji(t$(t.content,1,r,t.openEnd,0,0),t.openStart,r)),t}let tH={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 tz(){return document.implementation.createHTMLDocument("title")}let tJ=null,tj={},tq={},t0={touchstart:!0,touchmove:!0};class t1{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 t2(t,e){t.input.lastSelectionOrigin=e,t.input.lastSelectionTime=Date.now()}function t3(t){t.someProp("handleDOMEvents",e=>{for(let r in e)t.input.eventHandlers[r]||t.dom.addEventListener(r,t.input.eventHandlers[r]=e=>t5(t,e))})}function t5(t,e){return t.someProp("handleDOMEvents",r=>{let n=r[e.type];return!!n&&(n(t,e)||e.defaultPrevented)})}function t4(t){return{left:t.clientX,top:t.clientY}}function t6(t,e,r,n,i){if(-1==n)return!1;let a=t.state.doc.resolve(n);for(let n=a.depth+1;n>0;n--)if(t.someProp(e,e=>n>a.depth?e(t,r,a.nodeAfter,a.before(n),i,!0):e(t,r,a.node(n),a.before(n),i,!1)))return!0;return!1}function t8(t,e,r){if(t.focused||t.focus(),t.state.selection.eq(e))return;let n=t.state.tr.setSelection(e);"pointer"==r&&n.setMeta("pointer",!0),t.dispatch(n)}function t9(t,e,r){let i=t.state.doc;if(-1==e)return i.inlineContent?n.U3.create(i,0,i.content.size):null;let a=i.resolve(e);for(let t=a.depth+1;t>0;t--){let e=t>a.depth?a.nodeAfter:a.node(t),o=a.before(t);if(e.inlineContent)return n.U3.create(i,o+1,o+1+e.content.size);if(r&&n.nh.isSelectable(e))return n.nh.create(i,o)}return null}tq.keydown=(t,e)=>{if((t.input.shiftKey=16==e.keyCode||e.shiftKey,!en(t))&&(t.input.lastKeyCode=e.keyCode,t.input.lastKeyCodeTime=Date.now(),!k||!L||13!=e.keyCode))if(229!=e.keyCode&&t.domObserver.forceFlush(),!P||13!=e.keyCode||e.ctrlKey||e.altKey||e.metaKey)t.someProp("handleKeyDown",r=>r(t,e))||function(t,e){let r,n=e.keyCode,i=(r="",e.ctrlKey&&(r+="c"),e.metaKey&&(r+="m"),e.altKey&&(r+="a"),e.shiftKey&&(r+="s"),r);if(8==n||I&&72==n&&"c"==i)return tY(t,-1)||tX(t,-1);if(46==n&&!e.shiftKey||I&&68==n&&"c"==i)return tY(t,1)||tX(t,1);if(13==n||27==n)return!0;if(37==n||I&&66==n&&"c"==i){let e=37==n?"ltr"==tV(t,t.state.selection.from)?-1:1:-1;return tC(t,e,i)||tX(t,e)}if(39==n||I&&70==n&&"c"==i){let e=39==n?"ltr"==tV(t,t.state.selection.from)?1:-1:1;return tC(t,e,i)||tX(t,e)}else if(38==n||I&&80==n&&"c"==i)return tE(t,-1,i)||tX(t,-1);else if(40==n||I&&78==n&&"c"==i)return function(t){if(!T||t.state.selection.$head.parentOffset>0)return!1;let{focusNode:e,focusOffset:r}=t.domSelectionRange();if(e&&1==e.nodeType&&0==r&&e.firstChild&&"false"==e.firstChild.contentEditable){let r=e.firstChild;tD(t,r,"true"),setTimeout(()=>tD(t,r,"false"),20)}return!1}(t)||tE(t,1,i)||tX(t,1);else if(i==(I?"m":"c")&&(66==n||73==n||89==n||90==n))return!0;return!1}(t,e)?e.preventDefault():t2(t,"key");else{let e=Date.now();t.input.lastIOSEnter=e,t.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{t.input.lastIOSEnter==e&&(t.someProp("handleKeyDown",e=>e(t,A(13,"Enter"))),t.input.lastIOSEnter=0)},200)}},tq.keyup=(t,e)=>{16==e.keyCode&&(t.input.shiftKey=!1)},tq.keypress=(t,e)=>{if(en(t)||!e.charCode||e.ctrlKey&&!e.altKey||I&&e.metaKey)return;if(t.someProp("handleKeyPress",r=>r(t,e)))return void e.preventDefault();let r=t.state.selection;if(!(r instanceof n.U3)||!r.$from.sameParent(r.$to)){let n=String.fromCharCode(e.charCode),i=()=>t.state.tr.insertText(n).scrollIntoView();/[\r\n]/.test(n)||t.someProp("handleTextInput",e=>e(t,r.$from.pos,r.$to.pos,n,i))||t.dispatch(i()),e.preventDefault()}};let t7=I?"metaKey":"ctrlKey";tj.mousedown=(t,e)=>{var r;let i,a;t.input.shiftKey=e.shiftKey;let o=es(t),s=Date.now(),l="singleClick";s-t.input.lastClick.time<500&&(i=(r=t.input.lastClick).x-e.clientX)*i+(a=r.y-e.clientY)*a<100&&!e[t7]&&t.input.lastClick.button==e.button&&("singleClick"==t.input.lastClick.type?l="doubleClick":"doubleClick"==t.input.lastClick.type&&(l="tripleClick")),t.input.lastClick={time:s,x:e.clientX,y:e.clientY,type:l,button:e.button},t.input.mouseDown&&t.input.mouseDown.done();let c=t.posAtCoords(t4(e));c&&("singleClick"==l?t.input.mouseDown=new ee(t,c,e,!!o):("doubleClick"==l?function(t,e,r,n){return t6(t,"handleDoubleClickOn",e,r,n)||t.someProp("handleDoubleClick",r=>r(t,e,n))}:function(t,e,r,i){return t6(t,"handleTripleClickOn",e,r,i)||t.someProp("handleTripleClick",r=>r(t,e,i))||function(t,e,r){if(0!=r.button)return!1;let i=t9(t,e,!0),a=t.state.doc;return!!i&&(t8(t,i,"pointer"),i instanceof n.U3&&a.eq(t.state.doc)&&(t.input.mouseDown=new er(t,i)),!0)}(t,r,i)})(t,c.pos,c.inside,e)?e.preventDefault():t2(t,"pointer"))};class et{constructor(t){this.view=t,this.mightDrag=null,t.root.addEventListener("mouseup",this.up=this.up.bind(this)),t.root.addEventListener("mousemove",this.move=this.move.bind(this))}up(t){this.done()}move(t){0==t.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 ee extends et{constructor(t,e,r,i){let a,o;if(super(t),this.pos=e,this.event=r,this.flushed=i,this.delayedSelectionSync=!1,this.startDoc=t.state.doc,this.selectNode=!!r[t7],this.allowDefault=r.shiftKey,e.inside>-1)a=t.state.doc.nodeAt(e.inside),o=e.inside;else{let r=t.state.doc.resolve(e.pos);a=r.parent,o=r.depth?r.before():0}let s=i?null:r.target,l=s?t.docView.nearestDesc(s,!0):null;this.target=l&&1==l.nodeDOM.nodeType?l.nodeDOM:null;let{selection:c}=t.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()),t2(t,"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||tb(this.view)})}up(t){if(this.done(),!this.view.dom.contains(t.target))return;let e=this.pos;if(this.view.state.doc!=this.startDoc&&(e=this.view.posAtCoords(t4(t))),this.updateAllowDefault(t),this.allowDefault||!e)t2(this.view,"pointer");else{var r,i,a,o;(r=this.view,i=e.pos,a=e.inside,o=this.selectNode,t6(r,"handleClickOn",i,a,t)||r.someProp("handleClick",e=>e(r,i,t))||(o?function(t,e){if(-1==e)return!1;let r=t.state.selection,i,a;r instanceof n.nh&&(i=r.node);let o=t.state.doc.resolve(e);for(let t=o.depth+1;t>0;t--){let e=t>o.depth?o.nodeAfter:o.node(t);if(n.nh.isSelectable(e)){a=i&&r.$from.depth>0&&t>=r.$from.depth&&o.before(r.$from.depth+1)==r.$from.pos?o.before(r.$from.depth):o.before(t);break}}return null!=a&&(t8(t,n.nh.create(t.state.doc,a),"pointer"),!0)}(r,a):function(t,e){if(-1==e)return!1;let r=t.state.doc.resolve(e),i=r.nodeAfter;return!!(i&&i.isAtom&&n.nh.isSelectable(i))&&(t8(t,new n.nh(r),"pointer"),!0)}(r,a)))?t.preventDefault():0==t.button&&(this.flushed||T&&this.mightDrag&&!this.mightDrag.node.isAtom||L&&!this.view.state.selection.visible&&2>=Math.min(Math.abs(e.pos-this.view.state.selection.from),Math.abs(e.pos-this.view.state.selection.to)))?(t8(this.view,n.LN.near(this.view.state.doc.resolve(e.pos)),"pointer"),t.preventDefault()):t2(this.view,"pointer")}}move(t){this.updateAllowDefault(t),t2(this.view,"pointer"),super.move(t)}updateAllowDefault(t){!this.allowDefault&&(Math.abs(this.event.x-t.clientX)>4||Math.abs(this.event.y-t.clientY)>4)&&(this.allowDefault=!0)}delaySelUpdate(){return!!this.allowDefault&&(this.delayedSelectionSync=!0,!0)}}class er extends et{constructor(t,e){super(t),this.startSelection=e,this.startDoc=t.state.doc}move(t){if(0==t.buttons||this.view.isDestroyed||!this.view.state.doc.eq(this.startDoc))return void this.done();t.preventDefault(),t2(this.view,"pointer");let e=this.view.posAtCoords(t4(t)),r=e&&t9(this.view,e.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];t8(this.view,n.U3.create(i,o,s),"pointer")}}function en(t,e){return!!t.composing||!!(T&&500>Math.abs(Date.now()-t.input.compositionEndedAt))&&(t.input.compositionEndedAt=-2e8,!0)}tj.touchstart=t=>{t.input.lastTouch=Date.now(),es(t),t2(t,"pointer")},tj.touchmove=t=>{t.input.lastTouch=Date.now(),t2(t,"pointer")},tj.contextmenu=t=>es(t);let ei=k?5e3:-1;function ea(t,e){clearTimeout(t.input.composingTimeout),e>-1&&(t.input.composingTimeout=setTimeout(()=>es(t),e))}function eo(t){for(t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=Date.now());t.input.compositionNodes.length>0;)t.input.compositionNodes.pop().markParentsDirty()}function es(t,e=!1){if(!k||!(t.domObserver.flushingSoon>=0)){if(t.domObserver.forceFlush(),eo(t),e||t.docView&&t.docView.dirty){let r=tv(t),n=t.state.selection;return r&&!r.eq(n)?t.dispatch(t.state.tr.setSelection(r)):(t.markCursor||e)&&!n.$from.node(n.$from.sharedDepth(n.to)).inlineContent?t.dispatch(t.state.tr.deleteSelection()):t.updateState(t.state),!0}return!1}}tq.compositionstart=tq.compositionupdate=t=>{if(!t.composing){t.domObserver.flush();let{state:e}=t,r=e.selection.$to;if(e.selection instanceof n.U3&&(e.storedMarks||!r.textOffset&&r.parentOffset&&r.nodeBefore.marks.some(t=>!1===t.type.spec.inclusive)||L&&C&&function(t){let{focusNode:e,focusOffset:r}=t.domSelectionRange();if(!e||1!=e.nodeType||r>=e.childNodes.length)return!1;let n=e.childNodes[r];return 1==n.nodeType&&"false"==n.contentEditable}(t)))t.markCursor=t.state.storedMarks||r.marks(),es(t,!0),t.markCursor=null;else if(es(t,!e.selection.empty),O&&e.selection.empty&&r.parentOffset&&!r.textOffset&&r.nodeBefore.marks.length){let e=t.domSelectionRange();for(let r=e.focusNode,n=e.focusOffset;r&&1==r.nodeType&&0!=n;){let e=n<0?r.lastChild:r.childNodes[n-1];if(!e)break;if(3==e.nodeType){let r=t.domSelection();r&&r.collapse(e,e.nodeValue.length);break}r=e,n=-1}}t.input.composing=!0}ea(t,ei)},tq.compositionend=(t,e)=>{t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=Date.now(),t.input.compositionPendingChanges=t.domObserver.pendingRecords().length?t.input.compositionID:0,t.input.compositionNode=null,t.input.badSafariComposition?t.domObserver.forceFlush():t.input.compositionPendingChanges&&Promise.resolve().then(()=>t.domObserver.flush()),t.input.compositionID++,ea(t,20))};let el=S&&w<15||P&&X<604;function ec(t,e,r,n,a){let o=tZ(t,e,r,n,t.state.selection.$from);if(t.someProp("handlePaste",e=>e(t,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?t.state.tr.replaceSelectionWith(s,n):t.state.tr.replaceSelection(o);return t.dispatch(l.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function eu(t){let e=t.getData("text/plain")||t.getData("Text");if(e)return e;let r=t.getData("text/uri-list");return r?r.replace(/\r?\n/g," "):""}tj.copy=tq.cut=(t,e)=>{let r=t.state.selection,n="cut"==e.type;if(r.empty)return;let i=el?null:e.clipboardData,{dom:a,text:o}=tQ(t,r.content());i?(e.preventDefault(),i.clearData(),i.setData("text/html",a.innerHTML),i.setData("text/plain",o)):function(t,e){if(!t.dom.parentNode)return;let r=t.dom.parentNode.appendChild(document.createElement("div"));r.appendChild(e),r.style.cssText="position: fixed; left: -10000px; top: 10px";let n=getSelection(),i=document.createRange();i.selectNodeContents(e),t.dom.blur(),n.removeAllRanges(),n.addRange(i),setTimeout(()=>{r.parentNode&&r.parentNode.removeChild(r),t.focus()},50)}(t,a),n&&t.dispatch(t.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))},tq.paste=(t,e)=>{if(t.composing&&!k)return;let r=el?null:e.clipboardData,n=t.input.shiftKey&&45!=t.input.lastKeyCode;r&&ec(t,eu(r),r.getData("text/html"),n,e)?e.preventDefault():function(t,e){if(!t.dom.parentNode)return;let r=t.input.shiftKey||t.state.selection.$from.parent.type.spec.code,n=t.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=t.input.shiftKey&&45!=t.input.lastKeyCode;setTimeout(()=>{t.focus(),n.parentNode&&n.parentNode.removeChild(n),r?ec(t,n.value,null,i,e):ec(t,n.textContent,n.innerHTML,i,e)},50)}(t,e)};class eh{constructor(t,e,r){this.slice=t,this.move=e,this.node=r}}let ep=I?"altKey":"ctrlKey";function ed(t,e){let r;return t.someProp("dragCopies",t=>{r=r||t(e)}),null!=r?!r:!e[ep]}for(let t in tj.dragstart=(t,e)=>{let r,i=t.input.mouseDown;if(i&&i.done(),!e.dataTransfer)return;let a=t.state.selection,o=a.empty?null:t.posAtCoords(t4(e));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(t.state.doc,i.mightDrag.pos);else if(e.target&&1==e.target.nodeType){let i=t.docView.nearestDesc(e.target,!0);i&&i.node.type.spec.draggable&&i!=t.docView&&(r=n.nh.create(t.state.doc,i.posBefore))}let s=(r||t.state.selection).content(),{dom:l,text:c,slice:u}=tQ(t,s);e.dataTransfer.files.length&&L&&!(_>120)||e.dataTransfer.clearData(),e.dataTransfer.setData(el?"Text":"text/html",l.innerHTML),e.dataTransfer.effectAllowed="copyMove",el||e.dataTransfer.setData("text/plain",c),t.dragging=new eh(u,ed(t,e),r)},tj.dragend=t=>{let e=t.dragging;window.setTimeout(()=>{t.dragging==e&&(t.dragging=null)},50)},tq.dragover=tq.dragenter=(t,e)=>e.preventDefault(),tq.drop=(t,e)=>{try{!function(t,e,r){if(!e.dataTransfer)return;let o=t.posAtCoords(t4(e));if(!o)return;let s=t.state.doc.resolve(o.pos),l=r&&r.slice;l?t.someProp("transformPasted",e=>{l=e(l,t,!1)}):l=tZ(t,eu(e.dataTransfer),el?null:e.dataTransfer.getData("text/html"),!1,s);let c=!!(r&&ed(t,e));if(t.someProp("handleDrop",r=>r(t,e,l||i.Ji.empty,c)))return e.preventDefault();if(!l)return;e.preventDefault();let u=l?(0,a.Um)(t.state.doc,s.pos,l):s.pos;null==u&&(u=s.pos);let h=t.state.tr;if(c){let{node:t}=r;t?t.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 e=h.mapping.map(u);h.mapping.maps[h.mapping.maps.length-1].forEach((t,r,n,i)=>e=i),h.setSelection(tL(t,m,h.doc.resolve(e)))}t.focus(),t.dispatch(h.setMeta("uiEvent","drop"))}(t,e,t.dragging)}finally{t.dragging=null}},tj.focus=t=>{t.input.lastFocus=Date.now(),t.focused||(t.domObserver.stop(),t.dom.classList.add("ProseMirror-focused"),t.domObserver.start(),t.focused=!0,setTimeout(()=>{t.docView&&t.hasFocus()&&!t.domObserver.currentSelection.eq(t.domSelectionRange())&&tb(t)},20))},tj.blur=(t,e)=>{t.focused&&(t.domObserver.stop(),t.dom.classList.remove("ProseMirror-focused"),t.domObserver.start(),e.relatedTarget&&t.dom.contains(e.relatedTarget)&&t.domObserver.currentSelection.clear(),t.focused=!1)},tj.beforeinput=(t,e)=>{if(k&&"deleteContentBackward"==e.inputType){t.domObserver.flushSoon();let{domChangeCount:e}=t.input;setTimeout(()=>{if(t.input.domChangeCount!=e||(t.dom.blur(),t.focus(),t.someProp("handleKeyDown",e=>e(t,A(8,"Backspace")))))return;let{$cursor:r}=t.state.selection;r&&r.pos>0&&t.dispatch(t.state.tr.delete(r.pos-1,r.pos).scrollIntoView())},50)}},tq)tj[t]=tq[t];function ef(t,e){if(t==e)return!0;for(let r in t)if(t[r]!==e[r])return!1;for(let r in e)if(!(r in t))return!1;return!0}class em{constructor(t,e){this.toDOM=t,this.spec=e||eR,this.side=this.spec.side||0}map(t,e,r,n){let{pos:i,deleted:a}=t.mapResult(e.from+n,this.side<0?-1:1);return a?null:new ey(i-r,i-r,this)}valid(){return!0}eq(t){return this==t||t instanceof em&&(this.spec.key&&this.spec.key==t.spec.key||this.toDOM==t.toDOM&&ef(this.spec,t.spec))}destroy(t){this.spec.destroy&&this.spec.destroy(t)}}class eg{constructor(t,e){this.attrs=t,this.spec=e||eR}map(t,e,r,n){let i=t.map(e.from+n,this.spec.inclusiveStart?-1:1)-r,a=t.map(e.to+n,this.spec.inclusiveEnd?1:-1)-r;return i>=a?null:new ey(i,a,this)}valid(t,e){return e.from<e.to}eq(t){return this==t||t instanceof eg&&ef(this.attrs,t.attrs)&&ef(this.spec,t.spec)}static is(t){return t.type instanceof eg}destroy(){}}class eA{constructor(t,e){this.attrs=t,this.spec=e||eR}map(t,e,r,n){let i=t.mapResult(e.from+n,1);if(i.deleted)return null;let a=t.mapResult(e.to+n,-1);return a.deleted||a.pos<=i.pos?null:new ey(i.pos-r,a.pos-r,this)}valid(t,e){let{index:r,offset:n}=t.content.findIndex(e.from),i;return n==e.from&&!(i=t.child(r)).isText&&n+i.nodeSize==e.to}eq(t){return this==t||t instanceof eA&&ef(this.attrs,t.attrs)&&ef(this.spec,t.spec)}destroy(){}}class ey{constructor(t,e,r){this.from=t,this.to=e,this.type=r}copy(t,e){return new ey(t,e,this.type)}eq(t,e=0){return this.type.eq(t.type)&&this.from+e==t.from&&this.to+e==t.to}map(t,e,r){return this.type.map(t,this,e,r)}static widget(t,e,r){return new ey(t,t,new em(e,r))}static inline(t,e,r,n){return new ey(t,e,new eg(r,n))}static node(t,e,r,n){return new ey(t,e,new eA(r,n))}get spec(){return this.type.spec}get inline(){return this.type instanceof eg}get widget(){return this.type instanceof em}}let ev=[],eR={};class eb{constructor(t,e){this.local=t.length?t:ev,this.children=e.length?e:ev}static create(t,e){return e.length?eN(e,t,0,eR):ex}find(t,e,r){let n=[];return this.findInner(null==t?0:t,null==e?1e9:e,n,0,r),n}findInner(t,e,r,n,i){for(let a=0;a<this.local.length;a++){let o=this.local[a];o.from<=e&&o.to>=t&&(!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]<e&&this.children[a+1]>t){let o=this.children[a]+1;this.children[a+2].findInner(t-o,e-o,r,n+o,i)}}map(t,e,r){return this==ex||0==t.maps.length?this:this.mapInner(t,e,0,0,r||eR)}mapInner(t,e,r,n,i){let a;for(let o=0;o<this.local.length;o++){let s=this.local[o].map(t,r,n);s&&s.type.valid(e,s)?(a||(a=[])).push(s):i.onRemove&&i.onRemove(this.local[o].spec)}return this.children.length?function(t,e,r,n,i,a,o){let s=t.slice();for(let t=0,e=a;t<r.maps.length;t++){let n=0;r.maps[t].forEach((t,r,i,a)=>{let o=a-i-(r-t);for(let i=0;i<s.length;i+=3){let a=s[i+1];if(a<0||t>a+e-n)continue;let l=s[i]+e-n;r>=l?s[i+1]=t<=l?-2:-1:t>=e&&o&&(s[i]+=o,s[i+1]+=o)}n+=o}),e=r.maps[t].map(e,-1)}let l=!1;for(let e=0;e<s.length;e+=3)if(s[e+1]<0){if(-2==s[e+1]){l=!0,s[e+1]=-1;continue}let c=r.map(t[e]+a),u=c-i;if(u<0||u>=n.content.size){l=!0;continue}let h=r.map(t[e+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[e+2].mapInner(r,f,c+1,t[e]+a+1,o);n!=ex?(s[e]=u,s[e+1]=h,s[e+2]=n):(s[e+1]=-2,l=!0)}else l=!0}if(l){let l=eN(function(t,e,r,n,i,a,o){for(let s=0;s<t.length;s+=3)-1==t[s+1]&&function t(e,a){for(let t=0;t<e.local.length;t++){let s=e.local[t].map(n,i,a);s?r.push(s):o.onRemove&&o.onRemove(e.local[t].spec)}for(let r=0;r<e.children.length;r+=3)t(e.children[r+2],e.children[r]+a+1)}(t[s+2],e[s]+a+1);return r}(s,t,e,r,i,a,o),n,0,o);e=l.local;for(let t=0;t<s.length;t+=3)s[t+1]<0&&(s.splice(t,3),t-=3);for(let t=0,e=0;t<l.children.length;t+=3){let r=l.children[t];for(;e<s.length&&s[e]<r;)e+=3;s.splice(e,0,l.children[t],l.children[t+1],l.children[t+2])}}return new eb(e.sort(eL),s)}(this.children,a||[],t,e,r,n,i):a?new eb(a.sort(eL),ev):ex}add(t,e){return e.length?this==ex?eb.create(t,e):this.addInner(t,e,0):this}addInner(t,e,r){let n,i=0;t.forEach((t,a)=>{let o=a+r,s;if(s=ew(e,t,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(t,s,o+1):n.splice(i,0,a,a+t.nodeSize,eN(s,t,o+1,eR)),i+=3}});let a=eS(i?eO(e):e,-r);for(let e=0;e<a.length;e++)a[e].type.valid(t,a[e])||a.splice(e--,1);return new eb(a.length?this.local.concat(a).sort(eL):this.local,n||this.children)}remove(t){return 0==t.length||this==ex?this:this.removeInner(t,0)}removeInner(t,e){let r=this.children,n=this.local;for(let n=0;n<r.length;n+=3){let i,a=r[n]+e,o=r[n+1]+e;for(let e=0,r;e<t.length;e++)(r=t[e])&&r.from>a&&r.to<o&&(t[e]=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!=ex?r[n+2]=s:(r.splice(n,3),n-=3)}if(n.length){for(let r=0,i;r<t.length;r++)if(i=t[r])for(let t=0;t<n.length;t++)n[t].eq(i,e)&&(n==this.local&&(n=this.local.slice()),n.splice(t--,1))}return r==this.children&&n==this.local?this:n.length||r.length?new eb(n,r):ex}forChild(t,e){let r,n;if(this==ex)return this;if(e.isLeaf)return eb.empty;for(let e=0;e<this.children.length;e+=3)if(this.children[e]>=t){this.children[e]==t&&(r=this.children[e+2]);break}let i=t+1,a=i+e.content.size;for(let t=0;t<this.local.length;t++){let e=this.local[t];if(e.from<a&&e.to>i&&e.type instanceof eg){let t=Math.max(i,e.from)-i,r=Math.min(a,e.to)-i;t<r&&(n||(n=[])).push(e.copy(t,r))}}if(n){let t=new eb(n.sort(eL),ev);return r?new eM([t,r]):t}return r||ex}eq(t){if(this==t)return!0;if(!(t instanceof eb)||this.local.length!=t.local.length||this.children.length!=t.children.length)return!1;for(let e=0;e<this.local.length;e++)if(!this.local[e].eq(t.local[e]))return!1;for(let e=0;e<this.children.length;e+=3)if(this.children[e]!=t.children[e]||this.children[e+1]!=t.children[e+1]||!this.children[e+2].eq(t.children[e+2]))return!1;return!0}locals(t){return e_(this.localsInner(t))}localsInner(t){if(this==ex)return ev;if(t.inlineContent||!this.local.some(eg.is))return this.local;let e=[];for(let t=0;t<this.local.length;t++)this.local[t].type instanceof eg||e.push(this.local[t]);return e}forEachSet(t){t(this)}}eb.empty=new eb([],[]),eb.removeOverlap=e_;let ex=eb.empty;class eM{constructor(t){this.members=t}map(t,e){let r=this.members.map(r=>r.map(t,e,eR));return eM.from(r)}forChild(t,e){if(e.isLeaf)return eb.empty;let r=[];for(let n=0;n<this.members.length;n++){let i=this.members[n].forChild(t,e);i!=ex&&(i instanceof eM?r=r.concat(i.members):r.push(i))}return eM.from(r)}eq(t){if(!(t instanceof eM)||t.members.length!=this.members.length)return!1;for(let e=0;e<this.members.length;e++)if(!this.members[e].eq(t.members[e]))return!1;return!0}locals(t){let e,r=!0;for(let n=0;n<this.members.length;n++){let i=this.members[n].localsInner(t);if(i.length)if(e){r&&(e=e.slice(),r=!1);for(let t=0;t<i.length;t++)e.push(i[t])}else e=i}return e?e_(r?e:e.sort(eL)):ev}static from(t){switch(t.length){case 0:return ex;case 1:return t[0];default:return new eM(t.every(t=>t instanceof eb)?t:t.reduce((t,e)=>t.concat(e instanceof eb?e:e.members),[]))}}forEachSet(t){for(let e=0;e<this.members.length;e++)this.members[e].forEachSet(t)}}function eS(t,e){if(!e||!t.length)return t;let r=[];for(let n=0;n<t.length;n++){let i=t[n];r.push(new ey(i.from+e,i.to+e,i.type))}return r}function ew(t,e,r){if(e.isLeaf)return null;let n=r+e.nodeSize,i=null;for(let e=0,a;e<t.length;e++)(a=t[e])&&a.from>r&&a.to<n&&((i||(i=[])).push(a),t[e]=null);return i}function eO(t){let e=[];for(let r=0;r<t.length;r++)null!=t[r]&&e.push(t[r]);return e}function eN(t,e,r,n){let i=[],a=!1;e.forEach((e,o)=>{let s=ew(t,e,o+r);if(s){a=!0;let t=eN(s,e,r+o+1,n);t!=ex&&i.push(o,o+e.nodeSize,t)}});let o=eS(a?eO(t):t,-r).sort(eL);for(let t=0;t<o.length;t++)o[t].type.valid(e,o[t])||(n.onRemove&&n.onRemove(o[t].spec),o.splice(t--,1));return o.length||i.length?new eb(o,i):ex}function eL(t,e){return t.from-e.from||t.to-e.to}function e_(t){let e=t;for(let r=0;r<e.length-1;r++){let n=e[r];if(n.from!=n.to)for(let i=r+1;i<e.length;i++){let a=e[i];if(a.from==n.from){a.to!=n.to&&(e==t&&(e=t.slice()),e[i]=a.copy(a.from,n.to),eT(e,i+1,a.copy(n.to,a.to)));continue}a.from<n.to&&(e==t&&(e=t.slice()),e[r]=n.copy(n.from,a.from),eT(e,i,n.copy(a.from,n.to)));break}}return e}function eT(t,e,r){for(;e<t.length&&eL(r,t[e])>0;)e++;t.splice(e,0,r)}function eP(t){let e=[];return t.someProp("decorations",r=>{let n=r(t.state);n&&n!=ex&&e.push(n)}),t.cursorWrapper&&e.push(eb.create(t.state.doc,[t.cursorWrapper.deco])),eM.from(e)}let eI={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},eC=S&&w<=11;class ek{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(t){this.anchorNode=t.anchorNode,this.anchorOffset=t.anchorOffset,this.focusNode=t.focusNode,this.focusOffset=t.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(t){return t.anchorNode==this.anchorNode&&t.anchorOffset==this.anchorOffset&&t.focusNode==this.focusNode&&t.focusOffset==this.focusOffset}}class eF{constructor(t,e){this.view=t,this.handleDOMChange=e,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new ek,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.lastChangedTextNode=null,this.observer=window.MutationObserver&&new window.MutationObserver(e=>{for(let t=0;t<e.length;t++)this.queue.push(e[t]);S&&w<=11&&e.some(t=>"childList"==t.type&&t.removedNodes.length||"characterData"==t.type&&t.oldValue.length>t.target.nodeValue.length)?this.flushSoon():T&&t.composing&&e.some(t=>"childList"==t.type&&"TR"==t.target.nodeName)?(t.input.badSafariComposition=!0,this.flushSoon()):this.flush()}),eC&&(this.onCharData=t=>{this.queue.push({target:t.target,type:"characterData",oldValue:t.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,eI)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let t=this.observer.takeRecords();if(t.length){for(let e=0;e<t.length;e++)this.queue.push(t[e]);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(t_(this.view)){if(this.suppressingSelectionUpdates)return tb(this.view);if(S&&w<=11&&!this.view.state.selection.empty){let t=this.view.domSelectionRange();if(t.focusNode&&h(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(t){if(!t.focusNode)return!0;let e=new Set,r;for(let r=t.focusNode;r;r=s(r))e.add(r);for(let n=t.anchorNode;n;n=s(n))if(e.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 t of this.observer.takeRecords())this.queue.push(t);return this.queue}flush(){var t;let{view:e}=this;if(!e.docView||this.flushingSoon>-1)return;let r=this.pendingRecords();r.length&&(this.queue=[]);let i=e.domSelectionRange(),a=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(i)&&t_(e)&&!this.ignoreSelectionChange(i),o=-1,s=-1,l=!1,c=[];if(e.editable)for(let t=0;t<r.length;t++){let e=this.registerMutation(r[t],c);e&&(o=o<0?e.from:Math.min(e.from,o),s=s<0?e.to:Math.max(e.to,s),e.typeOver&&(l=!0))}if(c.some(t=>"BR"==t.nodeName)&&(8==e.input.lastKeyCode||46==e.input.lastKeyCode||L&&(e.composing||e.input.compositionEndedAt>Date.now()-50)&&r.some(t=>"childList"==t.type&&t.removedNodes.length))){for(let t of c)if("BR"==t.nodeName&&t.parentNode){let e=t.nextSibling;for(;e&&1==e.nodeType;){if("false"==e.contentEditable){t.parentNode.removeChild(t);break}e=e.firstChild}}}else if(O&&c.length){let t=c.filter(t=>"BR"==t.nodeName);if(2==t.length){let[e,r]=t;e.parentNode&&e.parentNode.parentNode==r.parentNode?r.remove():e.remove()}else{let{focusNode:r}=this.currentSelection;for(let n of t){let t=n.parentNode;t&&"LI"==t.nodeName&&(!r||function(t,e){for(let r=e.parentNode;r&&r!=t.dom;r=r.parentNode){let e=t.docView.nearestDesc(r,!0);if(e&&e.node.isBlock)return r}return null}(e,r)!=t)&&n.remove()}}}let u=null;o<0&&a&&e.input.lastFocus>Date.now()-200&&Math.max(e.input.lastTouch,e.input.lastClick.time)<Date.now()-300&&g(i)&&(u=tv(e))&&u.eq(n.LN.near(e.state.doc.resolve(0),1))?(e.input.lastFocus=0,tb(e),this.currentSelection.set(i),e.scrollToSelection()):(o>-1||a)&&(o>-1&&(e.docView.markDirty(o,s),t=e,!eX.has(t)&&(eX.set(t,null),-1!==["normal","nowrap","pre-line"].indexOf(getComputedStyle(t.dom).whiteSpace))&&(t.requiresGeckoHackNode=O,eU||(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."),eU=!0))),e.input.badSafariComposition&&(e.input.badSafariComposition=!1,function(t,e){var r;let{focusNode:n,focusOffset:i}=t.domSelectionRange();for(let a of e)if((null==(r=a.parentNode)?void 0:r.nodeName)=="TR"){let e=a.nextSibling;for(;e&&"TD"!=e.nodeName&&"TH"!=e.nodeName;)e=e.nextSibling;if(e){let r=e;for(;;){let t=r.firstChild;if(!t||1!=t.nodeType||"false"==t.contentEditable||/^(BR|IMG)$/.test(t.nodeName))break;r=t}r.insertBefore(a,r.firstChild),n==a&&t.domSelection().collapse(a,i)}else a.parentNode.removeChild(a)}}(e,c)),this.handleDOMChange(o,s,l,c),e.docView&&e.docView.dirty?e.updateState(e.state):this.currentSelection.eq(i)||tb(e),this.currentSelection.set(i))}registerMutation(t,e){if(e.indexOf(t.target)>-1)return null;let r=this.view.docView.nearestDesc(t.target);if("attributes"==t.type&&(r==this.view.docView||"contenteditable"==t.attributeName||"style"==t.attributeName&&!t.oldValue&&!t.target.getAttribute("style"))||!r||r.ignoreMutation(t))return null;if("childList"==t.type){for(let r=0;r<t.addedNodes.length;r++){let n=t.addedNodes[r];e.push(n),3==n.nodeType&&(this.lastChangedTextNode=n)}if(r.contentDOM&&r.contentDOM!=r.dom&&!r.contentDOM.contains(t.target))return{from:r.posBefore,to:r.posAfter};let n=t.previousSibling,i=t.nextSibling;if(S&&w<=11&&t.addedNodes.length)for(let e=0;e<t.addedNodes.length;e++){let{previousSibling:r,nextSibling:a}=t.addedNodes[e];(!r||0>Array.prototype.indexOf.call(t.addedNodes,r))&&(n=r),(!a||0>Array.prototype.indexOf.call(t.addedNodes,a))&&(i=a)}let a=n&&n.parentNode==t.target?o(n)+1:0,s=r.localPosFromDOM(t.target,a,-1),l=i&&i.parentNode==t.target?o(i):t.target.childNodes.length;return{from:s,to:r.localPosFromDOM(t.target,l,1)}}return"attributes"==t.type?{from:r.posAtStart-r.border,to:r.posAtEnd+r.border}:(this.lastChangedTextNode=t.target,{from:r.posAtStart,to:r.posAtEnd,typeOver:t.target.nodeValue==t.oldValue})}}let eX=new WeakMap,eU=!1;function eW(t,e){let r=e.startContainer,n=e.startOffset,i=e.endContainer,a=e.endOffset,o=t.domAtPos(t.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 eV=/^(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 eE(t,e,r){return Math.max(r.anchor,r.head)>e.content.size?null:tL(t,e.resolve(r.anchor),e.resolve(r.head))}function eY(t,e,r){let n=t.depth,i=e?t.end():t.pos;for(;n>0&&(e||t.indexAfter(n)==t.node(n).childCount);)n--,i++,e=!1;if(r){let e=t.node(n).maybeChild(t.indexAfter(n));for(;e&&!e.isLeaf;)e=e.firstChild,i++}return i}class eD{constructor(t,e){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 t1,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=e,this.state=e.state,this.directPlugins=e.plugins||[],this.directPlugins.forEach(e$),this.dispatch=this.dispatch.bind(this),this.dom=t&&t.mount||document.createElement("div"),t&&(t.appendChild?t.appendChild(this.dom):"function"==typeof t?t(this.dom):t.mount&&(this.mounted=!0)),this.editable=eB(this),eZ(this),this.nodeViews=eK(this),this.docView=ta(this.state.doc,eQ(this),eP(this),this.dom,this),this.domObserver=new eF(this,(t,e,r,a)=>(function(t,e,r,a,o){let s,l,c,u=t.input.compositionPendingChanges||(t.composing?t.input.compositionID:0);if(t.input.compositionPendingChanges=0,e<0){let e=t.input.lastSelectionTime>Date.now()-50?t.input.lastSelectionOrigin:null,r=tv(t,e);if(r&&!t.state.selection.eq(r)){if(L&&k&&13===t.input.lastKeyCode&&Date.now()-100<t.input.lastKeyCodeTime&&t.someProp("handleKeyDown",e=>e(t,A(13,"Enter"))))return;let n=t.state.tr.setSelection(r);"pointer"==e?n.setMeta("pointer",!0):"key"==e&&n.scrollIntoView(),u&&n.setMeta("composition",u),t.dispatch(n)}return}let h=t.state.doc.resolve(e),p=h.sharedDepth(r);e=h.before(p+1),r=t.state.doc.resolve(r).after(p+1);let d=t.state.selection,f=function(t,e,r,n){let a,o,{node:s,fromOffset:l,toOffset:c,from:u,to:h}=t.docView.parseRange(e,r),p=t.domSelectionRange(),d=p.anchorNode;if(d&&t.dom.contains(1==d.nodeType?d:d.parentNode)&&(o=[{node:d,offset:p.anchorOffset}],g(p)||o.push({node:p.focusNode,offset:p.focusOffset})),L&&8===t.input.lastKeyCode)for(let t=c;t>l;t--){let e=s.childNodes[t-1],r=e.pmViewDesc;if("BR"==e.nodeName&&!r){c=t;break}if(!r||r.size)break}let f=t.state.doc,m=t.someProp("domParser")||i.S4.fromSchema(t.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,t=>{let e=t.pmViewDesc;if(e)return e.parseRule(a);if("BR"==t.nodeName&&t.parentNode){if(T&&/^(ul|ol)$/i.test(t.parentNode.nodeName)){let t=document.createElement("div");return t.appendChild(document.createElement("li")),{skip:t}}else if(t.parentNode.lastChild==t||T&&/^(tr|table)$/i.test(t.parentNode.nodeName))return{ignore:!0}}else if("IMG"==t.nodeName&&t.getAttribute("mark-placeholder"))return{ignore:!0};return null}),context:A});if(o&&null!=o[0].pos){let t=o[0].pos,e=o[1]&&o[1].pos;null==e&&(e=t),y={anchor:t+u,head:e+u}}return{doc:v,sel:y,from:u,to:h}}(t,e,r,o),m=t.state.doc,y=m.slice(f.from,f.to);8===t.input.lastKeyCode&&Date.now()-100<t.input.lastKeyCodeTime?(s=t.state.selection.to,l="end"):(s=t.state.selection.from,l="start"),t.input.lastKeyCode=null;let v=function(t,e,r,n,i){let a=t.findDiffStart(e,r),o=r+t.size,s=r+e.size;if(null==a)return null;let{a:l,b:c}=t.findDiffEnd(e,o,s);if("end"==i){let t=Math.max(0,a-Math.min(l,c));n-=l+t-a}if(l<a&&o<s){let t=n<=a&&n>=l?a-n:0;a-=t,c=a+(c-l),l=a}else if(c<a){let t=n<=a&&n>=c?a-n:0;a-=t,l=a+(l-c),c=a}return{start:a,endA:l,endB:c}}(y.content,f.doc.content,f.from,s,l);if(v&&t.input.domChangeCount++,(P&&t.input.lastIOSEnter>Date.now()-225||k)&&o.some(t=>1==t.nodeType&&!eV.test(t.nodeName))&&(!v||v.endA>=v.endB)&&t.someProp("handleKeyDown",e=>e(t,A(13,"Enter")))){t.input.lastIOSEnter=0;return}if(!v)if(a&&d instanceof n.U3&&!d.empty&&d.$head.sameParent(d.$anchor)&&!t.composing&&!(f.sel&&f.sel.anchor!=f.sel.head))v={start:d.from,endA:d.to,endB:d.to};else{if(f.sel){let e=eE(t,t.state.doc,f.sel);if(e&&!e.eq(t.state.selection)){let r=t.state.tr.setSelection(e);u&&r.setMeta("composition",u),t.dispatch(r)}}return}t.state.selection.from<t.state.selection.to&&v.start==v.endB&&t.state.selection instanceof n.U3&&(v.start>t.state.selection.from&&v.start<=t.state.selection.from+2&&t.state.selection.from>=f.from?v.start=t.state.selection.from:v.endA<t.state.selection.to&&v.endA>=t.state.selection.to-2&&t.state.selection.to<=f.to&&(v.endB+=t.state.selection.to-v.endA,v.endA=t.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&&t.input.lastIOSEnter>Date.now()-225&&(!M||o.some(t=>"DIV"==t.nodeName||"P"==t.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,"","")))&&t.someProp("handleKeyDown",e=>e(t,A(13,"Enter")))){t.input.lastIOSEnter=0;return}if(t.state.selection.anchor>v.start&&function(t,e,r,n,i){if(r-e<=i.pos-n.pos||eY(n,!0,!1)<i.pos)return!1;let a=t.resolve(e);if(!n.parent.isTextblock){let t=a.nodeAfter;return null!=t&&r==e+t.nodeSize}if(a.parentOffset<a.parent.content.size||!a.parent.isTextblock)return!1;let o=t.resolve(eY(a,!0,!0));return!(!o.parent.isTextblock||o.pos>r||eY(o,!0,!1)<r)&&n.parent.content.cut(n.parentOffset).eq(o.parent.content)}(m,v.start,v.endA,R,b)&&t.someProp("handleKeyDown",e=>e(t,A(8,"Backspace")))){k&&L&&t.domObserver.suppressSelectionUpdates();return}L&&v.endB==v.start&&(t.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(()=>{t.someProp("handleKeyDown",function(e){return e(t,A(13,"Enter"))})},20));let O=v.start,N=v.endA,_=e=>{let r=e||t.state.tr.replace(O,N,f.doc.slice(v.start-f.from,v.endB-f.from));if(f.sel){let e=eE(t,r.doc,f.sel);e&&!(L&&t.composing&&e.empty&&(v.start!=v.endB||t.input.lastChromeDelete<Date.now()-100)&&(e.head==O||e.head==r.mapping.map(N)-1)||S&&e.empty&&e.head==O)&&r.setSelection(e)}return u&&r.setMeta("composition",u),r.scrollIntoView()};if(M)if(R.pos==b.pos){S&&w<=11&&0==R.parentOffset&&(t.domObserver.suppressSelectionUpdates(),setTimeout(()=>tb(t),20));let e=_(t.state.tr.delete(O,N)),r=m.resolve(v.start).marksAcross(m.resolve(v.endA));r&&e.ensureMarks(r),t.dispatch(e)}else if(v.endA==v.endB&&(c=function(t,e){let r=t.firstChild.marks,n=e.firstChild.marks,a=r,o=n,s,l,c;for(let t=0;t<n.length;t++)a=n[t].removeFromSet(a);for(let t=0;t<r.length;t++)o=r[t].removeFromSet(o);if(1==a.length&&0==o.length)l=a[0],s="add",c=t=>t.mark(l.addToSet(t.marks));else{if(0!=a.length||1!=o.length)return null;l=o[0],s="remove",c=t=>t.mark(l.removeFromSet(t.marks))}let u=[];for(let t=0;t<e.childCount;t++)u.push(c(e.child(t)));if(i.FK.from(u).eq(t))return{mark:l,type:s}}(R.parent.content.cut(R.parentOffset,b.parentOffset),x.parent.content.cut(x.parentOffset,v.endA-x.start())))){let e=_(t.state.tr);"add"==c.type?e.addMark(O,N,c.mark):e.removeMark(O,N,c.mark),t.dispatch(e)}else if(R.parent.child(R.index()).isText&&R.index()==b.index()-!b.textOffset){let e=R.parent.textBetween(R.parentOffset,b.parentOffset),r=()=>_(t.state.tr.insertText(e,O,N));t.someProp("handleTextInput",n=>n(t,O,N,e,r))||t.dispatch(r())}else t.dispatch(_());else t.dispatch(_())})(this,t,e,r,a)),this.domObserver.start();var r=this;for(let t in tj){let e=tj[t];r.dom.addEventListener(t,r.input.eventHandlers[t]=t=>{!function(t,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let r=e.target;r!=t.dom;r=r.parentNode)if(!r||11==r.nodeType||r.pmViewDesc&&r.pmViewDesc.stopEvent(e))return!1;return!0}(r,t)||t5(r,t)||!r.editable&&t.type in tq||e(r,t)},t0[t]?{passive:!0}:void 0)}T&&r.dom.addEventListener("input",()=>null),t3(r),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let t=this._props;for(let e in this._props={},t)this._props[e]=t[e];this._props.state=this.state}return this._props}update(t){t.handleDOMEvents!=this._props.handleDOMEvents&&t3(this);let e=this._props;this._props=t,t.plugins&&(t.plugins.forEach(e$),this.directPlugins=t.plugins),this.updateStateInner(t.state,e)}setProps(t){let e={};for(let t in this._props)e[t]=this._props[t];for(let r in e.state=this.state,t)e[r]=t[r];this.update(e)}updateState(t){this.updateStateInner(t,this._props)}updateStateInner(t,e){var r,n,i;let a=this.state,s=!1,l=!1;t.storedMarks&&this.composing&&(eo(this),l=!0),this.state=t;let c=a.plugins!=t.plugins||this._props.plugins!=e.plugins;if(c||this._props.plugins!=e.plugins||this._props.nodeViews!=e.nodeViews){let t=eK(this);(function(t,e){let r=0,n=0;for(let n in t){if(t[n]!=e[n])return!0;r++}for(let t in e)n++;return r!=n})(t,this.nodeViews)&&(this.nodeViews=t,s=!0)}(c||e.handleDOMEvents!=this._props.handleDOMEvents)&&t3(this),this.editable=eB(this),eZ(this);let u=eP(this),p=eQ(this),d=a.plugins==t.plugins||a.doc.eq(t.doc)?t.scrollToSelection>a.scrollToSelection?"to selection":"preserve":"reset",g=s||!this.docView.matchesNode(t.doc,p,u);(g||!t.selection.eq(a.selection))&&(l=!0);let A="preserve"==d&&l&&null==this.dom.style.overflowAnchor&&function(t){let e,r,n=t.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=t.root.elementFromPoint(a,o);if(!n||n==t.dom||!t.dom.contains(n))continue;let s=n.getBoundingClientRect();if(s.top>=i-20){e=n,r=s.top;break}}return{refDOM:e,refTop:r,stack:V(t.dom)}}(this);if(l){let e,r,l;this.domObserver.stop();let c=g&&(S||L)&&!this.composing&&!a.selection.empty&&!t.selection.empty&&(n=a.selection,i=t.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 e=L?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=function(t){let e=t.domSelectionRange();if(!e.focusNode)return null;let r=function(t,e){for(;;){if(3==t.nodeType&&e)return t;if(1==t.nodeType&&e>0){if("false"==t.contentEditable)return null;e=f(t=t.childNodes[e-1])}else{if(!t.parentNode||m(t))return null;e=o(t),t=t.parentNode}}}(e.focusNode,e.focusOffset),n=function(t,e){for(;;){if(3==t.nodeType&&e<t.nodeValue.length)return t;if(1==t.nodeType&&e<t.childNodes.length){if("false"==t.contentEditable)return null;t=t.childNodes[e],e=0}else{if(!t.parentNode||m(t))return null;e=o(t)+1,t=t.parentNode}}}(e.focusNode,e.focusOffset);if(r&&n&&r!=n){let e=n.pmViewDesc,i=t.domObserver.lastChangedTextNode;if(r==i||n==i)return i;if(!e||!e.isText(n.nodeValue))return n;if(t.input.compositionNode==n){let t=r.pmViewDesc;if(!(!t||!t.isText(r.nodeValue)))return n}}return r||n}(this)),(s||!this.docView.update(t.doc,p,u,this))&&(this.docView.updateOuterDeco(p),this.docView.destroy(),this.docView=ta(t.doc,p,u,this.dom,this)),!e||this.trackWrites&&this.dom.contains(this.trackWrites)||(c=!0)}let d=this.input.mouseDown;c||!(d&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&(e=this.docView.domFromPos(this.state.selection.anchor,0),r=this.domSelectionRange(),h(e.node,e.offset,r.anchorNode,r.anchorOffset))&&d.delaySelUpdate())?tb(this,c):(tO(this,t.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(a),(null==(r=this.dragging)?void 0:r.node)&&!a.doc.eq(t.doc)&&this.updateDraggedNode(this.dragging,a),"reset"==d?this.dom.scrollTop=0:"to selection"==d?this.scrollToSelection():A&&function({refDOM:t,refTop:e,stack:r}){let n=t?t.getBoundingClientRect().top:0;E(r,0==n?0:n-e)}(A)}scrollToSelection(){let t=this.domSelectionRange().focusNode;if(t&&this.dom.contains(1==t.nodeType?t:t.parentNode))if(this.someProp("handleScrollToSelection",t=>t(this)));else if(this.state.selection instanceof n.nh){let e=this.docView.domAfterPos(this.state.selection.from);1==e.nodeType&&W(this,e.getBoundingClientRect(),t)}else W(this,this.coordsAtPos(this.state.selection.head,1),t)}destroyPluginViews(){let t;for(;t=this.pluginViews.pop();)t.destroy&&t.destroy()}updatePluginViews(t){if(t&&t.plugins==this.state.plugins&&this.directPlugins==this.prevDirectPlugins)for(let e=0;e<this.pluginViews.length;e++){let r=this.pluginViews[e];r.update&&r.update(this,t)}else{this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let t=0;t<this.directPlugins.length;t++){let e=this.directPlugins[t];e.spec.view&&this.pluginViews.push(e.spec.view(this))}for(let t=0;t<this.state.plugins.length;t++){let e=this.state.plugins[t];e.spec.view&&this.pluginViews.push(e.spec.view(this))}}}updateDraggedNode(t,e){let r=t.node,i=-1;if(r.from<this.state.doc.content.size&&this.state.doc.nodeAt(r.from)==r.node)i=r.from;else{let t=r.from+(this.state.doc.content.size-e.doc.content.size);(t>0&&t<this.state.doc.content.size&&this.state.doc.nodeAt(t))==r.node&&(i=t)}this.dragging=new eh(t.slice,t.move,i<0?void 0:n.nh.create(this.state.doc,i))}someProp(t,e){let r=this._props&&this._props[t],n;if(null!=r&&(n=e?e(r):r))return n;for(let r=0;r<this.directPlugins.length;r++){let i=this.directPlugins[r].props[t];if(null!=i&&(n=e?e(i):i))return n}let i=this.state.plugins;if(i)for(let r=0;r<i.length;r++){let a=i[r].props[t];if(null!=a&&(n=e?e(a):a))return n}}hasFocus(){if(S){let t=this.root.activeElement;if(t==this.dom)return!0;if(!t||!this.dom.contains(t))return!1;for(;t&&this.dom!=t&&this.dom.contains(t);){if("false"==t.contentEditable)return!1;t=t.parentElement}return!0}return this.root.activeElement==this.dom}focus(){this.domObserver.stop(),this.editable&&function(t){if(t.setActive)return t.setActive();if(Y)return t.focus(Y);let e=V(t);t.focus(null==Y?{get preventScroll(){return Y={preventScroll:!0},!0}}:void 0),Y||(Y=!1,E(e,0))}(this.dom),tb(this),this.domObserver.start()}get root(){let t=this._root;if(null==t){for(let t=this.dom.parentNode;t;t=t.parentNode)if(9==t.nodeType||11==t.nodeType&&t.host)return t.getSelection||(Object.getPrototypeOf(t).getSelection=()=>t.ownerDocument.getSelection()),this._root=t}return t||document}updateRoot(){this._root=null}posAtCoords(t){return function(t,e){var r;let n,i,a=t.dom.ownerDocument,o,l=0,u=function(t,e,r){if(t.caretPositionFromPoint)try{let n=t.caretPositionFromPoint(e,r);if(n)return{node:n.offsetNode,offset:Math.min(f(n.offsetNode),n.offset)}}catch(t){}if(t.caretRangeFromPoint){let n=t.caretRangeFromPoint(e,r);if(n)return{node:n.startContainer,offset:Math.min(f(n.startContainer),n.startOffset)}}}(a,e.left,e.top);u&&({node:o,offset:l}=u);let h=(t.root.elementFromPoint?t.root:a).elementFromPoint(e.left,e.top);if(!h||!t.dom.contains(1!=h.nodeType?h.parentNode:h)){let r=t.dom.getBoundingClientRect();if(!D(e,r)||!(h=function t(e,r,n){let i=e.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=e.childNodes[o];if(1==n.nodeType){let e=n.getClientRects();for(let i=0;i<e.length;i++){let a=e[i];if(D(r,a))return t(n,r,a)}}if((o=(o+1)%i)==a)break}return e}(t.dom,e,r)))return null}if(T)for(let t=h;o&&t;t=s(t))t.draggable&&(o=void 0);if(h=(n=(r=h).parentNode)&&/^li$/i.test(n.nodeName)&&e.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 t=o.childNodes[l],r;"IMG"==t.nodeName&&(r=t.getBoundingClientRect()).right<=e.left&&r.bottom>e.top&&l++}F&&l&&1==o.nodeType&&1==(r=o.childNodes[l-1]).nodeType&&"false"==r.contentEditable&&r.getBoundingClientRect().top>=e.top&&l--,o==t.dom&&l==o.childNodes.length-1&&1==o.lastChild.nodeType&&e.top>o.lastChild.getBoundingClientRect().bottom?i=t.state.doc.content.size:(0==l||1!=o.nodeType||"BR"!=o.childNodes[l-1].nodeName)&&(i=function(t,e,r,n){let i=-1;for(let r=e,a=!1;r!=t.dom;){let e=t.docView.nearestDesc(r,!0),o;if(!e)return null;if(1==e.dom.nodeType&&(e.node.isBlock&&e.parent||!e.contentDOM)&&((o=e.dom.getBoundingClientRect()).width||o.height)&&(e.node.isBlock&&e.parent&&!/^T(R|BODY|HEAD|FOOT)$/.test(e.dom.nodeName)&&(!a&&o.left>n.left||o.top>n.top?i=e.posBefore:(!a&&o.right<n.left||o.bottom<n.top)&&(i=e.posAfter),a=!0),!e.contentDOM&&i<0&&!e.node.isText))return(e.node.isBlock?n.top<(o.top+o.bottom)/2:n.left<(o.left+o.right)/2)?e.posBefore:e.posAfter;r=e.dom.parentNode}return i>-1?i:t.docView.posFromDOM(e,r,-1)}(t,o,l,e))}null==i&&(i=function(t,e,r){let{node:n,offset:i}=function t(e,r){let n,i,a,o=2e8,s,l=0,u=r.top,h=r.top;for(let t=e.firstChild,p=0;t;t=t.nextSibling,p++){let e;if(1==t.nodeType)e=t.getClientRects();else{if(3!=t.nodeType)continue;e=c(t).getClientRects()}for(let c=0;c<e.length;c++){let d=e[c];if(d.top<=u&&d.bottom>=h){u=Math.max(d.bottom,u),h=Math.min(d.top,h);let e=d.left>r.left?d.left-r.left:d.right<r.left?r.left-d.right:0;if(e<o){a=t,o=e,s=e&&3==a.nodeType?{left:d.right<r.left?d.right:d.left,top:r.top}:r,1==t.nodeType&&e&&(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=t,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(t,e){let r=t.nodeValue.length,n=document.createRange(),i;for(let a=0;a<r;a++){n.setEnd(t,a+1),n.setStart(t,a);let r=Z(n,1);if(r.top!=r.bottom&&D(e,r)){i={node:t,offset:a+ +(e.left>=(r.left+r.right)/2)};break}}return n.detach(),i||{node:t,offset:0}}(a,s):!a||o&&1==a.nodeType?{node:e,offset:l}:t(a,s)}(e,r),a=-1;if(1==n.nodeType&&!n.firstChild){let t=n.getBoundingClientRect();a=t.left!=t.right&&r.left>(t.left+t.right)/2?1:-1}return t.docView.posFromDOM(n,i,a)}(t,h,e));let p=t.docView.nearestDesc(h,!0);return{pos:i,inside:p?p.posAtStart-p.border:-1}}(this,t)}coordsAtPos(t,e=1){return K(this,t,e)}domAtPos(t,e=0){return this.docView.domFromPos(t,e)}nodeDOM(t){let e=this.docView.descAt(t);return e?e.nodeDOM:null}posAtDOM(t,e,r=-1){let n=this.docView.posFromDOM(t,e,r);if(null==n)throw RangeError("DOM position not inside the editor");return n}endOfTextblock(t,e){return function(t,e,r){let n,i;return J==e&&j==r?q:(J=e,j=r,q="up"==r||"down"==r?(n=e.selection,i="up"==r?n.$from:n.$to,H(t,e,()=>{let{node:e}=t.docView.domFromPos(i.pos,"up"==r?-1:1);for(;;){let r=t.docView.nearestDesc(e,!0);if(!r)break;if(r.node.isBlock){e=r.contentDOM||r.dom;break}e=r.dom.parentNode}let n=K(t,i.pos,1);for(let t=e.firstChild;t;t=t.nextSibling){let e;if(1==t.nodeType)e=t.getClientRects();else{if(3!=t.nodeType)continue;e=c(t,0,t.nodeValue.length).getClientRects()}for(let t=0;t<e.length;t++){let i=e[t];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(t,e,r){let{$head:n}=e.selection;if(!n.parent.isTextblock)return!1;let i=n.parentOffset,a=i==n.parent.content.size,o=t.domSelection();return o?z.test(n.parent.textContent)&&o.modify?H(t,e,()=>{let{focusNode:e,focusOffset:i,anchorNode:a,anchorOffset:s}=t.domSelectionRange(),l=o.caretBidiLevel;o.modify("move",r,"character");let c=n.depth?t.docView.domAfterPos(n.before()):t.dom,{focusNode:u,focusOffset:h}=t.domSelectionRange(),p=u&&!c.contains(1==u.nodeType?u:u.parentNode)||e==u&&i==h;try{o.collapse(a,s),e&&(e!=a||i!=s)&&o.extend&&o.extend(e,i)}catch(t){}return null!=l&&(o.caretBidiLevel=l),p}):"left"==r||"backward"==r?!i:a:n.pos==n.start()||n.pos==n.end()}(t,e,r))}(this,e||this.state,t)}pasteHTML(t,e){return ec(this,"",t,!1,e||new ClipboardEvent("paste"))}pasteText(t,e){return ec(this,t,null,!0,e||new ClipboardEvent("paste"))}serializeForClipboard(t){return tQ(this,t)}destroy(){if(this.docView){for(let t in this.input.mouseDown&&this.input.mouseDown.done(),this.domObserver.stop(),this.input.eventHandlers)this.dom.removeEventListener(t,this.input.eventHandlers[t]);clearTimeout(this.input.composingTimeout),clearTimeout(this.input.lastIOSEnterFallbackTimeout),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],eP(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(t){!t5(this,t)&&tj[t.type]&&(this.editable||!(t.type in tq))&&tj[t.type](this,t)}domSelectionRange(){let t=this.domSelection();return t?T&&11===this.root.nodeType&&function(t){let e=t.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}(this.dom.ownerDocument)==this.dom&&function(t,e){let r;if(e.getComposedRanges){let r=e.getComposedRanges(t.root)[0];if(r)return eW(t,r)}function n(t){t.preventDefault(),t.stopImmediatePropagation(),r=t.getTargetRanges()[0]}return t.dom.addEventListener("beforeinput",n,!0),document.execCommand("indent"),t.dom.removeEventListener("beforeinput",n,!0),r?eW(t,r):null}(this,t)||t:{focusNode:null,focusOffset:0,anchorNode:null,anchorOffset:0}}domSelection(){return this.root.getSelection()}}function eQ(t){let e=Object.create(null);return e.class="ProseMirror",e.contenteditable=String(t.editable),t.someProp("attributes",r=>{if("function"==typeof r&&(r=r(t.state)),r)for(let t in r)"class"==t?e.class+=" "+r[t]:"style"==t?e.style=(e.style?e.style+";":"")+r[t]:e[t]||"contenteditable"==t||"nodeName"==t||(e[t]=String(r[t]))}),e.translate||(e.translate="no"),[ey.node(0,t.state.doc.content.size,e)]}function eZ(t){if(t.markCursor){let e=document.createElement("img");e.className="ProseMirror-separator",e.setAttribute("mark-placeholder","true"),e.setAttribute("alt",""),t.cursorWrapper={dom:e,deco:ey.widget(t.state.selection.from,e,{raw:!0,marks:t.markCursor})}}else t.cursorWrapper=null}function eB(t){return!t.someProp("editable",e=>!1===e(t.state))}function eK(t){let e=Object.create(null);function r(t){for(let r in t)Object.prototype.hasOwnProperty.call(e,r)||(e[r]=t[r])}return t.someProp("nodeViews",r),t.someProp("markViews",r),e}function e$(t){if(t.spec.state||t.spec.filterTransaction||t.spec.appendTransaction)throw RangeError("Plugins passed directly to the view must not have a state component")}eD.prototype.dispatch=function(t){let e=this._props.dispatchTransaction;e?e.call(this,t):this.updateState(this.state.apply(t))},r.d(e,{Lz:()=>eD,NZ:()=>ey,zF:()=>eb})},33097(t,e,r){function n(t,e,r){let n=t[e];t[e]=t[r],t[r]=n}r.d(e,{A:()=>i});class i{constructor(t=9){this._maxEntries=Math.max(4,t),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()}all(){return this._all(this.data,[])}search(t){let e=this.data,r=[];if(!d(t,e))return r;let n=this.toBBox,i=[];for(;e;){for(let a=0;a<e.children.length;a++){let o=e.children[a],s=e.leaf?n(o):o;d(t,s)&&(e.leaf?r.push(o):p(t,s)?this._all(o,r):i.push(o))}e=i.pop()}return r}collides(t){let e=this.data;if(!d(t,e))return!1;let r=[];for(;e;){for(let n=0;n<e.children.length;n++){let i=e.children[n],a=e.leaf?this.toBBox(i):i;if(d(t,a)){if(e.leaf||p(t,a))return!0;r.push(i)}}e=r.pop()}return!1}load(t){if(!(t&&t.length))return this;if(t.length<this._minEntries){for(let e=0;e<t.length;e++)this.insert(t[e]);return this}let e=this._build(t.slice(),0,t.length-1,0);if(this.data.children.length)if(this.data.height===e.height)this._splitRoot(this.data,e);else{if(this.data.height<e.height){let t=this.data;this.data=e,e=t}this._insert(e,this.data.height-e.height-1,!0)}else this.data=e;return this}insert(t){return t&&this._insert(t,this.data.height-1),this}clear(){return this.data=f([]),this}remove(t,e){let r,n,i;if(!t)return this;let a=this.data,o=this.toBBox(t),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(t,e,r){if(!r)return e.indexOf(t);for(let n=0;n<e.length;n++)if(r(t,e[n]))return n;return -1}(t,a.children,e);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(t){return t}compareMinX(t,e){return t.minX-e.minX}compareMinY(t,e){return t.minY-e.minY}toJSON(){return this.data}fromJSON(t){return this.data=t,this}_all(t,e){let r=[];for(;t;)t.leaf?e.push(...t.children):r.push(...t.children),t=r.pop();return e}_build(t,e,r,n){let i,o=r-e+1,s=this._maxEntries;if(o<=s)return a(i=f(t.slice(e,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(t,e,r,c,this.compareMinX);for(let a=e;a<=r;a+=c){let e=Math.min(a+c-1,r);m(t,a,e,l,this.compareMinY);for(let r=a;r<=e;r+=l){let a=Math.min(r+l-1,e);i.children.push(this._build(t,r,a,n-1))}}return a(i,this.toBBox),i}_chooseSubtree(t,e,r,n){for(;;){let o;if(n.push(e),e.leaf||n.length-1===r)break;let s=1/0,l=1/0;for(let r=0;r<e.children.length;r++){var i,a;let n=e.children[r],c=u(n),h=(i=t,(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)}e=o||e.children[0]}return e}_insert(t,e,r){let n=r?t:this.toBBox(t),i=[],a=this._chooseSubtree(n,this.data,e,i);for(a.children.push(t),s(a,n);e>=0;)if(i[e].children.length>this._maxEntries)this._split(i,e),e--;else break;this._adjustParentBBoxes(n,i,e)}_split(t,e){let r=t[e],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),e?t[e-1].children.push(s):this._splitRoot(r,s)}_splitRoot(t,e){this.data=f([t,e]),this.data.height=t.height+1,this.data.leaf=!1,a(this.data,this.toBBox)}_chooseSplitIndex(t,e,r){let n,i=1/0,a=1/0;for(let s=e;s<=r-e;s++){let e=o(t,0,s,this.toBBox),l=o(t,s,r,this.toBBox),c=function(t,e){let r=Math.max(t.minX,e.minX),n=Math.max(t.minY,e.minY);return Math.max(0,Math.min(t.maxX,e.maxX)-r)*Math.max(0,Math.min(t.maxY,e.maxY)-n)}(e,l),h=u(e)+u(l);c<i?(i=c,n=s,a=h<a?h:a):c===i&&h<a&&(a=h,n=s)}return n||r-e}_chooseSplitAxis(t,e,r){let n=t.leaf?this.compareMinX:l,i=t.leaf?this.compareMinY:c;this._allDistMargin(t,e,r,n)<this._allDistMargin(t,e,r,i)&&t.children.sort(n)}_allDistMargin(t,e,r,n){t.children.sort(n);let i=this.toBBox,a=o(t,0,e,i),l=o(t,r-e,r,i),c=h(a)+h(l);for(let n=e;n<r-e;n++){let e=t.children[n];s(a,t.leaf?i(e):e),c+=h(a)}for(let n=r-e-1;n>=e;n--){let e=t.children[n];s(l,t.leaf?i(e):e),c+=h(l)}return c}_adjustParentBBoxes(t,e,r){for(let n=r;n>=0;n--)s(e[n],t)}_condense(t){for(let e=t.length-1,r;e>=0;e--)0===t[e].children.length?e>0?(r=t[e-1].children).splice(r.indexOf(t[e]),1):this.clear():a(t[e],this.toBBox)}}function a(t,e){o(t,0,t.children.length,e,t)}function o(t,e,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=e;a<r;a++){let e=t.children[a];s(i,t.leaf?n(e):e)}return i}function s(t,e){return t.minX=Math.min(t.minX,e.minX),t.minY=Math.min(t.minY,e.minY),t.maxX=Math.max(t.maxX,e.maxX),t.maxY=Math.max(t.maxY,e.maxY),t}function l(t,e){return t.minX-e.minX}function c(t,e){return t.minY-e.minY}function u(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function h(t){return t.maxX-t.minX+(t.maxY-t.minY)}function p(t,e){return t.minX<=e.minX&&t.minY<=e.minY&&e.maxX<=t.maxX&&e.maxY<=t.maxY}function d(t,e){return e.minX<=t.maxX&&e.minY<=t.maxY&&e.maxX>=t.minX&&e.maxY>=t.minY}function f(t){return{children:t,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function m(t,e,r,i,a){let o=[e,r];for(;o.length;){if((r=o.pop())-(e=o.pop())<=i)continue;let s=e+Math.ceil((r-e)/i/2)*i;!function t(e,r,i=0,a=e.length-1,o=function(t,e){return t<e?-1:+(t>e)}){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));t(e,r,h,p,o)}let s=e[r],l=i,c=a;for(n(e,i,r),o(e[a],s)>0&&n(e,i,a);l<c;){for(n(e,l,c),l++,c--;0>o(e[l],s);)l++;for(;o(e[c],s)>0;)c--}0===o(e[i],s)?n(e,i,c):n(e,++c,a),c<=r&&(i=c+1),r<=c&&(a=c-1)}}(t,s,e,r,a),o.push(e,s,s,r)}}},80301(t,e,r){let n,i;var a=r(71178),o=r(51649);function s({groupSize:t,panelElement:e,styleProp:r}){let n,[i,a]=function(t){switch(typeof t){case"number":return[t,"px"];case"string":{let e=parseFloat(t);return t.endsWith("%")?[e,"%"]:t.endsWith("px")?[e,"px"]:t.endsWith("rem")?[e,"rem"]:t.endsWith("em")?[e,"em"]:t.endsWith("vh")?[e,"vh"]:t.endsWith("vw")?[e,"vw"]:[e,"%"]}}}(r);switch(a){case"%":n=i/100*t;break;case"px":n=i;break;case"rem":n=i*parseFloat(getComputedStyle(e.ownerDocument.documentElement).fontSize);break;case"em":n=i*parseFloat(getComputedStyle(e).fontSize);break;case"vh":n=i/100*window.innerHeight;break;case"vw":n=i/100*window.innerWidth}return n}function l(t){return parseFloat(t.toFixed(3))}function c({group:t}){let{orientation:e,panels:r}=t;return r.reduce((t,r)=>t+="horizontal"===e?r.element.offsetWidth:r.element.offsetHeight,0)}function u(t){let{panels:e}=t,r=c({group:t});return 0===r?e.map(t=>({groupResizeBehavior:t.panelConstraints.groupResizeBehavior,collapsedSize:0,collapsible:!0===t.panelConstraints.collapsible,defaultSize:void 0,disabled:t.panelConstraints.disabled,minSize:0,maxSize:100,panelId:t.id})):e.map(t=>{let e,{element:n,panelConstraints:i}=t,a=0;void 0!==i.collapsedSize&&(a=l(s({groupSize:r,panelElement:n,styleProp:i.collapsedSize})/r*100)),void 0!==i.defaultSize&&(e=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:e,disabled:i.disabled,minSize:o,maxSize:c,panelId:t.id}})}function h(t,e="Assertion error"){if(!t)throw Error(e)}function p(t,e){return Array.from(e).sort("horizontal"===t?d:f)}function d(t,e){let r=t.element.offsetLeft-e.element.offsetLeft;return 0!==r?r:t.element.offsetWidth-e.element.offsetWidth}function f(t,e){let r=t.element.offsetTop-e.element.offsetTop;return 0!==r?r:t.element.offsetHeight-e.element.offsetHeight}function m(t){return null!==t&&"object"==typeof t&&"nodeType"in t&&t.nodeType===Node.ELEMENT_NODE}function g(t,e){return{x:t.x>=e.left&&t.x<=e.right?0:Math.min(Math.abs(t.x-e.left),Math.abs(t.x-e.right)),y:t.y>=e.top&&t.y<=e.bottom?0:Math.min(Math.abs(t.y-e.top),Math.abs(t.y-e.bottom))}}function A(t){let{element:e,orientation:r,panels:i,separators:a}=t,o=p(r,Array.from(e.children).filter(m).map(t=>({element:t}))).map(({element:t})=>t),s=[],l=!1,u=!1,d=-1,f=-1,A=0,y,v=[];{let t=-1;for(let e of o)e.hasAttribute("data-panel")&&(t++,e.hasAttribute("data-disabled")||(A++,-1===d&&(d=t),f=t))}if(A>1){let e=-1;for(let p of o)if(p.hasAttribute("data-panel")){e++;let a=i.find(t=>t.element===p);if(a){if(y){let i,o=y.element.getBoundingClientRect(),m=p.getBoundingClientRect();if(u){let t="horizontal"===r?new DOMRect(o.right,o.top,0,o.height):new DOMRect(o.left,o.bottom,o.width,0),e="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=[t,e];break;case 1:{let n=v[0],a=function({orientation:t,rects:e,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 e){let{x:e,y:o}=g(n,r),s="horizontal"===t?e: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?e:t];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)?t.resizeTargetMinimumSize.coarse:t.resizeTargetMinimumSize.fine;if(i.width<o){let t=o-i.width;i=new DOMRect(i.x-t/2,i.y,i.width+t,i.height)}if(i.height<o){let t=o-i.height;i=new DOMRect(i.x,i.y-t/2,i.width,i.height+t)}let u=e<=d||e>f;l||u||s.push({group:t,groupSize:c({group:t}),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 t=a.find(t=>t.element===p);t?v.push(t):(y=void 0,v=[])}else u=!0}return s}class y{#t={};addListener(t,e){let r=this.#t[t];return void 0===r?this.#t[t]=[e]:r.includes(e)||r.push(e),()=>{this.removeListener(t,e)}}emit(t,e){let r=this.#t[t];if(void 0!==r)if(1===r.length)r[0].call(null,e);else{let t=!1,n=null,i=Array.from(r);for(let r=0;r<i.length;r++){let a=i[r];try{a.call(null,e)}catch(e){null===n&&(t=!0,n=e)}}if(t)throw n}}removeAllListeners(){this.#t={}}removeListener(t,e){let r=this.#t[t];if(void 0!==r){let t=r.indexOf(e);t>=0&&r.splice(t,1)}}}let v={cursorFlags:0,state:"inactive"},R=new y;function b(t){let e=v;v=t,R.emit("change",{prev:e,next:t})}let x=t=>t,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(t){if(!t.defaultView||!t.adoptedStyleSheets)return;let{prevStyle:e,styleSheet:r}=w.get(t)??{};void 0===r&&(r=new t.defaultView.CSSStyleSheet,t.adoptedStyleSheets&&(Object.isExtensible(t.adoptedStyleSheets)?t.adoptedStyleSheets.push(r):t.adoptedStyleSheets=[...t.adoptedStyleSheets,r]));let n=v;switch(n.state){case"active":case"hover":{let t=function({cursorFlags:t,groups:e,state:r}){let n=0,i=0;switch(r){case"active":case"hover":e.forEach(t=>{if(!t.mutableState.disableCursor)switch(t.orientation){case"horizontal":n++;break;case"vertical":i++}})}if(0!==n||0!==i){if("active"===r&&t&&S()){let e=(4&t)!=0,r=(8&t)!=0;if((1&t)!=0)return e?"se-resize":r?"ne-resize":"e-resize";if((2&t)!=0)return e?"sw-resize":r?"nw-resize":"w-resize";if(e)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(t=>t.group),state:n.state}),i=`*, *:hover {cursor: ${t} !important; }`;if(e===i)return;e=i,t?0===r.cssRules.length?r.insertRule(i):r.replaceSync(i):1===r.cssRules.length&&r.deleteRule(0);break}case"inactive":e=void 0,1===r.cssRules.length&&r.deleteRule(0)}w.set(t,{prevStyle:e,styleSheet:r})}let N=new Map,L=new y;function _(t,e){for(let[e]of N)if(e.id===t)return e}function T(t,e){for(let[e,r]of N)if(e.id===t)return r;if(e)throw Error(`Could not find data for Group with id ${t}`)}function P(t,e){return L.addListener("groupChange",r=>{r.group.id===t&&e(r)})}function I(t,e,r){let n=N.get(t);(N=new Map(N)).set(t,e),L.emit("groupChange",{group:t,isUserInteraction:r?.isUserInteraction===!0,prev:n,next:e})}function C(t){let e=v,r=N,n=!1;return"active"===e.state&&(b({cursorFlags:0,state:"inactive"}),e.hitRegions.length>0&&(O(t),n=!0,e.hitRegions.forEach(t=>{if(!r.has(t.group))return;let e=T(t.group.id,!0);I(t.group,e,{isUserInteraction:!0})}))),n}function k(t){t.defaultPrevented||C(t.currentTarget)}let F=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function X(t){let e=t.length;for(;e--;){let r=t[e];if(h(r,"Missing node"),function(t){let e,r=getComputedStyle(t);return!!("fixed"===r.position||"auto"!==r.zIndex&&("static"!==r.position||"flex"===(e=getComputedStyle(V(t)??t).display)||"inline-flex"===e)||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(t){return t&&Number(getComputedStyle(t).zIndex)||0}function W(t){let e=[];for(;t;)e.push(t),t=V(t);return e}function V(t){let{parentNode:e}=t;return null!==e&&"object"==typeof e&&"nodeType"in e&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.host:e}function E(t,e){let r=[];return e.forEach((e,n)=>{if(n.disabled)return;let i=A(n),a=function(t,e,r){let n,i={x:1/0,y:1/0};for(let a of e){let e=g(r,a.rect);switch(t){case"horizontal":e.x<=i.x&&(n=a,i=e);break;case"vertical":e.y<=i.y&&(n=a,i=e)}}return n?{distance:i,hitRegion:n}:void 0}(n.orientation,i,{x:t.clientX,y:t.clientY});a&&a.distance.x<=0&&a.distance.y<=0&&function({groupElement:t,hitRegion:e,pointerEventTarget:r}){if(!m(r)||r.contains(t)||t.contains(r))return!0;if(function(t,e){let r;if(t===e)throw Error("Cannot compare node with itself");let n={a:W(t),b:W(e)};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 t=r.childNodes,e={a:n.a.at(-1),b:n.b.at(-1)},i=t.length;for(;i--;){let r=t[i];if(r===e.a)return 1;if(r===e.b)return -1}}return Math.sign(i.a-i.b)}(r,t)>0){let i=r;for(;i;){var n;if(i.contains(t))break;if(n=i.getBoundingClientRect(),n.x<e.x+e.width&&n.x+n.width>e.x&&n.y<e.y+e.height&&n.y+n.height>e.y)return!1;i=i.parentElement}}return!0}({groupElement:n.element,hitRegion:a.hitRegion.rect,pointerEventTarget:t.target})&&r.push(a.hitRegion)}),r}function Y(t,e,r=0){return Math.abs(l(t)-l(e))<=r}function D(t,e){return Y(t,e)?0:t>e?1:-1}function Q({overrideDisabledPanels:t,panelConstraints:e,prevSize:r,size:n}){let{collapsedSize:i=0,collapsible:a,disabled:o,maxSize:s=100,minSize:c=0}=e;return o&&!t?r:(0>D(n,c)&&(n=a&&0>D(n,(i+c)/2)?i:c),l(n=Math.min(s,n)))}function Z({delta:t,initialLayout:e,panelConstraints:r,pivotIndices:n,prevLayout:i,trigger:a}){if(Y(t,0))return e;let o="imperative-api"===a,s=Object.values(e),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 e=t<0?p:u,n=r[e];h(n,`Panel constraints not found for index ${e}`);let{collapsedSize:i=0,collapsible:a,minSize:o=0}=n;if(a){let r=s[e];if(h(null!=r,`Previous layout not found for panel index ${e}`),Y(r,i)){let e=o-r;D(e,Math.abs(t))>0&&(t=t<0?0-e:e)}}}{let e=t<0?u:p,n=r[e];h(n,`No panel constraints found for index ${e}`);let{collapsedSize:i=0,collapsible:a,minSize:o=0}=n;if(a){let r=s[e];if(h(null!=r,`Previous layout not found for panel index ${e}`),Y(r,o)){let e=r-i;D(e,Math.abs(t))>0&&(t=t<0?0-e:e)}}}}else{let e=t<0?p:u,n=r[e];h(n,`Panel constraints not found for index ${e}`);let i=s[e],{collapsible:a,collapsedSize:o,minSize:l}=n;if(a&&0>D(i,l))if(t>0){let e=l-o;0>D(i+t,l)&&(t=0>=D(t,e/2)?0:e)}else{let e=l-o;0>D(i-t,l)&&(t=D(100+t,100-e/2)>0?0:-e)}}{let e=t<0?1:-1,n=t<0?p:u,i=0;for(;;){let t=s[n];if(h(null!=t,`Previous layout not found for panel index ${n}`),i+=Q({overrideDisabledPanels:o,panelConstraints:r[n],prevSize:t,size:100})-t,(n+=e)<0||n>=r.length)break}let a=Math.min(Math.abs(t),Math.abs(i));t=t<0?0-a:a}{let e=t<0?u:p;for(;e>=0&&e<r.length;){let n=Math.abs(t)-Math.abs(d),i=s[e];h(null!=i,`Previous layout not found for panel index ${e}`);let a=i-n,l=Q({overrideDisabledPanels:o,panelConstraints:r[e],prevSize:i,size:a});if(!Y(i,l)&&(d+=i-l,c[e]=l,d.toFixed(3).localeCompare(Math.abs(t).toFixed(3),void 0,{numeric:!0})>=0))break;t<0?e--:e++}}if(function(t,e){if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++)if(t[r]!=e[r])return!1;return!0}(l,c))return i;{let e=t<0?p:u,n=s[e];h(null!=n,`Previous layout not found for panel index ${e}`);let i=n+d,a=Q({overrideDisabledPanels:o,panelConstraints:r[e],prevSize:n,size:i});if(c[e]=a,!Y(a,i)){let e=i-a,n=t<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+e,s=Q({overrideDisabledPanels:o,panelConstraints:r[n],prevSize:i,size:a});if(Y(i,s)||(e-=s-i,c[n]=s),Y(e,0))break;t>0?n--:n++}}}if(!Y(Object.values(c).reduce((t,e)=>e+t,0),100,.1))return i;let f=Object.keys(i);return c.reduce((t,e,r)=>(t[f[r]]=e,t),{})}function B(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(let r in t)if(void 0===e[r]||0!==D(t[r],e[r]))return!1;return!0}function K({layout:t,panelConstraints:e}){let r=Object.values(t),n=[...r],i=n.reduce((t,e)=>t+e,0);if(n.length!==e.length)throw Error(`Invalid ${e.length} panel layout: ${n.map(t=>`${t}%`).join(", ")}`);if(!Y(i,100)&&n.length>0)for(let t=0;t<e.length;t++){let e=n[t];h(null!=e,`No layout data found for index ${t}`);let r=100/i*e;n[t]=r}let a=0;for(let t=0;t<e.length;t++){let i=r[t];h(null!=i,`No layout data found for index ${t}`);let o=n[t];h(null!=o,`No layout data found for index ${t}`);let s=Q({overrideDisabledPanels:!0,panelConstraints:e[t],prevSize:i,size:o});o!=s&&(a+=o-s,n[t]=s)}if(!Y(a,0))for(let t=0;t<e.length;t++){let r=n[t];h(null!=r,`No layout data found for index ${t}`);let i=r+a,o=Q({overrideDisabledPanels:!0,panelConstraints:e[t],prevSize:r,size:i});if(r!==o&&(a-=o-r,n[t]=o,Y(a,0)))break}let o=Object.keys(t);return n.reduce((t,e,r)=>(t[o[r]]=e,t),{})}function $({groupId:t,panelId:e}){let r=()=>{for(let[e,{defaultLayoutDeferred:r,derivedPanelConstraints:n,layout:i,groupSize:a,separatorToPanels:o}]of N)if(e.id===t)return{defaultLayoutDeferred:r,derivedPanelConstraints:n,group:e,groupSize:a,layout:i,separatorToPanels:o};throw Error(`Group ${t} not found`)},n=()=>{let t=r().derivedPanelConstraints.find(t=>t.panelId===e);if(void 0!==t)return t;throw Error(`Panel constraints not found for Panel ${e}`)},i=()=>{let t=r().group.panels.find(t=>t.id===e);if(void 0!==t)return t;throw Error(`Layout not found for Panel ${e}`)},a=()=>{let t=r().layout[e];if(void 0!==t)return t;throw Error(`Layout not found for Panel ${e}`)},o=t=>{if(t===a())return;let{defaultLayoutDeferred:n,derivedPanelConstraints:i,group:o,groupSize:s,layout:c,separatorToPanels:u}=r(),h=K({layout:(({nextSize:t,panels:r,prevLayout:n,derivedPanelConstraints:i})=>{let o=a(),s=r.findIndex(t=>t.id===e),c=0===s,u=s===r.length-1;if(u&&t<o&&(c||r.slice(0,s).every((t,e)=>{let r=i[e];return r?.collapsible&&Y(r.collapsedSize,n[r.panelId])}))){let t=r.slice(0,s).reduce((t,e)=>t+n[e.id],0);return{...n,[e]:l(100-t)}}return Z({delta:u?o-t:t-o,initialLayout:n,panelConstraints:i,pivotIndices:u?[s-1,s]:[s,s+1],prevLayout:n,trigger:"imperative-api"})})({nextSize:t,panels:o.panels,prevLayout:c,derivedPanelConstraints:i}),panelConstraints:i});B(c,h)||I(o,{defaultLayoutDeferred:n,derivedPanelConstraints:i,groupSize:s,layout:h,separatorToPanels:u})};return{collapse:()=>{let{collapsible:t,collapsedSize:e}=n(),{mutableValues:r}=i(),s=a();t&&s!==e&&(r.expandToSize=s,o(e))},expand:()=>{let{collapsible:t,collapsedSize:e,minSize:r}=n(),{mutableValues:s}=i(),l=a();if(t&&l===e){let t=s.expandToSize??r;0===t&&(t=1),o(t)}},getSize:()=>{let{group:t}=r(),e=a(),{element:n}=i();return{asPercentage:e,inPixels:"horizontal"===t.orientation?n.offsetWidth:n.offsetHeight}},isCollapsed:()=>{let{collapsible:t,collapsedSize:e}=n(),r=a();return t&&Y(e,r)},resize:t=>{let{group:e}=r(),{element:n}=i(),a=c({group:e});o(l(s({groupSize:a,panelElement:n,styleProp:t})/a*100))}}}function G(t){t.defaultPrevented||E(t,N).forEach(e=>{if(e.separator&&!e.separator.disableDoubleClick){let r=e.panels.find(t=>void 0!==t.panelConstraints.defaultSize);if(r){let n=r.panelConstraints.defaultSize,i=$({groupId:e.group.id,panelId:r.id});i&&void 0!==n&&(i.resize(n),t.preventDefault())}}})}function H(t){for(let[e]of N)if(e.separators.some(e=>e.element===t))return e;throw Error("Could not find parent Group for separator element")}function z({groupId:t}){let e=()=>{for(let[e,r]of N)if(e.id===t)return{group:e,...r};throw Error(`Could not find Group with id "${t}"`)};return{getLayout(){let{defaultLayoutDeferred:t,layout:r}=e();return t?{}:r},setLayout(t){let{defaultLayoutDeferred:r,derivedPanelConstraints:n,group:i,groupSize:a,layout:o,separatorToPanels:s}=e(),l=K({layout:t,panelConstraints:n});return r?o:(B(o,l)||I(i,{defaultLayoutDeferred:r,derivedPanelConstraints:n,groupSize:a,layout:l,separatorToPanels:s}),l)}}}function J(t,e){let r=H(t),n=T(r.id,!0),i=r.separators.find(e=>e.element===t);h(i,"Matching separator not found");let a=n.separatorToPanels.get(i);h(a,"Matching panels not found");let o=a.map(t=>r.panels.indexOf(t)),s=z({groupId:r.id}).getLayout(),l=K({layout:Z({delta:e,initialLayout:s,panelConstraints:n.derivedPanelConstraints,pivotIndices:o,prevLayout:s,trigger:"keyboard"}),panelConstraints:n.derivedPanelConstraints});B(s,l)||I(r,{defaultLayoutDeferred:n.defaultLayoutDeferred,derivedPanelConstraints:n.derivedPanelConstraints,groupSize:n.groupSize,layout:l,separatorToPanels:n.separatorToPanels},{isUserInteraction:!0})}function j(t){if(t.defaultPrevented)return;let e=t.currentTarget,r=H(e);if(!r.disabled)switch(t.key){case"ArrowDown":t.preventDefault(),"vertical"===r.orientation&&J(e,5);break;case"ArrowLeft":t.preventDefault(),"horizontal"===r.orientation&&J(e,-5);break;case"ArrowRight":t.preventDefault(),"horizontal"===r.orientation&&J(e,5);break;case"ArrowUp":t.preventDefault(),"vertical"===r.orientation&&J(e,-5);break;case"End":t.preventDefault(),J(e,100);break;case"Enter":{t.preventDefault();let r=H(e),{derivedPanelConstraints:n,layout:i,separatorToPanels:a}=T(r.id,!0),o=r.separators.find(t=>t.element===e);h(o,"Matching separator not found");let s=a.get(o);h(s,"Matching panels not found");let l=s[0],c=n.find(t=>t.panelId===l.id);if(h(c,"Panel metadata not found"),c.collapsible){let t=i[l.id];J(e,(c.collapsedSize===t?r.mutableState.expandedPanelSizes[l.id]??c.minSize:c.collapsedSize)-t)}break}case"F6":{t.preventDefault();let r=H(e).separators.map(t=>t.element),n=Array.from(r).findIndex(e=>e===t.currentTarget);h(null!==n,"Index not found");let i=t.shiftKey?n>0?n-1:r.length-1:n+1<r.length?n+1:0;r[i].focus({preventScroll:!0});break}case"Home":t.preventDefault(),J(e,-100)}}function q(t){if(t.defaultPrevented||"mouse"===t.pointerType&&t.button>0)return;let e=N,r=E(t,e),n=new Map,i=!1;r.forEach(t=>{t.separator&&(i||(i=!0,t.separator.element.focus({focusVisible:!1,preventScroll:!0})));let r=e.get(t.group);r&&n.set(t.group,r.layout)}),b({cursorFlags:0,hitRegions:r,initialLayoutMap:n,pointerDownAtPoint:{x:t.clientX,y:t.clientY},state:"active"}),r.length&&t.preventDefault()}function tt({document:t,event:e,hitRegions:r,initialLayoutMap:n,mountedGroups:i,pointerDownAtPoint:a,prevCursorFlags:o}){var s;let l,c,u=0;r.forEach(t=>{let{group:r,groupSize:o}=t,{orientation:s,panels:l}=r,{disableCursor:c}=r.mutableState,h=0;h=a?"horizontal"===s?(e.clientX-a.x)/o*100:(e.clientY-a.y)/o*100:"horizontal"===s?e.clientX<0?-100:100:e.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 e=Z({delta:h,initialLayout:p,panelConstraints:m,pivotIndices:t.panels.map(t=>l.indexOf(t)),prevLayout:A,trigger:"mouse-or-touch"});if(B(e,A)){if(0!==h&&!c)switch(s){case"horizontal":u|=h<0?1:2;break;case"vertical":u|=h<0?4:8}}else I(t.group,{defaultLayoutDeferred:f,derivedPanelConstraints:m,groupSize:g,layout:e,separatorToPanels:y})}});let h=0;0===e.movementX?h|=3&o:h|=3&u,0===e.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(t)}function te(t){let e=N,r=v;"active"===r.state&&tt({document:t.currentTarget,event:t,hitRegions:r.hitRegions,initialLayoutMap:r.initialLayoutMap,mountedGroups:e,prevCursorFlags:r.cursorFlags})}function tr(t){if(t.defaultPrevented)return;let e=v,r=N;if("active"===e.state){if(0===t.buttons){b({cursorFlags:0,state:"inactive"}),e.hitRegions.forEach(t=>{if(!r.has(t.group))return;let e=T(t.group.id,!0);I(t.group,e,{isUserInteraction:!0})});return}for(let r of e.hitRegions)if(r.separator){let{element:e}=r.separator;e.hasPointerCapture?.(t.pointerId)||e.setPointerCapture?.(t.pointerId)}tt({document:t.currentTarget,event:t,hitRegions:e.hitRegions,initialLayoutMap:e.initialLayoutMap,mountedGroups:r,pointerDownAtPoint:e.pointerDownAtPoint,prevCursorFlags:e.cursorFlags})}else{let n=E(t,r);0===n.length?"inactive"!==e.state&&b({cursorFlags:0,state:"inactive"}):b({cursorFlags:0,hitRegions:n,state:"hover"}),O(t.currentTarget)}}function tn(t){t.relatedTarget instanceof HTMLIFrameElement&&"hover"===v.state&&b({cursorFlags:0,state:"inactive"})}function ti(t){t.defaultPrevented||("mouse"!==t.pointerType||!(t.button>0))&&C(t.currentTarget)&&t.preventDefault()}function ta(t){let e=0,r=0,n={};for(let i of t)if(void 0!==i.defaultSize){e++;let t=l(i.defaultSize);r+=t,n[i.panelId]=t}else n[i.panelId]=void 0;let i=t.length-e;if(0!==i){let e=l((100-r)/i);for(let r of t)void 0===r.defaultSize&&(n[r.panelId]=e)}return n}let to=new Map;function ts(t){let e=(0,o.useId)();return`${t??e}`}let tl="u">typeof window?o.useLayoutEffect:o.useEffect;function tc(t){let e=(0,o.useRef)(t);return tl(()=>{e.current=t},[t]),(0,o.useCallback)((...t)=>e.current?.(...t),[e])}function tu(...t){return tc(e=>{t.forEach(t=>{if(t)switch(typeof t){case"function":t(e);break;case"object":t.current=e}})})}function th(t){let e=(0,o.useRef)({...t});return tl(()=>{for(let r in t)e.current[r]=t[r]},[t]),e.current}let tp=(0,o.createContext)(null);function td({children:t,className:e,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=tc(t=>{B(w.current.onLayoutChange,t)||(w.current.onLayoutChange=t,m?.(t))}),L=tc((t,e)=>{B(w.current.onLayoutChanged,t)||(w.current.onLayoutChanged=t,g?.(t,{isUserInteraction:e}))}),C=ts(f),F=(0,o.useRef)(null),[X,U]=function(){let[t,e]=(0,o.useState)({});return[t,(0,o.useCallback)(()=>e({}),[])]}(),W=(0,o.useRef)({lastExpandedPanelSizes:{},layouts:{},panels:[],resizeTargetMinimumSize:R,separators:[]}),V=tu(F,s);S=(0,o.useRef)({getLayout:()=>({}),setLayout:x}),(0,o.useImperativeHandle)(d,()=>S.current,[]),tl(()=>{Object.assign(S.current,z({groupId:C}))});let E=tc((t,e)=>{let n=v,i=_(t),a=T(t);if(a){let t=!1;return"active"===n.state&&(t=n.hitRegions.some(t=>t.group===i)),{flexGrow:a.layout[e]??1,pointerEvents:t?"none":void 0}}if(r?.[e])return{flexGrow:r?.[e]}}),D=th({defaultLayout:r,disableCursor:n}),Q=(0,o.useMemo)(()=>({get disableCursor(){return!!D.disableCursor},getPanelStyles:E,id:C,orientation:y,registerPanel:t=>{let e=W.current;return e.panels=p(y,[...e.panels,t]),U(),()=>{e.panels=e.panels.filter(e=>e!==t),U()}},registerSeparator:t=>{let e=W.current;return e.separators=p(y,[...e.separators,t]),U(),()=>{e.separators=e.separators.filter(e=>e!==t),U()}},updatePanelProps:(t,{disabled:e})=>{let r=W.current.panels.find(e=>e.id===t);r&&(r.panelConstraints.disabled=e);let n=_(C),i=T(C);n&&i&&I(n,{...i,derivedPanelConstraints:u(n)})},updateSeparatorProps:(t,{disabled:e,disableDoubleClick:r})=>{let n=W.current.separators.find(e=>e.id===t);n&&(n.disabled=e,n.disableDoubleClick=r)}}),[E,C,U,y,D]),Z=(0,o.useRef)(null);return tl(()=>{let t,e,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 e of(t={},x.panels)){let r=D.defaultLayout[e.id];void 0!==r&&(t[e.id]=r)}let M={disabled:!!i,element:b,id:C,mutableState:{defaultLayout:t,disableCursor:!!D.disableCursor,expandedPanelSizes:W.current.lastExpandedPanelSizes,layouts:W.current.layouts},orientation:y,panels:x.panels,resizeTargetMinimumSize:x.resizeTargetMinimumSize,separators:x.separators};Z.current=M;let S=(e=!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(t=>{for(let r of t){let{borderBoxSize:t,target:n}=r;if(n===M.element){if(e){let t=c({group:M});if(0===t)return;let e=T(M.id);if(!e)return;let r=u(M),n=e.defaultLayoutDeferred?ta(r):e.layout,i=K({layout:function({group:t,nextGroupSize:e,prevGroupSize:r,prevLayout:n}){if(r<=0||e<=0||r===e)return n;let i=0,a=0,o=!1,s=new Map,c=[];for(let u of t.panels){let t=n[u.id]??0;if("preserve-pixel-size"===u.panelConstraints.groupResizeBehavior){o=!0;let n=l(t/100*r/e*100);s.set(u.id,n),i+=n}else c.push(u.id),a+=t}if(!o||0===c.length)return n;let u=100-i,h={...n};if(s.forEach((t,e)=>{h[e]=t}),a>0)for(let t of c){let e=n[t]??0;h[t]=l(e/a*u)}else{let t=l(u/c.length);for(let e of c)h[e]=t}return h}({group:M,nextGroupSize:t,prevGroupSize:e.groupSize,prevLayout:n}),panelConstraints:r});if(!e.defaultLayoutDeferred&&B(e.layout,i)&&function(t,e){return t.length===e.length&&t.every((t,r)=>(function(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(let r in t)if(t[r]!==e[r])return!1;return!0})(t,e[r]))}(e.derivedPanelConstraints,r)&&e.groupSize===t)continue;I(M,{defaultLayoutDeferred:!1,derivedPanelConstraints:r,groupSize:t,layout:i,separatorToPanels:e.separatorToPanels})}}else!function(t,e,r){if(!r[0])return;let n=t.panels.find(t=>t.element===e);if(!n||!n.onResize)return;let i=c({group:t}),a="horizontal"===t.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,t)}})).observe(M.element),M.panels.forEach(t=>{h(!n.has(t.id),`Panel ids must be unique; id "${t.id}" was used more than once`),n.add(t.id),t.onResize&&o.observe(t.element)}),s=c({group:M}),p=u(M),d=M.panels.map(({id:t})=>t).join(","),(f=M.mutableState.defaultLayout)&&(function(t,e){let r=t.map(t=>t.id),n=Object.keys(e);if(r.length!==n.length)return!1;for(let t of r)if(!n.includes(t))return!1;return!0}(M.panels,f)||(f=void 0)),m=K({layout:M.mutableState.layouts[d]??f??ta(p),panelConstraints:p}),g=M.element.ownerDocument,to.set(g,(to.get(g)??0)+1),R=new Map,A(M).forEach(t=>{t.separator&&R.set(t.separator,t.panels)}),I(M,{defaultLayoutDeferred:0===s,derivedPanelConstraints:p,groupSize:s,layout:m,separatorToPanels:R}),M.separators.forEach(t=>{h(!a.has(t.id),`Separator ids must be unique; id "${t.id}" was used more than once`),a.add(t.id),t.element.addEventListener("keydown",j)}),1===to.get(g)&&(g.addEventListener("contextmenu",k,!0),g.addEventListener("dblclick",G,!0),g.addEventListener("pointerdown",q,!0),g.addEventListener("pointerleave",te),g.addEventListener("pointermove",tr),g.addEventListener("pointerout",tn),g.addEventListener("pointerup",ti,!0)),function(){e=!1,to.set(g,Math.max(0,(to.get(g)??0)-1)),(N=new Map(N)).delete(M),M.separators.forEach(t=>{t.element.removeEventListener("keydown",j)}),to.get(g)||(g.removeEventListener("contextmenu",k,!0),g.removeEventListener("dblclick",G,!0),g.removeEventListener("pointerdown",q,!0),g.removeEventListener("pointerleave",te),g.removeEventListener("pointermove",tr),g.removeEventListener("pointerout",tn),g.removeEventListener("pointerup",ti,!0)),o.disconnect()}),{defaultLayoutDeferred:w,derivedPanelConstraints:_,layout:X}=T(M.id,!0);!w&&_.length>0&&(O(X),L(X,!1));let U=P(C,t=>{let{defaultLayoutDeferred:e,derivedPanelConstraints:r,layout:n}=t.next;if(e||0===r.length)return;let i=M.panels.map(({id:t})=>t).join(",");M.mutableState.layouts[i]=n,r.forEach(e=>{if(e.collapsible){let{layout:r}=t.prev??{};if(r){let t=Y(e.collapsedSize,n[e.panelId]),i=Y(e.collapsedSize,r[e.panelId]);t&&!i&&(M.mutableState.expandedPanelSizes[e.panelId]=r[e.panelId])}}});let a="active"!==v.state;O(n),a&&L(n,t.isUserInteraction)});return()=>{Z.current=null,S(),U()}},[i,C,L,O,y,X,D]),(0,o.useEffect)(()=>{let t=Z.current;t&&(t.mutableState.defaultLayout=r,t.mutableState.disableCursor=!!n)}),(0,a.jsx)(tp.Provider,{value:Q,children:(0,a.jsx)("div",{...M,className:e,"data-group":!0,"data-testid":C,id:C,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:t})})}function tf(t,e){return`react-resizable-panels:${[t,...e].join(":")}`}function tm({debounceSaveMs:t=100,onlySaveAfterUserInteractions:e,panelIds:r,storage:n=localStorage,...i}){let a=void 0!==r,s="id"in i?i.id:i.groupId,l=tf(s,r??[]),c=(0,o.useSyncExternalStore)(tg,()=>n.getItem(l),()=>n.getItem(l)),u=(0,o.useMemo)(()=>{if(c){let t=JSON.parse(c);if(Array.from(Object.values(t)).every(t=>"number"==typeof t))return t}},[c]),h=(0,o.useMemo)(()=>{if(!u)return function({id:t,panelIds:e,storage:r}){let n=tf(t,[]),i=r.getItem(n);if(i)try{let t=JSON.parse(i);if(e){let r=t[e.join(",")];if(r&&Array.isArray(r.layout)&&e.length===r.layout.length){let t={};for(let n=0;n<e.length;n++)t[e[n]]=r.layout[n];return t}}else{let e=Object.keys(t);if(1===e.length){let r=t[e[0]];if(r&&Array.isArray(r.layout)){let t=e[0].split(",");if(t.length===r.layout.length){let e={};for(let n=0;n<t.length;n++)e[t[n]]=r.layout[n];return e}}}}}catch{}}({id:s,panelIds:r,storage:n})},[u,s,r,n]),p=u??h,d=(0,o.useRef)(null),f=(0,o.useCallback)(()=>{let t=d.current;t&&(d.current=null,clearTimeout(t))},[]);(0,o.useLayoutEffect)(()=>()=>{f()},[f]);let m=(0,o.useCallback)((t,r)=>{let i;if(!e||r.isUserInteraction){f(),i=a?tf(s,Object.keys(t)):tf(s,[]);try{n.setItem(i,JSON.stringify(t))}catch(t){console.error(t)}}},[f,a,s,e,n]);return{defaultLayout:p,onLayoutChange:(0,o.useCallback)(e=>{f(),0===t?m(e,{isUserInteraction:!1}):d.current=setTimeout(()=>{m(e,{isUserInteraction:!1})},t)},[f,t,m]),onLayoutChanged:m}}function tg(){return function(){}}function tA(){let t=(0,o.useContext)(tp);return h(t,"Group Context not found; did you render a Panel or Separator outside of a Group?"),t}function ty({children:t,className:e,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=ts(u),R=th({disabled:s}),b=(0,o.useRef)(null),x=tu(b,l),{getPanelStyles:S,id:w,orientation:O,registerPanel:N,updatePanelProps:L}=tA(),_=null!==d,T=tc((t,e,r)=>{d?.(t,u,r)});tl(()=>{let t=b.current;if(null!==t)return N({element:t,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,N,R]),(0,o.useEffect)(()=>{L(v,{disabled:s})},[s,v,L]),function(t,e){let{id:r}=tA(),n=(0,o.useRef)({collapse:M,expand:M,getSize:()=>({asPercentage:0,inPixels:0}),isCollapsed:()=>!1,resize:M});(0,o.useImperativeHandle)(e,()=>n.current,[]),tl(()=>{Object.assign(n.current,$({groupId:r,panelId:t}))})}(v,f);let I=()=>{let t=S(w,v);if(t)return JSON.stringify(t)},C=(0,o.useSyncExternalStore)(t=>P(w,t),I,I);return A=C?JSON.parse(C):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:{...tv,display:"flex",flexBasis:0,flexShrink:1,overflow:"visible",...A},children:(0,a.jsx)("div",{className:e,style:{maxHeight:"100%",maxWidth:"100%",flexGrow:1,overflow:"auto",...m,touchAction:"horizontal"===O?"pan-y":"pan-x"},children:t})})}td.displayName="Group",ty.displayName="Panel";let tv={minHeight:0,maxHeight:"100%",height:"auto",minWidth:0,maxWidth:"100%",width:"auto",border:"none",borderWidth:0,padding:0,margin:0};function tR(){return(0,o.useRef)(null)}function tb({children:t,className:e,disabled:r,disableDoubleClick:n,elementRef:i,id:s,style:l,...c}){let u,h,p=ts(s),d=th({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=tu(b,i),{disableCursor:M,id:S,orientation:w,registerSeparator:O,updateSeparatorProps:N}=tA();return tl(()=>{let t=b.current;if(null!==t){var e;let r={disabled:d.disabled,disableDoubleClick:d.disableDoubleClick,element:t,id:p},n=O(r),i=(e=t=>{A("inactive"!==t.next.state&&t.next.hitRegions.some(t=>t.separator===r)?t.next.state:"inactive")},R.addListener("change",e)),a=P(S,t=>{let{derivedPanelConstraints:e,layout:n,separatorToPanels:i}=t.next,a=i.get(r);if(a){let t=a[0],r=a.indexOf(t);m(function({layout:t,panelConstraints:e,panelId:r,panelIndex:n}){let i,a,o=t[r],s=e.find(t=>t.panelId===r);if(s){let l=s.maxSize,c=s.collapsible?s.collapsedSize:s.minSize,u=[n,n+1];a=K({layout:Z({delta:c-o,initialLayout:t,panelConstraints:e,pivotIndices:u,prevLayout:t}),panelConstraints:e})[r],i=K({layout:Z({delta:l-o,initialLayout:t,panelConstraints:e,pivotIndices:u,prevLayout:t}),panelConstraints:e})[r]}return{valueControls:r,valueMax:i,valueMin:a,valueNow:o}}({layout:n,panelConstraints:e,panelId:t.id,panelIndex:r}))}});return()=>{i(),a(),n()}}},[S,p,O,d]),(0,o.useEffect)(()=>{N(p,{disabled:r,disableDoubleClick:n})},[r,n,p,N]),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:t,className:e,"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})}tb.displayName="Separator",r.d(e,{YJ:()=>td,Zk:()=>ty,fk:()=>tR,lv:()=>tm,wv:()=>tb})},65179(t,e,r){function n([t,e],r){return[t*Math.cos(r)-e*Math.sin(r),t*Math.sin(r)+e*Math.cos(r)]}function i(...t){for(let e=0;e<t.length;e++)if("number"!=typeof t[e])throw Error(`assertNumbers arguments[${e}] is not a number. ${typeof t[e]} == typeof ${t[e]}`);return!0}r.d(e,{LQ:()=>w,zb:()=>R});let a=Math.PI;function o(t,e,r){t.lArcFlag=+(0!==t.lArcFlag),t.sweepFlag=+(0!==t.sweepFlag);let{rX:i,rY:o}=t,{x:s,y:l}=t;if(1e-10>Math.abs(i)||1e-10>Math.abs(o)){t.rX=0,t.rY=0,t.cX=(e+s)/2,t.cY=(r+l)/2,t.phi1=0,t.phi2=0;return}i=Math.abs(t.rX),o=Math.abs(t.rY);let c=t.xRot/180*a,[u,h]=n([(e-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)),t.rX=i,t.rY=o;let d=Math.pow(i,2)*Math.pow(h,2)+Math.pow(o,2)*Math.pow(u,2),f=(t.lArcFlag!==t.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);t.cX=A[0]+(e+s)/2,t.cY=A[1]+(r+l)/2,t.phi1=Math.atan2((h-g)/o,(u-m)/i),t.phi2=Math.atan2((-h-g)/o,(-u-m)/i),0===t.sweepFlag&&t.phi2>t.phi1&&(t.phi2-=2*a),1===t.sweepFlag&&t.phi2<t.phi1&&(t.phi2+=2*a),t.phi1*=180/a,t.phi2*=180/a}function s(t,e,r){i(t,e,r);let n=t*t+e*e-r*r;if(0>n)return[];if(0===n)return[[t*r/(t*t+e*e),e*r/(t*t+e*e)]];let a=Math.sqrt(n);return[[(t*r+e*a)/(t*t+e*e),(e*r-t*a)/(t*t+e*e)],[(t*r-e*a)/(t*t+e*e),(e*r+t*a)/(t*t+e*e)]]}let l=Math.PI/180;function c(t,e,r,n){return t+Math.cos(n/180*a)*e+Math.sin(n/180*a)*r}function u(t,e,r,n){let i=e-t,a=r-e,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(t,e,r=1e-6){let n=t*t/4-e;if(n<-r)return[];if(n<=r)return[-t/2];let i=Math.sqrt(n);return[-(t/2)-i,-(t/2)+i]}(s/o,l/o,1e-6)}function h(t,e,r,n,i){let a=1-i;return a*a*a*t+3*a*a*i*e+3*a*i*i*r+i*i*i*n}function p(t,e,r){let n=e[0]-t[0],i=e[1]-t[1],a=r[0]-t[0],o=r[1]-t[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(t){let e=t[t.length-1]?.type===w.CLOSE_PATH,r=e?t.length-2:t.length-1,n=[{type:w.MOVE_TO,relative:!1,x:t[r].x,y:t[r].y}];for(let e=r;e>0;e--){let r=t[e],i=t[e-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 e&&n.push({type:w.CLOSE_PATH}),n}function f(){return A((t,e,r)=>(t.relative&&(void 0!==t.x1&&(t.x1+=e),void 0!==t.y1&&(t.y1+=r),void 0!==t.x2&&(t.x2+=e),void 0!==t.y2&&(t.y2+=r),void 0!==t.x&&(t.x+=e),void 0!==t.y&&(t.y+=r),t.relative=!1),t))}function m(){let t=0/0,e=0/0,r=0/0,n=0/0;return A((i,a,o)=>(i.type&w.SMOOTH_CURVE_TO&&(i.type=w.CURVE_TO,t=isNaN(t)?a:t,e=isNaN(e)?o:e,i.x1=i.relative?a-t:2*a-t,i.y1=i.relative?o-e:2*o-e),i.type&w.CURVE_TO?(t=i.relative?a+i.x2:i.x2,e=i.relative?o+i.y2:i.y2):(t=0/0,e=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 t=0/0,e=0/0;return A((r,n,i)=>{if(r.type&w.SMOOTH_QUAD_TO&&(r.type=w.QUAD_TO,t=isNaN(t)?n:t,e=isNaN(e)?i:e,r.x1=r.relative?n-t:2*n-t,r.y1=r.relative?i-e:2*i-e),r.type&w.QUAD_TO){t=r.relative?n+r.x1:r.x1,e=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 t=0/0,e=0/0;return r})}function A(t){let e=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=t(a,e,r,n,i);return a.type&w.CLOSE_PATH&&(e=n,r=i),"x"in a&&void 0!==a.x&&(e=a.relative?e+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=e,i=r),o}}function y(t,e,r,n,a,o){return i(t,e,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!==e&&(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*t+f*r+(p?0:a)),void 0!==i.y&&(i.y=d*e+i.y*n+(p?0:o)),void 0!==i.x1&&(i.x1=i.x1*t+i.y1*r+(p?0:a)),void 0!==i.y1&&(i.y1=u*e+i.y1*n+(p?0:o)),void 0!==i.x2&&(i.x2=i.x2*t+i.y2*r+(p?0:a)),void 0!==i.y2&&(i.y2=h*e+i.y2*n+(p?0:o));let m=t*n-e*r;if(void 0!==i.xRot&&(1!==t||0!==e||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*e*n+p*e*e,f=h*(t*n+e*r)-2*(u*r*n+p*t*e),y=u*r*r-h*t*r+p*t*t,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 t=>({...t})}let R={ROUND:function(t=1e13){function e(e){return Math.round(e*t)/t}return i(t),function(t){return"x1"in t&&void 0!==t.x1&&(t.x1=e(t.x1)),"y1"in t&&void 0!==t.y1&&(t.y1=e(t.y1)),"x2"in t&&void 0!==t.x2&&(t.x2=e(t.x2)),"y2"in t&&void 0!==t.y2&&(t.y2=e(t.y2)),"x"in t&&void 0!==t.x&&(t.x=e(t.x)),"y"in t&&void 0!==t.y&&(t.y=e(t.y)),"rX"in t&&void 0!==t.rX&&(t.rX=e(t.rX)),"rY"in t&&void 0!==t.rY&&(t.rY=e(t.rY)),t}},TO_ABS:f,TO_REL:function(){return A((t,e,r)=>(t.relative||(void 0!==t.x1&&(t.x1-=e),void 0!==t.y1&&(t.y1-=r),void 0!==t.x2&&(t.x2-=e),void 0!==t.y2&&(t.y2-=r),void 0!==t.x&&(t.x-=e),void 0!==t.y&&(t.y-=r),t.relative=!0),t))},NORMALIZE_HVZ:function(t=!0,e=!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(e&&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),t&&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 t=[a,o],e=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(t,e,n)&&p(t,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(t=0){i(t);let e=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(e)?0:o-e,d=isNaN(r)?0:s-r),i.type&(w.CURVE_TO|w.SMOOTH_CURVE_TO)?(e=i.relative?o+i.x2:i.x2,r=i.relative?s+i.y2:i.y2):(e=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 e=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(e)<=t&&u(r)<=t&&u(p)<=t&&u(d)<=t&&u(l)<=t&&u(c)<=t&&(h=!0)}return i.type&w.CLOSE_PATH&&u(o-l)<=t&&u(s-c)<=t&&(h=!0),h?[]:i})},MATRIX:y,ROTATE:function(t,e=0,r=0){i(t,e,r);let n=Math.sin(t),a=Math.cos(t);return y(a,n,-n,a,e-e*a+r*n,r-e*n-r*a)},TRANSLATE:function(t,e=0){return i(t,e),y(1,0,0,1,t,e)},SCALE:function(t,e=t){return i(t,e),y(t,0,0,e,0,0)},SKEW_X:function(t){return i(t),y(1,0,Math.tan(t),1,0,0)},SKEW_Y:function(t){return i(t),y(1,Math.tan(t),0,1,0,0)},X_AXIS_SYMMETRY:function(t=0){return i(t),y(-1,0,0,1,t,0)},Y_AXIS_SYMMETRY:function(t=0){return i(t),y(1,0,0,-1,0,t)},A_TO_C:function(){return A((t,e,r)=>w.ARC===t.type?function(t,e,r){t.cX||o(t,e,r);let i=t.xRot/180*a;if(1e-10>Math.abs(t.rX)||1e-10>Math.abs(t.rY))return[{relative:t.relative,type:w.CURVE_TO,x1:e+(t.x-e)/3,y1:r+(t.y-r)/3,x2:e+2*(t.x-e)/3,y2:r+2*(t.y-r)/3,x:t.x,y:t.y}];let s=Math.min(t.phi1,t.phi2),c=Math.ceil((Math.max(t.phi1,t.phi2)-s)/90),u=Array(c),h=e,p=r,d=(e,r)=>{let[a,o]=n([e*t.rX,r*t.rY],i);return[t.cX+a,t.cY+o]};for(let e=0;e<c;e++){var f,m,g,A,y,v;let r=(f=t.phi1,m=t.phi2,(1-(g=e/c))*f+g*m),n=(A=t.phi1,y=t.phi2,(1-(v=(e+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),N={relative:t.relative,type:w.CURVE_TO,x:O[0],y:O[1],x1:M[0],y1:M[1],x2:S[0],y2:S[1]};t.relative&&(N.x1-=h,N.y1-=p,N.x2-=h,N.y2-=p,N.x-=h,N.y-=p),h=O[0],p=O[1],u[e]=N}return u}(t,t.relative?0:e,t.relative?0:r):t)},ANNOTATE_ARCS:function(){return A((t,e,r)=>(t.relative&&(e=0,r=0),w.ARC===t.type&&o(t,e,r),t))},CLONE:v,CALCULATE_BOUNDS:function(){let t=v(),e=f(),r=g(),n=m(),i=A((a,l,p)=>{let d=n(r(e(t(a))));function f(t){t>i.maxX&&(i.maxX=t),t<i.minX&&(i.minX=t)}function m(t){t>i.maxY&&(i.maxY=t),t<i.minY&&(i.minY=t)}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 t of(f(d.x),m(d.y),u(l,d.x1,d.x2,d.x)))0<t&&1>t&&f(h(l,d.x1,d.x2,d.x,t));for(let t of u(p,d.y1,d.y2,d.y))0<t&&1>t&&m(h(p,d.y1,d.y2,d.y,t))}if(d.type&w.ARC){f(d.x),m(d.y),o(d,l,p);let t=d.xRot/180*Math.PI,e=Math.cos(t)*d.rX,r=Math.sin(t)*d.rX,n=-Math.sin(t)*d.rY,i=Math.cos(t)*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=([t,e])=>{let r=180*Math.atan2(e,t)/Math.PI;return r<a?r+360:r};for(let t of s(n,-e,0).map(h))t>a&&t<u&&f(c(d.cX,e,n,t));for(let t of s(i,-r,0).map(h))t>a&&t<u&&m(c(d.cY,r,i,t))}return a});return i.minX=1/0,i.maxX=-1/0,i.minY=1/0,i.maxY=-1/0,i},REVERSE_PATH:function(t,e=!0){if(t.length<2)return t;let r=R.INFO((t,e,r)=>({...t,x:t.x??e,y:t.y??r,relative:t.relative??!1})),n=[],i=[];for(let a of t){let t=r(a);t.type===w.MOVE_TO&&i.length>0&&(e?n.push(...d(i)):n.unshift(...d(i)),i=[]),i.push(t)}return i.length>0&&(e?n.push(...d(i)):n.unshift(...d(i))),n},REMOVE_COLLINEAR:function(t){if(t.length<=2)return t;let e=[],r=t.map(R.INFO((t,e,r)=>{let n="relative"in t&&t.relative;return["x"in t?t.x+(n?e:0):e,"y"in t?t.y+(n?r:0):r]})),n=r[0];e.push(t[0]);for(let i=1;i<t.length;i++){let a=t[i],o=t[i+1];if(i<t.length-1&&o&&a.type&w.LINE_COMMANDS&&o.type&w.LINE_COMMANDS){let t=r[i+1];if(p(n,r[i],t)){"relative"in o&&o.relative&&("x"in o&&(o.x=t[0]-n[0]),"y"in o&&(o.y=t[1]-n[1]));continue}}e.push(a),n=r[i]}return e}};class b{round(t){return this.transform(R.ROUND(t))}toAbs(){return this.transform(R.TO_ABS())}toRel(){return this.transform(R.TO_REL())}normalizeHVZ(t,e,r){return this.transform(R.NORMALIZE_HVZ(t,e,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(t){return this.transform(R.SANITIZE(t))}translate(t,e){return this.transform(R.TRANSLATE(t,e))}scale(t,e){return this.transform(R.SCALE(t,e))}rotate(t,e,r){return this.transform(R.ROTATE(t,e,r))}matrix(t,e,r,n,i,a){return this.transform(R.MATRIX(t,e,r,n,i,a))}skewX(t){return this.transform(R.SKEW_X(t))}skewY(t){return this.transform(R.SKEW_Y(t))}xSymmetry(t){return this.transform(R.X_AXIS_SYMMETRY(t))}ySymmetry(t){return this.transform(R.Y_AXIS_SYMMETRY(t))}annotateArcs(){return this.transform(R.ANNOTATE_ARCS())}}let x=t=>" "===t||" "===t||"\r"===t||"\n"===t,M=t=>48<=t.charCodeAt(0)&&57>=t.charCodeAt(0);class S extends b{curNumber="";curCommandType=-1;curCommandRelative=!1;canParseCommandOrComma=!0;curNumberHasExp=!1;curNumberHasExpDigits=!1;curNumberHasDecimal=!1;curArgs=[];finish(t=[]){if(this.parse(" ",t),0!==this.curArgs.length||!this.canParseCommandOrComma)throw SyntaxError("Unterminated command at the path end.");return t}parse(t,e=[]){let r=t=>{e.push(t),this.curArgs.length=0,this.canParseCommandOrComma=!0};for(let n=0;n<t.length;n++){let i=t[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 t=Number(this.curNumber);if(isNaN(t))throw SyntaxError(`Invalid number ending at ${n}`);if(this.curCommandType===w.ARC){if(0===this.curArgs.length||1===this.curArgs.length){if(0>t)throw SyntaxError(`Expected positive number, got "${t}" 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(t),this.curArgs.length===O[this.curCommandType]&&(w.HORIZ_LINE_TO===this.curCommandType?r({type:w.HORIZ_LINE_TO,relative:this.curCommandRelative,x:t}):w.VERT_LINE_TO===this.curCommandType?r({type:w.VERT_LINE_TO,relative:this.curCommandRelative,y:t}):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){e.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 e}transform(t){return Object.create(this,{parse:{value(e,r=[]){for(let n of Object.getPrototypeOf(this).parse.call(this,e)){let e=t(n);Array.isArray(e)?r.push(...e):r.push(e)}return r}}})}}class w extends b{commands;constructor(t){super(),"string"==typeof t?this.commands=w.parse(t):this.commands=t}encode(){return w.encode(this.commands)}getBounds(){let t=R.CALCULATE_BOUNDS();return this.transform(t),t}transform(t){let e=[];for(let r of this.commands){let n=t(r);Array.isArray(n)?e.push(...n):e.push(n)}return this.commands=e,this}reverse(t=!0){return this.commands=R.REVERSE_PATH(this.commands,t),this}removeCollinear(){return this.commands=R.REMOVE_COLLINEAR(this.commands),this}static encode(t){var e=t;let r="";Array.isArray(e)||(e=[e]);for(let t=0;t<e.length;t++){let n=e[t];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 ${t}.`)}return r}static parse(t){let e=new S,r=[];return e.parse(t,r),e.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(t,e,r){function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var i,a,o,s=/^\s+/,l=/\s+$/;function c(t,e){if(e=e||{},(t=t||"")instanceof c)return t;if(!(this instanceof c))return new c(t,e);var r,i,a,o,u,h,p,d,f,m,g,A,y,v,R,b,x,M,S,w,N=(i={r:0,g:0,b:0},a=1,o=null,u=null,h=null,p=!1,d=!1,"string"==typeof(r=t)&&(r=function(t){t=t.replace(s,"").replace(l,"").toLowerCase();var e,r=!1;if(O[t])t=O[t],r=!0;else if("transparent"==t)return{r:0,g:0,b:0,a:0,format:"name"};return(e=F.rgb.exec(t))?{r:e[1],g:e[2],b:e[3]}:(e=F.rgba.exec(t))?{r:e[1],g:e[2],b:e[3],a:e[4]}:(e=F.hsl.exec(t))?{h:e[1],s:e[2],l:e[3]}:(e=F.hsla.exec(t))?{h:e[1],s:e[2],l:e[3],a:e[4]}:(e=F.hsv.exec(t))?{h:e[1],s:e[2],v:e[3]}:(e=F.hsva.exec(t))?{h:e[1],s:e[2],v:e[3],a:e[4]}:(e=F.hex8.exec(t))?{r:P(e[1]),g:P(e[2]),b:P(e[3]),a:P(e[4])/255,format:r?"name":"hex8"}:(e=F.hex6.exec(t))?{r:P(e[1]),g:P(e[2]),b:P(e[3]),format:r?"name":"hex"}:(e=F.hex4.exec(t))?{r:P(e[1]+""+e[1]),g:P(e[2]+""+e[2]),b:P(e[3]+""+e[3]),a:P(e[4]+""+e[4])/255,format:r?"name":"hex8"}:!!(e=F.hex3.exec(t))&&{r:P(e[1]+""+e[1]),g:P(e[2]+""+e[2]),b:P(e[3]+""+e[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=C(r.s),u=C(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=C(r.s),h=C(r.l),i=function(t,e,r){var n,i,a;function o(t,e,r){return(r<0&&(r+=1),r>1&&(r-=1),r<1/6)?t+(e-t)*6*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t}if(t=_(t,360),e=_(e,100),r=_(r,100),0===e)n=i=a=r;else{var s=r<.5?r*(1+e):r+e-r*e,l=2*r-s;n=o(l,s,t+1/3),i=o(l,s,t),a=o(l,s,t-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=L(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=t,this._r=N.r,this._g=N.g,this._b=N.b,this._a=N.a,this._roundA=Math.round(100*this._a)/100,this._format=e.format||N.format,this._gradientType=e.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=N.ok}function u(t,e,r){t=_(t,255);var n,i,a=Math.max(t,e=_(e,255),r=_(r,255)),o=Math.min(t,e,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 t:n=(e-r)/l+6*(e<r);break;case e:n=(r-t)/l+2;break;case r:n=(t-e)/l+4}n/=6}return{h:n,s:i,l:s}}function h(t,e,r){t=_(t,255);var n,i=Math.max(t,e=_(e,255),r=_(r,255)),a=Math.min(t,e,r),o=i-a;if(i==a)n=0;else{switch(i){case t:n=(e-r)/o+6*(e<r);break;case e:n=(r-t)/o+2;break;case r:n=(t-e)/o+4}n/=6}return{h:n,s:0===i?0:o/i,v:i}}function p(t,e,r,n){var i=[I(Math.round(t).toString(16)),I(Math.round(e).toString(16)),I(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(t,e,r,n){return[I(k(n)),I(Math.round(t).toString(16)),I(Math.round(e).toString(16)),I(Math.round(r).toString(16))].join("")}function f(t,e){e=0===e?0:e||10;var r=c(t).toHsl();return r.s-=e/100,r.s=T(r.s),c(r)}function m(t,e){e=0===e?0:e||10;var r=c(t).toHsl();return r.s+=e/100,r.s=T(r.s),c(r)}function g(t){return c(t).desaturate(100)}function A(t,e){e=0===e?0:e||10;var r=c(t).toHsl();return r.l+=e/100,r.l=T(r.l),c(r)}function y(t,e){e=0===e?0:e||10;var r=c(t).toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(-(e/100*255)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(-(e/100*255)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(-(e/100*255)))),c(r)}function v(t,e){e=0===e?0:e||10;var r=c(t).toHsl();return r.l-=e/100,r.l=T(r.l),c(r)}function R(t,e){var r=c(t).toHsl(),n=(r.h+e)%360;return r.h=n<0?360+n:n,c(r)}function b(t){var e=c(t).toHsl();return e.h=(e.h+180)%360,c(e)}function x(t,e){if(isNaN(e)||e<=0)throw Error("Argument to polyad must be a positive number");for(var r=c(t).toHsl(),n=[c(t)],i=360/e,a=1;a<e;a++)n.push(c({h:(r.h+a*i)%360,s:r.s,l:r.l}));return n}function M(t){var e=c(t).toHsl(),r=e.h;return[c(t),c({h:(r+72)%360,s:e.s,l:e.l}),c({h:(r+216)%360,s:e.s,l:e.l})]}function S(t,e,r){e=e||6,r=r||30;var n=c(t).toHsl(),i=360/r,a=[c(t)];for(n.h=(n.h-(i*e>>1)+720)%360;--e;)n.h=(n.h+i)%360,a.push(c(n));return a}function w(t,e){e=e||6;for(var r=c(t).toHsv(),n=r.h,i=r.s,a=r.v,o=[],s=1/e;e--;)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 t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},getLuminance:function(){var t,e,r,n=this.toRgb();return t=n.r/255,e=n.g/255,.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.0722*((r=n.b/255)<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},setAlpha:function(t){return this._a=L(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=h(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=h(this._r,this._g,this._b),e=Math.round(360*t.h),r=Math.round(100*t.s),n=Math.round(100*t.v);return 1==this._a?"hsv("+e+", "+r+"%, "+n+"%)":"hsva("+e+", "+r+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var t=u(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=u(this._r,this._g,this._b),e=Math.round(360*t.h),r=Math.round(100*t.s),n=Math.round(100*t.l);return 1==this._a?"hsl("+e+", "+r+"%, "+n+"%)":"hsla("+e+", "+r+"%, "+n+"%, "+this._roundA+")"},toHex:function(t){return p(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){var e,r,n,i,a,o;return e=this._r,r=this._g,n=this._b,i=this._a,a=t,o=[I(Math.round(e).toString(16)),I(Math.round(r).toString(16)),I(Math.round(n).toString(16)),I(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(t){return"#"+this.toHex8(t)},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)&&(N[p(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var e="#"+d(this._r,this._g,this._b,this._a),r=e,n=this._gradientType?"GradientType = 1, ":"";if(t){var i=c(t);r="#"+d(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+e+",endColorstr="+r+")"},toString:function(t){var e=!!t;t=t||this._format;var r=!1,n=this._a<1&&this._a>=0;return!e&&n&&("hex"===t||"hex6"===t||"hex3"===t||"hex4"===t||"hex8"===t||"name"===t)?"name"===t&&0===this._a?this.toName():this.toRgbString():("rgb"===t&&(r=this.toRgbString()),"prgb"===t&&(r=this.toPercentageRgbString()),("hex"===t||"hex6"===t)&&(r=this.toHexString()),"hex3"===t&&(r=this.toHexString(!0)),"hex4"===t&&(r=this.toHex8String(!0)),"hex8"===t&&(r=this.toHex8String()),"name"===t&&(r=this.toName()),"hsl"===t&&(r=this.toHslString()),"hsv"===t&&(r=this.toHsvString()),r||this.toHexString())},clone:function(){return c(this.toString())},_applyModification:function(t,e){var r=t.apply(null,[this].concat([].slice.call(e)));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(t,e){return t.apply(null,[this].concat([].slice.call(e)))},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(t,e){if("object"==n(t)){var r={};for(var i in t)t.hasOwnProperty(i)&&("a"===i?r[i]=t[i]:r[i]=C(t[i]));t=r}return c(t,e)},c.equals=function(t,e){return!!t&&!!e&&c(t).toRgbString()==c(e).toRgbString()},c.random=function(){return c.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},c.mix=function(t,e,r){r=0===r?0:r||50;var n=c(t).toRgb(),i=c(e).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(t,e){var r=c(t),n=c(e);return(Math.max(r.getLuminance(),n.getLuminance())+.05)/(Math.min(r.getLuminance(),n.getLuminance())+.05)},c.isReadable=function(t,e,r){var n,i,a,o,s,l=c.readability(t,e);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(t,e,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<e.length;u++)(n=c.readability(t,e[u]))>l&&(l=n,s=c(e[u]));return c.isReadable(t,s,{level:a,size:o})||!i?s:(r.includeFallbackColors=!1,c.mostReadable(t,["#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"},N=c.hexNames=function(t){var e={};for(var r in t)t.hasOwnProperty(r)&&(e[t[r]]=r);return e}(O);function L(t){return(isNaN(t=parseFloat(t))||t<0||t>1)&&(t=1),t}function _(t,e){"string"==typeof(r=t)&&-1!=r.indexOf(".")&&1===parseFloat(r)&&(t="100%");var r,n,i="string"==typeof(n=t)&&-1!=n.indexOf("%");return(t=Math.min(e,Math.max(0,parseFloat(t))),i&&(t=parseInt(t*e,10)/100),1e-6>Math.abs(t-e))?1:t%e/parseFloat(e)}function T(t){return Math.min(1,Math.max(0,t))}function P(t){return parseInt(t,16)}function I(t){return 1==t.length?"0"+t:""+t}function C(t){return t<=1&&(t=100*t+"%"),t}function k(t){return Math.round(255*parseFloat(t)).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(t){return!!F.CSS_UNIT.exec(t)}r.d(e,{A:()=>c})},57799(){((t="lang")=>()=>{var e;let r;return e=document?.cookie,(r=e?.split(";").map(t=>t.trim()).find(e=>e.startsWith(t))?.split("=")[1])?[r]:[]})();var t=t=>!!t;((e="lang")=>()=>[window?.localStorage?.getItem(e)].filter(t))(),((t="lang")=>()=>{let e=location?.search?.slice(1).split("&").find(e=>e.startsWith(t))?.split("=")[1];return e?[e]:[]})();var e=t=>!!t;((t="lang")=>()=>[window?.sessionStorage?.getItem(t)].filter(e))()},19788(t,e,r){var n=(t,e={})=>{let r=new Intl.NumberFormat(t,e);return t=>r.format(t)};r.d(e,{A:()=>n})},30139(t,e,r){var n=r(51649),i=()=>new Proxy(Object.assign(()=>"",{}),{get:(t,e)=>"length"===e?0:i()}),a=/^\{.*\}$/,o=/(\{(?:[^{}]+|\{(?:[^{}]+)*\})*\})/g,s=t=>t.substring(1,t.length-1),l=/\?\?/g;function c(t,e,r={}){let n,i;return h(e,(n={},i=new Intl.PluralRules(t),(t,...e)=>{var c;let u,h,p;return c=n[t]||(n[t]=((t,e=!0,r="",n="")=>t.split(o).map(t=>{if(!t.match(o))return t;let e=s(t);if(e.startsWith("{"))return((t,e)=>{let[r,n]=t.split(":");n||(n=r,r=e);let i=n.split("|"),[a,o,s,l,c,u]=i,h=i.filter(t=>void 0!==t).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(e),n);let i=(t=>{let[e="",...r]=t.split("|"),[n="",i]=e.split(":"),[a,o]=n.split("?");return{k:a,i:i,n:""===o,f:r}})(e);return n=i.k||n,r||(r=n),i}).map(t=>{if("string"==typeof t)return t;t.k||(t.k=r||"0");let n=Object.fromEntries(Object.keys(t).map(e=>{let r=t[e];return[e,Array.isArray(r)?r.map(t=>t?.trim()):!!r===r?r:r?.trim()]}));return e?Object.fromEntries(Object.entries(n).map(([t,e])=>"i"!==t&&e&&"0"!=e&&[t,e]).filter(Boolean)):n}))(t)),h=(u=e[0])&&"object"==typeof u&&u.constructor===Object,p=1===e.length&&h?u:e,c.map(t=>{if("string"==typeof t)return t;let{k:e="0",f:n=[]}=t,o=p[e];return t.o||t.r?(("boolean"==typeof o?o?t.o:t.r:((t,{z:e,o:r,t:n,f:i,m:a,r:o},s)=>{switch(e&&0==s?"zero":t.select(s)){case"zero":return e;case"one":return r;case"two":return n;case"few":return i??o;case"many":return a??o;default:return o}})(i,t,o))||"").replace(l,o):(""+((n.length?n.reduce((t,e)=>{let n;return(e.match(a)?(n=Object.fromEntries(s(e).split(",").map(t=>t.split(":")).reduce((t,e)=>2===e.length?[...t,e.map(t=>t.trim())]:(t[t.length-1][1]+=","+e[0],t),[])))[t]??n["*"]:r[e]?.(t))??t},o):o)??"")).trim()}).join("")}))}var u=(t={},e)=>"string"==typeof t?e.bind(null,t):Object.assign(Object.defineProperty(()=>"","name",{writable:!0}),t),h=(t,e)=>new Proxy(u(t,e),{get:(t,r)=>r===Symbol.iterator?[][Symbol.iterator].bind(Object.values(t).map(t=>u(t,e))):h(t[r],e)}),p=n.default,d=(t,e={})=>{let r=p.createContext({});return{component:n=>{let[a,o]=p.useState(n.locale),[s,l]=p.useState(()=>a?c(a,t[a],e[a]):i()),u=p.useCallback(r=>{o(r),l(()=>c(r,t[r],e[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(e,{w:()=>d})},86639(t,e,r){r.d(e,{y:()=>s});let n=/^\{.*\}$/,i=/(\{(?:[^{}]+|\{(?:[^{}]+)*\})*\})/g,a=t=>t.substring(1,t.length-1),o=/\?\?/g;function s(t,e,r={}){let l,u;return c(e,(l={},u=new Intl.PluralRules(t),(t,...e)=>{var s;let c,h,p;return s=l[t]||(l[t]=((t,e=!0,r="",n="")=>t.split(i).map(t=>{if(!t.match(i))return t;let e=a(t);if(e.startsWith("{"))return((t,e)=>{let[r,n]=t.split(":");n||(n=r,r=e);let i=n.split("|"),[a,o,s,l,c,u]=i,h=i.filter(t=>void 0!==t).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(e),n);let o=(t=>{let[e="",...r]=t.split("|"),[n="",i]=e.split(":"),[a,o]=n.split("?");return{k:a,i:i,n:""===o,f:r}})(e);return n=o.k||n,r||(r=n),o}).map(t=>{if("string"==typeof t)return t;t.k||(t.k=r||"0");let n=Object.fromEntries(Object.keys(t).map(e=>{let r=t[e];return[e,Array.isArray(r)?r.map(t=>null==t?void 0:t.trim()):!!r===r?r:null==r?void 0:r.trim()]}));return e?Object.fromEntries(Object.entries(n).map(([t,e])=>"i"!==t&&e&&"0"!=e&&[t,e]).filter(Boolean)):n}))(t)),h=(c=e[0])&&"object"==typeof c&&c.constructor===Object,p=1===e.length&&h?c:e,s.map(t=>{if("string"==typeof t)return t;let{k:e="0",f:i=[]}=t,s=p[e];if(t.o||t.r)return(("boolean"==typeof s?s?t.o:t.r:((t,{z:e,o:r,t:n,f:i,m:a,r:o},s)=>{switch(e&&0==s?"zero":t.select(s)){case"zero":return e;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,t,s))||"").replace(o,s);let l=i.length?i.reduce((t,e)=>{var i,o,s,l;return null!=(o=e.match(n)?null!=(l=(s=Object.fromEntries(a(e).split(",").map(t=>t.split(":")).reduce((t,e)=>2===e.length?[...t,e.map(t=>t.trim())]:(t[t.length-1][1]+=","+e[0],t),[])))[t])?l:s["*"]:null==(i=r[e])?void 0:i.call(r,t))?o:t},s):s;return(""+(null!=l?l:"")).trim()}).join("")}))}let l=(t={},e)=>"string"==typeof t?e.bind(null,t):Object.assign(Object.defineProperty(()=>"","name",{writable:!0}),t),c=(t,e)=>new Proxy(l(t,e),{get:(t,r)=>r===Symbol.iterator?[][Symbol.iterator].bind(Object.values(t).map(t=>l(t,e))):c(t[r],e)})},85469(t,e,r){function n(t){return!t||"object"!=typeof t&&"function"!=typeof t}var i=()=>(t,e)=>(function t(){var e=[].slice.call(arguments),r=!1;"boolean"==typeof e[0]&&(r=e.shift());var i=e[0];if(n(i))throw Error("extendee must be an object");for(var a=e.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]=t(!0,Object.prototype.hasOwnProperty.call(i,c)&&!n(i[c])?i[c]:p,h)}else i[c]=h}}return i})({},t,e);i(),r.d(e,{m:()=>i})},62534(t,e,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(t){var e=!(a&&t.metaKey&&t.shiftKey&&!t.ctrlKey&&!t.altKey||o&&t.shiftKey&&t.key&&1==t.key.length||"Unidentified"==t.key)&&t.key||(t.shiftKey?i:n)[t.keyCode]||t.key||"Unidentified";return"Esc"==e&&(e="Escape"),"Del"==e&&(e="Delete"),"Left"==e&&(e="ArrowLeft"),"Up"==e&&(e="ArrowUp"),"Right"==e&&(e="ArrowRight"),"Down"==e&&(e="ArrowDown"),e}r.d(e,{BN:()=>i,E3:()=>n,xT:()=>c})},62454(t,e,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(t,e){return t[e]=!0,t},{ignore:!1}),g={},A=new a.Ay(0,0,0,0),y=[],v=function(){function t(t){this.id=(0,l.Os)(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return t.prototype._init=function(t){this.attr(t)},t.prototype.drift=function(t,e,r){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=t,n[5]+=e,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var r=this.textConfig,n=r.local,i=e.innerTransformable,o=void 0,l=void 0,c=!1;i.parent=n?this:null;var u=!1;i.copyTransform(e);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,N=void 0,L=void 0;w&&this.canBeInsideText()?(O=r.insideFill,N=r.insideStroke,(null==O||"auto"===O)&&(O=this.getInsideTextFill()),(null==N||"auto"===N)&&(N=this.getInsideTextStroke(O),L=!0)):(O=r.outsideFill,N=r.outsideStroke,(null==O||"auto"===O)&&(O=this.getOutsideFill()),(null==N||"auto"===N)&&(N=this.getOutsideStroke(O),L=!0)),((O=O||"#000")!==M.fill||N!==M.stroke||L!==M.autoStroke||o!==M.align||l!==M.verticalAlign)&&(c=!0,M.fill=O,M.stroke=N,M.autoStroke=L,M.align=o,M.verticalAlign=l,e.setDefaultTextStyle(M)),e.__dirty|=h.M,c&&e.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(t){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?c.el:c._S},t.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),r="string"==typeof e&&(0,u.qg)(e);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")},t.prototype.traverse=function(t,e){},t.prototype.attrKV=function(t,e){"textConfig"===t?this.setTextConfig(e):"textContent"===t?this.setTextContent(e):"clipPath"===t?this.setClipPath(e):"extra"===t?(this.extra=this.extra||{},(0,l.X$)(this.extra,e)):this[t]=e},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(t,e){if("string"==typeof t)this.attrKV(t,e);else if((0,l.Gv)(t))for(var r=(0,l.HP)(t),n=0;n<r.length;n++){var i=r[n];this.attrKV(i,t[i])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=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?e[a]:e;n.saveTo(o)}}},t.prototype._innerSaveToNormal=function(t){var e=this._normalState;e||(e=this._normalState={}),t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,f)},t.prototype._savePrimaryToNormal=function(t,e,r){for(var n=0;n<r.length;n++){var i=r[n];null==t[i]||i in e||(e[i]=this[i])}},t.prototype.hasState=function(){return this.currentStates.length>0},t.prototype.getState=function(t){return this.states[t]},t.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},t.prototype.clearStates=function(t){this.useState(d,!1,t)},t.prototype.useState=function(t,e,r,n){var i,a=t===d;if(this.hasState()||!a){var o=this.currentStates,s=this.stateTransition;if(!((0,l.qh)(o,t)>=0)||!e&&1!==o.length){if(this.stateProxy&&!a&&(i=this.stateProxy(t)),i||(i=this.states&&this.states[t]),!i&&!a)return void(0,l.vV)("State "+t+" not exists.");a||this.saveCurrentToNormalState(i);var c=this._textContent,u=x(this,c,i,n);u&&!this.__inHover&&(this.__inHover=u),this._applyStateObj(t,i,this._normalState,e,S(this,r,s),s);var p=this._textGuide;return c&&c.useState(t,e,r,!!u),p&&p.useState(t,e,r,!!u),a?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!u&&this.__inHover&&(this.__inHover=0,this.__dirty&=~h.M),i}}},t.prototype.useStates=function(t,e,r){if(t.length){var n=[],i=this.currentStates,a=t.length,o=a===i.length;if(o){for(var s=0;s<a;s++)if(t[s]!==i[s]){o=!1;break}}if(!o){for(var s=0;s<a;s++){var l=t[s],c=void 0;this.stateProxy&&(c=this.stateProxy(l,t)),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(t.join(","),f,this._normalState,!1,S(this,e,m),m);var g=this._textGuide;p&&p.useStates(t,e,!!d),g&&g.useStates(t,e,!!d),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!d&&this.__inHover&&(this.__inHover=0,this.__dirty&=~h.M)}}else this.clearStates()},t.prototype.isSilent=function(){for(var t=this;t;){if(t.silent)return!0;var e=t.__hostTarget;t=e?t.ignoreHostSilent?null:e:t.parent}return!1},t.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},t.prototype.removeState=function(t){var e=(0,l.qh)(this.currentStates,t);if(e>=0){var r=this.currentStates.slice();r.splice(e,1),this.useStates(r)}},t.prototype.replaceState=function(t,e,r){var n=this.currentStates.slice(),i=(0,l.qh)(n,t),a=(0,l.qh)(n,e)>=0;i>=0?a?n.splice(i,1):n[i]=e:r&&!a&&n.push(e),this.useStates(n)},t.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},t.prototype._mergeStates=function(t){for(var e,r={},n=0;n<t.length;n++){var i=t[n];(0,l.X$)(r,i),i.textConfig&&(e=e||{},(0,l.X$)(e,i.textConfig))}return e&&(r.textConfig=e),r},t.prototype._applyStateObj=function(t,e,r,n,i,a){if(1!==this.__inHover){var o=!(e&&n);e&&e.textConfig?(this.textConfig=(0,l.X$)({},n?this.textConfig:r.textConfig),(0,l.X$)(this.textConfig,e.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];e&&null!=e[h]?p?(c=!0,s[h]=e[h]):this[h]=e[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?(e||r)[g]:e||r)}c&&this._transitionState(t,s,a)}},t.prototype._attachComponent=function(t){if((!t.__zr||t.__hostTarget)&&t!==this){var e=this.__zr;e&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this}},t.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},t.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(t){var e=this._textContent;e!==t&&(e&&e!==t&&this.removeTextContent(),t.innerTransformable=new n.Ay,this._attachComponent(t),this._textContent=t,this.markRedraw())},t.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),(0,l.X$)(this.textConfig,t),this.markRedraw()},t.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},t.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},t.prototype.getTextGuideLine=function(){return this._textGuide},t.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},t.prototype.markRedraw=function(){this.__dirty|=h.M;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var e=this.animators;if(e)for(var r=0;r<e.length;r++)t.animation.addAnimator(e[r]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},t.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var e=this.animators;if(e)for(var r=0;r<e.length;r++)t.animation.removeAnimator(e[r]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},t.prototype.animate=function(t,e,r){var n=t?this[t]:this,a=new i.A(n,e,r);return t&&(a.targetName=t),this.addAnimator(a,t),a},t.prototype.addAnimator=function(t,e){var r=this.__zr,n=this;t.during(function(){n.updateDuringAnimation(e)}).done(function(){var e=n.animators,r=(0,l.qh)(e,t);r>=0&&e.splice(r,1)}),this.animators.push(t),r&&r.animation.addAnimator(t),r&&r.wakeUp()},t.prototype.updateDuringAnimation=function(t){this.markRedraw()},t.prototype.stopAnimation=function(t,e){for(var r=this.animators,n=r.length,i=[],a=0;a<n;a++){var o=r[a];t&&t!==o.scope?i.push(o):o.stop(e)}return this.animators=i,this},t.prototype.animateTo=function(t,e,r){R(this,t,e,r)},t.prototype.animateFrom=function(t,e,r){R(this,t,e,r,!0)},t.prototype._transitionState=function(t,e,r,n){for(var i=R(this,e,r,n),a=0;a<i.length;a++)i[a].__fromStateTransition=t},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.initDefaultProps=function(){var e=t.prototype;function r(t,r,n,i){Object.defineProperty(e,t,{get:function(){return this[r]||a(this,this[r]=[]),this[r]},set:function(t){this[n]=t[0],this[i]=t[1],this[r]=t,a(this,t)}});function a(t,e){Object.defineProperty(e,0,{get:function(){return t[n]},set:function(e){t[n]=e}}),Object.defineProperty(e,1,{get:function(){return t[i]},set:function(e){t[i]=e}})}}e.type="element",e.name="",e.ignore=e.silent=e.ignoreHostSilent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=!1,e.__inHover=0,e.__dirty=h.M,Object.defineProperty&&(r("position","_legacyPos","x","y"),r("scale","_legacyScale","scaleX","scaleY"),r("origin","_legacyOrigin","originX","originY"))}(),t}();function R(t,e,r,n,a){var o=[];!function t(e,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=e.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,e.updateDuringAnimation(r));continue}t(e,R,n[R],x,o,s&&s[R],c,u)}else u||(n[R]=x,e.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(t){var e,r;return!((e=a[t])===(r=n[t])||(0,l.Xj)(e)&&(0,l.Xj)(r)&&function(t,e){var r=t.length;if(r!==e.length)return!1;for(var n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}(e,r))})).length),M>0||o.force&&!c.length){var N=void 0,L=void 0,_=void 0;if(u){L={},m&&(N={});for(var S=0;S<M;S++){var R=y[S];L[R]=n[R],m?N[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(t,e,r){if((0,l.Xj)(e[r]))if((0,l.Xj)(t[r])||(t[r]=[]),(0,l.iu)(e[r])){var n=e[r].length;t[r].length!==n&&(t[r]=new e[r].constructor(n),b(t[r],e[r],n))}else{var i=e[r],a=t[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 t[r]=e[r]}(n,a,R)}}var w=new i.A(n,!1,!1,f?(0,l.pb)(A,function(t){return t.targetName===r}):null);w.targetName=r,o.scope&&(w.scope=o.scope),m&&N&&w.whenWithKeys(0,N,y),_&&w.whenWithKeys(0,_,y),w.whenWithKeys(null==p?500:p,u?L:a,y).delay(d||0),e.addAnimator(w,r),c.push(w)}}(t,"",t,e,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(t,e){r.during(e)});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(t,e,r){for(var n=0;n<r;n++)t[n]=e[n]}function x(t,e,r,n){return!(r&&r.hoverLayer||n)||M(t)||e&&M(e)?0:1}function M(t){return"text"===t.type||"tspan"===t.type}function S(t,e,r){return!e&&!t.__inHover&&r&&r.duration>0}(0,l.co)(v,o.A),(0,l.co)(v,n.Ay),e.Ay=v,r.d(e,{yx:()=>1})},18565(t,e,r){r.d(e,{F:()=>d,A:()=>v});var n={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return .5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,r=.1;return 0===t?0:1===t?1:(!r||r<1?(r=1,e=.1):e=.4*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(t-=1))*Math.sin(2*Math.PI*(t-e)/.4)))},elasticOut:function(t){var e,r=.1;return 0===t?0:1===t?1:(!r||r<1?(r=1,e=.1):e=.4*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*t)*Math.sin(2*Math.PI*(t-e)/.4)+1)},elasticInOut:function(t){var e,r=.1;return 0===t?0:1===t?1:(!r||r<1?(r=1,e=.1):e=.4*Math.asin(1/r)/(2*Math.PI),(t*=2)<1)?-.5*(r*Math.pow(2,10*(t-=1))*Math.sin(2*Math.PI*(t-e)/.4)):r*Math.pow(2,-10*(t-=1))*Math.sin(2*Math.PI*(t-e)/.4)*.5+1},backIn:function(t){return t*t*(2.70158*t-1.70158)},backOut:function(t){return--t*t*(2.70158*t+1.70158)+1},backInOut:function(t){return(t*=2)<1?t*t*(3.5949095*t-2.5949095)*.5:.5*((t-=2)*t*(3.5949095*t+2.5949095)+2)},bounceIn:function(t){return 1-n.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*n.bounceIn(2*t):.5*n.bounceOut(2*t-1)+.5}},i=r(98026),a=r(96320),o=function(){function t(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||i.lQ,this.ondestroy=t.ondestroy||i.lQ,this.onrestart=t.onrestart||i.lQ,t.easing&&this.setEasing(t.easing)}return t.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=e;return}var r=this._life,n=t-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=t-n%r,this._pausedTime=0,this.onrestart();return!1},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(t){this.easing=t,this.easingFunc=(0,i.Tn)(t)?t:n[t]||(0,a.w)(t)},t}(),s=r(47698),l=r(3455),c=Array.prototype.slice;function u(t,e,r,n){for(var i,a=e.length,o=0;o<a;o++)t[o]=(i=e[o],(r[o]-i)*n+i);return t}function h(t,e,r,n){for(var i=e.length,a=0;a<i;a++)t[a]=e[a]+r[a]*n;return t}function p(t,e,r,n){for(var i=e.length,a=i&&e[0].length,o=0;o<i;o++){t[o]||(t[o]=[]);for(var s=0;s<a;s++)t[o][s]=e[o][s]+r[o][s]*n}return t}function d(t){if((0,i.Xj)(t)){var e=t.length;if((0,i.Xj)(t[0])){for(var r=[],n=0;n<e;n++)r.push(c.call(t[n]));return r}return c.call(t)}return t}function f(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=null==t[3]?1:t[3],"rgba("+t.join(",")+")"}function m(t){return 4===t||5===t}function g(t){return 1===t||2===t}var A=[0,0,0,0],y=function(){function t(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(t,e,r){this._needsSort=!0;var o=this.keyframes,c=o.length,u=!1,h=6,p=e;if((0,i.Xj)(e)){var d=(0,i.Xj)(e&&e[0])?2:1;h=d,(1!==d||(0,i.Et)(e[0]))&&(2!==d||(0,i.Et)(e[0][0]))||(u=!0)}else if((0,i.Et)(e)&&!(0,i.Yp)(e))h=0;else if((0,i.Kg)(e))if(isNaN(+e)){var f=s.qg(e);f&&(p=f,h=3)}else h=0;else if((0,i.C7)(e)){var m=(0,i.X$)({},p);m.colorStops=(0,i.Tj)(e.colorStops,function(t){return{offset:t.offset,color:s.qg(t.color)}}),(0,l.OS)(e)?h=4:(0,l.OH)(e)&&(h=5),p=m}0===c?this.valType=h:(h!==this.valType||6===h)&&(u=!0),this.discrete=this.discrete||u;var g={time:t,value:p,rawValue:e,percent:0};return r&&(g.easing=r,g.easingFunc=(0,i.Tn)(r)?r:n[r]||(0,a.w)(r)),o.push(g),g},t.prototype.prepare=function(t,e){var r=this.keyframes;this._needsSort&&r.sort(function(t,e){return t.time-e.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/t,!o&&(s&&u!==i-1?function(t,e,r){if(t.push&&e.push){var n=t.length,i=e.length;if(n!==i)if(n>i)t.length=i;else for(var a=n;a<i;a++)t.push(1===r?e[a]:c.call(e[a]));for(var o=t[0]&&t[0].length,a=0;a<t.length;a++)if(1===r)isNaN(t[a])&&(t[a]=e[a]);else for(var s=0;s<o;s++)isNaN(t[a][s])&&(t[a][s]=e[a][s])}}(f,A,n):l&&function(t,e){for(var r=t.length,n=e.length,i=r>n?e:t,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&&e&&this.needsAnimate()&&e.needsAnimate()&&n===e.valType&&!e._finished){this._additiveTrack=e;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))}},t.prototype.step=function(t,e){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(e<0)r=0;else if(e<this._lastFrP){for(r=v(y+1,h-1);r>=0&&!(c[r].percent<=e);r--);r=v(r,h-2)}else{for(r=y;r<h&&!(c[r].percent>e);r++);r=v(r-1,h-2)}a=c[r+1],n=c[r]}if(n&&a){this._lastFr=r,this._lastFrP=e;var R=a.percent-n.percent,b=0===R?1:v((e-n.percent)/R,1);a.easingFunc&&(b=a.easingFunc(b));var x=o?this._additiveValue:d?A:t[p];if((g(l)||d)&&!x&&(x=this._additiveValue=[]),this.discrete)t[p]=b<1?n.rawValue:a.rawValue;else if(g(l))1===l?u(x,n[s],a[s],b):function(t,e,r,n){for(var i=e.length,a=i&&e[0].length,o=0;o<i;o++){t[o]||(t[o]=[]);for(var s,l=0;l<a;l++)t[o][l]=(s=e[o][l],(r[o][l]-s)*n+s)}}(x,n[s],a[s],b);else if(m(l)){var M,S,w,O,N,L=n[s],_=a[s],T=4===l;(t[p]={type:T?"linear":"radial",x:(M=L.x,(_.x-M)*b+M),y:(S=L.y,(_.y-S)*b+S),colorStops:(0,i.Tj)(L.colorStops,function(t,e){var r,n=_.colorStops[e];return{offset:(r=t.offset,(n.offset-r)*b+r),color:f(u([],t.color,n.color,b))}}),global:_.global},T)?(t[p].x2=(w=L.x2,(_.x2-w)*b+w),t[p].y2=(O=L.y2,(_.y2-O)*b+O)):t[p].r=(N=L.r,(_.r-N)*b+N)}else if(d)u(x,n[s],a[s],b),o||(t[p]=f(x));else{var P,I=(P=n[s],(a[s]-P)*b+P);o?this._additiveValue=I:t[p]=I}o&&this._addToTarget(t)}}},t.prototype._addToTarget=function(t){var e=this.valType,r=this.propName,n=this._additiveValue;0===e?t[r]=t[r]+n:3===e?(s.qg(t[r],A),h(A,A,n,1),t[r]=f(A)):1===e?h(t[r],t[r],n,1):2===e&&p(t[r],t[r],n,1)},t}(),v=function(){function t(t,e,r,n){(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&n)?(0,i.vV)("Can' use additive animation on looped animation."):(this._additiveAnimators=n,this._allowDiscrete=r)}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(t){this._target=t},t.prototype.when=function(t,e,r){return this.whenWithKeys(t,e,(0,i.HP)(e),r)},t.prototype.whenWithKeys=function(t,e,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;t>0&&s.addKeyframe(0,d(l),n),this._trackKeys.push(o)}s.addKeyframe(t,d(e[o]),n)}return this._maxTime=Math.max(this._maxTime,t),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,r=0;r<e;r++)t[r].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var r=0;r<e.length;r++)e[r].call(this)},t.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,r=0;r<e.length;r++)t[e[r]].setFinished()},t.prototype._getAdditiveTrack=function(t){var e,r=this._additiveAnimators;if(r)for(var n=0;n<r.length;n++){var i=r[n].getTrack(t);i&&(e=i)}return e},t.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var e=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&&(e._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(t){e._started=2;var n=e._additiveAnimators;if(n){for(var i=!1,a=0;a<n.length;a++)if(n[a]._clip){i=!0;break}i||(e._additiveAnimators=null)}for(var a=0;a<r.length;a++)r[a].step(e._target,t);var o=e._onframeCbs;if(o)for(var a=0;a<o.length;a++)o[a](e._target,t)},ondestroy:function(){e._doneCallback()}});this._clip=p,this.animation&&this.animation.addClip(p),t&&p.setEasing(t)}else this._doneCallback();return this}},t.prototype.stop=function(t){if(this._clip){var e=this._clip;t&&e.onframe(1),this._abortedCallback()}},t.prototype.delay=function(t){return this._delay=t,this},t.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},t.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},t.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(t){return this._tracks[t]},t.prototype.getTracks=function(){var t=this;return(0,i.Tj)(this._trackKeys,function(e){return t._tracks[e]})},t.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var r=this._tracks,n=this._trackKeys,i=0;i<t.length;i++){var a=r[t[i]];a&&!a.isFinished()&&(e?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},t.prototype.saveTo=function(t,e,r){if(t){e=e||this._trackKeys;for(var n=0;n<e.length;n++){var i=e[n],a=this._tracks[i];if(!(!a||a.isFinished())){var o=a.keyframes,s=o[r?0:o.length-1];s&&(t[i]=d(s.rawValue))}}}},t.prototype.__changeFinalValue=function(t,e){e=e||(0,i.HP)(t);for(var r=0;r<e.length;r++){var n=e[r],a=this._tracks[n];if(a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,t[n]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},t}()},96320(t,e,r){var n=r(89259),i=r(98026),a=/cubic-bezier\(([0-9,\.e ]+)\)/;function o(t){var e=t&&a.exec(t);if(e){var r=e[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(t){return t<=0?0:t>=1?1:(0,n._E)(0,o,l,1,t,u)&&(0,n.Yb)(0,s,c,1,u[0])}}}r.d(e,{w:()=>o})},45825(t,e,r){e.A=r(38123).A.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)}},76050(t,e,r){var n=r(98026);function i(t){var e,r,i=t.style,a=i.lineDash&&i.lineWidth>0&&(e=i.lineDash,r=i.lineWidth,e&&"solid"!==e&&r>0?"dashed"===e?[4*r,2*r]:"dotted"===e?[r]:(0,n.Et)(e)?[e]:(0,n.cy)(e)?e:null:null),o=i.lineDashOffset;if(a){var s=i.strokeNoScale&&t.getLineScale?t.getLineScale():1;s&&1!==s&&(a=(0,n.Tj)(a,function(t){return t/s}),o/=s)}return[a,o]}r.d(e,{V:()=>i})},29571(t,e,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(t){var e=t.stroke;return null!=e&&"none"!==e&&t.lineWidth>0}function g(t){return"string"==typeof t&&"none"!==t}function A(t){var e=t.fill;return null!=e&&"none"!==e}function y(t,e){if(null!=e.fillOpacity&&1!==e.fillOpacity){var r=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=r}else t.fill()}function v(t,e){if(null!=e.strokeOpacity&&1!==e.strokeOpacity){var r=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=r}else t.stroke()}function R(t,e,r){var n=(0,a.OD)(e.image,e.__image,r);if((0,a.xA)(n)){var i=t.createPattern(n,e.repeat||"repeat");if("function"==typeof DOMMatrix&&i&&i.setTransform){var o=new DOMMatrix;o.translateSelf(e.x||0,e.y||0),o.rotateSelf(0,0,(e.rotation||0)*u.lI),o.scaleSelf(e.scaleX||1,e.scaleY||1),i.setTransform(o)}return i}}var b=["shadowBlur","shadowOffsetX","shadowOffsetY"],x=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function M(t,e,r,i,a){var o=!1;if(!i&&e===(r=r||{}))return!1;if(i||e.opacity!==r.opacity){O(t,a),o=!0;var s=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(s)?n.oN.opacity:s}(i||e.blend!==r.blend)&&(o||(O(t,a),o=!0),t.globalCompositeOperation=e.blend||n.oN.blend);for(var l=0;l<b.length;l++){var c=b[l];(i||e[c]!==r[c])&&(o||(O(t,a),o=!0),t[c]=t.dpr*(e[c]||0))}return(i||e.shadowColor!==r.shadowColor)&&(o||(O(t,a),o=!0),t.shadowColor=e.shadowColor||n.oN.shadowColor),o}function S(t,e,r,n,i){var a=e.style,o=n?null:r&&r.style||{};if(a===o)return!1;var s=M(t,a,o,n,i);if((n||a.fill!==o.fill)&&(s||(O(t,i),s=!0),g(a.fill)&&(t.fillStyle=a.fill)),(n||a.stroke!==o.stroke)&&(s||(O(t,i),s=!0),g(a.stroke)&&(t.strokeStyle=a.stroke)),(n||a.opacity!==o.opacity)&&(s||(O(t,i),s=!0),t.globalAlpha=null==a.opacity?1:a.opacity),e.hasStroke()){var l=a.lineWidth/(a.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==l&&(s||(O(t,i),s=!0),t.lineWidth=l)}for(var c=0;c<x.length;c++){var u=x[c],h=u[0];(n||a[h]!==o[h])&&(s||(O(t,i),s=!0),t[h]=a[h]||u[1])}return s}function w(t,e){var r=e.transform,n=t.dpr||1;r?t.setTransform(n*r[0],n*r[1],n*r[2],n*r[3],n*r[4],n*r[5]):t.setTransform(n,0,0,n,0,0)}function O(t,e){e.batchFill&&(e.batchFill=!1,t.fill()),e.batchStroke&&(e.batchStroke=!1,t.stroke())}function N(t,e){var r={inHover:!1,viewWidth:0,viewHeight:0,beforeBrushParam:{}};L(t,e,r),_(t,r)}function L(t,e,r){var n,i=e.transform;if(!e.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){e.__dirty&=~p.M,e.__isRendered=!1;return}var u=e.__clipPaths,g=r.prevElClipPaths,b=e.style,x=!1,N=!1;if((!g||(0,o.KU)(u,g))&&(g&&(O(t,r),t.restore(),N=x=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),u&&u.length)){O(t,r),t.save();for(var T=!1,P=0;P<u.length;P++){var I=u[P];T=T||I.isZeroArea(),w(t,I),t.beginPath(),I.buildPath(t,I.shape),t.clip()}r.allClipped=T,x=!0,r.prevElClipPaths=u}if(r.allClipped){e.__dirty&=~p.M,e.__isRendered=!1;return}e.beforeBrush&&e.beforeBrush(r.beforeBrushParam),e.innerBeforeBrush();var C=r.prevEl;C||(N=x=!0);var k=e instanceof s.Ay&&e.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=C.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(t,r):(O(t,r),w(t,e)),e instanceof s.Ay)1!==r.lastDrawType&&(N=!0,r.lastDrawType=1),S(t,e,C,N,r),k&&(r.batchFill||r.batchStroke)||t.beginPath(),function(t,e,r,n,i){var a,s,l,c=m(r),u=A(r),d=r.strokePercent,g=d<1,b=!e.path;(!e.silent||g)&&b&&e.createPathProxy();var x=e.path||f,M=e.__dirty;if(!n){var S=r.fill,w=r.stroke,O=u&&!!S.colorStops,N=c&&!!w.colorStops,L=u&&!!S.image,_=c&&!!w.image,T=void 0,P=void 0,I=void 0,C=void 0,k=void 0;(O||N)&&(k=e.getBoundingRect()),O&&(T=M?(0,o.Ff)(t,S,k):e.__canvasFillGradient,e.__canvasFillGradient=T),N&&(P=M?(0,o.Ff)(t,w,k):e.__canvasStrokeGradient,e.__canvasStrokeGradient=P),L&&(I=M||!e.__canvasFillPattern?R(t,S,e):e.__canvasFillPattern,e.__canvasFillPattern=I),_&&(C=M||!e.__canvasStrokePattern?R(t,w,e):e.__canvasStrokePattern,e.__canvasStrokePattern=C),O?t.fillStyle=T:L&&(I?t.fillStyle=I:u=!1),N?t.strokeStyle=P:_&&(C?t.strokeStyle=C:c=!1)}var F=e.getGlobalScale();x.setScale(F[0],F[1],e.segmentIgnoreThreshold),t.setLineDash&&r.lineDash&&(s=(a=(0,h.V)(e))[0],l=a[1]);var X=!0;(b||M&p.Dl)&&(x.setDPR(t.dpr),g?x.setContext(null):(x.setContext(t),X=!1),x.reset(),e.buildPath(x,e.shape,n),x.toStatic(),e.pathUpdated()),X&&x.rebuildPath(t,g?d:1),s&&(t.setLineDash(s),t.lineDashOffset=l),n?(i.batchFill=u,i.batchStroke=c):r.strokeFirst?(c&&v(t,r),u&&y(t,r)):(u&&y(t,r),c&&v(t,r)),s&&t.setLineDash([])}(t,e,b,k,r);else if(e instanceof c.A){3!==r.lastDrawType&&(N=!0,r.lastDrawType=3),S(t,e,C,N,r);var F,X,U,W,V=b.text;if(null!=V&&(V+=""),V){t.font=b.font||d.OH,t.textAlign=b.textAlign,t.textBaseline=b.textBaseline;var E=void 0,Y=void 0;t.setLineDash&&b.lineDash&&(E=(W=(0,h.V)(e))[0],Y=W[1]),E&&(t.setLineDash(E),t.lineDashOffset=Y),b.strokeFirst?(m(b)&&t.strokeText(V,b.x,b.y),A(b)&&t.fillText(V,b.x,b.y)):(A(b)&&t.fillText(V,b.x,b.y),m(b)&&t.strokeText(V,b.x,b.y)),E&&t.setLineDash([])}}else e instanceof l.Ay?(2!==r.lastDrawType&&(N=!0,r.lastDrawType=2),n=N,M(t,e.style,C&&C.style,n,r),function(t,e,r){var n=e.__image=(0,a.OD)(r.image,e.__image,e,e.onload);if(n&&(0,a.xA)(n)){var i=r.x||0,o=r.y||0,s=e.getWidth(),l=e.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;t.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;t.drawImage(n,u,h,p,d,i,o,s,l)}else t.drawImage(n,i,o,s,l)}}(t,e,b)):e.getTemporalDisplayables&&(4!==r.lastDrawType&&(N=!0,r.lastDrawType=4),function(t,e,r){var n,i,a=e.getDisplayables(),o=e.getTemporalDisplayables();t.save();var s={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover,beforeBrushParam:{}};for(n=e.getCursor(),i=a.length;n<i;n++){var l=a[n];l.beforeBrush&&l.beforeBrush(r.beforeBrushParam),l.innerBeforeBrush(),L(t,l,s),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}_(t,s);for(var c=0,u=o.length;c<u;c++){var l=o[c];l.beforeBrush&&l.beforeBrush(r.beforeBrushParam),l.innerBeforeBrush(),L(t,l,s),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}_(t,s),e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}(t,e,r));e.innerAfterBrush(),e.afterBrush&&(k&&O(t,r),e.afterBrush()),r.prevEl=e,e.__dirty=0,e.__isRendered=!0}function _(t,e){O(t,e),e.prevElClipPaths&&t.restore()}r.d(e,{V$:()=>L,Xi:()=>N,ZQ:()=>R,v6:()=>_})},53479(t,e,r){function n(t){return isFinite(t)}function i(t,e,r){for(var i,a,o,s,l,c,u,h,p,d,f="radial"===e.type?(o=Math.min(i=r.width,a=r.height),s=null==e.x?.5:e.x,l=null==e.y?.5:e.y,c=null==e.r?.5:e.r,e.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,t.createRadialGradient(s,l,0,s,l,c)):(u=null==e.x?0:e.x,h=null==e.x2?1:e.x2,p=null==e.y?0:e.y,d=null==e.y2?0:e.y2,e.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,t.createLinearGradient(u,p,h,d)),m=e.colorStops,g=0;g<m.length;g++)f.addColorStop(m[g].offset,m[g].color);return f}function a(t,e){if(t===e||!t&&!e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var r=0;r<t.length;r++)if(t[r]!==e[r])return!0;return!1}function o(t){return parseInt(t,10)}function s(t,e,r){var n=["width","height"][e],i=["clientWidth","clientHeight"][e],a=["paddingLeft","paddingTop"][e],s=["paddingRight","paddingBottom"][e];if(null!=r[n]&&"auto"!==r[n])return parseFloat(r[n]);var l=document.defaultView.getComputedStyle(t);return(t[i]||o(l[n])||o(t.style[n]))-(o(l[a])||0)-(o(l[s])||0)||0}r.d(e,{Ff:()=>i,KU:()=>a,YC:()=>s})},73098(t,e,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(e,{Y5:()=>a,_S:()=>"#333",el:()=>"#ccc",ps:()=>.4,tY:()=>"#eee"})},45558(t,e,r){var n,i=r(29308),a=r(60501),o=r(59741);function s(t){n||(n=new a.Ay(100)),t=t||o.OH;var e=n.get(t);return e||(e={font:t,strWidthCache:new a.Ay(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:o.yh.measureText("国",t).width,asciiCharWidth:o.yh.measureText("a",t).width},n.put(t,e)),e}var l=0;function c(t,e){return t.asciiWidthMapTried||(t.asciiWidthMap=function(t){if(!(l>=5)){t=t||o.OH;for(var e=[],r=+new Date,n=0;n<=127;n++)e[n]=o.yh.measureText(String.fromCharCode(n),t).width;var i=new Date-r;return i>16?l=5:i>2&&l++,e}}(t.font),t.asciiWidthMapTried=!0),0<=e&&e<=127?null!=t.asciiWidthMap?t.asciiWidthMap[e]:t.asciiCharWidth:t.stWideCharWidth}function u(t,e){var r=t.strWidthCache,n=r.get(e);return null==n&&(n=o.yh.measureText(e,t.font).width,r.put(e,n)),n}function h(t,e,r,n){var a=u(s(e),t),o=m(e),l=d(0,a,r),c=f(0,o,n);return new i.Ay(l,c,a,o)}function p(t,e,r,n){var a=((t||"")+"").split("\n");if(1===a.length)return h(a[0],e,r,n);for(var o=new i.Ay(0,0,0,0),s=0;s<a.length;s++){var l=h(a[s],e,r,n);0===s?o.copy(l):o.union(l)}return o}function d(t,e,r,n){return"right"===r?n?t+=e:t-=e:"center"===r&&(n?t+=e/2:t-=e/2),t}function f(t,e,r,n){return"middle"===r?n?t+=e/2:t-=e/2:"bottom"===r&&(n?t+=e:t-=e),t}function m(t){return s(t).stWideCharWidth}function g(t,e){return"string"==typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function A(t,e,r){var n=e.position||"inside",i=null!=e.distance?e.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(t=t||{}).x=l,t.y=c,t.align=u,t.verticalAlign=h,t}r.d(e,{JK:()=>c,NO:()=>p,Qw:()=>s,X4:()=>A,ks:()=>m,l8:()=>u,ll:()=>d,lo:()=>g,sZ:()=>f})},29308(t,e,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=N(),g=m.minTv,A=m.maxTv,y=[0,0],v=function(){function t(t,e,r,n){R(this,t,e,r,n)}return t.set=function(t,e,r,n,i){return n<0&&(e+=n,n=-n),i<0&&(r+=i,i=-i),t.x=e,t.y=r,t.width=n,t.height=i,t},t.prototype.union=function(t){var e=o(t.x,this.x),r=o(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=s(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=s(t.y+t.height,this.y+this.height)-r:this.height=t.height,this.x=e,this.y=r},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(t){return x(n.vt(),this,t)},t.prototype.intersect=function(e,r,n){return t.intersect(this,e,r,n)},t.intersect=function(e,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),!e||!r)return!1;e instanceof t||(e=R(M,e.x,e.y,e.width,e.height)),r instanceof t||(r=R(S,r.x,r.y,r.width,r.height));var l=!!n;m.reset(i,l);var c=m.touchThreshold,u=e.x+c,h=e.x+e.width-c,p=e.y+c,d=e.y+e.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},t.contain=function(t,e,r){return e>=t.x&&e<=t.x+t.width&&r>=t.y&&r<=t.y+t.height},t.prototype.contain=function(e,r){return t.contain(this,e,r)},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(t){b(this,t)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return 0===this.width||0===this.height},t.create=function(e){return new t(e?e.x:0,e?e.y:0,e?e.width:0,e?e.height:0)},t.copy=function(t,e){return t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height,t},t.applyTransform=function(t,e,r){if(!r){t!==e&&b(t,e);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];t.x=e.x*n+a,t.y=e.y*i+l,t.width=e.width*n,t.height=e.height*i,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}h.x=d.x=e.x,h.y=f.y=e.y,p.x=f.x=e.x+e.width,p.y=d.y=e.y+e.height,h.transform(r),f.transform(r),p.transform(r),d.transform(r),t.x=o(h.x,p.x,d.x,f.x),t.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);t.width=c-t.x,t.height=u-t.y},t.calculateTransform=function(t,e,r){var a=r.width/e.width,o=r.height/e.height;return t=n.D_(t||[]),n.Tl(t,t,i.hZ(w,-e.x,-e.y)),n.hs(t,t,i.hZ(w,a,o)),n.Tl(t,t,i.hZ(w,r.x,r.y)),t},t}();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(t,e,r,n,i,a,h,p){var d=l(e-r),f=l(n-t),v=o(d,f),R=c[i],b=c[1-i],x=u[i];e<r||n<t?d<f?(a&&(A[R]=-d),p&&(h[R]=e,h[x]=0)):(a&&(A[R]=f),p&&(h[R]=t,h[x]=0)):(h&&(h[R]=s(t,r),h[x]=o(e,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 N(){var t=0,e=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),t=i.direction,n.bidirectional=null==i.bidirectional||!!i.bidirectional,n.bidirectional||e.set(Math.cos(t),Math.sin(t))))},calcDirMTV:function(){var a=n.minTv,o=n.dirMinTv,s=a.y*a.y+a.x*a.x,l=Math.sin(t),c=Math.cos(t),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||e.dot(r)>0)&&r.len()<o.len()&&o.copy(r)}};function i(t){return 1e-10>l(t)}return n}e.Ay=v,r.d(e,{bV:()=>N})},57861(t,e){e.A=function(){function t(t){t&&(this._$eventProcessor=t)}return t.prototype.on=function(t,e,r,n){this._$handlers||(this._$handlers={});var i=this._$handlers;if("function"==typeof e&&(n=r,r=e,e=null),!r||!t)return this;var a=this._$eventProcessor;null!=e&&a&&a.normalizeQuery&&(e=a.normalizeQuery(e)),i[t]||(i[t]=[]);for(var o=0;o<i[t].length;o++)if(i[t][o].h===r)return this;var s={h:r,query:e,ctx:n||this,callAtLast:r.zrEventfulCallAtLast},l=i[t].length-1,c=i[t][l];return c&&c.callAtLast?i[t].splice(l,0,s):i[t].push(s),this},t.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},t.prototype.off=function(t,e){var r=this._$handlers;if(!r)return this;if(!t)return this._$handlers={},this;if(e){if(r[t]){for(var n=[],i=0,a=r[t].length;i<a;i++)r[t][i].h!==e&&n.push(r[t][i]);r[t]=n}r[t]&&0===r[t].length&&delete r[t]}else delete r[t];return this},t.prototype.trigger=function(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];if(!this._$handlers)return this;var n=this._$handlers[t],i=this._$eventProcessor;if(n)for(var a=e.length,o=n.length,s=0;s<o;s++){var l=n[s];if(!i||!i.filter||null==l.query||i.filter(t,l.query))switch(a){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,e[0]);break;case 2:l.h.call(l.ctx,e[0],e[1]);break;default:l.h.apply(l.ctx,e)}}return i&&i.afterTrigger&&i.afterTrigger(t),this},t.prototype.triggerWithContext=function(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];if(!this._$handlers)return this;var n=this._$handlers[t],i=this._$eventProcessor;if(n)for(var a=e.length,o=e[a-1],s=n.length,l=0;l<s;l++){var c=n[l];if(!i||!i.filter||null==c.query||i.filter(t,c.query))switch(a){case 0:c.h.call(o);break;case 1:c.h.call(o,e[0]);break;case 2:c.h.call(o,e[0],e[1]);break;default:c.h.apply(o,e.slice(1,a-1))}}return i&&i.afterTrigger&&i.afterTrigger(t),this},t}()},60501(t,e){var r=function(t){this.value=t},n=function(){function t(){this._len=0}return t.prototype.insert=function(t){var e=new r(t);return this.insertEntry(e),e},t.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},t.prototype.remove=function(t){var e=t.prev,r=t.next;e?e.next=r:this.head=r,r?r.prev=e:this.tail=e,t.next=t.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}();e.Ay=function(){function t(t){this._list=new n,this._maxSize=10,this._map={},this._maxSize=t}return t.prototype.put=function(t,e){var n=this._list,i=this._map,a=null;if(null==i[t]){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=e:s=new r(e),s.key=t,n.insertEntry(s),i[t]=s}return a},t.prototype.get=function(t){var e=this._map[t],r=this._list;if(null!=e)return e!==r.tail&&(r.remove(e),r.insertEntry(e)),e.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}()},84716(t,e,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;e.A=function(){function t(t,e){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;t&&this.fromBoundingRect(t,e)}return t.prototype.fromBoundingRect=function(t,e){var r=this._corners,i=this._axes,a=t.x,o=t.y,s=a+t.width,l=o+t.height;if(r[0].set(a,o),r[1].set(s,o),r[2].set(s,l),r[3].set(a,l),e)for(var c=0;c<4;c++)r[c].transform(e);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])},t.prototype.intersect=function(t,e,r){var i=!0,a=!e;return(e&&n.A.set(e,0,0),u.reset(r,!a),!this._intersectCheckOneSide(this,t,a,1)&&(i=!1,a)||!this._intersectCheckOneSide(t,this,a,-1)&&(i=!1,a))?i:(a||u.negativeSize||n.A.copy(e,i?u.useDir?u.dirMinTv:h:p),i)},t.prototype._intersectCheckOneSide=function(t,e,r,i){for(var o=!0,d=0;d<2;d++){var f=t._axes[d];if(t._getProjMinMaxOnAxis(d,t._corners,l),t._getProjMinMaxOnAxis(d,e._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},t.prototype._getProjMinMaxOnAxis=function(t,e,r){for(var n=this._axes[t],i=this._origin,s=e[0].dot(n)+i[t],l=s,c=s,h=1;h<e.length;h++){var p=e[h].dot(n)+i[t];l=a(p,l),c=o(p,c)}r[0]=l+u.touchThreshold,r[1]=c-u.touchThreshold,u.negativeSize=r[1]<r[0]},t}()},15938(t,e,r){r.d(e,{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(t,e,r,n,i,a){i[0]=s(t,r),i[1]=s(e,n),a[0]=l(t,r),a[1]=l(e,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,N=Math.cos,L=Math.sin,_=Math.abs,T=Math.PI,P=2*T,I="u">typeof Float32Array,C=[];function k(t){return Math.round(t/T*1e8)/1e8%2*T}function F(t,e){var r=k(t[0]);r<0&&(r+=P);var n=r-t[0],i=t[1];i+=n,!e&&i-r>=P?i=r+P:e&&r-i>=P?i=r-P:!e&&r>i?i=r+(P-k(r-i)):e&&r<i&&(i=r-(P-k(i-r))),t[0]=r,t[1]=i}var X=function(){var t;function e(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(t,e,r){(r=r||0)>0&&(this._ux=_(r/a.Y5/t)||0,this._uy=_(r/a.Y5/e)||0)},e.prototype.setDPR=function(t){this.dpr=t},e.prototype.setContext=function(t){this._ctx=t},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(y.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},e.prototype.lineTo=function(t,e){var r=_(t-this._xi),n=_(e-this._yi),i=r>this._ux||n>this._uy;if(this.addData(y.L,t,e),this._ctx&&i&&this._ctx.lineTo(t,e),i)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var a=r*r+n*n;a>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=a)}return this},e.prototype.bezierCurveTo=function(t,e,r,n,i,a){return this._drawPendingPt(),this.addData(y.C,t,e,r,n,i,a),this._ctx&&this._ctx.bezierCurveTo(t,e,r,n,i,a),this._xi=i,this._yi=a,this},e.prototype.quadraticCurveTo=function(t,e,r,n){return this._drawPendingPt(),this.addData(y.Q,t,e,r,n),this._ctx&&this._ctx.quadraticCurveTo(t,e,r,n),this._xi=r,this._yi=n,this},e.prototype.arc=function(t,e,r,n,i,a){this._drawPendingPt(),C[0]=n,C[1]=i,F(C,a),n=C[0];var o=(i=C[1])-n;return this.addData(y.A,t,e,r,r,n,o,0,+!a),this._ctx&&this._ctx.arc(t,e,r,n,i,a),this._xi=N(i)*r+t,this._yi=L(i)*r+e,this},e.prototype.arcTo=function(t,e,r,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,r,n,i),this},e.prototype.rect=function(t,e,r,n){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,r,n),this.addData(y.R,t,e,r,n),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(y.Z);var t=this._ctx,e=this._x0,r=this._y0;return t&&t.closePath(),this._xi=e,this._yi=r,this},e.prototype.fill=function(t){t&&t.fill(),this.toStatic()},e.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(t){if(this._saveData){var e=t.length;!(this.data&&this.data.length===e)&&I&&(this.data=new Float32Array(e));for(var r=0;r<e;r++)this.data[r]=t[r];this._len=e}},e.prototype.appendPath=function(t){if(this._saveData){t instanceof Array||(t=[t]);for(var e=t.length,r=0,n=this._len,i=0;i<e;i++)r+=t[i].len();var a=this.data;if(I&&(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<e;i++)for(var s=t[i].data,o=0;o<s.length;o++)this.data[n++]=s[o];this._len=n}},e.prototype.addData=function(t,e,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]}},e.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,I&&this._len>11&&(this.data=new Float32Array(t)))}},e.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 t,e=this.data,r=0,a=0,v=0,R=0;for(t=0;t<this._len;){var w=e[t++],O=1===t;switch(O&&(r=e[t],a=e[t+1],v=r,R=a),w){case y.M:r=v=e[t++],a=R=e[t++],M[0]=v,M[1]=R,S[0]=v,S[1]=R;break;case y.L:m(r,a,e[t],e[t+1],M,S),r=e[t++],a=e[t++];break;case y.C:!function(t,e,r,n,i,a,c,u,h,p){var d=o.lX,f=o.Yb,m=d(t,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(t,r,i,c,g[y]);h[0]=s(v,h[0]),p[0]=l(v,p[0])}m=d(e,n,a,u,A);for(var y=0;y<m;y++){var R=f(e,n,a,u,A[y]);h[1]=s(R,h[1]),p[1]=l(R,p[1])}h[0]=s(t,h[0]),p[0]=l(t,p[0]),h[0]=s(c,h[0]),p[0]=l(c,p[0]),h[1]=s(e,h[1]),p[1]=l(e,p[1]),h[1]=s(u,h[1]),p[1]=l(u,p[1])}(r,a,e[t++],e[t++],e[t++],e[t++],e[t],e[t+1],M,S),r=e[t++],a=e[t++];break;case y.Q:!function(t,e,r,n,i,a,c,u){var h=o.gC,p=o.k3,d=l(s(h(t,r,i),1),0),f=l(s(h(e,n,a),1),0),m=p(t,r,i,d),g=p(e,n,a,f);c[0]=s(t,i,m),c[1]=s(e,a,g),u[0]=l(t,i,m),u[1]=l(e,a,g)}(r,a,e[t++],e[t++],e[t],e[t+1],M,S),r=e[t++],a=e[t++];break;case y.A:var _=e[t++],T=e[t++],P=e[t++],I=e[t++],C=e[t++],k=e[t++]+C;t+=1;var F=!e[t++];O&&(v=N(C)*P+_,R=L(C)*I+T),function(t,e,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]=t-r,l[1]=e-i,m[0]=t+r,m[1]=e+i;return}if(p[0]=u(a)*r+t,p[1]=c(a)*i+e,d[0]=u(o)*r+t,d[1]=c(o)*i+e,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+t,f[1]=c(R)*i+e,g(l,f,l),A(m,f,m))}(_,T,P,I,C,k,F,M,S),r=N(k)*P+_,a=L(k)*I+T;break;case y.R:m(v=r=e[t++],R=a=e[t++],v+e[t++],R+e[t++],M,S);break;case y.Z:r=v,a=R}n.jk(b,b,M),n.T9(x,x,S)}return 0===t&&(b[0]=b[1]=x[0]=x[1]=0),new i.Ay(b[0],b[1],x[0]-b[0],x[1]-b[1])},e.prototype._calculateLength=function(){var t=this.data,e=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<e;){var d=t[p++],f=1===p;f&&(i=t[p],a=t[p+1],s=i,l=a);var m=-1;switch(d){case y.M:i=s=t[p++],a=l=t[p++];break;case y.L:var g=t[p++],A=t[p++],v=g-i,R=A-a;(_(v)>r||_(R)>n||p===e-1)&&(m=Math.sqrt(v*v+R*R),i=g,a=A);break;case y.C:var b=t[p++],x=t[p++],g=t[p++],A=t[p++],M=t[p++],S=t[p++];m=(0,o.h0)(i,a,b,x,g,A,M,S,10),i=M,a=S;break;case y.Q:var b=t[p++],x=t[p++],g=t[p++],A=t[p++];m=(0,o.d8)(i,a,b,x,g,A,10),i=g,a=A;break;case y.A:var T=t[p++],I=t[p++],C=t[p++],k=t[p++],F=t[p++],X=t[p++],U=X+F;p+=1,f&&(s=N(F)*C+T,l=L(F)*k+I),m=O(C,k)*w(P,Math.abs(X)),i=N(U)*C+T,a=L(U)*k+I;break;case y.R:s=i=t[p++],l=a=t[p++],m=2*t[p++]+2*t[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},e.prototype.rebuildPath=function(t,e){var r,n,i,a,s,l,c,u,h,p,d=this.data,f=this._ux,m=this._uy,g=this._len,A=e<1,b=0,x=0,M=0;if(!A||(this._pathSegLen||this._calculateLength(),c=this._pathSegLen,u=e*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&&(t.lineTo(h,p),M=0),T){case y.M:r=i=d[S++],n=a=d[S++],t.moveTo(i,a);break;case y.L:s=d[S++],l=d[S++];var I=_(s-i),C=_(l-a);if(I>f||C>m){if(A){var k=c[x++];if(b+k>u){var F=(u-b)/k;t.lineTo(i*(1-F)+s*F,a*(1-F)+l*F);break c}b+=k}t.lineTo(s,l),i=s,a=l,M=0}else{var X=I*I+C*C;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),t.bezierCurveTo(v[1],R[1],v[2],R[2],v[3],R[3]);break c}b+=k}t.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),t.quadraticCurveTo(v[1],R[1],v[2],R[2]);break c}b+=k}t.quadraticCurveTo(U,W,V,E),i=V,a=E;break;case y.A:var Q=d[S++],Z=d[S++],B=d[S++],K=d[S++],$=d[S++],G=d[S++],H=d[S++],z=!d[S++],J=B>K?B:K,j=_(B-K)>.001,q=$+G,tt=!1;if(A){var k=c[x++];b+k>u&&(q=$+G*(u-b)/k,tt=!0),b+=k}if(j&&t.ellipse?t.ellipse(Q,Z,B,K,H,$,q,z):t.arc(Q,Z,J,$,q,z),tt)break c;P&&(r=N($)*B+Q,n=L($)*K+Z),i=N(q)*B+Q,a=L(q)*K+Z;break;case y.R:r=i=d[S],n=a=d[S+1],s=d[S++],l=d[S++];var te=d[S++],tr=d[S++];if(A){var k=c[x++];if(b+k>u){var tn=u-b;t.moveTo(s,l),t.lineTo(s+w(tn,te),l),(tn-=te)>0&&t.lineTo(s+te,l+w(tn,tr)),(tn-=tr)>0&&t.lineTo(s+O(te-tn,0),l+tr),(tn-=te)>0&&t.lineTo(s,l+O(tr-tn,0));break c}b+=k}t.rect(s,l,te,tr);break;case y.Z:if(A){var k=c[x++];if(b+k>u){var F=(u-b)/k;t.lineTo(i*(1-F)+r*F,a*(1-F)+n*F);break c}b+=k}t.closePath(),i=r,a=n}}},e.prototype.clone=function(){var t=new e,r=this.data;return t.data=r.slice?r.slice():Array.prototype.slice.call(r),t._len=this._len,t},e.prototype.canSave=function(){return!!this._saveData},e.CMD=y,e.initDefaultProps=void((t=e.prototype)._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0),e}()},26346(t,e){e.A=function(){function t(t,e){this.x=t||0,this.y=e||0}return t.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(t,e){return this.x=t,this.y=e,this},t.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},t.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},t.prototype.scale=function(t){this.x*=t,this.y*=t},t.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},t.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},t.prototype.dot=function(t){return this.x*t.x+this.y*t.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},t.prototype.distance=function(t){var e=this.x-t.x,r=this.y-t.y;return Math.sqrt(e*e+r*r)},t.prototype.distanceSquare=function(t){var e=this.x-t.x,r=this.y-t.y;return e*e+r*r},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(t){if(t){var e=this.x,r=this.y;return this.x=t[0]*e+t[2]*r+t[4],this.y=t[1]*e+t[3]*r+t[5],this}},t.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},t.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},t.set=function(t,e,r){t.x=e,t.y=r},t.copy=function(t,e){t.x=e.x,t.y=e.y},t.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},t.lenSquare=function(t){return t.x*t.x+t.y*t.y},t.dot=function(t,e){return t.x*e.x+t.y*e.y},t.add=function(t,e,r){t.x=e.x+r.x,t.y=e.y+r.y},t.sub=function(t,e,r){t.x=e.x-r.x,t.y=e.y-r.y},t.scale=function(t,e,r){t.x=e.x*r,t.y=e.y*r},t.scaleAndAdd=function(t,e,r,n){t.x=e.x+r.x*n,t.y=e.y+r.y*n},t.lerp=function(t,e,r,n){var i=1-n;t.x=i*e.x+n*r.x,t.y=i*e.y+n*r.y},t}()},92836(t,e,r){var n=r(45587),i=r(98026),a=r(83509),o=n.D_;function s(t){return t>5e-5||t<-5e-5}var l=[],c=[],u=n.vt(),h=Math.abs,p=function(){var t;function e(){}return e.prototype.getLocalTransform=function(t){return d(this,t)},e.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},e.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},e.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},e.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},e.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)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),r=this.transform;if(!(e||t)){r&&(o(r),this.invTransform=null);return}r=r||n.vt(),e?this.getLocalTransform(r):o(r),t&&(e?n.lK(r,t,r):n.C(r,t)),this.transform=r,this._resolveGlobalScaleRatio(r),this.invTransform=this.invTransform||n.vt(),n.B8(this.invTransform,r)},e.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(l);var r=l[0]<0?-1:1,n=l[1]<0?-1:1,i=((l[0]-r)*e+r)/l[0]||0,a=((l[1]-n)*e+n)/l[1]||0;t[0]*=i,t[1]*=i,t[2]*=a,t[3]*=a}},e.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],r=t[2]*t[2]+t[3]*t[3],n=Math.atan2(t[1],t[0]),i=Math.PI/2+n-Math.atan2(t[3],t[2]);r=Math.sqrt(r)*Math.cos(i),e=Math.sqrt(e),this.skewX=i,this.skewY=0,this.rotation=-n,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=r,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||n.vt(),n.lK(c,t.invTransform,e),e=c);var r=this.originX,i=this.originY;(r||i)&&(u[4]=r,u[5]=i,n.lK(c,e,u),c[4]-=r,c[5]-=i,e=c),this.setLocalTransform(e)}},e.prototype.getGlobalScale=function(t){var e=this.transform;return(t=t||[],e)?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1])):(t[0]=1,t[1]=1),t},e.prototype.transformCoordToLocal=function(t,e){var r=[t,e],n=this.invTransform;return n&&a.NW(r,r,n),r},e.prototype.transformCoordToGlobal=function(t,e){var r=[t,e],n=this.transform;return n&&a.NW(r,r,n),r},e.prototype.getLineScale=function(){var t=this.transform;return t&&h(t[0]-1)>1e-10&&h(t[3]-1)>1e-10?Math.sqrt(h(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){m(this,t)},e.getLocalTransform=function(t,e){e=e||[];var r=t.originX||0,i=t.originY||0,a=t.scaleX,o=t.scaleY,s=t.anchorX,l=t.anchorY,c=t.rotation||0,u=t.x,h=t.y,p=t.skewX?Math.tan(t.skewX):0,d=t.skewY?Math.tan(-t.skewY):0;if(r||i||s||l){var f=r+s,m=i+l;e[4]=-f*a-p*m*o,e[5]=-m*o-d*f*a}else e[4]=e[5]=0;return e[0]=a,e[3]=o,e[1]=d*a,e[2]=p*o,c&&n.e$(e,e,c),e[4]+=r+u,e[5]+=i+h,e},e.initDefaultProps=void((t=e.prototype).scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0),e}(),d=p.getLocalTransform,f=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function m(t,e){return(0,i.Ac)(t,e,f)}e.Ay=p,r.d(e,{IT:()=>m,Wx:()=>f})},89259(t,e,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(t){return t>-1e-8&&t<1e-8}function p(t){return t>1e-8||t<-1e-8}function d(t,e,r,n,i){var a=1-i;return a*a*(a*t+3*i*e)+i*i*(i*n+3*a*r)}function f(t,e,r,n,i){var a=1-i;return 3*(((e-t)*a+2*(r-e)*i)*a+(n-r)*i*i)}function m(t,e,r,n,l,c){var u=n+3*(e-r)-t,p=3*(r-2*e+t),d=3*(e-t),f=t-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,N=a(m),L=Math.cos(O),v=(-p-2*N*L)/(3*u),x=(-p+N*(L+o*Math.sin(O)))/(3*u),_=(-p+N*(L-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(t,e,r,n,i){var o=6*r-12*e+6*t,s=9*e+3*n-3*t-9*r,l=3*e-3*t,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(t,e,r,n,i,a){var o=(e-t)*i+t,s=(r-e)*i+e,l=(n-r)*i+r,c=(s-o)*i+o,u=(l-s)*i+s,h=(u-c)*i+c;a[0]=t,a[1]=o,a[2]=c,a[3]=h,a[4]=h,a[5]=u,a[6]=l,a[7]=n}function y(t,e,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(t,r,o,h,S),c[1]=d(e,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(t,r,o,h,y),c[1]=d(e,i,s,p,y),R=(0,n.oi)(c,l),y>=0&&R<M?(A=y,M=R):(u[0]=d(t,r,o,h,v),u[1]=d(e,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(t,r,o,h,A),g[1]=d(e,i,s,p,A)),a(M)}function v(t,e,r,n,i,a,o,s,l){for(var c=t,u=e,h=0,p=1/l,f=1;f<=l;f++){var m=f*p,g=d(t,r,i,o,m),A=d(e,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(t,e,r,n){var i=1-n;return i*(i*t+2*n*e)+n*n*r}function b(t,e,r,n){return 2*((1-n)*(e-t)+n*(r-e))}function x(t,e,r,n,i){var o=t-2*e+r,s=2*(e-t),l=t-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(t,e,r){var n=t+r-2*e;return 0===n?.5:(t-e)/n}function S(t,e,r,n,i){var a=(e-t)*n+t,o=(r-e)*n+e,s=(o-a)*n+a;i[0]=t,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=r}function w(t,e,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(t,r,o,A),c[1]=R(e,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(t,r,o,b),c[1]=R(e,i,s,b);var y=(0,n.oi)(c,l);if(b>=0&&y<g)f=b,g=y;else{u[0]=R(t,r,o,x),u[1]=R(e,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(t,r,o,f),d[1]=R(e,i,s,f)),a(g)}function O(t,e,r,n,i,a,o){for(var s=t,l=e,c=0,u=1/o,h=1;h<=o;h++){var p=h*u,d=R(t,r,i,p),f=R(e,n,a,p),m=d-s,g=f-l;c+=Math.sqrt(m*m+g*g),s=d,l=f}return c}r.d(e,{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(t,e,r){r.d(e,{Me:()=>d,ot:()=>u,oq:()=>c});var n=r(38123),i=Math.log(2);function a(t,e,r,n,o,s){var l=n+"-"+o,c=t.length;if(s.hasOwnProperty(l))return s[l];if(1===e){var u=Math.round(Math.log((1<<c)-1&~o)/i);return t[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)*t[r][f]*a(t,e-1,p,h,o|g,s),m++)}return s[l]=d,d}function o(t,e){var r=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[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*e[s];return function(t,e,r){var n=e*o[6]+r*o[7]+1;t[0]=(e*o[0]+r*o[1]+o[2])/n,t[1]=(e*o[3]+r*o[4]+o[5])/n}}}var s=r(98026),l="___zrEVENTSAVED";function c(t,e,r,i,a){if(e.getBoundingClientRect&&n.A.domSupported&&!u(e)){var c=e[l]||(e[l]={}),h=function(t,e,r){for(var n=r?"invTrans":"trans",i=e[n],a=e.srcCoords,s=[],l=[],c=!0,u=0;u<4;u++){var h=t[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(t[u].offsetLeft,t[u].offsetTop)}return c&&i?i:(e.srcCoords=s,e[n]=r?o(l,s):o(s,l))}(function(t,e){var r=e.markers;if(r)return r;r=e.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;"),t.appendChild(o),r.push(o)}return e.clearMarkers=function(){(0,s.__)(r,function(t){t.parentNode&&t.parentNode.removeChild(t)})},r}(e,c),c,a);if(h)return h(t,r,i),!0}return!1}function u(t){return"CANVAS"===t.nodeName.toUpperCase()}var h=/([&<>"'])/g,p={"&":"&","<":"<",">":">",'"':""","'":"'"};function d(t){return null==t?"":(t+"").replace(h,function(t,e){return p[e]})}},38123(t,e){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(t,e){var r=e.browser,n=t.match(/Firefox\/([\d.]+)/),i=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),a=t.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(t);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),e.svgSupported="u">typeof SVGRect,e.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,e.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11),e.domSupported="u">typeof document){var s=document.documentElement.style;e.transform3dSupported=(r.ie&&"transition"in s||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||r.ie&&+r.version>=9}}(navigator.userAgent,n),e.A=n},35452(t,e,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(t,e,r,n){return r=r||{},n?c(t,e,r):s&&null!=e.layerX&&e.layerX!==e.offsetX?(r.zrX=e.layerX,r.zrY=e.layerY):null!=e.offsetX?(r.zrX=e.offsetX,r.zrY=e.offsetY):c(t,e,r),r}function c(t,e,r){if(n.A.domSupported&&t.getBoundingClientRect){var a=e.clientX,s=e.clientY;if((0,i.ot)(t)){var l=t.getBoundingClientRect();r.zrX=a-l.left,r.zrY=s-l.top;return}if((0,i.oq)(o,t,a,s)){r.zrX=o[0],r.zrY=o[1];return}}r.zrX=r.zrY=0}function u(t){return t||window.event}function h(t,e,r){if(null!=(e=u(e)).zrX)return e;var n=e.type;if(n&&n.indexOf("touch")>=0){var i="touchend"!==n?e.targetTouches[0]:e.changedTouches[0];i&&l(t,i,e,r)}else{l(t,e,e,r);var o=function(t){var e=t.wheelDelta;if(e)return e;var r=t.deltaX,n=t.deltaY;return null==r||null==n?e:3*(0!==n?Math.abs(n):Math.abs(r))*(n>0?-1:n<0?1:r>0?-1:1)}(e);e.zrDelta=o?o/120:-(e.detail||0)/3}var s=e.button;return null==e.which&&void 0!==s&&a.test(e.type)&&(e.which=1&s?1:2&s?3:4&s?2:0),e}function p(t,e,r,n){t.addEventListener(e,r,n)}function d(t,e,r,n){t.removeEventListener(e,r,n)}var f=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};r.d(e,{Yo:()=>l,ds:()=>f,e0:()=>h,f:()=>d,mK:()=>u,q2:()=>p})},45587(t,e,r){function n(){return[1,0,0,1,0,0]}function i(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function a(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function o(t,e,r){var n=e[0]*r[0]+e[2]*r[1],i=e[1]*r[0]+e[3]*r[1],a=e[0]*r[2]+e[2]*r[3],o=e[1]*r[2]+e[3]*r[3],s=e[0]*r[4]+e[2]*r[5]+e[4],l=e[1]*r[4]+e[3]*r[5]+e[5];return t[0]=n,t[1]=i,t[2]=a,t[3]=o,t[4]=s,t[5]=l,t}function s(t,e,r){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+r[0],t[5]=e[5]+r[1],t}function l(t,e,r,n){void 0===n&&(n=[0,0]);var i=e[0],a=e[2],o=e[4],s=e[1],l=e[3],c=e[5],u=Math.sin(r),h=Math.cos(r);return t[0]=i*h+s*u,t[1]=-i*u+s*h,t[2]=a*h+l*u,t[3]=-a*u+h*l,t[4]=h*(o-n[0])+u*(c-n[1])+n[0],t[5]=h*(c-n[1])-u*(o-n[0])+n[1],t}function c(t,e,r){var n=r[0],i=r[1];return t[0]=e[0]*n,t[1]=e[1]*i,t[2]=e[2]*n,t[3]=e[3]*i,t[4]=e[4]*n,t[5]=e[5]*i,t}function u(t,e){var r=e[0],n=e[2],i=e[4],a=e[1],o=e[3],s=e[5],l=r*o-a*n;return l?(l=1/l,t[0]=o*l,t[1]=-a*l,t[2]=-n*l,t[3]=r*l,t[4]=(n*s-o*i)*l,t[5]=(a*i-r*s)*l,t):null}r.d(e,{B8:()=>u,C:()=>a,D_:()=>i,Tl:()=>s,e$:()=>l,hs:()=>c,lK:()=>o,vt:()=>n})},59741(t,e,r){var n,i,a="sans-serif",o="12px "+a,s=function(t){var e={};if("u"<typeof JSON)return e;for(var r=0;r<t.length;r++){var n=String.fromCharCode(r+32),i=(t.charCodeAt(r)-20)/100;e[n]=i}return e}("007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N"),l={createCanvas:function(){return"u">typeof document&&document.createElement("canvas")},measureText:function(t,e){if(!n){var r=l.createCanvas();n=r&&r.getContext("2d")}if(n)return i!==e&&(i=n.font=e||o),n.measureText(t);t=t||"",e=e||o;var a=/((?:\d+)?\.?\d*)px/.exec(e),c=a&&+a[1]||12,u=0;if(e.indexOf("mono")>=0)u=c*t.length;else for(var h=0;h<t.length;h++){var p=s[t[h]];u+=null==p?c:p*c}return{width:u}},loadImage:function(t,e,r){var n=new Image;return n.onload=e,n.onerror=r,n.src=t,n},getTime:function(){return Date.now?Date.now():+new Date}};r.d(e,{OH:()=>o,gI:()=>12,yh:()=>l,zs:()=>a})},83470(t,e,r){function n(t,e,r,n){var i=e+1;if(i===r)return 1;if(0>n(t[i++],t[e])){for(;i<r&&0>n(t[i],t[i-1]);)i++;var a=t,o=e,s=i;for(s--;o<s;){var l=a[o];a[o++]=a[s],a[s--]=l}}else for(;i<r&&n(t[i],t[i-1])>=0;)i++;return i-e}function i(t,e,r,n,i){for(n===e&&n++;n<r;n++){for(var a,o=t[n],s=e,l=n;s<l;)0>i(o,t[a=s+l>>>1])?l=a:s=a+1;var c=n-s;switch(c){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;c>0;)t[s+c]=t[s+c-1],c--}t[s]=o}}function a(t,e,r,n,i,a){var o=0,s=0,l=1;if(a(t,e[r+i])>0){for(s=n-i;l<s&&a(t,e[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(t,e[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(t,e[r+u])>0?o=u+1:l=u}return l}function o(t,e,r,n,i,a){var o=0,s=0,l=1;if(0>a(t,e[r+i])){for(s=i+1;l<s&&0>a(t,e[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(t,e[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(t,e[r+u])?l=u:o=u+1}return l}function s(t,e,r,s){r||(r=0),s||(s=t.length);var l=s-r;if(!(l<2)){var c=0;if(l<32){c=n(t,r,s,e),i(t,r,s,r+c,e);return}var u=function(t,e){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(t[p],t,u,h,0,e);u+=f,0==(h-=f)||0!==(d=a(t[u+h-1],t,p,d,d-1,e))&&(h<=d?function(r,n,s,c){var u,h,p,d=0;for(d=0;d<n;d++)l[d]=t[r+d];var f=0,m=s,g=r;if(t[g++]=t[m++],0==--c){for(d=0;d<n;d++)t[g+d]=l[f+d];return}if(1===n){for(d=0;d<c;d++)t[g+d]=t[m+d];t[g+c]=l[f];return}for(var A=i;;){u=0,h=0,p=!1;do if(0>e(t[m],l[f])){if(t[g++]=t[m++],h++,u=0,0==--c){p=!0;break}}else if(t[g++]=l[f++],u++,h=0,1==--n){p=!0;break}while((u|h)<A)if(p)break;do{if(0!==(u=o(t[m],l,f,n,0,e))){for(d=0;d<u;d++)t[g+d]=l[f+d];if(g+=u,f+=u,(n-=u)<=1){p=!0;break}}if(t[g++]=t[m++],0==--c){p=!0;break}if(0!==(h=a(l[f],t,m,c,0,e))){for(d=0;d<h;d++)t[g+d]=t[m+d];if(g+=h,m+=h,0==(c-=h)){p=!0;break}}if(t[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++)t[g+d]=t[m+d];t[g+c]=l[f]}else if(0===n)throw Error();else for(d=0;d<n;d++)t[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]=t[s+u];var h=r+n-1,p=c-1,d=s+c-1,f=0,m=0;if(t[d--]=t[h--],0==--n){for(f=d-(c-1),u=0;u<c;u++)t[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--)t[m+u]=t[f+u];t[d]=l[p];return}for(var g=i;;){var A=0,y=0,v=!1;do if(0>e(l[p],t[h])){if(t[d--]=t[h--],A++,y=0,0==--n){v=!0;break}}else if(t[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],t,r,n,n-1,e))){for(d-=A,h-=A,n-=A,m=d+1,f=h+1,u=A-1;u>=0;u--)t[m+u]=t[f+u];if(0===n){v=!0;break}}if(t[d--]=l[p--],1==--c){v=!0;break}if(0!=(y=c-a(t[h],l,0,c,c-1,e))){for(d-=y,p-=y,c-=y,m=d+1,f=p+1,u=0;u<y;u++)t[m+u]=l[f+u];if(c<=1){v=!0;break}}if(t[d--]=t[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--)t[m+u]=t[f+u];t[d]=l[p]}else if(0===c)throw Error();else for(f=d-(c-1),u=0;u<c;u++)t[f+u]=l[u]}(u,h,p,d))}return r=[],n=[],{mergeRuns:function(){for(;s>1;){var t=s-2;if(t>=1&&n[t-1]<=n[t]+n[t+1]||t>=2&&n[t-2]<=n[t]+n[t-1])n[t-1]<n[t+1]&&t--;else if(n[t]>n[t+1])break;c(t)}},forceMergeRuns:function(){for(;s>1;){var t=s-2;t>0&&n[t-1]<n[t+1]&&t--,c(t)}},pushRun:function(t,e){r[s]=t,n[s]=e,s+=1}}}(t,e),h=function(t){for(var e=0;t>=32;)e|=1&t,t>>=1;return t+e}(l);do{if((c=n(t,r,s,e))<h){var p=l;p>h&&(p=h),i(t,r,r+p,r+c,e),c=p}u.pushRun(r,c),u.mergeRuns(),l-=c,r+=c}while(0!==l)u.forceMergeRuns()}}r.d(e,{A:()=>s})},85445(t,e,r){r.d(e,{$z:()=>0,XM:()=>2,cw:()=>1,jP:()=>1,r4:()=>0})},98026(t,e,r){var n=r(59741),i=L(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),a=L(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),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 t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];"u">typeof console&&console.error.apply(console,t)}function y(t){if(null==t||"object"!=typeof t)return t;var e=t,r=o.call(t);if("[object Array]"===r){if(!t[q]){e=[];for(var n=0,s=t.length;n<s;n++)e[n]=y(t[n])}}else if(a[r]){if(!t[q]){var l=t.constructor;if(l.from)e=l.from(t);else{e=new l(t.length);for(var n=0,s=t.length;n<s;n++)e[n]=t[n]}}}else if(!i[r]&&!t[q]&&!D(t))for(var c in e={},t)t.hasOwnProperty(c)&&c!==f&&(e[c]=y(t[c]));return e}function v(t,e){if(Object.assign)Object.assign(t,e);else for(var r in e)e.hasOwnProperty(r)&&r!==f&&(t[r]=e[r]);return t}function R(t,e,r){t=t||{};for(var n=0;n<r.length;n++){var i=r[n];t[i]=e[i]}return t}function b(t,e,r){for(var n=P(e),i=0,a=n.length;i<a;i++){var o=n[i];(r?null!=e[o]:null==t[o])&&(t[o]=e[o])}return t}function x(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r}return -1}function M(t,e){var r=t.prototype;function n(){}for(var i in n.prototype=e.prototype,t.prototype=new n,r)r.hasOwnProperty(i)&&(t.prototype[i]=r[i]);t.prototype.constructor=t,t.superClass=e}function S(t,e,r){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(e),i=0;i<n.length;i++){var a=n[i];"constructor"!==a&&(r?null!=e[a]:null==t[a])&&(t[a]=e[a])}else b(t,e,r)}function w(t){return!!t&&"string"!=typeof t&&"number"==typeof t.length}function O(t,e,r){if(t&&e)if(t.forEach&&t.forEach===l)t.forEach(e,r);else if(t.length===+t.length)for(var n=0,i=t.length;n<i;n++)e.call(r,t[n],n,t);else for(var a in t)t.hasOwnProperty(a)&&e.call(r,t[a],a,t)}function N(t,e,r){if(!t)return[];if(!e)return H(t);if(t.map&&t.map===h)return t.map(e,r);for(var n=[],i=0,a=t.length;i<a;i++)n.push(e.call(r,t[i],i,t));return n}function L(t,e,r,n){if(t&&e){for(var i=0,a=t.length;i<a;i++)r=e.call(n,r,t[i],i,t);return r}}function _(t,e,r){if(!t)return[];if(!e)return H(t);if(t.filter&&t.filter===c)return t.filter(e,r);for(var n=[],i=0,a=t.length;i<a;i++)e.call(r,t[i],i,t)&&n.push(t[i]);return n}function T(t,e,r){if(t&&e){for(var n=0,i=t.length;n<i;n++)if(e.call(r,t[n],n,t))return t[n]}}function P(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var r in t)t.hasOwnProperty(r)&&e.push(r);return e}n.yh.createCanvas;var I=d&&F(d.bind)?d.call.bind(d.bind):function(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return function(){return t.apply(e,r.concat(u.call(arguments)))}};function C(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return function(){return t.apply(this,e.concat(u.call(arguments)))}}function k(t){return Array.isArray?Array.isArray(t):"[object Array]"===o.call(t)}function F(t){return"function"==typeof t}function X(t){return"string"==typeof t}function U(t){return"[object String]"===o.call(t)}function W(t){return"number"==typeof t}function V(t){var e=typeof t;return"function"===e||!!t&&"object"===e}function E(t){return!!i[o.call(t)]}function Y(t){return!!a[o.call(t)]}function D(t){return"object"==typeof t&&"number"==typeof t.nodeType&&"object"==typeof t.ownerDocument}function Q(t){return null!=t.colorStops}function Z(t){return null!=t.image}function B(t){return t!=t}function K(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=0,n=t.length;r<n;r++)if(null!=t[r])return t[r]}function $(t,e){return null!=t?t:e}function G(t,e,r){return null!=t?t:null!=e?e:r}function H(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return u.apply(t,e)}function z(t){if("number"==typeof t)return[t,t,t,t];var e=t.length;return 2===e?[t[0],t[1],t[0],t[1]]:3===e?[t[0],t[1],t[2],t[1]]:t}function J(t,e){if(!t)throw Error(e)}function j(t){return null==t?null:"function"==typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var q="__ec_primitive__";function tt(t){t[q]=!0}var te=function(){function t(){this.data={}}return t.prototype.delete=function(t){var e=this.has(t);return e&&delete this.data[t],e},t.prototype.has=function(t){return this.data.hasOwnProperty(t)},t.prototype.get=function(t){return this.data[t]},t.prototype.set=function(t,e){return this.data[t]=e,this},t.prototype.keys=function(){return P(this.data)},t.prototype.forEach=function(t){var e=this.data;for(var r in e)e.hasOwnProperty(r)&&t(e[r],r)},t}(),tr="function"==typeof Map,tn=function(){function t(e){var r=k(e);this.data=tr?new Map:new te;var n=this;function i(t,e){r?n.set(t,e):n.set(e,t)}e instanceof t?e.each(i):e&&O(e,i)}return t.prototype.hasKey=function(t){return this.data.has(t)},t.prototype.get=function(t){return this.data.get(t)},t.prototype.set=function(t,e){return this.data.set(t,e),e},t.prototype.each=function(t,e){this.data.forEach(function(r,n){t.call(e,r,n)})},t.prototype.keys=function(){var t=this.data.keys();return tr?Array.from(t):t},t.prototype.removeKey=function(t){this.data.delete(t)},t}();function ti(t){return new tn(t)}function ta(t,e){for(var r=new t.constructor(t.length+e.length),n=0;n<t.length;n++)r[n]=t[n];for(var i=t.length,n=0;n<e.length;n++)r[n+i]=e[n];return r}function to(t,e){var r;if(Object.create)r=Object.create(t);else{var n=function(){};n.prototype=t,r=new n}return e&&v(r,e),r}function ts(t){var e=t.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function tl(t,e){return t.hasOwnProperty(e)}function tc(){}var tu=180/Math.PI;r.d(e,{$3:()=>tl,Ac:()=>R,B:()=>M,Bq:()=>j,C7:()=>Q,En:()=>tt,Et:()=>W,Gv:()=>V,HE:()=>Z,HP:()=>P,I6:()=>T,Je:()=>K,Kg:()=>X,Lh:()=>U,NT:()=>b,Os:()=>g,QX:()=>z,TS:()=>L,Tj:()=>N,Tn:()=>F,WV:()=>G,X$:()=>v,Xj:()=>w,Yp:()=>B,__:()=>O,bZ:()=>$,cF:()=>C,co:()=>S,cy:()=>k,di:()=>H,ed:()=>to,h1:()=>function t(e,r,n){if(!V(r)||!V(e))return n?y(r):e;for(var i in r)if(r.hasOwnProperty(i)&&i!==f){var a=e[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 e||(e[i]=y(r[i])):t(a,o,n)}return e},iq:()=>ts,iu:()=>Y,lI:()=>tu,lQ:()=>tc,nt:()=>ti,o8:()=>y,oI:()=>I,pb:()=>_,qh:()=>x,vA:()=>J,vV:()=>A,yB:()=>ta})},83509(t,e,r){function n(t,e){return null==t&&(t=0),null==e&&(e=0),[t,e]}function i(t){return[t[0],t[1]]}function a(t,e,r){return t[0]=e,t[1]=r,t}function o(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t}function s(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t}function l(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t}function c(t,e){var r,n=Math.sqrt((r=e)[0]*r[0]+r[1]*r[1]);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}function u(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var h=function(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])};function p(t,e,r,n){return t[0]=e[0]+n*(r[0]-e[0]),t[1]=e[1]+n*(r[1]-e[1]),t}function d(t,e,r){var n=e[0],i=e[1];return t[0]=r[0]*n+r[2]*i+r[4],t[1]=r[1]*n+r[3]*i+r[5],t}function f(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t}function m(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t}r.d(e,{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(t,e,r){var n=r(15727),i=r(87691);e.A=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="compound",e}return(0,n.C6)(e,t),e.prototype._updatePathDirty=function(){for(var t=this.shape.paths,e=this.shapeChanged(),r=0;r<t.length;r++)e=e||t[r].shapeChanged();e&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var t=this.shape.paths||[],e=this.getGlobalScale(),r=0;r<t.length;r++)t[r].path||t[r].createPathProxy(),t[r].path.setScale(e[0],e[1],t[r].segmentIgnoreThreshold)},e.prototype.buildPath=function(t,e){for(var r=e.paths||[],n=0;n<r.length;n++)r[n].buildPath(t,r[n].shape,!0)},e.prototype.afterBrush=function(){for(var t=this.shape.paths||[],e=0;e<t.length;e++)t[e].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),i.Ay.prototype.getBoundingRect.call(this)},e}(i.Ay)},71519(t,e,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(t){var e;function r(e){return t.call(this,e)||this}return(0,n.C6)(r,t),r.prototype._init=function(e){for(var r=(0,o.HP)(e),n=0;n<r.length;n++){var i=r[n];"style"===i?this.useStyle(e[i]):t.prototype.attrKV.call(this,i,e[i])}this.style||this.useStyle({})},r.prototype.beforeBrush=function(t){},r.prototype.afterBrush=function(){},r.prototype.innerBeforeBrush=function(){},r.prototype.innerAfterBrush=function(){},r.prototype.shouldBePainted=function(t,e,r,n){var i,a,o,s=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&(i=this,a=t,o=e,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(t,e){return this.rectContain(t,e)},r.prototype.traverse=function(t,e){t.call(e,this)},r.prototype.rectContain=function(t,e){var r=this.transformCoordToLocal(t,e);return this.getBoundingRect().contain(r[0],r[1])},r.prototype.getPaintRect=function(){var t=this._paintRect;if(!this._paintRect||this.__dirty){var e=this.transform,r=this.getBoundingRect(),n=this.style,i=n.shadowBlur||0,o=n.shadowOffsetX||0,s=n.shadowOffsetY||0;t=this._paintRect||(this._paintRect=new a.Ay(0,0,0,0)),e?a.Ay.applyTransform(t,r,e):t.copy(r),(i||o||s)&&(t.width+=2*i+Math.abs(o),t.height+=2*i+Math.abs(s),t.x=Math.min(t.x,t.x+o-i),t.y=Math.min(t.y,t.y+s-i));var l=this.dirtyRectTolerance;t.isZero()||(t.x=Math.floor(t.x-l),t.y=Math.floor(t.y-l),t.width=Math.ceil(t.width+1+2*l),t.height=Math.ceil(t.height+1+2*l))}return t},r.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new a.Ay(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},r.prototype.getPrevPaintRect=function(){return this._prevPaintRect},r.prototype.animateStyle=function(t){return this.animate("style",t)},r.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():this.markRedraw()},r.prototype.attrKV=function(e,r){"style"!==e?t.prototype.attrKV.call(this,e,r):this.style?this.setStyle(r):this.useStyle(r)},r.prototype.setStyle=function(t,e){return"string"==typeof t?this.style[t]=e:(0,o.X$)(this.style,t),this.dirtyStyle(),this},r.prototype.dirtyStyle=function(t){t||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(t){return(0,o.ed)(c,t)},r.prototype.useStyle=function(t){t[l]||(t=this.createStyle(t)),this.style=t,this.dirtyStyle()},r.prototype._useHoverStyle=function(t){this.__hoverStyle=t},r.prototype.isStyleObject=function(t){return t[l]},r.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var r=this._normalState;e.style&&!r.style&&(r.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(e,r,h)},r.prototype._applyStateObj=function(e,r,n,a,s,l){t.prototype._applyStateObj.call(this,e,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(e,{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(e){for(var r,n=t.prototype._mergeStates.call(this,e),i=0;i<e.length;i++){var a=e[i];a.style&&(r=r||{},this._mergeStyle(r,a.style))}return r&&(n.style=r),n},r.prototype._mergeStyle=function(t,e){return(0,o.X$)(t,e),t},r.prototype.getAnimationStyleProps=function(){return u},r.initDefaultProps=void((e=r.prototype).type="displayable",e.invisible=!1,e.z=0,e.z2=0,e.zlevel=0,e.culling=!1,e.cursor="pointer",e.rectHover=!1,e.incremental=0,e._rect=null,e.dirtyRectTolerance=0,e.__dirty=s.M|s.pO),r}(i.Ay),f=new a.Ay(0,0,0,0),m=new a.Ay(0,0,0,0);e.Ay=d,r.d(e,{oN:()=>c,sW:()=>u})},11793(t,e){e.A=function(){function t(t){this.colorStops=t||[]}return t.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},t}()},43870(t,e,r){var n=r(15727),i=r(98026),a=r(62454),o=r(29308),s=function(t){function e(e){var r=t.call(this)||this;return r.isGroup=!0,r._children=[],r.attr(e),r}return(0,n.C6)(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var e=this._children,r=0;r<e.length;r++)if(e[r].name===t)return e[r]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},e.prototype.addBefore=function(t,e){if(t&&t!==this&&t.parent!==this&&e&&e.parent===this){var r=this._children,n=r.indexOf(e);n>=0&&(r.splice(n,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,e){var r=i.qh(this._children,t);return r>=0&&this.replaceAt(e,r),this},e.prototype.replaceAt=function(t,e){var r=this._children,n=r[e];if(t&&t!==this&&t.parent!==this&&t!==n){r[e]=t,n.parent=null;var i=this.__zr;i&&n.removeSelfFromZr(i),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__zr;e&&e!==t.__zr&&t.addSelfToZr(e),e&&e.refresh()},e.prototype.remove=function(t){var e=this.__zr,r=this._children,n=i.qh(r,t);return n<0||(r.splice(n,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh()),this},e.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,r=0;r<t.length;r++){var n=t[r];e&&n.removeSelfFromZr(e),n.parent=null}return t.length=0,this},e.prototype.eachChild=function(t,e){for(var r=this._children,n=0;n<r.length;n++){var i=r[n];t.call(e,i,n)}return this},e.prototype.traverse=function(t,e){for(var r=0;r<this._children.length;r++){var n=this._children[r],i=t.call(e,n);n.isGroup&&!i&&n.traverse(t,e)}return this},e.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var r=0;r<this._children.length;r++)this._children[r].addSelfToZr(e)},e.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var r=0;r<this._children.length;r++)this._children[r].removeSelfFromZr(e)},e.prototype.getBoundingRect=function(t){for(var e=new o.Ay(0,0,0,0),r=t||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(e,l,c),(i=i||e.clone()).union(e)):(i=i||l.clone()).union(l)}}return i||e},e}(a.Ay);s.prototype.type="group",e.A=s},90540(t,e,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(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,n.C6)(e,t),e.prototype.createStyle=function(t){return(0,o.ed)(s,t)},e.prototype._getSize=function(t){var e,r=this.style,n=r[t];if(null!=n)return n;var i=(e=r.image)&&"string"!=typeof e&&e.width&&e.height?r.image:this.__image;if(!i)return 0;var a="width"===t?"height":"width",o=r[a];return null==o?i[t]:i[t]/i[a]*o},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return l},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new a.Ay(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(i.Ay);c.prototype.type="image",e.Ay=c},29668(t,e,r){var n=r(15727);e.A=function(t){function e(e,r,n,i,a,o){var s=t.call(this,a)||this;return s.x=null==e?0:e,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)(e,t),e}(r(11793).A)},87691(t,e,r){r.d(e,{MW:()=>M,Ay:()=>O});var n=r(15727),i=r(71519),a=r(62454),o=r(15938);function s(t,e,r,n,i,a,o){if(0===i)return!1;var s=0,l=t;if(o>e+i&&o>n+i||o<e-i&&o<n-i||a>t+i&&a>r+i||a<t-i&&a<r-i)return!1;if(t===r)return Math.abs(a-t)<=i/2;s=(e-n)/(t-r);var c=s*a-o+(l=(t*n-r*e)/(t-r));return c*c/(s*s+1)<=i/2*i/2}var l=r(89259),c=2*Math.PI;function u(t){return(t%=c)<0&&(t+=c),t}var h=2*Math.PI;function p(t,e,r,n,i,a){if(a>e&&a>n||a<e&&a<n||n===e)return 0;var o=(a-e)/(n-e),s=n<e?1:-1;(1===o||0===o)&&(s=n<e?.5:-.5);var l=o*(r-t)+t;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(t,e,r,n,i){for(var a,o,c=t.data,A=t.len(),y=0,v=0,R=0,b=0,x=0,M=0;M<A;){var S,w,O,N,L,_,T,P,I,C,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],e,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++],N=c[M++],L=c[M++],_=c[M++],T=c[M],P=c[M+1],0!==e&&(!(i>w+e)||!(i>N+e)||!(i>_+e)||!(i>P+e))&&(!(i<w-e)||!(i<N-e)||!(i<_-e)||!(i<P-e))&&(!(n>S+e)||!(n>O+e)||!(n>L+e)||!(n>T+e))&&(!(n<S-e)||!(n<O-e)||!(n<L-e)||!(n<T-e))&&l.Et(S,w,O,N,L,_,T,P,n,i,null)<=e/2)return!0}else y+=function(t,e,r,n,i,a,o,s,c,u){if(u>e&&u>n&&u>a&&u>s||u<e&&u<n&&u<a&&u<s)return 0;var h=l._E(e,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(t,r,i,o,v)<c||(d<0&&(d=l.lX(e,n,a,s,g),g[1]<g[0]&&d>1&&function(){var t=g[0];g[0]=g[1],g[1]=t}(),f=l.Yb(e,n,a,s,g[0]),d>1&&(A=l.Yb(e,n,a,s,g[1]))),2===d?v<g[0]?p+=f<e?R:-R:v<g[1]?p+=A<f?R:-R:p+=s<A?R:-R:v<g[0]?p+=f<e?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(I=v,C=R,k=c[M++],F=c[M++],X=c[M],U=c[M+1],0!==e&&(!(i>C+e)||!(i>F+e)||!(i>U+e))&&(!(i<C-e)||!(i<F-e)||!(i<U-e))&&(!(n>I+e)||!(n>k+e)||!(n>X+e))&&(!(n<I-e)||!(n<k-e)||!(n<X-e))&&(0,l.kh)(I,C,k,F,X,U,n,i,null)<=e/2)return!0}else y+=function(t,e,r,n,i,a,o,s){if(s>e&&s>n&&s>a||s<e&&s<n&&s<a)return 0;var c=l.qY(e,n,a,s,m);if(0===c)return 0;var u=l.gC(e,n,a);if(u>=0&&u<=1){for(var h=0,p=l.k3(e,n,a,u),d=0;d<c;d++){var f=0===m[d]||1===m[d]?.5:1,g=l.k3(t,r,i,m[d]);g<o||(m[d]<u?h+=p<e?f:-f:h+=a<p?f:-f)}return h}var f=0===m[0]||1===m[0]?.5:1,g=l.k3(t,r,i,m[0]);return g<o?0:a<e?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++],Z=c[M++],B=c[M++];M+=1;var K=!!(1-c[M++]);a=Math.cos(Z)*D+E,o=Math.sin(Z)*Q+Y,V?(b=a,x=o):y+=p(v,R,a,o,n,i);var $=(n-E)*Q/D+E;if(r){if(function(t,e,r,n,i,a,o,s,l){if(0===o)return!1;var c=Math.sqrt((s-=t)*s+(l-=e)*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,Z,Z+B,K,e,$,i))return!0}else y+=function(t,e,r,n,i,a,o,s){if((s-=e)>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]+t&&o<=m[1]+t?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+t>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,Z,Z+B,K,$,i);v=Math.cos(Z+B)*D+E,R=Math.sin(Z+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,e,n,i)||s(a,x,a,o,e,n,i)||s(a,o,b,o,e,n,i)||s(b,o,b,x,e,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,e,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(t){var e;function r(e){return t.call(this,e)||this}return(0,n.C6)(r,t),r.prototype.update=function(){var e=this;t.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(t){e.buildPath(t,e.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(e){var r=(0,y.HP)(e);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=e[a];"style"===a?this.style?(0,y.X$)(this.style,o):this.useStyle(o):"shape"===a?(0,y.X$)(this.shape,o):t.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 t=this.style.fill;if("none"!==t){if((0,y.Kg)(t)){var e=(0,v.fN)(t,0);return e>.5?R._S:e>.2?R.tY:R.el}else if(t)return R.el}return R._S},r.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if((0,y.Kg)(e)){var r=this.__zr;if(!!(r&&r.isDarkMode())==(0,v.fN)(t,0)<R.ps)return e}},r.prototype.buildPath=function(t,e,r){},r.prototype.pathUpdated=function(){this.__dirty&=~b.Dl},r.prototype.getUpdatedPathProxy=function(t){return this.path||this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},r.prototype.createPathProxy=function(){this.path=new o.A(!1)},r.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return null!=e&&"none"!==e&&t.lineWidth>0},r.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},r.prototype.getBoundingRect=function(){var t=this._rect,e=this.style,r=!t;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()),t=i.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var a=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||r){a.copy(t);var o=e.strokeNoScale?this.getLineScale():1,s=e.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 t},r.prototype.contain=function(t,e){var r=this.transformCoordToLocal(t,e),n=this.getBoundingRect(),i=this.style;if(t=r[0],e=r[1],n.contain(t,e)){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,t,e)))return!0}if(this.hasFill())return A(a,0,!1,t,e)}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(t){return this.animate("shape",t)},r.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},r.prototype.attrKV=function(e,r){"shape"===e?this.setShape(r):t.prototype.attrKV.call(this,e,r)},r.prototype.setShape=function(t,e){var r=this.shape;return r||(r=this.shape={}),"string"==typeof t?r[t]=e:(0,y.X$)(r,t),this.dirtyShape(),this},r.prototype.shapeChanged=function(){return!!(this.__dirty&b.Dl)},r.prototype.createStyle=function(t){return(0,y.ed)(M,t)},r.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var r=this._normalState;e.shape&&!r.shape&&(r.shape=(0,y.X$)({},this.shape))},r.prototype._applyStateObj=function(e,r,n,i,o,s){if(t.prototype._applyStateObj.call(this,e,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(e,{shape:u},s)}else this.shape=l,this.dirtyShape()}},r.prototype._mergeStates=function(e){for(var r,n=t.prototype._mergeStates.call(this,e),i=0;i<e.length;i++){var a=e[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(t){var e=function(e){function r(r){var n=e.call(this,r)||this;return t.init&&t.init.call(n,r),n}return(0,n.C6)(r,e),r.prototype.getDefaultStyle=function(){return(0,y.o8)(t.style)},r.prototype.getDefaultShape=function(){return(0,y.o8)(t.shape)},r}(r);for(var i in t)"function"==typeof t[i]&&(e.prototype[i]=t[i]);return e},r.initDefaultProps=void((e=r.prototype).type="path",e.strokeContainThreshold=5,e.segmentIgnoreThreshold=0,e.subPixelOptimize=!1,e.autoBatch=!1,e.__dirty=b.M|b.pO|b.Dl),r}(i.Ay)},19845(t,e,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(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,n.C6)(e,t),e.prototype.hasStroke=function(){return(0,l.n7)(this.style)},e.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},e.prototype.createStyle=function(t){return(0,o.ed)(c,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){return this._rect||(this._rect=(0,l.Xf)(this.style)),this._rect},e.initDefaultProps=void(e.prototype.dirtyRectTolerance=10),e}(i.Ay);u.prototype.type="tspan",e.A=u},32322(t,e,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(t){function e(e){var r=t.call(this)||this;return r.type="text",r._children=[],r._defaultStyle=d,r.attr(e),r}return(0,n.C6)(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e<this._children.length;e++){var r=this._children[e];r.zlevel=this.zlevel,r.z=this.z,r.z2=this.z2,r.culling=this.culling,r.cursor=this.cursor,r.invisible=this.invisible}},e.prototype.updateTransform=function(){var e=this.innerTransformable;e?(e.updateTransform(),e.transform&&(this.transform=e.transform)):t.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(e){var r=this.innerTransformable;return r?r.getLocalTransform(e):t.prototype.getLocalTransform.call(this,e)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),t.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){var t;this._childCursor=0,M(t=this.style),(0,o.__)(t.rich,M),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var r=0;r<this._children.length;r++)this._children[r].__zr=e},e.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var r=0;r<this._children.length;r++)this._children[r].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new u.Ay(0,0,0,0),e=this._children,r=[],n=null,i=0;i<e.length;i++){var a=e[i],o=a.getBoundingRect(),s=a.getLocalTransform(r);s?(t.copy(o),t.applyTransform(s),(n=n||t.clone()).union(t)):(n=n||o.clone()).union(o)}this._rect=n||t}return this._rect},e.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||d},e.prototype.setTextContent=function(t){},e.prototype._mergeStyle=function(t,e){if(!e)return t;var r=e.rich,n=t.rich||r&&{};return(0,o.X$)(t,e),r&&n?(this._mergeRich(n,r),t.rich=n):n&&(t.rich=n),t},e.prototype._mergeRich=function(t,e){for(var r=(0,o.HP)(e),n=0;n<r.length;n++){var i=r[n];t[i]=t[i]||{},(0,o.X$)(t[i],e[i])}},e.prototype.getAnimationStyleProps=function(){return m},e.prototype._getOrCreateChild=function(t){var e=this._children[this._childCursor];return e&&e instanceof t||(e=new t),this._children[this._childCursor++]=e,e.__zr=this.__zr,e.parent=this,e},e.prototype._updatePlainTexts=function(){var t=this.style,e=t.font||p.OH,r=t.padding,n=this._defaultStyle,o=t.x||0,l=t.y||0,c=t.align||n.align||"left",u=t.verticalAlign||n.verticalAlign||"top";(0,i.Ss)(f,n.overflowRect,o,l,c,u),o=f.baseX,l=f.baseY;var h=N(t),d=(0,i.j_)(h,t,f.outerWidth,f.outerHeight),m=L(t),g=!!t.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(t,t,_,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,I=!1,C=!1,k=w("fill"in t?t.fill:(C=!0,n.fill)),F=S("stroke"in t?t.stroke:g||n.autoStroke&&!C?null:(P=2,I=!0,n.stroke)),X=t.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=t.opacity,V.strokeFirst=!0,X&&(V.shadowBlur=t.textShadowBlur||0,V.shadowColor=t.textShadowColor||"transparent",V.shadowOffsetX=t.textShadowOffsetX||0,V.shadowOffsetY=t.textShadowOffsetY||0),V.stroke=F,V.fill=k,F&&(V.lineWidth=t.lineWidth||P,V.lineDash=t.lineDash,V.lineDashOffset=t.lineDashOffset||0),V.font=e,b(V,t),M+=R,W.setBoundingRect((0,i.xu)(V,d.contentWidth,d.calculatedLineHeight,I?0:null))}},e.prototype._updateRichTexts=function(){var t=this.style,e=this._defaultStyle,r=t.align||e.align,n=t.verticalAlign||e.verticalAlign,a=t.x||0,o=t.y||0;(0,i.Ss)(f,e.overflowRect,a,o,r,n),a=f.baseX,o=f.baseY;var l=N(t),c=(0,i.FQ)(l,t,f.outerWidth,f.outerHeight,r),u=c.width,h=c.outerWidth,p=c.outerHeight,d=t.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;L(t)&&this._renderBackground(t,t,m,g,h,p);for(var R=!!t.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,I=S-1,C=void 0;_<S&&(!(C=M[_]).align||"left"===C.align);)this._placeToken(C,t,w,y,T,"left",R),O-=C.width,T+=C.width,_++;for(;I>=0&&"right"===(C=M[I]).align;)this._placeToken(C,t,w,y,P,"right",R),O-=C.width,P-=C.width,I--;for(T+=(u-(T-A)-(v-P)-O)/2;_<=I;)C=M[_],this._placeToken(C,t,w,y,T+C.width/2,"center",R),T+=C.width,_++;y+=w}},e.prototype._placeToken=function(t,e,r,n,s,l,c){var u=e.rich[t.styleName]||{};u.text=t.text;var h=t.verticalAlign,d=n+r/2;"top"===h?d=n+t.height/2:"bottom"===h&&(d=n+r-t.height/2),!t.isLineHolder&&L(u)&&this._renderBackground(u,e,"right"===l?s-t.width:"center"===l?s-t.width/2:s,d-t.height/2,t.width,t.height);var f=!!u.backgroundColor,m=t.textPadding;m&&(s=O(s,l,m),d-=t.height/2-m[0]-t.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 e?e.fill:(v=!0,y.fill)),N=S("stroke"in u?u.stroke:"stroke"in e?e.stroke:f||c||y.autoStroke&&!v?null:(R=2,x=!0,y.stroke)),_=u.textShadowBlur>0||e.textShadowBlur>0;A.text=t.text,A.x=s,A.y=d,_&&(A.shadowBlur=u.textShadowBlur||e.textShadowBlur||0,A.shadowColor=u.textShadowColor||e.textShadowColor||"transparent",A.shadowOffsetX=u.textShadowOffsetX||e.textShadowOffsetX||0,A.shadowOffsetY=u.textShadowOffsetY||e.textShadowOffsetY||0),A.textAlign=l,A.textBaseline="middle",A.font=t.font||p.OH,A.opacity=(0,o.WV)(u.opacity,e.opacity,1),b(A,u),N&&(A.lineWidth=(0,o.WV)(u.lineWidth,e.lineWidth,R),A.lineDash=(0,o.bZ)(u.lineDash,e.lineDash),A.lineDashOffset=e.lineDashOffset||0,A.stroke=N),M&&(A.fill=M),g.setBoundingRect((0,i.xu)(A,t.contentWidth,t.contentHeight,x?0:null))},e.prototype._renderBackground=function(t,e,r,n,i,a){var s,u,h=t.backgroundColor,p=t.borderWidth,d=t.borderColor,f=h&&h.image,m=h&&!f,g=t.borderRadius,A=this;if(m||t.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)(t.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)(t.strokeOpacity,1),v.lineDash=t.borderDash,v.lineDashOffset=t.borderDashOffset||0,s.strokeContainThreshold=0,s.hasFill()&&s.hasStroke()&&(v.strokeFirst=!0,v.lineWidth*=2)}var b=(s||u).style;b.shadowBlur=t.shadowBlur||0,b.shadowColor=t.shadowColor||"transparent",b.shadowOffsetX=t.shadowOffsetX||0,b.shadowOffsetY=t.shadowOffsetY||0,b.opacity=(0,o.WV)(t.opacity,e.opacity,1)},e.makeFont=function(t){var e="";return x(t)&&(e=[t.fontStyle,t.fontWeight,R(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),e&&(0,o.Bq)(e)||t.textFont||t.font},e}(h.Ay),A={left:!0,right:1,center:1},y={top:1,bottom:1,middle:1},v=["fontStyle","fontWeight","fontSize","fontFamily"];function R(t){return"string"==typeof t&&(-1!==t.indexOf("px")||-1!==t.indexOf("rem")||-1!==t.indexOf("em"))?t:isNaN(+t)?p.gI+"px":t+"px"}function b(t,e){for(var r=0;r<v.length;r++){var n=v[r],i=e[n];null!=i&&(t[n]=i)}}function x(t){return null!=t.fontSize||t.fontFamily||t.fontWeight}function M(t){if(t){t.font=g.makeFont(t);var e=t.align;"middle"===e&&(e="center"),t.align=null==e||A[e]?e:"left";var r=t.verticalAlign;"center"===r&&(r="middle"),t.verticalAlign=null==r||y[r]?r:"top",t.padding&&(t.padding=(0,o.QX)(t.padding))}}function S(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function w(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function O(t,e,r){return"right"===e?t-r[1]:"center"===e?t+r[3]/2-r[1]/2:t+r[3]}function N(t){var e=t.text;return null!=e&&(e+=""),e}function L(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}e.Ay=g,r.d(e,{I5:()=>R,XE:()=>x})},56448(t,e,r){r.d(e,{Dl:()=>4,M:()=>1,pO:()=>2})},12191(t,e,r){var n=r(60501),i=r(59741),a=new n.Ay(50);function o(t){if("string"!=typeof t)return t;var e=a.get(t);return e&&e.image}function s(t,e,r,n,o){if(!t)return e;if("string"!=typeof t)return t;if(e&&e.__zrImageSrc===t||!r)return e;var s=a.get(t),u={hostEl:r,cb:n,cbPayload:o};return s?c(e=s.image)||s.pending.push(u):((e=i.yh.loadImage(t,l,l)).__zrImageSrc=t,a.put(t,e.__cachedImgObj={image:e,pending:[u]})),e}function l(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var r=t.pending[e],n=r.cb;n&&n(this,r.cbPayload),r.hostEl.dirty()}t.pending.length=0}function c(t){return t&&t.width&&t.height}r.d(e,{OD:()=>s,SR:()=>o,xA:()=>c})},62406(t,e,r){var n=r(12191),i=r(98026),a=r(45558),o=r(29308),s=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function l(t,e,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)(e),c=l.asciiCharWidth;o.placeholder=(0,i.bZ)(n.placeholder,"");for(var u=t=Math.max(0,t-1),h=0;h<s&&u>=c;h++)u-=c;var p=(0,a.l8)(l,r);return p>u&&(r="",p=0),u=t-p,o.ellipsis=r,o.ellipsisWidth=p,o.contentWidth=u,o.containerWidth=t,o}function c(t,e,r){var n=r.containerWidth,i=r.contentWidth,o=r.fontMeasureInfo;if(!n){t.textLine="",t.isTruncated=!1;return}var s=(0,a.l8)(o,e);if(s<=n){t.textLine=e,t.isTruncated=!1;return}for(var l=0;;l++){if(s<=i||l>=r.maxIterations){e+=r.ellipsis;break}var c=0===l?function(t,e,r){for(var n=0,i=0,o=t.length;i<o&&n<e;i++)n+=(0,a.JK)(r,t.charCodeAt(i));return i}(e,i,o):s>0?Math.floor(e.length*i/s):0;e=e.substr(0,c),s=(0,a.l8)(o,e)}""===e&&(e=r.placeholder),t.textLine=e,t.isTruncated=!0}function u(t,e,r,n){var o,s=b(t),u=e.overflow,h=e.padding,p=h?h[1]+h[3]:0,d=h?h[0]+h[2]:0,f=e.font,m=(0,a.ks)(f),g=(0,i.bZ)(e.lineHeight,m),y="truncate"===e.lineOverflow,v=!1,R=e.width;null==R&&null!=r&&(R=r-p);var x=e.height;null==x&&null!=n&&(x=n-d);var M=(o=null!=R&&("break"===u||"breakAll"===u)?s?A(s,e.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,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),O={},N=0;N<o.length;N++)c(O,o[N],w),o[N]=O.textLine,v=v||O.isTruncated;for(var L=x,_=0,T=(0,a.Qw)(f),N=0;N<o.length;N++)_=Math.max((0,a.l8)(T,o[N]),_);null==R&&(R=_);var P=R;return L+=d,{lines:o,height:x,outerWidth:P+=p,outerHeight:L,lineHeight:g,calculatedLineHeight:m,contentWidth:_,contentHeight:M,width:R,isTruncated:v}}var h=function(){},p=function(t){this.tokens=[],t&&(this.tokens=t)},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(t,e,r,o,u){var h,p=new d,f=b(t);if(!f)return p;var g=e.padding,A=g?g[1]+g[3]:0,y=g?g[0]+g[2]:0,v=e.width;null==v&&null!=r&&(v=r-A);var R=e.height;null==R&&null!=o&&(R=o-y);for(var x=e.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),e,M),m(p,h[2],e,M,h[1]),S=s.lastIndex}S<f.length&&m(p,f.substring(S,f.length),e,M);var O=[],N=0,L=0,_="truncate"===x,T="truncate"===e.lineOverflow,P={};function I(t,e,r){t.width=e,t.lineHeight=r,N+=r,L=Math.max(L,e)}l:for(var C=0;C<p.lines.length;C++){for(var k=p.lines[C],F=0,X=0,U=0;U<k.tokens.length;U++){var W=k.tokens[U],V=W.styleName&&e.rich[W.styleName]||{},E=W.textPadding=V.padding,Y=E?E[1]+E[3]:0,D=W.font=V.font||e.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,e.lineHeight,Q),W.align=V&&V.align||u,W.verticalAlign=V&&V.verticalAlign||"middle",T&&null!=R&&N+W.lineHeight>R){var Z=p.lines.length;U>0?(k.tokens=k.tokens.slice(0,U),I(k,X,F),p.lines=p.lines.slice(0,C+1)):p.lines=p.lines.slice(0,C),p.isTruncated=p.isTruncated||p.lines.length<Z;break l}var B=V.width,K=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(K){var $=V.backgroundColor,G=$&&$.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?!K||H<Y?(W.text="",W.width=W.contentWidth=0):(!function(t,e,r,n,i,a){if(!r){t.text="",t.isTruncated=!1;return}var o=(e+"").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;t.text=o.join("\n"),t.isTruncated=s}(P,W.text,H-Y,D,e.ellipsis,{minChar:e.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))}I(k,X,F)}p.outerWidth=p.width=(0,i.bZ)(v,L),p.outerHeight=p.height=(0,i.bZ)(R,N),p.contentHeight=N,p.contentWidth=L,p.outerWidth+=A,p.outerHeight+=y;for(var C=0;C<O.length;C++){var W=O[C],z=W.percentWidth;W.width=parseInt(z,10)/100*p.width}return p}function m(t,e,r,n,i){var o,s,l=""===e,c=i&&r.rich[i]||{},u=t.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=e.split("\n"),f=!0),n.accumWidth=y}else{var v=A(e,d,n.width,n.breakAll,n.accumWidth);n.accumWidth=v.accumWidth+g,s=v.linesWidths,o=v.lines}}o||(o=e.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(t,e){return t[e]=!0,t},{});function A(t,e,r,n,i){for(var o=[],s=[],l="",c="",u=0,h=0,p=(0,a.Qw)(e),d=0;d<t.length;d++){var f=t.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(t){var e;return(!((e=t.charCodeAt(0))>=32)||!(e<=591))&&(!(e>=880)||!(e<=4351))&&(!(e>=4608)||!(e<=5119))&&(!(e>=7680)||!(e<=8303))||!!g[t]}(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(t,e,r,n,i,s){if(t.baseX=r,t.baseY=n,t.outerWidth=t.outerHeight=null,e){var l=2*e.width,c=2*e.height;o.Ay.set(v,(0,a.ll)(r,l,i),(0,a.sZ)(n,c,s),l,c),o.Ay.intersect(e,v,null,R);var u=R.outIntersectRect;t.outerWidth=u.width,t.outerHeight=u.height,t.baseX=(0,a.ll)(u.x,u.width,i,!0),t.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(t){return null!=t?t+="":t=""}function x(t){var e=b(t.text),r=t.font;return M(t,(0,a.l8)((0,a.Qw)(r),e),(0,a.ks)(r),null)}function M(t,e,r,n){var i=new o.Ay((0,a.ll)(t.x||0,e,t.textAlign),(0,a.sZ)(t.y||0,r,t.textBaseline),e,r),s=null!=n?n:S(t)?t.lineWidth:0;return s>0&&(i.x-=s/2,i.y-=s/2,i.width+=s,i.height+=s),i}function S(t){var e=t.stroke;return null!=e&&"none"!==e&&t.lineWidth>0}r.d(e,{FQ:()=>f,Ss:()=>y,Xf:()=>x,j_:()=>u,n7:()=>S,xu:()=>M})},94825(t,e,r){r.d(e,{U:()=>i});var n=r(83509);function i(t,e,r){var i=e.smooth,a=e.points;if(a&&a.length>=2){if(i){var o=function(t,e,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=t.length;d<f;d++)(0,n.jk)(s,s,t[d]),(0,n.T9)(l,l,t[d]);(0,n.jk)(s,s,i[0]),(0,n.T9)(l,l,i[1])}for(var d=0,f=t.length;d<f;d++){var m=t[d];if(r)a=t[d?d-1:f-1],o=t[(d+1)%f];else if(0===d||d===f-1){c.push((0,n.o8)(t[d]));continue}else a=t[d-1],o=t[d+1];(0,n.jb)(u,o,a),(0,n.hs)(u,u,e);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,e.smoothConstraint);t.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];t.bezierCurveTo(c[0],c[1],u[0],u[1],h[0],h[1])}}else{t.moveTo(a[0][0],a[0][1]);for(var l=1,p=a.length;l<p;l++)t.lineTo(a[l][0],a[l][1])}r&&t.closePath()}}},14865(t,e,r){var n=Math.round;function i(t,e,r){if(e){var i=e.x1,a=e.x2,s=e.y1,l=e.y2;t.x1=i,t.x2=a,t.y1=s,t.y2=l;var c=r&&r.lineWidth;return c&&(n(2*i)===n(2*a)&&(t.x1=t.x2=o(i,c,!0)),n(2*s)===n(2*l)&&(t.y1=t.y2=o(s,c,!0))),t}}function a(t,e,r){if(e){var n=e.x,i=e.y,a=e.width,s=e.height;t.x=n,t.y=i,t.width=a,t.height=s;var l=r&&r.lineWidth;return l&&(t.x=o(n,l,!0),t.y=o(i,l,!0),t.width=Math.max(o(n+a,l,!1)-t.x,+(0!==a)),t.height=Math.max(o(i+s,l,!1)-t.y,+(0!==s))),t}}function o(t,e,r){if(!e)return t;var i=n(2*t);return(i+n(e))%2==0?i/2:(i+(r?1:-1))/2}r.d(e,{M7:()=>o,Op:()=>a,eB:()=>i})},43471(t,e,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(t){function e(e){return t.call(this,e)||this}return(0,n.C6)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new a},e.prototype.buildPath=function(t,e){var r=e.cx,n=e.cy,i=Math.max(e.r,0),a=e.startAngle,o=e.endAngle,s=e.clockwise,l=Math.cos(a),c=Math.sin(a);t.moveTo(l*i+r,c*i+n),t.arc(r,n,i,a,o,!s)},e}(i.Ay);o.prototype.type="arc",e.A=o},31571(t,e,r){var n=r(15727),i=r(87691),a=function(){this.cx=0,this.cy=0,this.r=0},o=function(t){function e(e){return t.call(this,e)||this}return(0,n.C6)(e,t),e.prototype.getDefaultShape=function(){return new a},e.prototype.buildPath=function(t,e){t.moveTo(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI)},e}(i.Ay);o.prototype.type="circle",e.A=o},82861(t,e,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(t){function e(e){return t.call(this,e)||this}return(0,n.C6)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new s},e.prototype.buildPath=function(t,e){if(this.subPixelOptimize){var r,n,i,s,l=(0,a.eB)(o,e,this.style);r=l.x1,n=l.y1,i=l.x2,s=l.y2}else r=e.x1,n=e.y1,i=e.x2,s=e.y2;var c=e.percent;0!==c&&(t.moveTo(r,n),c<1&&(i=r*(1-c)+i*c,s=n*(1-c)+s*c),t.lineTo(i,s))},e.prototype.pointAt=function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]},e}(i.Ay);l.prototype.type="line",e.A=l},52505(t,e,r){var n=r(15727),i=r(87691),a=r(94825),o=function(){this.points=null,this.smooth=0,this.smoothConstraint=null},s=function(t){function e(e){return t.call(this,e)||this}return(0,n.C6)(e,t),e.prototype.getDefaultShape=function(){return new o},e.prototype.buildPath=function(t,e){a.U(t,e,!0)},e}(i.Ay);s.prototype.type="polygon",e.A=s},39195(t,e,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(t){function e(e){return t.call(this,e)||this}return(0,n.C6)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new o},e.prototype.buildPath=function(t,e){a.U(t,e,!1)},e}(i.Ay);s.prototype.type="polyline",e.A=s},60866(t,e,r){r.d(e,{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(t){function e(e){return t.call(this,e)||this}return(0,n.C6)(e,t),e.prototype.getDefaultShape=function(){return new o},e.prototype.buildPath=function(t,e){if(this.subPixelOptimize){var r,n,i,o,l,c,u,h,p,d,f,m,g,A,y,v=(0,a.Op)(s,e,this.style);m=v.x,g=v.y,A=v.width,y=v.height,v.r=e.r,e=v}else m=e.x,g=e.y,A=e.width,y=e.height;e.r?(u=(r=e).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),t.moveTo(u+n,h),t.lineTo(u+p-i,h),0!==i&&t.arc(u+p-i,h+i,i,-Math.PI/2,0),t.lineTo(u+p,h+d-o),0!==o&&t.arc(u+p-o,h+d-o,o,0,Math.PI/2),t.lineTo(u+l,h+d),0!==l&&t.arc(u+l,h+d-l,l,Math.PI/2,Math.PI),t.lineTo(u,h+n),0!==n&&t.arc(u+n,h+n,n,Math.PI,1.5*Math.PI),t.closePath()):t.rect(m,g,A,y)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(i.Ay);l.prototype.type="rect";var c=l},42933(t,e,r){var n=r(15727),i=r(87691),a=function(){this.cx=0,this.cy=0,this.r=0,this.r0=0},o=function(t){function e(e){return t.call(this,e)||this}return(0,n.C6)(e,t),e.prototype.getDefaultShape=function(){return new a},e.prototype.buildPath=function(t,e){var r=e.cx,n=e.cy,i=2*Math.PI;t.moveTo(r+e.r,n),t.arc(r,n,e.r,0,i,!1),t.moveTo(r+e.r0,n),t.arc(r,n,e.r0,0,i,!0)},e}(i.Ay);o.prototype.type="ring",e.A=o},13818(t,e,r){r.d(e,{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(t,e,r,n,i,a,o){var s=t-r,l=e-n,c=(o?a:-a)/d(s*s+l*l),u=c*l,h=-c*s,p=t+u,m=e+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,N=(-S*R-b*w)/x,L=(S*b+R*w)/x,_=(-S*R+b*w)/x,T=O-y,P=N-v,I=L-y,C=_-v;return T*T+P*P>I*I+C*C&&(O=L,N=_),{cx:O,cy:N,x0:-u,y0:-h,x1:O*(i/M-1),y1:N*(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(t){function e(e){return t.call(this,e)||this}return(0,n.C6)(e,t),e.prototype.getDefaultShape=function(){return new A},e.prototype.buildPath=function(t,e){!function(t,e){var r,n=f(e.r,0),i=f(e.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=e.startAngle,b=e.endAngle;if(!(isNaN(R)||isNaN(b))){var x=e.cx,M=e.cy,S=!!e.clockwise,w=p(b-R),O=w>s&&w%s;if(O>1e-4&&(w=O),n>1e-4)if(w>s-1e-4)t.moveTo(x+n*c(R),M+n*l(R)),t.arc(x,M,n,R,b,!S),i>1e-4&&(t.moveTo(x+i*c(b),M+i*l(b)),t.arc(x,M,i,b,R,S));else{var N=void 0,L=void 0,_=void 0,T=void 0,P=void 0,I=void 0,C=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),Z=n*l(R),B=i*c(b),K=i*l(b),$=w>1e-4;if($){var G=e.cornerRadius;G&&(N=(r=function(t){var e;if((0,a.cy)(t)){var r=t.length;if(!r)return t;e=1===r?[t[0],t[0],0,0]:2===r?[t[0],t[0],t[1],t[1]]:3===r?t.concat(t[2]):t}else e=[t,t,t,t];return e}(G))[0],L=r[1],_=r[2],T=r[3]);var H=p(n-i)/2;if(P=m(H,_),I=m(H,T),C=m(H,N),k=m(H,L),U=F=f(P,I),W=X=f(C,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(t,e,r,n,i,a,o,s){var l=r-t,c=n-e,u=o-i,h=s-a,p=h*l-u*c;if(!(p*p<1e-4))return p=(u*(e-a)-h*(t-i))/p,[t+p*l,e+p*c]}(Q,Z,Y,D,V,E,B,K);if(z){var J=Q-z[0],j=Z-z[1],q=V-z[0],tt=E-z[1],te=1/l(u((J*q+j*tt)/(d(J*J+j*j)*d(q*q+tt*tt)))/2),tr=d(z[0]*z[0]+z[1]*z[1]);U=m(F,(n-tr)/(te+1)),W=m(X,(i-tr)/(te-1))}}}if($)if(U>1e-4){var tn=m(_,U),ti=m(T,U),ta=g(Y,D,Q,Z,n,tn,S),to=g(V,E,B,K,n,ti,S);t.moveTo(x+ta.cx+ta.x0,M+ta.cy+ta.y0),U<F&&tn===ti?t.arc(x+ta.cx,M+ta.cy,U,h(ta.y0,ta.x0),h(to.y0,to.x0),!S):(tn>0&&t.arc(x+ta.cx,M+ta.cy,tn,h(ta.y0,ta.x0),h(ta.y1,ta.x1),!S),t.arc(x,M,n,h(ta.cy+ta.y1,ta.cx+ta.x1),h(to.cy+to.y1,to.cx+to.x1),!S),ti>0&&t.arc(x+to.cx,M+to.cy,ti,h(to.y1,to.x1),h(to.y0,to.x0),!S))}else t.moveTo(x+Q,M+Z),t.arc(x,M,n,R,b,!S);else t.moveTo(x+Q,M+Z);if(i>1e-4&&$)if(W>1e-4){var tn=m(N,W),ti=m(L,W),ta=g(B,K,V,E,i,-ti,S),to=g(Q,Z,Y,D,i,-tn,S);t.lineTo(x+ta.cx+ta.x0,M+ta.cy+ta.y0),W<X&&tn===ti?t.arc(x+ta.cx,M+ta.cy,W,h(ta.y0,ta.x0),h(to.y0,to.x0),!S):(ti>0&&t.arc(x+ta.cx,M+ta.cy,ti,h(ta.y0,ta.x0),h(ta.y1,ta.x1),!S),t.arc(x,M,i,h(ta.cy+ta.y1,ta.cx+ta.x1),h(to.cy+to.y1,to.cx+to.x1),S),tn>0&&t.arc(x+to.cx,M+to.cy,tn,h(to.y1,to.x1),h(to.y0,to.x0),!S))}else t.lineTo(x+B,M+K),t.arc(x,M,i,b,R,S);else t.lineTo(x+B,M+K)}else t.moveTo(x,M);t.closePath()}}}(t,e)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(i.Ay);y.prototype.type="sector";var v=y},3455(t,e,r){var n=r(98026),i=r(47698),a=r(49705).hp,o=Math.round;function s(t){var e;if(t&&"transparent"!==t){if("string"==typeof t&&t.indexOf("rgba")>-1){var r=(0,i.qg)(t);r&&(t="rgb("+r[0]+","+r[1]+","+r[2]+")",e=r[3])}}else t="none";return{color:t,opacity:null==e?1:e}}function l(t){return t<1e-4&&t>-1e-4}function c(t){return o(1e3*t)/1e3}function u(t){return o(1e4*t)/1e4}function h(t){return"matrix("+c(t[0])+","+c(t[1])+","+c(t[2])+","+c(t[3])+","+u(t[4])+","+u(t[5])+")"}var p={left:"start",right:"end",center:"middle",middle:"middle"};function d(t,e,r){return"top"===r?t+=e/2:"bottom"===r&&(t-=e/2),t}function f(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY)}function m(t){var e=t.style,r=t.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),r[0],r[1]].join(",")}function g(t){return t&&!!t.image}function A(t){return g(t)||t&&!!t.svgElement}function y(t){return"linear"===t.type}function v(t){return"radial"===t.type}function R(t){return t&&("linear"===t.type||"radial"===t.type)}function b(t){return"url(#"+t+")"}function x(t){var e=t.getGlobalScale();return Math.max(Math.ceil(Math.log(Math.max(e[0],e[1]))/Math.log(10)),1)}function M(t){var e=t.x||0,r=t.y||0,i=(t.rotation||0)*n.lI,a=(0,n.bZ)(t.scaleX,1),s=(0,n.bZ)(t.scaleY,1),l=t.skewX||0,c=t.skewY||0,u=[];return(e||r)&&u.push("translate("+e+"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(t){return a.from(t).toString("base64")}:"function"==typeof btoa&&"function"==typeof unescape&&"function"==typeof encodeURIComponent?function(t){return btoa(unescape(encodeURIComponent(t)))}:function(t){return null};r.d(e,{$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(t,e,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(t){return(t=Math.round(t))<0?0:t>255?255:t}function s(t){return t<0?0:t>1?1:t}function l(t){return t.length&&"%"===t.charAt(t.length-1)?o(parseFloat(t)/100*255):o(parseInt(t,10))}function c(t){return t.length&&"%"===t.charAt(t.length-1)?s(parseFloat(t)/100):s(parseFloat(t))}function u(t,e,r){return(r<0?r+=1:r>1&&(r-=1),6*r<1)?t+(e-t)*r*6:2*r<1?e:3*r<2?t+(e-t)*(2/3-r)*6:t}function h(t,e,r,n,i){return t[0]=e,t[1]=r,t[2]=n,t[3]=i,t}function p(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var d=new n.Ay(20),f=null;function m(t,e){f&&p(f,e),f=d.put(t,f||e.slice())}function g(t,e){if(t){e=e||[];var r=d.get(t);if(r)return p(e,r);var n=(t+="").replace(/ /g,"").toLowerCase();if(n in a)return p(e,a[n]),m(t,e),e;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(e,(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(t,e),e):void h(e,0,0,0,1)}if(7===i||9===i){var o=parseInt(n.slice(1,7),16);return o>=0&&o<=0xffffff?(h(e,(0xff0000&o)>>16,(65280&o)>>8,255&o,9===i?parseInt(n.slice(7),16)/255:1),m(t,e),e):void h(e,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(e,+g[0],+g[1],+g[2],1):h(e,0,0,0,1);y=c(g.pop());case"rgb":if(g.length>=3)return h(e,l(g[0]),l(g[1]),l(g[2]),3===g.length?y:c(g[3])),m(t,e),e;return void h(e,0,0,0,1);case"hsla":if(4!==g.length)return void h(e,0,0,0,1);return g[3]=c(g[3]),A(g,e),m(t,e),e;case"hsl":if(3!==g.length)return void h(e,0,0,0,1);return A(g,e),m(t,e),e;default:return}}h(e,0,0,0,1)}}function A(t,e){var r=(parseFloat(t[0])%360+360)%360/360,n=c(t[1]),i=c(t[2]),a=i<=.5?i*(n+1):i+n-i*n,s=2*i-a;return h(e=e||[],o(255*u(s,a,r+1/3)),o(255*u(s,a,r)),o(255*u(s,a,r-1/3)),1),4===t.length&&(e[3]=t[3]),e}function y(t,e){var r=g(t);if(r){for(var n=0;n<3;n++)e<0?r[n]=r[n]*(1-e)|0:r[n]=(255-r[n])*e+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(t,e,r){if(e&&e.length&&t>=0&&t<=1){var n,i,a,l,c=t*(e.length-1),u=Math.floor(c),h=Math.ceil(c),p=g(e[u]),d=g(e[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(t,e,r,n){var a,o=g(t);if(t)return o=function(t){if(t){var e,r,n=t[0]/255,i=t[1]/255,a=t[2]/255,o=Math.min(n,i,a),s=Math.max(n,i,a),l=s-o,c=(s+o)/2;if(0===l)e=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?e=p-h:i===s?e=1/3+u-p:a===s&&(e=2/3+h-u),e<0&&(e+=1),e>1&&(e-=1)}var d=[360*e,r,c];return null!=t[3]&&d.push(t[3]),d}}(o),null!=e&&(o[0]=(a=Math.round(a=(0,i.Tn)(e)?e(o[0]):e))<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(t,e){if(t&&t.length){var r=t[0]+","+t[1]+","+t[2];return("rgba"===e||"hsva"===e||"hsla"===e)&&(r+=","+t[3]),e+"("+r+")"}}function x(t,e){var r=g(t);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*e:0}var M=new n.Ay(100);function S(t){if((0,i.Kg)(t)){var e=M.get(t);return e||(e=y(t,-.1),M.put(t,e)),e}if((0,i.C7)(t)){var r=(0,i.X$)({},t);return r.colorStops=(0,i.Tj)(t.colorStops,function(t){return{offset:t.offset,color:y(t.color,-.1)}}),r}return t}r.d(e,{As:()=>b,Cc:()=>v,P:()=>S,Yu:()=>R,fN:()=>x,qg:()=>g})},95068(t,e,r){r.d(e,{N1:()=>ts,Ts:()=>ta,fI:()=>to,jW:()=>tl});var n,i,a,o,s=r(38123),l=r(98026),c=r(15727),u=r(83509),h=function(t,e){this.target=t,this.topTarget=e&&e.topTarget},p=function(){function t(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(t){for(var e=t.target;e&&!e.draggable;)e=e.parent||e.__hostTarget;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new h(e,t),"dragstart",t.event))},t.prototype._drag=function(t){var e=this._draggingTarget;if(e){var r=t.offsetX,n=t.offsetY,i=r-this._x,a=n-this._y;this._x=r,this._y=n,e.drift(i,a,t),this.handler.dispatchToElement(new h(e,t),"drag",t.event);var o=this.handler.findHover(r,n,e).target,s=this._dropTarget;this._dropTarget=o,e!==o&&(s&&o!==s&&this.handler.dispatchToElement(new h(s,t),"dragleave",t.event),o&&o!==s&&this.handler.dispatchToElement(new h(o,t),"dragenter",t.event))}},t.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new h(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new h(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},t}(),d=r(57861),f=r(35452),m=function(){function t(){this._track=[]}return t.prototype.recognize=function(t,e,r){return this._doTrack(t,e,r),this._recognize(t)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(t,e,r){var n=t.touches;if(n){for(var i={points:[],touches:[],target:e,event:t},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)}},t.prototype._recognize=function(t){for(var e in A)if(A.hasOwnProperty(e)){var r=A[e](this._track,t);if(r)return r}},t}();function g(t){var e=t[1][0]-t[0][0],r=t[1][1]-t[0][1];return Math.sqrt(e*e+r*r)}var A={pinch:function(t,e){var r=t.length;if(r){var n=(t[r-1]||{}).points,i=(t[r-2]||{}).points||n;if(i&&i.length>1&&n&&n.length>1){var a=g(n)/g(i);isFinite(a)||(a=1),e.pinchScale=a;var o=[(n[0][0]+n[1][0])/2,(n[0][1]+n[1][1])/2];return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:t[0].target,event:e}}}}},y=r(29308),v="silent";function R(){f.ds(this.event)}var b=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return(0,c.C6)(e,t),e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(d.A),x=function(t,e){this.x=t,this.y=e},M=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],S=new y.Ay(0,0,0,0),w=function(t){function e(e,r,n,i,a){var o=t.call(this)||this;return o._hovered=new x(0,0),o.storage=e,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)(e,t),e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(l.__(M,function(e){t.on&&t.on(e,this[e],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var e=t.zrX,r=t.zrY,n=N(this,e,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(e,r):this.findHover(e,r),s=o.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),a&&s!==a&&this.dispatchToElement(i,"mouseout",t),this.dispatchToElement(o,"mousemove",t),s&&s!==a&&this.dispatchToElement(o,"mouseover",t)},e.prototype.mouseout=function(t){var e=t.zrEventControl;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new x(0,0)},e.prototype.dispatch=function(t,e){var r=this[t];r&&r.call(this,e)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},e.prototype.dispatchToElement=function(t,e,r){var n=(t=t||{}).target;if(!n||!n.silent){for(var i,a="on"+e,o={type:e,event:r,target:(i=t).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(e,o),n=n.__hostTarget?n.__hostTarget:n.parent,!o.cancelBubble););!o.cancelBubble&&(this.trigger(e,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(t){"function"==typeof t[a]&&t[a].call(t,o),t.trigger&&t.trigger(e,o)}))}},e.prototype.findHover=function(t,e,r){var n=this.storage.getDisplayList(),i=new x(t,e);if(O(n,i,t,e,r),this._pointerSize&&!i.target){for(var a=[],o=this._pointerSize,s=o/2,l=new y.Ay(t-s,e-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,t+d*Math.cos(f),e+d*Math.sin(f),r),i.target)return i}}return i},e.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new m);var r=this._gestureMgr;"start"===e&&r.clear();var n=r.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if("end"===e&&r.clear(),n){var i=n.type;t.gestureEvent=i;var a=new x;a.target=n.target,this.dispatchToElement(a,i,n.event)}},e}(d.A);function O(t,e,r,n,i){for(var a=t.length-1;a>=0;a--){var o=t[a],s=void 0;if(o!==i&&!o.ignore&&(s=function(t,e,r){if(t[t.rectHover?"rectContain":"contain"](e,r)){for(var n=t,i=void 0,a=!1;n;){if(n.ignoreClip&&(a=!0),!a){var o=n.getClipPath();if(o&&!o.contain(e,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))&&(e.topTarget||(e.topTarget=o),s!==v)){e.target=o;break}}}function N(t,e,r){var n=t.painter;return e<0||e>n.getWidth()||r<0||r>n.getHeight()}l.__(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){w.prototype[t]=function(e){var r,n,i=e.zrX,a=e.zrY,o=N(this,i,a);if("mouseup"===t&&o||(n=(r=this.findHover(i,a)).target),"mousedown"===t)this._downEl=n,this._downPoint=[e.zrX,e.zrY],this._upEl=n;else if("mouseup"===t)this._upEl=n;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||u.xg(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(r,t,e)}});var L=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 I(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var C=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=I}return t.prototype.traverse=function(t,e){for(var r=0;r<this._roots.length;r++)this._roots[r].traverse(t,e)},t.prototype.getDisplayList=function(t,e){e=e||!1;var r=this._displayList;return(t||!r.length)&&this.updateDisplayList(e),r},t.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,r=this._displayList,n=0,i=e.length;n<i;n++)this._updateAndAddDisplayable(e[n],null,t);r.length=this._displayListLen,(0,L.A)(r,I)},t.prototype._updateAndAddDisplayable=function(t,e,r){if(!t.ignore||r){t.beforeUpdate(),t.update(),t.afterUpdate();var n=t.getClipPath(),i=e&&e.length,a=0,o=t.__clipPaths;if(!t.ignoreClip&&(i||n)){if(o||(o=t.__clipPaths=[]),i)for(var s=0;s<e.length;s++)o[a++]=e[s];for(var l=n,c=t;l;)l.parent=c,l.updateTransform(),o[a++]=l,c=l,l=l.getClipPath()}if(o&&(o.length=a),t.childrenRef){for(var u=t.childrenRef(),h=0;h<u.length;h++){var p=u[h];t.__dirty&&(p.__dirty|=_.M),this._updateAndAddDisplayable(p,o,r)}t.__dirty=0}else isNaN(t.z)&&(P(),t.z=0),isNaN(t.z2)&&(P(),t.z2=0),isNaN(t.zlevel)&&(P(),t.zlevel=0),this._displayList[this._displayListLen++]=t;var d=t.getDecalElement&&t.getDecalElement();d&&this._updateAndAddDisplayable(d,o,r);var f=t.getTextGuideLine();f&&this._updateAndAddDisplayable(f,o,r);var m=t.getTextContent();m&&this._updateAndAddDisplayable(m,o,r)}},t.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},t.prototype.delRoot=function(t){if(t instanceof Array){for(var e=0,r=t.length;e<r;e++)this.delRoot(t[e]);return}var n=l.qh(this._roots,t);n>=0&&this._roots.splice(n,1)},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}(),k=r(45825),F=r(18565);function X(){return new Date().getTime()}var U=function(t){function e(e){var r=t.call(this)||this;return r._running=!1,r._time=0,r._pausedTime=0,r._pauseStart=0,r._paused=!1,r.stage=(e=e||{}).stage||{},r}return(0,c.C6)(e,t),e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var e=t.getClip();e&&this.addClip(e)},e.prototype.removeClip=function(t){if(t.animation){var e=t.prev,r=t.next;e?e.next=r:this._head=r,r?r.prev=e:this._tail=e,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},e.prototype.update=function(t){for(var e=X()-this._pausedTime,r=e-this._time,n=this._head;n;){var i=n.next;n.step(e,r)&&(n.ondestroy(),this.removeClip(n)),n=i}this._time=e,!t&&(this.trigger("frame",r),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0,(0,k.A)(function e(){t._running&&((0,k.A)(e),t._paused||t.update())})},e.prototype.start=function(){this._running||(this._time=X(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=X(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=X()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var e=t.next;t.prev=t.next=t.animation=null,t=e}this._head=this._tail=null},e.prototype.isFinished=function(){return null==this._head},e.prototype.animate=function(t,e){e=e||{},this.start();var r=new F.A(t,e.loop);return this.addAnimator(r),r},e}(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(t){var e=t.replace("mouse","pointer");return i.hasOwnProperty(e)?e:t}),{mouse:n,touch:["touchstart","touchend","touchmove"],pointer:a}),E=["mousemove","mouseup"],Y=["pointermove","pointerup"],D=!1;function Q(t){var e=t.pointerType;return"pen"===e||"touch"===e}function Z(t){t&&(t.zrByTouch=!0)}function B(t,e){for(var r=e,n=!1;r&&9!==r.nodeType&&!(n=r.domBelongToZr||r!==e&&r===t.painterRoot);)r=r.parentNode;return n}var K=function(t,e){this.stopPropagation=l.lQ,this.stopImmediatePropagation=l.lQ,this.preventDefault=l.lQ,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY},$={mousedown:function(t){t=(0,f.e0)(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=(0,f.e0)(this.dom,t);var e=this.__mayPointerCapture;e&&(t.zrX!==e[0]||t.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=(0,f.e0)(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){B(this,(t=(0,f.e0)(this.dom,t)).toElement||t.relatedTarget)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){D=!0,t=(0,f.e0)(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){D||(t=(0,f.e0)(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){Z(t=(0,f.e0)(this.dom,t)),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),$.mousemove.call(this,t),$.mousedown.call(this,t)},touchmove:function(t){Z(t=(0,f.e0)(this.dom,t)),this.handler.processGesture(t,"change"),$.mousemove.call(this,t)},touchend:function(t){Z(t=(0,f.e0)(this.dom,t)),this.handler.processGesture(t,"end"),$.mouseup.call(this,t),new Date-this.__lastTouchMoment<300&&$.click.call(this,t)},pointerdown:function(t){$.mousedown.call(this,t)},pointermove:function(t){Q(t)||$.mousemove.call(this,t)},pointerup:function(t){$.mouseup.call(this,t)},pointerout:function(t){Q(t)||$.mouseout.call(this,t)}};l.__(["click","dblclick","contextmenu"],function(t){$[t]=function(e){e=(0,f.e0)(this.dom,e),this.trigger(t,e)}});var G={pointermove:function(t){Q(t)||G.mousemove.call(this,t)},pointerup:function(t){G.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function H(t,e,r,n){t.mounted[e]=r,t.listenerOpts[e]=n,(0,f.q2)(t.domTarget,e,r,n)}function z(t){var e=t.mounted;for(var r in e)e.hasOwnProperty(r)&&(0,f.f)(t.domTarget,r,e[r],t.listenerOpts[r]);t.mounted={}}var J=function(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e},j=function(t){function e(e,r){var n,i,a=t.call(this)||this;return a.__pointerCapturing=!1,a.dom=e,a.painterRoot=r,a._localHandlerScope=new J(e,$),W&&(a._globalHandlerScope=new J(document,G)),i=(n=a._localHandlerScope).domHandlers,s.A.pointerEventsSupported?l.__(V.pointer,function(t){H(n,t,function(e){i[t].call(a,e)})}):(s.A.touchEventsSupported&&l.__(V.touch,function(t){H(n,t,function(e){i[t].call(a,e),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(t){H(n,t,function(e){e=(0,f.mK)(e),n.touching||i[t].call(a,e)})})),a}return(0,c.C6)(e,t),e.prototype.dispose=function(){z(this._localHandlerScope),W&&z(this._globalHandlerScope)},e.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},e.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,W&&this.__pointerCapturing^t){this.__pointerCapturing=t;var e=this._globalHandlerScope;t?function(t,e){s.A.pointerEventsSupported?l.__(Y,r):s.A.touchEventsSupported||l.__(E,r);function r(r){H(e,r,function(n){if(!B(t,(n=(0,f.mK)(n)).target)){var i;i=n,n=(0,f.e0)(t.dom,new K(t,i),!0),e.domHandlers[r].call(t,n)}},{capture:!0})}}(this,e):z(e)}},e}(d.A),q=r(47698),tt=r(73098),te=r(43870),tr={},tn={},ti=function(){function t(t,e,r){var n,i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!1,this._darkMode=!1,r=r||{},this.dom=e,this.id=t;var a=new C,o=r.renderer||"canvas";tr[o]||(o=l.HP(tr)[0]),r.useDirtyRect=null!=r.useDirtyRect&&r.useDirtyRect;var c=new tr[o](e,a,r,t),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 t.prototype.add=function(t){!this._disposed&&t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},t.prototype.remove=function(t){!this._disposed&&t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(t,e){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh())},t.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=function(t){if(!t)return!1;if("string"==typeof t)return(0,q.fN)(t,1)<tt.ps;if(t.colorStops){for(var e=t.colorStops,r=0,n=e.length,i=0;i<n;i++)r+=(0,q.fN)(e[i].color,1);return(r/=n)<tt.ps}return!1}(t))},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(t){this._darkMode=t},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(t){this._disposed||this._refresh({animUpdate:!t,refresh:!0,refreshHover:!1})},t.prototype._refresh=function(t){t.animUpdate&&this.animation.update(!0),this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh({refresh:t.refresh,refreshHover:t.refreshHover}),this._needsRefresh=this._needsRefreshHover=!1},t.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},t.prototype.flush=function(){this._disposed||this._flush(!0)},t.prototype._flush=function(t){var e,r=X(),n=this._needsRefresh,i=this._needsRefreshHover;(n||i)&&(e=!0,this._refresh({animUpdate:t,refresh:n,refreshHover:i}));var a=X();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:a-r})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},t.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._disposed||this._refresh({animUpdate:!1,refresh:!1,refreshHover:!0})},t.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},t.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},t.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},t.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},t.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},t.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},t.prototype.on=function(t,e,r){return this._disposed||this.handler.on(t,e,r),this},t.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},t.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},t.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof te.A&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},t.prototype.dispose=function(){if(!this._disposed){var t;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,t=this.id,delete tn[t]}},t}();function ta(t,e){var r=new ti(l.Os(),t,e);return tn[r.id]=r,r}function to(t,e){tr[t]=e}function ts(t){if("function"==typeof o)return o(t)}function tl(t){o=t}},9897(t,e,r){var n=r(1932);r.d(e,{},{D:t=>(e,r,i)=>(i.setState=(t,r,...i)=>e("function"==typeof t?(0,n.jM)(t):t,r,...i),t(i.setState,r,i))})},69157(t,e,r){r.d(e,{v:()=>o});var n=r(51649);let i=t=>{let e,r=new Set,n=(t,n)=>{let i="function"==typeof t?t(e):t;if(!Object.is(i,e)){let t=e;e=(null!=n?n:"object"!=typeof i||null===i)?i:Object.assign({},e,i),r.forEach(r=>r(e,t))}},i=()=>e,a={setState:n,getState:i,getInitialState:()=>o,subscribe:t=>(r.add(t),()=>r.delete(t))},o=e=t(n,i,a);return a},a=t=>{let e=t?i(t):i,r=t=>(function(t,e=t=>t){let r=n.default.useSyncExternalStore(t.subscribe,n.default.useCallback(()=>e(t.getState()),[t,e]),n.default.useCallback(()=>e(t.getInitialState()),[t,e]));return n.default.useDebugValue(r),r})(e,t);return Object.assign(r,e),r},o=t=>t?a(t):a},88501(t,e,r){r.d(e,{k:()=>a});var n=r(51649);let i=(t,e)=>{let r=t instanceof Map?t:new Map(t.entries()),n=e instanceof Map?e:new Map(e.entries());if(r.size!==n.size)return!1;for(let[t,e]of r)if(!n.has(t)||!Object.is(e,n.get(t)))return!1;return!0};function a(t){let e=n.default.useRef(void 0);return r=>{let n=t(r);return!function(t,e){if(Object.is(t,e))return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e||Object.getPrototypeOf(t)!==Object.getPrototypeOf(e))return!1;if(Symbol.iterator in t&&Symbol.iterator in e){if("entries"in t&&"entries"in e)return i(t,e);let r=t[Symbol.iterator](),n=e[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(t)},{entries:()=>Object.entries(e)})}(e.current,n)?e.current=n:e.current}}}};
|
|
142
|
+
`},tK.image=function(t,e,r,n,i){let a=t[e];return a.attrs[a.attrIndex("alt")][1]=i.renderInlineAsText(a.children,r,n),i.renderToken(t,e,r)},tK.hardbreak=function(t,e,r){return r.xhtmlOut?"<br />\n":"<br>\n"},tK.softbreak=function(t,e,r){return r.breaks?r.xhtmlOut?"<br />\n":"<br>\n":"\n"},tK.text=function(t,e){return tO(t[e].content)},tK.html_block=function(t,e){return t[e].content},tK.html_inline=function(t,e){return t[e].content};var t$=class{constructor(){tQ(this,"rules",Object.assign({},tK))}renderAttrs(t){let e,r,n;if(!t.attrs)return"";for(e=0,n="",r=t.attrs.length;e<r;e++)n+=` ${tO(t.attrs[e][0])}="${tO(String(t.attrs[e][1]))}"`;return n}renderToken(t,e,r){let n=t[e],i="";if(n.hidden)return"";let a=e-1;for(;a>=0&&t[a].hidden&&0===t[a].nesting;)a--;n.block&&-1!==n.nesting&&a>=0&&t[a].hidden&&-1===t[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=e+1;for(;r<t.length&&t[r].hidden&&0===t[r].nesting;)r++;if(r<t.length){let e=t[r];"inline"===e.type||e.hidden?o=!1:-1===e.nesting&&e.tag===n.tag&&(o=!1)}}return i+(o?">\n":">")}renderInline(t,e,r){let n="",i=this.rules;for(let a=0,o=t.length;a<o;a++){let o=t[a].type;void 0!==i[o]?n+=i[o](t,a,e,r,this):n+=this.renderToken(t,a,e)}return n}renderInlineAsText(t,e,r){let n="";for(let i=0,a=t.length;i<a;i++)switch(t[i].type){case"text":case"code_inline":case"html_inline":case"html_block":n+=t[i].content;break;case"image":n+=this.renderInlineAsText(t[i].children,e,r);break;case"softbreak":case"hardbreak":n+="\n"}return n}render(t,e,r){let n="",i=this.rules;for(let a=0,o=t.length;a<o;a++){let o=t[a].type;"inline"===o?n+=this.renderInline(t[a].children,e,r):void 0!==i[o]?n+=i[o](t,a,e,r,this):n+=this.renderToken(t,a,e)}return n}},tG=class{constructor(t,e,r){tQ(this,"tokens",[]),tQ(this,"inlineMode",!1),tQ(this,"Token",tZ),this.src=t,this.env=r,this.md=e}},tH=/\r\n?|\n/g,tz=/\0/g,tJ=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,tj=/\((c|tm|r)\)/i,tq=/\((c|tm|r)\)/gi,t0={c:"©",r:"®",tm:"™"};function t1(t,e){return t0[e.toLowerCase()]}var t2=/['"]/,t3=/['"]/g;function t5(t,e,r,n){t[e]||(t[e]=[]),t[e].push({pos:r,ch:n})}var t4=[["normalize",function(t){let e;e=(e=t.src.replace(tH,"\n")).replace(tz,"�"),t.src=e}],["block",function(t){let e;t.inlineMode?((e=new t.Token("inline","",0)).content=t.src,e.map=[0,1],e.children=[],t.tokens.push(e)):t.md.block.parse(t.src,t.md,t.env,t.tokens)}],["strip_references",function(t){let e=t.tokens,r=0;for(let t=0;t<e.length;t++)"reference_definition"!==e[t].type&&(t!==r&&(e[r]=e[t]),r++);e.length!==r&&(e.length=r)}],["inline",function(t){let e=t.tokens;for(let r=0,n=e.length;r<n;r++){let n=e[r];"inline"===n.type&&t.md.inline.parse(n.content,t.md,t.env,n.children)}}],["linkify",function(t){let e=t.tokens;if(t.md.options.linkify)for(let i=0,a=e.length;i<a;i++){if("inline"!==e[i].type||!t.md.linkify.test(e[i].content))continue;let a=e[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&&t.md.linkify.test(l.content)){let r=l.content,n=t.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 e=0;e<n.length;e++){let i=n[e].url,a=t.md.normalizeLink(i);if(!t.md.validateLink(a))continue;let s=n[e].text;s=n[e].schema?"mailto:"!==n[e].schema||/^mailto:/i.test(s)?t.md.normalizeLinkText(s):t.md.normalizeLinkText(`mailto:${s}`).replace(/^mailto:/,""):t.md.normalizeLinkText(`http://${s}`).replace(/^http:\/\//,"");let l=n[e].index;if(l>u){let e=new t.Token("text","",0);e.content=r.slice(u,l),e.level=c,o.push(e)}let h=new t.Token("link_open","a",1);h.attrs=[["href",a]],h.level=c++,h.markup="linkify",h.info="auto",o.push(h);let p=new t.Token("text","",0);p.content=s,p.level=c,o.push(p);let d=new t.Token("link_close","a",-1);d.level=--c,d.markup="linkify",d.info="auto",o.push(d),u=n[e].lastIndex}if(u<r.length){let e=new t.Token("text","",0);e.content=r.slice(u),e.level=c,o.push(e)}e[i].children=a=tf(a,s,o)}}}}],["replacements",function(t){let e;if(t.md.options.typographer)for(e=t.tokens.length-1;e>=0;e--)"inline"===t.tokens[e].type&&(tj.test(t.tokens[e].content)&&function(t){let e=0;for(let r=t.length-1;r>=0;r--){let n=t[r];"text"!==n.type||e||(n.content=n.content.replace(tq,t1)),"link_open"===n.type&&"auto"===n.info&&e--,"link_close"===n.type&&"auto"===n.info&&e++}}(t.tokens[e].children),tJ.test(t.tokens[e].content)&&function(t){let e=0;for(let r=t.length-1;r>=0;r--){let n=t[r];"text"===n.type&&!e&&tJ.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&&e--,"link_close"===n.type&&"auto"===n.info&&e++}}(t.tokens[e].children))}],["smartquotes",function(t){if(t.md.options.typographer)for(let e=t.tokens.length-1;e>=0;e--)"inline"===t.tokens[e].type&&t2.test(t.tokens[e].content)&&function(t,e){let r,n=[],i={};for(let a=0;a<t.length;a++){let o=t[a],s=t[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;){t3.lastIndex=c;let o=t3.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"!==t[r].type&&"hardbreak"!==t[r].type;r--)if(t[r].content){f=t[r].content.charCodeAt(t[r].content.length-1);break}let m=32;if(c<u)m=l.charCodeAt(c);else for(r=a+1;r<t.length&&"softbreak"!==t[r].type&&"hardbreak"!==t[r].type;r++)if(t[r].content){m=t[r].content.charCodeAt(0);break}let g=tC(f)||tI(f),A=tC(m)||tI(m),y=tT(f),v=tT(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&&t5(i,a,o.index,"’");continue}if(p)for(r=n.length-1;r>=0;r--){let t=n[r];if(n[r].level<s)break;if(t.single===d&&n[r].level===s){let s,l;t=n[r],d?(s=e.md.options.quotes[2],l=e.md.options.quotes[3]):(s=e.md.options.quotes[0],l=e.md.options.quotes[1]),t5(i,a,o.index,l),t5(i,t.token,t.pos,s),n.length=r;continue i}}h?n.push({token:a,pos:o.index,single:d,level:s}):p&&d&&t5(i,a,o.index,"’")}}Object.keys(i).forEach(function(e){let r=Number(e);t[r].content=function(t,e){let r="",n=0;e.sort((t,e)=>t.pos-e.pos);for(let i=0;i<e.length;i++){let a=e[i];r+=t.slice(n,a.pos)+a.ch,n=a.pos+1}return r+t.slice(n)}(t[r].content,i[e])})}(t.tokens[e].children,t)}],["text_join",function(t){let e,r,n=t.tokens,i=n.length;for(let t=0;t<i;t++){if("inline"!==n[t].type)continue;let i=n[t].children,a=i.length;for(e=0;e<a;e++)"text_special"===i[e].type&&(i[e].type="text"),i[e].children&&function(t){let e,r,n=t.length;for(e=0;e<n;e++)"text_special"===t[e].type&&(t[e].type="text");for(e=r=0;e<n;e++)"text"===t[e].type&&e+1<n&&"text"===t[e+1].type?t[e+1].content=t[e].content+t[e+1].content:(e!==r&&(t[r]=t[e]),r++);e!==r&&(t.length=r)}(i[e].children);for(e=r=0;e<a;e++)"text"===i[e].type&&e+1<a&&"text"===i[e+1].type?i[e+1].content=i[e].content+i[e+1].content:(e!==r&&(i[r]=i[e]),r++);e!==r&&(i.length=r)}}]],t6=class{constructor(){tQ(this,"ruler",new tB),tQ(this,"State",tG);for(let t=0;t<t4.length;t++)this.ruler.push(t4[t][0],t4[t][1])}process(t){let e=this.ruler.getRules("");for(let r=0,n=e.length;r<n;r++)e[r](t)}},t8=class{constructor(t,e,r,n){tQ(this,"bMarks",[]),tQ(this,"eMarks",[]),tQ(this,"tShift",[]),tQ(this,"sCount",[]),tQ(this,"bsCount",[]),tQ(this,"blkIndent",0),tQ(this,"line",0),tQ(this,"lineMax",0),tQ(this,"tight",!1),tQ(this,"listIndent",-1),tQ(this,"parentType","root"),tQ(this,"level",0),tQ(this,"Token",tZ),this.src=t,this.md=e,this.env=r,this.tokens=n;let i=this.src;for(let t=0,e=0,r=0,n=0,a=i.length,o=!1;e<a;e++){let s=i.charCodeAt(e);if(!o)if(t_(s)){r++,9===s?n+=4-n%4:n++;continue}else o=!0;(10===s||e===a-1)&&(10!==s&&e++,this.bMarks.push(t),this.eMarks.push(e),this.tShift.push(r),this.sCount.push(n),this.bsCount.push(0),o=!1,r=0,n=0,t=e+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(t,e,r){let n=new tZ(t,e,r);return n.block=!0,r<0&&this.level--,n.level=this.level,r>0&&this.level++,this.tokens.push(n),n}isEmpty(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]}skipEmptyLines(t){for(let e=this.lineMax;t<e&&!(this.bMarks[t]+this.tShift[t]<this.eMarks[t]);t++);return t}skipSpaces(t){for(let e=this.src.length;t<e&&t_(this.src.charCodeAt(t));t++);return t}skipSpacesBack(t,e){if(t<=e)return t;for(;t>e;)if(!t_(this.src.charCodeAt(--t)))return t+1;return t}skipChars(t,e){for(let r=this.src.length;t<r&&this.src.charCodeAt(t)===e;t++);return t}skipCharsBack(t,e,r){if(t<=r)return t;for(;t>r;)if(e!==this.src.charCodeAt(--t))return t+1;return t}getLines(t,e,r,n){if(t>=e)return"";let i=Array(e-t);for(let a=0,o=t;o<e;o++,a++){let t,s=0,l=this.bMarks[o],c=l;for(t=o+1<e||n?this.eMarks[o]+1:this.eMarks[o];c<t&&s<r;){let t=this.src.charCodeAt(c);if(t_(t))9===t?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,t):i[a]=this.src.slice(c,t)}return i.join("")}};function t9(t,e){let r=t.bMarks[e]+t.tShift[e],n=t.eMarks[e];return t.src.slice(r,n)}function t7(t){let e=[],r=t.length,n=0,i=t.charCodeAt(n),a=!1,o=0,s="";for(;n<r;)124===i&&(a?(s+=t.substring(o,n-1),o=n):(e.push(s+t.substring(o,n)),s="",o=n+1)),a=92===i,n++,i=t.charCodeAt(n);return e.push(s+t.substring(o)),e}function et(t,e){let r=t.eMarks[e],n=t.bMarks[e]+t.tShift[e],i=t.src.charCodeAt(n++);return 42!==i&&45!==i&&43!==i||n<r&&!t_(t.src.charCodeAt(n))?-1:n}function ee(t,e){let r=t.bMarks[e]+t.tShift[e],n=t.eMarks[e],i=r;if(i+1>=n)return -1;let a=t.src.charCodeAt(i++);if(a<48||a>57)return -1;for(;;){if(i>=n)return -1;if((a=t.src.charCodeAt(i++))>=48&&a<=57){if(i-r>=10)return -1;continue}if(41===a||46===a)break;return -1}return i<n&&!t_(a=t.src.charCodeAt(i))?-1:i}var er="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",en="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",ei=RegExp(`^(?:${er}|${en}|<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->|<[?][\\s\\S]*?[?]>|<![A-Za-z][^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)`),ea=RegExp(`^(?:${er}|${en})`),eo=[[/^<(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(`${ea.source}\\s*$`),/^$/,!1]],es=[["table",function(t,e,r,n){let i;if(e+2>r)return!1;let a=e+1;if(t.sCount[a]<t.blkIndent||t.sCount[a]-t.blkIndent>=4)return!1;let o=t.bMarks[a]+t.tShift[a];if(o>=t.eMarks[a])return!1;let s=t.src.charCodeAt(o++);if(124!==s&&45!==s&&58!==s||o>=t.eMarks[a])return!1;let l=t.src.charCodeAt(o++);if(124!==l&&45!==l&&58!==l&&!t_(l)||45===s&&t_(l))return!1;for(;o<t.eMarks[a];){let e=t.src.charCodeAt(o);if(124!==e&&45!==e&&58!==e&&!t_(e))return!1;o++}let c=t9(t,e+1),u=c.split("|"),h=[];for(let t=0;t<u.length;t++){let e=u[t].trim();if(!e)if(0===t||t===u.length-1)continue;else return!1;if(!/^:?-+:?$/.test(e))return!1;58===e.charCodeAt(e.length-1)?h.push(58===e.charCodeAt(0)?"center":"right"):58===e.charCodeAt(0)?h.push("left"):h.push("")}if(-1===(c=t9(t,e).trim()).indexOf("|")||t.sCount[e]-t.blkIndent>=4)return!1;(u=t7(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=t.parentType;t.parentType="table";let f=t.md.block.ruler.getRules("blockquote"),m=t.push("table_open","table",1),g=[e,0];m.map=g,t.push("thead_open","thead",1).map=[e,e+1],t.push("tr_open","tr",1).map=[e,e+1];for(let e=0;e<u.length;e++){let r=t.push("th_open","th",1);h[e]&&(r.attrs=[["style",`text-align:${h[e]}`]]);let n=t.push("inline","",0);n.content=u[e].trim(),n.children=[],t.push("th_close","th",-1)}t.push("tr_close","tr",-1),t.push("thead_close","thead",-1);let A=0;for(a=e+2;a<r&&!(t.sCount[a]<t.blkIndent);a++){let n=!1;for(let e=0,i=f.length;e<i;e++)if(f[e](t,a,r,!0)){n=!0;break}if(n||!(c=t9(t,a).trim())||t.sCount[a]-t.blkIndent>=4||((u=t7(c)).length&&""===u[0]&&u.shift(),u.length&&""===u[u.length-1]&&u.pop(),(A+=p-u.length)>65536))break;a===e+2&&(t.push("tbody_open","tbody",1).map=i=[e+2,0]),t.push("tr_open","tr",1).map=[a,a+1];for(let e=0;e<p;e++){let r=t.push("td_open","td",1);h[e]&&(r.attrs=[["style",`text-align:${h[e]}`]]);let n=t.push("inline","",0);n.content=u[e]?u[e].trim():"",n.children=[],t.push("td_close","td",-1)}t.push("tr_close","tr",-1)}return i&&(t.push("tbody_close","tbody",-1),i[1]=a),t.push("table_close","table",-1),g[1]=a,t.parentType=d,t.line=a,!0},["paragraph","reference"]],["code",function(t,e,r){if(t.sCount[e]-t.blkIndent<4)return!1;let n=e+1,i=n;for(;n<r;){if(t.isEmpty(n)){n++;continue}if(t.sCount[n]-t.blkIndent>=4){i=++n;continue}break}t.line=i;let a=t.push("code_block","code",0);return a.content=t.getLines(e,i,4+t.blkIndent,!1)+"\n",a.map=[e,t.line],!0}],["fence",function(t,e,r,n){let i=t.bMarks[e]+t.tShift[e],a=t.eMarks[e];if(t.sCount[e]-t.blkIndent>=4||i+3>a)return!1;let o=t.src.charCodeAt(i);if(126!==o&&96!==o)return!1;let s=i,l=(i=t.skipChars(i,o))-s;if(l<3)return!1;let c=t.src.slice(s,i),u=t.src.slice(i,a);if(96===o&&u.indexOf(String.fromCharCode(o))>=0)return!1;if(n)return!0;let h=e,p=!1;for(;!(++h>=r)&&(!((i=s=t.bMarks[h]+t.tShift[h])<(a=t.eMarks[h]))||!(t.sCount[h]<t.blkIndent));){;if(!(t.src.charCodeAt(i)!==o||t.sCount[h]-t.blkIndent>=4||(i=t.skipChars(i,o))-s<l)&&!((i=t.skipSpaces(i))<a)){p=!0;break}}l=t.sCount[e],t.line=h+ +!!p;let d=t.push("fence","code",0);return d.info=u,d.content=t.getLines(e+1,h,l,!0),d.markup=c,d.map=[e,t.line],!0},["paragraph","reference","blockquote","list"]],["blockquote",function(t,e,r,n){let i,a=t.bMarks[e]+t.tShift[e],o=t.eMarks[e],s=t.lineMax;if(t.sCount[e]-t.blkIndent>=4||62!==t.src.charCodeAt(a))return!1;if(n)return!0;let l=[],c=[],u=[],h=[],p=t.md.block.ruler.getRules("blockquote"),d=t.parentType;t.parentType="blockquote";let f=!1;for(i=e;i<r;i++){let e=t.sCount[i]<t.blkIndent;if((a=t.bMarks[i]+t.tShift[i])>=(o=t.eMarks[i]))break;if(62===t.src.charCodeAt(a++)&&!e){let e,r,n=t.sCount[i]+1;32===t.src.charCodeAt(a)?(a++,n++,r=!1,e=!0):9===t.src.charCodeAt(a)?(e=!0,(t.bsCount[i]+n)%4==3?(a++,n++,r=!1):r=!0):e=!1;let s=n;for(l.push(t.bMarks[i]),t.bMarks[i]=a;a<o;){let e=t.src.charCodeAt(a);if(t_(e))9===e?s+=4-(s+t.bsCount[i]+ +!!r)%4:s++;else break;a++}f=a>=o,c.push(t.bsCount[i]),t.bsCount[i]=t.sCount[i]+1+ +!!e,u.push(t.sCount[i]),t.sCount[i]=s-n,h.push(t.tShift[i]),t.tShift[i]=a-t.bMarks[i];continue}if(f)break;let n=!1;for(let e=0,a=p.length;e<a;e++)if(p[e](t,i,r,!0)){n=!0;break}if(n){t.lineMax=i,0!==t.blkIndent&&(l.push(t.bMarks[i]),c.push(t.bsCount[i]),h.push(t.tShift[i]),u.push(t.sCount[i]),t.sCount[i]-=t.blkIndent);break}l.push(t.bMarks[i]),c.push(t.bsCount[i]),h.push(t.tShift[i]),u.push(t.sCount[i]),t.sCount[i]=-1}let m=t.blkIndent;t.blkIndent=0;let g=t.push("blockquote_open","blockquote",1);g.markup=">";let A=[e,0];g.map=A,t.md.block.tokenize(t,e,i),t.push("blockquote_close","blockquote",-1).markup=">",t.lineMax=s,t.parentType=d,A[1]=t.line;for(let r=0;r<h.length;r++)t.bMarks[r+e]=l[r],t.tShift[r+e]=h[r],t.sCount[r+e]=u[r],t.bsCount[r+e]=c[r];return t.blkIndent=m,!0},["paragraph","reference","blockquote","list"]],["hr",function(t,e,r,n){let i=t.eMarks[e];if(t.sCount[e]-t.blkIndent>=4)return!1;let a=t.bMarks[e]+t.tShift[e],o=t.src.charCodeAt(a++);if(42!==o&&45!==o&&95!==o)return!1;let s=1;for(;a<i;){let e=t.src.charCodeAt(a++);if(e!==o&&!t_(e))return!1;e===o&&s++}if(s<3)return!1;if(n)return!0;t.line=e+1;let l=t.push("hr","hr",0);return l.map=[e,t.line],l.markup=Array(s+1).join(String.fromCharCode(o)),!0},["paragraph","reference","blockquote","list"]],["list",function(t,e,r,n){let i,a,o,s,l,c,u,h=e,p=!0;if(t.sCount[h]-t.blkIndent>=4||t.listIndent>=0&&t.sCount[h]-t.listIndent>=4&&t.sCount[h]<t.blkIndent)return!1;let d=!1;if(n&&"paragraph"===t.parentType&&t.sCount[h]>=t.blkIndent&&(d=!0),(u=ee(t,h))>=0){if(l=!0,o=t.bMarks[h]+t.tShift[h],c=Number(t.src.slice(o,u-1)),d&&1!==c)return!1}else{if(!((u=et(t,h))>=0))return!1;l=!1}if(d&&t.skipSpaces(u)>=t.eMarks[h])return!1;if(n)return!0;let f=t.src.charCodeAt(u-1),m=t.tokens.length;l?(s=t.push("ordered_list_open","ol",1),1!==c&&(s.attrs=[["start",c]])):s=t.push("bullet_list_open","ul",1);let g=[h,0];s.map=g,s.markup=String.fromCharCode(f);let A=!1,y=t.md.block.ruler.getRules("list"),v=t.parentType;for(t.parentType="list";h<r;){let e;a=u,i=t.eMarks[h];let n=t.sCount[h]+u-(t.bMarks[h]+t.tShift[h]),c=n;for(;a<i;){let e=t.src.charCodeAt(a);if(9===e)c+=4-(c+t.bsCount[h])%4;else if(32===e)c++;else break;a++}let d=a;(e=d>=i?1:c-n)>4&&(e=1);let m=n+e;(s=t.push("list_item_open","li",1)).markup=String.fromCharCode(f);let g=[h,0];s.map=g,l&&(s.info=t.src.slice(o,u-1));let v=t.tight,R=t.tShift[h],b=t.sCount[h],x=t.listIndent;if(t.listIndent=t.blkIndent,t.blkIndent=m,t.tight=!0,t.tShift[h]=d-t.bMarks[h],t.sCount[h]=c,d>=i&&t.isEmpty(h+1)?t.line=Math.min(t.line+2,r):t.md.block.tokenize(t,h,r),(!t.tight||A)&&(p=!1),A=t.line-h>1&&t.isEmpty(t.line-1),t.blkIndent=t.listIndent,t.listIndent=x,t.tShift[h]=R,t.sCount[h]=b,t.tight=v,(s=t.push("list_item_close","li",-1)).markup=String.fromCharCode(f),h=t.line,g[1]=h,h>=r||t.sCount[h]<t.blkIndent||t.sCount[h]-t.blkIndent>=4)break;let M=!1;for(let e=0,n=y.length;e<n;e++)if(y[e](t,h,r,!0)){M=!0;break}if(M)break;if(l){if((u=ee(t,h))<0)break;o=t.bMarks[h]+t.tShift[h]}else if((u=et(t,h))<0)break;if(f!==t.src.charCodeAt(u-1))break}return(s=l?t.push("ordered_list_close","ol",-1):t.push("bullet_list_close","ul",-1)).markup=String.fromCharCode(f),g[1]=h,t.line=h,t.parentType=v,p&&function(t,e){let r=t.level+2;for(let n=e+2,i=t.tokens.length-2;n<i;n++)t.tokens[n].level===r&&"paragraph_open"===t.tokens[n].type&&(t.tokens[n+2].hidden=!0,t.tokens[n].hidden=!0,n+=2)}(t,m),!0},["paragraph","reference","blockquote"]],["reference",function(t,e,r,n){let i,a=t.bMarks[e]+t.tShift[e],o=t.eMarks[e],s=e+1;if(t.sCount[e]-t.blkIndent>=4||91!==t.src.charCodeAt(a))return!1;function l(e){let r=t.lineMax;if(e>=r||t.isEmpty(e))return null;let n=!1;if(t.sCount[e]-t.blkIndent>3&&(n=!0),t.sCount[e]<0&&(n=!0),!n){let n=t.md.block.ruler.getRules("reference"),i=t.parentType;t.parentType="reference";let a=!1;for(let i=0,o=n.length;i<o;i++)if(n[i](t,e,r,!0)){a=!0;break}if(t.parentType=i,a)return null}let i=t.bMarks[e]+t.tShift[e],a=t.eMarks[e];return t.src.slice(i,a+1)}let c=t.src.slice(a,o+1);o=c.length;let u=-1;for(a=1;a<o;a++){let t=c.charCodeAt(a);if(91===t)return!1;if(93===t){u=a;break}if(10===t){let t=l(s);null!==t&&(c+=t,o=c.length,s++)}else if(92===t&&++a<o&&10===c.charCodeAt(a)){let t=l(s);null!==t&&(c+=t,o=c.length,s++)}}if(u<0||58!==c.charCodeAt(u+1))return!1;for(a=u+2;a<o;a++){let t=c.charCodeAt(a);if(10===t){let t=l(s);null!==t&&(c+=t,o=c.length,s++)}else if(t_(t));else break}let h=t.md.helpers.parseLinkDestination(c,a,o);if(!h.ok)return!1;let p=t.md.normalizeLink(h.str);if(!t.md.validateLink(p))return!1;let d=a=h.pos,f=s,m=a;for(;a<o;a++){let t=c.charCodeAt(a);if(10===t){let t=l(s);null!==t&&(c+=t,o=c.length,s++)}else if(t_(t));else break}let g=t.md.helpers.parseLinkTitle(c,a,o);for(;g.can_continue;){let e=l(s);if(null===e)break;c+=e,a=o,o=c.length,s++,g=t.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&&t_(c.charCodeAt(a));)a++;if(a<o&&10!==c.charCodeAt(a)&&i)for(i="",a=d,s=f;a<o&&t_(c.charCodeAt(a));)a++;if(a<o&&10!==c.charCodeAt(a))return!1;let A=tk(c.slice(1,u));if(!A)return!1;if(n)return!0;void 0===t.env.references&&(t.env.references={}),void 0===t.env.references[A]&&(t.env.references[A]={title:i,href:p});let y=t.push("reference_definition","",0);y.map=[e,s],y.hidden=!0;let v=Object.create(null);return v.label=A,y.meta=v,t.line=s,!0}],["html_block",function(t,e,r,n){let i=t.bMarks[e]+t.tShift[e],a=t.eMarks[e];if(t.sCount[e]-t.blkIndent>=4||!t.md.options.html||60!==t.src.charCodeAt(i))return!1;let o=t.src.slice(i,a),s=0;for(;s<eo.length&&!eo[s][0].test(o);s++);if(s===eo.length)return!1;if(n)return eo[s][2];let l=e+1,c=eo[s][1].test("");if(!eo[s][1].test(o)){for(;l<r&&(!(t.sCount[l]<t.blkIndent)||!c&&t.isEmpty(l));l++)if(i=t.bMarks[l]+t.tShift[l],a=t.eMarks[l],o=t.src.slice(i,a),eo[s][1].test(o)){0!==o.length&&l++;break}}t.line=l;let u=t.push("html_block","",0);return u.map=[e,l],u.content=t.getLines(e,l,t.blkIndent,!0),!0},["paragraph","reference","blockquote"]],["heading",function(t,e,r,n){let i=t.bMarks[e]+t.tShift[e],a=t.eMarks[e];if(t.sCount[e]-t.blkIndent>=4)return!1;let o=t.src.charCodeAt(i);if(35!==o||i>=a)return!1;let s=1;for(o=t.src.charCodeAt(++i);35===o&&i<a&&s<=6;)s++,o=t.src.charCodeAt(++i);if(s>6||i<a&&!t_(o))return!1;if(n)return!0;a=t.skipSpacesBack(a,i);let l=t.skipCharsBack(a,35,i);l>i&&t_(t.src.charCodeAt(l-1))&&(a=l),t.line=e+1;let c=t.push("heading_open",`h${s}`,1);c.markup="########".slice(0,s),c.map=[e,t.line];let u=t.push("inline","",0);return u.content=tX(t.src.slice(i,a)),u.map=[e,t.line],u.children=[],t.push("heading_close",`h${s}`,-1).markup="########".slice(0,s),!0},["paragraph","reference","blockquote"]],["lheading",function(t,e,r){let n,i=t.md.block.ruler.getRules("paragraph");if(t.sCount[e]-t.blkIndent>=4)return!1;let a=t.parentType;t.parentType="paragraph";let o=0,s=e+1;for(;s<r&&!t.isEmpty(s);s++){if(t.sCount[s]-t.blkIndent>3)continue;if(t.sCount[s]>=t.blkIndent){let e=t.bMarks[s]+t.tShift[s],r=t.eMarks[s];if(e<r&&(45===(n=t.src.charCodeAt(e))||61===n)&&(e=t.skipChars(e,n),(e=t.skipSpaces(e))>=r)){o=61===n?1:2;break}}if(t.sCount[s]<0)continue;let e=!1;for(let n=0,a=i.length;n<a;n++)if(i[n](t,s,r,!0)){e=!0;break}if(e)break}if(!o)return t.parentType=a,!1;let l=tX(t.getLines(e,s,t.blkIndent,!1));t.line=s+1;let c=t.push("heading_open",`h${o}`,1);c.markup=String.fromCharCode(n),c.map=[e,t.line];let u=t.push("inline","",0);return u.content=l,u.map=[e,t.line-1],u.children=[],t.push("heading_close",`h${o}`,-1).markup=String.fromCharCode(n),t.parentType=a,!0}],["paragraph",function(t,e,r){let n=t.md.block.ruler.getRules("paragraph"),i=t.parentType,a=e+1;for(t.parentType="paragraph";a<r&&!t.isEmpty(a);a++){if(t.sCount[a]-t.blkIndent>3||t.sCount[a]<0)continue;let e=!1;for(let i=0,o=n.length;i<o;i++)if(n[i](t,a,r,!0)){e=!0;break}if(e)break}let o=tX(t.getLines(e,a,t.blkIndent,!1));t.line=a,t.push("paragraph_open","p",1).map=[e,t.line];let s=t.push("inline","",0);return s.content=o,s.map=[e,t.line],s.children=[],t.push("paragraph_close","p",-1),t.parentType=i,!0}]],el=class{constructor(){tQ(this,"ruler",new tB),tQ(this,"State",t8);for(let t=0;t<es.length;t++)this.ruler.push(es[t][0],es[t][1],{alt:(es[t][2]||[]).slice()})}tokenize(t,e,r){let n=this.ruler.getRules(""),i=n.length,a=t.md.options.maxNesting,o=e,s=!1;for(;o<r&&(t.line=o=t.skipEmptyLines(o),!(o>=r)&&!(t.sCount[o]<t.blkIndent));){if(t.level>=a){t.line=r;break}let e=t.line,l=!1;for(let a=0;a<i;a++)if(l=n[a](t,o,r,!1)){if(e>=t.line)throw Error("block rule didn't increment state.line");break}if(!l)throw Error("none of the block rules matched");t.tight=!s,t.isEmpty(t.line-1)&&(s=!0),(o=t.line)<r&&t.isEmpty(o)&&(s=!0,t.line=++o)}}parse(t,e,r,n){if(!t)return;let i=new this.State(t,e,r,n);this.tokenize(i,i.line,i.lineMax)}},ec=class{constructor(t,e,r,n){tQ(this,"pos",0),tQ(this,"level",0),tQ(this,"pending",""),tQ(this,"pendingLevel",0),tQ(this,"cache",{}),tQ(this,"backticks",{}),tQ(this,"backticksScanned",!1),tQ(this,"linkLevel",0),tQ(this,"delimiters",[]),tQ(this,"_prev_delimiters",[]),tQ(this,"Token",tZ),this.src=t,this.env=r,this.md=e,this.tokens=n,this.tokens_meta=Array(n.length),this.posMax=this.src.length}pushPending(){let t=new tZ("text","",0);return t.content=this.pending,t.level=this.pendingLevel,this.tokens.push(t),this.pending="",t}push(t,e,r){let n;this.pending&&this.pushPending();let i=new tZ(t,e,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(t,e){let r,n=this.posMax,i=this.src.charCodeAt(t);if(0===t)r=32;else if(1===t)(63488&(r=this.src.charCodeAt(0)))==55296&&(r=65533);else if((64512&(r=this.src.charCodeAt(t-1)))==56320){let e=this.src.charCodeAt(t-2);r=(64512&e)==55296?65536+(e-55296<<10)+(r-56320):65533}else(64512&r)==55296&&(r=65533);let a=t;for(;a<n&&this.src.charCodeAt(a)===i;)a++;let o=a-t,s=a<n?this.src.charCodeAt(a):32;if((64512&s)==55296){let t=this.src.charCodeAt(a+1);s=(64512&t)==56320?65536+(s-55296<<10)+(t-56320):65533}else(64512&s)==56320&&(s=65533);let l=tC(r)||tI(r),c=tC(s)||tI(s),u=tT(r),h=tT(s),p=!h&&(!c||u||l),d=!u&&(!l||h||c);return{can_open:p&&(e||!d||l),can_close:d&&(e||!p||c),length:o}}},eu=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i,eh=[];for(let t=0;t<256;t++)eh.push(0);function ep(t,e){let r,n=[],i=e.length;for(let a=0;a<i;a++){let i=e[a];if(126!==i.marker||-1===i.end)continue;let o=e[i.end];(r=t.tokens[i.token]).type="s_open",r.tag="s",r.nesting=1,r.markup="~~",r.content="",(r=t.tokens[o.token]).type="s_close",r.tag="s",r.nesting=-1,r.markup="~~",r.content="","text"===t.tokens[o.token-1].type&&"~"===t.tokens[o.token-1].content&&n.push(o.token-1)}for(;n.length;){let e=n.pop(),i=e+1;for(;i<t.tokens.length&&"s_close"===t.tokens[i].type;)i++;e!==--i&&(r=t.tokens[i],t.tokens[i]=t.tokens[e],t.tokens[e]=r)}}"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(t){eh[t.charCodeAt(0)]=1});function ed(t,e){let r=e.length;for(let n=r-1;n>=0;n--){let r=e[n];if(95!==r.marker&&42!==r.marker||-1===r.end)continue;let i=e[r.end],a=n>0&&e[n-1].end===r.end+1&&e[n-1].marker===r.marker&&e[n-1].token===r.token-1&&e[r.end+1].token===i.token+1,o=String.fromCharCode(r.marker),s=t.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=t.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&&(t.tokens[e[n-1].token].content="",t.tokens[e[r.end+1].token].content="",n--)}}var ef=/^([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])?)*)$/,em=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/,eg=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,eA=/^&([a-z][a-z0-9]{1,31});/i;function ey(t){let e={},r=t.length;if(!r)return;let n=0,i=-2,a=[];for(let o=0;o<r;o++){let r=t[o];if(a.push(0),(t[n].marker!==r.marker||i!==r.token-1)&&(n=o),i=r.token,r.length=r.length||0,!r.close)continue;e.hasOwnProperty(r.marker)||(e[r.marker]=[-1,-1,-1,-1,-1,-1]);let s=e[r.marker][3*!!r.open+r.length%3],l=n-a[n]-1,c=l;for(;l>s;l-=a[l]+1){let e=t[l];if(e.marker===r.marker&&e.open&&e.end<0){let n=!1;if((e.close||r.open)&&(e.length+r.length)%3==0&&(e.length%3!=0||r.length%3!=0)&&(n=!0),!n){let n=l>0&&!t[l-1].open?a[l-1]+1:0;a[o]=o-l+n,a[l]=n,r.open=!1,e.end=o,e.close=!1,c=-1,i=-2;break}}}-1!==c&&(e[r.marker][3*!!r.open+(r.length||0)%3]=c)}}var ev=[["text",function(t,e){let r=t.pos;for(;r<t.posMax&&!function(t){switch(t){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}}(t.src.charCodeAt(r));)r++;return r!==t.pos&&(e||(t.pending+=t.src.slice(t.pos,r)),t.pos=r,!0)}],["linkify",function(t,e){if(!t.md.options.linkify||t.linkLevel>0)return!1;let r=t.pos;if(r+3>t.posMax||58!==t.src.charCodeAt(r)||47!==t.src.charCodeAt(r+1)||47!==t.src.charCodeAt(r+2))return!1;let n=t.pending.match(eu);if(!n)return!1;let i=n[1],a=t.md.linkify.matchAtStart(t.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=t.md.normalizeLink(o);if(!t.md.validateLink(l))return!1;if(!e){t.pending=t.pending.slice(0,-i.length);let e=t.push("link_open","a",1);e.attrs=[["href",l]],e.markup="linkify",e.info="auto",t.push("text","",0).content=t.md.normalizeLinkText(o);let r=t.push("link_close","a",-1);r.markup="linkify",r.info="auto"}return t.pos+=o.length-i.length,!0}],["newline",function(t,e){let r=t.pos;if(10!==t.src.charCodeAt(r))return!1;let n=t.pending.length-1,i=t.posMax;if(!e)if(n>=0&&32===t.pending.charCodeAt(n))if(n>=1&&32===t.pending.charCodeAt(n-1)){let e=n-1;for(;e>=1&&32===t.pending.charCodeAt(e-1);)e--;t.pending=t.pending.slice(0,e),t.push("hardbreak","br",0)}else t.pending=t.pending.slice(0,-1),t.push("softbreak","br",0);else t.push("softbreak","br",0);for(r++;r<i&&t_(t.src.charCodeAt(r));)r++;return t.pos=r,!0}],["escape",function(t,e){let r=t.pos,n=t.posMax;if(92!==t.src.charCodeAt(r)||++r>=n)return!1;let i=t.src.charCodeAt(r);if(10===i){for(e||t.push("hardbreak","br",0),r++;r<n&&t_(i=t.src.charCodeAt(r));)r++;return t.pos=r,!0}if(32===i){if(!e){let e=t.push("text_special","",0);e.content="\\",e.markup="\\",e.info="escape"}return t.pos=r,!0}let a=t.src[r];if(i>=55296&&i<=56319&&r+1<n){let e=t.src.charCodeAt(r+1);e>=56320&&e<=57343&&(a+=t.src[r+1],r++)}let o="\\"+a;if(!e){let e=t.push("text_special","",0);i<256&&0!==eh[i]?e.content=a:e.content=o,e.markup=o,e.info="escape"}return t.pos=r+1,!0}],["backticks",function(t,e){let r,n=t.pos;if(96!==t.src.charCodeAt(n))return!1;let i=n;n++;let a=t.posMax;for(;n<a&&96===t.src.charCodeAt(n);)n++;let o=t.src.slice(i,n),s=o.length;if(t.backticksScanned&&(t.backticks[s]||0)<=i)return e||(t.pending+=o),t.pos+=s,!0;let l=n;for(;-1!==(r=t.src.indexOf("`",l));){for(l=r+1;l<a&&96===t.src.charCodeAt(l);)l++;let i=l-r;if(i===s){if(!e){let e=t.push("code_inline","code",0);e.markup=o,e.content=t.src.slice(n,r).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return t.pos=l,!0}t.backticks[i]=r}return t.backticksScanned=!0,e||(t.pending+=o),t.pos+=s,!0}],["strikethrough",function(t,e){let r=t.pos,n=t.src.charCodeAt(r);if(e||126!==n)return!1;let i=t.scanDelims(t.pos,!0),a=i.length,o=String.fromCharCode(n);if(a<2)return!1;a%2&&(t.push("text","",0).content=o,a--);for(let e=0;e<a;e+=2)t.push("text","",0).content=o+o,t.delimiters.push({marker:n,length:0,token:t.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return t.pos+=i.length,!0}],["emphasis",function(t,e){let r=t.pos,n=t.src.charCodeAt(r);if(e||95!==n&&42!==n)return!1;let i=t.scanDelims(t.pos,42===n);for(let e=0;e<i.length;e++)t.push("text","",0).content=String.fromCharCode(n),t.delimiters.push({marker:n,length:i.length,token:t.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return t.pos+=i.length,!0}],["link",function(t,e){let r,n,i,a,o="",s="",l=t.pos,c=!0;if(91!==t.src.charCodeAt(t.pos))return!1;let u=t.pos,h=t.posMax,p=t.pos+1,d=t.md.helpers.parseLinkLabel(t,t.pos,!0);if(d<0)return!1;let f=d+1;if(f<h&&40===t.src.charCodeAt(f)){for(c=!1,f++;f<h&&(t_(r=t.src.charCodeAt(f))||10===r);f++);if(f>=h)return!1;if(l=f,(i=t.md.helpers.parseLinkDestination(t.src,f,t.posMax)).ok){for(o=t.md.normalizeLink(i.str),t.md.validateLink(o)?f=i.pos:o="",l=f;f<h&&(t_(r=t.src.charCodeAt(f))||10===r);f++);if(i=t.md.helpers.parseLinkTitle(t.src,f,t.posMax),f<h&&l!==f&&i.ok)for(s=i.str,f=i.pos;f<h&&(t_(r=t.src.charCodeAt(f))||10===r);f++);}(f>=h||41!==t.src.charCodeAt(f))&&(c=!0),f++}if(c){if(void 0===t.env.references)return!1;if(f<h&&91===t.src.charCodeAt(f)?(l=f+1,(f=t.md.helpers.parseLinkLabel(t,f))>=0?n=t.src.slice(l,f++):f=d+1):f=d+1,n||(n=t.src.slice(p,d)),n=tk(n),!(a=t.env.references[n]))return t.pos=u,!1;o=a.href,s=a.title}if(!e){t.pos=p,t.posMax=d;let e=t.push("link_open","a",1),r=[["href",o]];if(e.attrs=r,s&&r.push(["title",s]),n){let t=Object.create(null);t.label=n,e.meta=t}t.linkLevel++,t.md.inline.tokenize(t),t.linkLevel--,t.push("link_close","a",-1)}return t.pos=f,t.posMax=h,!0}],["image",function(t,e){let r,n,i,a,o,s,l,c,u="",h=t.pos,p=t.posMax;if(33!==t.src.charCodeAt(t.pos)||91!==t.src.charCodeAt(t.pos+1))return!1;let d=t.pos+2,f=t.md.helpers.parseLinkLabel(t,t.pos+1,!1);if(f<0)return!1;if((a=f+1)<p&&40===t.src.charCodeAt(a)){for(a++;a<p&&(t_(r=t.src.charCodeAt(a))||10===r);a++);if(a>=p)return!1;for(c=a,(s=t.md.helpers.parseLinkDestination(t.src,a,t.posMax)).ok&&(u=t.md.normalizeLink(s.str),t.md.validateLink(u)?a=s.pos:u=""),c=a;a<p&&(t_(r=t.src.charCodeAt(a))||10===r);a++);if(s=t.md.helpers.parseLinkTitle(t.src,a,t.posMax),a<p&&c!==a&&s.ok)for(l=s.str,a=s.pos;a<p&&(t_(r=t.src.charCodeAt(a))||10===r);a++);else l="";if(a>=p||41!==t.src.charCodeAt(a))return t.pos=h,!1;a++}else{if(void 0===t.env.references)return!1;if(a<p&&91===t.src.charCodeAt(a)?(c=a+1,(a=t.md.helpers.parseLinkLabel(t,a))>=0?i=t.src.slice(c,a++):a=f+1):a=f+1,i||(i=t.src.slice(d,f)),i=tk(i),!(o=t.env.references[i]))return t.pos=h,!1;u=o.href,l=o.title}if(!e){n=t.src.slice(d,f);let e=[];t.md.inline.parse(n,t.md,t.env,e);let r=t.push("image","img",0),a=[["src",u],["alt",""]];if(r.attrs=a,r.children=e,r.content=n,l&&a.push(["title",l]),i){let t=Object.create(null);t.label=i,r.meta=t}}return t.pos=a,t.posMax=p,!0}],["autolink",function(t,e){let r=t.pos;if(60!==t.src.charCodeAt(r))return!1;let n=t.pos,i=t.posMax;for(;;){if(++r>=i)return!1;let e=t.src.charCodeAt(r);if(60===e)return!1;if(62===e)break}let a=t.src.slice(n+1,r);if(em.test(a)){let r=t.md.normalizeLink(a);if(!t.md.validateLink(r))return!1;if(!e){let e=t.push("link_open","a",1);e.attrs=[["href",r]],e.markup="autolink",e.info="auto",t.push("text","",0).content=t.md.normalizeLinkText(a);let n=t.push("link_close","a",-1);n.markup="autolink",n.info="auto"}return t.pos+=a.length+2,!0}if(ef.test(a)){let r=t.md.normalizeLink(`mailto:${a}`);if(!t.md.validateLink(r))return!1;if(!e){let e=t.push("link_open","a",1);e.attrs=[["href",r]],e.markup="autolink",e.info="auto",t.push("text","",0).content=t.md.normalizeLinkText(a);let n=t.push("link_close","a",-1);n.markup="autolink",n.info="auto"}return t.pos+=a.length+2,!0}return!1}],["html_inline",function(t,e){let r;if(!t.md.options.html)return!1;let n=t.posMax,i=t.pos;if(60!==t.src.charCodeAt(i)||i+2>=n)return!1;let a=t.src.charCodeAt(i+1);if(33!==a&&63!==a&&47!==a&&(!((r=32|a)>=97)||!(r<=122)))return!1;let o=t.src.slice(i).match(ei);if(!o)return!1;if(!e){var s,l;let e=t.push("html_inline","",0);e.content=o[0],s=e.content,/^<a[>\s]/i.test(s)&&t.linkLevel++,l=e.content,/^<\/a\s*>/i.test(l)&&t.linkLevel--}return t.pos+=o[0].length,!0}],["entity",function(t,e){let r=t.pos,n=t.posMax;if(38!==t.src.charCodeAt(r)||r+1>=n)return!1;if(35===t.src.charCodeAt(r+1)){let n=t.src.slice(r).match(eg);if(n){if(!e){let e="x"===n[1][0].toLowerCase()?parseInt(n[1].slice(1),16):parseInt(n[1],10),r=t.push("text_special","",0);r.content=tm(e)?tg(e):tg(65533),r.markup=n[0],r.info="entity"}return t.pos+=n[0].length,!0}}else{let n=t.src.slice(r).match(eA);if(n){let r=B(n[0]);if(r!==n[0]){if(!e){let e=t.push("text_special","",0);e.content=r,e.markup=n[0],e.info="entity"}return t.pos+=n[0].length,!0}}}return!1}]],eR=[["balance_pairs",function(t){let e=t.tokens_meta,r=t.tokens_meta.length;ey(t.delimiters);for(let t=0;t<r;t++){var n;let r=null==(n=e[t])?void 0:n.delimiters;r&&ey(r)}}],["strikethrough",function(t){let e=t.tokens_meta,r=t.tokens_meta.length;ep(t,t.delimiters);for(let i=0;i<r;i++){var n;let r=null==(n=e[i])?void 0:n.delimiters;r&&ep(t,r)}}],["emphasis",function(t){let e=t.tokens_meta,r=t.tokens_meta.length;ed(t,t.delimiters);for(let i=0;i<r;i++){var n;let r=null==(n=e[i])?void 0:n.delimiters;r&&ed(t,r)}}],["fragments_join",function(t){let e,r,n=0,i=t.tokens,a=t.tokens.length;for(e=r=0;e<a;e++)i[e].nesting<0&&n--,i[e].level=n,i[e].nesting>0&&n++,"text"===i[e].type&&e+1<a&&"text"===i[e+1].type?i[e+1].content=i[e].content+i[e+1].content:(e!==r&&(i[r]=i[e]),r++);e!==r&&(i.length=r)}]],eb=class{constructor(){tQ(this,"ruler",new tB),tQ(this,"ruler2",new tB),tQ(this,"State",ec);for(let t=0;t<ev.length;t++)this.ruler.push(ev[t][0],ev[t][1]);for(let t=0;t<eR.length;t++)this.ruler2.push(eR[t][0],eR[t][1])}skipToken(t){let e=t.pos,r=this.ruler.getRules(""),n=r.length,i=t.md.options.maxNesting,a=t.cache;if(void 0!==a[e]){t.pos=a[e];return}let o=!1;if(t.level<i){for(let i=0;i<n;i++)if(t.level++,o=r[i](t,!0),t.level--,o){if(e>=t.pos)throw Error("inline rule didn't increment state.pos");break}}else t.pos=t.posMax;!o&&t.pos++,a[e]=t.pos}tokenize(t){let e=this.ruler.getRules(""),r=e.length,n=t.posMax,i=t.md.options.maxNesting;for(;t.pos<n;){let a=t.pos,o=!1;if(t.level<i){for(let n=0;n<r;n++)if(o=e[n](t,!1)){if(a>=t.pos)throw Error("inline rule didn't increment state.pos");break}}if(o){if(t.pos>=n)break;continue}t.pending+=t.src[t.pos++]}t.pending&&t.pushPending()}parse(t,e,r,n){let i=new this.State(t,e,r,n);this.tokenize(i);let a=this.ruler2.getRules(""),o=a.length;for(let t=0;t<o;t++)a[t](i)}},ex={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"]}}}},eM=/^(vbscript|javascript|file|data):/,eS=/^data:image\/(gif|png|jpeg|webp);/,ew=["http:","https:","mailto:"],eO=class{validateLink(t){let e=t.trim().toLowerCase();return!eM.test(e)||eS.test(e)}normalizeLink(t){let e=C(t,!0);if(e.hostname&&(!e.protocol||ew.indexOf(e.protocol)>=0))try{var r;r=e.hostname,e.hostname=ta(r,function(t){return q.test(t)?"xn--"+tc(t):t})}catch(t){}return b(x(e))}normalizeLinkText(t){let e=C(t,!0);if(e.hostname&&(!e.protocol||ew.indexOf(e.protocol)>=0))try{var r;r=e.hostname,e.hostname=ta(r,function(t){return j.test(t)?tl(t.slice(4).toLowerCase()):t})}catch(t){}return y(x(e),y.defaultChars+"%")}constructor(...t){tQ(this,"inline",new eb),tQ(this,"block",new el),tQ(this,"core",new t6),tQ(this,"renderer",new t$),tQ(this,"linkify",new J),tQ(this,"utils",tp),tQ(this,"helpers",Object.assign({},tY));let[e,r]=t;"string"==typeof e?(this.configure(e),r&&this.set(r)):(this.configure("default"),this.set(e||{}))}set(t){return Object.assign(this.options,t),this}configure(t){let e;if("string"==typeof t){if(!(e=ex[t]))throw Error(`Wrong 'markdown-it' preset "${t}", check name`)}else e=t;if(!e)throw Error("Wrong `markdown-it` preset, can't be empty");e.options&&(this.options={...e.options});let r=e.components;if(r){var n;["core","block","inline"].forEach(t=>{var e;let n=null==(e=r[t])?void 0:e.rules;n&&this[t].ruler.enableOnly(n)});let t=null==(n=r.inline)?void 0:n.rules2;t&&this.inline.ruler2.enableOnly(t)}return this}enable(t,e=!1){let r=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(e=>{r=r.concat(this[e].ruler.enable(t,!0))}),r=r.concat(this.inline.ruler2.enable(t,!0));let n=t.filter(t=>0>r.indexOf(t));if(n.length&&!e)throw Error(`MarkdownIt. Failed to enable unknown rule(s): ${n}`);return this}disable(t,e=!1){let r=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(e=>{r=r.concat(this[e].ruler.disable(t,!0))}),r=r.concat(this.inline.ruler2.disable(t,!0));let n=t.filter(t=>0>r.indexOf(t));if(n.length&&!e)throw Error(`MarkdownIt. Failed to disable unknown rule(s): ${n}`);return this}use(t,...e){return t.apply(t,[this,...e]),this}parse(t,e){if("string"!=typeof t)throw Error("Input data should be a String");let r=new this.core.State(t,this,e);return this.core.process(r),r.tokens}render(t,e={}){return this.renderer.render(this.parse(t,e),this.options,e)}parseInline(t,e){let r=new this.core.State(t,this,e);return r.inlineMode=!0,this.core.process(r),r.tokens}renderInline(t,e={}){return this.renderer.render(this.parseInline(t,e),this.options,e)}};tQ(eO,"Token",tZ),tQ(eO,"Ruler",tB),tQ(eO,"Renderer",t$),tQ(eO,"ParserCore",t6),tQ(eO,"StateCore",tG),tQ(eO,"ParserBlock",el),tQ(eO,"StateBlock",t8),tQ(eO,"ParserInline",eb),tQ(eO,"StateInline",ec);var eN=td(eO)},95802(t,e,r){let n,i,a=new Uint16Array(("Ȁaglq \x15\x18\x1bɭ\x0f\0\0\x12p;䀦os;䀧t;䀾t;䀼uot;䀢".split("")).map(t=>t.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(t){let e="";return t>65535&&(t-=65536,e+=String.fromCharCode(t>>>10&1023|55296),t=56320|1023&t),e+=String.fromCharCode(t)};function l(t){return t>=F.ZERO&&t<=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",(I=U||(U={}))[I.EntityStart=0]="EntityStart",I[I.NumericStart=1]="NumericStart",I[I.NumericDecimal=2]="NumericDecimal",I[I.NumericHex=3]="NumericHex",I[I.NamedEntity=4]="NamedEntity",(C=W||(W={}))[C.Legacy=0]="Legacy",C[C.Strict=1]="Strict",C[C.Attribute=2]="Attribute";let c=(n="",i=new class t{constructor(t,e,r){this.decodeTree=t,this.emitCodePoint=e,this.errors=r,this.state=U.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=W.Strict}startEntity(t){this.decodeMode=t,this.state=U.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,e){switch(this.state){case U.EntityStart:if(t.charCodeAt(e)===F.NUM)return this.state=U.NumericStart,this.consumed+=1,this.stateNumericStart(t,e+1);return this.state=U.NamedEntity,this.stateNamedEntity(t,e);case U.NumericStart:return this.stateNumericStart(t,e);case U.NumericDecimal:return this.stateNumericDecimal(t,e);case U.NumericHex:return this.stateNumericHex(t,e);case U.NamedEntity:return this.stateNamedEntity(t,e)}}stateNumericStart(t,e){return e>=t.length?-1:(32|t.charCodeAt(e))===F.LOWER_X?(this.state=U.NumericHex,this.consumed+=1,this.stateNumericHex(t,e+1)):(this.state=U.NumericDecimal,this.stateNumericDecimal(t,e))}addToNumericResult(t,e,r,n){if(e!==r){let i=r-e;this.result=this.result*Math.pow(n,i)+Number.parseInt(t.substr(e,i),n),this.consumed+=i}}stateNumericHex(t,e){let r=e;for(;e<t.length;){var n;let i=t.charCodeAt(e);if(!l(i)&&(!((n=i)>=F.UPPER_A)||!(n<=F.UPPER_F))&&(!(n>=F.LOWER_A)||!(n<=F.LOWER_F)))return this.addToNumericResult(t,r,e,16),this.emitNumericEntity(i,3);e+=1}return this.addToNumericResult(t,r,e,16),-1}stateNumericDecimal(t,e){let r=e;for(;e<t.length;){let n=t.charCodeAt(e);if(!l(n))return this.addToNumericResult(t,r,e,10),this.emitNumericEntity(n,2);e+=1}return this.addToNumericResult(t,r,e,10),-1}emitNumericEntity(t,e){var r,n,i;if(this.consumed<=e)return null==(r=this.errors)||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===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&&(t!==F.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,e){let{decodeTree:r}=this,n=r[this.treeIndex],i=(n&X.VALUE_LENGTH)>>14;for(;e<t.length;e++,this.excess++){let a=t.charCodeAt(e);if(this.treeIndex=function(t,e,r,n){let i=(e&X.BRANCH_LENGTH)>>7,a=e&X.JUMP_TABLE;if(0===i)return 0!==a&&n===a?r:-1;if(a){let e=n-a;return e<0||e>=i?-1:t[r+e]-1}let o=r,s=o+i-1;for(;o<=s;){let e=o+s>>>1,r=t[e];if(r<n)o=e+1;else{if(!(r>n))return t[e+i];s=e-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(t){var e;return t===F.EQUALS||(e=t)>=F.UPPER_A&&e<=F.UPPER_Z||e>=F.LOWER_A&&e<=F.LOWER_Z||l(e)}(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 t;let{result:e,decodeTree:r}=this,n=(r[e]&X.VALUE_LENGTH)>>14;return this.emitNamedEntityData(e,n,this.consumed),null==(t=this.errors)||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,e,r){let{decodeTree:n}=this;return this.emitCodePoint(1===e?n[t]&~X.VALUE_LENGTH:n[t+1],r),3===e&&this.emitCodePoint(n[t+2],r),r}end(){var t;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==(t=this.errors)||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case U.EntityStart:return 0}}}(a,t=>n+=s(t)),function(t,e){let r=0,a=0;for(;(a=t.indexOf("&",a))>=0;){n+=t.slice(r,a),i.startEntity(e);let o=i.write(t,a+1);if(o<0){r=a+i.end();break}r=a+o,a=0===o?r+1:r}let o=n+t.slice(r);return n="",o});function u(t){return c(t,W.Strict)}let h=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?("[^"]*"|'[^']*')/g;function p(t,e={}){let r={type:"tag",name:"",voidElement:!1,attribs:{},children:[]},n=t.match(/<\/?([^\s]+?)[/\s>]/);if(n&&(r.name=n[1],"/"===t.charAt(t.length-2)&&(r.voidElement=!0),r.name.startsWith("!--"))){let e=t.indexOf("--\x3e");return{type:"comment",comment:-1!==e?t.slice(4,e):""}}let i=new RegExp(h),a=null;for(;null!==(a=i.exec(t));)if(a[0].trim()){if(a[1]){let t=a[1].trim(),e=[t,""];t.indexOf("=")>-1&&(e=t.split("=")),r.attribs[e[0]]=e[1],i.lastIndex--}else if(a[2]){let t=a[3].trim().substring(1,a[3].length-1);r.attribs[a[2]]=e.disableDecode?t:u(t)}}return r}let d=/<[a-zA-Z0-9\-!/](?:"[^"]*"|'[^']*'|[^'">])*>/g,f=/^\s*$/,m=["mtext","mi","mn","mo","ms"],g=Object.create(null);function A(t,e){return e.disableDecode?t:u(t)}function y(t){if(t?.name==="m:t")return t;Array.isArray(t.children)||(t.children=[]);let e=t.children[t.children.length-1];if(e?.name==="m:r"){let t=e.children[e.children.length-1];if(t?.name==="m:t")return t}let r={name:"m:t",type:"tag",attribs:{"xml:space":"preserve"},children:[]};return t.children.push({name:"m:r",type:"tag",attribs:{},children:[r]}),r}function v(t,e=!0){let r="";if("text"===t.type){let n=t.data.replace(/[\u2062]|[\u200B]/g,"");e&&(n=n.trim()),r+=n}else t.children&&t.children.forEach(t=>{r+=v(t,e)});return r}let R=/^[\u220f-\u2211]|[\u2229-\u2233]|[\u22c0-\u22c3]$/,b=/^\u220f|\u2211|[\u2229-\u222b]|\u222e|\u222f|\u2232|\u2233|[\u22c0-\u22c3]$/;function x(t){let e=t?.children;if(!e?.length)return null;let r=e[e.length-1];return r?.name!=="m:nary"?null:r.children[r.children.length-1]||null}function M(t){let e=v(t);return!!R.test(e)&&e}function S(t,e,r,n=!1,i=!1){let a=e.attribs?.stretchy,o="true"===a?"on":"false"===a?"off":b.test(t)?"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":t},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 N(t,e,r,n,i,a){let o;if(Array.isArray(e.children)||(e.children=[]),r.isNary){let t=x(e);t&&(e=t)}let s=t.children?.find(t=>"mglyph"===t.name),l=function(t,e,r={}){let n=t.attribs||{},i=n.mathcolor||e.find(t=>"mstyle"===t.name&&t.attribs&&t.attribs.color)?.attribs.color||"",a=n.mathsize||e.find(t=>"mstyle"===t.name&&t.attribs&&t.attribs.mathsize)?.attribs.mathsize||"",o=n.scriptlevel||e.find(t=>"mstyle"===t.name&&t.attribs&&t.attribs.scriptlevel)?.attribs.scriptlevel||"",s=n.mathbackground||e.find(t=>"mstyle"===t.name&&t.attribs&&t.attribs.mathbackground)?.attribs.mathbackground||"",l=n.mathvariant||e.find(t=>"mstyle"===t.name&&t.attribs&&t.attribs.mathvariant)?.attribs.mathvariant||"";"b-i"===l&&(l="bold-italic");let c=n.fontweight||e.find(t=>"mstyle"===t.name&&t.attribs&&t.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||e.find(t=>"mstyle"===t.name&&t.attribs&&t.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 e=v(t);""===r.variant&&("mi"===t.name&&e.length>1||"mn"===t.name&&!/^\d+\.\d+$/.test(e))?l="":["mi","mn","mo"].includes(t.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}}(t,i,r?.style);t.style=l,t.hasMglyphChild=s;let c=Object.keys(l).every(t=>{let e=r?.style;return e&&l[t]===e[t]})&&r?.hasMglyphChild===s,u=a===r?.name||["mi","mn","mo"].includes(a)&&["mi","mn","mo"].includes(r?.name),h=e.children[e.children.length-1];if(u&&c&&!s&&!e[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 t={name:"m:rPr",type:"tag",attribs:{},children:[]},e=O[l.variant];e?t.children.push({name:"m:sty",type:"tag",attribs:{"m:val":e},children:[]}):t.children.push({name:"m:nor",type:"tag",attribs:{},children:[]}),r.children.push(t);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:[]},t.children.length<1&&o.children.push({type:"text",data:""}),function(t,e){if(!t[w])return;t[w]=!1;let r=e.children.find(t=>"m:rPr"===t.name);if(!r){r={name:"m:rPr",type:"tag",attribs:{},children:[]};let t=e.children.findIndex(t=>"w:rPr"===t.name);e.children.splice(t+1,0,r)}r.children.push({name:"m:brk",type:"tag",attribs:{},children:[]})}(e,r),r.children.push(o),e.children.push(r)}return o}let L={"←":"⃖","⟵":"⃖","→":"⃗","⟶":"⃗","´":"́","˝":"̋","˘":"̆",ˇ:"̌","¸":"̒","^":"̂","¨":"̈","˙":"̇","`":"̀","-":"̅","¯":"̅","−":"̅",".":"̇","~":"̃","˜":"̃"};function _(t,e,r,n,i,a){if(2!==t.children.length)return e;(i=[...i]).unshift(t);let o=t.children[0],s=t.children[1],l=M(o);if(l&&t.attribs?.accent?.toLowerCase()!=="true"&&t.attribs?.accentunder?.toLowerCase()!=="true"){let r=S(l,t,"undOvr","over"===a,"under"===a);t.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:[]}),e.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 e.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&&t.attribs?.accentunder?.toLowerCase()==="true"&&"mo"===s.name&&c.length<2||"over"===a&&t.attribs?.accent?.toLowerCase()==="true"&&"mo"===s.name&&c.length<2)return void e.children.push({type:"tag",name:"m:acc",attribs:{},children:[{type:"tag",name:"m:accPr",attribs:{},children:[{type:"tag",name:"m:chr",attribs:{"m:val":L[c]||c},children:[]}]},u]});if(t.attribs?.accent?.toLowerCase()!=="true"&&t.attribs?.accentunder?.toLowerCase()!=="true"&&"mo"===s.name&&"mrow"===o.name&&1===c.length)return void e.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),e.children.push({type:"tag",name:"under"===a?"m:limLow":"m:limUpp",attribs:{},children:[u,h]})}var T,P,I,C,k,F,X,U,W,V=Object.freeze({__proto__:null,math:function(t,e,r,n,i){return e.name="m:oMath",e.attribs={"xmlns:m":"http://schemas.openxmlformats.org/officeDocument/2006/math","xmlns:w":"http://schemas.openxmlformats.org/wordprocessingml/2006/main"},e.type="tag",e.children=[],e},menclose:function(t,e,r,n,i){let a=t.attribs?.notation?.split(" ")[0]||"longdiv",o={type:"tag",name:"m:e",attribs:{},children:[]};if("longdiv"===a)e.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 t={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=[t,r,i],l.children=[s,o];break;case"right":case"circle":s.children=[t,r,n],l.children=[s,o];break;case"top":s.children=[r,n,i],l.children=[s,o];break;case"bottom":s.children=[t,n,i],l.children=[s,o];break;case"updiagonalstrike":s.children=[t,r,n,i,{type:"tag",name:"m:strikeBLTR",attribs:{"m:val":"on"},children:[]}],l.children=[s,o];break;case"downdiagonalstrike":s.children=[t,r,n,i,{type:"tag",name:"m:strikeTLBR",attribs:{"m:val":"on"},children:[]}],l.children=[s,o];break;case"verticalstrike":s.children=[t,r,n,i,{type:"tag",name:"m:strikeV",attribs:{"m:val":"on"},children:[]}],l.children=[s,o];break;case"horizontalstrike":s.children=[t,r,n,i,{type:"tag",name:"m:strikeH",attribs:{"m:val":"on"},children:[]}],l.children=[s,o];break;default:s.children=[t,r,n,i],l.children=[s,o]}e.children.push(l)}return o},mfrac:function(t,e,r,n,i){if(2!==t.children.length)return e;let a=t.children[0],o=t.children[1],s={name:"m:num",type:"tag",attribs:{},children:[]},l={name:"m:den",type:"tag",attribs:{},children:[]};(i=[...i]).unshift(t),Y(a,s,!1,!1,i),Y(o,l,!1,!1,i);let c=t.attribs?.linethickness?.trim(),u=void 0!==c&&/^0+(\.0*)?([a-z%]+)?$/i.test(c)?"noBar":t.attribs?.bevelled==="true"?"skw":"bar";e.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(t,e,r,n,i){t.attribs?.alt&&y(e).children.push({type:"text",data:t.attribs.alt})},mi:function(t,e,r,n,i){return N(t,e,r,n,i,"mi")},mmultiscripts:function(t,e,r,n,i){if(0===t.children.length)return;let a=t.children[0],o=[],s=[],l=[],c=[],u=t.children.slice(1),h=!1;u.forEach((t,e)=>{"mprescripts"===t.name?h=!0:"none"!==t.name&&(e%2?h?l.push(t):s.push(t):h?c.push(t):o.push(t))}),(i=[...i]).unshift(t);let p={children:[]};Y(a,p,!1,!1,i);let d=p.children[0];if(o.length||s.length){let t={name:"m:sub",type:"tag",attribs:{},children:[]};o.forEach(e=>Y(e,t,!1,!1,i));let e={name:"m:sup",type:"tag",attribs:{},children:[]};s.forEach(t=>Y(t,e,!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(t),r.children.push(e)):o.length?(r.name="m:sSub",r.children.push(t)):(r.name="m:sSup",r.children.push(e)),d=r}if(l.length||c.length){let t={name:"m:sub",type:"tag",attribs:{},children:[]};l.forEach(e=>Y(e,t,!1,!1,i));let e={name:"m:sup",type:"tag",attribs:{},children:[]};c.forEach(t=>Y(t,e,!1,!1,i)),d={name:"m:sPre",type:"tag",attribs:{},children:[{name:"m:e",type:"tag",attribs:{},children:[d]},t,e]}}e.children.push(d)},mn:function(t,e,r,n,i){return N(t,e,r,n,i,"mn")},mo:function(t,e,r,n,i){return N(t,e,r,n,i,"mo")},mover:function(t,e,r,n,i){return _(t,e,r,n,i,"over")},mroot:function(t,e,r,n,i){if(2!==t.children.length)return e;(i=[...i]).unshift(t);let a=t.children[0],o=t.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);e.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(t,e,r,n,i){if(r.isNary){let t=x(e);if(t)return t}return e},ms:function(t,e,r,n,i){return N(t,e,r,n,i,"ms")},mspace:function(t,e){t.attribs?.linebreak==="newline"?e[w]=!0:e.children.push({name:"m:r",type:"tag",attribs:{},children:[{name:"m:t",type:"tag",attribs:{"xml:space":"preserve"},children:[{type:"text",data:" "}]}]})},msqrt:function(t,e,r,n,i){let a={name:"m:e",type:"tag",attribs:{},children:[]};return e.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(t,e,r,n,i){return e},msub:function(t,e,r,n,i){let a;if(2!==t.children.length)return e;(i=[...i]).unshift(t);let o=t.children[0],s=t.children[1],l=M(o);if(l&&t.attribs?.accent?.toLowerCase()!=="true"&&t.attribs?.accentunder?.toLowerCase()!=="true")a=S(l,t,"subSup",!1,!0),t.isNary=!0;else{let t={name:"m:e",type:"tag",attribs:{},children:[]};Y(o,t,!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:[]}]},t]}}let c={name:"m:sub",type:"tag",attribs:{},children:[]};Y(s,c,!1,!1,i),a.children.push(c),t.isNary&&(a.children.push({type:"tag",name:"m:sup",attribs:{},children:[]}),a.children.push({type:"tag",name:"m:e",attribs:{},children:[]})),e.children.push(a)},msubsup:function(t,e,r,n,i){let a;if(3!==t.children.length)return e;(i=[...i]).unshift(t);let o=t.children[0],s=t.children[1],l=t.children[2],c=M(o);if(c&&t.attribs?.accent?.toLowerCase()!=="true"&&t.attribs?.accentunder?.toLowerCase()!=="true")a=S(c,t,"subSup"),t.isNary=!0;else{let t={name:"m:e",type:"tag",attribs:{},children:[]};Y(o,t,!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:[]}]},t]}}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),t.isNary&&a.children.push({type:"tag",name:"m:e",attribs:{},children:[]}),e.children.push(a)},msup:function(t,e,r,n,i){let a;if(2!==t.children.length)return e;(i=[...i]).unshift(t);let o=t.children[0],s=t.children[1],l=M(o);if(l&&t.attribs?.accent?.toLowerCase()!=="true"&&t.attribs?.accentunder?.toLowerCase()!=="true")a=S(l,t,"subSup",!0),t.isNary=!0,a.children.push({type:"tag",name:"m:sub",attribs:{},children:[]});else{let t={name:"m:e",type:"tag",attribs:{},children:[]};Y(o,t,!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:[]}]},t]}}let c={name:"m:sup",type:"tag",attribs:{},children:[]};Y(s,c,!1,!1,i),a.children.push(c),t.isNary&&a.children.push({type:"tag",name:"m:e",attribs:{},children:[]}),e.children.push(a)},mtable:function(t,e,r,n,i){let a=Math.max(0,...t.children.map(t=>t.children.length));for(let e of t.children)for(;e.children?.length<a;)e.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 e.children.push(o),o},mtd:function(t,e,r,n,i){let a={name:"m:e",type:"tag",attribs:{},children:[]};return e.children.push(a),a},mtext:function(t,e,r,n,i){return N(t,e,r,n,i,"mtext")},mtr:function(t,e,r,n,i){let a={name:"m:mr",type:"tag",attribs:{},children:[]};return e.children.push(a),a},munder:function(t,e,r,n,i){return _(t,e,r,n,i,"under")},munderover:function(t,e,r,n,i){if(3!==t.children.length)return e;(i=[...i]).unshift(t);let a=t.children[0],o=t.children[1],s=t.children[2],l=M(a);if(l&&t.attribs?.accent?.toLowerCase()!=="true"&&t.attribs?.accentunder?.toLowerCase()!=="true"){let r=S(l,t,"undOvr");t.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:[]}),e.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),e.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(t,e,r,n,i){return e},text:function(t,e,r,n,i){let a=t.data.replace(/[\u2061-\u2064\u200B]/g,"");if(i.find(t=>["mi","mn","mo"].includes(t.name)))a=a.replace(/\s/g,"");else{let t=i.find(t=>"ms"===t.name);t&&(a=(t.attribs?.lquote||'"')+a+(t.attribs?.rquote||'"'))}if(a.length){let t=y(e);return t.children.length&&"text"===t.children[t.children.length-1].type?t.children[t.children.length-1].data+=a:t.children.push({type:"text",data:a}),t}return e}});let E=["annotation","annotation-xml"];function Y(t,e,r=!1,n=!1,i=[]){var a;let o,s;if(E.includes(t.name))return;!r&&["m:deg","m:den","m:e","m:fName","m:lim","m:num","m:sub","m:sup"].includes(e.name)&&(a=i,["0","1","2"].includes(s=a.find(t=>t.attribs?.scriptlevel)?.attribs?.scriptlevel)&&e.children.unshift({type:"tag",name:"m:argPr",attribs:{},children:[{type:"tag",name:"m:scrLvl",attribs:{"m:val":s},children:[]}]}));let l=t.name||t.type;if(V[l]?o=V[l](t,e,r,n,i):(l&&"root"!==l&&console.warn(`Type not supported: ${l}`),o=e),o&&t.children?.length){(i=[...i]).unshift(t);for(let e=0;e<t.children.length;e++)Y(t.children[e],o,t.children[e-1],t.children[e+1],i),function(t){if(!t[w])return;let e=t.children;if(!e?.length)return;let r=e[e.length-1];"m:r"!==r.name&&(t[w]=!1,e[e.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(t,e={}){this.inString=t,this.inXML=function(t,e={}){let r,n=e.components||g,i=[],a=[],o=-1,s=!1,l=[],c=d.exec(t);for(;c;)l.push(c),c=d.exec(t);return l.forEach((t,e)=>{let r=t[0];if(!r||r.startsWith("\x3c!--"))return;let n=0,i=0,a=-1,o=null;for(let t=0;t<r.length;t++){let e=r.charAt(t);o?e===o&&(o=null):'"'===e||"'"===e?o=e:"<"===e?2==++n&&(a=t):">"===e&&i++}let s=a>-1&&/[a-zA-Z0-9\-!/]/.test(r.charAt(a+1));if(n>i&&s){let t=r.substring(0,a),n=r.substring(t.length);l[e][0]=n,l[e].index+=t.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=t.charAt(b),M=l[u+1];if("<"===x&&M){let e=t.substring(b,M.index);h=e.split("<").length>e.split(">").length}if(R){let r=p(g,e);if(o<0)return i.push(r),i;if((d=a[o]).children.push(r),m.includes(d.name)){let r=t.slice(b,M?M.index:void 0).trim();r.length>0&&d.children.push({type:"text",data:A(r,e)})}return i}if(v){if(o++,"tag"===(r=p(g,e)).type&&n[r.name]&&(r.type="component",s=!0),m.includes(r.name)&&!r.voidElement&&!s&&x&&"<"!==x){let n=t.slice(b,M?M.index:void 0).trim();r.children.push({type:"text",data:A(n,e)})}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=t.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,e)})}}),i}(t,e),this.outXML=!1,this.outString=!1}run(){let t={};Y({children:this.inXML,type:"root"},t),this.outXML=t}getResult(){return this.outString=[this.outXML].reduce((t,e)=>t+function t(e,r){switch(r.type){case"text":return e+String(r.data).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/\u200B/g,"​");case"tag":{let n=r.voidElement||!r.children.length&&"preserve"!==r.attribs["xml:space"];if(e+=`<${r.name}${r.attribs?function(t){let e=[];for(let r in t)e.push(`${r}="${String(t[r]).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}"`);return e.length?` ${e.join(" ")}`:""}(r.attribs):""}${n?"/>":">"}`,n)return e;return`${e+r.children.reduce(t,"")}</${r.name}>`}case"comment":return e+`<!--${r.comment}-->`}}("",e),""),this.outString}}r.d(e,{},{Q:(t,e)=>{let r=new D(t,e);return r.run(),r.getResult()}})},27380(t,e,r){function n(t){return{all:t=t||new Map,on:function(e,r){var n=t.get(e);n?n.push(r):t.set(e,[r])},off:function(e,r){var n=t.get(e);n&&(r?n.splice(n.indexOf(r)>>>0,1):t.set(e,[]))},emit:function(e,r){var n=t.get(e);n&&n.slice().map(function(t){t(r)}),(n=t.get("*"))&&n.slice().map(function(t){t(e,r)})}}}r.d(e,{A:()=>n})},41884(t,e,r){r.d(e,{d_:()=>i,Ak:()=>a});let n=t=>crypto.getRandomValues(new Uint8Array(t)),i=(t,e=21)=>((t,e,r)=>{let n=256-256%t.length;if(256===n){let n=t.length-1;return (i=e)=>{if(!i)return"";let a="";for(;;){let e=r(i),o=i;for(;o--;)if((a+=t[e[o]&n]).length>=i)return a}}}let i=Math.ceil(409.6*e/n);return (a=e)=>{if(!a)return"";let o="";for(;;){let e=r(i),s=i;for(;s--;)if(e[s]<n&&(o+=t[e[s]%t.length]).length>=a)return o}}})(t,0|e,n),a=(t=21)=>{let e="",r=crypto.getRandomValues(new Uint8Array(t|=0));for(;t--;)e+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[63&r[t]];return e}},93591(t,e,r){let n,i,a,o=(t,e)=>{let r,{o:n,i:i,u:a}=t,o=n,s=(t,e)=>{let n=o,s=e||(i?!i(n,t):n!==t);return(s||a)&&(o=t,r=n),[o,s,r]};return[e?t=>s(e(o,r),t):s,t=>[o,!!t,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=t=>void 0!==s[t]?s[t]:void 0,y=A("MutationObserver"),v=A("IntersectionObserver"),R=A("ResizeObserver"),b=A("ScrollTimeline"),x=t=>"object"==typeof t&&!Array.isArray(t)&&null!==t,M=t=>{let e=!!t&&t.length;return!(!Array.isArray(t)&&("function"==typeof t||!("number"==typeof e&&e>-1&&e%1==0)))&&(!(e>0&&x(t))||e-1 in t)},S=t=>!!t&&t.constructor===Object;function w(t,e){if(M(t))for(let r=0;r<t.length&&!1!==e(t[r],r,t);r++);else t&&w(Object.keys(t),r=>e(t[r],r,t));return t}let O=(t,e)=>t.indexOf(e)>=0,N=(t,e,r)=>("string"!=typeof e&&M(e)?Array.prototype.push.apply(t,e):t.push(e),t),L=t=>Array.from(t||[]),_=t=>Array.isArray(t)?t:"string"!=typeof t&&M(t)?L(t):[t],T=t=>!!t&&!t.length,P=t=>L(new Set(t)),I=(t,e,r)=>{w(t,t=>!t||t.apply(void 0,e||[])),r||(t.length=0)},C="paddingTop",k="paddingRight",F="paddingLeft",X="paddingBottom",U="marginLeft",W="marginRight",V="marginBottom",E="overflowX",Y="overflowY",D="width",Q="height",Z="visible",B="hidden",K="scroll",$=(t,e,r,n)=>{if(t&&e){let n=!0;return w(r,r=>{t[r]!==e[r]&&(n=!1)}),n}return!1},G=(t,e)=>$(t,e,["w","h"]),H=(t,e)=>$(t,e,["x","y"]),z=(t,e)=>$(t,e,["t","r","b","l"]),J=(t,...e)=>t.bind(0,...e),j=t=>{let e,r=t?m:f,n=t?g:d;return[i=>{n(e),e=r(()=>i(),"function"==typeof t?t():t)},()=>n(e)]},q=t=>{let e="function"==typeof t?t():t;if("number"==typeof e){let t=e?m:f,r=e?g:d;return n=>{let i=t(()=>n(),e);return()=>{r(i)}}}return e&&e._},tt=(t,e)=>{let r,n,i,a,{p:o,v:s,S:l,m:c}=e||{},u=function(e){n&&n(),r&&r(),a=n=r=i=void 0,t.apply(this,e)},h=t=>c&&i?c(i,t):t,p=()=>{n&&i&&u(h(i)||i)},d=function(){let t=L(arguments),e=q(o);if(e){let o="function"==typeof l?l():l,c=q(s),d=h(t)||t,f=u.bind(0,d);n&&n(),o&&!a?(f(),a=!0,n=e(()=>a=void 0)):(n=e(f),c&&!r&&(r=c(p))),i=d}else u(t)};return d.O=p,d},te=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),tr=t=>t?Object.keys(t):[],tn=(t,e,r,n,i,a,o)=>(("object"!=typeof t||null===t)&&"function"!=typeof t&&(t={}),w([e,r,n,i,a,o],e=>{w(e,(r,n)=>{let i=e[n];if(t===i)return!0;let a=Array.isArray(i);if(i&&S(i)){let e=t[n],r=e;a&&!Array.isArray(e)?r=[]:a||S(e)||(r={}),t[n]=tn(r,i)}else t[n]=a?i.slice():i})}),t),ti=(t,e)=>w(tn({},t),(t,e,r)=>{void 0===t?delete r[e]:t&&S(t)&&(r[e]=ti(t))}),ta=()=>{},to=(t,e,r)=>l(t,c(e,r)),ts=t=>P((Array.isArray(t)?t:(t||"").split(" ")).filter(t=>t)),tl=(t,e)=>t&&t.getAttribute(e),tc=(t,e)=>t&&t.hasAttribute(e),tu=(t,e,r)=>{w(ts(e),e=>{t&&t.setAttribute(e,String(r||""))})},th=(t,e)=>{w(ts(e),e=>t&&t.removeAttribute(e))},tp=(t,e)=>{let r=ts(tl(t,e)),n=J(tu,t,e),i=(t,e)=>{let n=new Set(r);return w(ts(t),t=>{n[e](t)}),L(n).join(" ")};return{C:t=>n(i(t,"delete")),$:t=>n(i(t,"add")),H:t=>{let e=ts(t);return e.reduce((t,e)=>t&&r.includes(e),e.length>0)}}},td=(t,e,r)=>(tp(t,e).C(r),J(tf,t,e,r)),tf=(t,e,r)=>(tp(t,e).$(r),J(td,t,e,r)),tm=(t,e,r,n)=>(n?tf:td)(t,e,r),tg=(t,e,r)=>tp(t,e).H(r),tA=(t,e)=>{tp(t,"class").C(e)},ty=(t,e)=>(tp(t,"class").$(e),J(tA,t,e)),tv=(t,e)=>{let r=e?e instanceof Element&&e:document;return r?L(r.querySelectorAll(t)):[]},tR=(t,e)=>t instanceof Element&&t.matches(e),tb=t=>t?L(t.childNodes):[],tx=(t,e)=>t instanceof Element&&t.closest(e),tM=t=>{w(_(t),t=>{let e=t&&t.parentElement;t&&e&&e.removeChild(t)})},tS=(t,e)=>J(tM,t&&e&&w(_(e),e=>{e&&t.appendChild(e)})),tw=t=>{let e=document.createElement("div");return tu(e,"class",t),e},tO=t=>{let e=tw(),r=n,i=t.trim();return e.innerHTML=r?r.createHTML(i):i,w(tb(e),t=>tM(t))},tN=(t,e)=>t.getPropertyValue(e)||t[e]||"",tL=t=>{let e=t||0;return isFinite(e)?e:0},t_=t=>tL(parseFloat(t||"")),tT=t=>Math.round(1e4*t)/1e4,tP=t=>`${tT(tL(t))}px`;function tI(t,e){t&&e&&w(e,(e,r)=>{try{let n=t.style,i=null===e||"boolean"==typeof e?"":"number"==typeof e?tP(e):e;0===r.indexOf("--")?n.setProperty(r,i):n[r]=i}catch(t){}})}function tC(t,e,r){let n="string"==typeof e,i=n?"":{};if(t){let a=s.getComputedStyle(t,r)||t.style;i=n?tN(a,e):L(e).reduce((t,e)=>(t[e]=tN(a,e),t),i)}return i}let tk=(t,e,r)=>{let n=e?`${e}-`:"",i=r?`-${r}`:"",a=`${n}top${i}`,o=`${n}right${i}`,s=`${n}bottom${i}`,l=`${n}left${i}`,c=tC(t,[a,o,s,l]);return{t:t_(c[a]),r:t_(c[o]),b:t_(c[s]),l:t_(c[l])}},tF=(t,e)=>`translate${x(t)?`(${t.x},${t.y})`:`${e?"X":"Y"}(${t})`}`,tX={w:0,h:0},tU=(t,e)=>e?{w:e[`${t}Width`],h:e[`${t}Height`]}:tX,tW=J(tU,"offset"),tV=J(tU,"client"),tE=J(tU,"scroll"),tY=t=>{let e=parseFloat(tC(t,D))||0,r=parseFloat(tC(t,Q))||0;return{w:e-u(e),h:r-u(r)}},tD=t=>t.getBoundingClientRect(),tQ=t=>!!(t&&(t[Q]||t[D])),tZ=(t,e)=>{let r=tQ(t);return!tQ(e)&&r},tB=(t,e,r,n)=>{w(ts(e),e=>{t&&t.removeEventListener(e,r,n)})},tK=(t,e,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(I,ts(e).map(e=>{let n=s?i=>{tB(t,e,n,o),r&&r(i)}:r;return t&&t.addEventListener(e,n,l),J(tB,t,e,n,o)}))},t$=t=>t.stopPropagation()||t.preventDefault(),tG=(t,e)=>{let{x:r,y:n}="number"==typeof e?{x:e,y:e}:e||{};"number"==typeof r&&(t.scrollLeft=r),"number"==typeof n&&(t.scrollTop=n)},tH=t=>({x:t.scrollLeft,y:t.scrollTop}),tz=()=>({T:{x:0,y:0},k:{x:0,y:0}}),tJ=({T:t,k:e})=>{let r=(t,e)=>0===t&&t<=e;return{x:r(t.x,e.x),y:r(t.y,e.y)}},tj=({T:t,k:e},r)=>{let n=(t,e,r)=>to(0,1,(t-r)/(t-e)||0);return{x:n(t.x,e.x,r.x),y:n(t.y,e.y,r.y)}},tq=t=>{t&&t.focus&&t.focus({preventScroll:!0,focusVisible:!1})},t0=(t,e)=>{w(_(e),t)},t1=t=>{let e=new Map,r=(t,r)=>{if(t){let n=e.get(t);t0(t=>{n&&n[t?"delete":"clear"](t)},r)}else e.forEach(t=>{t.clear()}),e.clear()},n=(t,i)=>{if("string"==typeof t){let n=e.get(t)||new Set;return e.set(t,n),t0(t=>{"function"==typeof t&&n.add(t)},i),J(r,t,i)}"boolean"==typeof i&&i&&r();let a=tr(t),o=[];return w(a,e=>{let r=t[e];r&&N(o,n(e,r))}),J(I,o)};return n(t||{}),[n,r,(t,r)=>{w(L(e.get(t)),t=>{r&&!T(r)?t.apply(0,r):t()})}]},t2={},t3={},t5=(t,e,r)=>tr(t).map(n=>{let{static:i,instance:a}=t[n],[o,s,l]=r||[],c=r?a:i;if(c){let t=r?c(o,s,e):c(e);return(l||t3)[n]=t}}),t4=t=>t3[t],t6="data-overlayscrollbars",t8="os-environment",t9=`${t8}-scrollbar-hidden`,t7=`${t6}-initialize`,et="noClipping",ee=`${t6}-body`,er=`${t6}-viewport`,en="measuring",ei="scrollbarHidden",ea=`${t6}-padding`,eo=`${t6}-content`,es="os-size-observer",el=`${es}-appear`,ec=`${es}-listener`,eu="os-scrollbar",eh=`${eu}-rtl`,ep=`${eu}-horizontal`,ed=`${eu}-vertical`,ef=`${eu}-track`,em=`${eu}-handle`,eg=`${eu}-visible`,eA=`${eu}-cornerless`,ey=`${eu}-interaction`,ev=`${eu}-unusable`,eR=`${eu}-auto-hide`,eb=`${eR}-hidden`,ex=`${eu}-wheel`,eM=`${ef}-interactive`,eS=`${em}-interactive`,ew=t=>0===t.indexOf(Z),eO=(t,e)=>{if("auto"===t)return e?K:B;let r=t||B;return[B,K,Z].includes(r)?r:B},eN="__osScrollbarsHidingPlugin",eL=t=>JSON.stringify(t,(t,e)=>{if("function"==typeof e)throw 0;return e}),e_=(t,e)=>t?`${e}`.split(".").reduce((t,e)=>t&&te(t,e)?t[e]:void 0,t):void 0,eT=[33,99],eP=[222,666,!0],eI={paddingAbsolute:!1,showNativeOverlaidScrollbars:!1,update:{elementEvents:[["img","load"]],debounce:{mutation:[0,33],resize:null,event:eT,env:eP},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"]}},eC=(t,e)=>{let r,n,i={};return w((r=tr(e),n=tr(t),r.concat(n)),r=>{let n=t[r],a=e[r];if(x(n)&&x(a))tn(i[r]={},eC(n,a)),tr(i[r]).length||delete i[r];else if(te(e,r)&&a!==n){let t=!0;if(Array.isArray(n)||Array.isArray(a))try{eL(n)===eL(a)&&(t=!1)}catch(t){}t&&(i[r]=a)}}),i},ek=(t,e,r)=>n=>[e_(t,n),r||void 0!==e_(e,n)],eF=()=>(a||(a=(()=>{let t=(t,e,r)=>{tS(document.body,t),tS(document.body,t);let n=tV(t),i=tW(t),a=tY(e);return r&&tM(t),{x:i.h-n.h+a.h,y:i.w-n.w+a.w}},e=`.${t8}{scroll-behavior:auto!important;position:fixed;opacity:0;visibility:hidden;overflow:scroll;height:200px;width:200px;z-index:-1}.${t8} div{width:200%;height:200%;margin:10px 0}.${t9}{scrollbar-width:none!important}.${t9}::-webkit-scrollbar,.${t9}::-webkit-scrollbar-corner{appearance:none!important;display:none!important;width:0!important;height:0!important}`,r=tO(`<div class="${t8}"><div></div><style>${e}</style></div>`)[0],n=r.firstChild,a=r.lastChild,l=i;l&&(a.nonce=l);let[c,,u]=t1(),[h,p]=o({o:t(r,n),i:H},J(t,r,n,!0)),[d]=p(),f=(t=>{let e=!1,r=ty(t,t9);try{e="none"===tC(t,"scrollbar-width")||"none"===tC(t,"display","::-webkit-scrollbar")}catch(t){}return r(),e})(r),m={x:0===d.x,y:0===d.y},g={elements:{host:null,padding:!f,viewport:t=>f&&tR(t,"body")&&t,content:!1},scrollbars:{slot:!0},cancel:{nativeScrollbarsOverlaid:!1,body:null}},A=tn({},eI),y=J(tn,{},A),v=J(tn,{},g),R={U:d,M:m,P:f,J:!!b,G:J(c,"r"),K:v,Z:t=>tn(g,t)&&v(),tt:y,nt:t=>tn(A,t)&&y(),ot:tn({},g),st:tn({},A)};if(th(r,"style"),tM(r),tK(s,"resize",()=>{u("r",[])}),"function"==typeof s.matchMedia&&!f&&(!m.x||!m.y)){let t=e=>{tK(s.matchMedia(`(resolution: ${s.devicePixelRatio}dppx)`),"change",()=>{e(),t(e)},{A:!0})};t(()=>{let[t,e]=h();tn(R.U,t),u("r",[e])})}return R})()),a),eX=(t,e,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=e=>{o&&h&&w(h.map(r=>{let[n,i]=r||[];return[i&&n?(e||tv)(n,t):[],i]}),e=>w(e[0],r=>{let n=e[1],s=o.get(r)||[];if(t.contains(r)&&n){let t=tK(r,n,e=>{a?(t(),o.delete(r)):i()});o.set(r,N(s,t))}else I(s),o.delete(r)}))})(),[()=>{a=!0},s]),A=u||[],v=(c||[]).concat(A),R=(i,a)=>{if(!T(a)){let o=d||ta,s=f||ta,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=t===a,R=y&&i,b=R&&tl(a,i||""),x="string"==typeof b?b:null,M=R&&f!==x,S=O(A,i)&&M;if(e&&("childList"===d||!v)){let e=y&&M,c=e&&p&&tR(a,p),u=(c?!o(a,i,f,x):!y||e)&&!s(r,!!c,t,n);w(m,t=>N(l,t)),w(g,t=>N(l,t)),h=h||u}!e&&v&&M&&!o(a,i,f,x)&&(N(c,i),u=u||S)}),g(t=>P(l).reduce((e,r)=>(N(e,tv(t,r)),tR(r,t)?N(e,r):e),[])),e)return!i&&h&&r(!1),[!1];if(!T(c)||u){let t=[P(c),u];return i||r.apply(0,t),t}}},b=new y(J(R,!1));return[()=>(b.observe(t,{attributes:!0,attributeOldValue:!0,attributeFilter:v,subtree:e,childList:e,characterData:e}),l=!0,()=>{l&&(m(),b.disconnect(),l=!1)}),()=>{if(l)return R(!0,b.takeRecords())}]},eU=null,eW=(t,e,r)=>{let{ft:n}=r||{},i=t4("__osSizeObserverPlugin"),[a]=o({o:!1,u:!0});return()=>{let r=[],o=tO(`<div class="${es}"><div class="${ec}"></div></div>`)[0],s=o.firstChild,l=t=>{let r=Array.isArray(t)&&!T(t),n=!1,i=!1;if(r){let[e,,r]=a(t[0].contentRect),o=tQ(e);n=!(i=tZ(e,r))&&!o}else i=!0===t;n||e({_t:!0,ft:i})};if(R){if("boolean"!=typeof eU){let e=new R(ta);e.observe(t,{get box(){eU=!0}}),eU=eU||!1,e.disconnect()}let e=tt(l,{p:0,v:0}),n=t=>e(t),i=new R(n);if(i.observe(eU?t:s),N(r,[()=>{i.disconnect()},!eU&&tS(t,o)]),eU){let e=new R(n);e.observe(t,{box:"border-box"}),N(r,()=>e.disconnect())}}else{if(!i)return ta;let e,[a,c]=i(s,l,n);N(r,(e=[ty(o,el),tK(o,"animationstart",a),tS(t,o)],e.concat(c)))}return J(I,r)}},eV=(t,e)=>"function"==typeof e?e.apply(0,t):e,eE=(t,e,r,n)=>eV(t,void 0===n?r:n)||e.apply(0,t),eY=(t,e,r,n)=>{let i=eV(t,void 0===n?r:n);return!!i&&(i instanceof HTMLElement?i:e.apply(0,t))},eD=new WeakMap,eQ=(t,e,r)=>{let{tt:n}=eF(),i=t instanceof HTMLElement,a=i?t:t.target,c=eD.get(a);if(e&&!c){let c=[],d={},g=t=>{let e=ti(t),r=t4("__osOptionsValidationPlugin");return r?r(e,!0):e},A=tn({},n(),g(e)),[y,x,M]=t1(),[L,_,T]=t1(r),q=(t,e)=>{T(t,e),M(t,e)},[te,ts,tp,td,tv,tO,tN]=((t,e,r,n)=>{let i=!1,a={Kt:!1,pn:!1},c=ek(e,{}),[d,g,A,y,x]=(t=>{let[e,r,n]=(t=>{let e,r,n,i,{K:a,P:o}=eF(),{elements:l}=a(),{padding:c,viewport:u,content:h}=l,p=t instanceof HTMLElement,d=p?{}:t,{elements:f}=d,{padding:m,viewport:g,content:A}=f||{},y=p?t:d.target,v=tR(y,"body"),R=y.ownerDocument,b=R.documentElement,x=()=>R.defaultView||s,M=J(eE,[y]),S=J(eY,[y]),w=J(tw,""),L=J(M,w,u),_=J(S,w,h),T=L(g),P=T===y,C=P&&v,k=!P&&_(A),F=C?b:T,X=C?F:y,U=!P&&S(w,c,m),W=!(!P&&T===k)&&k,V=[W,F,U,X].map(t=>t instanceof HTMLElement&&!(t&&t.parentElement)&&t),D=F&&O(V,F)||(e=tW(F),r=tE(F),n=tC(F,E),i=tC(F,Y),(!(r.w-e.w>0)||ew(n))&&(!(r.h-e.h>0)||ew(i)))?y:F,Q=C?b:F,Z=C?R:F,B={dt:y,vt:X,L:F,ln:U,ht:W,gt:Q,Qt:Z,an:v?b:D,Gt:R,bt:v,At:p,V:P,un:x,yt:t=>tg(F,er,t),wt:(t,e)=>tm(F,er,t,e),St:()=>tm(Q,er,"scrolling",!0)},{dt:K,vt:$,ln:G,L:H,ht:z}=B,j=[()=>{th($,[t6,t7]),th(K,t7),v&&th(b,[t7,t6])}],q=tb([z,H,G,$,K].find(t=>t&&!(t&&O(V,t)))),tt=C?K:z||H,te=J(I,j);return[B,()=>{let t=x(),e=document.activeElement,r=t=>{tS(t&&t.parentElement,tb(t)),tM(t)},n=t=>tK(t,"focusin focusout focus blur",t$,{I:!0,D:!1}),i="tabindex",a=tl(H,i),s=n(e);return tu($,t6,P?"":"host"),tu(G,ea,""),tu(H,er,""),tu(z,eo,""),!P&&(tu(H,i,a||"-1"),v&&tu(b,ee,"")),tS(tt,q),tS($,G),tS(G||$,!P&&H),tS(H,z),N(j,[s,()=>{let t=document.activeElement,e=H&&O(V,H),o=e&&t===H?K:t,s=n(o);th(G,ea),th(z,eo),th(H,er),v&&th(b,ee),a?tu(H,i,a):th(H,i),z&&O(V,z)&&r(z),e&&r(H),G&&O(V,G)&&r(G),tq(o),s()}]),o&&!P&&(tf(H,er,ei),N(j,J(th,H,er))),tq(!P&&v&&e===K&&t.top===t?H:e),s(),q=0,te},te]})(t),i={ln:{t:0,r:0,b:0,l:0},_n:!1,F:{[W]:0,[V]:0,[U]:0,[C]: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:tz()},{dt:a,gt:c,V:u,St:d}=e,{P:m,M:g}=eF(),A=!m&&(g.x||g.y),y=[(({ht:t})=>({Zt:e,fn:r,It:n})=>{let{$t:i}=e||{},{Ot:a}=r;t&&(i||n)&&tI(t,{[Q]:a&&"100%"})})(e),(({vt:t,ln:e,L:r,V:n},i)=>{let[a,s]=o({i:z,o:tk()},J(tk,t,"padding",""));return({Dt:t,Zt:o,fn:l,It:c})=>{let[u,h]=s(c),{P:p}=eF(),{_t:d,xt:f,Ct:m}=o||{},{B:g}=l,[A,y]=t("paddingAbsolute"),v=c||f;(d||h||v)&&([u,h]=a(c));let R=!n&&(y||m||h);if(R){let t=!A||!e&&!p,n=u.r+u.l,a=u.t+u.b,o={[W]:t&&!g?-n:0,[V]:t?-a:0,[U]:t&&g?-n:0,top:t?-u.t:0,right:t?g?-u.r:"auto":0,left:t?g?"auto":-u.l:0,[D]:t&&`calc(100% + ${n}px)`},s={[C]:t?u.t:0,[k]:t?u.r:0,[X]:t?u.b:0,[F]:t?u.l:0};tI(e||r,o),tI(r,s),tn(i,{ln:u,_n:!t,F:e?s:tn({},o,s)})}return{dn:R}}})(e,i),((t,e)=>{let r=eF(),{vt:n,ln:i,L:a,V:c,Qt:u,gt:d,bt:m,wt:g,un:A}=t,{P:y}=r,v=m&&c,R=J(l,0),b={display:()=>!1,direction:t=>"ltr"!==t,flexDirection:t=>t.endsWith("-reverse"),writingMode:t=>"horizontal-tb"!==t},x=tr(b),M={i:G,o:{w:0,h:0}},S={i:H,o:{}},w=t=>{g(en,!v&&t)},[O,N]=o(M,J(tY,a)),[L,_]=o(M,J(tE,a)),[T,I]=o(M),[C]=o(S),[k,F]=o(M),[X]=o(S),[U]=o({i:(t,e)=>{let r,n;return $(t,e,P((r=tr(t),n=tr(e),r.concat(n))))},o:{}}),[W,V]=o({i:(t,e)=>H(t.T,e.T)&&H(t.k,e.k),o:tz()}),D=t4(eN),Q=(t,e)=>{let r,n=e?E:Y;return`${n}${(r=String(t||""))?r[0].toUpperCase()+r.slice(1):""}`};return({Dt:o,Zt:l,fn:c,It:m},{dn:M})=>{var S;let P,{_t:$,Ht:G,xt:H,Ct:z,ft:J,Et:j}=l||{},{X:q,Y:tt,W:te}=D&&D.R(t,e,c,r,o)||{},[ti,ta]=((t,e)=>{let{M:r}=e,[n,i]=t("showNativeOverlaidScrollbars");return[n&&r.x&&r.y,i]})(o,r),[to,ts]=o("overflow"),tl=ew(to.x),tc=ew(to.y),tu=$||M||H||z||j||ta,th=N(m),tp=_(m),td=I(m),tf=F(m);if(ta&&y&&g(ei,!ti),tu){let t,e;tg(n,t6,et)&&w(!0);let r=tt&&tt(),[i]=th=O(m),[o]=tp=L(m),l=tV(a),c=v&&tU("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(),tf=k(h),td=T((t=+(s.devicePixelRatio%1!=0),{w:(e={w:R(u.w-h.w),h:R(u.h-h.h)}).w>t?e.w:0,h:e.h>t?e.h:0}),m)}let[tA,ty]=tf,[tv,tR]=td,[tb,tx]=tp,[tM,tS]=th,[tw]=C({x:tv.w>0,y:tv.h>0}),tO=tl&&tc&&(tw.x||tw.y)||tl&&tw.x&&!tw.y||tc&&tw.y&&!tw.x,tN=M||z||j||tS||tx||ty||tR||ts||ta||tu||G&&v,[tL]=o("update.flowDirectionStyles"),[t_,tT]=U(tL?tL(a)||{}:tC(a,x),m),[tP,tk]=z||J||tT||m?W(((t,e)=>{let r=!tr(t).length,n=!!e||x.some(e=>{let r=t[e];return"string"==typeof r&&b[e](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=tH(d),o=tK(u,K,t=>{let e=tH(d);t.isTrusted&&e.x===i.x&&e.y===i.y&&t.stopPropagation()},{I:!0,A:!0}),s=g("noContent",!0);tG(d,{x:0,y:0}),s();let l=tH(d),c=tE(d);tG(d,{x:c.w,y:c.h});let p=tH(d),m={x:p.x-l.x,y:p.y-l.y};tG(d,{x:-c.w,y:-c.h});let A=tH(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 tG(d,i),f(()=>o()),{T:l,k:v}})(t_,!!tL),m):V(),tF={x:(P=(t,e,r,n)=>{let i=t===Z?B:t.replace(`${Z}-`,""),a=ew(t),o=ew(r);if(!e&&!n)return B;if(a&&o)return Z;if(a){let t=e?Z:B;return e&&n?i:t}let s=o&&n?Z:B;return e?i:s})(to.x,tw.x,to.y,tw.y),y:P(to.y,tw.y,to.x,tw.x)};if(w(!1),tN){let t;S=tF,g((t=t=>[Z,B,K].map(e=>Q(eO(e),t)))(!0).concat(t()).join(" ")),g(tr(S).map(t=>Q(S[t],"x"===t)).join(" "),!0),tF=((t,e)=>{let{overflowX:r,overflowY:n}=tC(t,[E,Y]);return{x:eO(r,e.x),y:eO(n,e.y)}})(a,tw),te&&q&&(q(tF,tb,tM),tI(a,te(tF)))}let[tX,tW]=X(tF);return tm(n,t6,et,tO),tm(i,ea,et,tO),tn(e,{rn:tX,Vt:{x:tA.w,y:tA.h},Rt:{x:tv.w,y:tv.h},j:tw,Tt:((t,e)=>{let{T:r,k:n}=t,{w:i,h:a}=e,o=(t,e,r)=>{let n=p(t)*r,i=p(e)*r;if(n===i){let r=h(t),a=h(e);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}}})(tP,tv)}),{en:tW,nn:ty,sn:tR,cn:tk||tR}}})(e,i)];return[r,t=>{let e={},r=A&&tH(c),n=r&&d();return w(y,r=>{tn(e,r(t,e)||{})}),tG(c,r),n&&n(),u||tG(a,0),e},i,e,n]})(t),[M,L,_]=((t,e,r,n)=>{let i,a,s,l,c,u,h,p,d,f,m,g,A,y=`[${t6}]`,b=`[${er}]`,x=["id","class","style","open","wrap","cols","rows"],{dt:M,vt:w,L:O,gt:L,ht:_,V:T,bt:P,yt:C,wt:k,St:F}=t,X={Ot:!1,B:"rtl"===tC(M,"direction")},U=eF(),W=t4(eN),[V]=o({i:G,o:{w:0,h:0}},()=>{let n=W&&W.R(t,e,X,U,r).Y,i=!(P&&T)&&tg(w,t6,et),a=!T&&C("arrange"),o=a&&tH(L),s=o&&F(),l=k(en,i),c=a&&n&&n(),u=tE(O),h=tY(O);return c&&c(),tG(L,o),s&&s(),i&&l(),{w:u.w+h.w,h:u.h+h.h}}),E=(g=tt(n,{p:()=>d,v:()=>f,S:()=>m,m(t,e){let r,n,[i]=t,[a]=e;return[(r=tr(i),n=tr(a),r.concat(n)).reduce((t,e)=>(t[e]=i[e]||a[e],t),{})]}}),(A=(t,e)=>{if(Array.isArray(e)){let[t,r,n]=e;d=t,f=r,m=n}else"number"==typeof e?d=e:d=!1,f=!1,m=!1;g(t)}).O=g.O,A),Y=t=>{let e="rtl"===tC(M,"direction");tn(t,{Ct:p!==e}),tn(X,{B:e}),p=e},D=(t,e)=>{let[r,i]=t,a={$t:i};return tn(X,{Ot:r}),e||n(a),a},Q=({_t:t,ft:e})=>{let r=e?n:E,i={_t:t||e,ft:e};Y(i),r(i,a)},Z=(t,e)=>{let[,r]=V(),n={xt:r};return Y(n),r&&!e&&E(n,t?s:i),n},B=(t,e,r)=>{let n={Ht:e};return Y(n),e&&!r&&E(n,i),n},[K,$]=_?((t,e)=>{let r,n=tw("os-trinsic-observer"),[i]=o({o:!1}),a=(t,r)=>{if(t){let n=i(0===t.h||t.isIntersecting||t.intersectionRatio>0),[,a]=n;return a&&!r&&e(n)&&[n]}},s=(t,e)=>a(e.pop(),t);return[()=>{let e=[];if(v)(r=new v(J(s,!1),{root:t})).observe(n),N(e,()=>{r.disconnect()});else{let t=()=>{a(tW(n))};N(e,eW(n,t)()),t()}return J(I,N(e,tS(t,n)))},()=>r&&s(!0,r.takeRecords())]})(w,D):[],H=!T&&eW(w,Q,{ft:!0}),[z,j]=eX(w,!1,B,{ct:x,et:x}),q=T&&R&&new R(t=>{let e=t[t.length-1].contentRect;Q({_t:!0,ft:tZ(e,h)}),h=e});return[()=>{q&&q.observe(w);let t=H&&H(),e=K&&K(),r=z(),n=U.G(t=>{let[,e]=V();E({Et:t,xt:e,_t:P},l)});return()=>{q&&q.disconnect(),t&&t(),e&&e(),u&&u(),r(),n()}},({Dt:t,zt:e,It:r})=>{let n={},[o]=t("update.ignoreMutation"),[h,p]=t("update.attributes"),[d,f]=t("update.elementEvents"),[m,g]=t("update.debounce"),A=e||r;if(f||p){let t;c&&c(),u&&u();let[e,r]=eX(_||O,!0,Z,{et:(t=h||[],x.concat(t)),rt:d,it:y,ut:(t,e)=>{var r,n;let i,a,s,l,c,{target:u,attributeName:h}=t;return!e&&!!h&&!T&&(s=tx(u,y),c=tx(l=u&&(r=b,(i=(n=s)?n instanceof Element&&n:document)&&i.querySelector(r)),y)===s,!!s&&!!l&&(s===u||l===u||c&&tx(tx(u,b),y)!==s))||!!tx(u,`.${eu}`)||(a=t,"function"==typeof o&&!!o(a))}});u=e(),c=r}if(g&&(E.O(),Array.isArray(m)||"number"==typeof m?(i=m,a=!1,s=eT,l=eP):S(m)?(i=m.mutation,a=m.resize,s=m.event,l=m.env):(i=!1,a=!1,s=!1,l=!1)),A){let t=j(),e=$&&$(),r=c&&c();t&&tn(n,B(t[0],t[1],A)),e&&tn(n,D(e[0],A)),r&&tn(n,Z(r[0],A))}return Y(n),n},X]})(y,A,c,t=>{ts({},t)}),[T,q,,te]=((t,e,r,n,i,a,o)=>{let s,l,c,p,d,f,g=ta,A=0,y=["mouse","pen"],v=t=>e=>{r.Kt||t(e)},[R,x]=j(),[M,S]=j(100),[O,L]=j(50),[_,T]=j(()=>A),[P,C]=((t,e,r,n)=>{let{K:i}=eF(),{scrollbars:a}=i(),{slot:o}=a,{dt:s,vt:l,L:c,At:u,gt:h,bt:p,V:d}=e,{scrollbars:f}=u?{}:t,{slot:m}=f||{},g=[],A=[],y=[],v=eY([s,l,c],()=>d&&p?s:l,o,m),R=t=>{if(b){let e=null,n=[],i=new b({source:h,axis:t}),a=()=>{e&&e.cancel(),e=null};return{Mt:o=>{let{Tt:s}=r,l=tJ(s)[t],c="x"===t,u=[tF(0,c),tF(`calc(-100% + 100cq${c?"w":"h"})`,c)],h=l?u:u.reverse();return n[0]===h[0]&&n[1]===h[1]||(n=h,a(),e=o.kt.animate({clear:["left"],transform:h},{timeline:i})),a}}}},x={x:R("x"),y:R("y")},M=(t,e,r)=>{let n=r?ty:tA;w(t,t=>{n(t.Lt,e)})},S=(t,e)=>{w(t,t=>{let[r,n]=e(t);tI(r,n)})},O=(t,e,r)=>{let n="boolean"==typeof r;(!n||r)&&M(A,t,e),n&&r||M(y,t,e)},L=t=>{let e=t?"x":"y",r=tw(`${eu} ${t?ep:ed}`),i=tw(ef),a=tw(em),o={Lt:r,Pt:i,kt:a},s=x[e];return N(t?A:y,o),N(g,[tS(r,i),tS(i,a),J(tM,r),s&&s.Mt(o),n(o,O,t)]),o},_=J(L,!0),T=J(L,!1);return _(),T(),[{Ut:()=>{let t=(()=>{let{Rt:t,Vt:e}=r,n=(t,e)=>to(0,1,t/(t+e)||0);return{x:n(e.x,t.x),y:n(e.y,t.y)}})(),e=t=>e=>[e.Lt,{"--os-viewport-percent":tT(t)+""}];S(A,e(t.x)),S(y,e(t.y))},Nt:()=>{if(!b){let{Tt:t}=r,e=tj(t,tH(h)),n=t=>e=>[e.Lt,{"--os-scroll-percent":tT(t)+""}];S(A,n(e.x)),S(y,n(e.y))}},qt:()=>{let{Tt:t}=r,e=tJ(t),n=t=>e=>[e.Lt,{"--os-scroll-direction":t?"0":"1"}];S(A,n(e.x)),S(y,n(e.y)),b&&(A.forEach(x.x.Mt),y.forEach(x.y.Mt))},Bt:()=>{if(d&&!p){let{Rt:t,Tt:e}=r,n=tJ(e),i=tj(e,tH(h)),a=e=>{let{Lt:r}=e,a=(r&&r.parentElement)===c&&r,o=(t,e,r)=>{let n=e*t;return tP(r?n:-n)};return[a,a&&{transform:tF({x:o(i.x,t.x,n.x),y:o(i.y,t.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)}},()=>(tS(v,A[0].Lt),tS(v,y[0].Lt),J(I,g))]})(t,a,i,(s=t=>y.includes(t.pointerType)&&$(),(t,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}=t,[L,_]=j(333),[T,P]=j(444),C=t=>{"function"==typeof b.scrollBy&&b.scrollBy({behavior:"smooth",left:t.x,top:t.y})},k=!0;return J(I,[tK(O,"pointermove pointerleave",v(s)),tK(S,"pointerenter",v(()=>{r(ey,!0)})),tK(S,"pointerleave pointercancel",v(()=>{r(ey,!1)})),tK(S,"wheel",v(t=>{let{deltaX:e,deltaY:n,deltaMode:i}=t;k&&0===i&&(S&&S.parentElement)===A&&C({x:e,y:n}),k=!1,r(ex,!0),L(()=>{k=!0,r(ex)}),t.preventDefault()}),{D:!1,I:!0}),!R&&tK(S,"mousedown",v(()=>{let t=document.activeElement;(tc(t,er)||tc(t,t6)||t===document.body)&&m(J(tq,y),25)})),tK(S,"pointerdown",()=>{let t=tK(x,"click",t=>{e(),t$(t)},{A:!0,I:!0,D:!1}),e=tK(x,"pointerup pointercancel",()=>{e(),setTimeout(t,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=[],tK(w,"pointerdown",v(t=>{let r=tx(t.target,`.${em}`)===O,a=r?O:w,s=e.scrollbars,m=s[r?"dragScroll":"clickScroll"],{button:A,isPrimary:y,pointerType:v}=t,{pointers:R}=s;if(0===A&&y&&m&&(R||[]).includes(v)){I(g),P();let e=!r&&(t.shiftKey||"instant"===m),s=J(tD,O),A=J(tD,w),y=(t,e)=>(t||s())[p]-(e||A())[p],v=u(tD(b)[c])/tW(b)[d]||1,R=tH(b)[f],S=t=>{tG(b,{[f]:R+t})},L=t=>{let{Rt:e}=i;S(1/v*t/(tW(w)[d]-tW(O)[d])*e[f])},_=t[l],k=s(),F=A(),X=k[c],U=y(k,F)+X/2,W=_-F[p]-U,V=r?0:W,E=t=>{I(Q),a.releasePointerCapture(t.pointerId)},Y=r||e,D=M(),Q=[tK(x,o,E),tK(x,"selectstart",t=>t.preventDefault(),{D:!1}),tK(w,o,E),Y&&tK(w,"pointermove",t=>L(V+t[l]-_)),Y&&(()=>{let t=tH(b);D();let e=tH(b),r={x:e.x-t.x,y:e.y-t.y};(h(r.x)>3||h(r.y)>3)&&(M(),tG(b,t),C(r),T(D))})];if(a.setPointerCapture(t.pointerId),e)L(W);else if(!r){let t=t4("__osClickScrollPlugin");if(t){let{Vt:e}=i,r=t(S,L,J(y),W,e[f],m,!!n,t=>{t?D():N(Q,D)});N(Q,r),N(g,J(r,!0))}}}}))),_,P])})),{vt:k,Qt:F,bt:X}=a,{Ft:U,Ut:W,Nt:V,qt:E,Bt:Y}=P,B=(t,e)=>{T();let n=t=>{r.Kt||U(eb,t)};if(t)n();else{let t=!p||!l;A>0&&!e?_(J(n,t)):n(t)}},$=()=>{(p?l:d)||(B(!0),M(()=>{B(!1)}))},G=t=>{y.includes(t.pointerType)&&(l=!0,!r.Kt&&p&&B(!0))},H=t=>{U(eR,t,!0),U(eR,t,!1)},z=[T,S,L,x,()=>g(),tK(k,"pointerover",G,{A:!0}),tK(k,"pointerenter",G),tK(k,"pointerleave",t=>{y.includes(t.pointerType)&&(l=!1,!r.Kt&&p&&B(!1))}),tK(k,"pointermove",v(t=>{y.includes(t.pointerType)&&c&&$()})),tK(F,"scroll",v(t=>{R(()=>{V(),$()}),o(t),Y()}))],q=t4(eN);return[()=>J(I,N(z,C())),({Dt:t,It:e,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}=eF(),{rn:x,j:M}=i,[S,w]=t("showNativeOverlaidScrollbars"),[N,L]=t("scrollbars.theme"),[_,T]=t("scrollbars.visibility"),[P,I]=t("scrollbars.autoHide"),[C,k]=t("scrollbars.autoHideSuspend"),[D]=t("scrollbars.autoHideDelay"),[Q,$]=t("scrollbars.dragScroll"),[G,z]=t("scrollbars.clickScroll"),[j,tt]=t("overflow"),te=m&&!e,tr=S&&R.x&&R.y,tn=!b&&!q,ti=(t,e,r)=>{let n=t.includes(K)&&(_===Z||"auto"===_&&e===K);return U(eg,n,r),n};if(A=D,(w||tn)&&U("os-theme-none",tr||tn),L&&(U(f),U(N,!0),f=N),(k||te)&&(H(!C),te&&C&&(M.x||M.y?(g(),O(()=>{g=tK(F,K,v(J(H,!0)),{A:!0})})):H(!0))),I&&(c="move"===P,p="leave"===P,B(d="never"===P,!0)),$&&U(eS,Q),z&&U(eM,!!G),l||T||tt){let t=ti(j.x,x.x,!0),e=ti(j.y,x.y,!1);U(eA,!(t&&e))}(o||s||u||h||e)&&(V(),W(),Y(),u&&E(),U(ev,!M.x,!0),U(ev,!M.y,!1),U(eh,y&&!X))},{},P]})(t,e,a,_,A,y,n),ti=t=>tr(t).some(e=>!!t[e]),ts=(t,n)=>{let{Kt:o,pn:s}=a;if(s||o&&i)return!1;let{vn:l,It:c,zt:u}=t,h=l||{},p=!!c||!i,d={Dt:ek(e,h,p),vn:h,It:p},f=n||L(tn({},d,{zt:u})),m=g(tn({},d,{fn:_,Zt:f}));q(tn({},d,{Zt:f,tn:m}));let A=ti(f),y=ti(m),v=A||y||!!tr(h).length||p;return i=!0,v&&r(t,{Zt:f,tn:m}),v};return[()=>{let{an:t,gt:e,St:r}=y,n=tH(t),i=[M(),d(),T(),()=>{a.pn=!0}],o=r();return tG(e,n),o(),J(I,i)},ts,t=>{let e=a.Kt;a.Kt=t,t||e===t||ts({It:!0,zt:!0})},()=>{q({Dt:ek(e,{},!1),vn:{},It:!1})},()=>({gn:a,hn:_,bn:A}),{yn:y,wn:te},x]})(t,A,({vn:t,It:e},{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",[t_,{updateHints:{sizeChanged:!!i,directionChanged:!!a,heightIntrinsicChanged:!!o,overflowEdgeChanged:!!u,overflowAmountChanged:!!h,overflowStyleChanged:!!p,scrollCoordinatesChanged:!!d,contentMutation:!!s,hostMutation:!!l,appear:!!c},changedOptions:t||{},force:!!e}])},t=>q("scroll",[t_,t])),tL=t=>{let{gn:e}=tv(),{pn:r}=e;!r&&(eD.delete(a),I(c),q("destroyed",[t_,t]),x(),_())},t_={options(t,e){if(t){let r=eC(A,tn(e?n():{},g(t)));tr(r).length&&(tn(A,r),ts({vn:r}))}return tn({},A)},on:L,off:(t,e)=>{t&&e&&_(t,e)},state(){let{gn:t,hn:e,bn:r}=tv(),{pn:n,Kt:i}=t,{B:a}=e,{Vt:o,Rt:s,rn:l,j:c,ln:u,_n:h,Tt:p}=r;return tn({},{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:t,vt:e,ln:r,L:n,ht:i,gt:a,Qt:o}=tO.yn,{jt:s,Jt:l}=tO.wn,c=t=>{let{kt:e,Pt:r,Lt:n}=t;return{scrollbar:n,track:r,handle:e}},u=t=>{let{Xt:e,Yt:r}=t;return tn({},c(e[0]),{clone:()=>{let t=c(r());return td(),t}})};return tn({},{target:t,host:e,padding:r||n,viewport:n,content:i||n,scrollOffsetElement:a,scrollEventElement:o,scrollbarHorizontal:u(s),scrollbarVertical:u(l)})},update:t=>ts({It:t,zt:!0}),destroy:J(tL,!1),sleep:tp,plugin:t=>d[tr(t)[0]]};return(N(c,[tN]),eD.set(a,t_),t5(t2,eQ,[t_,y,d]),((t,e)=>{let{nativeScrollbarsOverlaid:r,body:n}=e||{},{M:i,P:a,K:o}=eF(),{nativeScrollbarsOverlaid:s,body:l}=o().cancel,c=void 0===n?l:n,u=(i.x||i.y)&&(null!=r?r:s);return!!u||!!(t&&(null===c?!a:c))})(tO.yn.bt,!i&&t.cancel))?tL(!0):(N(c,te()),q("initialized",[t_]),t_.update()),t_}return c};eQ.plugin=t=>{let e=Array.isArray(t),r=e?t:[t],n=r.map(t=>t5(t,eQ)[0]);return w(r,t=>w(t,(e,r)=>{t2[r]=t[r]})),e?n:n[0]},eQ.valid=t=>{let e,r=t&&t.elements,n="function"==typeof r&&r();return S(n)&&(e=n.target,!!eD.get(e))},eQ.env=()=>{let{U:t,M:e,P:r,J:n,ot:i,st:a,K:o,Z:s,tt:l,nt:c}=eF();return tn({},{scrollbarsSize:t,scrollbarsOverlaid:e,scrollbarsHiding:r,scrollTimeline:n,staticDefaultInitialization:i,staticDefaultOptions:a,getDefaultInitialization:o,setDefaultInitialization:s,getDefaultOptions:l,setDefaultOptions:c})},eQ.nonce=t=>{i=t},eQ.trustedTypePolicy=t=>{n=t},r.d(e,{},{ae:eQ})},42451(t,e,r){let{PI:n}=Math,i=n+1e-4,a=.5,o=[1,1];function s(t,e,r,n=t=>t){return t*n(.5-e*(.5-r))}let{min:l}=Math;function c(t,e,r){let n=l(1,e/r);return l(1,t+(l(1,1-n)-t)*(.275*n))}function u(t,e){return[t[0]+e[0],t[1]+e[1]]}function h(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t}function p(t,e){return[t[0]-e[0],t[1]-e[1]]}function d(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t}function f(t,e){return[t[0]*e,t[1]*e]}function m(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t}function g(t){return[t[1],-t[0]]}function A(t,e){let r=e[0];return t[0]=e[1],t[1]=-r,t}function y(t,e){return t[0]*e[0]+t[1]*e[1]}function v(t,e){let r=t[0]-e[0],n=t[1]-e[1];return r*r+n*n}function R(t){var e;return e=Math.hypot(t[0],t[1]),[t[0]/e,t[1]/e]}function b(t,e,r){let n=Math.sin(r),i=Math.cos(r),a=t[0]-e[0],o=t[1]-e[1];return[a*i-o*n+e[0],a*n+o*i+e[1]]}function x(t,e,r,n){let i=Math.sin(n),a=Math.cos(n),o=e[0]-r[0],s=e[1]-r[1];return t[0]=o*a-s*i+r[0],t[1]=o*i+s*a+r[1],t}function M(t,e,r){return u(t,f(p(e,t),r))}let S=[0,0],w=[0,0],O=[0,0];function N(t,e,r){return!1===t||void 0===t?0:!0===t?Math.max(e,r):t}let L=[0,0];function _(t){return null!=t&&t>=0}function T(t,e={}){return function(t,e={}){var r,n;let{size:a=16,smoothing:o=.5,thinning:l=.5,simulatePressure:M=!0,easing:L=t=>t,start:_={},end:T={},last:P=!1}=e,{cap:I=!0,easing:C=t=>t*(2-t)}=_,{cap:k=!0,easing:F=t=>--t*t*t+1}=T;if(0===t.length||a<=0)return[];let X=t[t.length-1].runningLength,U=N(_.taper,a,X),W=N(T.taper,a,X),V=(a*o)**2,E=[],Y=[],D=t.slice(0,10).reduce((t,e)=>{let r=e.pressure;return M&&(r=c(t,e.distance,a)),(t+r)/2},t[0].pressure),Q=s(a,l,t[t.length-1].pressure,L),Z,B=t[0].vector,K=t[0].point,$=K,G=K,H=$,z=!1;for(let e=0;e<t.length;e++){let{pressure:r}=t[e],{point:n,vector:o,distance:f,runningLength:g}=t[e],R=e===t.length-1;if(!R&&X-g<3)continue;l?(M&&(r=c(D,f,a)),Q=s(a,l,r,L)):Q=a/2,void 0===Z&&(Z=Q),Q=Math.max(.01,Q*Math.min(g<U?C(g/U):1,X-g<W?F((X-g)/W):1));let b=(R?t[e]:t[e+1]).vector,N=R?1:y(o,b),_=0>y(o,B)&&!z,T=null!==N&&N<0;if(_||T){A(S,B),m(S,S,Q);for(let t=0;t<=1;t+=.07692307692307693)d(w,n,S),x(w,w,n,i*t),G=[w[0],w[1]],E.push(G),h(O,n,S),x(O,O,n,-(i*t)),H=[O[0],O[1]],Y.push(H);K=G,$=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(t,e,r,n){let i=r[0]-e[0],a=r[1]-e[1];t[0]=e[0]+i*n,t[1]=e[1]+a*n})(S,b,o,N),A(S,S),m(S,S,Q),d(w,n,S),G=[w[0],w[1]],(e<=1||v(K,G)>V)&&(E.push(G),K=G),h(O,n,S),H=[O[0],O[1]],(e<=1||v($,H)>V)&&(Y.push(H),$=H),D=r,B=o}let J=[t[0].point[0],t[0].point[1]],j=t.length>1?[t[t.length-1].point[0],t[t.length-1].point[1]]:u(t[0].point,[1,1]),q=[],tt=[];if(1===t.length){if(!(U||W)||P)return function(t,e){var r;let n=(r=R(g(p(t,u(t,[1,1])))),u(t,f(r,-e))),a=[],o=1/13;for(let e=o;e<=1;e+=o)a.push(b(n,t,2*i*e));return a}(J,Z||Q)}else{let e,a,o;U||W&&1===t.length||(I?q.push(...function(t,e){let r=[],n=1/13;for(let a=n;a<=1;a+=n)r.push(b(e,t,i*a));return r}(J,Y[0])):q.push(...(a=f(e=p(E[0],Y[0]),.5),o=f(e,.51),[p(J,a),p(J,o),u(J,o),u(J,a)])));let s=g([-(r=t[t.length-1].vector)[0],-r[1]]);W||U&&1===t.length?tt.push(j):k?tt.push(...function(t,e,r){let n=[],a=u(t,f(e,r)),o=1/29;for(let e=o;e<1;e+=o)n.push(b(a,t,3*i*e));return n}(j,s,Q)):tt.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(tt,Y.reverse(),q)}(function(t,e={}){let{streamline:r=.5,size:n=16,last:i=!1}=e;if(0===t.length)return[];let s=.15+(1-r)*.85,l=Array.isArray(t[0])?t:t.map(({x:t,y:e,pressure:r=a})=>[t,e,r]);if(2===l.length){let t=l[1];l=l.slice(0,-1);for(let e=1;e<5;e++)l.push(M(l[0],t,e/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 t=1;t<l.length;t++){var g,A;let e=i&&t===m?[l[t][0],l[t][1]]:M(f.point,l[t],s);if(g=f.point,g[0]===e[0]&&g[1]===e[1])continue;let r=(A=f.point,Math.hypot(e[1]-A[1],e[0]-A[0]));if(p+=r,t<m&&!h){if(p<n)continue;h=!0}d(L,f.point,e),f={point:e,pressure:_(l[t][2])?l[t][2]:a,vector:R(L),distance:r,runningLength:p},c.push(f)}return c[0].vector=c[1]?.vector||[0,0],c}(t,e),e)}r.d(e,{$4:()=>T})},14870(t,e,r){r.d(e,{q:()=>en});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(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function y(t){let e=t.indexOf(":");return -1===e?t:t.slice(e+1)}function v(t){return"string"!=typeof t}function R(t){let e="";for(let r of t.children)e+="string"==typeof r?r:R(r);return e}function b(t,e=[],r={}){let n="",i=0,a=t.length;for(;i<a;){let a=t[i];if("{"===a){if("{"===t[i+1]){n+="{",i+=2;continue}let o=t.indexOf("}",i+1);if(-1===o){n+=a,i+=1;continue}let s=t.slice(i+1,o);/^\d+$/.test(s)?n+=e[Number(s)]??"":n+=r[s]??"",i=o+1;continue}if("}"===a&&"}"===t[i+1]){n+="}",i+=2;continue}n+=a,i+=1}return n}function x(t){let e=t.split("\\\\").join("\\"),r="",n=null;for(let t of e)o.includes(t)&&"\\"!==n?r+="\\"+t:r+=t,n=t;return r}function M(t,e,r){return void 0!==t?r&&void 0!==r[t]?r[t]:t:e}function S(t,e=!1){if(void 0===t)return e;let r=t.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(t){return this.attrs[t]}constructor(t,e){for(let e of(A(this,"text",""),A(this,"attrs",{}),t.children)){if(!v(e))continue;let t=y(e.tagName);"brk"===t?(this.attrs.brk="\\\\",this.text+="\\\\"):w.has(t)&&(this.attrs[t]=N(e,"val"))}}}function N(t,e){for(let r of Object.keys(t.attributes))if(y(r)===e){let e=t.attributes[r];return null==e?void 0:e}}let L=new Set(["box","sSub","sSup","sSubSup","num","den","deg","e"]);class _{convert(t){let e=this.oMath(t);for(let t of this.unsupported)this.options.onUnsupported?.(t);return e}noteUnsupported(t){this.unsupported.add(t)}oMath(t){return this.processChildren(t)}processChildrenList(t,e){let r=[];for(let n of t.children){if(!v(n))continue;let t=y(n.tagName);if(e&&!e.has(t))continue;let i=this.dispatch(t,n);(null!=i||null!=(i=this.processUnknown(t,n)))&&r.push({stag:t,value:i,node:n})}return r}processChildrenDict(t,e){let r={};for(let{stag:n,value:i}of this.processChildrenList(t,e))r[n]=i;return r}processChildren(t,e){let r="";for(let{value:n}of this.processChildrenList(t,e))r+=n instanceof O?n.text:String(n);return r}dispatch(t,e){switch(t){case"acc":return this.doAcc(e);case"r":return this.doR(e);case"bar":return this.doBar(e);case"sub":return this.doSub(e);case"sup":return this.doSup(e);case"f":return this.doF(e);case"func":return this.doFunc(e);case"fName":return this.doFName(e);case"groupChr":return this.doGroupChr(e);case"d":return this.doD(e);case"rad":return this.doRad(e);case"eqArr":return this.doEqArr(e);case"limLow":return this.doLimLow(e);case"limUpp":return this.doLimUpp(e);case"lim":return this.doLim(e);case"m":return this.doM(e);case"mr":return this.doMr(e);case"nary":return this.doNary(e);case"borderBox":return this.doBorderBox(e);case"phant":return this.doPhant(e);case"sPre":return this.doSPre(e);default:return null}}processUnknown(t,e){return L.has(t)?this.processChildren(e):t.endsWith("Pr")?new O(e,this):(this.noteUnsupported(t),R(e))}doAcc(t){let e=this.processChildrenDict(t),r=e.accPr;return b(M(r?.get("chr"),"\\hat{{{0}}}",s)??"",[e.e??""])}doBar(t){let e=this.processChildrenDict(t),r=e.barPr,n=M(r?.get("pos"),"\\overline{{{0}}}",h)??"",i=e.e??"";return(r?.text??"")+b(n,[i])}doD(t){let e=this.processChildrenDict(t).dPr,r=M(e?.get("begChr"),"(",c),n=M(e?.get("endChr"),")",c),i=M(e?.get("sepChr"),"|",c),a=this.processChildrenList(t,new Set(["e"])).map(t=>String(t.value)),o=i?x(i):"",s=a.join(o);return(e?.text??"")+b("\\left{left}{text}\\right{right}",[],{left:r?x(r):".",text:s,right:n?x(n):"."})}doSub(t){return b(T,[this.processChildren(t)])}doSup(t){return b(P,[this.processChildren(t)])}doF(t){let e=this.processChildrenDict(t),r=e.fPr,n=M(r?.get("type"),d,p)??"";n===d&&S(r?.get("smallFrac"))&&(n="\\tfrac{{{num}}}{{{den}}}");let i=e.num??"",a=e.den??"";return(r?.text??"")+b(n,[],{num:i,den:a})}doFunc(t){let e=this.processChildrenDict(t),r=e.fName??"",n=e.e??"";return r.split("{fe}").join(n)}doFName(t){let e=[];for(let{stag:r,value:n}of this.processChildrenList(t))if("r"===r){let t=String(n).trim();void 0!==u[t]?e.push(u[t]):(this.noteUnsupported("fName:"+t),e.push(String(n)))}else e.push(String(n));let r=e.join("");return r.includes("{fe}")?r:r+"{fe}"}doGroupChr(t){let e=this.processChildrenDict(t),r=e.groupChrPr,n=M(r?.get("chr"),void 0,s)??"",i=e.e??"";return(r?.text??"")+b(n,[i])}doRad(t){let e=this.processChildrenDict(t),r=e.e??"",n=e.deg;return n?b("\\sqrt[{deg}]{{{text}}}",[],{deg:n,text:r}):b("\\sqrt{{{text}}}",[],{text:r})}doEqArr(t){return b("\\begin{{array}}{{c}}{text}\\end{{array}}",[],{text:this.processChildrenList(t,new Set(["e"])).map(t=>String(t.value)).join("\\\\")})}doLimLow(t){let e=this.processChildrenDict(t,new Set(["e","lim"])),r=e.e??"",n=e.lim??"",i=m[r];return i?b(i,[],{lim:n}):(this.noteUnsupported("limLow:"+r),r+n)}doLimUpp(t){let e=this.processChildrenDict(t,new Set(["e","lim"]));return b("\\overset{{{lim}}}{{{text}}}",[],{lim:e.lim??"",text:e.e??""})}doLim(t){return this.processChildren(t).split(g["0"]).join(g["1"])}doM(t){let e=[],r="\\begin{{matrix}}{text}\\end{{matrix}}";for(let{stag:n,value:i,node:a}of this.processChildrenList(t)){if("mPr"===n){let t=function t(e,r,n){for(let i of e.children){if(!v(i))continue;if(y(i.tagName)===r){let t=N(i,n);if(void 0!==t)return t}let e=t(i,r,n);if(void 0!==e)return e}}(a,"mcJc","val");t&&f[t]&&(r=f[t]);continue}"mr"===n&&e.push(String(i))}return b(r,[],{text:e.join("\\\\")})}doMr(t){return this.processChildrenList(t,new Set(["e"])).map(t=>String(t.value)).join("&")}doNary(t){let e=[],r="",n="";for(let{stag:i,value:a}of this.processChildrenList(t))"naryPr"===i?(r=M(a.get("chr"),void 0,l)??"",n=a.get("naryLim")??a.get("limLoc")??a.get("intLim")??""):e.push(String(a));return r+("undOvr"===n?"\\limits":"")+e.join("")}doBorderBox(t){return b("\\boxed{{{0}}}",[this.processChildrenDict(t).e??""])}doPhant(t){let e=this.processChildrenDict(t),r=e.phantPr,n=e.e??"";return S(r?.get("show"),!0)?n:b("\\phantom{{{0}}}",[n])}doSPre(t){let e=this.processChildrenDict(t),r=e.e??"",n=e.sub??"",i=e.sup??"";return`{}${n}${i}{${r}}`}processUnicode(t){let e="";for(let r of t.normalize("NFC")){let t=c[r];void 0!==t?e+=t:o.includes(r)?e+=r:e+=function(t){let e=String(t).normalize("NFC"),r="";for(let t of e){let e=a[t.codePointAt(0)];void 0!==e?r+="{"+e+"}":r+=t}return r}(r)}return e}doR(t){let e=[],r=[];for(let n of t.children){if(!v(n)||"t"!==y(n.tagName))continue;let t=R(n);e.push(this.processUnicode(t)),r.push(t)}let n=x(e.join("")),i=r.join("");return!i.includes("{")&&n.includes("\\{")&&(n=n.split("\\{").join("{")),!i.includes("}")&&n.includes("\\}")&&(n=n.split("\\}").join("}")),n}constructor(t={}){A(this,"options",void 0),A(this,"unsupported",void 0),this.options=t,this.unsupported=new Set}}let T="_{{{0}}}",P="^{{{0}}}";function I(t){return t.replace(/&(#x[0-9a-fA-F]+|#\d+|amp|lt|gt|quot|apos);/g,function(t,e){if("amp"===e)return"&";if("lt"===e)return"<";if("gt"===e)return">";if("quot"===e)return'"';if("apos"===e)return"'";if("#"===e[0]){var r="x"===e[1]||"X"===e[1],n=parseInt(e.slice(r?2:1),r?16:10);if(!Number.isNaN(n)&&n>=0&&n<=1114111)try{return String.fromCodePoint(n)}catch(t){}}return t})}var C=r(49705).hp;let k=0,F=new Set(["m:oMath","m:oMathPara"]);async function X(t,e){try{let r=t.file(e);if(!r)return null;let n=await r.async("string");return function t(e,r={}){let n={};if(!e.length)return n;if(1===e.length&&"string"==typeof e[0])return Object.keys(r).length?{attrs:{order:k++,...r},value:e[0]}:e[0];for(let r of e){if("string"==typeof r&&""===r.trim())continue;if("object"!=typeof r)return;if("?xml"===r.tagName)continue;n[r.tagName]||(n[r.tagName]=[]);let e=t(r.children||[],r.attributes);"object"==typeof e&&(e.attrs?e.attrs.order=k++:e.attrs={order:k++},F.has(r.tagName)&&Object.defineProperty(e,"__rawNode",{value:r,enumerable:!1})),Object.keys(r.attributes||{}).length&&(e.attrs={...e.attrs,...r.attributes}),n[r.tagName].push(e)}for(let t in n)1===n[t].length&&(n[t]=n[t][0]);return n}(function t(e,r){var n=(r=r||{}).pos||0,i=!!r.keepComments,a=!!r.keepWhitespace,o=!!r.decodeEntities,s=!!r.skipXmlDeclaration;function l(t){return"string"==typeof t&&"?xml"===t.toLowerCase()}function c(t){for(var r=[];e[n];)if(60==e.charCodeAt(n)){if(47===e.charCodeAt(n+1)){var c=n+2;if(n=e.indexOf(">",n),-1==e.substring(c,n).indexOf(t)){var u=e.substring(0,n).split("\n");throw Error("Unexpected close tag\nLine: "+(u.length-1)+"\nColumn: "+(u[u.length-1].length+1)+"\nChar: "+e[n])}return n+1&&(n+=1),r}if(33===e.charCodeAt(n+1)){if(45==e.charCodeAt(n+2)){let t=n;for(;-1!==n&&(62!==e.charCodeAt(n)||45!=e.charCodeAt(n-1)||45!=e.charCodeAt(n-2)||-1==n);)n=e.indexOf(">",n+1);-1===n&&(n=e.length),i&&r.push(e.substring(t,n+1))}else{if(91===e.charCodeAt(n+2)&&91===e.charCodeAt(n+8)&&"cdata"===e.substr(n+3,5).toLowerCase()){var h=e.indexOf("]]>",n);-1==h?(r.push(e.substr(n+9)),n=e.length):(r.push(e.substring(n+9,h)),n=h+3);continue}{let t=n+1;n+=2;for(var p=!1;(62!==e.charCodeAt(n)||!0===p)&&e[n];)91===e.charCodeAt(n)?p=!0:!0===p&&93===e.charCodeAt(n)&&(p=!1),n++;r.push(e.substring(t,n))}}n++;continue}var d=f();if(s&&l(d.tagName))continue;r.push(d)}else{var m=function(){var t=n;-2==(n=e.indexOf("<",n)-1)&&(n=e.length);var r=e.slice(t,n+1);return o?I(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 t=n;-1===u.indexOf(e[n])&&e[n];)n++;return e.slice(t,n)}var p,d=r.selfClosingTags||r.noChildNodes||["img","br","input","meta","link","hr"];function f(){n++;let t=h(),r="?"===t[0],i=n,a={},s=[];for(;e[n]&&62!==e.charCodeAt(n)&&(!r||63!==e.charCodeAt(n)||62!==e.charCodeAt(n+1));){var l=e.charCodeAt(n);if(l>64&&l<91||l>96&&l<123){for(var p=h(),f=null;32===e.charCodeAt(n)||9===e.charCodeAt(n)||10===e.charCodeAt(n)||13===e.charCodeAt(n);)n++;if(61===e.charCodeAt(n)){for(n++;32===e.charCodeAt(n)||9===e.charCodeAt(n)||10===e.charCodeAt(n)||13===e.charCodeAt(n);)n++;var m=e.charCodeAt(n);if(39===m||34===m){if(f=function(){var t=e[n],r=n+1;n=e.indexOf(t,r);var i=e.slice(r,n);return o?I(i):i}(),-1===n)return{tagName:t,attributes:a,children:s}}else if(m&&62!==m){for(var g=n;e[n]&&-1===u.indexOf(e[n]);)n++;f=e.slice(g,n),o&&(f=I(f))}}a[p]=f}else n++}if(r){var A=e.slice(i,n).trim();return A.length>0&&0===Object.keys(a).length&&(s=[A]),63===e.charCodeAt(n)&&62===e.charCodeAt(n+1)?n+=2:62===e.charCodeAt(n)&&(n+=1),{tagName:t,attributes:a,children:s}}if(47!==e.charCodeAt(n-1)&&63!==e.charCodeAt(n-1))if("script"==t){var y=n+1;n=e.indexOf("<\/script>",n),s=[e.slice(y,n)],n+=9}else"style"==t?(y=n+1,n=e.indexOf("</style>",n),s=[e.slice(y,n)],n+=8):-1===d.indexOf(t)?(n++,s=c(t)):n++;else n++;return{tagName:t,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 t=RegExp("\\s"+r.attrName+"\\s*=['\"]"+r.attrValue+"['\"]").exec(e);return t?t.index:-1}());)-1!==(n=e.lastIndexOf("<",n))&&p.push(f()),e=e.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 t(e,r,n=0,i=""){var a=[];return e.forEach(function(e,o){if("object"==typeof e&&r(e,o,n,i)&&a.push(e),"object"==typeof e&&e.children){var s=t(e.children,r,n+1,(i?i+".":"")+o+"."+e.tagName);a=a.concat(s)}}),a}(p,r.filter)),r.simplify)?function e(r){if("string"==typeof r)return e(t(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(t){if("object"==typeof t){n[t.tagName]||(n[t.tagName]=[]);var r=e(t.children);n[t.tagName].push(r),Object.keys(t.attributes).length&&"object"==typeof r&&!Array.isArray(r)&&(r._attributes=t.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(t){return"1"===t||"true"===t}function W(t){return t.substr((~-t.lastIndexOf(".")>>>0)+2)}function V(t,e){if(!t)return t;let r="";if(t.constructor===Array)for(let n=0;n<t.length;n++)r+=e(t[n],n);else r+=e(t,0);return r}function E(t,e){if(!t)return t;for(let r of e)if(!(t=t[r]))break;return t}function Y(t){return t?Math.round(t/6e4):0}function D(t){let e={"&":"&","<":"<",">":">",'"':""","'":"'"};return t.replace(/[&<>"']/g,t=>e[t])}function Q(t){let e=t.toString(16);for(;e.length<2;)e="0"+e;return e}function Z(t,e=4){return parseFloat(t.toFixed(e))}function B(t,e,r,n){let i,a;if(r)a=r;else{let t=E(e.slideContent,["p:sld","p:clrMapOvr","a:overrideClrMapping","attrs"]);a=t||(t=E(e.slideLayoutContent,["p:sldLayout","p:clrMapOvr","a:overrideClrMapping","attrs"]))||E(e.slideMasterContent,["p:sldMaster","p:clrMap","attrs"])}let o=t.substr(2);if("phClr"===o&&n)i=n;else{if(a)switch(o){case"tx1":case"tx2":case"bg1":case"bg2":t="a:"+a[o]}else switch(o){case"tx1":t="a:dk1";break;case"tx2":t="a:dk2";break;case"bg1":t="a:lt1";break;case"bg2":t="a:lt2"}let r=E(e.themeContent,["a:theme","a:themeElements","a:clrScheme",t]);(i=E(r,["a:srgbClr","attrs","val"]))||!r||(i=E(r,["a:sysClr","attrs","lastClr"]))}return i}function K(t,e,r){return(r<0&&(r+=6),r>=6&&(r-=6),r<1)?(e-t)*r+t:r<3?e:r<4?(e-t)*(4-r)+t:t}function $(t,e,r){let n=(0,i.A)(t).toHsl();e>=1&&(e=1);let a=n.l*e+(1-e);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(t){let e="";return t["a:noFill"]&&(e="NO_FILL"),t["a:solidFill"]&&(e="SOLID_FILL"),t["a:gradFill"]&&(e="GRADIENT_FILL"),t["a:pattFill"]&&(e="PATTERN_FILL"),t["a:blipFill"]&&(e="PIC_FILL"),t["a:grpFill"]&&(e="GROUP_FILL"),e}function H(t=""){return{ref:t,base64:"",blob:"",align:{t:0,b:0,l:0,r:0},alignType:"stretch"}}function z(t=""){return{ref:t,blob:""}}async function J(t,e,r,n="base64"){let i;if(!t||"base64"!==n&&"blob"!==n)return"";let a=D(t),o=(i=e[r]||{},e[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=e.zip.file(a);if(!c)return"";let u=await c.async("arraybuffer"),h=function(t){let e="";switch(t.toLowerCase()){case"jpg":case"jpeg":e="image/jpeg";break;case"png":e="image/png";break;case"gif":e="image/gif";break;case"emf":e="image/x-emf";break;case"wmf":e="image/x-wmf";break;case"svg":e="image/svg+xml";break;case"mp4":e="video/mp4";break;case"webm":e="video/webm";break;case"ogg":e="video/ogg";break;case"avi":e="video/avi";break;case"mpg":e="video/mpg";break;case"wmv":e="video/wmv";break;case"mp3":e="audio/mpeg";break;case"wav":e="audio/wav";break;case"tif":case"tiff":e="image/tiff"}return e}(l);if("emf"===l){let t=function(t){if("u"<typeof document)return"";let e=function(t){if(!t||t.length<44)return null;let e=new DataView(t.buffer,t.byteOffset,t.byteLength);if(0x464d4520!==e.getUint32(40,!0))return null;let r=0;for(;r+8<=t.length;){let n=e.getUint32(r,!0),i=e.getUint32(r+4,!0);if(i<8||r+i>t.length||14===n)break;if(81===n&&i>80){let n=function(t,e,r){if(r+80>t.length)return null;let n=e.getUint32(r+48,!0),i=e.getUint32(r+52,!0),a=e.getUint32(r+56,!0),o=e.getUint32(r+60,!0);if(0===i||0===o)return null;let s=r+n;if(s+40>t.length)return null;let l=e.getInt32(s+4,!0),c=e.getInt32(s+8,!0),u=e.getUint16(s+14,!0);if(0!==e.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>t.length)return null;let f=t.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 t=0;t<p;t++){let e=(m?t:p-1-t)*y,r=t*h*4;for(let t=0;t<h;t++){let n=e+t*A;if(n+A>f.length)break;g[r+4*t+0]=f[n+2],g[r+4*t+1]=f[n+1],g[r+4*t+2]=f[n+0],g[r+4*t+3]=32===u?f[n+3]:255}}return{width:h,height:p,data:g}}(t,e,r);if(n)return n}r+=i}return null}(t);if(!e)return"";let r=document.createElement("canvas");r.width=e.width,r.height=e.height;let n=r.getContext("2d");return n?(n.putImageData(new ImageData(e.data,e.width,e.height),0,0),r.toDataURL("image/png")):""}(new Uint8Array(u));if(t){if("base64"===n)s.base64=t;else{let e=Uint8Array.from(atob(t.split(",")[1]),t=>t.charCodeAt(0));s.blob=URL.createObjectURL(new Blob([e],{type:"image/png"}))}return s[n]}}return"base64"===n?s.base64=`data:${h};base64,${function(t){let e,r,n,i,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=new Uint8Array(t),s=o.byteLength,l=s%3,c=s-l,u="";for(let t=0;t<c;t+=3)e=(0xfc0000&(i=o[t]<<16|o[t+1]<<8|o[t+2]))>>18,u+=a[e]+a[r=(258048&i)>>12]+a[n=(4032&i)>>6]+a[63&i];return 1===l?(e=(252&(i=o[c]))>>2,u+=a[e]+a[r=(3&i)<<4]+"=="):2===l&&(e=(64512&(i=o[c]<<8|o[c+1]))>>10,u+=a[e]+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(t,e,r="base64"){return await J(t,e,"loadedImages",r)}async function q(t,e,r="blob"){return"blob"!==r?"":await J(t,e,"loadedVideos","blob")}async function tt(t,e,r="blob"){return"blob"!==r?"":await J(t,e,"loadedAudios","blob")}async function te(t,e){let r,n=H(t||"");if(!t)return n;let i="blob"===(r=E(e,["options","imageMode"]))||"both"===r||"none"===r?r:"base64";return("base64"===i||"both"===i)&&(n.base64=await j(t,e,"base64")),("blob"===i||"both"===i)&&(n.blob=await j(t,e,"blob")),n}async function tr(t,e){let r=z(t||"");return t?("blob"==("blob"===E(e,["options","videoMode"])?"blob":"none")&&(r.blob=await q(t,e,"blob")),r):r}async function tn(t,e){let r=z(t||"");return t?("blob"==("blob"===E(e,["options","audioMode"])?"blob":"none")&&(r.blob=await tt(t,e,"blob")),r):r}async function ti(t,e,r){let n;if(!e)return H();let i=E(e,["a:blip","attrs","r:embed"]);if("slideBg"===t||"slide"===t?n=E(r,["slideResObj",i,"target"]):"slideLayoutBg"===t?n=E(r,["layoutResObj",i,"target"]):"slideMasterBg"===t?n=E(r,["masterResObj",i,"target"]):"themeBg"===t?n=E(r,["themeResObj",i,"target"]):"diagramBg"===t&&(n=E(r,["diagramResObj",i,"target"])),!n)return H();let a=await te(n,r),o={t:0,b:0,l:0,r:0},s="stretch";if(e["a:stretch"]){s="stretch";let t=E(e,["a:stretch","a:fillRect","attrs"]);t&&(t.t&&(o.t=parseInt(t.t)/1e3),t.b&&(o.b=parseInt(t.b)/1e3),t.l&&(o.l=parseInt(t.l)/1e3),t.r&&(o.r=parseInt(t.r)/1e3))}else if(e["a:tile"]){s="tile";let t=E(e,["a:tile","attrs"]);t&&(t.t&&(o.t=parseInt(t.t)/1e3),t.b&&(o.b=parseInt(t.b)/1e3),t.l&&(o.l=parseInt(t.l)/1e3),t.r&&(o.r=parseInt(t.r)/1e3))}else e["a:scale"]&&(s="scale");return a.align=o,a.alignType=s,a}function ta(t){let e=E(t["a:blip"],["a:alphaModFix","attrs"]),r=1;return e&&e.amt&&""!==e.amt&&(r=parseInt(e.amt)/1e5),r}async function to(t,e,r){let n=await ti(e,t["a:blipFill"],r),i=E(t["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 ts(t,e){if(!t["a:gsLst"])return null;let r=t["a:gsLst"]["a:gs"],n=[];for(let t=0;t<r.length;t++){let i=tf(r[t],void 0,void 0,e),a=E(r[t],["attrs","pos"]);n[t]={pos:a?a/1e3+"%":"",color:i}}let i=t["a:lin"],a=0,o="line";if(i)a=Y(i.attrs.ang);else{let e=t["a:path"];e&&e.attrs&&e.attrs.path&&(o=e.attrs.path)}return{rot:a,path:o,colors:n.sort((t,e)=>parseInt(t.pos)-parseInt(e.pos))}}function tl(t,e){if(!t)return null;let r=t["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=tf(i,void 0,void 0,e)),a&&(s=tf(a,void 0,void 0,e)),{type:n,foregroundColor:o,backgroundColor:s}}function tc(t,e,r,n){if(t){let i=t["a:gradFill"],a=i["a:gsLst"]["a:gs"],o=[];for(let t=0;t<a.length;t++){let i=tf(a[t],r["p:sldMaster"]["p:clrMap"].attrs,e,n),s=E(a[t],["attrs","pos"]);o[t]={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 t=i["a:path"];t&&t.attrs&&t.attrs.path&&(c=t.attrs.path)}return{rot:l,path:c,colors:o.sort((t,e)=>parseInt(t.pos)-parseInt(e.pos))}}return e?-1===e.indexOf("#")?`#${e}`:e:null}async function tu(t){let e=t.slideContent,r=t.slideLayoutContent,n=t.slideMasterContent,i=E(e,["p:sld","p:cSld","p:bg","p:bgPr"]),a=E(e,["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(e,["p:sld","p:clrMapOvr","a:overrideClrMapping","attrs"]);o=tf(s,a=l?l:E(r,["p:sldLayout","p:clrMapOvr","a:overrideClrMapping","attrs"])||E(n,["p:sldMaster","p:clrMap","attrs"]),void 0,t)}else if("GRADIENT_FILL"===a){let e=tc(i,void 0,n,t);"string"==typeof e?o=e:e&&(o=e,s="gradient")}else if("PIC_FILL"===a)o=await to(i,"slideBg",t),s="image";else if("PATTERN_FILL"===a){let e=tl(i,t);e&&(o=e,s="pattern")}}else if(a){let i,l=E(e,["p:sld","p:clrMapOvr","a:overrideClrMapping","attrs"]),c=tf(a,i=l?l:E(r,["p:sldLayout","p:clrMapOvr","a:overrideClrMapping","attrs"])||E(n,["p:sldMaster","p:clrMap","attrs"]),void 0,t),u=Number(a.attrs.idx);if(u>1e3){let e=t.themeContent["a:theme"]["a:themeElements"]["a:fmtScheme"]["a:bgFillStyleLst"],r=[];Object.keys(e).forEach(t=>{let n=e[t];if("attrs"!==t)if(n.constructor===Array)for(let e=0;e<n.length;e++){let i={};i[t]=n[e],n[e].attrs&&(i.idex=n[e].attrs.order,i.attrs={order:n[e].attrs.order}),r.push(i)}else{let e={};e[t]=n,n.attrs&&(e.idex=n.attrs.order,e.attrs={order:n.attrs.order}),r.push(e)}});let a=r.slice(0);a.sort((t,e)=>t.idex-e.idex);let l=a[u-1e3-1],h=G(l);if("SOLID_FILL"===h)o=tf(l["a:solidFill"],i,c,t);else if("GRADIENT_FILL"===h){let e=tc(l,c,n,t);"string"==typeof e?o=e:e&&(o=e,s="gradient")}}}else{let e;if(i=E(r,["p:sldLayout","p:cSld","p:bg","p:bgPr"]),a=E(r,["p:sldLayout","p:cSld","p:bg","p:bgRef"]),e=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=tf(i["a:solidFill"],e,void 0,t);else if("GRADIENT_FILL"===r){let e=tc(i,void 0,n,t);"string"==typeof e?o=e:e&&(o=e,s="gradient")}else if("PIC_FILL"===r)o=await to(i,"slideLayoutBg",t),s="image";else if("PATTERN_FILL"===r){let e=tl(i,t);e&&(o=e,s="pattern")}}else if(a){let r=tf(a,e,void 0,t),i=Number(a.attrs.idx);if(i>1e3){let a=t.themeContent["a:theme"]["a:themeElements"]["a:fmtScheme"]["a:bgFillStyleLst"],l=[];Object.keys(a).forEach(t=>{let e=a[t];if("attrs"!==t)if(e.constructor===Array)for(let r=0;r<e.length;r++){let n={};n[t]=e[r],e[r].attrs&&(n.idex=e[r].attrs.order,n.attrs={order:e[r].attrs.order}),l.push(n)}else{let r={};r[t]=e,e.attrs&&(r.idex=e.attrs.order,r.attrs={order:e.attrs.order}),l.push(r)}});let c=l.slice(0);c.sort((t,e)=>t.idex-e.idex);let u=c[i-1e3-1],h=G(u);if("SOLID_FILL"===h)o=tf(u["a:solidFill"],e,r,t);else if("GRADIENT_FILL"===h){let e=tc(u,r,n,t);"string"==typeof e?o=e:e&&(o=e,s="gradient")}else if("PIC_FILL"===h)o=await to(u,"themeBg",t),s="image";else if("PATTERN_FILL"===h){let e=tl(u,t);e&&(o=e,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 e=G(i);if("SOLID_FILL"===e)o=tf(i["a:solidFill"],r,void 0,t);else if("GRADIENT_FILL"===e){let e=tc(i,void 0,n,t);"string"==typeof e?o=e:e&&(o=e,s="gradient")}else if("PIC_FILL"===e)o=await to(i,"slideMasterBg",t),s="image";else if("PATTERN_FILL"===e){let e=tl(i,t);e&&(o=e,s="pattern")}}else if(a){let i=tf(a,r,void 0,t),l=Number(a.attrs.idx);if(l>1e3){let r=t.themeContent["a:theme"]["a:themeElements"]["a:fmtScheme"]["a:bgFillStyleLst"],a=[];Object.keys(r).forEach(t=>{let e=r[t];if("attrs"!==t)if(e.constructor===Array)for(let r=0;r<e.length;r++){let n={};n[t]=e[r],e[r].attrs&&(n.idex=e[r].attrs.order,n.attrs={order:e[r].attrs.order}),a.push(n)}else{let r={};r[t]=e,e.attrs&&(r.idex=e.attrs.order,r.attrs={order:e.attrs.order}),a.push(r)}});let c=a.slice(0);c.sort((t,e)=>t.idex-e.idex);let u=c[l-1e3-1],h=G(u);if("SOLID_FILL"===h)o=tf(u["a:solidFill"],e,i,t);else if("GRADIENT_FILL"===h){let e=tc(u,i,n,t);"string"==typeof e?o=e:e&&(o=e,s="gradient")}else if("PIC_FILL"===h)o=await to(u,"themeBg",t),s="image";else if("PATTERN_FILL"===h){let e=tl(u,t);e&&(o=e,s="pattern")}}}}}return{type:s,value:o}}async function th(t,e,r,n){if(!t)return{state:"missing"};let i=E(t,["p:spPr"]),a=i?G(i):"",o="color",s="";if("NO_FILL"===a)return{state:"none"};if("SOLID_FILL"===a)s=tf(i["a:solidFill"],void 0,void 0,e),o="color";else if("GRADIENT_FILL"===a)s=ts(i["a:gradFill"],e),o="gradient";else if("PIC_FILL"===a){let t=i["a:blipFill"],n=await ti(r,t,e),a=ta(t);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=tl({"a:pattFill":i["a:pattFill"]},e),o="pattern";else if("GROUP_FILL"===a){let t=await td(n,e,r);return t?{state:"found",fill:t}:{state:"none"}}if(!s){let r=E(t,["attrs","useBgFill"]);if("1"===r||"true"===r){let t=await tu(e);return t?{state:"found",fill:t}:{state:"none"}}let n=E(t,["p:style","a:fillRef"]);if(n&&0===Number(E(n,["attrs","idx"])))return{state:"none"};s=tf(n,void 0,void 0,e),o="color"}return s?{state:"found",fill:{type:o,value:s}}:{state:"missing"}}async function tp(t,e,r,n={}){let i,{groupHierarchy:a=[],slideLayoutSpNode:o,slideMasterSpNode:s}=n;for(let n of(i=[{node:t,source:r}],o&&i.push({node:o,source:"slideLayoutBg"}),s&&i.push({node:s,source:"slideMasterBg"}),i)){let t=await th(n.node,e,n.source,a);if("none"===t.state)break;if("found"===t.state)return t.fill}return null}async function td(t,e,r){for(let n of t){if(!n||!n["p:grpSpPr"])continue;let t=n["p:grpSpPr"],i=G(t);if("SOLID_FILL"===i){let r=tf(t["a:solidFill"],void 0,void 0,e);if(r)return{type:"color",value:r}}else if("GRADIENT_FILL"===i){let r=ts(t["a:gradFill"],e);if(r)return{type:"gradient",value:r}}else if("PIC_FILL"===i){let n=t["a:blipFill"],i=await ti(r,n,e),a=ta(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=tl({"a:pattFill":t["a:pattFill"]},e);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 tf(t,e,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,N,L;if(!t)return"";let _="";if(t["a:srgbClr"])_=E(y=t["a:srgbClr"],["attrs","val"]);else if(t["a:schemeClr"])_=B("a:"+E(y=t["a:schemeClr"],["attrs","val"]),n,e,r)||"";else if(t["a:scrgbClr"]){let e=(y=t["a:scrgbClr"]).attrs,r=-1!==e.r.indexOf("%")?e.r.split("%").shift():e.r,n=-1!==e.g.indexOf("%")?e.g.split("%").shift():e.g,i=-1!==e.b.indexOf("%")?e.b.split("%").shift():e.b;_=Q(255*(Number(r)/100))+Q(255*(Number(n)/100))+Q(255*(Number(i)/100))}else if(t["a:prstClr"]){let e,r,n;r=E(y=t["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(t=>t.toLowerCase()===r))&&(e=["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]),_=e}else if(t["a:hslClr"]){let e,r,n,i=(y=t["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,e=l<=.5?l*(s+1):l+s-l*s,n=255*K(r=2*l-e,e,a+2),{r:n,g:255*K(r,e,a),b:255*K(r,e,a-2)});_=Q(c.r)+Q(c.g)+Q(c.b)}else if(t["a:sysClr"]){let e=E(y=t["a:sysClr"],["attrs","lastClr"]);e&&(_=e)}let T=!1,P=parseInt(E(y,["a:alpha","attrs","val"]))/1e5;if(!isNaN(P)){let t=(0,i.A)(_);t.setAlpha(P),_=t.toHex8(),T=!0}let I=parseInt(E(y,["a:hueMod","attrs","val"]))/1e5;isNaN(I)||(o=_,s=T,(R=(v=(0,i.A)(o).toHsl()).h*I)>=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 C=parseInt(E(y,["a:lumMod","attrs","val"]))/1e5;isNaN(C)||(l=_,c=T,(x=(b=(0,i.A)(l).toHsl()).l*C)>=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,_=(L=g+(N=(0,i.A)(m).toHsl()).l)>=1?A?(0,i.A)({h:N.h,s:N.s,l:1,a:N.a}).toHex8():(0,i.A)({h:N.h,s:N.s,l:1,a:N.a}).toHex():A?(0,i.A)({h:N.h,s:N.s,l:L,a:N.a}).toHex8():(0,i.A)({h:N.h,s:N.s,l:L,a:N.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)||(_=$(_,U,T)),_&&-1===_.indexOf("#")&&(_="#"+_),_}function tm(t){let e=E(t,["attrs"]);if(!e)return;let r={type:e.type||"none"};return e.w&&(r.width=e.w),e.len&&(r.length=e.len),r}function tg(t,e,r){let n=E(t,["p:spPr","a:ln"]),i=E(t,["p:style","a:lnRef"]),a=n;if(!a&&i){let t=E(i,["attrs","idx"]);a=r.themeContent["a:theme"]["a:themeElements"]["a:fmtScheme"]["a:lnStyleLst"]["a:ln"][Number(t)-1]}a||(a=t);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!==t&&(s||l)?.75:0);let u=null;if(a["a:solidFill"]){let t=tf(a["a:solidFill"],void 0,void 0,r);t&&(u={type:"color",value:t})}if(!u&&!n&&i){let t=tf(i,void 0,void 0,r);t&&(u={type:"color",value:t})}if(!u&&a["a:gradFill"]){let t=ts(a["a:gradFill"],r);t&&t.colors&&t.colors.length>0&&(u={type:"gradient",value:t})}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:tm(E(a,["a:headEnd"])),tailEnd:tm(E(a,["a:tailEnd"]))}}function tA(t,e){if(!t)return[];t.constructor!==Array&&(t=[t]);let r=[];for(let n of t){let t=E(n,["c:spPr","a:solidFill","a:schemeClr"]);t||(t=E(n,["c:spPr","a:ln","a:solidFill","a:schemeClr"])),t||(t=E(n,["c:marker","c:spPr","a:ln","a:solidFill","a:schemeClr"]));let i=E(t,["attrs","val"]);if(i){i=E(e.themeContent,["a:theme","a:themeElements","a:clrScheme",`a:${i}`,"a:srgbClr","attrs","val"]);let r=E(t,["a:tint","attrs","val"])/1e5;i&&!isNaN(r)&&(i=$(i,r))}else i=E(n,["c:spPr","a:solidFill","a:srgbClr","attrs","val"]);i&&(i="#"+i),r.push(i)}return r}function ty(t){let e=[];return t&&V(t,(t,r)=>{let n=[],i=E(t,["c:tx","c:strRef","c:strCache","c:pt","c:v"])||r,a={};return E(t,["c:cat","c:strRef","c:strCache","c:pt"])?V(t["c:cat"]["c:strRef"]["c:strCache"]["c:pt"],t=>(a[t.attrs.idx]=t["c:v"],"")):E(t,["c:cat","c:numRef","c:numCache","c:pt"])&&V(t["c:cat"]["c:numRef"]["c:numCache"]["c:pt"],t=>(a[t.attrs.idx]=t["c:v"],"")),E(t,["c:val","c:numRef","c:numCache","c:pt"])&&V(t["c:val"]["c:numRef"]["c:numCache"]["c:pt"],t=>(n.push({x:t.attrs.idx,y:parseFloat(t["c:v"])}),"")),e.push({key:i,values:n,xlabels:a}),""}),e}function tv(t){let e=[];if(!t)return e;let r=t.constructor===Array?t:[t],n=r[0],i=[];for(let t of(V(n["c:xVal"]["c:numRef"]["c:numCache"]["c:pt"],t=>(i.push(parseFloat(t["c:v"])),"")),e.push(i),r)){let r=[];V(t["c:yVal"]["c:numRef"]["c:numCache"]["c:pt"],t=>(r.push(parseFloat(t["c:v"])),"")),e.push(r)}return e}let tR=72/914400;function tb(t){let e=1,r=E(t,["a:pPr","attrs","lvl"]);return void 0!==r&&(e=parseInt(r)+1),e}function tx(t,e){if(!t)return"";let r=E(t,["p:txBody","a:lstStyle",e,"attrs","algn"]);return r||(r=E(t,["p:txBody","a:p","a:pPr","attrs","algn"])),r||""}function tM(t,e){e&&t.push(e)}function tS(t,e,r){e&&(tM(t,E(e,["p:txBody","a:lstStyle",`a:lvl${r}pPr`])),tM(t,E(e,["p:txBody","a:p","a:pPr"])))}function tw(t,e,r,n,i,a,o){var s;if(!t)return null;let l=t["a:pPr"],c=tb(t),u=[];return tM(u,l),e&&tM(u,E(e,["a:lstStyle",`a:lvl${c}pPr`])),tS(u,r,c),tS(u,n,c),!function(t,e,r,n){if(!n)return;let i=`a:lvl${r}pPr`;"title"===e||"ctrTitle"===e||"subTitle"===e?(tM(t,E(n,["p:titleStyle",i])),"subTitle"===e&&tM(t,E(n,["p:bodyStyle",i]))):"body"===e?tM(t,E(n,["p:bodyStyle",i])):tM(t,E(n,["p:otherStyle",i]))}(u,i,c,a),s=E(o,["defaultTextStyle"]),s&&(tM(u,E(s,[`a:lvl${c}pPr`])),tM(u,E(s,["a:defPPr"]))),u}function tO(t){let e=E(t,["a:spcPct","attrs","val"]),r=E(t,["a:spcPts","attrs","val"]);return e?parseInt(e)/1e5+"em":r?parseInt(r)/100+"pt":void 0}function tN(t,e){let r=E(t,["attrs",e]);if(void 0!==r&&""!==r)return Z(parseInt(r)*tR)+"pt"}function tL(t,e,r,n){let i=E(t,["p:txBody","a:bodyPr","attrs",n]);return null!=i&&""!==i||null!=(i=E(e,["p:txBody","a:bodyPr","attrs",n]))&&""!==i?i:E(r,["p:txBody","a:bodyPr","attrs",n])}function t_(t){if(null==t||""===t)return null;let e=parseInt(t,10);return Number.isFinite(e)?Z(e*tR):null}function tT(t,e,r){let n;return(t?n=t["a:off"].attrs:e?n=e["a:off"].attrs:r&&(n=r["a:off"].attrs),n)?{top:Z(parseInt(n.y)*tR),left:Z(parseInt(n.x)*tR)}:{top:0,left:0}}function tP(t,e,r){let n;return(t?n=t["a:ext"].attrs:e?n=e["a:ext"].attrs:r&&(n=r["a:ext"].attrs),n)?{width:Z(parseInt(n.cx)*tR),height:Z(parseInt(n.cy)*tR)}:{width:0,height:0}}function tI(t){let e=t&&t.__rawNode;return e?(function(t,e={}){return new _(e).convert(t)})(e).replaceAll(/</g,"<").replaceAll(/>/g,">").replaceAll(/&/g,"&").replaceAll(/'/g,"'").replaceAll(/"/g,'"').trim():""}let tC=t=>t?Array.isArray(t)?t:[t]:[],tk=(t,e)=>{if(!t||"object"!=typeof t)return null;if(t["a:rPr"]){let e=t["a:rPr"];return Array.isArray(e)?e[0]:e}for(let[r,n]of Object.entries(t))if("attrs"!==r&&(!e||"m:ctrlPr"!==r))for(let t of tC(n)){let r=tk(t,e);if(r)return r}return null};function tF(t,e){let r=tf(t,void 0,void 0,e),n=t.attrs,i=n.dir?parseInt(n.dir)/6e4:0,a=n.dist?parseInt(n.dist)*tR:0,o=n.blurRad?parseInt(n.blurRad)*tR:"",s=a*Math.sin(i*Math.PI/180);return{h:a*Math.cos(i*Math.PI/180),v:s,blur:o,color:r}}function tX(t,e){e&&t.push(e)}function tU(t){return`a:lvl${t}pPr`}function tW(t,e,r){e&&(tX(t,E(e,["p:txBody","a:lstStyle",tU(r),"a:defRPr"])),tX(t,E(e,["p:txBody","a:p","a:pPr","a:defRPr"])))}function tV(t,e,r,n){if(!n)return;let i=tU(r);"title"===e||"ctrTitle"===e||"subTitle"===e?(tX(t,E(n,["p:titleStyle",i,"a:defRPr"])),"subTitle"===e&&tX(t,E(n,["p:bodyStyle",i,"a:defRPr"]))):"body"===e?tX(t,E(n,["p:bodyStyle",i,"a:defRPr"])):tX(t,E(n,["p:otherStyle",i,"a:defRPr"]))}function tE(t,e,r,n,i,a){let o=[],s=E(t,["a:rPr"]);return tX(o,s),s||tX(o,E(e,["a:endParaRPr"])),tX(o,E(e,["a:pPr","a:defRPr"])),r&&tX(o,E(r,["a:lstStyle",tU(a),"a:defRPr"])),tW(o,n,a),tW(o,i,a),o}function tY(t,e,r,n,i,a,o,s){let l=tE(t,e,r,n,i,s);return tV(l,a,s,o),l}function tD(t,e){for(let r of t){let t=E(r,["attrs",e]);if(void 0!==t&&""!==t)return t}return""}function tQ(t){return/[\u2E80-\u9FFF\uF900-\uFAFF\uFF00-\uFF60\uFFE0-\uFFE6\u3000-\u303F]/.test(t)}function tZ(t,e){for(let r of t){let t=function(t,e){if(!t)return"";let r=G(t);return"SOLID_FILL"===r?tf(t["a:solidFill"],void 0,void 0,e):"GRADIENT_FILL"===r?ts(t["a:gradFill"],e):""}(r,e);if(t)return t}return""}function tB(t,e,r,n,i,a,o,s,l,c){let u=E(t,["a:rPr"]);if(u&&"NO_FILL"===G(u))return"transparent";let h=tE(t,e,r,n,i,s),p=tZ(h,c);if(!p){if(l&&(p=tf(l,void 0,void 0,c)),!p){let t=E(n,["p:style","a:fontRef"]);t&&(p=tf(t,void 0,void 0,c))}if(!p){let t=E(i,["p:style","a:fontRef"]);t&&(p=tf(t,void 0,void 0,c))}}return p||(tV(h,a,s,o),p=tZ(h,c)),p||""}function tK(t,e,r,n,i,a,o,s,l){let c=tY(t,e,r,n,i,a,o,s);l&&(tX(c,E(l,[tU(s),"a:defRPr"])),tX(c,E(l,["a:defPPr","a:defRPr"])));let u=tD(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 t$(t){return"string"==typeof t?t:t&&"string"==typeof t.value?t.value:void 0}function tG(t,e,r,n,i,a){if(!t)return"";let o="",s=E(e,["p:style","a:fontRef"]),l=e&&e["a:tcPr"]?void 0:a.slideMasterTextStyles,c=e&&e["a:tcPr"]?a.defaultTextStyle:void 0,u=t["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(t=>t.type="br"),f.length>1&&f.shift(),(h=h.concat(f)).sort((t,e)=>!t.attrs||!e.attrs||t.attrs.order-e.attrs.order)));let m=function(t){let e=[],r=(t,r)=>{let n=tI(t);n&&e.push({type:"math",latex:n,node:t,attrs:{order:r}})};for(let e of tC(t["a14:m"])){let t=e&&e.attrs&&e.attrs.order||0;for(let n of["m:oMath","m:oMathPara"])for(let i of tC(e[n]))r(i,t)}for(let e of["m:oMath","m:oMathPara"])for(let n of tC(t[e]))r(n,n&&n.attrs&&n.attrs.order||0);return e}(u);m.length&&(h=(h||[]).concat(m)).sort((t,e)=>(t.attrs&&t.attrs.order||0)-(e.attrs&&e.attrs.order||0));let g=function(t,e,r,n,i,a){let o=E(t,["a:pPr","attrs","algn"]);if(o||(o=E(e,["p:txBody","a:p","a:pPr","attrs","algn"])),!o){let e="a:lvl"+tb(t)+"pPr";(o=tx(n,e))||(o=tx(i,e)),o||"title"!==r&&"ctrTitle"!==r&&"subTitle"!==r?o||"body"!==r?o||(o=E(a,["slideMasterTextStyles","p:otherStyle",e,"attrs","algn"])):o=E(a,["slideMasterTextStyles","p:bodyStyle",e,"attrs","algn"]):(o=E(a,["slideMasterTextStyles","p:titleStyle",e,"attrs","algn"]))||"subTitle"!==r||(o=E(a,["slideMasterTextStyles","p:bodyStyle",e,"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,e,i,r,n,a),A=function(t,e,r,n,i,a,o){let s=tw(t,e,r,n,i,a,o);if(!s)return null;let l={};for(let t of s){if(void 0===l.lineSpacing){let e=function(t){let e=E(t,["a:spcPct","attrs","val"]),r=E(t,["a:spcPts","attrs","val"]);return e?Math.round(parseInt(e)/1e3/100*120)/100:r?parseInt(r)/100+"pt":void 0}(t["a:lnSpc"]);void 0!==e&&(l.lineSpacing=e)}if(void 0===l.spaceBefore){let e=tO(t["a:spcBef"]);void 0!==e&&(l.spaceBefore=e)}if(void 0===l.spaceAfter){let e=tO(t["a:spcAft"]);void 0!==e&&(l.spaceAfter=e)}}let c=function(t,e,r){for(let n of[t,e&&e["p:txBody"],r&&r["p:txBody"]]){let t=E(n,["a:bodyPr","a:normAutofit","attrs","lnSpcReduction"]);if(void 0!==t)return parseInt(t)}}(e,r,n);if(void 0!==c){let t=c/1e5;void 0!==l.lineSpacing?"number"==typeof l.lineSpacing&&(l.lineSpacing=Math.round(l.lineSpacing*(1-t)*100)/100):l.lineSpacing=Math.round((1-t)*100)/100}return Object.keys(l).length>0?l:null}(u,t,r,n,i,l,a),y=function(t,e,r,n,i,a,o){let s=tw(t,e,r,n,i,a,o);if(!s)return null;let l={};for(let t of s){if(void 0===l.marginLeft){let e=tN(t,"marL");void 0!==e&&(l.marginLeft=e)}if(void 0===l.textIndent){let e=tN(t,"indent");void 0!==e&&(l.textIndent=e)}}return Object.keys(l).length>0?l:null}(u,t,r,n,i,l,a),v=function(t,e,r,n,i,a,o){if(!(t["a:r"]||t["a:br"]||t["a:fld"]))return"";let s=tw(t,e,r,n,i,a,o);if(!s)return"";for(let t of s){if(t["a:buNone"])break;if(t["a:buChar"]||t["a:buBlip"])return"ul";if(t["a:buAutoNum"])return"ol"}return""}(u,t,r,n,i,l,a),R=function(t){let e=t["a:pPr"];if(!e)return 0;let r=E(e,["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 t=p.pop();o+=`</${t}>`}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 t=p.pop();o+=`</${t}>`}o+=`<p style="${x}">`}if(h){let e=null,p="",d=h.find(t=>!t.type),f=null;for(let m of h){if("math"===m.type){if(p&&e){let t=p.replace(/\t/g," ").replace(/\s/g," ");o+=`<span style="${e.styleText}">${t}</span>`}p="",e=null;let h=D(m.latex),g=function(t,e,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=tk(h=t&&t.node,!0)||tk(h,!1))?{"a:rPr":p}:{},y=(d=A&&A["a:rPr"])&&d.attrs&&d.attrs.sz||!e?A:e,v=(f=A&&A["a:rPr"])&&(f["a:solidFill"]||f["a:gradFill"]||f["a:pattFill"])||!e?A:e,R=tK(y,r,n,a,o,s,l,m,c),b=tB(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,t,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=tH(m,u,t,s,r,n,i,l,c,a);if(!e||e.styleText!==h.styleText||e.hasLink!==h.hasLink||h.hasLink){if(p){let t=p.replace(/\t/g," ").replace(/\s/g," ");o+=`<span style="${e.styleText}">${t}</span>`,p=""}if(h.hasLink){let t=h.text.replace(/\t/g," ").replace(/\s/g," ");o+=`<span style="${h.styleText}"><a href="${h.linkURL}" target="_blank">${t}</a></span>`,e=null}else e=h,p=h.text}else p+=h.text}if(p&&e){let t=p.replace(/\t/g," ").replace(/\s/g," ");o+=`<span style="${e.styleText}">${t}</span>`}}else o+=function(t,e,r,n,i,a,o,s,l,c){let{styleText:u,text:h,hasLink:p,linkURL:d}=tH(t,e,r,n,i,a,o,s,l,c),f=h.replace(/\t/g," ").replace(/\s/g," ");return p?`<span style="${u}"><a href="${d}" target="_blank">${f}</a></span>`:`<span style="${u}">${f}</span>`}(u,e,t,s,r,n,i,l,c,a);v?o+="</p></li>":o+="</p>"}for(;p.length>0;){let t=p.pop();o+=`</${t}>`}return o}function tH(t,e,r,n,i,a,o,s,l,c){let u,h,p=1,d=E(e["a:pPr"],["attrs","lvl"]);void 0!==d&&(p=parseInt(d)+1);let f=t$(t["a:t"]);"string"!=typeof f&&(f=t$(E(t,["a:fld","a:t"]))),"string"!=typeof f&&(f=" ");let m="",g=tB(t,e,r,i,a,o,s,p,n,c),A=tK(t,e,r,i,a,o,s,p,l),y=function(t,e,r,n,i,a,o,s,l,c){let u=tQ(c),h=function(t,e){let r=tQ(e);for(let e of t){let t=E(e,["a:latin","attrs","typeface"]),n=E(e,["a:ea","attrs","typeface"]),i=E(e,["a:cs","attrs","typeface"]),a=E(e,["a:sym","attrs","typeface"]);if(r&&n)return n;if(t)return t;if(n)return n;if(i)return i;if(a)return a}return""}(tY(t,e,r,n,i,a,o,s),c);if(!h||h.startsWith("+")){let t=E(l.themeContent,["a:theme","a:themeElements","a:fontScheme"]);if(t&&h&&h.startsWith("+"))switch(h){case"+mj-lt":return E(t,["a:majorFont","a:latin","attrs","typeface"]);case"+mn-lt":return E(t,["a:minorFont","a:latin","attrs","typeface"]);case"+mj-ea":return E(t,["a:majorFont","a:ea","attrs","typeface"]);case"+mn-ea":return E(t,["a:minorFont","a:ea","attrs","typeface"]);case"+mj-cs":return E(t,["a:majorFont","a:cs","attrs","typeface"]);case"+mn-cs":return E(t,["a:minorFont","a:cs","attrs","typeface"]);default:return h.replace(/^\+/,"")}h="title"===a||"subTitle"===a||"ctrTitle"===a?(u?E(t,["a:majorFont","a:ea","attrs","typeface"]):"")||E(t,["a:majorFont","a:latin","attrs","typeface"])||E(t,["a:majorFont","a:ea","attrs","typeface"]):(u?E(t,["a:minorFont","a:ea","attrs","typeface"]):"")||E(t,["a:minorFont","a:latin","attrs","typeface"])||E(t,["a:minorFont","a:ea","attrs","typeface"])}return h||""}(t,e,r,i,a,o,s,p,c,f),v=U(tD(tY(t,e,r,i,a,o,s,p),"b"))?"bold":"",R=U(tD(tY(t,e,r,i,a,o,s,p),"i"))?"italic":"",b="sng"===tD(tY(t,e,r,i,a,o,s,p),"u")?"underline":"",x="sngStrike"===tD(tY(t,e,r,i,a,o,s,p),"strike")?"line-through":"",M=(u=tD(tY(t,e,r,i,a,o,s,p),"spc"))&&0!==parseInt(u)?parseInt(u)/100+"pt":"",S=function(t,e,r,n,i,a,o,s,l){let c=function(t,e){for(let r of t){let t=E(r,["a:effectLst","a:outerShdw"]);if(!t)continue;let n=tF(t,e);if(n)return n}return null}(tY(t,e,r,n,i,a,o,s),l);if(c){let{h:t,v:e,blur:r,color:n}=c;if(!isNaN(e)&&!isNaN(t))return t+"pt "+e+"pt "+(r?r+"pt":"")+" "+n}return""}(t,e,r,i,a,o,s,p,c),w=(h=tD(tY(t,e,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:t,rot:e}=g,r=t.map(t=>`${t.color} ${t.pos}`).join(", "),n=`linear-gradient(${e+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(t,["a:rPr","a:hlinkClick","attrs","r:id"]),N=O&&c.slideResObj[O];return N&&(m=function(t,e,r){let n=t,i=E(e,["a:rPr"]),a=i?G(i):"";if("SOLID_FILL"!==a&&"GRADIENT_FILL"!==a){var o;let t=((o=B("a:hlink",r))?o.startsWith("#")?o:`#${o}`:"")||"#0563C1";/color\s*:/.test(n)?n=n.replace(/color\s*:\s*[^;]+;/,`color: ${t};`):n+=`color: ${t};`}return"none"===E(e,["a:rPr","attrs","u"])||/text-decoration\s*:\s*underline/.test(n)||(n+="text-decoration: underline;"),n}(m,t,c)),{styleText:m,text:f,hasLink:N,linkURL:N?c.slideResObj[O].target:null}}function tz(t,e,r){let n=E(t,["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*e,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(t=>{if(!u[t])return;let e=u[t]["a:pt"];e&&Object.keys(e).forEach(t=>{let r=e[t],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(t=>{if(!h[t])return;let e=h[t]["a:pt"];e&&Object.keys(e).forEach(t=>{let r=e[t],n=r.x,i=r.y,a=r.order;g.push({type:"lnto",x:n,y:i,order:a})})})),p){let t=[];Array.isArray(p)||(p=[p]),Object.keys(p).forEach(e=>{p[e]&&p[e]["a:pt"]&&t.push(p[e]["a:pt"])}),t.forEach(t=>{let e=[];t.forEach(t=>{let r={x:t.attrs.x,y:t.attrs.y};e.push(r)});let r=t[0].attrs.order;g.push({type:"cubicBezTo",cubBzPt:e,order:r})})}if(d){let t=[];Array.isArray(d)||(d=[d]),Object.keys(d).forEach(e=>{d[e]&&d[e]["a:pt"]&&t.push(d[e]["a:pt"])}),t.forEach(t=>{let e=[];t.forEach(t=>{let r={x:t.attrs.x,y:t.attrs.y};e.push(r)});let r=t[0].attrs.order;g.push({type:"quadBezTo",quadBzPt:e,order:r})})}f&&(Array.isArray(f)?f:[f]).forEach(t=>{let e=t.attrs,r=e.order,n=e.hR,i=e.wR,a=e.stAng,o=e.swAng,s=0,l=0,c=E(t,["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((t,e)=>t.order-e.order);let t=0;for(;t<g.length;){if("movto"===g[t].type)c+=" M"+parseInt(g[t].x)*s+","+parseInt(g[t].y)*l;else if("lnto"===g[t].type)c+=" L"+parseInt(g[t].x)*s+","+parseInt(g[t].y)*l;else if("cubicBezTo"===g[t].type)c+=" C"+parseInt(g[t].cubBzPt[0].x)*s+","+parseInt(g[t].cubBzPt[0].y)*l+" "+parseInt(g[t].cubBzPt[1].x)*s+","+parseInt(g[t].cubBzPt[1].y)*l+" "+parseInt(g[t].cubBzPt[2].x)*s+","+parseInt(g[t].cubBzPt[2].y)*l;else if("quadBezTo"===g[t].type)c+=" Q"+parseInt(g[t].quadBzPt[0].x)*s+","+parseInt(g[t].quadBzPt[0].y)*l+" "+parseInt(g[t].quadBzPt[1].x)*s+","+parseInt(g[t].quadBzPt[1].y)*l;else if("arcTo"===g[t].type){let e=parseInt(g[t].hR)*s,r=parseInt(g[t].wR)*l,n=parseInt(g[t].stAng)/6e4,i=n+parseInt(g[t].swAng)/6e4;c+=function(t,e,r,n,i,a,o){let s,l=i;if(a>=i)for(;l<=a;){let a=Math.PI/180*l,o=t+Math.cos(a)*r,c=e+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=t+Math.cos(a)*r,c=e+Math.sin(a)*n;l===i&&(s=" M "+o+" "+c),s+=" L "+o+" "+c,l--}return s+(o?" z":"")}(r,e,r,e,n,i,!1)}else"close"===g[t].type&&(c+="z");t++}}return c}function tJ(t){return t?Array.isArray(t)?t:[t]:[]}async function tj(t,e){let r=e.split("/").pop();try{let n=t.file(e);if(!n||!r.toLowerCase().endsWith(".fntdata")&&!r.toLowerCase().endsWith(".eot"))return"";let i=await n.async("arraybuffer"),a=function(t){let e=new DataView(t),r=new Uint8Array(t);try{let t=e.getUint32(0,!0),n=e.getUint32(4,!0),i=e.getUint32(8,!0),a=e.getUint16(34,!0);if(20556!==a||65536!==i&&131073!==i&&131074!==i)return null;let o=t-n;if(o<0||o>=t)return null;let s=r.slice(o,t);if(s.length>=4){let t=s[0]<<24|s[1]<<16|s[2]<<8|s[3];if(65536!==t&&0x4f54544f!==t)return null}return s}catch(t){return null}}(i);if(!a)return"";let o=new Blob([a],{type:"font/ttf"});return URL.createObjectURL(o)}catch(t){return""}}let tq={微软雅黑:"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 t0(t,e){if(t)return tf(t["a:solidFill"]||t,void 0,void 0,e)}async function t1(t,e,r,n){let i,a,o,s,l=E(t,["attrs","rowSpan"]),c=E(t,["attrs","gridSpan"]),u=E(t,["attrs","vMerge"]),h=E(t,["attrs","hMerge"]),p=E(t,["a:tcPr","attrs","anchor"]),d=E(t,["a:tcPr"]);if(d){let t=await tp({"p:spPr":d},n,"slide");t&&"color"===t.type&&t.value&&(i=t.value)}if(!i){let t;r&&(t=E(e,[r,"a:tcStyle","a:fill","a:solidFill"])),t&&(i=tf(t,void 0,void 0,n))}r&&(s=E(e,[r,"a:tcTxStyle"])),s&&(a=t0(s,n),"on"===E(s,["attrs","b"])&&(o=!0));let f=E(t,["a:tcPr","a:lnB"]);!f&&(r&&(f=E(e&&e[r],["a:tcStyle","a:tcBdr","a:bottom","a:ln"])),f||(f=E(e,["a:wholeTbl","a:tcStyle","a:tcBdr","a:bottom","a:ln"])));let m=E(t,["a:tcPr","a:lnT"]);!m&&(r&&(m=E(e&&e[r],["a:tcStyle","a:tcBdr","a:top","a:ln"])),m||(m=E(e,["a:wholeTbl","a:tcStyle","a:tcBdr","a:top","a:ln"])));let g=E(t,["a:tcPr","a:lnL"]);!g&&(r&&(g=E(e&&e[r],["a:tcStyle","a:tcBdr","a:left","a:ln"])),g||(g=E(e,["a:wholeTbl","a:tcStyle","a:tcBdr","a:left","a:ln"])));let A=E(t,["a:tcPr","a:lnR"]);!A&&(r&&(A=E(e&&e[r],["a:tcStyle","a:tcBdr","a:right","a:ln"])),A||(A=E(e,["a:wholeTbl","a:tcStyle","a:tcBdr","a:right","a:ln"])));let y={};return f&&(y.bottom=tg(f,void 0,n)),m&&(y.top=tg(m,void 0,n)),g&&(y.left=tg(g,void 0,n)),A&&(y.right=tg(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 t2(t,e,r,n,i,a,o){let s="",l=a>=i?1:-1,c=i,u=t=>l>0?t<=a:t>=a;for(;u(c);){let a=Math.PI/180*c,o=t+Math.cos(a)*r,u=e+Math.sin(a)*n;c===i&&(s=` M${o} ${u}`),s+=` L${o} ${u}`,c+=l}return o&&(s+=" z"),s}function t3(t,e,r,n){let i="";switch(t){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 ${e} 0 L ${e} ${r} L 0 ${r} Z`;break;case"flowChartPredefinedProcess":i=`M 0 0 L ${e} 0 L ${e} ${r} L 0 ${r} Z M ${1/8*e} 0 L ${1/8*e} ${r} M ${7/8*e} 0 L ${7/8*e} ${r}`;break;case"flowChartInternalStorage":i=`M 0 0 L ${e} 0 L ${e} ${r} L 0 ${r} Z M ${1/8*e} 0 L ${1/8*e} ${r} M 0 ${1/8*r} L ${e} ${1/8*r}`;break;case"flowChartCollate":i=`M 0,0 L ${e},0 L 0,${r} L ${e},${r} z`;break;case"flowChartDocument":{let t=10800*e/21600,n=17322*r/21600,a=20172*r/21600,o=23922*r/21600;i=`M 0,0 L ${e},0 L ${e},${n} C ${t},${n} ${t},${o} 0,${a} z`}break;case"flowChartMultidocument":{let t=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*e/21600,d=2e4*e/21600,f=9298*e/21600,m=19298*e/21600,g=18595*e/21600,A=2972*e/21600,y=20800*e/21600;i=`M 0,${n} L ${g},${n} L ${g},${t} C ${f},${t} ${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 ${e},0 L ${e},${c} C ${y},${c} ${d},${h} ${d},${h}`}break;case"actionButtonBackPrevious":{let t=e/2,n=r/2,a=3*Math.min(e,r)/8,o=t+a;i=`M 0,0 L ${e},0 L ${e},${r} L 0,${r} z M ${t-a},${n} L ${o},${n-a} L ${o},${n+a} z`}break;case"actionButtonBeginning":{let t=e/2,n=r/2,a=Math.min(e,r),o=3*a/8,s=n-o,l=n+o,c=t-o,u=t+o,h=3*a/4,p=c+h/8;i=`M 0,0 L ${e},0 L ${e},${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 t=e/2,n=r/2,a=Math.min(e,r),o=3*a/8,s=n-o,l=n+o,c=9*a/32,u=t-c,h=t+c,p=3*a/16,d=h-p,f=s+p;i=`M 0,0 L ${e},0 L ${e},${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 t=e/2,n=r/2,a=Math.min(e,r),o=3*a/8,s=n-o,l=n+o,c=t-o,u=t+o,h=3*a/4,p=c+7*h/8;i=`M 0,${r} L ${e},${r} L ${e},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 t=e/2,n=r/2,a=3*Math.min(e,r)/8,o=t-a;i=`M 0,${r} L ${e},${r} L ${e},0 L 0,0 z M ${t+a},${n} L ${o},${n-a} L ${o},${n+a} z`}break;case"actionButtonHelp":{let t=e/2,n=r/2,a=Math.min(e,r),o=3*a/8,s=n-o,l=t-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 ${e},0 L ${e},${r} L 0,${r} z M ${A},${d} ${t2(x,d,p,p,180,360,!1).replace("M","L")} ${t2(w,d,u,h,0,90,!1).replace("M","L")} ${t2(w,f,R,b,270,180,!1).replace("M","L")} L ${v},${m} L ${y},${m} L ${y},${f} ${t2(M,f,u,h,180,270,!1).replace("M","L")} ${t2(v,d,R,b,90,0,!1).replace("M","L")} ${t2(x,d,u,u,0,-180,!1).replace("M","L")} z M ${t},${g} ${t2(t,S,b,b,270,630,!1).replace("M","L")} z`}break;case"actionButtonHome":{let t=e/2,n=r/2,a=Math.min(e,r),o=3*a/8,s=n-o,l=n+o,c=t-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 ${e},0 L ${e},${r} L 0,${r} z M ${t},${s} L ${c},${n} L ${d},${n} L ${d},${l} L ${y},${l} L ${y},${n} L ${t+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 t=e/2,n=r/2,a=Math.min(e,r),o=3*a/8,s=n-o,l=t-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 ${e},0 L ${e},${r} L 0,${r} z M ${t},${s} ${t2(t,b,o,o,270,630,!1).replace("M","L")} z M ${t},${h} ${t2(t,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 t=e/2,n=r/2,a=Math.min(e,r),o=t-3*a/8,s=n-3*a/8,l=t+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 ${e},${r} L ${e},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 t=e/2,n=r/2,a=Math.min(e,r),o=3*a/8,s=n-o,l=n+o,c=t-o,u=t+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 ${e},${r} L ${e},0 L 0,0 z M ${u},${y} L ${c+p},${s} L ${t},${y} L ${v},${y} L ${v},${A} ${t2(x,A,b,b,0,90,!1).replace("M","L")} L ${R},${g} ${t2(R,M,b,b,90,180,!1).replace("M","L")} L ${c+m},${y} L ${c},${y} L ${c},${A} ${t2(S,A,f,f,180,90,!1).replace("M","L")} L ${t},${l} ${t2(t,w,f,f,90,0,!1).replace("M","L")} L ${c+7*h/8},${y} z`}break;case"actionButtonSound":{let t=e/2,n=r/2,a=Math.min(e,r),o=3*a/8,s=n-o,l=t-o,c=t+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 ${e},0 L ${e},${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*e/21600},${5800*r/21600} L ${14522*e/21600},0 L ${14155*e/21600},${5325*r/21600} L ${18380*e/21600},${4457*r/21600} L ${16702*e/21600},${7315*r/21600} L ${21097*e/21600},${8137*r/21600} L ${17607*e/21600},${10475*r/21600} L ${e},${13290*r/21600} L ${16837*e/21600},${12942*r/21600} L ${18145*e/21600},${18095*r/21600} L ${14020*e/21600},${14457*r/21600} L ${13247*e/21600},${19737*r/21600} L ${10532*e/21600},${14935*r/21600} L ${8485*e/21600},${r} L ${7715*e/21600},${15627*r/21600} L ${4762*e/21600},${17617*r/21600} L ${5667*e/21600},${13937*r/21600} L ${135*e/21600},${14587*r/21600} L ${3722*e/21600},${11775*r/21600} L 0,${8615*r/21600} L ${4627*e/21600},${7617*r/21600} L ${370*e/21600},${2295*r/21600} L ${7312*e/21600},${6320*r/21600} L ${8352*e/21600},${2295*r/21600} z`;break;case"irregularSeal2":i=`M ${11462*e/21600},${4342*r/21600} L ${14790*e/21600},0 L ${14525*e/21600},${5777*r/21600} L ${18007*e/21600},${3172*r/21600} L ${16380*e/21600},${6532*r/21600} L ${e},${6645*r/21600} L ${16985*e/21600},${9402*r/21600} L ${18270*e/21600},${11290*r/21600} L ${16380*e/21600},${12310*r/21600} L ${18877*e/21600},${15632*r/21600} L ${14640*e/21600},${14350*r/21600} L ${14942*e/21600},${17370*r/21600} L ${12180*e/21600},${15935*r/21600} L ${11612*e/21600},${18842*r/21600} L ${9872*e/21600},${17370*r/21600} L ${8700*e/21600},${19712*r/21600} L ${7527*e/21600},${18125*r/21600} L ${4917*e/21600},${r} L ${4805*e/21600},${18240*r/21600} L ${1285*e/21600},${17825*r/21600} L ${3330*e/21600},${15370*r/21600} L 0,${12877*r/21600} L ${3935*e/21600},${11592*r/21600} L ${1172*e/21600},${8270*r/21600} L ${5372*e/21600},${7817*r/21600} L ${4502*e/21600},${3625*r/21600} L ${8550*e/21600},${6382*r/21600} L ${9722*e/21600},${1887*r/21600} z`;break;case"flowChartTerminator":{let t=3475*e/21600,n=18125*e/21600,a=10800*r/21600;i=`M ${t},0 L ${n},0 ${t2(n,r/2,t,a,270,450,!1).replace("M","L")} L ${t},${r} ${t2(t,r/2,t,a,90,270,!1).replace("M","L")} z`}break;case"flowChartPunchedTape":{let t=5*e/20,n=2*r/20,a=18*r/20;i=`M 0,${n} ${t2(t,n,t,n,180,0,!1).replace("M","L")} ${t2(.75*e,n,t,n,180,360,!1).replace("M","L")} L ${e},${a} ${t2(.75*e,a,t,n,0,-180,!1).replace("M","L")} ${t2(t,a,t,n,0,180,!1).replace("M","L")} z`}break;case"flowChartOnlineStorage":{let t=e/6,n=3*r/6;i=`M ${t},0 L ${e},0 ${t2(e,r/2,t,n,270,90,!1).replace("M","L")} L ${t},${r} ${t2(t,r/2,t,n,90,270,!1).replace("M","L")} z`}break;case"flowChartDisplay":{let t=e/6,n=5*e/6,a=3*r/6;i=`M 0,${a} L ${t},0 L ${n},0 ${t2(e,r/2,t,a,270,450,!1).replace("M","L")} L ${t},${r} z`}break;case"flowChartDelay":{let t=e/2,n=r/2;i=`M 0,0 L ${t},0 ${t2(t,n,t,n,270,450,!1).replace("M","L")} L 0,${r} z`}break;case"flowChartMagneticTape":{let t=e/2,n=r/2,a=n*Math.sin(Math.PI/4),o=n+a,s=180*Math.atan(r/e)/Math.PI;i=`M ${t},${r} ${t2(t,n,t,n,90,180,!1).replace("M","L")} ${t2(t,n,t,n,180,270,!1).replace("M","L")} ${t2(t,n,t,n,270,360,!1).replace("M","L")} ${t2(t,n,t,n,0,s,!1).replace("M","L")} L ${e},${o} L ${e},${r} z`}break;case"ellipse":case"flowChartConnector":case"flowChartSummingJunction":case"flowChartOr":{let n=e/2,a=r/2,o=e/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"===t)i+=` M ${e/2} 0 L ${e/2} ${r} M 0 ${r/2} L ${e} ${r/2}`;else if("flowChartSummingJunction"===t){let t=Math.PI/4,o=e/2*Math.cos(t),s=r/2*Math.sin(t),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 t of c){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)}else c&&(a=parseInt(E(c,["attrs","fmla"]).substring(4))/5e4,o=0);switch(t){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(t,e,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(t,e)/2*o,h=Math.min(t,e)/2*s,p=Math.min(t,e)/2*l,d=Math.min(t,e)/2*c;return"round"===i?`M0,${e-h} Q0,${e} ${h},${e} L${t-p},${e} Q${t},${e} ${t},${e-p} L${t},${d} Q${t},0 ${t-d},0 L${u},0 Q0,0 0,${u} z`:"snip"===i?`M0,${u} L0,${e-h} L${h},${e} L${t-p},${e} L${t},${e-p} L${t},${d} L${t-d},0 L${u},0 z`:""}(e,r,a,o,s,l)}break;case"snipRoundRect":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=.33334,o=.33334;if(t)for(let e of t){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)}i=`M0,${r} L${e},${r} L${e},${r/2*o} L${e/2+e/2*(1-o)},0 L${e/2*a},0 Q0,0 0,${r/2*a} z`}break;case"bentConnector2":i=`M ${e} 0 L ${e} ${r} L 0 ${r}`;break;case"rtTriangle":i=`M 0 0 L 0 ${r} L ${e} ${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))*tR);let s=e*o,l=0,c=0,u=r,h=e,p=r;"flowChartMerge"===t&&([s,l]=[e-s,r-l],[c,u]=[e-c,r-u],[h,p]=[e-h,r-p]),i=`M ${s} ${l} L ${c} ${u} L ${h} ${p} Z`}break;case"diamond":case"flowChartDecision":case"flowChartSort":i=`M ${e/2} 0 L 0 ${r/2} L ${e/2} ${r} L ${e} ${r/2} Z`,"flowChartSort"===t&&(i+=` M 0 ${r/2} L ${e} ${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 t=Math.min(e,r),n=Math.max(0,Math.min(parseInt(a.substring(4)),5e4*e/t));o=t*n/1e5/e}let s=e*o,l=0,c=0,u=r,h=e,p=r,d=(1-o)*e,f=0;"flowChartManualInput"===t&&(o=0,l=r/5,s=e*o,d=(1-o)*e),"flowChartManualOperation"===t&&([s,l]=[e-s,r-l],[c,u]=[e-c,r-u],[h,p]=[e-h,r-p],[d,f]=[e-d,r-f]),i=`M ${s} ${l} L ${c} ${u} L ${h} ${p} L ${d} ${f} Z`}break;case"parallelogram":case"flowChartInputOutput":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),a=.25;if(t){let n=Math.min(e,r),i=Math.max(0,Math.min(parseInt(t.substring(4)),1e5*e/n));a=n*i/2e5/e}i=`M ${a*e} 0 L 0 ${r} L ${(1-a)*e} ${r} L ${e} 0 Z`}break;case"pentagon":i=`M ${.5*e} 0 L 0 ${.375*r} L ${.15*e} ${r} L ${.85*e} ${r} L ${e} ${.375*r} Z`;break;case"hexagon":case"flowChartPreparation":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),a=25e3*tR;t&&(a=parseInt(t.substring(4))*tR);let o=1e5*tR,s=Math.min(e,r),l=5e4*tR*e/s,c=s*(a<0?0:a>l?l:a)/o,u=e-c,h=115470*tR*(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 ${e},${p} L ${u},${f} L ${c},${f} z`}break;case"heptagon":i=`M ${.5*e} 0 L ${e/8} ${r/4} L 0 ${5/8*r} L ${e/4} ${r} L ${.75*e} ${r} L ${e} ${5/8*r} L ${7/8*e} ${r/4} Z`;break;case"octagon":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),a=.25;t&&(a=parseInt(t.substring(4))/1e5);let o=1-a;i=`M ${a*e} 0 L 0 ${a*r} L 0 ${o*r} L ${a*e} ${r} L ${o*e} ${r} L ${e} ${o*r} L ${e} ${a*r} L ${o*e} 0 Z`}break;case"decagon":i=`M ${3/8*e} 0 L ${e/8} ${r/8} L 0 ${r/2} L ${e/8} ${7/8*r} L ${3/8*e} ${r} L ${5/8*e} ${r} L ${7/8*e} ${7/8*r} L ${e} ${r/2} L ${7/8*e} ${r/8} L ${5/8*e} 0 Z`;break;case"dodecagon":i=`M ${3/8*e} 0 L ${e/8} ${r/8} L 0 ${3/8*r} L 0 ${5/8*r} L ${e/8} ${7/8*r} L ${3/8*e} ${r} L ${5/8*e} ${r} L ${7/8*e} ${7/8*r} L ${e} ${5/8*r} L ${e} ${3/8*r} L ${7/8*e} ${r/8} L ${5/8*e} 0 Z`;break;case"star4":{let t=e/2,a=r/2,o=e/2,s=r/2,l=19098*tR,c=5e4*tR,u=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]);u&&"adj"===u.attrs.name&&(l=parseInt(u.attrs.fmla.substring(4))*tR);let h=l<0?0:l>c?c:l,p=o*h/c*.7071067811847432,d=s*h/c*.7071067811883519,f=t-p,m=t+p,g=a-d,A=a+d;i=`M 0,${a} L ${f},${g} L ${t},0 L ${m},${g} L ${e},${a} L ${m},${A} L ${t},${r} L ${f},${A} z`}break;case"star5":{let t=e/2,a=r/2,o=e/2,s=r/2,l=19098*tR,c=105146*tR,u=110557*tR,h=5e4*tR,p=1e5*tR,d=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]);d&&Object.keys(d).forEach(t=>{let e=d[t].attrs.name;"adj"===e?l=parseInt(d[t].attrs.fmla.substring(4))*tR:"hf"===e?c=parseInt(d[t].attrs.fmla.substring(4))*tR:"vf"===e&&(u=parseInt(d[t].attrs.fmla.substring(4))*tR)});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,N=A- -.3090169943945457*M;i=`M ${t-y},${R} L ${t-w},${O} L ${t},0 L ${t+w},${O} L ${t+y},${R} L ${t+S},${N} L ${t+v},${b} L ${t},${A+M} L ${t-v},${b} L ${t-S},${N} z`}break;case"star6":{let t=e/2,a=r/2,o=e/2,s=r/2,l=r/4,c=28868*tR,u=115470*tR,h=5e4*tR,p=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]);p&&Object.keys(p).forEach(t=>{let e=p[t].attrs.name;"adj"===e?c=parseInt(p[t].attrs.fmla.substring(4))*tR:"hf"===e&&(u=parseInt(p[t].attrs.fmla.substring(4))*tR)});let d=c<0?0:c>h?h:c,f=o*u/(1e5*tR),m=.866025403783588*f,g=t-m,A=t+m,y=a+l,v=f*d/h,R=v/2,b=t-R,x=t+R,M=s*d/h*.8660254037861398,S=a-M,w=a+M;i=`M ${g},${l} L ${b},${S} L ${t},0 L ${x},${S} L ${A},${l} L ${t+v},${a} L ${A},${y} L ${x},${w} L ${t},${r} L ${b},${w} L ${g},${y} L ${t-v},${a} z`}break;case"star7":{let t=e/2,a=r/2,o=e/2,s=r/2,l=34601*tR,c=102572*tR,u=105210*tR,h=5e4*tR,p=1e5*tR,d=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]);d&&Object.keys(d).forEach(t=>{let e=d[t].attrs.name;"adj"===e?l=parseInt(d[t].attrs.fmla.substring(4))*tR:"hf"===e?c=parseInt(d[t].attrs.fmla.substring(4))*tR:"vf"===e&&(u=parseInt(d[t].attrs.fmla.substring(4))*tR)});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,N=78183*S/1e5,L=43388*S/1e5,_=A-90097*w/1e5,T=A-22252*w/1e5,P=A+62349*w/1e5;i=`M ${t-y},${x} L ${t-O},${T} L ${t-v},${b} L ${t-L},${_} L ${t},0 L ${t+L},${_} L ${t+v},${b} L ${t+O},${T} L ${t+y},${x} L ${t+N},${P} L ${t+R},${M} L ${t},${A+w} L ${t-R},${M} L ${t-N},${P} z`}break;case"star8":{let t=e/2,a=r/2,o=e/2,s=r/2,l=37500*tR,c=5e4*tR,u=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]);u&&"adj"===u.attrs.name&&(l=parseInt(u.attrs.fmla.substring(4))*tR);let h=l<0?0:l>c?c:l,p=.7071067811847432*o,d=t-p,f=t+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=t-R,w=t-b,O=t+b,N=t+R,L=a-x,_=a-M,T=a+M,P=a+x;i=`M 0,${a} L ${S},${_} L ${d},${g} L ${w},${L} L ${t},0 L ${O},${L} L ${f},${g} L ${N},${_} L ${e},${a} L ${N},${T} L ${f},${A} L ${O},${P} L ${t},${r} L ${w},${P} L ${d},${A} L ${S},${T} z`}break;case"star10":{let t=e/2,a=r/2,o=e/2,s=r/2,l=42533*tR,c=105146*tR,u=5e4*tR,h=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]);h&&Object.keys(h).forEach(t=>{let e=h[t].attrs.name;"adj"===e?l=parseInt(h[t].attrs.fmla.substring(4))*tR:"hf"===e&&(c=parseInt(h[t].attrs.fmla.substring(4))*tR)});let p=l<0?0:l>u?u:l,d=o*c/(1e5*tR),f=95106*d/1e5,m=58779*d/1e5,g=t-f,A=t-m,y=t+m,v=t+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,N=s*p/u,L=80902*O/1e5,_=30902*O/1e5,T=95106*N/1e5,P=58779*N/1e5,I=t-L,C=t-_,k=t+_,F=t+L,X=a-T,U=a-P,W=a+P,V=a+T;i=`M ${g},${M} L ${I},${U} L ${A},${x} L ${C},${X} L ${t},0 L ${k},${X} L ${y},${x} L ${F},${U} L ${v},${M} L ${t+O},${a} L ${v},${S} L ${F},${W} L ${y},${w} L ${k},${V} L ${t},${r} L ${C},${V} L ${A},${w} L ${I},${W} L ${g},${S} L ${t-O},${a} z`}break;case"star12":{let t=e/2,a=r/2,o=e/2,s=r/2,l=r/4,c=e/4,u=37500*tR,h=5e4*tR,p=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]);p&&"adj"===p.attrs.name&&(u=parseInt(p.attrs.fmla.substring(4))*tR);let d=u<0?0:u>h?h:u,f=.866025403783588*o,m=.8660254037861398*s,g=t-f,A=3*e/4,y=t+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,N=.965925826290169*M,L=.7071067811883519*M,_=.25881904510334236*M,T=t-S,P=t-w,I=t-O,C=t+O,k=t+w,F=t+S,X=a-N,U=a-L,W=a-_,V=a+_,Y=a+L,D=a+N;i=`M 0,${a} L ${T},${W} L ${g},${l} L ${P},${U} L ${c},${v} L ${I},${X} L ${t},0 L ${C},${X} L ${A},${v} L ${k},${U} L ${y},${l} L ${F},${W} L ${e},${a} L ${F},${V} L ${y},${R} L ${k},${Y} L ${A},${b} L ${C},${D} L ${t},${r} L ${I},${D} L ${c},${b} L ${P},${Y} L ${g},${R} L ${T},${V} z`}break;case"star16":{let t=e/2,a=r/2,o=e/2,s=r/2,l=37500*tR,c=5e4*tR,u=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]);u&&"adj"===u.attrs.name&&(l=parseInt(u.attrs.fmla.substring(4))*tR);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=t-p,v=t-d,R=t-f,b=t+f,x=t+d,M=t+p,S=a-m,w=a-g,O=a-A,N=a+A,L=a+g,_=a+m,T=o*h/c,P=s*h/c,I=98079*T/1e5,C=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=t-I,D=t-C,Q=t-k,Z=t-F,B=t+F,K=t+k,$=t+C,G=t+I,H=a-X,z=a-U,J=a-W,j=a-V,q=a+V,tt=a+W,te=a+U,tr=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 ${Z},${H} L ${t},0 L ${B},${H} L ${b},${S} L ${K},${z} L ${x},${w} L ${$},${J} L ${M},${O} L ${G},${j} L ${e},${a} L ${G},${q} L ${M},${N} L ${$},${tt} L ${x},${L} L ${K},${te} L ${b},${_} L ${B},${tr} L ${t},${r} L ${Z},${tr} L ${R},${_} L ${Q},${te} L ${v},${L} L ${D},${tt} L ${y},${N} L ${Y},${q} z`}break;case"star24":{let t=e/2,a=r/2,o=e/2,s=r/2,l=r/4,c=e/4,u=37500*tR,h=5e4*tR,p=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]);p&&"adj"===p.attrs.name&&(u=parseInt(p.attrs.fmla.substring(4))*tR);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=t-f,M=t-m,S=t-g,w=t-c,O=t-A,N=t+A,L=t+c,_=t+g,T=t+m,P=t+f,I=a-y,C=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,Z=s*d/h,B=99144*Q/1e5,K=92388*Q/1e5,$=79335*Q/1e5,G=60876*Q/1e5,H=38268*Q/1e5,z=13053*Q/1e5,J=99144*Z/1e5,j=92388*Z/1e5,q=79335*Z/1e5,tt=60876*Z/1e5,te=38268*Z/1e5,tr=13053*Z/1e5,tn=t-B,ti=t-K,ta=t-$,to=t-G,ts=t-H,tl=t-z,tc=t+z,tu=t+H,th=t+G,tp=t+$,td=t+K,tf=t+B,tm=a-J,tg=a-j,tA=a-q,ty=a-tt,tv=a-te,tb=a-tr,tx=a+tr,tM=a+te,tS=a+tt,tw=a+q,tO=a+j,tN=a+J;i=`M 0,${a} L ${tn},${tb} L ${x},${X} L ${ti},${tv} L ${M},${F} L ${ta},${ty} L ${S},${k} L ${to},${tA} L ${w},${C} L ${ts},${tg} L ${O},${I} L ${tl},${tm} L ${t},0 L ${tc},${tm} L ${N},${I} L ${tu},${tg} L ${L},${C} L ${th},${tA} L ${_},${k} L ${tp},${ty} L ${T},${F} L ${td},${tv} L ${P},${X} L ${tf},${tb} L ${e},${a} L ${tf},${tx} L ${P},${U} L ${td},${tM} L ${T},${W} L ${tp},${tS} L ${_},${V} L ${th},${tw} L ${L},${Y} L ${tu},${tO} L ${N},${D} L ${tc},${tN} L ${t},${r} L ${tl},${tN} L ${O},${D} L ${ts},${tO} L ${w},${Y} L ${to},${tw} L ${S},${V} L ${ta},${tS} L ${M},${W} L ${ti},${tM} L ${x},${U} L ${tn},${tx} z`}break;case"star32":{let t=e/2,a=r/2,o=e/2,s=r/2,l=37500*tR,c=5e4*tR,u=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]);u&&"adj"===u.attrs.name&&(l=parseInt(u.attrs.fmla.substring(4))*tR);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=t-p,N=t-d,L=t-f,_=t-m,T=t-g,P=t-A,I=t-y,C=t+y,k=t+A,F=t+g,X=t+m,U=t+f,W=t+d,V=t+p,Y=a-v,D=a-R,Q=a-b,Z=a-x,B=a-M,K=a-S,$=a-w,G=a+w,H=a+S,z=a+M,J=a+x,j=a+b,q=a+R,tt=a+v,te=o*h/c,tr=s*h/c,tn=99518*te/1e5,ti=95694*te/1e5,ta=88192*te/1e5,to=77301*te/1e5,ts=63439*te/1e5,tl=47140*te/1e5,tc=29028*te/1e5,tu=9802*te/1e5,th=99518*tr/1e5,tp=95694*tr/1e5,td=88192*tr/1e5,tf=77301*tr/1e5,tm=63439*tr/1e5,tg=47140*tr/1e5,tA=29028*tr/1e5,ty=9802*tr/1e5,tv=t-tn,tb=t-ti,tx=t-ta,tM=t-to,tS=t-ts,tw=t-tl,tO=t-tc,tN=t-tu,tL=t+tu,t_=t+tc,tT=t+tl,tP=t+ts,tI=t+to,tC=t+ta,tk=t+ti,tF=t+tn,tX=a-th,tU=a-tp,tW=a-td,tV=a-tf,tE=a-tm,tY=a-tg,tD=a-tA,tQ=a-ty,tZ=a+ty,tB=a+tA,tK=a+tg,t$=a+tm,tG=a+tf,tH=a+td,tz=a+tp,tJ=a+th;i=`M 0,${a} L ${tv},${tQ} L ${O},${$} L ${tb},${tD} L ${N},${K} L ${tx},${tY} L ${L},${B} L ${tM},${tE} L ${_},${Z} L ${tS},${tV} L ${T},${Q} L ${tw},${tW} L ${P},${D} L ${tO},${tU} L ${I},${Y} L ${tN},${tX} L ${t},0 L ${tL},${tX} L ${C},${Y} L ${t_},${tU} L ${k},${D} L ${tT},${tW} L ${F},${Q} L ${tP},${tV} L ${X},${Z} L ${tI},${tE} L ${U},${B} L ${tC},${tY} L ${W},${K} L ${tk},${tD} L ${V},${$} L ${tF},${tQ} L ${e},${a} L ${tF},${tZ} L ${V},${G} L ${tk},${tB} L ${W},${H} L ${tC},${tK} L ${U},${z} L ${tI},${t$} L ${X},${J} L ${tP},${tG} L ${F},${j} L ${tT},${tH} L ${k},${q} L ${t_},${tz} L ${C},${tt} L ${tL},${tJ} L ${t},${r} L ${tN},${tJ} L ${I},${tt} L ${tO},${tz} L ${P},${q} L ${tw},${tH} L ${T},${j} L ${tS},${tG} L ${_},${J} L ${tM},${t$} L ${L},${z} L ${tx},${tK} L ${N},${H} L ${tb},${tB} L ${O},${G} L ${tv},${tZ} 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"===t?(c=0,u=270,h=r,p=!0):"pieWedge"===t?(c=180,u=270,h=2*r,p=!0):"arc"===t&&(c=270,u=0,h=r,p=!1),O)for(let t of Array.isArray(O)?O:[O]){let e=E(t,["attrs","name"]),r=E(t,["attrs","fmla"]);e&&r&&("adj1"===e?c=parseInt(r.substring(4))/6e4:"adj2"===e&&(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=e/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 t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=45,o=270;if(t)for(let e of t){let t=E(e,["attrs","name"]);"adj1"===t?a=parseInt(E(e,["attrs","fmla"]).substring(4))/6e4:"adj2"===t&&(o=parseInt(E(e,["attrs","fmla"]).substring(4))/6e4)}let s=r/2,l=e/2;i=t2(l,s,l,s,a,o,!0)}break;case"frame":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),a=12500*tR,o=5e4*tR;t&&(a=parseInt(t.substring(4))*tR);let s=Math.min(e,r)*(a<0?0:a>o?o:a)/(1e5*tR),l=e-s,c=r-s;i=`M 0,0 L ${e},0 L ${e},${r} L 0,${r} z M ${s},${s} L ${s},${c} L ${l},${c} L ${l},${s} z`}break;case"donut":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),a=25e3*tR,o=5e4*tR;t&&(a=parseInt(t.substring(4))*tR);let s=Math.min(e,r)*(a<0?0:a>o?o:a)/(1e5*tR),l=e/2-s,c=r/2-s,u=`M ${e/2-e/2},${r/2} A ${e/2},${r/2} 0 1,0 ${e/2+e/2},${r/2} A ${e/2},${r/2} 0 1,0 ${e/2-e/2},${r/2} Z`,h=`M ${e/2+l},${r/2} A ${l},${c} 0 1,0 ${e/2-l},${r/2} A ${l},${c} 0 1,0 ${e/2+l},${r/2} Z`;i=`${u} ${h}`}break;case"noSmoking":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),a=18750*tR,o=5e4*tR;t&&(a=parseInt(t.substring(4))*tR);let s=Math.min(e,r)*(a<0?0:a>o?o:a)/(1e5*tR),l=e/2-s,c=r/2-s,u=Math.atan(r/e),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=e/2+R,M=r/2+b,S=e/2-R,w=r/2-b,O=180*m/Math.PI,N=180*g/Math.PI,L=180*f/Math.PI,_=`M ${e/2-e/2},${r/2} A ${e/2},${r/2} 0 1,0 ${e/2+e/2},${r/2} A ${e/2},${r/2} 0 1,0 ${e/2-e/2},${r/2} Z`,T=`M ${x},${M} ${t2(e/2,r/2,l,c,O,O+L,!1).replace("M","L")} z`,P=`M ${S},${w} ${t2(e/2,r/2,l,c,N,N+L,!1).replace("M","L")} z`;i=`${_} ${T} ${P}`}break;case"halfFrame":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=3.5,o=3.5,s=1e5*tR;if(t)for(let e of t){let t=E(e,["attrs","name"]);"adj1"===t?a=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj2"===t&&(o=parseInt(E(e,["attrs","fmla"]).substring(4))*tR)}let l=Math.min(e,r),c=s*e/l,u=l*(o<0?0:o>c?c:o)/s,h=s*(r-r*u/e)/l,p=l*(a<0?0:a>h?h:a)/s,d=e-p*e/r,f=r-u*r/e;i=`M 0,0 L ${e},0 L ${d},${p} L ${u},${p} L ${u},${f} L 0,${r} z`}break;case"blockArc":{let t,a,o,s,l=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),c=180,u=0,h=25e3*tR,p=5e4*tR;if(l)for(let t of l){let e=E(t,["attrs","name"]);"adj1"===e?c=parseInt(E(t,["attrs","fmla"]).substring(4))/6e4:"adj2"===e?u=parseInt(E(t,["attrs","fmla"]).substring(4))/6e4:"adj3"===e&&(h=parseInt(E(t,["attrs","fmla"]).substring(4))*tR)}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=e/2,x=r/2,M=e/2,S=r/2;if(d>90&&d<270){let e=b*Math.sin(Math.PI/2-v),r=x*Math.cos(Math.PI/2-v),n=b*Math.cos(Math.atan(r/e)),i=x*Math.sin(Math.atan(r/e));t=M-n,a=S-i}else{let e=b*Math.sin(v),r=x*Math.cos(v),n=b*Math.cos(Math.atan(e/r)),i=x*Math.sin(Math.atan(e/r));t=M+n,a=S+i}let w=Math.min(e,r)*m/(1e5*tR),O=b-w,N=x-w;if(y<=450&&y>270||y>=630&&y<720){let t=O*Math.sin(R),e=N*Math.cos(R),r=O*Math.cos(Math.atan(t/e)),n=N*Math.sin(Math.atan(t/e));o=M+r,s=S+n}else{let t=O*Math.sin(Math.PI/2-R),e=N*Math.cos(Math.PI/2-R),r=O*Math.cos(Math.atan(e/t)),n=N*Math.sin(Math.atan(e/t));o=M-r,s=S-n}i=`M ${t},${a} ${t2(b,x,b,x,d,y,!1).replace("M","L")} L ${o},${s} ${t2(b,x,O,N,f,f+-A,!1).replace("M","L")} z`}break;case"bracePair":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),a=8333*tR,o=25e3*tR;t&&(a=parseInt(t.substring(4))*tR);let s=r/2,l=a<0?0:a>o?o:a,c=Math.min(e,r),u=c*l/(1e5*tR),h=c*l/(5e4*tR),p=e-h,d=e-u,f=s-u,m=s+u,g=r-u;i=`M ${h},${r} ${t2(h,g,u,u,90,180,!1).replace("M","L")} L ${u},${m} ${t2(0,m,u,u,0,-90,!1).replace("M","L")} ${t2(0,f,u,u,90,0,!1).replace("M","L")} L ${u},${u} ${t2(h,u,u,u,180,270,!1).replace("M","L")} M ${p},0 ${t2(p,u,u,u,270,360,!1).replace("M","L")} L ${d},${f} ${t2(e,f,u,u,180,90,!1).replace("M","L")} ${t2(e,m,u,u,270,180,!1).replace("M","L")} L ${d},${g} ${t2(p,g,u,u,0,90,!1).replace("M","L")}`}break;case"leftBrace":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=8333*tR,o=5e4*tR,s=1e5*tR;if(t)for(let e of t){let t=E(e,["attrs","name"]);"adj1"===t?a=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj2"===t&&(o=parseInt(E(e,["attrs","fmla"]).substring(4))*tR)}let l=o<0?0:o>s?s:o,c=Math.min(e,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 ${e},${r} ${t2(e,r-p,e/2,p,90,180,!1).replace("M","L")} L ${e/2},${m} ${t2(0,m,e/2,p,0,-90,!1).replace("M","L")} ${t2(0,f,e/2,p,90,0,!1).replace("M","L")} L ${e/2},${p} ${t2(e,p,e/2,p,180,270,!1).replace("M","L")}`}break;case"rightBrace":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=8333*tR,o=5e4*tR,s=1e5*tR;if(t)for(let e of t){let t=E(e,["attrs","name"]);"adj1"===t?a=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj2"===t&&(o=parseInt(E(e,["attrs","fmla"]).substring(4))*tR)}let l=o<0?0:o>s?s:o,c=Math.min(e,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 ${t2(0,p,e/2,p,270,360,!1).replace("M","L")} L ${e/2},${f} ${t2(e,f,e/2,p,180,90,!1).replace("M","L")} ${t2(e,d+p,e/2,p,270,180,!1).replace("M","L")} L ${e/2},${m} ${t2(0,m,e/2,p,0,90,!1).replace("M","L")}`}break;case"bracketPair":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),a=16667*tR,o=5e4*tR;t&&(a=parseInt(t.substring(4))*tR);let s=Math.min(e,r)*(a<0?0:a>o?o:a)/(1e5*tR),l=e-s,c=r-s;i=`${t2(s,s,s,s,270,180,!1)} ${t2(s,c,s,s,180,90,!1).replace("M","L")} ${t2(l,s,s,s,270,360,!1)} ${t2(l,c,s,s,0,90,!1).replace("M","L")}`}break;case"leftBracket":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),a=8333*tR,o=5e4*tR*r/Math.min(e,r);t&&(a=parseInt(t.substring(4))*tR);let s=Math.min(e,r)*(a<0?0:a>o?o:a)/(1e5*tR);s>e&&(s=e);let l=r-s;i=`M ${e},${r} ${t2(s,l,s,s,90,180,!1).replace("M","L")} L 0,${s} ${t2(s,s,s,s,180,270,!1).replace("M","L")} L ${e},0`}break;case"rightBracket":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),a=8333*tR,o=5e4*tR*r/Math.min(e,r);t&&(a=parseInt(t.substring(4))*tR);let s=Math.min(e,r)*(a<0?0:a>o?o:a)/(1e5*tR),l=r-s,c=e-s;i=`M 0,${r} ${t2(c,l,s,s,90,0,!1).replace("M","L")} L ${e},${r/2} ${t2(c,s,s,s,360,270,!1).replace("M","L")} L 0,0`}break;case"moon":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),a=.5;t&&(a=parseInt(t.substring(4))/1e5);let o=r/2,s=(1-a)*e;i=`M ${e},${r} ${t2(e,o,e,o,90,270,!1).replace("M","L")} ${t2(e,o,s,o,270,90,!1).replace("M","L")} z`}break;case"corner":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=5e4*tR,o=5e4*tR,s=1e5*tR;if(t)for(let e of t){let t=E(e,["attrs","name"]);"adj1"===t?a=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj2"===t&&(o=parseInt(E(e,["attrs","fmla"]).substring(4))*tR)}let l=Math.min(e,r),c=s*r/l,u=s*e/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 ${e},${p} L ${e},${r} L 0,${r} z`}break;case"diagStripe":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),a=5e4*tR,o=1e5*tR;t&&(a=parseInt(t.substring(4))*tR);let s=a<0?0:a>o?o:a,l=e*s/o,c=r*s/o;i=`M 0,${c} L ${l},0 L ${e},0 L 0,${r} z`}break;case"gear6":case"gear9":i=function(t,e){let r=1.5*t,n=2*Math.PI,i=n/(2*e),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+t*Math.cos(s-a))+","+(r+t*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+t*Math.cos(s+a))+",")+(r+t*Math.sin(s+a)),l=!l;return c+" "}(e,r/3.5,parseInt(t.substring(4)));break;case"bentConnector3":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),a=.5;t&&(a=parseInt(t.substring(4))/1e5),i=`M 0 0 L ${a*e} 0 L ${a*e} ${r} L ${e} ${r}`}break;case"plus":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),a=.25;t&&(a=parseInt(t.substring(4))/1e5);let o=1-a;i=`M ${a*e} 0 L ${a*e} ${a*r} L 0 ${a*r} L 0 ${o*r} L ${a*e} ${o*r} L ${a*e} ${r} L ${o*e} ${r} L ${o*e} ${o*r} L ${e} ${o*r} L ${e} ${a*r} L ${o*e} ${a*r} L ${o*e} 0 Z`}break;case"teardrop":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),a=1e5*tR,o=a,s=2e5*tR;t&&(a=parseInt(t.substring(4))*tR);let l=a<0?0:a>s?s:a,c=Math.sqrt(2),u=e/2*c,h=r/2*c,p=45*Math.PI/180,d=e/2+u*l/o*Math.cos(p),f=r/2-h*l/o*Math.cos(p),m=(e/2+d)/2,g=(r/2+f)/2;i=`${t2(e/2,r/2,e/2,r/2,180,270,!1)} Q ${m},0 ${d},${f} Q ${e},${g} ${e},${r/2} ${t2(e/2,r/2,e/2,r/2,0,90,!1).replace("M","L")} ${t2(e/2,r/2,e/2,r/2,90,180,!1).replace("M","L")} z`}break;case"plaque":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),a=16667*tR,o=5e4*tR;t&&(a=parseInt(t.substring(4))*tR);let s=(a<0?0:a>o?o:a)*Math.min(e,r)/(1e5*tR),l=e-s,c=r-s;i=`M 0,${s} ${t2(0,0,s,s,90,0,!1).replace("M","L")} L ${l},0 ${t2(e,0,s,s,180,90,!1).replace("M","L")} L ${e},${c} ${t2(e,r,s,s,270,180,!1).replace("M","L")} L ${s},${r} ${t2(0,r,s,s,0,-90,!1).replace("M","L")} z`}break;case"sun":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),a=25e3*tR,o=12500*tR,s=46875*tR;t&&(a=parseInt(t.substring(4))*tR);let l=a<o?o:a>s?s:a,c=5e4*tR,u=1e5*tR,h=c-l,p=3*(c-30274*h/32768)/4,d=3*(c-12540*h/32768)/4,f=p+3662*tR,m=d+36620*tR,g=d+12500*tR,A=u-p,y=u-f,v=u-m,R=u-g,b=18436*e/21600,x=3163*r/21600,M=3163*e/21600,S=18436*r/21600,w=e*p/u,O=e*f/u,N=e*m/u,L=e*g/u,_=e*A/u,T=e*y/u,P=e*v/u,I=e*R/u,C=e*l/u,k=e*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,Z=r*R/u;i=`M ${e},${r/2} L ${_},${Z} L ${_},${V} z M ${b},${x} L ${T},${Q} L ${N},${U} z M ${e/2},0 L ${I},${X} L ${L},${X} z M ${M},${x} L ${P},${U} L ${O},${Q} z M 0,${r/2} L ${w},${V} L ${w},${Z} z M ${M},${S} L ${O},${W} L ${P},${D} z M ${e/2},${r} L ${L},${Y} L ${I},${Y} z M ${b},${S} L ${N},${D} L ${T},${W} z M ${C},${r/2} ${t2(e/2,r/2,k,F,180,540,!1).replace("M","L")} z`}break;case"heart":{let t=49*e/48,n=10*e/48,a=e/2-t,o=e/2-n,s=e/2+n,l=e/2+t,c=-r/3;i=`M ${e/2},${r/4} C ${s},${c} ${l},${r/4} ${e/2},${r} C ${a},${r/4} ${o},${c} ${e/2},${r/4} z`}break;case"lightningBolt":{let t=5022*e/21600,n=11050*e/21600,a=8472*e/21600,o=10012*e/21600,s=14767*e/21600,l=12222*e/21600,c=12860*e/21600,u=7602*e/21600,h=16577*e/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 ${e},${r} L ${o},${R} L ${l},${y} L ${t},${g} L ${u},${v} L 0,${p} z`}break;case"cube":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),a=25e3*tR;t&&(a=parseInt(t.substring(4))*tR);let o=1e5*tR,s=Math.min(e,r)*(a<0?0:a>o?o:a)/o,l=r-s,c=e-s;i=`M 0,${s} L ${s},0 L ${e},0 L ${e},${l} L ${c},${r} L 0,${r} z M 0,${s} L ${c},${s} M ${c},${s} L ${e},0 M ${c},${s} L ${c},${r}`}break;case"bevel":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),a=12500*tR;t&&(a=parseInt(t.substring(4))*tR);let o=5e4*tR,s=Math.min(e,r)*(a<0?0:a>o?o:a)/(1e5*tR),l=e-s,c=r-s;i=`M 0,0 L ${e},0 L ${e},${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 ${e},0 L ${l},${s} M ${e},${r} L ${l},${c}`}break;case"foldedCorner":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),a=16667*tR;t&&(a=parseInt(t.substring(4))*tR);let o=5e4*tR,s=Math.min(e,r)*(a<0?0:a>o?o:a)/(1e5*tR),l=s/5,c=e-s,u=r-s;i=`M ${c},${r} L ${c+l},${u+l} L ${e},${u} L ${c},${r} L 0,${r} L 0,0 L ${e},0 L ${e},${u}`}break;case"cloud":case"cloudCallout":{let a=3900*e/43200,o=14370*r/43200,s=6753*e/43200,l=9190*r/43200,c=5333*e/43200,u=7267*r/43200,h=5945*r/43200,p=(t,e,r,n,i,a)=>t2(t-r*Math.cos(i*Math.PI/180),e-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 t of[[s,l,-0xae6581/6e4,7426832/6e4],[c,u,-8646143/6e4,5396714/6e4],[4365*e/43200,h,-8748475/6e4,5983381/6e4],[4857*e/43200,6595*r/43200,-7859164/6e4,7034504/6e4],[c,7273*r/43200,-4722533/6e4,6541615/6e4],[6775*e/43200,9220*r/43200,-46.26725,130.269],[5785*e/43200,7867*r/43200,37501/6e4,6842e3/6e4],[6752*e/43200,9215*r/43200,22.4516,115.17255],[7720*e/43200,10543*r/43200,3974558/6e4,4542661/6e4],[4360*e/43200,5918*r/43200,-0xfbb78d/6e4,8804134/6e4],[4345*e/43200,h,-246.8285,152.51885]]){let e=p(f[0],f[1],...t);d+=e;let r=e.lastIndexOf("L"),n=e.substring(r+1).split(" ");f=[parseFloat(n[0]),parseFloat(n[1])]}if(d+=" z","cloudCallout"===t){let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),i=-20833*tR,a=62500*tR;if(t)for(let e of t){let t=E(e,["attrs","name"]);"adj1"===t?i=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj2"===t&&(a=parseInt(E(e,["attrs","fmla"]).substring(4))*tR)}let o=1e5*tR,s=Math.min(e,r),l=e/2,c=r/2,u=e*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,N=O*R/b+f,L=1200*s/21600,_=600*s/21600,T=p+_,P=S*v/b+p+L,I=O*v/b+p+M;d+=`${t2(T-_,f,_,_,0,360,!0)} M ${P},${w} ${t2(P-L,w,L,L,0,360,!0).replace("M","L")} M ${I},${N} ${t2(I-M,N,M,M,0,360,!0).replace("M","L")}`}i=d}break;case"smileyFace":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),a=4653*tR;t&&(a=parseInt(t.substring(4))*tR);let o=4653*tR,s=e/2,l=r/2,c=a<-o?-o:a>o?o:a,u=6215*e/21600,h=13135*e/21600,p=16640*e/21600,d=7570*r/21600,f=16515*r/21600,m=r*c/(1e5*tR),g=f-m,A=f+m+r*c/(5e4*tR),y=1125*e/21600,v=1125*r/21600,R=4969*e/21699;i=`${t2(u,d,y,v,0,360,!0)} ${t2(h,d,y,v,0,360,!0)} M ${R},${g} Q ${s},${A} ${p},${g} Q ${s},${A} ${R},${g} M 0,${l} ${t2(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*tR;a&&(o=parseInt(a.substring(4))*tR);let s=25e3*tR,l=Math.min(e,r)*(o<0?0:o>s?s:o)/(1e5*tR),c=l/2,u=l/4;if("verticalScroll"===t){let t=l+c,n=e-l,a=e-c,o=n-c,s=r-l,h=r-c;i=`M ${l},${s} L ${l},${c} ${t2(t,c,c,c,180,270,!1).replace("M","L")} L ${a},0 ${t2(a,c,c,c,270,450,!1).replace("M","L")} L ${n},${l} L ${n},${h} ${t2(o,h,c,c,0,90,!1).replace("M","L")} L ${c},${r} ${t2(c,h,c,c,90,270,!1).replace("M","L")} z M ${t},0 ${t2(t,c,c,c,270,450,!1).replace("M","L")} ${t2(t,t/2,u,u,90,270,!1).replace("M","L")} L ${l+l},${c} M ${n},${l} L ${t},${l} M ${l},${h} ${t2(c,h,c,c,0,270,!1).replace("M","L")} ${t2(c,(h+s)/2,u,u,270,450,!1).replace("M","L")} z M ${l},${h} L ${l},${s}`}else if("horizontalScroll"===t){let t=l+c,n=r-l,a=r-c,o=n-c,s=e-l,h=e-c;i=`M 0,${t} ${t2(c,t,c,c,180,270,!1).replace("M","L")} L ${s},${l} L ${s},${c} ${t2(h,c,c,c,180,360,!1).replace("M","L")} L ${e},${o} ${t2(h,o,c,c,0,90,!1).replace("M","L")} L ${l},${n} L ${l},${a} ${t2(c,a,c,c,0,180,!1).replace("M","L")} z M ${h},${l} ${t2(h,c,c,c,90,-180,!1).replace("M","L")} ${t2((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},${t} ${t2(t/2,t,u,u,180,360,!1).replace("M","L")} ${t2(c,t,c,c,0,180,!1).replace("M","L")} M ${l},${t} L ${l},${n}`}}break;case"wedgeEllipseCallout":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=-20833*tR,o=62500*tR;if(t)for(let e of t){let t=E(e,["attrs","name"]);"adj1"===t?a=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj2"===t&&(o=parseInt(E(e,["attrs","fmla"]).substring(4))*tR)}let s=1e5*tR,l=11*Math.PI/180,c=r/2,u=e/2,h=e*a/s,p=r*o/s,d=u+h,f=c+p,m=Math.atan2(p*e,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} ${t2(u,c,u,c,180*A/Math.PI,180*g/Math.PI,!0).replace("M","L")}`}break;case"wedgeRectCallout":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=-20833*tR,o=62500*tR;if(t)for(let e of t){let t=E(e,["attrs","name"]);"adj1"===t?a=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj2"===t&&(o=parseInt(E(e,["attrs","fmla"]).substring(4))*tR)}let s=1e5*tR,l=r/2,c=e/2,u=e*a/s,h=r*o/s,p=c+u,d=l+h,f=Math.abs(h)-Math.abs(u*r/e),m=e*(u>0?7:2)/12,g=e*(u>0?10:5)/12,A=r*(h>0?7:2)/12,y=r*(h>0?10:5)/12,v=f>0?e:u>0?p:e,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 ${e},0 L ${e},${A} L ${v},${f>0?A:u>0?d:A} L ${e},${y} L ${e},${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 t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=-20833*tR,o=62500*tR,s=16667*tR;if(t)for(let e of t){let t=E(e,["attrs","name"]);"adj1"===t?a=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj2"===t?o=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj3"===t&&(s=parseInt(E(e,["attrs","fmla"]).substring(4))*tR)}let l=1e5*tR,c=Math.min(e,r),u=r/2,h=e/2,p=e*a/l,d=r*o/l,f=h+p,m=u+d,g=Math.abs(d)-Math.abs(p*r/e),A=e*(p>0?7:2)/12,y=e*(p>0?10:5)/12,v=r*(d>0?7:2)/12,R=r*(d>0?10:5)/12,b=g>0?e:p>0?f:e,x=g>0&&d>0?m:r,M=c*s/l,S=e-M,w=r-M;i=`M 0,${M} ${t2(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 ${t2(S,M,M,M,270,360,!1).replace("M","L")} L ${e},${v} L ${b},${g>0?v:p>0?m:v} L ${e},${R} L ${e},${w} ${t2(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} ${t2(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*tR,m=-8333*tR,g=18750*tR,A=-16667*tR,y=1e5*tR,v=-16667*tR,R=112963*tR,b=-8333*tR;if(d)for(let t of d){let e=E(t,["attrs","name"]);"adj1"===e?f=parseInt(E(t,["attrs","fmla"]).substring(4))*tR:"adj2"===e?m=parseInt(E(t,["attrs","fmla"]).substring(4))*tR:"adj3"===e?g=parseInt(E(t,["attrs","fmla"]).substring(4))*tR:"adj4"===e?A=parseInt(E(t,["attrs","fmla"]).substring(4))*tR:"adj5"===e?y=parseInt(E(t,["attrs","fmla"]).substring(4))*tR:"adj6"===e?v=parseInt(E(t,["attrs","fmla"]).substring(4))*tR:"adj7"===e?R=parseInt(E(t,["attrs","fmla"]).substring(4))*tR:"adj8"===e&&(b=parseInt(E(t,["attrs","fmla"]).substring(4))*tR)}let x=1e5*tR,M=`M 0,0 L ${e},0 L ${e},${r} L 0,${r} z`;switch(t){case"borderCallout1":case"callout1":d||(f=18750*tR,m=-8333*tR,g=112500*tR,A=-38333*tR),o=r*f/x,a=e*m/x,l=r*g/x,s=e*A/x,i=`${M} M ${a},${o} L ${s},${l}`;break;case"borderCallout2":case"callout2":d||(f=18750*tR,m=-8333*tR,g=18750*tR,A=-16667*tR,y=112500*tR,v=-46667*tR),o=r*f/x,a=e*m/x,l=r*g/x,s=e*A/x,u=r*y/x,c=e*v/x,i=`${M} M ${a},${o} L ${s},${l} L ${c},${u}`;break;case"borderCallout3":case"callout3":d||(f=18750*tR,m=-8333*tR,g=18750*tR,A=-16667*tR,y=1e5*tR,v=-16667*tR,R=112963*tR,b=-8333*tR),o=r*f/x,a=e*m/x,l=r*g/x,s=e*A/x,u=r*y/x,c=e*v/x,p=r*R/x,h=e*b/x,i=`${M} M ${a},${o} L ${s},${l} L ${c},${u} L ${h},${p}`;break;case"accentBorderCallout1":case"accentCallout1":d||(f=18750*tR,m=-8333*tR,g=112500*tR,A=-38333*tR),o=r*f/x,a=e*m/x,l=r*g/x,s=e*A/x,i=`${M} M ${a},${o} L ${s},${l} M ${a},0 L ${a},${r}`;break;case"accentBorderCallout2":case"accentCallout2":d||(f=18750*tR,m=-8333*tR,g=18750*tR,A=-16667*tR,y=112500*tR,v=-46667*tR),o=r*f/x,a=e*m/x,l=r*g/x,s=e*A/x,u=r*y/x,c=e*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*tR,m=-8333*tR,g=18750*tR,A=-16667*tR,y=1e5*tR,v=-16667*tR,R=112963*tR,b=-8333*tR),o=r*f/x,a=e*m/x,l=r*g/x,s=e*A/x,u=r*y/x,c=e*v/x,p=r*R/x,h=e*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 t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=5e4*tR,o=5e4*tR,s=16667*tR;if(t)for(let e of t){let t=E(e,["attrs","name"]);"adj1"===t?a=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj2"===t?o=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj3"===t&&(s=parseInt(E(e,["attrs","fmla"]).substring(4))*tR)}let l=33333*tR,c=1e5*tR,u=2e5*tR,h=Math.min(e,r),p=e/2,d=r/2,f=s<0?0:s>l?l:s,m=c-f,g=c*(p-e/32)/h,A=h*(o<0?0:o>g?g:o)/c,y=e-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),N=f*h/(4e5*tR),L=p-e/32,_=p+e/32,T=b+N,P=O-N;i=`M 0,${M} L ${A},0 L ${A},${b} L ${p},${b} ${t2(p,T,e/32,N,270,450,!1).replace("M","L")} ${t2(p,P,e/32,N,270,90,!1).replace("M","L")} L ${y},${O} L ${y},${r-w} L ${e},${S} L ${y},${r} L ${y},${x} L ${p},${x} ${t2(p,x-N,e/32,N,90,180,!1).replace("M","L")} L ${L},${w-b} L ${A},${w-b} L ${A},${w} z M ${_},${T} L ${_},${O} M ${L},${P} L ${L},${w-b}`}break;case"ribbon":case"ribbon2":{let a=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),o=16667*tR,s=5e4*tR;if(a)for(let t of a){let e=E(t,["attrs","name"]);"adj1"===e?o=parseInt(E(t,["attrs","fmla"]).substring(4))*tR:"adj2"===e&&(s=parseInt(E(t,["attrs","fmla"]).substring(4))*tR)}let l=25e3*tR,c=33333*tR,u=75e3*tR,h=1e5*tR,p=2e5*tR,d=e/2,f=e/8,m=e/32,g=o<0?0:o>c?c:o,A=e-f,y=e*(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,N=r*g/(4e5*tR);if("ribbon2"===t){let t=r*g/p,n=r-t,a=r*g/h,o=r-a,s=0+a,l=(s+r)/2,c=r-N,u=n-N;i=`M 0,${r} L ${f},${l} L 0,${s} L ${v},${s} L ${v},${N} ${t2(b,N,m,N,180,270,!1).replace("M","L")} L ${x},0 ${t2(x,N,m,N,270,360,!1).replace("M","L")} L ${R},${s} L ${e},${s} L ${A},${l} L ${e},${r} L ${O},${r} ${t2(O,c,m,N,90,270,!1).replace("M","L")} L ${x},${n} ${t2(x,u,m,N,90,-90,!1).replace("M","L")} L ${b},${o} ${t2(b,u,m,N,270,90,!1).replace("M","L")} L ${w},${n} ${t2(w,c,m,N,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"===t){let t=r*g/p,n=r*g/h,a=r-n,o=a/2,s=r-N,l=n-N;i=`M 0,0 L ${w},0 ${t2(w,N,m,N,270,450,!1).replace("M","L")} L ${b},${t} ${t2(b,l,m,N,270,90,!1).replace("M","L")} L ${x},${n} ${t2(x,l,m,N,90,-90,!1).replace("M","L")} L ${O},${t} ${t2(O,N,m,N,90,270,!1).replace("M","L")} L ${e},0 L ${A},${o} L ${e},${a} L ${R},${a} L ${R},${s} ${t2(x,s,m,N,0,90,!1).replace("M","L")} L ${b},${r} ${t2(b,s,m,N,90,180,!1).replace("M","L")} L ${v},${a} L 0,${a} L ${f},${o} z M ${M},${N} L ${M},${n} M ${S},${n} L ${S},${N} 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"===t?6250*tR:12500*tR,s=0;if(a)for(let t of a){let e=E(t,["attrs","name"]);"adj1"===e?o=parseInt(E(t,["attrs","fmla"]).substring(4))*tR:"adj2"===e&&(s=parseInt(E(t,["attrs","fmla"]).substring(4))*tR)}let l=-1e4*tR,c=5e4*tR,u=1e5*tR;if("doubleWave"===t){let t=12500*tR,n=s<l?l:s>u?u:s,a=r*(o<0?0:o>t?t:o)/u,h=10*a/3,p=a-h,d=a+h,f=r-a,m=f-h,g=f+h,A=e*n/c,y=A>0?0:A,v=0-y,R=A>0?A:0,b=e-R,x=(y+b)/6,M=(y+b)/3,S=(v+b)/2,w=S+x,O=0+R,N=e+y,L=(O+N)/2,_=L+x;i=`M ${v},${a} C ${v+x},${p} ${v+M},${d} ${S},${a} C ${w},${p} ${(w+b)/2},${d} ${b},${a} L ${N},${f} C ${(_+N)/2},${g} ${_},${m} ${L},${f} C ${O+M},${g} ${O+x},${m} ${O},${f} z`}else if("wave"===t){let t=2e4*tR,n=s<l?l:s>u?u:s,a=r*(o<0?0:o>t?t:o)/u,h=10*a/3,p=r-a,d=e*n/c,f=d>0?0:d,m=0-f,g=d>0?d:0,A=e-g,y=(f+A)/3,v=m+y,R=0+g,b=e+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*tR,s=5e4*tR,l=12500*tR;if(a)for(let t of a){let e=E(t,["attrs","name"]);"adj1"===e?o=parseInt(E(t,["attrs","fmla"]).substring(4))*tR:"adj2"===e?s=parseInt(E(t,["attrs","fmla"]).substring(4))*tR:"adj3"===e&&(l=parseInt(E(t,["attrs","fmla"]).substring(4))*tR)}let c=25e3*tR,u=75e3*tR,h=1e5*tR,p=e/2,d=e/8,f=o<0?0:o>h?h:o,m=h-f,g=f-m/2>0?f-m/2:0,A=p-e*(s<c?c:s>u?u:s)/(2e5*tR),y=A+d,v=e-y,R=e-A,b=e-d,x=r*(l<g?g:l>f?f:l)/h,M=4*x/e,S=y-y*y/e,w=y/2,O=e-w,N=r*f/h,L=N-x,_=M*(A-A*A/e),T=r-N,P=14*x/16,I=A/2,C=M*I,k=e-I;if("ellipseRibbon"===t){let t=M*S,r=M*w,n=_+L,a=x+L-n+x+L,o=(P+T)/2,s=_+T,l=n+T,c=C+T,u=t+L;i=`M 0,0 Q ${w},${r} ${y},${t} L ${A},${n} Q ${p},${a} ${R},${n} L ${v},${t} Q ${O},${r} ${e},0 L ${b},${o} L ${e},${T} Q ${k},${c} ${R},${s} L ${R},${l} Q ${p},${a+T} ${A},${l} L ${A},${s} Q ${I},${c} 0,${T} L ${d},${o} z M ${A},${s} L ${A},${n} M ${R},${n} L ${R},${s} M ${y},${t} L ${y},${u} M ${v},${u} L ${v},${t}`}else if("ellipseRibbon2"===t){let t=M*S,n=r-t,a=r-M*w,o=_+L,s=r-o,l=x+L-o+x+L,c=r-l,u=r-(P+T)/2,h=r-(_+T),f=r-(o+T),m=r-(C+T),g=r-(l+T),F=r-(t+L);i=`M 0,${r} L ${d},${u} L 0,${N} Q ${I},${m} ${A},${h} L ${A},${f} Q ${p},${g} ${R},${f} L ${R},${h} Q ${k},${m} ${e},${N} L ${b},${u} L ${e},${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 ${e} ${r}`;break;case"rightArrow":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=.25,o=.5;if(t){let n=e/r;for(let e of t){let t=E(e,["attrs","name"]);"adj1"===t?a=.5-parseInt(E(e,["attrs","fmla"]).substring(4))/2e5:"adj2"===t&&(o=1-parseInt(E(e,["attrs","fmla"]).substring(4))/1e5/n)}}i=`M ${e} ${r/2} L ${o*e} 0 L ${o*e} ${a*r} L 0 ${a*r} L 0 ${(1-a)*r} L ${o*e} ${(1-a)*r} L ${o*e} ${r} Z`}break;case"leftArrow":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=.25,o=.5;if(t){let n=e/r;for(let e of t){let t=E(e,["attrs","name"]);"adj1"===t?a=.5-parseInt(E(e,["attrs","fmla"]).substring(4))/2e5:"adj2"===t&&(o=parseInt(E(e,["attrs","fmla"]).substring(4))/1e5/n)}}i=`M 0 ${r/2} L ${o*e} ${r} L ${o*e} ${(1-a)*r} L ${e} ${(1-a)*r} L ${e} ${a*r} L ${o*e} ${a*r} L ${o*e} 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 t=r/e;for(let e of a){let r=E(e,["attrs","name"]);"adj1"===r?o=parseInt(E(e,["attrs","fmla"]).substring(4))/2e5:"adj2"===r&&(s=parseInt(E(e,["attrs","fmla"]).substring(4))/1e5/t)}}"flowChartOffpageConnector"===t&&(o=.5,s=.212),i=`M ${(.5-o)*e} 0 L ${(.5-o)*e} ${(1-s)*r} L 0 ${(1-s)*r} L ${e/2} ${r} L ${e} ${(1-s)*r} L ${(.5+o)*e} ${(1-s)*r} L ${(.5+o)*e} 0 Z`}break;case"upArrow":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=.25,o=.5;if(t){let n=r/e;for(let e of t){let t=E(e,["attrs","name"]);"adj1"===t?a=parseInt(E(e,["attrs","fmla"]).substring(4))/2e5:"adj2"===t&&(o=parseInt(E(e,["attrs","fmla"]).substring(4))/1e5/n)}}i=`M ${e/2} 0 L 0 ${o*r} L ${(.5-a)*e} ${o*r} L ${(.5-a)*e} ${r} L ${(.5+a)*e} ${r} L ${(.5+a)*e} ${o*r} L ${e} ${o*r} Z`}break;case"leftRightArrow":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=.25,o=.25;if(t){let n=e/r;for(let e of t){let t=E(e,["attrs","name"]);"adj1"===t?a=.5-parseInt(E(e,["attrs","fmla"]).substring(4))/2e5:"adj2"===t&&(o=parseInt(E(e,["attrs","fmla"]).substring(4))/1e5/n)}}i=`M 0 ${r/2} L ${o*e} ${r} L ${o*e} ${(1-a)*r} L ${(1-o)*e} ${(1-a)*r} L ${(1-o)*e} ${r} L ${e} ${r/2} L ${(1-o)*e} 0 L ${(1-o)*e} ${a*r} L ${o*e} ${a*r} L ${o*e} 0 Z`}break;case"upDownArrow":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=.25,o=.25;if(t){let n=r/e;for(let e of t){let t=E(e,["attrs","name"]);"adj1"===t?a=.5-parseInt(E(e,["attrs","fmla"]).substring(4))/2e5:"adj2"===t&&(o=parseInt(E(e,["attrs","fmla"]).substring(4))/1e5/n)}}i=`M ${e/2} 0 L 0 ${o*r} L ${a*e} ${o*r} L ${a*e} ${(1-o)*r} L 0 ${(1-o)*r} L ${e/2} ${r} L ${e} ${(1-o)*r} L ${(1-a)*e} ${(1-o)*r} L ${(1-a)*e} ${o*r} L ${e} ${o*r} Z`}break;case"quadArrow":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=22500*tR,o=22500*tR,s=22500*tR,l=5e4*tR,c=1e5*tR;if(t)for(let e of t){let t=E(e,["attrs","name"]);"adj1"===t?a=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj2"===t?o=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj3"===t&&(s=parseInt(E(e,["attrs","fmla"]).substring(4))*tR)}let u=r/2,h=e/2,p=Math.min(e,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*tR),x=h-b,M=h+b,S=e-A,w=u-y,O=u+y,N=u-b,L=u+b,_=r-A;i=`M 0,${u} L ${A},${w} L ${A},${N} L ${x},${N} L ${x},${A} L ${v},${A} L ${h},0 L ${R},${A} L ${M},${A} L ${M},${N} L ${S},${N} L ${S},${w} L ${e},${u} L ${S},${O} L ${S},${L} L ${M},${L} L ${M},${_} L ${R},${_} L ${h},${r} L ${v},${_} L ${x},${_} L ${x},${L} L ${A},${L} L ${A},${O} z`}break;case"leftRightUpArrow":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=25e3*tR,o=25e3*tR,s=25e3*tR,l=5e4*tR,c=1e5*tR;if(t)for(let e of t){let t=E(e,["attrs","name"]);"adj1"===t?a=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj2"===t?o=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj3"===t&&(s=parseInt(E(e,["attrs","fmla"]).substring(4))*tR)}let u=e/2,h=Math.min(e,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*tR),v=u-y,R=u+y,b=e-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 ${e},${M} L ${b},${r} L ${b},${w} L ${g},${w} L ${g},${r} z`}break;case"leftUpArrow":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=25e3*tR,o=25e3*tR,s=25e3*tR,l=5e4*tR,c=1e5*tR;if(t)for(let e of t){let t=E(e,["attrs","name"]);"adj1"===t?a=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj2"===t?o=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj3"===t&&(s=parseInt(E(e,["attrs","fmla"]).substring(4))*tR)}let u=Math.min(e,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=e-g,y=r-g,v=u*h/c,R=e-v,b=r-v,x=u*d/(2e5*tR),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 ${e},${m} L ${S},${m} L ${S},${O} L ${m},${O} L ${m},${r} z`}break;case"bentUpArrow":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=25e3*tR,o=25e3*tR,s=25e3*tR,l=5e4*tR,c=1e5*tR;if(t)for(let e of t){let t=E(e,["attrs","name"]);"adj1"===t?a=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj2"===t?o=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj3"===t&&(s=parseInt(E(e,["attrs","fmla"]).substring(4))*tR)}let u=Math.min(e,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=e-u*p/l,m=e-u*p/c,g=u*h/(2e5*tR),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 ${e},${d} L ${y},${d} L ${y},${r} L 0,${r} z`}break;case"bentArrow":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=25e3*tR,o=25e3*tR,s=25e3*tR,l=43750*tR,c=5e4*tR,u=1e5*tR;if(t)for(let e of t){let t=E(e,["attrs","name"]);"adj1"===t?a=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj2"===t?o=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj3"===t?s=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj4"===t&&(l=parseInt(E(e,["attrs","fmla"]).substring(4))*tR)}let h=Math.min(e,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=e-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=e-A,O=g+f,N=g+b,L=O+M;i=`M 0,${r} L 0,${N} ${t2(b,N,b,b,180,270,!1).replace("M","L")} L ${w},${g} L ${w},0 L ${e},${m} L ${w},${O+g} L ${w},${O} L ${S},${O} ${t2(S,L,M,M,270,180,!1).replace("M","L")} L ${f},${r} z`}break;case"uturnArrow":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=25e3*tR,o=25e3*tR,s=25e3*tR,l=43750*tR,c=75e3*tR,u=25e3*tR,h=1e5*tR;if(t)for(let e of t){let t=E(e,["attrs","name"]);"adj1"===t?a=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj2"===t?o=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj3"===t?s=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj4"===t?l=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj5"===t&&(c=parseInt(E(e,["attrs","fmla"]).substring(4))*tR)}let p=Math.min(e,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=e-x,O=w/2,N=h*(O<S?O:S)/p,L=p*(l<0?0:l>N?N:l)/h,_=L-R,T=_>0?_:0,P=R+T,I=e-b,C=I-b,k=C+x,F=w-L,X=k-T;i=`M 0,${r} L 0,${L} ${t2(L,L,L,L,180,270,!1).replace("M","L")} L ${F},0 ${t2(F,L,L,L,270,360,!1).replace("M","L")} L ${w},${S} L ${e},${S} L ${I},${M} L ${C},${S} L ${k},${S} L ${k},${P} ${t2(X,P,T,T,0,-90,!1).replace("M","L")} L ${P},${R} ${t2(P,P,T,T,270,180,!1).replace("M","L")} L ${R},${r} z`}break;case"stripedRightArrow":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=5e4*tR,o=5e4*tR,s=1e5*tR;if(t)for(let e of t){let t=E(e,["attrs","name"]);"adj1"===t?a=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj2"===t&&(o=parseInt(E(e,["attrs","fmla"]).substring(4))*tR)}let l=r/2,c=Math.min(e,r),u=84375*tR*e/c,h=a<0?0:a>s?s:a,p=5*c/32,d=e-c*(o<0?0:o>u?u:o)/s,f=r*h/(2e5*tR),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 ${e},${l} L ${d},${r} L ${d},${g} L ${p},${g} z`}break;case"notchedRightArrow":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=5e4*tR,o=5e4*tR,s=1e5*tR;if(t)for(let e of t){let t=E(e,["attrs","name"]);"adj1"===t?a=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj2"===t&&(o=parseInt(E(e,["attrs","fmla"]).substring(4))*tR)}let l=r/2,c=Math.min(e,r),u=s*e/c,h=a<0?0:a>s?s:a,p=c*(o<0?0:o>u?u:o)/s,d=e-p,f=r*h/(2e5*tR),m=l-f,g=l+f;i=`M 0,${m} L ${d},${m} L ${d},0 L ${e},${l} L ${d},${r} L ${d},${g} L 0,${g} L ${f*p/l},${l} z`}break;case"homePlate":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),a=5e4*tR,o=1e5*tR;t&&(a=parseInt(t.substring(4))*tR);let s=r/2,l=Math.min(e,r),c=o*e/l,u=e-l*(a<0?0:a>c?c:a)/o;i=`M 0,0 L ${u},0 L ${e},${s} L ${u},${r} L 0,${r} z`}break;case"chevron":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd","attrs","fmla"]),a=5e4*tR,o=1e5*tR;t&&(a=parseInt(t.substring(4))*tR);let s=r/2,l=Math.min(e,r),c=o*e/l,u=l*(a<0?0:a>c?c:a)/o,h=e-u;i=`M 0,0 L ${h},0 L ${e},${s} L ${h},${r} L 0,${r} L ${u},${s} z`}break;case"rightArrowCallout":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=25e3*tR,o=25e3*tR,s=25e3*tR,l=64977*tR,c=1e5*tR;if(t)for(let e of t){let t=E(e,["attrs","name"]);"adj1"===t?a=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj2"===t?o=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj3"===t?s=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj4"===t&&(l=parseInt(E(e,["attrs","fmla"]).substring(4))*tR)}let u=r/2,h=Math.min(e,r),p=5e4*tR*r/h,d=o<0?0:o>p?p:o,f=2*d,m=c*e/h,g=s<0?0:s>m?m:s,A=c-g*h/e,y=h*d/c,v=h*(a<0?0:a>f?f:a)/(2e5*tR),R=u-v,b=u+v,x=e-h*g/c,M=e*(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 ${e},${u} L ${x},${u+y} L ${x},${b} L ${M},${b} L ${M},${r} L 0,${r} z`}break;case"downArrowCallout":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=25e3*tR,o=25e3*tR,s=25e3*tR,l=64977*tR,c=1e5*tR;if(t)for(let e of t){let t=E(e,["attrs","name"]);"adj1"===t?a=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj2"===t?o=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj3"===t?s=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj4"===t&&(l=parseInt(E(e,["attrs","fmla"]).substring(4))*tR)}let u=e/2,h=Math.min(e,r),p=5e4*tR*e/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*tR),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 ${e},0 L ${e},${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 t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=25e3*tR,o=25e3*tR,s=25e3*tR,l=64977*tR,c=1e5*tR;if(t)for(let e of t){let t=E(e,["attrs","name"]);"adj1"===t?a=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj2"===t?o=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj3"===t?s=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj4"===t&&(l=parseInt(E(e,["attrs","fmla"]).substring(4))*tR)}let u=r/2,h=Math.min(e,r),p=5e4*tR*r/h,d=o<0?0:o>p?p:o,f=2*d,m=c*e/h,g=s<0?0:s>m?m:s,A=c-g*h/e,y=h*d/c,v=h*(a<0?0:a>f?f:a)/(2e5*tR),R=u-v,b=u+v,x=h*g/c,M=e*(l<0?0:l>A?A:l)/c,S=e-M;i=`M 0,${u} L ${x},${u-y} L ${x},${R} L ${S},${R} L ${S},0 L ${e},0 L ${e},${r} L ${S},${r} L ${S},${b} L ${x},${b} L ${x},${u+y} z`}break;case"upArrowCallout":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=25e3*tR,o=25e3*tR,s=25e3*tR,l=64977*tR,c=1e5*tR;if(t)for(let e of t){let t=E(e,["attrs","name"]);"adj1"===t?a=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj2"===t?o=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj3"===t?s=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj4"===t&&(l=parseInt(E(e,["attrs","fmla"]).substring(4))*tR)}let u=e/2,h=Math.min(e,r),p=5e4*tR*e/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*tR),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 ${e},${S} L ${e},${r} L 0,${r} z`}break;case"leftRightArrowCallout":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=25e3*tR,o=25e3*tR,s=25e3*tR,l=48123*tR,c=5e4*tR,u=1e5*tR,h=2e5*tR;if(t)for(let e of t){let t=E(e,["attrs","name"]);"adj1"===t?a=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj2"===t?o=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj3"===t?s=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj4"===t&&(l=parseInt(E(e,["attrs","fmla"]).substring(4))*tR)}let p=r/2,d=e/2,f=Math.min(e,r),m=c*r/f,g=o<0?0:o>m?m:o,A=2*g,y=c*e/f,v=s<0?0:s>y?y:s,R=u-v*f/(e/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,N=f*v/u,L=e-N,_=e*(l<0?0:l>R?R:l)/h,T=d-_,P=d+_;i=`M 0,${p} L ${N},${M} L ${N},${S} L ${T},${S} L ${T},0 L ${P},0 L ${P},${S} L ${L},${S} L ${L},${M} L ${e},${p} L ${L},${O} L ${L},${w} L ${P},${w} L ${P},${r} L ${T},${r} L ${T},${w} L ${N},${w} L ${N},${O} z`}break;case"quadArrowCallout":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=18515*tR,o=18515*tR,s=18515*tR,l=48123*tR,c=5e4*tR,u=1e5*tR,h=2e5*tR;if(t)for(let e of t){let t=E(e,["attrs","name"]);"adj1"===t?a=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj2"===t?o=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj3"===t?s=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj4"===t&&(l=parseInt(E(e,["attrs","fmla"]).substring(4))*tR)}let p=r/2,d=e/2,f=Math.min(e,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=e*b/h,O=r*b/h,N=e-S,L=d-w,_=d+w,T=d-x,P=d+x,I=d-M,C=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 ${L},${V} L ${L},${F} L ${I},${F} L ${I},${S} L ${T},${S} L ${d},0 L ${P},${S} L ${C},${S} L ${C},${F} L ${_},${F} L ${_},${V} L ${N},${V} L ${N},${U} L ${e},${p} L ${N},${W} L ${N},${Y} L ${_},${Y} L ${_},${X} L ${C},${X} L ${C},${k} L ${P},${k} L ${d},${r} L ${T},${k} L ${I},${k} L ${I},${X} L ${L},${X} L ${L},${Y} L ${S},${Y} L ${S},${W} z`}break;case"curvedDownArrow":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=25e3*tR,o=5e4*tR,s=25e3*tR,l=1e5*tR;if(t)for(let e of t){let t=E(e,["attrs","name"]);"adj1"===t?a=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj2"===t?o=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj3"===t&&(s=parseInt(E(e,["attrs","fmla"]).substring(4))*tR)}let c=e/2,u=Math.min(e,r),h=5e4*tR*e/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=e-d/2,w=r-y,O=180*Math.atan(R/y)/Math.PI,N=180*Math.atan(p/2/g)/Math.PI,L=270+O,_=270-N;i=`M ${S},${r} L ${b-M},${w} L ${b},${w} ${t2(f,r,f,r,L,L+-O,!1).replace("M","L")} L ${v},0 ${t2(v,r,f,r,270,270+O,!1).replace("M","L")} L ${b+p},${w} L ${x+M},${w} z M ${v},0 ${t2(v,r,f,r,_,_+(N-90),!1).replace("M","L")} ${t2(f,r,f,r,180,180+(90+N),!1).replace("M","L")}`}break;case"curvedLeftArrow":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=25e3*tR,o=5e4*tR,s=25e3*tR,l=1e5*tR;if(t)for(let e of t){let t=E(e,["attrs","name"]);"adj1"===t?a=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj2"===t?o=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj3"===t&&(s=parseInt(E(e,["attrs","fmla"]).substring(4))*tR)}let c=r/2,u=Math.min(e,r),h=5e4*tR*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)*e/g,y=l*A/u,v=u*(s<0?0:s>y?y:s)/l,R=m+d,b=Math.sqrt(e*e-v*v)*m/e,x=m+b,M=R+b,S=(f-d)/2,w=r-f/2,O=0+v,N=Math.atan(b/v),L=180*N/Math.PI,_=180*(Math.atan(d/2/A)-N)/Math.PI;i=`M ${e},${R} ${t2(0,m,e,m,0,-90,!1).replace("M","L")} L 0,0 ${t2(0,R,e,m,270,360,!1).replace("M","L")} L ${e},${R} ${t2(0,R,e,m,0,L,!1).replace("M","L")} L ${O},${M} L ${O},${M+S} L 0,${w} L ${O},${x-S} L ${O},${x} ${t2(0,m,e,m,L,L+_,!1).replace("M","L")} ${t2(0,m,e,m,0,-90,!1).replace("M","L")} ${t2(0,R,e,m,270,360,!1).replace("M","L")}`}break;case"curvedRightArrow":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=25e3*tR,o=5e4*tR,s=25e3*tR,l=1e5*tR;if(t)for(let e of t){let t=E(e,["attrs","name"]);"adj1"===t?a=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj2"===t?o=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj3"===t&&(s=parseInt(E(e,["attrs","fmla"]).substring(4))*tR)}let c=r/2,u=Math.min(e,r),h=5e4*tR*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)*e/g,y=l*A/u,v=u*(s<0?0:s>y?y:s)/l,R=m+d,b=Math.sqrt(e*e-v*v)*m/e,x=m+b,M=R+b,S=(f-d)/2,w=r-f/2,O=e-v,N=Math.atan(b/v),L=180*(Math.PI-N)/Math.PI,_=-(180*N)/Math.PI,T=180*N/Math.PI,P=180*(Math.atan(d/2/A)-Math.PI/2)/Math.PI;i=`M 0,${m} ${t2(e,m,e,m,180,180+_,!1).replace("M","L")} L ${O},${x} L ${O},${x-S} L ${e},${w} L ${O},${M+S} L ${O},${M} ${t2(e,R,e,m,L,L+T,!1).replace("M","L")} L 0,${m} ${t2(e,m,e,m,180,270,!1).replace("M","L")} L ${e},${d} ${t2(e,R,e,m,270,270+P,!1).replace("M","L")}`}break;case"curvedUpArrow":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=25e3*tR,o=5e4*tR,s=25e3*tR,l=1e5*tR;if(t)for(let e of t){let t=E(e,["attrs","name"]);"adj1"===t?a=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj2"===t?o=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj3"===t&&(s=parseInt(E(e,["attrs","fmla"]).substring(4))*tR)}let c=e/2,u=Math.min(e,r),h=5e4*tR*e/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=e-d/2,w=0+y,O=Math.atan(R/y),N=Math.atan(p/2/g),L=Math.PI/2-O,_=180*(Math.PI/2-N)/Math.PI,T=180*(N-O)/Math.PI,P=180*L/Math.PI,I=180*O/Math.PI;i=`${t2(f,0,f,r,_,_+T,!1)} L ${b},${w} L ${b-M},${w} L ${S},0 L ${x+M},${w} L ${x},${w} ${t2(v,0,f,r,P,P+I,!1).replace("M","L")} L ${f},${r} ${t2(f,0,f,r,90,180,!1).replace("M","L")} L ${p},0 ${t2(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 t of l){let e=E(t,["attrs","name"]);"adj1"===e?a=parseInt(E(t,["attrs","fmla"]).substring(4)):"adj2"===e?o=parseInt(E(t,["attrs","fmla"]).substring(4)):"adj3"===e&&(s=parseInt(E(t,["attrs","fmla"]).substring(4)))}else a=parseInt(E(l,["attrs","fmla"]).substring(4));let c=5e4*tR,u=1e5*tR,h=2e5*tR,p=e/2,d=r/2,f=r/2;if("mathNotEqual"===t){void 0===a&&(a=23520),void 0===o&&(o=66e5),void 0===s&&(s=11760),a*=tR,o=o/6e4*Math.PI/180,s*=tR;let t=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*tR*e/h,v=p-y,R=p+y,b=d-A,x=d+A,M=b-g,S=x+g,w=(o<t?t:o>n?n:o)-Math.PI/2,O=f*Math.tan(w),N=Math.sqrt(O*O+f*f),L=N*g/f,_=p+O-L/2,T=_-O*M/f,P=_-O*b/f,I=_-O*x/f,C=_-O*S/f,k=g*f/N,F=w>0?_+k:_+L,X=w>0?_:_+L-k,U=g*O/N,W=w>0?U:0,V=w>0?0:-U,E=e-F,Y=e-X,D=r-W,Q=r-V;i=`M ${v},${M} L ${T},${M} L ${X},${V} L ${F},${W} L ${T+L},${M} L ${R},${M} L ${R},${b} L ${P+L},${b} L ${I+L},${x} L ${R},${x} L ${R},${S} L ${C+L},${S} L ${Y},${Q} L ${E},${D} L ${C},${S} L ${v},${S} L ${v},${x} L ${I},${x} L ${P},${b} L ${v},${b} z`}else if("mathDivide"===t){void 0===a&&(a=23520),void 0===o&&(o=5880),void 0===s&&(s=11760),a*=tR,o*=tR,s*=tR;let t=1e3*tR,n=36745*tR,l=73490*tR,c=a<t?t:a>n?n:a,f=(l-c)/4,m=n*e/r,g=f<m?f:m,A=s<t?t: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=e*l/h,M=d-v,S=d+v,w=M-(R+b)-b,O=r-w,N=p-x,L=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 ${N},${M} L ${L},${M} L ${L},${S} L ${N},${S} z`}else if("mathEqual"===t){void 0===a&&(a=23520),void 0===o&&(o=11760),a*=tR,o*=tR;let t=36745*tR,n=a<0?0:a>t?t:a,s=u-2*n,l=r*n/u,c=r*(o<0?0:o>s?s:o)/h,f=73490*tR*e/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"===t){void 0===a&&(a=23520);let t=r*((a*=tR)<0?0:a>u?u:a)/h,n=73490*tR*e/h,o=d-t,s=d+t,l=p-n,c=p+n;i=`M ${l},${o} L ${c},${o} L ${c},${s} L ${l},${s} z`}else if("mathMultiply"===t){void 0===a&&(a=23520),a*=tR;let t=51965*tR,n=Math.min(e,r)*(a<0?0:a>t?t:a)/u,o=Math.atan(r/e),s=Math.sin(o),l=Math.cos(o),c=Math.tan(o),h=Math.sqrt(e*e+r*r),f=h-h*t/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=e-b,w=e-v,O=r-R,N=r-x,L=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},${N} L ${p},${L} L ${b},${N} L ${v},${O} L ${v+(d-R)/c},${d} z`}else if("mathPlus"===t){void 0===a&&(a=23520),a*=tR;let t=73490*tR,n=Math.min(e,r),o=a<0?0:a>t?t:a,s=e*t/h,l=r*t/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*tR;a&&(o=parseInt(a.substring(4))*tR),("flowChartMagneticDisk"===t||"flowChartMagneticDrum"===t)&&(o=5e4*tR);let s=Math.min(e,r),l=5e4*tR*r/s,c=s*(o<0?0:o>l?l:o)/(2e5*tR),u=r-c,h=e/2,p=`${t2(h,c,h,c,0,180,!1)} ${t2(h,c,h,c,180,360,!1).replace("M","L")} L ${e},${u} ${t2(h,u,h,c,0,180,!1).replace("M","L")} L 0,${c}`;"flowChartMagneticDrum"===t&&(p=p.replace(/([MLQC])\s*([-\d.e]+)\s*([-\d.e]+)/gi,(t,n,i,a)=>{let o=e/2-(parseFloat(a)-r/2),s=r/2+(parseFloat(i)-e/2);return`${n}${o} ${s}`}).replace(/([MLQC])\s*([-\d.e]+)\s*([-\d.e]+)\s*([-\d.e]+)\s*([-\d.e]+)/gi,(t,n,i,a,o,s)=>{let l=e/2-(parseFloat(a)-r/2),c=r/2+(parseFloat(i)-e/2),u=e/2-(parseFloat(s)-r/2),h=r/2+(parseFloat(o)-e/2);return`${n}${l} ${c} ${u} ${h}`})),i=p}break;case"swooshArrow":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=25e3*tR,o=16667*tR;if(t)for(let e of t){let t=E(e,["attrs","name"]);"adj1"===t?a=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj2"===t&&(o=parseInt(E(e,["attrs","fmla"]).substring(4))*tR)}let s=+tR,l=75e3*tR,c=1e5*tR,u=Math.min(e,r),h=u/8,p=r/6,d=7e4*tR*e/u,f=r*(a<s?s:a>l?l:a)/c,m=e-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=e/6,S=e/4;i=`M 0,${r} Q ${M},${p+p} ${m},${h} L ${m-A},0 L ${e},${b/2-x} L ${R+A},${b} L ${R},${v} Q ${S},${v+p/2} 0,${r} z`}break;case"circularArrow":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=12500*tR,o=19.03865*Math.PI/180,s=340.96135*Math.PI/180,l=180*Math.PI/180,c=12500*tR;if(t)for(let e of t){let t=E(e,["attrs","name"]);"adj1"===t?a=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj2"===t?o=parseInt(E(e,["attrs","fmla"]).substring(4))/6e4*Math.PI/180:"adj3"===t?s=parseInt(E(e,["attrs","fmla"]).substring(4))/6e4*Math.PI/180:"adj4"===t?l=parseInt(E(e,["attrs","fmla"]).substring(4))/6e4*Math.PI/180:"adj5"===t&&(c=parseInt(E(e,["attrs","fmla"]).substring(4))*tR)}let u=e/2,h=r/2,p=e/2,d=r/2,f=Math.min(e,r),m=25e3*tR,g=1e5*tR,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,N=p+O-w,L=d+O-w,_=N-S,T=L-S,P=_+O,I=T+O,C=P*Math.sin(x),k=I*Math.cos(x),F=P*Math.cos(Math.atan2(C,k)),X=I*Math.sin(Math.atan2(C,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,Z=Math.abs(Q-Math.PI>0?Q-v:Q),B=x+(o<0?0:o>Z?Z:o),K=P*Math.sin(B),$=I*Math.cos(B),G=P*Math.cos(Math.atan2(K,$)),H=I*Math.sin(Math.atan2(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),tt=j-u,te=q-h,tr=z-u,tn=J-h,ti=Math.min(N,L),ta=tt*ti/N,to=te*ti/L,ts=tr*ti/N,tl=tn*ti/L,tc=ts-ta,tu=tl-to,th=Math.sqrt(tc*tc+tu*tu),tp=ta*tl-ts*to,td=Math.sqrt(Math.max(0,ti*ti*th*th-tp*tp)),tf=-1*tu>0?-1:1,tm=(tp*tu+tf*tc*td)/(th*th),tg=(tp*tu-tf*tc*td)/(th*th),tA=(-tp*tc+Math.abs(tu)*td)/(th*th),ty=(-tp*tc-Math.abs(tu)*td)/(th*th),tv=Math.sqrt((ts-tg)**2+(tl-ty)**2)-Math.sqrt((ts-tm)**2+(tl-tA)**2),tb=u+(tv>0?tm:tg)*N/ti,tx=h+(tv>0?tA:ty)*L/ti,tM=tt*V/_,tS=te*V/T,tw=tr*V/_,tO=tn*V/T,tN=tw-tM,tL=tO-tS,t_=Math.sqrt(tN*tN+tL*tL),tT=tM*tO-tw*tS,tP=Math.sqrt(Math.max(0,V*V*t_*t_-tT*tT)),tI=(tT*tL+tf*tN*tP)/(t_*t_),tC=(tT*tL-tf*tN*tP)/(t_*t_),tk=(-tT*tN+Math.abs(tL)*tP)/(t_*t_),tF=(-tT*tN-Math.abs(tL)*tP)/(t_*t_),tX=Math.sqrt((tM-tC)**2+(tS-tF)**2)-Math.sqrt((tM-tI)**2+(tS-tk)**2),tU=tX>0?tI:tC,tW=tX>0?tk:tF,tV=u+tU*_/V,tE=h+tW*T/V,tY=Math.atan2(tW*T/V,tU*_/V),tD=tY>0?tY:tY+v,tQ=M-tD,tZ=Math.sqrt((tb-tV)**2+(tx-tE)**2)/2-w,tB=Math.atan2(tx-h,tb-u),tK=(tB>0?tB:tB+v)-M,t$=180*M/Math.PI,tG=t$+180*(tK>0?tK:tK+v)/Math.PI,tH=180*tD/Math.PI,tz=tH+180*(tQ>0?tQ-v:tQ)/Math.PI;i=`${t2(e/2,r/2,N,L,t$,tG,!1)} L ${tZ>0?tb:z},${tZ>0?tx:J} L ${u+G},${h+H} L ${tZ>0?tV:j},${tZ>0?tE:q} L ${tV},${tE} ${t2(e/2,r/2,_,T,tH,tz,!1).replace("M","L")} z`}break;case"leftCircularArrow":{let t=E(n,["p:spPr","a:prstGeom","a:avLst","a:gd"]),a=12500*tR,o=-19.03865*Math.PI/180,s=19.03865*Math.PI/180,l=180*Math.PI/180,c=12500*tR;if(t)for(let e of t){let t=E(e,["attrs","name"]);"adj1"===t?a=parseInt(E(e,["attrs","fmla"]).substring(4))*tR:"adj2"===t?o=parseInt(E(e,["attrs","fmla"]).substring(4))/6e4*Math.PI/180:"adj3"===t?s=parseInt(E(e,["attrs","fmla"]).substring(4))/6e4*Math.PI/180:"adj4"===t?l=parseInt(E(e,["attrs","fmla"]).substring(4))/6e4*Math.PI/180:"adj5"===t&&(c=parseInt(E(e,["attrs","fmla"]).substring(4))*tR)}let u=e/2,h=r/2,p=e/2,d=r/2,f=Math.min(e,r),m=25e3*tR,g=1e5*tR,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,N=p+O-w,L=d+O-w,_=N-S,T=L-S,P=_+O,I=T+O,C=P*Math.cos(x),k=I*Math.sin(x),F=u+C,X=h+k,U=Math.min(_,T),W=(1+Math.sqrt(1-(C*C-U*U)*(k*k-U*U)/(C*C*k*k)))/((C*C-U*U)/C/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),Z=P*Math.cos(Q),B=I*Math.sin(Q),K=N*Math.cos(M),$=L*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),tt=j-u,te=q-h,tr=z-u,tn=J-h,ti=Math.min(N,L),ta=tt*ti/N,to=te*ti/L,ts=tr*ti/N,tl=tn*ti/L,tc=ts-ta,tu=tl-to,th=Math.sqrt(tc*tc+tu*tu),tp=ta*tl-ts*to,td=Math.sqrt(Math.max(0,ti*ti*th*th-tp*tp)),tf=-1*tu>0?-1:1,tm=(tp*tu+tf*tc*td)/(th*th),tg=(tp*tu-tf*tc*td)/(th*th),tA=(-tp*tc+Math.abs(tu)*td)/(th*th),ty=(-tp*tc-Math.abs(tu)*td)/(th*th),tv=Math.sqrt((ts-tg)**2+(tl-ty)**2)-Math.sqrt((ts-tm)**2+(tl-tA)**2),tb=u+(tv>0?tm:tg)*N/ti,tx=h+(tv>0?tA:ty)*L/ti,tM=tt*U/_,tS=te*U/T,tw=tr*U/_,tO=tn*U/T,tN=tw-tM,tL=tO-tS,t_=Math.sqrt(tN*tN+tL*tL),tT=tM*tO-tw*tS,tP=Math.sqrt(Math.max(0,U*U*t_*t_-tT*tT)),tI=(tT*tL+tf*tN*tP)/(t_*t_),tC=(tT*tL-tf*tN*tP)/(t_*t_),tk=(-tT*tN+Math.abs(tL)*tP)/(t_*t_),tF=(-tT*tN-Math.abs(tL)*tP)/(t_*t_),tX=Math.sqrt((tM-tC)**2+(tS-tF)**2)-Math.sqrt((tM-tI)**2+(tS-tk)**2),tU=tX>0?tI:tC,tW=tX>0?tk:tF,tV=u+tU*_/U,tE=h+tW*T/U,tY=Math.atan2(tW*T/U,tU*_/U),tD=tY>0?tY:tY+v,tQ=M-tD,tZ=tQ>0?tQ:tQ+v,tB=Math.sqrt((tb-tV)**2+(tx-tE)**2)/2-w,tK=Math.atan2(tx-h,tb-u),t$=(tK>0?tK:tK+v)-M,tG=180*(M+(t$>0?t$-v:t$))/Math.PI,tH=180*M/Math.PI,tz=180*(tD+tZ)/Math.PI,tJ=tz+-(180*tZ)/Math.PI;i=`M ${u+K},${h+$} L ${u+G},${h+H} ${t2(e/2,r/2,_,T,tz,tJ,!1).replace("M","L")} L ${tB>0?tV:j},${tB>0?tE:q} L ${u+Z},${h+B} L ${tB>0?tb:z},${tB>0?tx:J} L ${tb},${tx} ${t2(e/2,r/2,N,L,tG,tH,!1).replace("M","L")} z`}}return i}function t5(t,e){if(!t||!e)return null;let r=E(t,[e,"p:transition"]);return r||(r=E(t,[e,"mc:AlternateContent","mc:Choice","p:transition"]))?r:r=E(t,[e,"mc:AlternateContent","mc:Fallback","p:transition"])}let t4=new Set(["entr","exit","emph","path","verb","mediacall"]),t6={clickEffect:"onClick",withEffect:"withPrevious",afterEffect:"afterPrevious",clickPar:"onClick",withGroup:"withPrevious",afterGroup:"afterPrevious",interactiveSeq:"onClick"};function t8(t){return null==t?[]:Array.isArray(t)?t:[t]}function t9(t){if(null==t||""===t||"indefinite"===t)return null;let e=parseInt(t,10);return Number.isFinite(e)?e:null}async function t7(t,e,r=!1){if(!e)return null;let n=`${r?"drawing:":"xml:"}${e}`;if(t.diagramFileCache[n])return t.diagramFileCache[n];let i=await X(t.zip,e);return i&&r&&(i=JSON.parse(JSON.stringify(i).replace(/dsp:/g,"p:"))),t.diagramFileCache[n]=i,i}async function et(t,e){let r=E(t,["a:graphic","a:graphicData","dgm:relIds","attrs"])||{},n={data:null,layout:null,quickStyle:null,colors:null,drawing:null},i={},a={},o=E(e.slideResObj,[r["r:dm"],"target"]),s=E(e.slideResObj,[r["r:lo"],"target"]),l=E(e.slideResObj,[r["r:qs"],"target"]),c=E(e.slideResObj,[r["r:cs"],"target"]);o&&(n.data=await t7(e,o)),s&&(n.layout=await t7(e,s)),l&&(n.quickStyle=await t7(e,l)),c&&(n.colors=await t7(e,c));let u=n.data?function(t){let e=E(t,["dgm:dataModel","dgm:extLst","a:ext"]);if(!e)return"";for(let t of(Array.isArray(e)||(e=[e]),e)){let e=E(t,["dsp:dataModelExt","attrs","relId"]);if(e)return e}return""}(n.data):"",h=E(e.slideResObj,[u,"target"]);if(h){n.drawing=i=await t7(e,h,!0)||{};let t=h.split("/").pop(),r=h.replace(t,"_rels/"+t)+".rels",o=await X(e.zip,r);if(o){let e=o.Relationships.Relationship;if(e&&e.constructor!==Array&&(e=[e]),e)for(let r of e){let e=r.attrs.Target;e=0===(e=e.replace(/\\/g,"/")).indexOf("/ppt/")?e.substr(1):-1!==e.indexOf("../")?e.replace("../","ppt/"):h.replace(t,"")+e,a[r.attrs.Id]={type:r.attrs.Type.replace("http://schemas.openxmlformats.org/officeDocument/2006/relationships/",""),target:e}}}}return{...e,digramFileContent:i,diagramResObj:a,diagramContent:n}}let ee=["http://schemas.openxmlformats.org/officeDocument/2006/relationships/","http://schemas.microsoft.com/office/2007/relationships/"];function er(t){if(!t)return"";for(let e of ee)if(0===t.indexOf(e))return t.replace(e,"");return t}async function en(t,e={}){let r,i=[],a={},o={},s={},l={},c={...e,imageMode:e.imageMode||"base64",videoMode:e.videoMode||"none",audioMode:e.audioMode||"none"};if(t instanceof ArrayBuffer?r=new Uint8Array(t):"u">typeof File&&t instanceof File?r=new Uint8Array(await t.arrayBuffer()):"u">typeof C&&C.isBuffer(t)&&(r=new Uint8Array(t)),r&&208===r[0]&&207===r[1]&&17===r[2]&&224===r[3])throw Error("ENCRYPTED_FILE");let u=await n.loadAsync(t),h=await eu(u),{width:p,height:d,defaultTextStyle:f}=await ep(u),{themeContent:m,themeColors:g}=await ed(u),A=await eh(u);for(let t of h.slides){let e=await em(u,t,m,f,a,o,s,c,l);e&&i.push(e)}return{slides:i,usedFonts:A,themeColors:g,size:{width:p,height:d}}}function ei(t){return t?t.constructor===Array?t:[t]:[]}function ea(t,e){return(/(\d+)\.xml/.exec(t)?.[1]||0)-(/(\d+)\.xml/.exec(e)?.[1]||0)}function eo(t){return String(t||"").replace(/\\/g,"/").replace(/^\//,"")}function es(t,e){let r=String(e||"").replace(/\\/g,"/");if(!r)return"";if(r.startsWith("/"))return eo(r);let n=eo(t),i=n.lastIndexOf("/"),a=-1===i?"":n.slice(0,i+1),o=[];for(let t of`${a}${r}`.split("/"))t&&"."!==t&&(".."===t?o.pop():o.push(t));return o.join("/")}async function el(t){for(let e of ei(E(await X(t,"_rels/.rels"),["Relationships","Relationship"]))){let t=E(e,["attrs","Type"]),r=E(e,["attrs","Target"]),n=E(e,["attrs","TargetMode"]);if((!n||"external"!==String(n).toLowerCase())&&"officeDocument"===er(t)&&r){let t=es("",r);if(t)return t}}return"ppt/presentation.xml"}async function ec(t){let e,r,n,i,a=await el(t),o=ei(E(await X(t,(n=-1===(r=(e=eo(a)).lastIndexOf("/"))?"":e.slice(0,r+1),i=-1===r?e:e.slice(r+1),`${n}_rels/${i}.rels`)),["Relationships","Relationship"])),s={},l=[];for(let t of o){let e=E(t,["attrs","Id"]),r=E(t,["attrs","Type"]),n=E(t,["attrs","Target"]),i=E(t,["attrs","TargetMode"]);if(!e||!n||i&&"external"===String(i).toLowerCase())continue;let o=es(a,n);o&&(s[e]=o,"slide"===er(r)&&l.push(o))}let c=ei(E(await X(t,a),["p:presentation","p:sldIdLst","p:sldId"])),u=[];for(let t of c){var h;let e=(h=t?.attrs)&&(h["r:id"]||h.rId)||"";e&&s[e]&&u.push(s[e])}return u.length?u:l}async function eu(t){let e=ei(E(await X(t,"[Content_Types].xml"),["Types","Override"])),r=[],n=[];for(let t of e){let e=t?.attrs?.ContentType,i=t?.attrs?.PartName;if(!e||!i)continue;let a=String(i).replace(/^\//,"");switch(e){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(ea);let i=await ec(t);return i.length||(i=r.sort(ea)),{slides:i,slideLayouts:n}}async function eh(t){let e=E(await X(t,"ppt/presentation.xml"),["p:presentation","p:embeddedFontLst","p:embeddedFont"]),r=[];if(!e)return r;let n=e.constructor===Array?e:[e],i=await X(t,"ppt/_rels/presentation.xml.rels"),a={};if(i){let t=E(i,["Relationships","Relationship"]);if(t)for(let e of(t.constructor!==Array&&(t=[t]),t)){let t=E(e,["attrs","Id"]),r=E(e,["attrs","Target"]);t&&r&&(a[t]=r)}}let o=["p:regular","p:bold","p:italic","p:boldItalic"];for(let e of n){let n=E(e,["p:font","attrs","typeface"]);if(!n)continue;let i="";for(let r of o){let n=e[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 tj(t,l))break}r.push({name:n,fontFamily:function(t){if(!t)return"";if(tq[t])return tq[t];let e=t.toLowerCase();for(let[t,r]of Object.entries(tq))if(t.toLowerCase()===e)return r;for(let[r,n]of Object.entries(tq))if(e.startsWith(r.toLowerCase()))return`${t}, ${n}`;return function(t){let e=t.toLowerCase();return e.includes("mono")||e.includes("code")||e.includes("console")||e.includes("courier")||e.includes("terminal")||e.includes("fixed")?`${t}, monospace`:e.includes("serif")||e.includes("roman")||e.includes("mincho")||e.includes("song")||e.includes("sung")||e.includes("ming")||e.includes("times")||e.includes("georgia")?`${t}, serif`:e.includes("script")||e.includes("cursive")||e.includes("hand")||e.includes("writing")||e.includes("kai")||e.includes("shu")?`${t}, cursive`:`${t}, sans-serif`}(t)}(n),blob:i})}return r}async function ep(t){let e=await X(t,"ppt/presentation.xml"),r=e["p:presentation"]["p:sldSz"].attrs,n=e["p:presentation"]["p:defaultTextStyle"];return{width:parseInt(r.cx)*tR,height:parseInt(r.cy)*tR,defaultTextStyle:n}}async function ed(t){let e,r=null,n=(await X(t,"ppt/_rels/presentation.xml.rels")).Relationships.Relationship;if(n.constructor===Array){for(let t of n)if("http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme"===t.attrs.Type){e=t.attrs.Target;break}}else"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme"===n.attrs.Type&&(e=n.attrs.Target);if(!e){let r=await X(t,"ppt/slideMasters/_rels/slideMaster1.xml.rels");if(r){let t=r.Relationships.Relationship;if(t.constructor===Array){for(let r of t)if("http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme"===r.attrs.Type){e=r.attrs.Target;break}}else"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme"===t.attrs.Type&&(e=t.attrs.Target)}}if(e){(e=e.replace(/\\/g,"/")).startsWith("../")&&(e=e.substring(3));let n=0===e.indexOf("/ppt/")?e.substr(1):"ppt/"+e;r=await X(t,n)}let i=[];if(r){let t=E(r,["a:theme","a:themeElements","a:clrScheme"]);if(t)for(let e=1;e<=6&&void 0!==t[`a:accent${e}`];e++){let r=E(t,[`a:accent${e}`,"a:srgbClr","attrs","val"]);r&&i.push("#"+r)}}return{themeContent:r,themeColors:i}}async function ef(t,e,r){if(!e)return null;if(Object.prototype.hasOwnProperty.call(r,e))return r[e];let n=await X(t,e);return r[e]=n,n}async function em(t,e,r,n,i,a,o,s,l){let c,u=e.replace("slides/slide","slides/_rels/slide")+".rels",h=await X(t,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 t of p){let e=er(t.attrs.Type),r=t.attrs.Target;"External"!==t.attrs.TargetMode&&(r=0===(r=r.replace(/\\/g,"/")).indexOf("/ppt/")?r.substr(1):-1!==r.indexOf("../")?r.replace("../","ppt/"):"ppt/slides/"+r),"slideLayout"===e?f=r:"notesSlide"===e&&(d=r),A[t.attrs.Id]={type:e,target:r}}let b=function(t){let e="",r=E(t,["p:notes","p:cSld","p:spTree","p:sp"]);if(!r)return"";for(let t of(r.constructor!==Array&&(r=[r]),r)){if("body"!==E(t,["p:nvSpPr","p:nvPr","p:ph","attrs","type"]))continue;let r=E(t,["p:txBody"]);if(!r)continue;let n=r["a:p"];if(!n)continue;n.constructor!==Array&&(n=[n]);let i=[];for(let t of n){let r=t["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;)e+=`</${i.pop()}>`;void 0===i[l]?(e+=`<${o}>`,i[l]=o):i[l]!==o&&(e+=`</${i[l]}>`,e+=`<${o}>`,i[l]=o),e+=`<li><p style="text-align:${a};">`}else{for(;i.length>0;)e+=`</${i.pop()}>`;e+=`<p style="text-align:${a};">`}let c=t["a:r"];if(c)for(let t of(c.constructor!==Array&&(c=[c]),c)){let r=t$(E(t,["a:t"]));r&&"string"==typeof r&&(e+=r)}o?e+="</p></li>":e+="</p>"}for(;i.length>0;)e+=`</${i.pop()}>`}return e}(await X(t,d)),x=await ef(t,f,l),M=ey(x),S=f.replace("slideLayouts/slideLayout","slideLayouts/_rels/slideLayout")+".rels",w=await ef(t,S,l);if(w&&(p=w.Relationships.Relationship))for(let t of(p.constructor!==Array&&(p=[p]),p)){let e=er(t.attrs.Type),r=t.attrs.Target;r=0===(r=r.replace(/\\/g,"/")).indexOf("/ppt/")?r.substr(1):-1!==r.indexOf("../")?r.replace("../","ppt/"):"ppt/slideLayouts/"+r,"slideMaster"===e?m=r:y[t.attrs.Id]={type:e,target:r}}let O=await ef(t,m,l),N=E(O,["p:sldMaster","p:txStyles"]),L=ey(O),_=m.replace("slideMasters/slideMaster","slideMasters/_rels/slideMaster")+".rels",T=await ef(t,_,l);if(T&&(p=T.Relationships.Relationship))for(let t of(p.constructor!==Array&&(p=[p]),p)){let e=er(t.attrs.Type),r=t.attrs.Target;r=0===(r=r.replace(/\\/g,"/")).indexOf("/ppt/")?r.substr(1):-1!==r.indexOf("../")?r.replace("../","ppt/"):"ppt/slideMasters/"+r,"theme"===e?g=r:v[t.attrs.Id]={type:e,target:r}}let P=r;if(g){P=await ef(t,g,l)||P;let e=g.split("/").pop(),r=g.replace(e,"_rels/"+e)+".rels",n=await X(t,r);if(n&&(p=n.Relationships.Relationship))for(let t of(p.constructor!==Array&&(p=[p]),p)){let e=t.attrs.Target;e=0===(e=e.replace(/\\/g,"/")).indexOf("/ppt/")?e.substr(1):e.replace("../","ppt/"),R[t.attrs.Id]={type:er(t.attrs.Type),target:e}}}let I=await ef(t,"ppt/tableStyles.xml",l),C=await X(t,e);if(!C)return null;let k=C["p:sld"]["p:cSld"]["p:spTree"],F={zip:t,loadedImages:i,loadedVideos:a,loadedAudios:o,options:s,slideLayoutContent:x,slideLayoutTables:M,slideMasterContent:O,slideMasterTables:L,slideContent:C,tableStyles:I,slideResObj:A,slideMasterTextStyles:N,layoutResObj:y,masterResObj:v,themeContent:P,themeResObj:R,diagramFileCache:{},defaultTextStyle:n},U=await eA(F),W=await tu(F),V=[];for(let t in k)for(let e of(k[t].constructor!==Array&&(k[t]=[k[t]]),k[t])){let r=await ev(t,e,F,"slide");r&&V.push(r)}let Y=t5(C,"p:sld");Y||(Y=t5(x,"p:sldLayout")),Y||(Y=t5(O,"p:sldMaster"));let D=function(t){if(!t)return null;let e={type:"none",duration:1e3,direction:null},r=t.attrs||{},n=!1,i=/^p\d{2}:dur$/;for(let t in r)if(i.test(t)&&!isNaN(parseInt(r[t],10))){e.duration=parseInt(r[t],10),n=!0;break}if(!n&&r.spd)switch(r.spd){case"slow":default:e.duration=1e3;break;case"med":e.duration=800;break;case"fast":e.duration=500}"0"===r.advClick&&r.advTm&&(e.autoNextAfter=parseInt(r.advTm,10));let a=/^(p|p\d{2}):/;for(let r in t)if("attrs"!==r&&a.test(r)){let i=t[r];if(e.type=r.substring(r.indexOf(":")+1),i&&i.attrs){let t=i.attrs;!t.dur||isNaN(parseInt(t.dur,10))||n||(e.duration=parseInt(t.dur,10)),t.dir&&(e.direction=t.dir)}break}return e}(Y),{animations:Q,builds:Z}=(c=C?E(C,["p:sld","p:timing"])||E(C,["p:sld","mc:AlternateContent","mc:Choice","p:timing"])||E(C,["p:sld","mc:AlternateContent","mc:Fallback","p:timing"]):null)?{animations:function t(e,r="onClick",n=0,i=[]){if(!e||"object"!=typeof e)return i;let a=e.attrs||{},o=t6[a.nodeType]||r,s=function(t,e=0){let r=t9(t?.attrs?.delay);if(null!=r&&r>=0)return r;let n=t?.["p:stCondLst"];for(let t of t8(n?.["p:cond"]||n)){let e=t9(t?.attrs?.delay);if(null!=e&&e>=0)return e}return e}(e,n);if(a.presetClass&&t4.has(a.presetClass)){let t,r,n,l,c=[...new Set(function t(e,r=[]){if(!e||"object"!=typeof e)return r;let n=e.attrs?.spid;for(let i of(null!=n&&""!==n&&r.push(String(n)),Object.keys(e)))if("attrs"!==i&&"value"!==i)for(let n of t8(e[i]))t(n,r);return r}(e))],u=(t=null,(r=e=>{if(!e||"object"!=typeof e)return;let n=t9(e.attrs?.dur);for(let i of(null!=n&&n>=0&&(t=n),Object.keys(e)))if("attrs"!==i&&"value"!==i)for(let t of t8(e[i]))r(t)})(e),t),h=(n="",(l=t=>{if(t&&"object"==typeof t){for(let e of(t.attrs?.filter&&(n=t.attrs.filter),Object.keys(t)))if("attrs"!==e&&"value"!==e)for(let r of t8(t[e]))l(r)}})(e),n),p=t6[a.nodeType]||o;for(let t of c){let e={spid:t,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&&(e.filter=h),i.push(e)}return i}for(let r of Object.keys(e))if("attrs"!==r&&"value"!==r)for(let n of t8(e[r]))t(n,o,s,i);return i}(c),builds:function(t){let e=t?.["p:bldLst"];if(!e)return[];let r=[];for(let[t,n]of[["p:bldP","paragraph"],["p:bldDgm","diagram"],["p:bldGraphic","graphic"],["p:bldOleChart","oleChart"]])for(let i of t8(e[t])){let t=i?.attrs?.spid;if(null==t||""===t)continue;let e={spid:String(t),type:n};(i.attrs?.animBg==="1"||i.attrs?.animBg==="true")&&(e.animBg=!0),r.push(e)}return r}(c)}:{animations:[],builds:[]},B=E(C,["p:sld","attrs","showMasterSp"]);return{fill:W,elements:V,layoutElements:U,note:b,transition:D,hideBackground:"0"===B||"false"===B,animations:Q,builds:Z}}function eg(t,e){let r=E(t,["a:hlinkClick","attrs"]);if(!r)return null;let n=r["r:id"];if(!n)return null;let i=e.slideResObj[n];if(!i||"hyperlink"!==i.type)return null;let a=i.target;return a&&/^https?:\/\//.test(a)?a:null}async function eA(t){let e=[],r=t.slideLayoutContent,n=t.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 ev(r,i[r][n],t,"slideLayoutBg");a&&e.push(a)}}else if(!E(i[r],["p:nvSpPr","p:nvPr","p:ph"])){let n=await ev(r,i[r],t,"slideLayoutBg");n&&e.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 ev(r,a[r][n],t,"slideMasterBg");i&&e.push(i)}}else if(!E(a[r],["p:nvSpPr","p:nvPr","p:ph"])){let n=await ev(r,a[r],t,"slideMasterBg");n&&e.push(n)}}return e}function ey(t){if(!t)return{idTable:{},idxTable:{},typeTable:{}};let e=Object.keys(t),r=t[e[0]]?.["p:cSld"]?.["p:spTree"];if(!r)return{idTable:{},idxTable:{},typeTable:{}};let n={},i={},a={};for(let t in r){if("p:nvGrpSpPr"===t||"p:grpSpPr"===t)continue;let e=r[t];if(e.constructor===Array)for(let t of e){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)}else{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)}}return{idTable:n,idxTable:i,typeTable:a}}async function ev(t,e,r,n,i=[]){let a;switch(t){case"p:sp":a=await ex(e,r,n,i);break;case"p:cxnSp":a=await eM(e,r,n);break;case"p:pic":a=await ew(e,r,n);break;case"p:graphicFrame":a=await eO(e,r,n);break;case"p:grpSp":a=await eb(e,r,n,i);break;case"mc:AlternateContent":E(e,["mc:Fallback","p:grpSpPr","a:xfrm"])?a=await eb(E(e,["mc:Fallback"]),r,n,i):E(e,["mc:Choice"])&&(a=await eR(e,r,n))}if(a&&"object"==typeof a&&!a.id){let t=E(e,["p:nvSpPr","p:cNvPr","attrs","id"])||E(e,["p:nvPicPr","p:cNvPr","attrs","id"])||E(e,["p:nvCxnSpPr","p:cNvPr","attrs","id"])||E(e,["p:nvGrpSpPr","p:cNvPr","attrs","id"])||E(e,["p:nvGraphicFramePr","p:cNvPr","attrs","id"])||E(e,["mc:Choice","p:sp","p:nvSpPr","p:cNvPr","attrs","id"])||E(e,["mc:Fallback","p:sp","p:nvSpPr","p:cNvPr","attrs","id"])||E(e,["mc:Fallback","p:nvGrpSpPr","p:cNvPr","attrs","id"]);a.id=t||""}return a}async function eR(t,e,r){let n=E(t,["mc:Choice"]),i=E(t,["mc:Fallback"]),a=t.attrs.order,o=E(n,["p:sp","p:spPr","a:xfrm"]),{top:s,left:l}=tT(o,void 0,void 0),{width:c,height:u}=tP(o,void 0,void 0),h=function t(e){let r=[];return"object"!=typeof e||(e["m:oMath"]&&(r=r.concat(e["m:oMath"])),Object.values(e).forEach(e=>{(Array.isArray(e)||"object"==typeof e)&&(r=r.concat(t(e)))})),r}(n)[0];if(!h)return null;let p=tI(h),d=E(i,["p:sp","p:spPr","a:blipFill"]),f=await ti(r,d,e),m="";if(E(n,["p:sp","p:txBody","a:p","a:r"])){let t=E(n,["p:sp"]);m=tG(t["p:txBody"],t,void 0,void 0,void 0,e)}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 eb(t,e,r,n=[]){let i=t.attrs.order,a=E(t,["p:grpSpPr","a:xfrm"]);if(!a)return null;let o=parseInt(a["a:off"].attrs.x)*tR,s=parseInt(a["a:off"].attrs.y)*tR,l=parseInt(a["a:chOff"].attrs.x)*tR,c=parseInt(a["a:chOff"].attrs.y)*tR,u=parseInt(a["a:ext"].attrs.cx)*tR,h=parseInt(a["a:ext"].attrs.cy)*tR,p=parseInt(a["a:chExt"].attrs.cx)*tR,d=parseInt(a["a:chExt"].attrs.cy)*tR,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,t],R=[];for(let n in t)if(t[n].constructor===Array)for(let i of t[n]){let t=await ev(n,i,e,r,v);t&&R.push(t)}else{let i=await ev(n,t[n],e,r,v);i&&R.push(i)}let b=(t,e=0,r=0)=>{let n=((t.rotate||0)%360+360)%360,i=1e-6>Math.abs(A-y),a=90===n||270===n,o=t.left+t.width/2,s=t.top+t.height/2,l=t.width*(a&&!i?y:A),c=t.height*(a&&!i?A:y);return{...t,left:Z((o-e)*A-l/2),top:Z((s-r)*y-c/2),width:Z(l),height:Z(c)}},x=R.map(t=>({...b(t,l,c),..."group"===t.type&&t.elements?{elements:function t(e,r=0){return r>10?e:e.map(e=>{let n=b(e);return"group"===e.type&&e.elements&&(n.elements=t(e.elements,r+1)),n})}(t.elements)}:{}}));return{type:"group",top:Z(s),left:Z(o),width:Z(u),height:Z(h),rotate:g,order:i,isFlipV:f,isFlipH:m,elements:x}}async function ex(t,e,r,n=[]){let i,a,o=E(t,["p:nvSpPr","p:cNvPr"]),s=E(o,["attrs","name"]),l=E(t,["p:nvSpPr","p:nvPr","p:ph","attrs","idx"]),c=E(t,["p:nvSpPr","p:nvPr","p:ph","attrs","type"]),u=E(t,["attrs","order"]);c?l?(i=e.slideLayoutTables.idxTable[l],a=e.slideMasterTables.idxTable[l],i||(i=e.slideLayoutTables.typeTable[c]),a||(a=e.slideMasterTables.typeTable[c])):(i=e.slideLayoutTables.typeTable[c],a=e.slideMasterTables.typeTable[c]):l&&(i=e.slideLayoutTables.idxTable[l],a=e.slideMasterTables.idxTable[l]),!c&&U(E(t,["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=e.slideMasterTables.typeTable.title),c||(c="diagramBg"===r?"diagram":"obj");let h=eg(o,e);return await eS(t,i,a,s,c,u,e,r,h,n)}async function eM(t,e,r){let n=E(t,["p:nvCxnSpPr","p:cNvPr"]),i=E(n,["attrs","name"]),a=void 0===t["p:nvCxnSpPr"]["p:nvPr"]["p:ph"]?void 0:t["p:nvCxnSpPr"]["p:nvPr"]["p:ph"].attrs.type,o=t.attrs.order,s=eg(n,e);return await eS(t,void 0,void 0,i,a,o,e,r,s)}async function eS(t,e,r,n,i,a,o,s,l,c=[]){let u,h,p,d=["p:spPr","a:xfrm"],f=E(t,d),m=E(e,d),g=E(r,d),A=E(t,["p:spPr","a:prstGeom","attrs","prst"]),y=E(t,["p:spPr","a:custGeom"]),v={};if(A){let e=E(t,["p:spPr","a:prstGeom","a:avLst","a:gd"]);if(e)for(let t of Array.isArray(e)?e:[e]){let e=E(t,["attrs","name"]),r=E(t,["attrs","fmla"]);e&&r&&r.startsWith("val ")&&(v[e]=parseInt(r.substring(4))/5e4)}}let{top:R,left:b}=tT(f,m,g),{width:x,height:M}=tP(f,m,g),S={x:0,y:0,width:x,height:M},w=U(E(f,["attrs","flipV"])),O=U(E(f,["attrs","flipH"])),N=Y(E(f,["attrs","rot"])),L=E(t,["p:txXfrm"]);if(L){let t=E(L,["attrs","rot"]);t&&(u=Y(t)+90)}else u=N;let _="";t["p:txBody"]&&(_=tG(t["p:txBody"],t,e,r,i,o));let{borderColor:T,borderWidth:P,borderType:I,strokeDasharray:C,headEnd:k,tailEnd:F}=tg(t,i,o),X=await tp(t,o,s,{groupHierarchy:c,slideLayoutSpNode:e,slideMasterSpNode:r}),W=E(t,["p:spPr","a:effectLst","a:outerShdw"]);W&&(h=tF(W,o));let V=((p=E(t,["p:txBody","a:bodyPr","attrs","anchor"]))||!(p=E(e,["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(t,e,r){for(let n of[t,e,r]){let t=E(n,["p:txBody","a:bodyPr","attrs","vert"]);if(t)return t}return"horz"}(t,e,r),Q="none"!==E(t,["p:txBody","a:bodyPr","attrs","wrap"]),Z=function(t,e,r){function n(t){if(!t)return null;if(t["a:noAutofit"])return{result:null};if(t["a:spAutoFit"])return{result:{type:"shape",wrapText:"none"!==E(t,["attrs","wrap"])}};if(t["a:normAutofit"]){let e=E(t["a:normAutofit"],["attrs","fontScale"]);return e?{result:{type:"text",fontScale:parseInt(e)/1e3}}:{result:{type:"text"}}}return null}let i=n(E(t,["p:txBody","a:bodyPr"]));if(i)return i.result;let a=n(E(e,["p:txBody","a:bodyPr"]));if(a)return a.result;let o=n(E(r,["p:txBody","a:bodyPr"]));return o?o.result:null}(t,e,r),B=function(t,e,r){let n=E(t,["p:txBody","a:bodyPr"]),i=E(e,["p:txBody","a:bodyPr"]),a=E(r,["p:txBody","a:bodyPr"]);if(!n&&!i&&!a)return null;let o=tL(t,e,r,"lIns");(null==o||""===o)&&(o=91440);let s=tL(t,e,r,"tIns");(null==s||""===s)&&(s=45720);let l=tL(t,e,r,"rIns");(null==l||""===l)&&(l=91440);let c=tL(t,e,r,"bIns");(null==c||""===c)&&(c=45720);let u=t_(o);null===u&&(u=0);let h=t_(s);null===h&&(h=0);let p=t_(l);null===p&&(p=0);let d=t_(c);return null===d&&(d=0),{l:u,t:h,r:p,b:d}}(t,e,r),K={left:b,top:R,width:x,height:M,borderColor:T,borderWidth:P,borderType:I,borderStrokeDasharray:C,fill:X,content:_,isFlipV:w,isFlipH:O,rotate:N,vAlign:V,wrap:Q,name:n,order:a};h&&(K.shadow=h),Z&&(K.autoFit=Z),l&&(K.link=l),B&&(K.textInset=B),k&&(K.headEnd=k),F&&(K.tailEnd=F);let $=K.content&&function(t){if("u"<typeof DOMParser)return""!==t.replace(/<[^>]+>/g,"").replace(/\s+/g," ").trim();let e=new DOMParser().parseFromString(t,"text/html");return""!==(e.body.textContent||e.body.innerText).trim()}(K.content);if(y&&"diagram"!==i){let t=tz(y,x,M);$||(K.content="");let e={...K,type:"shape",isVertical:D,shapType:"custom",path:t,pathViewBox:S};return function(t){let e=E(t,["a:pathLst","a:path"]);if(!e)return!1;let r=Array.isArray(e)?e:[e];return 1===r.length&&"none"===E(r[0],["attrs","fill"])}(y)&&(e.strokeOnly=!0),e}let G="";A&&(G=t3(A,x,M,t));let H=["arc","leftBrace","rightBrace","bracePair","leftBracket","rightBracket","bracketPair"].includes(A);if(A&&("obj"===i||!i||"rect"!==A)){$||(K.content="");let t={...K,type:"shape",isVertical:D,shapType:A,path:G,pathViewBox:S,keypoints:v};return H&&(t.strokeOnly=!0),t}if(A&&!$&&(X||P)){let t={...K,type:"shape",isVertical:D,content:"",shapType:A,path:G,pathViewBox:S,keypoints:v};return H&&(t.strokeOnly=!0),t}return{...K,type:"text",isVertical:D,rotate:u}}async function ew(t,e,r){let n,i,a,o,s,l;n="slideMasterBg"===r?e.masterResObj:"slideLayoutBg"===r?e.layoutResObj:e.slideResObj;let c=eg(E(t,["p:nvPicPr","p:cNvPr"]),e),u=t.attrs.order,h=t["p:blipFill"]["a:blip"].attrs["r:embed"];if(!h||!n[h])return null;let p=n[h].target,d=t["p:spPr"]["a:xfrm"];if(!d){let r=E(t,["p:nvPicPr","p:nvPr","p:ph","attrs","idx"]);r&&(d=E(e.slideLayoutTables,["idxTable",r,"p:spPr","a:xfrm"]))}let{top:f,left:m}=tT(d,void 0,void 0),{width:g,height:A}=tP(d,void 0,void 0),y=await te(p,e),v=U(E(d,["attrs","flipV"])),R=U(E(d,["attrs","flipH"])),b=0,x=E(t,["p:spPr","a:xfrm","attrs","rot"]);x&&(b=Y(x));let M=E(t,["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 tr(i,e):{ref:i,blob:""},w&&(S={ref:i,blob:""})}let N=E(t,["p:nvPicPr","p:nvPr","a:audioFile"]),L={ref:"",blob:""};if(N&&(L="mp3"===(s=W(o=n[N.attrs["r:link"]].target).toLowerCase())||"wav"===s||"ogg"===s?await tn(o,e):{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(N)return{type:"audio",top:f,left:m,width:g,height:A,rotate:b,ref:L.ref,blob:L.blob,order:u};let _=E(t,["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(t,["p:spPr","a:prstGeom","attrs","prst"]),P=E(t,["p:spPr","a:custGeom"]),{borderColor:I,borderWidth:C,borderType:k,strokeDasharray:F}=tg(t,void 0,e),X=function(t){if(!t)return null;let e=t["a:blip"];if(!e)return null;let r={},n=e["a:extLst"];if(n&&n["a:ext"])for(let t of Array.isArray(n["a:ext"])?n["a:ext"]:[n["a:ext"]]){if(!t["a14:imgProps"]||!t["a14:imgProps"]["a14:imgLayer"])continue;let e=t["a14:imgProps"]["a14:imgLayer"]["a14:imgEffect"];if(e)for(let t of Array.isArray(e)?e:[e]){if(t["a14:saturation"]){let e=E(t,["a14:saturation","attrs","sat"]);e&&(r.saturation=parseInt(e)/1e5)}if(t["a14:brightnessContrast"]){let e=E(t,["a14:brightnessContrast","attrs","bright"]),n=E(t,["a14:brightnessContrast","attrs","contrast"]);e&&(r.brightness=parseInt(e)/1e5),n&&(r.contrast=parseInt(n)/1e5)}if(t["a14:sharpenSoften"]){let e=E(t,["a14:sharpenSoften","attrs","amount"]);if(e){let t=parseInt(e)/1e5;t>0?r.sharpen=t:r.soften=Math.abs(t)}}if(t["a14:colorTemperature"]){let e=E(t,["a14:colorTemperature","attrs","colorTemp"]);e&&(r.colorTemperature=parseInt(e))}}}return Object.keys(r).length>0?r:null}(t["p:blipFill"]),V=ta(t["p:blipFill"]);if(T||P){let e,r;if(P){let t=function(t){var e,r,n;let i,a=t["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(t){let e=[];if(t["a:moveTo"]){let r=t["a:moveTo"]["a:pt"];r&&e.push({type:"moveTo",points:[{x:parseInt(r.attrs?.x)||0,y:parseInt(r.attrs?.y)||0}]})}return tJ(t["a:lnTo"]).forEach(t=>{let r=t["a:pt"];r&&e.push({type:"lineTo",points:[{x:parseInt(r.attrs?.x)||0,y:parseInt(r.attrs?.y)||0}]})}),tJ(t["a:cubicBezTo"]).forEach(t=>{let r=tJ(t["a:pt"]).map(t=>({x:parseInt(t.attrs?.x)||0,y:parseInt(t.attrs?.y)||0}));3===r.length&&e.push({type:"cubicBezTo",points:r})}),tJ(t["a:arcTo"]).forEach(t=>{e.push({type:"arcTo",wR:parseInt(t.attrs?.wR)||0,hR:parseInt(t.attrs?.hR)||0,stAng:parseInt(t.attrs?.stAng)||0,swAng:parseInt(t.attrs?.swAng)||0})}),tJ(t["a:quadBezTo"]).forEach(t=>{let r=tJ(t["a:pt"]).map(t=>({x:parseInt(t.attrs?.x)||0,y:parseInt(t.attrs?.y)||0}));e.push({type:"quadBezTo",points:r})}),t["a:close"]&&e.push({type:"close"}),e}(o);return 0===c.length?"custom":function(t){let{lineCount:e,curveCount:r,isClosed:n,vertices:i,hasCurves:a,isCircular:o,pathWidth:s,pathHeight:l}=t;if(o||t.arcCount>=2&&n&&0===e)return"ellipse";if(!a&&n&&i.length>=3){let t;var c=i;let e=(t=[],c.forEach(e=>{t.some(t=>100>Math.abs(t.x-e.x)&&100>Math.abs(t.y-e.y))||t.push(e)}),t),r=e.length;switch(r){case 3:return"triangle";case 4:return function(t){var e,r,n;let i,a,o,s,l,c,u,h,p,d,f,m;if(4!==t.length)return"custom";let g=[];for(let e=0;e<4;e++){let r=t[e],n=t[(e+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(t){let e=Math.abs(t[0].length-t[2].length)/Math.max(t[0].length,t[2].length)<.1,r=Math.abs(t[1].length-t[3].length)/Math.max(t[1].length,t[3].length)<.1;if(!e||!r)return!1;for(let e=0;e<4;e++){let r=t[e],n=t[(e+1)%4];if(Math.abs((r.dx*n.dx+r.dy*n.dy)/(r.length*n.length))>.1)return!1}return!0}(g)?(i=(e=g).reduce((t,e)=>t+e.length,0)/4,e.every(t=>Math.abs(t.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"}(e);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===e&&4===r&&n)return"roundRect";if(e>=3&&r>0&&r<=e&&n){let t=function(t){switch(t){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"}}(e);if("custom"!==t)return"rectangle"===t?"roundRect":t}return"custom"}((e=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:e},e.forEach(t=>{switch(t.type){case"moveTo":i.vertices.push(t.points[0]);break;case"lineTo":i.lineCount++,i.vertices.push(t.points[0]);break;case"cubicBezTo":i.curveCount++,i.hasCurves=!0,3===t.points.length&&i.vertices.push(t.points[2]);break;case"quadBezTo":i.curveCount++,i.hasCurves=!0,t.points.length>=2&&i.vertices.push(t.points[t.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(t,e,r){let n=t.filter(t=>"cubicBezTo"===t.type);if(4!==n.length)return!1;let i=n.map(t=>t.points[2]),a=i.some(t=>Math.abs(t.y)<.1*r),o=i.some(t=>Math.abs(t.y-r)<.1*r),s=i.some(t=>Math.abs(t.x)<.1*e),l=i.some(t=>Math.abs(t.x-e)<.1*e);return(a||o)&&(s||l)}(e,r,n)),i))}(P);e="custom"!==t?`custom:${t}`:"custom",r=tz(P,g,A)}else e=T,r=t3(T,g,A,t)||"";let n={type:"shape",shapType:e,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:I,borderWidth:C,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:I,borderWidth:C,borderType:k,borderStrokeDasharray:F,opacity:V};return X&&(Q.filters=X),c&&(Q.link=c),Q}async function eO(t,e,r){let n;switch(E(t,["a:graphic","a:graphicData","attrs","uri"])){case"http://schemas.openxmlformats.org/drawingml/2006/table":n=await eN(t,e);break;case"http://schemas.openxmlformats.org/drawingml/2006/chart":n=await eL(t,e);break;case"http://schemas.openxmlformats.org/drawingml/2006/diagram":n=await e_(t,e);break;case"http://schemas.openxmlformats.org/presentationml/2006/ole":let i=E(t,["a:graphic","a:graphicData","mc:AlternateContent","mc:Fallback","p:oleObj"]);i||(i=E(t,["a:graphic","a:graphicData","p:oleObj"])),i&&(n=await eb(i,e,r))}return n}async function eN(t,e){let r,n,i=t.attrs.order,a=E(t,["a:graphic","a:graphicData","a:tbl"]),o=E(t,["p:xfrm"]),{top:s,left:l}=tT(o,void 0,void 0),{width:c,height:u}=tP(o,void 0,void 0),h=E(t,["a:graphic","a:graphicData","a:tbl","a:tblPr"]),p=E(t,["a:graphic","a:graphicData","a:tbl","a:tblGrid","a:gridCol"]);p.constructor!==Array&&(p=[p]);let d=[];if(p)for(let t of p){let e=parseInt(E(t,["attrs","w"])||0)*tR;d.push(e)}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 t=e.tableStyles["a:tblStyleLst"]["a:tblStyle"];if(t)if(t.constructor===Array)for(let e=0;e<t.length;e++)t[e].attrs.styleId===b&&(r=t[e]);else t.attrs.styleId===b&&(r=t)}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=tg({"p:spPr":{"a:ln":S["a:bottom"]["a:ln"]}},void 0,e)),S["a:top"]&&(n.top=tg({"p:spPr":{"a:ln":S["a:top"]["a:ln"]}},void 0,e)),S["a:right"]&&(n.right=tg({"p:spPr":{"a:ln":S["a:right"]["a:ln"]}},void 0,e)),S["a:left"]&&(n.left=tg({"p:spPr":{"a:ln":S["a:left"]["a:ln"]}},void 0,e)),x=n);let w="",O=E(r,["a:tblBg","a:fillRef"]);O&&(w=tf(O,void 0,void 0,e)),void 0===O&&(w=tf(O=E(r,["a:wholeTbl","a:tcStyle","a:fill","a:solidFill"]),void 0,void 0,e));let N=a["a:tr"];N.constructor!==Array&&(N=[N]);let L=[],_=[];for(let t=0;t<N.length;t++){let n=N[t],i=parseInt(E(N[t],["attrs","h"])||0)*tR;_.push(i);let{fillColor:a,fontColor:o,fontBold:s}=function(t,e,r,n,i){let a,o,s;if(n&&n["a:wholeTbl"]){let t=E(n,["a:wholeTbl","a:tcStyle","a:fill","a:solidFill"]);if(t){let e=tf(t,void 0,void 0,i);e&&(a=e)}let e=E(n,["a:wholeTbl","a:tcTxStyle"]);if(e){let t=t0(e,i);t&&(o=t),"on"===E(e,["attrs","b"])&&(s=!0)}}if(0===e&&1===r.isFrstRowAttr&&n){let t=E(n,["a:firstRow","a:tcStyle","a:fill","a:solidFill"]);if(t){let e=tf(t,void 0,void 0,i);e&&(a=e)}let e=E(n,["a:firstRow","a:tcTxStyle"]);if(e){let t=t0(e,i);t&&(o=t),"on"===E(e,["attrs","b"])&&(s=!0)}}else if(e>0&&1===r.isBandRowAttr&&n){if(a="",e%2==0&&n["a:band2H"]){let t=E(n,["a:band2H","a:tcStyle","a:fill","a:solidFill"]);if(t){let e=tf(t,void 0,void 0,i);e&&(a=e)}let e=E(n,["a:band2H","a:tcTxStyle"]);if(e){let t=t0(e,i);t&&(o=t)}"on"===E(e,["attrs","b"])&&(s=!0)}if(e%2!=0&&n["a:band1H"]){let t=E(n,["a:band1H","a:tcStyle","a:fill","a:solidFill"]);if(t){let e=tf(t,void 0,void 0,i);e&&(a=e)}let e=E(n,["a:band1H","a:tcTxStyle"]);if(e){let t=t0(e,i);t&&(o=t),"on"===E(e,["attrs","b"])&&(s=!0)}}}if(e===t.length-1&&1===r.isLstRowAttr&&n){let t=E(n,["a:lastRow","a:tcStyle","a:fill","a:solidFill"]);if(t){let e=tf(t,void 0,void 0,i);e&&(a=e)}let e=E(n,["a:lastRow","a:tcTxStyle"]);if(e){let t=t0(e,i);t&&(o=t),"on"===E(e,["attrs","b"])&&(s=!0)}}return{fillColor:a,fontColor:o,fontBold:s}}(N,t,R,r,e),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&&t===N.length-1&&E(r,["a:seCell"])?i="a:seCell":1===R.isFrstRowAttr&&0===t&&E(r,["a:neCell"])&&(i="a:neCell");else if(n>0&&1===R.isBandColAttr&&(1!==R.isFrstColAttr||0!==t)&&(1!==R.isLstRowAttr||t!==N.length-1)&&n!==l.length-1&&n%2!=0){let t=E(r,["a:band2V"]);void 0===t?(t=E(r,["a:band1V"]))&&(i="a:band2V"):i="a:band2V"}n===l.length-1&&1===R.isLstColAttr&&(i="a:lastCol",1===R.isLstRowAttr&&t===N.length-1&&E(r,["a:swCell"])?i="a:swCell":1===R.isFrstRowAttr&&0===t&&E(r,["a:nwCell"])&&(i="a:nwCell"));let h=tG(u["a:txBody"],u,void 0,void 0,void 0,e),p=await t1(u,r,i,e),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 t;if(1===R.isFrstColAttr&&1!==R.isLstRowAttr)t="a:firstCol";else if(1===R.isBandColAttr&&1!==R.isLstRowAttr){let e=E(r,["a:band2V"]);e?t="a:band2V":(e=E(r,["a:band1V"]))&&(t="a:band2V")}1===R.isLstColAttr&&1!==R.isLstRowAttr&&(t="a:lastCol");let n=tG(l["a:txBody"],l,void 0,void 0,void 0,e),i=await t1(l,r,t,e),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)}L.push(c)}let T=d.reduce((t,e)=>t+e,0);return T&&(T=Z(T)),{type:"table",top:s,left:l,width:T||c,height:u,data:L,order:i,borders:x,rowHeights:_,colWidths:d}}async function eL(t,e){let r=t.attrs.order,n=E(t,["p:xfrm"]),{top:i,left:a}=tT(n,void 0,void 0),{width:o,height:s}=tP(n,void 0,void 0),l=t["a:graphic"]["a:graphicData"]["c:chart"].attrs["r:id"],c=E(e.slideResObj,[l,"target"]);if(c||(c=E(e.layoutResObj,[l,"target"])),c||(c=E(e.masterResObj,[l,"target"])),!c)return null;let u=function(t,e){let r=null;for(let n in t)if(t[n]["c:ser"])switch(n){case"c:lineChart":r={type:"lineChart",data:ty(t[n]["c:ser"]),colors:tA(t[n]["c:ser"],e),grouping:E(t[n],["c:grouping","attrs","val"]),marker:!!t[n]["c:marker"]};break;case"c:line3DChart":r={type:"line3DChart",data:ty(t[n]["c:ser"]),colors:tA(t[n]["c:ser"],e),grouping:E(t[n],["c:grouping","attrs","val"])};break;case"c:barChart":r={type:"barChart",data:ty(t[n]["c:ser"]),colors:tA(t[n]["c:ser"],e),grouping:E(t[n],["c:grouping","attrs","val"]),barDir:E(t[n],["c:barDir","attrs","val"])};break;case"c:bar3DChart":r={type:"bar3DChart",data:ty(t[n]["c:ser"]),colors:tA(t[n]["c:ser"],e),grouping:E(t[n],["c:grouping","attrs","val"]),barDir:E(t[n],["c:barDir","attrs","val"])};break;case"c:pieChart":r={type:"pieChart",data:ty(t[n]["c:ser"]),colors:tA(t[n]["c:ser"]["c:dPt"],e)};break;case"c:pie3DChart":r={type:"pie3DChart",data:ty(t[n]["c:ser"]),colors:tA(t[n]["c:ser"]["c:dPt"],e)};break;case"c:doughnutChart":r={type:"doughnutChart",data:ty(t[n]["c:ser"]),colors:tA(t[n]["c:ser"]["c:dPt"],e),holeSize:E(t[n],["c:holeSize","attrs","val"])};break;case"c:areaChart":r={type:"areaChart",data:ty(t[n]["c:ser"]),colors:tA(t[n]["c:ser"],e),grouping:E(t[n],["c:grouping","attrs","val"])};break;case"c:area3DChart":r={type:"area3DChart",data:ty(t[n]["c:ser"]),colors:tA(t[n]["c:ser"],e),grouping:E(t[n],["c:grouping","attrs","val"])};break;case"c:scatterChart":r={type:"scatterChart",data:tv(t[n]["c:ser"]),colors:tA(t[n]["c:ser"],e),style:E(t[n],["c:scatterStyle","attrs","val"])};break;case"c:bubbleChart":r={type:"bubbleChart",data:tv(t[n]["c:ser"]),colors:tA(t[n]["c:ser"],e)};break;case"c:radarChart":r={type:"radarChart",data:ty(t[n]["c:ser"]),colors:tA(t[n]["c:ser"],e),style:E(t[n],["c:radarStyle","attrs","val"])};break;case"c:surfaceChart":r={type:"surfaceChart",data:ty(t[n]["c:ser"]),colors:tA(t[n]["c:ser"],e)};break;case"c:surface3DChart":r={type:"surface3DChart",data:ty(t[n]["c:ser"]),colors:tA(t[n]["c:ser"],e)};break;case"c:stockChart":r={type:"stockChart",data:ty(t[n]["c:ser"]),colors:[]}}return r}(E(await X(e.zip,c),["c:chartSpace","c:chart","c:plotArea"]),e);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 e_(t,e){let r=t.attrs.order,n=E(t,["p:xfrm"]),{left:i,top:a}=tT(n,void 0,void 0),{width:o,height:s}=tP(n,void 0,void 0),l=await et(t,e),c=E(l.digramFileContent,["p:drawing","p:spTree","p:sp"]),u=[],h=[];if(c)for(let t of Array.isArray(c)?c:[c]){let e=await ex(t,l,"diagramBg");e&&u.push(e)}return l.diagramContent&&l.diagramContent.data&&(h=function(t){let e=[],r=E(t,["dgm:dataModel","dgm:ptLst","dgm:pt"]);if(!r)return e;for(let t of(Array.isArray(r)||(r=[r]),r)){let r=E(t,["dgm:t"]);if(r){let t="",n=E(r,["a:p"]);n&&(Array.isArray(n)||(n=[n]),n.forEach(e=>{let r=E(e,["a:r"]);r&&(Array.isArray(r)||(r=[r]),r.forEach(e=>{let r=t$(E(e,["a:t"]));r&&"string"==typeof r&&(t+=r)})),t.length>0&&(t+="\n")}));let i=t.trim();i&&e.push(i)}}return e}(l.diagramContent.data)),{type:"diagram",left:i,top:a,width:o,height:s,elements:u,textList:h,order:r}}},46762(t,e,r){var n=r(38262),i=r(96294),a=r(42845);let o=(t,e)=>!t.selection.empty&&(e&&e(t.tr.deleteSelection().scrollIntoView()),!0);function s(t,e,r=!1){for(let n=t;n;n="start"==e?n.firstChild:n.lastChild){if(n.isTextblock)return!0;if(r&&1!=n.childCount)break}return!1}function l(t){if(!t.parent.type.spec.isolating)for(let e=t.depth-1;e>=0;e--){if(t.index(e)>0)return t.doc.resolve(t.before(e+1));if(t.node(e).type.spec.isolating)break}return null}function c(t){if(!t.parent.type.spec.isolating)for(let e=t.depth-1;e>=0;e--){let r=t.node(e);if(t.index(e)+1<r.childCount)return t.doc.resolve(t.after(e+1));if(r.type.spec.isolating)break}return null}let u=(t,e)=>{let{$head:r,$anchor:n}=t.selection;return!!r.parent.type.spec.code&&!!r.sameParent(n)&&(e&&e(t.tr.insertText("\n").scrollIntoView()),!0)};function h(t){for(let e=0;e<t.edgeCount;e++){let{type:r}=t.edge(e);if(r.isTextblock&&!r.hasRequiredAttrs())return r}return null}let p=(t,e)=>{let r=t.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(e){let r=(!n.parentOffset&&i.index()<i.parent.childCount?n:i).pos,s=t.tr.insert(r,o.createAndFill());s.setSelection(a.U3.create(s.doc,r+1)),e(s.scrollIntoView())}return!0},d=(t,e)=>{let{$cursor:r}=t.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)(t.doc,i))return e&&e(t.tr.split(i).scrollIntoView()),!0}let i=r.blockRange(),a=i&&(0,n.jP)(i);return null!=a&&(e&&e(t.tr.lift(i,a).scrollIntoView()),!0)},f=(t,e)=>{if(t.selection instanceof a.nh&&t.selection.node.isBlock){let{$from:r}=t.selection;return!!r.parentOffset&&!!(0,n.zy)(t.doc,r.pos)&&(e&&e(t.tr.split(r.pos).scrollIntoView()),!0)}if(!t.selection.$from.depth)return!1;let r=t.tr;!t.selection.empty&&(t.selection instanceof a.U3||t.selection instanceof a.i5)&&r.deleteSelection();let{$from:i}=r.selection,o=r.steps.length,s=[],l,c,u=!1,p=!1;for(let t=i.depth;;t--){if(i.node(t).isBlock){let e;u=i.end(t)==i.pos+(i.depth-t),p=i.start(t)==i.pos-(i.depth-t),c=h(i.node(t-1).contentMatchAt(i.indexAfter(t-1)));s.unshift(e||(u&&c?{type:c}:null)),l=t;break}if(1==t)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 t=r.mapping.slice(o),e=t.map(i.before(l)),n=r.doc.resolve(e);c&&i.node(l-1).canReplaceWith(n.index(),n.index()+1,c)&&r.setNodeMarkup(t.map(i.before(l)),c)}return e&&e(r.scrollIntoView()),!0},m=(t,e)=>(e&&e(t.tr.setSelection(new a.i5(t.doc))),!0);function g(t,e,r,o){let l,c,u,h=e.nodeBefore,p=e.nodeAfter,d,f,m=h.type.spec.isolating||p.type.spec.isolating;if(!m&&(l=e.nodeBefore,c=e.nodeAfter,u=e.index(),l&&c&&l.type.compatibleContent(c.type)&&(!l.content.size&&e.parent.canReplace(u-1,u)?(r&&r(t.tr.delete(e.pos-l.nodeSize,e.pos).scrollIntoView()),!0):!!e.parent.canReplace(u,u+1)&&!!(c.isTextblock||(0,n.n9)(t.doc,e.pos))&&(r&&r(t.tr.join(e.pos).scrollIntoView()),!0))))return!0;let g=!m&&e.parent.canReplace(e.index(),e.index()+1);if(g&&(d=(f=h.contentMatchAt(h.childCount)).findWrapping(p.type))&&f.matchType(d[0]||p.type).validEnd){if(r){let a=e.pos+p.nodeSize,o=i.FK.empty;for(let t=d.length-1;t>=0;t--)o=i.FK.from(d[t].create(null,o));o=i.FK.from(h.copy(o));let s=t.tr.step(new n.Wg(e.pos-1,a,e.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(e,1),y=A&&A.$from.blockRange(A.$to),v=y&&(0,n.jP)(y);if(null!=v&&v>=e.depth)return r&&r(t.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 t=o.length-1;t>=0;t--)a=i.FK.from(o[t].copy(a));r(t.tr.step(new n.Wg(e.pos-o.length,e.pos+p.nodeSize,e.pos+l,e.pos+p.nodeSize-l,new i.Ji(a,o.length,0),0,!0)).scrollIntoView())}return!0}}return!1}function A(t){return function(e,r){let n=e.selection,i=t<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(e.tr.setSelection(a.U3.create(e.doc,t<0?i.start(o):i.end(o)))),!0)}}let y=A(-1),v=A(1);function R(t,e=null){return function(r,i){let{$from:a,$to:o}=r.selection,s=a.blockRange(o),l=s&&(0,n.oM)(s,t,e);return!!l&&(i&&i(r.tr.wrap(s,l).scrollIntoView()),!0)}}function b(t,e=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(t,e,r,n){for(let i=0;i<e.length;i++){let{$from:a,$to:o}=e[i],s=0==a.depth&&t.inlineContent&&t.type.allowsMarkType(r);if(t.nodesBetween(a.pos,o.pos,(t,e)=>{if(s||!n&&t.isAtom&&t.isInline&&e>=a.pos&&e+t.nodeSize<=o.pos)return!1;s=t.inlineContent&&t.type.allowsMarkType(r)}),s)return!0}return!1}(r.doc,u,t,i))return!1;if(s)if(c)s(t.isInSet(r.storedMarks||c.marks())?r.tr.removeStoredMark(t):r.tr.addStoredMark(t.create(e)));else{let l,c=r.tr;i||(u=function(t){let e=[];for(let r=0;r<t.length;r++){let{$from:n,$to:i}=t[r];n.doc.nodesBetween(n.pos,i.pos,(t,r)=>{if(t.isAtom&&t.content.size&&t.isInline&&r>=n.pos&&r+t.nodeSize<=i.pos)return r+1>n.pos&&e.push(new a.yn(n,n.doc.resolve(r+1))),n=n.doc.resolve(r+1+t.content.size),!1}),n.pos<i.pos&&e.push(new a.yn(n,i))}return e}(u)),l=n?!u.some(e=>r.doc.rangeHasMark(e.$from.pos,e.$to.pos,t)):!u.every(e=>{let r=!1;return c.doc.nodesBetween(e.$from.pos,e.$to.pos,(n,i,a)=>{if(r)return!1;r=!t.isInSet(n.marks)&&!!a&&a.type.allowsMarkType(t)&&!(n.isText&&/^\s*$/.test(n.textBetween(Math.max(0,e.$from.pos-i),Math.min(n.nodeSize,e.$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,t.create(e))}else c.removeMark(n.pos,i.pos,t)}s(c.scrollIntoView())}return!0}}function x(...t){return function(e,r,n){for(let i=0;i<t.length;i++)if(t[i](e,r,n))return!0;return!1}}let M=x(o,(t,e,r)=>{let o=function(t,e){let{$cursor:r}=t.selection;return r&&(e?e.endOfTextblock("backward",t):!(r.parentOffset>0))?r:null}(t,r);if(!o)return!1;let c=l(o);if(!c){let r=o.blockRange(),i=r&&(0,n.jP)(r);return null!=i&&(e&&e(t.tr.lift(r,i).scrollIntoView()),!0)}let u=c.nodeBefore;if(g(t,c,e,-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)(t.doc,o.before(r),o.after(r),i.Ji.empty);if(l&&l.slice.size<l.to-l.from){if(e){let r=t.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)),e(r.scrollIntoView())}return!0}if(1==r||o.node(r-1).childCount>1)break}return!!u.isAtom&&c.depth==o.depth-1&&(e&&e(t.tr.delete(c.pos-u.nodeSize,c.pos).scrollIntoView()),!0)},(t,e,r)=>{let{$head:n,empty:i}=t.selection,o=n;if(!i)return!1;if(n.parent.isTextblock){if(r?!r.endOfTextblock("backward",t):n.parentOffset>0)return!1;o=l(n)}let s=o&&o.nodeBefore;return!!s&&!!a.nh.isSelectable(s)&&(e&&e(t.tr.setSelection(a.nh.create(t.doc,o.pos-s.nodeSize)).scrollIntoView()),!0)}),S=x(o,(t,e,r)=>{let o=function(t,e){let{$cursor:r}=t.selection;return r&&(e?e.endOfTextblock("forward",t):!(r.parentOffset<r.parent.content.size))?r:null}(t,r);if(!o)return!1;let l=c(o);if(!l)return!1;let u=l.nodeAfter;if(g(t,l,e,1))return!0;if(0==o.parent.content.size&&(s(u,"start")||a.nh.isSelectable(u))){let r=(0,n.$L)(t.doc,o.before(),o.after(),i.Ji.empty);if(r&&r.slice.size<r.to-r.from){if(e){let n=t.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))),e(n.scrollIntoView())}return!0}}return!!u.isAtom&&l.depth==o.depth-1&&(e&&e(t.tr.delete(l.pos,l.pos+u.nodeSize).scrollIntoView()),!0)},(t,e,r)=>{let{$head:n,empty:i}=t.selection,o=n;if(!i)return!1;if(n.parent.isTextblock){if(r?!r.endOfTextblock("forward",t):n.parentOffset<n.parent.content.size)return!1;o=c(n)}let s=o&&o.nodeAfter;return!!s&&!!a.nh.isSelectable(s)&&(e&&e(t.tr.setSelection(a.nh.create(t.doc,o.pos)).scrollIntoView()),!0)}),w={Enter:x(u,p,d,f),"Mod-Enter":(t,e)=>{let{$head:r,$anchor:n}=t.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(e){let n=r.after(),i=t.tr.replaceWith(n,n,s.createAndFill());i.setSelection(a.LN.near(i.doc.resolve(n),1)),e(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 t in w)O[t]=w[t];let N=("u">typeof navigator?/Mac|iP(hone|[oa]d)/.test(navigator.platform):"u">typeof os&&!!os.platform&&"darwin"==os.platform())?O:w;r.d(e,{Im:()=>R,st:()=>x,wh:()=>b},{BS:(t,e)=>f(t,e&&(r=>{let n=t.storedMarks||t.selection.$to.parentOffset&&t.selection.$from.marks();n&&r.ensureMarks(n),e(r)})),G2:(t,e)=>{let r=t.selection,i=r instanceof a.nh,o;if(i){if(r.node.isTextblock||!(0,n.n9)(t.doc,r.from))return!1;o=r.from}else if(null==(o=(0,n.N0)(t.doc,r.from,-1)))return!1;if(e){let r=t.tr.join(o);i&&r.setSelection(a.nh.create(r.doc,o-t.doc.resolve(o).nodeBefore.nodeSize)),e(r.scrollIntoView())}return!0},RV:N,Ub:m,Z1:p,bh:(t,e)=>{let r=t.selection,i;if(r instanceof a.nh){if(r.node.isTextblock||!(0,n.n9)(t.doc,r.to))return!1;i=r.to}else if(null==(i=(0,n.N0)(t.doc,r.to,1)))return!1;return e&&e(t.tr.join(i).scrollIntoView()),!0},hy:(t,e)=>{let{$from:r,to:n}=t.selection,i,o=r.sharedDepth(n);return 0!=o&&(i=r.before(o),e&&e(t.tr.setSelection(a.nh.create(t.doc,i))),!0)},iz:d,pC:u,yY:(t,e)=>{let{$from:r,$to:i}=t.selection,a=r.blockRange(i),o=a&&(0,n.jP)(a);return null!=o&&(e&&e(t.tr.lift(a,o).scrollIntoView()),!0)}})},73337(t,e,r){var n=r(42845),i=r(38262);function a(t={}){return new n.k_({view:e=>new o(e,t)})}class o{constructor(t,e){var r;this.editorView=t,this.cursorPos=null,this.element=null,this.timeout=-1,this.lastDragEvent=null,this.width=null!=(r=e.width)?r:1,this.color=!1===e.color?void 0:e.color||"black",this.class=e.class,this.handlers=["dragover","dragend","drop","dragleave"].map(e=>{let r=t=>{this[e](t)};return t.dom.addEventListener(e,r),{name:e,handler:r}})}destroy(){this.handlers.forEach(({name:t,handler:e})=>this.editorView.dom.removeEventListener(t,e))}update(t,e){if(null!=this.cursorPos&&e.doc!=t.state.doc)if(this.lastDragEvent){let t=this.computeTarget(this.lastDragEvent);t==this.cursorPos?this.updateOverlay():this.setCursor(t)}else this.updateOverlay()}setCursor(t){t!=this.cursorPos&&(this.cursorPos=t,null==t?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let t,e,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 t=r.nodeBefore,e=r.nodeAfter;if(t||e){let r=this.editorView.nodeDOM(this.cursorPos-(t?t.nodeSize:0));if(r){let n=r.getBoundingClientRect(),a=t?n.bottom:n.top;t&&e&&(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 t=this.editorView.coordsAtPos(this.cursorPos),e=this.width/2*s;i={left:t.left-e,right:t.left+e,top:t.top,bottom:t.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;t=r.left-c.scrollLeft*n,e=r.top-c.scrollTop*i}else t=-pageXOffset,e=-pageYOffset;this.element.style.left=(i.left-t)/s+"px",this.element.style.top=(i.top-e)/l+"px",this.element.style.width=(i.right-i.left)/s+"px",this.element.style.height=(i.bottom-i.top)/l+"px"}scheduleRemoval(t){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),t)}computeTarget(t){let e=this.editorView.posAtCoords({left:t.clientX,top:t.clientY}),r=e&&e.inside>=0&&this.editorView.state.doc.nodeAt(e.inside),n=r&&r.type.spec.disableDropCursor,a="function"==typeof n?n(this.editorView,e,t):n;if(!e||a)return null;let o=e.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let t=(0,i.Um)(this.editorView.state.doc,o,this.editorView.dragging.slice);null!=t&&(o=t)}return o}dragover(t){if(!this.editorView.editable)return;this.lastDragEvent=t;let e=this.computeTarget(t);null!=e&&(this.setCursor(e),this.scheduleRemoval(5e3))}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(t){this.editorView.dom.contains(t.relatedTarget)||this.setCursor(null)}}r.d(e,{A:()=>a})},89552(t,e,r){var n=r(14413),i=r(42845),a=r(96294),o=r(1575);class s extends i.LN{constructor(t){super(t,t)}map(t,e){let r=t.resolve(e.map(this.head));return s.valid(r)?new s(r):i.LN.near(r)}content(){return a.Ji.empty}eq(t){return t instanceof s&&t.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(t,e){if("number"!=typeof e.pos)throw RangeError("Invalid input for GapCursor.fromJSON");return new s(t.resolve(e.pos))}getBookmark(){return new l(this.anchor)}static valid(t){let e=t.parent;if(e.inlineContent||!function(t){for(let e=t.depth;e>=0;e--){let r=t.index(e),n=t.node(e);if(0==r){if(n.type.spec.isolating)return!0;continue}for(let t=n.child(r-1);;t=t.lastChild){if(0==t.childCount&&!t.inlineContent||c(t.type))return!0;if(t.inlineContent)return!1}}return!0}(t)||!function(t){for(let e=t.depth;e>=0;e--){let r=t.indexAfter(e),n=t.node(e);if(r==n.childCount){if(n.type.spec.isolating)return!0;continue}for(let t=n.child(r);;t=t.firstChild){if(0==t.childCount&&!t.inlineContent||c(t.type))return!0;if(t.inlineContent)return!1}}return!0}(t))return!1;let r=e.type.spec.allowGapCursor;if(null!=r)return r;let n=e.contentMatchAt(t.index()).defaultType;return n&&n.isTextblock}static findGapCursorFrom(t,e,r=!1){a:for(;;){if(!r&&s.valid(t))return t;let n=t.pos,a=null;for(let r=t.depth;;r--){let i=t.node(r);if(e>0?t.indexAfter(r)<i.childCount:t.index(r)>0){a=i.child(e>0?t.indexAfter(r):t.index(r)-1);break}if(0==r)return null;n+=e;let o=t.doc.resolve(n);if(s.valid(o))return o}for(;;){let o=e>0?a.firstChild:a.lastChild;if(!o){if(a.isAtom&&!a.isText&&!i.nh.isSelectable(a)){t=t.doc.resolve(n+a.nodeSize*e),r=!1;continue a}break}a=o,n+=e;let l=t.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(t){this.pos=t}map(t){return new l(t.map(this.pos))}resolve(t){let e=t.resolve(this.pos);return s.valid(e)?new s(e):i.LN.near(e)}}function c(t){return t.isAtom||t.spec.isolating||t.spec.createGapCursor}function u(){return new i.k_({props:{decorations:m,createSelectionBetween:(t,e,r)=>e.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(t,e){let r="vert"==t?e>0?"down":"up":e>0?"right":"left";return function(t,n,a){let o=t.selection,l=e>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=t.doc.resolve(e>0?l.after():l.before())}let u=s.findGapCursorFrom(l,e,c);return!!u&&(n&&n(t.tr.setSelection(new s(u))),!0)}}function d(t,e,r){if(!t||!t.editable)return!1;let n=t.state.doc.resolve(e);if(!s.valid(n))return!1;let a=t.posAtCoords({left:r.clientX,top:r.clientY});return!(a&&a.inside>-1&&i.nh.isSelectable(t.state.doc.nodeAt(a.inside)))&&(t.dispatch(t.state.tr.setSelection(new s(n))),!0)}function f(t,e){if("insertCompositionText"!=e.inputType||!(t.state.selection instanceof s))return!1;let{$from:r}=t.state.selection,n=r.parent.contentMatchAt(r.index()).findWrapping(t.state.schema.nodes.text);if(!n)return!1;let o=a.FK.empty;for(let t=n.length-1;t>=0;t--)o=a.FK.from(n[t].createAndFill(null,o));let l=t.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))),t.dispatch(l),!1}function m(t){if(!(t.selection instanceof s))return null;let e=document.createElement("div");return e.className="ProseMirror-gapcursor",o.zF.create(t.doc,[o.NZ.widget(t.selection.head,e,{key:"gapcursor"})])}r.d(e,{z:()=>u})},53034(t,e,r){r.d(e,{b6:()=>v,ZS:()=>x,tN:()=>b});var n=function(){};n.prototype.append=function(t){return t.length?(t=n.from(t),!this.length&&t||t.length<200&&this.leafAppend(t)||this.length<200&&t.leafPrepend(this)||this.appendInner(t)):this},n.prototype.prepend=function(t){return t.length?n.from(t).append(this):this},n.prototype.appendInner=function(t){return new a(this,t)},n.prototype.slice=function(t,e){return(void 0===t&&(t=0),void 0===e&&(e=this.length),t>=e)?n.empty:this.sliceInner(Math.max(0,t),Math.min(this.length,e))},n.prototype.get=function(t){if(!(t<0)&&!(t>=this.length))return this.getInner(t)},n.prototype.forEach=function(t,e,r){void 0===e&&(e=0),void 0===r&&(r=this.length),e<=r?this.forEachInner(t,e,r,0):this.forEachInvertedInner(t,e,r,0)},n.prototype.map=function(t,e,r){void 0===e&&(e=0),void 0===r&&(r=this.length);var n=[];return this.forEach(function(e,r){return n.push(t(e,r))},e,r),n},n.from=function(t){return t instanceof n?t:t&&t.length?new i(t):n.empty};var i=function(t){function e(e){t.call(this),this.values=e}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={length:{configurable:!0},depth:{configurable:!0}};return e.prototype.flatten=function(){return this.values},e.prototype.sliceInner=function(t,r){return 0==t&&r==this.length?this:new e(this.values.slice(t,r))},e.prototype.getInner=function(t){return this.values[t]},e.prototype.forEachInner=function(t,e,r,n){for(var i=e;i<r;i++)if(!1===t(this.values[i],n+i))return!1},e.prototype.forEachInvertedInner=function(t,e,r,n){for(var i=e-1;i>=r;i--)if(!1===t(this.values[i],n+i))return!1},e.prototype.leafAppend=function(t){if(this.length+t.length<=200)return new e(this.values.concat(t.flatten()))},e.prototype.leafPrepend=function(t){if(this.length+t.length<=200)return new e(t.flatten().concat(this.values))},r.length.get=function(){return this.values.length},r.depth.get=function(){return 0},Object.defineProperties(e.prototype,r),e}(n);n.empty=new i([]);var a=function(t){function e(e,r){t.call(this),this.left=e,this.right=r,this.length=e.length+r.length,this.depth=Math.max(e.depth,r.depth)+1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},e.prototype.getInner=function(t){return t<this.left.length?this.left.get(t):this.right.get(t-this.left.length)},e.prototype.forEachInner=function(t,e,r,n){var i=this.left.length;if(e<i&&!1===this.left.forEachInner(t,e,Math.min(r,i),n)||r>i&&!1===this.right.forEachInner(t,Math.max(e-i,0),Math.min(this.length,r)-i,n+i))return!1},e.prototype.forEachInvertedInner=function(t,e,r,n){var i=this.left.length;if(e>i&&!1===this.right.forEachInvertedInner(t,e-i,Math.max(r,i)-i,n+i)||r<i&&!1===this.left.forEachInvertedInner(t,Math.min(e,i),r,n))return!1},e.prototype.sliceInner=function(t,e){if(0==t&&e==this.length)return this;var r=this.left.length;return e<=r?this.left.slice(t,e):t>=r?this.right.slice(t-r,e-r):this.left.slice(t,r).append(this.right.slice(0,e-r))},e.prototype.leafAppend=function(t){var r=this.right.leafAppend(t);if(r)return new e(this.left,r)},e.prototype.leafPrepend=function(t){var r=this.left.leafPrepend(t);if(r)return new e(r,this.right)},e.prototype.appendInner=function(t){return this.left.depth>=Math.max(this.right.depth,t.depth)+1?new e(this.left,new e(this.right,t)):new e(this,t)},e}(n),o=r(38262),s=r(42845);class l{constructor(t,e){this.items=t,this.eventCount=e}popEvent(t,e){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}e&&(n=(r=this.remapping(o,this.items.length)).maps.length);let s=t.tr,u=[],h=[];return this.items.forEach((t,e)=>{if(!t.step){r||(n=(r=this.remapping(o,e+1)).maps.length),n--,h.push(t);return}if(r){h.push(new c(t.map));let e=t.step.map(r.slice(n)),i;e&&s.maybeStep(e).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(t.step);if(t.selection)return i=r?t.selection.map(r.slice(n)):t.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(t,e,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<t.steps.length;r++){let i=t.steps[r].invert(t.docs[r]),a=new c(t.mapping.maps[r],i,e),o;(o=d&&d.merge(a))&&(a=o,r?s.pop():p=p.slice(0,p.length-1)),s.push(a),e&&(u++,e=void 0),n||(d=a)}let f=u-r.depth;return f>h&&(i=p,a=f,i.forEach((t,e)=>{if(t.selection&&0==a--)return o=e,!1}),p=i.slice(o),u-=f),new l(p.append(s),u)}remapping(t,e){let r=new o.X9;return this.items.forEach((e,n)=>{let i=null!=e.mirrorOffset&&n-e.mirrorOffset>=t?r.maps.length-e.mirrorOffset:void 0;r.appendMap(e.map,i)},t,e),r}addMaps(t){return 0==this.eventCount?this:new l(this.items.append(t.map(t=>new c(t))),this.eventCount)}rebased(t,e){if(!this.eventCount)return this;let r=[],n=Math.max(0,this.items.length-e),i=t.mapping,a=t.steps.length,o=this.eventCount;this.items.forEach(t=>{t.selection&&o--},n);let s=e;this.items.forEach(e=>{let n=i.getMirror(--s);if(null==n)return;a=Math.min(a,n);let l=i.maps[n];if(e.step){let a=t.steps[n].invert(t.docs[n]),u=e.selection&&e.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 t=e;t<a;t++)u.push(new c(i.maps[t]));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 t=0;return this.items.forEach(e=>{!e.step&&t++}),t}compress(t=this.items.length){let e=this.remapping(0,t),r=e.maps.length,i=[],a=0;return this.items.forEach((n,o)=>{if(o>=t)i.push(n),n.selection&&a++;else if(n.step){let t=n.step.map(e.slice(r)),o=t&&t.getMap();if(r--,o&&e.appendMap(o,r),t){let s=n.selection&&n.selection.map(e.slice(r));s&&a++;let l=new c(o.invert(),t,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(t,e,r,n){this.map=t,this.step=e,this.selection=r,this.mirrorOffset=n}merge(t){if(this.step&&t.step&&!t.selection){let e=t.step.merge(this.step);if(e)return new c(e.getMap().invert(),e,this.selection)}}}class u{constructor(t,e,r,n,i){this.done=t,this.undone=e,this.prevRanges=r,this.prevTime=n,this.prevComposition=i}}let h=20;function p(t){let e=[];for(let r=t.length-1;r>=0&&0==e.length;r--)t[r].forEach((t,r,n,i)=>e.push(n,i));return e}function d(t,e){if(!t)return null;let r=[];for(let n=0;n<t.length;n+=2){let i=e.map(t[n],1),a=e.map(t[n+1],-1);i<=a&&r.push(i,a)}return r}let f=!1,m=null;function g(t){let e=t.plugins;if(m!=e){f=!1,m=e;for(let t=0;t<e.length;t++)if(e[t].spec.historyPreserveItems){f=!0;break}}return f}let A=new s.hs("history"),y=new s.hs("closeHistory");function v(t={}){return t={depth:t.depth||100,newGroupDelay:t.newGroupDelay||500},new s.k_({key:A,state:{init:()=>new u(l.empty,l.empty,null,0,-1),apply:(e,r,n)=>(function(t,e,r,n){let i=r.getMeta(A),a;if(i)return i.historyState;r.getMeta(y)&&(t=new u(t.done,t.undone,null,0,-1));let o=r.getMeta("appendedTransaction");if(0==r.steps.length)return t;if(o&&o.getMeta(A))if(o.getMeta(A).redo)return new u(t.done.addTransform(r,void 0,n,g(e)),t.undone,p(r.mapping.maps),t.prevTime,t.prevComposition);else return new u(t.done,t.undone.addTransform(r,void 0,n,g(e)),null,t.prevTime,t.prevComposition);if(!1===r.getMeta("addToHistory")||o&&!1===o.getMeta("addToHistory"))if(a=r.getMeta("rebased"))return new u(t.done.rebased(r,a),t.undone.rebased(r,a),d(t.prevRanges,r.mapping),t.prevTime,t.prevComposition);else return new u(t.done.addMaps(r.mapping.maps),t.undone.addMaps(r.mapping.maps),d(t.prevRanges,r.mapping),t.prevTime,t.prevComposition);{let i=r.getMeta("composition"),a=0==t.prevTime||!o&&t.prevComposition!=i&&(t.prevTime<(r.time||0)-n.newGroupDelay||!function(t,e){if(!e)return!1;if(!t.docChanged)return!0;let r=!1;return t.mapping.maps[0].forEach((t,n)=>{for(let i=0;i<e.length;i+=2)t<=e[i+1]&&n>=e[i]&&(r=!0)}),r}(r,t.prevRanges)),s=o?d(t.prevRanges,r.mapping):p(r.mapping.maps);return new u(t.done.addTransform(r,a?e.selection.getBookmark():void 0,n,g(e)),l.empty,s,r.time,null==i?t.prevComposition:i)}})(r,n,e,t)},config:t,props:{handleDOMEvents:{beforeinput(t,e){let r=e.inputType,n="historyUndo"==r?b:"historyRedo"==r?x:null;return!!n&&!!t.editable&&(e.preventDefault(),n(t.state,t.dispatch))}}}})}function R(t,e){return(r,n)=>{let i=A.getState(r);if(!i||0==(t?i.undone:i.done).eventCount)return!1;if(n){let a=function(t,e,r){let n=g(e),i=A.get(e).spec.config,a=(r?t.undone:t.done).popEvent(e,n);if(!a)return null;let o=a.selection.resolve(a.transform.doc),s=(r?t.done:t.undone).addTransform(a.transform,e.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,t);a&&n(e?a.scrollIntoView():a)}return!0}}let b=R(!1,!0),x=R(!0,!0)},38341(t,e,r){var n=r(42845),i=r(38262);class a{constructor(t,e,r={}){var n;this.match=t,this.match=t,this.handler="string"==typeof e?(n=e,function(t,e,r,i){let a=n;if(e[1]){let t=e[0].lastIndexOf(e[1]);a+=e[0].slice(t+e[1].length);let n=(r+=t)-i;n>0&&(a=e[0].slice(t-n,t)+a,r=i)}return t.tr.insertText(a,r,i)}):e,this.undoable=!1!==r.undoable,this.inCode=r.inCode||!1,this.inCodeMark=!1!==r.inCodeMark}}function o({rules:t}){let e=new n.k_({state:{init:()=>null,apply(t,e){let r=t.getMeta(this);return r||(t.selectionSet||t.docChanged?null:e)}},props:{handleTextInput:(r,n,i,a)=>s(r,n,i,a,t,e),handleDOMEvents:{compositionend:r=>{setTimeout(()=>{let{$cursor:n}=r.state.selection;n&&s(r,n.pos,n.pos,"",t,e)})}}},isInputRules:!0});return e}function s(t,e,r,n,i,a){if(t.composing)return!1;let o=t.state,s=o.doc.resolve(e),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(t=>t.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=e-(h[0].length-n.length);if(!u.inCodeMark){let t=!1;if(o.doc.nodesBetween(p,s.pos,e=>{e.isInline&&e.marks.some(t=>t.type.spec.code)&&(t=!0)}),t)continue}let d=u.handler(o,h,p,r);if(d)return u.undoable&&d.setMeta(a,{transform:d,from:e,to:r,text:n}),t.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(t,e,r=null,n){return new a(t,(t,a,o,s)=>{let l=r instanceof Function?r(a):r,c=t.tr.delete(o,s),u=c.doc.resolve(o).blockRange(),h=u&&(0,i.oM)(u,e,l);if(!h)return null;c.wrap(u,h);let p=c.doc.resolve(o-1).nodeBefore;return p&&p.type==e&&(0,i.n9)(c.doc,o-1)&&(!n||n(a,p))&&c.join(o-1),c})}r.d(e,{fV:()=>a,sM:()=>o,tG:()=>f},{Fr:[u,h,p,d],P8:l,dv:(t,e)=>{let r=t.plugins;for(let n=0;n<r.length;n++){let i=r[n],a;if(i.spec.isInputRules&&(a=i.getState(t))){if(e){let r=t.tr,n=a.transform;for(let t=n.steps.length-1;t>=0;t--)r.step(n.steps[t].invert(n.docs[t]));if(a.text){let e=r.doc.resolve(a.from).marks();r.replaceWith(a.from,a.to,t.schema.text(a.text,e))}else r.delete(a.from,a.to);e(r)}return!0}}return!1},gO:c})},14413(t,e,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(t,e,r=!0){return e.altKey&&(t="Alt-"+t),e.ctrlKey&&(t="Ctrl-"+t),e.metaKey&&(t="Meta-"+t),r&&e.shiftKey&&(t="Shift-"+t),t}function l(t){return new i.k_({props:{handleKeyDown:c(t)}})}function c(t){let e=function(t){let e=Object.create(null);for(let r in t)e[function(t){let e,r,n,i,o=t.split(/-(?!$)/),s=o[o.length-1];"Space"==s&&(s=" ");for(let t=0;t<o.length-1;t++){let s=o[t];if(/^(cmd|meta|m)$/i.test(s))i=!0;else if(/^a(lt)?$/i.test(s))e=!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 e&&(s="Alt-"+s),r&&(s="Ctrl-"+s),i&&(s="Meta-"+s),n&&(s="Shift-"+s),s}(r)]=t[r];return e}(t);return function(t,r){let i=(0,n.xT)(r),a,l=e[s(i,r)];if(l&&l(t.state,t.dispatch,t))return!0;if(1==i.length&&" "!=i){if(r.shiftKey){let n=e[s(i,r,!1)];if(n&&n(t.state,t.dispatch,t))return!0}if((r.altKey||r.metaKey||r.ctrlKey)&&!(o&&r.ctrlKey&&r.altKey)&&(a=n.E3[r.keyCode])&&a!=i){let n=e[s(a,r)];if(n&&n(t.state,t.dispatch,t))return!0}}return!1}}r.d(e,{K:()=>c,w:()=>l})},96294(t,e,r){function n(t){this.content=t}function i(t){return t>=56320&&t<57344}function a(t){return t>=55296&&t<56320}r.d(e,{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(t){for(var e=0;e<this.content.length;e+=2)if(this.content[e]===t)return e;return -1},get:function(t){var e=this.find(t);return -1==e?void 0:this.content[e+1]},update:function(t,e,r){var i=r&&r!=t?this.remove(r):this,a=i.find(t),o=i.content.slice();return -1==a?o.push(r||t,e):(o[a+1]=e,r&&(o[a]=r)),new n(o)},remove:function(t){var e=this.find(t);if(-1==e)return this;var r=this.content.slice();return r.splice(e,2),new n(r)},addToStart:function(t,e){return new n([t,e].concat(this.remove(t).content))},addToEnd:function(t,e){var r=this.remove(t).content.slice();return r.push(t,e),new n(r)},addBefore:function(t,e,r){var i=this.remove(e),a=i.content.slice(),o=i.find(t);return a.splice(-1==o?a.length:o,0,e,r),new n(a)},forEach:function(t){for(var e=0;e<this.content.length;e+=2)t(this.content[e],this.content[e+1])},prepend:function(t){return(t=n.from(t)).size?new n(t.content.concat(this.subtract(t).content)):this},append:function(t){return(t=n.from(t)).size?new n(this.subtract(t).content.concat(t.content)):this},subtract:function(t){var e=this;t=n.from(t);for(var r=0;r<t.content.length;r+=2)e=e.remove(t.content[r]);return e},toObject:function(){var t={};return this.forEach(function(e,r){t[e]=r}),t},get size(){return this.content.length>>1}},n.from=function(t){if(t instanceof n)return t;var e=[];if(t)for(var r in t)e.push(r,t[r]);return new n(e)};class o{constructor(t,e){if(this.content=t,this.size=e||0,null==e)for(let e=0;e<t.length;e++)this.size+=t[e].nodeSize}nodesBetween(t,e,r,n=0,i){for(let a=0,o=0;o<e;a++){let s=this.content[a],l=o+s.nodeSize;if(l>t&&!1!==r(s,n+o,i||null,a)&&s.content.size){let i=o+1;s.nodesBetween(Math.max(0,t-i),Math.min(s.content.size,e-i),r,n+i)}o=l}}descendants(t){this.nodesBetween(0,this.size,t)}textBetween(t,e,r,n){let i="",a=!0;return this.nodesBetween(t,e,(o,s)=>{let l=o.isText?o.text.slice(Math.max(t,s)-s,e-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(t){if(!t.size)return this;if(!this.size)return t;let e=this.lastChild,r=t.firstChild,n=this.content.slice(),i=0;for(e.isText&&e.sameMarkup(r)&&(n[n.length-1]=e.withText(e.text+r.text),i=1);i<t.content.length;i++)n.push(t.content[i]);return new o(n,this.size+t.size)}cut(t,e=this.size){if(0==t&&e==this.size)return this;let r=[],n=0;if(e>t)for(let i=0,a=0;a<e;i++){let o=this.content[i],s=a+o.nodeSize;s>t&&((a<t||s>e)&&(o=o.isText?o.cut(Math.max(0,t-a),Math.min(o.text.length,e-a)):o.cut(Math.max(0,t-a-1),Math.min(o.content.size,e-a-1))),r.push(o),n+=o.nodeSize),a=s}return new o(r,n)}cutByIndex(t,e){return t==e?o.empty:0==t&&e==this.content.length?this:new o(this.content.slice(t,e))}replaceChild(t,e){let r=this.content[t];if(r==e)return this;let n=this.content.slice(),i=this.size+e.nodeSize-r.nodeSize;return n[t]=e,new o(n,i)}addToStart(t){return new o([t].concat(this.content),this.size+t.nodeSize)}addToEnd(t){return new o(this.content.concat(t),this.size+t.nodeSize)}eq(t){if(this.content.length!=t.content.length)return!1;for(let e=0;e<this.content.length;e++)if(!this.content[e].eq(t.content[e]))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(t){let e=this.content[t];if(!e)throw RangeError("Index "+t+" out of range for "+this);return e}maybeChild(t){return this.content[t]||null}forEach(t){for(let e=0,r=0;e<this.content.length;e++){let n=this.content[e];t(n,r,e),r+=n.nodeSize}}findDiffStart(t,e=0){return function t(e,r,n){for(let o=0;;o++){if(o==e.childCount||o==r.childCount)return e.childCount==r.childCount?null:n;let s=e.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 t=s.text,e=l.text,r=0;for(;t[r]==e[r];r++)n++;return r&&r<t.length&&r<e.length&&a(t.charCodeAt(r-1))&&i(t.charCodeAt(r))&&n--,n}if(s.content.size||l.content.size){let e=t(s.content,l.content,n+1);if(null!=e)return e}n+=s.nodeSize}}(this,t,e)}findDiffEnd(t,e=this.size,r=t.size){return function t(e,r,n,o){for(let s=e.childCount,l=r.childCount;;){if(0==s||0==l)return s==l?null:{a:n,b:o};let c=e.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 t=c.text,e=u.text,r=t.length,s=e.length;for(;r>0&&s>0&&t[r-1]==e[s-1];)r--,s--,n--,o--;return r&&s&&r<t.length&&a(t.charCodeAt(r-1))&&i(t.charCodeAt(r))&&(n++,o++),{a:n,b:o}}if(c.content.size||u.content.size){let e=t(c.content,u.content,n-1,o-1);if(e)return e}n-=h,o-=h}}(this,t,e,r)}findIndex(t){if(0==t)return l(0,t);if(t==this.size)return l(this.content.length,t);if(t>this.size||t<0)throw RangeError(`Position ${t} outside of fragment (${this})`);for(let e=0,r=0;;e++){let n=r+this.child(e).nodeSize;if(n>=t){if(n==t)return l(e+1,n);return l(e,r)}r=n}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(t=>t.toJSON()):null}static fromJSON(t,e){if(!e)return o.empty;if(!Array.isArray(e))throw RangeError("Invalid input for Fragment.fromJSON");return o.fromArray(e.map(t.nodeFromJSON))}static fromArray(t){if(!t.length)return o.empty;let e,r=0;for(let n=0;n<t.length;n++){let i=t[n];r+=i.nodeSize,n&&i.isText&&t[n-1].sameMarkup(i)?(e||(e=t.slice(0,n)),e[e.length-1]=i.withText(e[e.length-1].text+i.text)):e&&e.push(i)}return new o(e||t,r)}static from(t){if(!t)return o.empty;if(t instanceof o)return t;if(Array.isArray(t))return this.fromArray(t);if(t.attrs)return new o([t],t.nodeSize);throw RangeError("Can not convert "+t+" to a Fragment"+(t.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}o.empty=new o([],0);let s={index:0,offset:0};function l(t,e){return s.index=t,s.offset=e,s}function c(t,e){if(t===e)return!0;if(!(t&&"object"==typeof t)||!(e&&"object"==typeof e))return!1;let r=Array.isArray(t);if(Array.isArray(e)!=r)return!1;if(r){if(t.length!=e.length)return!1;for(let r=0;r<t.length;r++)if(!c(t[r],e[r]))return!1}else{for(let r in t)if(!(r in e)||!c(t[r],e[r]))return!1;for(let r in e)if(!(r in t))return!1}return!0}class u{constructor(t,e){this.type=t,this.attrs=e}addToSet(t){let e,r=!1;for(let n=0;n<t.length;n++){let i=t[n];if(this.eq(i))return t;if(this.type.excludes(i.type))e||(e=t.slice(0,n));else{if(i.type.excludes(this.type))return t;!r&&i.type.rank>this.type.rank&&(e||(e=t.slice(0,n)),e.push(this),r=!0),e&&e.push(i)}}return e||(e=t.slice()),r||e.push(this),e}removeFromSet(t){for(let e=0;e<t.length;e++)if(this.eq(t[e]))return t.slice(0,e).concat(t.slice(e+1));return t}isInSet(t){for(let e=0;e<t.length;e++)if(this.eq(t[e]))return!0;return!1}eq(t){return this==t||this.type==t.type&&c(this.attrs,t.attrs)}toJSON(){let t={type:this.type.name};for(let e in this.attrs){t.attrs=this.attrs;break}return t}static fromJSON(t,e){if(!e)throw RangeError("Invalid input for Mark.fromJSON");let r=t.marks[e.type];if(!r)throw RangeError(`There is no mark type ${e.type} in this schema`);let n=r.create(e.attrs);return r.checkAttrs(n.attrs),n}static sameSet(t,e){if(t==e)return!0;if(t.length!=e.length)return!1;for(let r=0;r<t.length;r++)if(!t[r].eq(e[r]))return!1;return!0}static setFrom(t){if(!t||Array.isArray(t)&&0==t.length)return u.none;if(t instanceof u)return[t];let e=t.slice();return e.sort((t,e)=>t.type.rank-e.type.rank),e}}u.none=[];class h extends Error{}class p{constructor(t,e,r){this.content=t,this.openStart=e,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(t,e){let r=function t(e,r,n,i,a,o){let{index:s,offset:l}=e.findIndex(r),c=e.maybeChild(s);if(l==r||c.isText)return o&&i<=0&&a<=0&&!o.canReplace(s,s,n)?null:e.cut(0,r).append(n).append(e.cut(r));let u=t(c.content,r-l-1,n,0==s?i-1:0,s==e.childCount-1?a-1:0,c);return u&&e.replaceChild(s,c.copy(u))}(this.content,t+this.openStart,e,this.openStart+1,this.openEnd+1);return r&&new p(r,this.openStart,this.openEnd)}removeBetween(t,e){return new p(function t(e,r,n){let{index:i,offset:a}=e.findIndex(r),o=e.maybeChild(i),{index:s,offset:l}=e.findIndex(n);if(a==r||o.isText){if(l!=n&&!e.child(s).isText)throw RangeError("Removing non-flat range");return e.cut(0,r).append(e.cut(n))}if(i!=s)throw RangeError("Removing non-flat range");return e.replaceChild(i,o.copy(t(o.content,r-a-1,n-a-1)))}(this.content,t+this.openStart,e+this.openStart),this.openStart,this.openEnd)}eq(t){return this.content.eq(t.content)&&this.openStart==t.openStart&&this.openEnd==t.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let t={content:this.content.toJSON()};return this.openStart>0&&(t.openStart=this.openStart),this.openEnd>0&&(t.openEnd=this.openEnd),t}static fromJSON(t,e){if(!e)return p.empty;let r=e.openStart||0,n=e.openEnd||0;if("number"!=typeof r||"number"!=typeof n)throw RangeError("Invalid input for Slice.fromJSON");return new p(o.fromJSON(t,e.content),r,n)}static maxOpen(t,e=!0){let r=0,n=0;for(let n=t.firstChild;n&&!n.isLeaf&&(e||!n.type.spec.isolating);n=n.firstChild)r++;for(let r=t.lastChild;r&&!r.isLeaf&&(e||!r.type.spec.isolating);r=r.lastChild)n++;return new p(t,r,n)}}function d(t,e){if(!e.type.compatibleContent(t.type))throw new h("Cannot join "+e.type.name+" onto "+t.type.name)}function f(t,e,r){let n=t.node(r);return d(n,e.node(r)),n}function m(t,e){let r=e.length-1;r>=0&&t.isText&&t.sameMarkup(e[r])?e[r]=t.withText(e[r].text+t.text):e.push(t)}function g(t,e,r,n){let i=(e||t).node(r),a=0,o=e?e.index(r):i.childCount;t&&(a=t.index(r),t.depth>r?a++:t.textOffset&&(m(t.nodeAfter,n),a++));for(let t=a;t<o;t++)m(i.child(t),n);e&&e.depth==r&&e.textOffset&&m(e.nodeBefore,n)}function A(t,e){if(!t.type.validContent(e))throw new h("Invalid content for node "+t.type.name);return t.copy(e)}function y(t,e,r){let n=[];return g(null,t,r,n),t.depth>r&&m(A(f(t,e,r+1),y(t,e,r+1)),n),g(e,null,r,n),new o(n)}p.empty=new p(o.empty,0,0);class v{constructor(t,e,r){this.pos=t,this.path=e,this.parentOffset=r,this.depth=e.length/3-1}resolveDepth(t){return null==t?this.depth:t<0?this.depth+t:t}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(t){return this.path[3*this.resolveDepth(t)]}index(t){return this.path[3*this.resolveDepth(t)+1]}indexAfter(t){return t=this.resolveDepth(t),this.index(t)+(t!=this.depth||this.textOffset?1:0)}start(t){return 0==(t=this.resolveDepth(t))?0:this.path[3*t-1]+1}end(t){return t=this.resolveDepth(t),this.start(t)+this.node(t).content.size}before(t){if(!(t=this.resolveDepth(t)))throw RangeError("There is no position before the top-level node");return t==this.depth+1?this.pos:this.path[3*t-1]}after(t){if(!(t=this.resolveDepth(t)))throw RangeError("There is no position after the top-level node");return t==this.depth+1?this.pos:this.path[3*t-1]+this.path[3*t].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let t=this.parent,e=this.index(this.depth);if(e==t.childCount)return null;let r=this.pos-this.path[this.path.length-1],n=t.child(e);return r?t.child(e).cut(r):n}get nodeBefore(){let t=this.index(this.depth),e=this.pos-this.path[this.path.length-1];return e?this.parent.child(t).cut(0,e):0==t?null:this.parent.child(t-1)}posAtIndex(t,e){e=this.resolveDepth(e);let r=this.path[3*e],n=0==e?0:this.path[3*e-1]+1;for(let e=0;e<t;e++)n+=r.child(e).nodeSize;return n}marks(){let t=this.parent,e=this.index();if(0==t.content.size)return u.none;if(this.textOffset)return t.child(e).marks;let r=t.maybeChild(e-1),n=t.maybeChild(e);if(!r){let t=r;r=n,n=t}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(t){let e=this.parent.maybeChild(this.index());if(!e||!e.isInline)return null;let r=e.marks,n=t.parent.maybeChild(t.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(t){for(let e=this.depth;e>0;e--)if(this.start(e)<=t&&this.end(e)>=t)return e;return 0}blockRange(t=this,e){if(t.pos<this.pos)return t.blockRange(this);for(let r=this.depth-(this.parent.inlineContent||this.pos==t.pos?1:0);r>=0;r--)if(t.pos<=this.end(r)&&(!e||e(this.node(r))))return new M(this,t,r);return null}sameParent(t){return this.pos-this.parentOffset==t.pos-t.parentOffset}max(t){return t.pos>this.pos?t:this}min(t){return t.pos<this.pos?t:this}toString(){let t="";for(let e=1;e<=this.depth;e++)t+=(t?"/":"")+this.node(e).type.name+"_"+this.index(e-1);return t+":"+this.parentOffset}static resolve(t,e){if(!(e>=0&&e<=t.content.size))throw RangeError("Position "+e+" out of range");let r=[],n=0,i=e;for(let e=t;;){let{index:t,offset:a}=e.content.findIndex(i),o=i-a;if(r.push(e,t,n+a),!o||(e=e.child(t)).isText)break;i=o-1,n+=a+1}return new v(e,r,i)}static resolveCached(t,e){let r=x.get(t);if(r)for(let t=0;t<r.elts.length;t++){let n=r.elts[t];if(n.pos==e)return n}else x.set(t,r=new R);let n=r.elts[r.i]=v.resolve(t,e);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(t,e,r){this.$from=t,this.$to=e,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(t,e,r,n=u.none){this.type=t,this.attrs=e,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(t){return this.content.child(t)}maybeChild(t){return this.content.maybeChild(t)}forEach(t){this.content.forEach(t)}nodesBetween(t,e,r,n=0){this.content.nodesBetween(t,e,r,n,this)}descendants(t){this.nodesBetween(0,this.content.size,t)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(t,e,r,n){return this.content.textBetween(t,e,r,n)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(t){return this==t||this.sameMarkup(t)&&this.content.eq(t.content)}sameMarkup(t){return this.hasMarkup(t.type,t.attrs,t.marks)}hasMarkup(t,e,r){return this.type==t&&c(this.attrs,e||t.defaultAttrs||S)&&u.sameSet(this.marks,r||u.none)}copy(t=null){return t==this.content?this:new w(this.type,this.attrs,t,this.marks)}mark(t){return t==this.marks?this:new w(this.type,this.attrs,this.content,t)}cut(t,e=this.content.size){return 0==t&&e==this.content.size?this:this.copy(this.content.cut(t,e))}slice(t,e=this.content.size,r=!1){if(t==e)return p.empty;let n=this.resolve(t),i=this.resolve(e),a=r?0:n.sharedDepth(e),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(t,e,r){var n=this.resolve(t),i=this.resolve(e);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 t(e,r,n,i){let a=e.index(i),s=e.node(i);if(a==r.index(i)&&i<e.depth-n.openStart){let o=t(e,r,n,i+1);return s.copy(s.content.replaceChild(a,o))}if(!n.content.size)return A(s,y(e,r,i));if(n.openStart||n.openEnd||e.depth!=i||r.depth!=i){let{start:t,end:a}=function(t,e){let r=e.depth-t.openStart,n=e.node(r).copy(t.content);for(let t=r-1;t>=0;t--)n=e.node(t).copy(o.from(n));return{start:n.resolveNoCache(t.openStart+r),end:n.resolveNoCache(n.content.size-t.openEnd-r)}}(n,e);return A(s,function t(e,r,n,i,a){let s=e.depth>a&&f(e,r,a+1),l=i.depth>a&&f(n,i,a+1),c=[];return g(null,e,a,c),s&&l&&r.index(a)==n.index(a)?(d(s,l),m(A(s,t(e,r,n,i,a+1)),c)):(s&&m(A(s,y(e,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)}(e,t,a,r,i))}{let t=e.parent,i=t.content;return A(t,i.cut(0,e.parentOffset).append(n.content).append(i.cut(r.parentOffset)))}}(n,i,r,0)}nodeAt(t){for(let e=this;;){let{index:r,offset:n}=e.content.findIndex(t);if(!(e=e.maybeChild(r)))return null;if(n==t||e.isText)return e;t-=n+1}}childAfter(t){let{index:e,offset:r}=this.content.findIndex(t);return{node:this.content.maybeChild(e),index:e,offset:r}}childBefore(t){if(0==t)return{node:null,index:0,offset:0};let{index:e,offset:r}=this.content.findIndex(t);if(r<t)return{node:this.content.child(e),index:e,offset:r};let n=this.content.child(e-1);return{node:n,index:e-1,offset:r-n.nodeSize}}resolve(t){return v.resolveCached(this,t)}resolveNoCache(t){return v.resolve(this,t)}rangeHasMark(t,e,r){let n=!1;return e>t&&this.nodesBetween(t,e,t=>(r.isInSet(t.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 t=this.type.name;return this.content.size&&(t+="("+this.content.toStringInner()+")"),N(this.marks,t)}contentMatchAt(t){let e=this.type.contentMatch.matchFragment(this.content,0,t);if(!e)throw Error("Called contentMatchAt on a node with invalid content");return e}canReplace(t,e,r=o.empty,n=0,i=r.childCount){let a=this.contentMatchAt(t).matchFragment(r,n,i),s=a&&a.matchFragment(this.content,e);if(!s||!s.validEnd)return!1;for(let t=n;t<i;t++)if(!this.type.allowsMarks(r.child(t).marks))return!1;return!0}canReplaceWith(t,e,r,n){if(n&&!this.type.allowsMarks(n))return!1;let i=this.contentMatchAt(t).matchType(r),a=i&&i.matchFragment(this.content,e);return!!a&&a.validEnd}canAppend(t){return t.content.size?this.canReplace(this.childCount,this.childCount,t.content):this.type.compatibleContent(t.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let t=u.none;for(let e=0;e<this.marks.length;e++){let r=this.marks[e];r.type.checkAttrs(r.attrs),t=r.addToSet(t)}if(!u.sameSet(t,this.marks))throw RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(t=>t.type.name)}`);this.content.forEach(t=>t.check())}toJSON(){let t={type:this.type.name};for(let e in this.attrs){t.attrs=this.attrs;break}return this.content.size&&(t.content=this.content.toJSON()),this.marks.length&&(t.marks=this.marks.map(t=>t.toJSON())),t}static fromJSON(t,e){let r;if(!e)throw RangeError("Invalid input for Node.fromJSON");if(e.marks){if(!Array.isArray(e.marks))throw RangeError("Invalid mark data for Node.fromJSON");r=e.marks.map(t.markFromJSON)}if("text"==e.type){if("string"!=typeof e.text)throw RangeError("Invalid text node in JSON");return t.text(e.text,r)}let n=o.fromJSON(t,e.content),i=t.nodeType(e.type).create(e.attrs,n,r);return i.type.checkAttrs(i.attrs),i}}w.prototype.text=void 0;class O extends w{constructor(t,e,r,n){if(super(t,e,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):N(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(t,e){return this.text.slice(t,e)}get nodeSize(){return this.text.length}mark(t){return t==this.marks?this:new O(this.type,this.attrs,this.text,t)}withText(t){return t==this.text?this:new O(this.type,this.attrs,t,this.marks)}cut(t=0,e=this.text.length){return 0==t&&e==this.text.length?this:this.withText(this.text.slice(t,e))}eq(t){return this.sameMarkup(t)&&this.text==t.text}toJSON(){let t=super.toJSON();return t.text=this.text,t}}function N(t,e){for(let r=t.length-1;r>=0;r--)e=t[r].type.name+"("+e+")";return e}class L{constructor(t){this.validEnd=t,this.next=[],this.wrapCache=[]}static parse(t,e){var r;let n,i=new _(t,e);if(null==i.next)return L.empty;let a=function t(e){let r=[];do r.push(function(e){let r=[];do r.push(function(e){let r=function(e){if(e.eat("(")){let r=t(e);return e.eat(")")||e.err("Missing closing paren"),r}if(/\W/.test(e.next))e.err("Unexpected token '"+e.next+"'");else{let t=(function(t,e){let r=t.nodeTypes,n=r[e];if(n)return[n];let i=[];for(let t in r){let n=r[t];n.isInGroup(e)&&i.push(n)}return 0==i.length&&t.err("No node type or group '"+e+"' found"),i})(e,e.next).map(t=>(null==e.inline?e.inline=t.isInline:e.inline!=t.isInline&&e.err("Mixing inline and block content"),{type:"name",value:t}));return e.pos++,1==t.length?t[0]:{type:"choice",exprs:t}}}(e);for(;;)if(e.eat("+"))r={type:"plus",expr:r};else if(e.eat("*"))r={type:"star",expr:r};else if(e.eat("?"))r={type:"opt",expr:r};else if(e.eat("{"))r=function(t,e){let r=T(t),n=r;return t.eat(",")&&(n="}"!=t.next?T(t):-1),t.eat("}")||t.err("Unclosed braced range"),{type:"range",min:r,max:n,expr:e}}(e,r);else break;return r}(e));while(e.next&&")"!=e.next&&"|"!=e.next)return 1==r.length?r[0]:{type:"seq",exprs:r}}(e));while(e.eat("|"))return 1==r.length?r[0]:{type:"choice",exprs:r}}(i);i.next&&i.err("Unexpected trailing text");let o=(r=function(t){let e=[[]];return i(function t(e,a){if("choice"==e.type)return e.exprs.reduce((e,r)=>e.concat(t(r,a)),[]);if("seq"==e.type)for(let n=0;;n++){let o=t(e.exprs[n],a);if(n==e.exprs.length-1)return o;i(o,a=r())}else if("star"==e.type){let o=r();return n(a,o),i(t(e.expr,o),o),[n(o)]}else if("plus"==e.type){let o=r();return i(t(e.expr,a),o),i(t(e.expr,o),o),[n(o)]}else if("opt"==e.type)return[n(a)].concat(t(e.expr,a));else if("range"==e.type){let o=a;for(let n=0;n<e.min;n++){let n=r();i(t(e.expr,o),n),o=n}if(-1==e.max)i(t(e.expr,o),o);else for(let a=e.min;a<e.max;a++){let a=r();n(o,a),i(t(e.expr,o),a),o=a}return[n(o)]}else if("name"==e.type)return[n(a,void 0,e.value)];else throw Error("Unknown expr type")}(t,0),r()),e;function r(){return e.push([])-1}function n(t,r,n){let i={term:n,to:r};return e[t].push(i),i}function i(t,e){t.forEach(t=>t.to=e)}}(a),n=Object.create(null),function t(e){let i=[];e.forEach(t=>{r[t].forEach(({term:t,to:e})=>{let n;if(t){for(let e=0;e<i.length;e++)i[e][0]==t&&(n=i[e][1]);I(r,e).forEach(e=>{n||i.push([t,n=[]]),-1==n.indexOf(e)&&n.push(e)})}})});let a=n[e.join(",")]=new L(e.indexOf(r.length-1)>-1);for(let e=0;e<i.length;e++){let r=i[e][1].sort(P);a.next.push({type:i[e][0],next:n[r.join(",")]||t(r)})}return a}(I(r,0)));return function(t,e){for(let r=0,n=[t];r<n.length;r++){let t=n[r],i=!t.validEnd,a=[];for(let e=0;e<t.next.length;e++){let{type:r,next:o}=t.next[e];a.push(r.name),i&&!(r.isText||r.hasRequiredAttrs())&&(i=!1),-1==n.indexOf(o)&&n.push(o)}i&&e.err("Only non-generatable nodes ("+a.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}(o,i),o}matchType(t){for(let e=0;e<this.next.length;e++)if(this.next[e].type==t)return this.next[e].next;return null}matchFragment(t,e=0,r=t.childCount){let n=this;for(let i=e;n&&i<r;i++)n=n.matchType(t.child(i).type);return n}get inlineContent(){return 0!=this.next.length&&this.next[0].type.isInline}get defaultType(){for(let t=0;t<this.next.length;t++){let{type:e}=this.next[t];if(!(e.isText||e.hasRequiredAttrs()))return e}return null}compatible(t){for(let e=0;e<this.next.length;e++)for(let r=0;r<t.next.length;r++)if(this.next[e].type==t.next[r].type)return!0;return!1}fillBefore(t,e=!1,r=0){let n=[this];return function i(a,s){let l=a.matchFragment(t,r);if(l&&(!e||l.validEnd))return o.from(s.map(t=>t.createAndFill()));for(let t=0;t<a.next.length;t++){let{type:e,next:r}=a.next[t];if(!(e.isText||e.hasRequiredAttrs())&&-1==n.indexOf(r)){n.push(r);let t=i(r,s.concat(e));if(t)return t}}return null}(this,[])}findWrapping(t){for(let e=0;e<this.wrapCache.length;e+=2)if(this.wrapCache[e]==t)return this.wrapCache[e+1];let e=this.computeWrapping(t);return this.wrapCache.push(t,e),e}computeWrapping(t){let e=Object.create(null),r=[{match:this,type:null,via:null}];for(;r.length;){let n=r.shift(),i=n.match;if(i.matchType(t)){let t=[];for(let e=n;e.type;e=e.via)t.push(e.type);return t.reverse()}for(let t=0;t<i.next.length;t++){let{type:a,next:o}=i.next[t];a.isLeaf||a.hasRequiredAttrs()||a.name in e||n.type&&!o.validEnd||(r.push({match:a.contentMatch,type:a,via:n}),e[a.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(t){if(t>=this.next.length)throw RangeError(`There's no ${t}th edge in this content match`);return this.next[t]}toString(){let t=[];return!function e(r){t.push(r);for(let n=0;n<r.next.length;n++)-1==t.indexOf(r.next[n].next)&&e(r.next[n].next)}(this),t.map((e,r)=>{let n=r+(e.validEnd?"*":" ")+" ";for(let r=0;r<e.next.length;r++)n+=(r?", ":"")+e.next[r].type.name+"->"+t.indexOf(e.next[r].next);return n}).join("\n")}}L.empty=new L(!0);class _{constructor(t,e){this.string=t,this.nodeTypes=e,this.inline=null,this.pos=0,this.tokens=t.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(t){return this.next==t&&(this.pos++||!0)}err(t){throw SyntaxError(t+" (in content expression '"+this.string+"')")}}function T(t){/\D/.test(t.next)&&t.err("Expected number, got '"+t.next+"'");let e=Number(t.next);return t.pos++,e}function P(t,e){return e-t}function I(t,e){let r=[];return function e(n){let i=t[n];if(1==i.length&&!i[0].term)return e(i[0].to);r.push(n);for(let t=0;t<i.length;t++){let{term:n,to:a}=i[t];n||-1!=r.indexOf(a)||e(a)}}(e),r.sort(P)}function C(t){let e=Object.create(null);for(let r in t){let n=t[r];if(!n.hasDefault)return null;e[r]=n.default}return e}function k(t,e){let r=Object.create(null);for(let n in t){let i=e&&e[n];if(void 0===i){let e=t[n];if(e.hasDefault)i=e.default;else throw RangeError("No value supplied for attribute "+n)}r[n]=i}return r}function F(t,e,r,n){for(let i in e)if(!(i in t))throw RangeError(`Unsupported attribute ${i} for ${r} of type ${n}`);for(let r in t)t[r].validate&&t[r].validate(e[r])}function X(t,e){let r=Object.create(null);if(e)for(let n in e)r[n]=new W(t,n,e[n]);return r}class U{constructor(t,e,r){this.name=t,this.schema=e,this.spec=r,this.markSet=null,this.groups=r.group?r.group.split(" "):[],this.attrs=X(t,r.attrs),this.defaultAttrs=C(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(r.inline||"text"==t),this.isText="text"==t}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==L.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(t){return this.groups.indexOf(t)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let t in this.attrs)if(this.attrs[t].isRequired)return!0;return!1}compatibleContent(t){return this==t||this.contentMatch.compatible(t.contentMatch)}computeAttrs(t){return!t&&this.defaultAttrs?this.defaultAttrs:k(this.attrs,t)}create(t=null,e,r){if(this.isText)throw Error("NodeType.create can't construct text nodes");return new w(this,this.computeAttrs(t),o.from(e),u.setFrom(r))}createChecked(t=null,e,r){return e=o.from(e),this.checkContent(e),new w(this,this.computeAttrs(t),e,u.setFrom(r))}createAndFill(t=null,e,r){if(t=this.computeAttrs(t),(e=o.from(e)).size){let t=this.contentMatch.fillBefore(e);if(!t)return null;e=t.append(e)}let n=this.contentMatch.matchFragment(e),i=n&&n.fillBefore(o.empty,!0);return i?new w(this,t,e.append(i),u.setFrom(r)):null}validContent(t){let e=this.contentMatch.matchFragment(t);if(!e||!e.validEnd)return!1;for(let e=0;e<t.childCount;e++)if(!this.allowsMarks(t.child(e).marks))return!1;return!0}checkContent(t){if(!this.validContent(t))throw RangeError(`Invalid content for node ${this.name}: ${t.toString().slice(0,50)}`)}checkAttrs(t){F(this.attrs,t,"node",this.name)}allowsMarkType(t){return null==this.markSet||this.markSet.indexOf(t)>-1}allowsMarks(t){if(null==this.markSet)return!0;for(let e=0;e<t.length;e++)if(!this.allowsMarkType(t[e].type))return!1;return!0}allowedMarks(t){let e;if(null==this.markSet)return t;for(let r=0;r<t.length;r++)this.allowsMarkType(t[r].type)?e&&e.push(t[r]):e||(e=t.slice(0,r));return e?e.length?e:u.none:t}static compile(t,e){let r=Object.create(null);t.forEach((t,n)=>r[t]=new U(t,e,n));let n=e.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 t in r.text.attrs)throw RangeError("The text node type should not have attributes");return r}}class W{constructor(t,e,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 ${e} on type ${t}, got ${i}`)}):r.validate}get isRequired(){return!this.hasDefault}}class V{constructor(t,e,r,n){this.name=t,this.rank=e,this.schema=r,this.spec=n,this.attrs=X(t,n.attrs),this.excluded=null;let i=C(this.attrs);this.instance=i?new u(this,i):null}create(t=null){return!t&&this.instance?this.instance:new u(this,k(this.attrs,t))}static compile(t,e){let r=Object.create(null),n=0;return t.forEach((t,i)=>r[t]=new V(t,n++,e,i)),r}removeFromSet(t){for(var e=0;e<t.length;e++)t[e].type==this&&(t=t.slice(0,e).concat(t.slice(e+1)),e--);return t}isInSet(t){for(let e=0;e<t.length;e++)if(t[e].type==this)return t[e]}checkAttrs(t){F(this.attrs,t,"mark",this.name)}excludes(t){return this.excluded.indexOf(t)>-1}}class E{constructor(t){this.linebreakReplacement=null,this.cached=Object.create(null);let e=this.spec={};for(let r in t)e[r]=t[r];e.nodes=n.from(t.nodes),e.marks=n.from(t.marks||{}),this.nodes=U.compile(this.spec.nodes,this),this.marks=V.compile(this.spec.marks,this);let r=Object.create(null);for(let t in this.nodes){if(t in this.marks)throw RangeError(t+" can not be both a node and a mark");let e=this.nodes[t],n=e.spec.content||"",i=e.spec.marks;if(e.contentMatch=r[n]||(r[n]=L.parse(n,this.nodes)),e.inlineContent=e.contentMatch.inlineContent,e.spec.linebreakReplacement){if(this.linebreakReplacement)throw RangeError("Multiple linebreak nodes defined");if(!e.isInline||!e.isLeaf)throw RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=e}e.markSet="_"==i?null:i?Y(this,i.split(" ")):""!=i&&e.inlineContent?null:[]}for(let t in this.marks){let e=this.marks[t],r=e.spec.excludes;e.excluded=null==r?[e]:""==r?[]:Y(this,r.split(" "))}this.nodeFromJSON=t=>w.fromJSON(this,t),this.markFromJSON=t=>u.fromJSON(this,t),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(t,e=null,r,n){if("string"==typeof t)t=this.nodeType(t);else if(t instanceof U){if(t.schema!=this)throw RangeError("Node type from different schema used ("+t.name+")")}else throw RangeError("Invalid node type: "+t);return t.createChecked(e,r,n)}text(t,e){let r=this.nodes.text;return new O(r,r.defaultAttrs,t,u.setFrom(e))}mark(t,e){return"string"==typeof t&&(t=this.marks[t]),t.create(e)}nodeType(t){let e=this.nodes[t];if(!e)throw RangeError("Unknown node type: "+t);return e}}function Y(t,e){let r=[];for(let n=0;n<e.length;n++){let i=e[n],a=t.marks[i],o=a;if(a)r.push(a);else for(let e in t.marks){let n=t.marks[e];("_"==i||n.spec.group&&n.spec.group.split(" ").indexOf(i)>-1)&&r.push(o=n)}if(!o)throw SyntaxError("Unknown mark type: '"+e[n]+"'")}return r}class D{constructor(t,e){this.schema=t,this.rules=e,this.tags=[],this.styles=[];let r=this.matchedStyles=[];e.forEach(t=>{if(null!=t.tag)this.tags.push(t);else if(null!=t.style){let e=/[^=]*/.exec(t.style)[0];0>r.indexOf(e)&&r.push(e),this.styles.push(t)}}),this.normalizeLists=!this.tags.some(e=>{if(!/^(ul|ol)\b/.test(e.tag)||!e.node)return!1;let r=t.nodes[e.node];return r.contentMatch.matchType(r)})}parse(t,e={}){let r=new G(this,e,!1);return r.addAll(t,u.none,e.from,e.to),r.finish()}parseSlice(t,e={}){let r=new G(this,e,!0);return r.addAll(t,u.none,e.from,e.to),p.maxOpen(r.finish())}matchTag(t,e,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=t,i=r.tag,(n.matches||n.msMatchesSelector||n.webkitMatchesSelector||n.mozMatchesSelector).call(n,i)&&(void 0===r.namespace||t.namespaceURI==r.namespace)&&(!r.context||e.matchesContext(r.context))){if(r.getAttrs){let e=r.getAttrs(t);if(!1===e)continue;r.attrs=e||void 0}return r}}}matchStyle(t,e,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(t)&&(!n.context||r.matchesContext(n.context))&&(!(a.length>t.length)||61==a.charCodeAt(t.length)&&a.slice(t.length+1)==e)){if(n.getAttrs){let t=n.getAttrs(e);if(!1===t)continue;n.attrs=t||void 0}return n}}}static schemaRules(t){let e=[];function r(t){let r=null==t.priority?50:t.priority,n=0;for(;n<e.length;n++){let t=e[n];if((null==t.priority?50:t.priority)<r)break}e.splice(n,0,t)}for(let e in t.marks){let n=t.marks[e].spec.parseDOM;n&&n.forEach(t=>{r(t=H(t)),t.mark||t.ignore||t.clearMark||(t.mark=e)})}for(let e in t.nodes){let n=t.nodes[e].spec.parseDOM;n&&n.forEach(t=>{r(t=H(t)),t.node||t.ignore||t.mark||(t.node=e)})}return e}static fromSchema(t){return t.cached.domParser||(t.cached.domParser=new D(t,D.schemaRules(t)))}}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},Z={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},B={ol:!0,ul:!0};function K(t,e,r){return null!=e?!!e|2*("full"===e):t&&"pre"==t.whitespace?3:-5&r}class ${constructor(t,e,r,n,i,a){this.type=t,this.attrs=e,this.marks=r,this.solid=n,this.options=a,this.content=[],this.activeMarks=u.none,this.match=i||(4&a?null:t.contentMatch)}findWrapping(t){if(!this.match){if(!this.type)return[];let e=this.type.contentMatch.fillBefore(o.from(t));if(e)this.match=this.type.contentMatch.matchFragment(e);else{let e=this.type.contentMatch,r;return(r=e.findWrapping(t.type))?(this.match=e,r):null}}return this.match.findWrapping(t.type)}finish(t){if(!(1&this.options)){let t=this.content[this.content.length-1],e;t&&t.isText&&(e=/[ \t\r\n\u000c]+$/.exec(t.text))&&(t.text.length==e[0].length?this.content.pop():this.content[this.content.length-1]=t.withText(t.text.slice(0,t.text.length-e[0].length)))}let e=o.from(this.content);return!t&&this.match&&(e=e.append(this.match.fillBefore(o.empty,!0))),this.type?this.type.create(this.attrs,e,this.marks):e}inlineContext(t){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:t.parentNode&&!Q.hasOwnProperty(t.parentNode.nodeName.toLowerCase())}}class G{constructor(t,e,r){this.parser=t,this.options=e,this.isOpen=r,this.open=0,this.localPreserveWS=!1;let n=e.topNode,i,a=K(null,e.preserveWhitespace,0)|4*!!r;i=n?new $(n.type,n.attrs,u.none,!0,e.topMatch||n.type.contentMatch,a):r?new $(null,null,u.none,!0,null,a):new $(t.schema.topNodeType,null,u.none,!0,null,a),this.nodes=[i],this.find=e.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(t,e){3==t.nodeType?this.addTextNode(t,e):1==t.nodeType&&this.addElement(t,e)}addTextNode(t,e){let r=t.nodeValue,n=this.top,i=2&n.options?"full":this.localPreserveWS||(1&n.options)>0,{schema:a}=this.parser;if("full"===i||n.inlineContext(t)||/[^ \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 t=r.split(/\r?\n|\r/);for(let r=0;r<t.length;r++)r&&this.insertNode(a.linebreakReplacement.create(),e,!0),t[r]&&this.insertNode(a.text(t[r]),e,!/\S/.test(t[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 e=n.content[n.content.length-1],i=t.previousSibling;(!e||i&&"BR"==i.nodeName||e.isText&&/[ \t\r\n\u000c]$/.test(e.text))&&(r=r.slice(1))}r&&this.insertNode(a.text(r),e,!/\S/.test(r)),this.findInText(t)}else this.findInside(t)}addElement(t,e,r){let n=this.localPreserveWS,i=this.top;("PRE"==t.tagName||/pre/.test(t.style&&t.style.whiteSpace))&&(this.localPreserveWS=!0);let a=t.nodeName.toLowerCase(),o;B.hasOwnProperty(a)&&this.parser.normalizeLists&&function(t){for(let e=t.firstChild,r=null;e;e=e.nextSibling){let t=1==e.nodeType?e.nodeName.toLowerCase():null;t&&B.hasOwnProperty(t)&&r?(r.appendChild(e),e=r):"li"==t?r=e:t&&(r=null)}}(t);let s=this.options.ruleFromNode&&this.options.ruleFromNode(t)||(o=this.parser.matchTag(t,this,r));o:if(s?s.ignore:Z.hasOwnProperty(a))this.findInside(t),this.ignoreFallback(t,e);else if(!s||s.skip||s.closeParent){s&&s.closeParent?this.open=Math.max(0,this.open-1):s&&s.skip.nodeType&&(t=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(!t.firstChild){this.leafFallback(t,e);break o}let o=s&&s.skip?e:this.readStyles(t,e);o&&this.addAll(t,o),r&&this.sync(i),this.needsBlock=n}else{let r=this.readStyles(t,e);r&&this.addElementByRule(t,s,r,!1===s.consuming?o:void 0)}this.localPreserveWS=n}leafFallback(t,e){"BR"==t.nodeName&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(t.ownerDocument.createTextNode("\n"),e)}ignoreFallback(t,e){"BR"!=t.nodeName||this.top.type&&this.top.type.inlineContent||this.findPlace(this.parser.schema.text("-"),e,!0)}readStyles(t,e){let r=t.style;if(r&&r.length)for(let t=0;t<this.parser.matchedStyles.length;t++){let n=this.parser.matchedStyles[t],i=r.getPropertyValue(n);if(i)for(let t;;){let r=this.parser.matchStyle(n,i,this,t);if(!r)break;if(r.ignore)return null;if(e=r.clearMark?e.filter(t=>!r.clearMark(t)):e.concat(this.parser.schema.marks[r.mark].create(r.attrs)),!1===r.consuming)t=r;else break}}return e}addElementByRule(t,e,r,n){let i,a;if(e.node)if((a=this.parser.schema.nodes[e.node]).isLeaf)this.insertNode(a.create(e.attrs),r,"BR"==t.nodeName)||this.leafFallback(t,r);else{let t=this.enter(a,e.attrs||null,r,e.preserveWhitespace);t&&(i=!0,r=t)}else{let t=this.parser.schema.marks[e.mark];r=r.concat(t.create(e.attrs))}let o=this.top;if(a&&a.isLeaf)this.findInside(t);else if(n)this.addElement(t,r,n);else if(e.getContent)this.findInside(t),e.getContent(t,this.parser.schema).forEach(t=>this.insertNode(t,r,!1));else{let n=t;"string"==typeof e.contentElement?n=t.querySelector(e.contentElement):"function"==typeof e.contentElement?n=e.contentElement(t):e.contentElement&&(n=e.contentElement),this.findAround(t,n,!0),this.addAll(n,r),this.findAround(t,n,!1)}i&&this.sync(o)&&this.open--}addAll(t,e,r,n){let i=r||0;for(let a=r?t.childNodes[r]:t.firstChild,o=null==n?null:t.childNodes[n];a!=o;a=a.nextSibling,++i)this.findAtPoint(t,i),this.addDOM(a,e);this.findAtPoint(t,i)}findPlace(t,e,r){let n,i;for(let e=this.open,a=0;e>=0;e--){let o=this.nodes[e],s=o.findWrapping(t);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 t=0;t<n.length;t++)e=this.enterInner(n[t],null,e,!1);return e}insertNode(t,e,r){if(t.isInline&&this.needsBlock&&!this.top.type){let t=this.textblockFromContext();t&&(e=this.enterInner(t,null,e))}let n=this.findPlace(t,e,r);if(n){this.closeExtra();let e=this.top;e.match&&(e.match=e.match.matchType(t.type));let r=u.none;for(let i of n.concat(t.marks))(e.type?e.type.allowsMarkType(i.type):z(i.type,t.type))&&(r=i.addToSet(r));return e.content.push(t.mark(r)),!0}return!1}enter(t,e,r,n){let i=this.findPlace(t.create(e),r,!1);return i&&(i=this.enterInner(t,e,r,!0,n)),i}enterInner(t,e,r,n=!1,i){this.closeExtra();let a=this.top;a.match=a.match&&a.match.matchType(t);let o=K(t,i,a.options);4&a.options&&0==a.content.length&&(o|=4);let s=u.none;return r=r.filter(e=>(a.type?!a.type.allowsMarkType(e.type):!z(e.type,t))||(s=e.addToSet(s),!1)),this.nodes.push(new $(t,e,s,n,null,o)),this.open++,r}closeExtra(t=!1){let e=this.nodes.length-1;if(e>this.open){for(;e>this.open;e--)this.nodes[e-1].content.push(this.nodes[e].finish(t));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(t){for(let e=this.open;e>=0;e--)if(this.nodes[e]==t)return this.open=e,!0;else this.localPreserveWS&&(this.nodes[e].options|=1);return!1}get currentPos(){this.closeExtra();let t=0;for(let e=this.open;e>=0;e--){let r=this.nodes[e].content;for(let e=r.length-1;e>=0;e--)t+=r[e].nodeSize;e&&t++}return t}findAtPoint(t,e){if(this.find)for(let r=0;r<this.find.length;r++)this.find[r].node==t&&this.find[r].offset==e&&(this.find[r].pos=this.currentPos)}findInside(t){if(this.find)for(let e=0;e<this.find.length;e++)null==this.find[e].pos&&1==t.nodeType&&t.contains(this.find[e].node)&&(this.find[e].pos=this.currentPos)}findAround(t,e,r){if(t!=e&&this.find)for(let n=0;n<this.find.length;n++)null==this.find[n].pos&&1==t.nodeType&&t.contains(this.find[n].node)&&e.compareDocumentPosition(this.find[n].node)&(r?2:4)&&(this.find[n].pos=this.currentPos)}findInText(t){if(this.find)for(let e=0;e<this.find.length;e++)this.find[e].node==t&&(this.find[e].pos=this.currentPos-(t.nodeValue.length-this.find[e].offset))}matchesContext(t){if(t.indexOf("|")>-1)return t.split(/\s*\|\s*/).some(this.matchesContext,this);let e=t.split("/"),r=this.options.context,n=!this.isOpen&&(!r||r.parent.type==this.nodes[0].type),i=-(r?r.depth+1:0)+ +!n,a=(t,o)=>{for(;t>=0;t--){let s=e[t];if(""==s){if(t==e.length-1||0==t)continue;for(;o>=i;o--)if(a(t-1,o))return!0;return!1}{let t=o>0||0==o&&n?this.nodes[o].type:r&&o>=i?r.node(o-i).type:null;if(!t||t.name!=s&&!t.isInGroup(s))return!1;o--}}return!0};return a(e.length-1,this.open)}textblockFromContext(){let t=this.options.context;if(t)for(let e=t.depth;e>=0;e--){let r=t.node(e).contentMatchAt(t.indexAfter(e)).defaultType;if(r&&r.isTextblock&&r.defaultAttrs)return r}for(let t in this.parser.schema.nodes){let e=this.parser.schema.nodes[t];if(e.isTextblock&&e.defaultAttrs)return e}}}function H(t){let e={};for(let r in t)e[r]=t[r];return e}function z(t,e){let r=e.schema.nodes;for(let n in r){let i=r[n];if(!i.allowsMarkType(t))continue;let a=[],o=t=>{a.push(t);for(let r=0;r<t.edgeCount;r++){let{type:n,next:i}=t.edge(r);if(n==e||0>a.indexOf(i)&&o(i))return!0}};if(o(i.contentMatch))return!0}}class J{constructor(t,e){this.nodes=t,this.marks=e}serializeFragment(t,e={},r){r||(r=q(e).createDocumentFragment());let n=r,i=[];return t.forEach(t=>{if(i.length||t.marks.length){let r=0,a=0;for(;r<i.length&&a<t.marks.length;){let e=t.marks[a];if(!this.marks[e.type.name]){a++;continue}if(!e.eq(i[r][0])||!1===e.type.spec.spanning)break;r++,a++}for(;r<i.length;)n=i.pop()[1];for(;a<t.marks.length;){let r=t.marks[a++],o=this.serializeMark(r,t.isInline,e);o&&(i.push([r,n]),n.appendChild(o.dom),n=o.contentDOM||o.dom)}}n.appendChild(this.serializeNodeInner(t,e))}),r}serializeNodeInner(t,e){if(t.isText)return q(e).createTextNode(t.text);let{dom:r,contentDOM:n}=te(q(e),this.nodes[t.type.name](t),null,t.attrs);if(n){if(t.isLeaf)throw RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(t.content,e,n)}return r}serializeNode(t,e={}){let r=this.serializeNodeInner(t,e);for(let n=t.marks.length-1;n>=0;n--){let i=this.serializeMark(t.marks[n],t.isInline,e);i&&((i.contentDOM||i.dom).appendChild(r),r=i.dom)}return r}serializeMark(t,e,r={}){let n=this.marks[t.type.name];return n&&te(q(r),n(t,e),null,t.attrs)}static renderSpec(t,e,r=null,n){return"string"==typeof e?{dom:t.createTextNode(e)}:te(t,e,r,n)}static fromSchema(t){return t.cached.domSerializer||(t.cached.domSerializer=new J(this.nodesFromSchema(t),this.marksFromSchema(t)))}static nodesFromSchema(t){let e=j(t.nodes);return e.text||(e.text=t=>t.text),e}static marksFromSchema(t){return j(t.marks)}}function j(t){let e={};for(let r in t){let n=t[r].spec.toDOM;n&&(e[r]=n)}return e}function q(t){return t.document||window.document}let tt=new WeakMap;function te(t,e,r,n){let i,a,o;if(1==e.nodeType)return{dom:e};if(e.dom&&1==e.dom.nodeType)return e;let s=e[0],l;if("string"!=typeof s)throw RangeError("Invalid array passed to renderSpec");if(n&&(void 0===(a=tt.get(n))&&tt.set(n,(o=null,!function t(e){if(e&&"object"==typeof e)if(Array.isArray(e))if("string"==typeof e[0])o||(o=[]),o.push(e);else for(let r=0;r<e.length;r++)t(e[r]);else for(let r in e)t(e[r])}(n),a=o)),l=a)&&l.indexOf(e)>-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?t.createElementNS(r,s):t.createElement(s),h=e[1],p=1;if(h&&"object"==typeof h&&null==h.nodeType&&!Array.isArray(h)){for(let t in p=2,h)if(null!=h[t]){let e=t.indexOf(" ");e>0?u.setAttributeNS(t.slice(0,e),t.slice(e+1),h[t]):"style"==t&&u.style?u.style.cssText=h[t]:u.setAttribute(t,h[t])}}for(let a=p;a<e.length;a++){let o=e[a];if(0===o){if(a<e.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(t.createTextNode(o));else{let{dom:e,contentDOM:a}=te(t,o,r,n);if(u.appendChild(e),a){if(i)throw RangeError("Multiple content holes");i=a}}}return{dom:u,contentDOM:i}}},57644(t,e,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:t=>["h"+t.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:t=>({src:t.getAttribute("src"),title:t.getAttribute("title"),alt:t.getAttribute("alt")})}],toDOM(t){let{src:e,alt:r,title:n}=t.attrs;return["img",{src:e,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:t=>({href:t.getAttribute("href"),title:t.getAttribute("title")})}],toDOM(t){let{href:e,title:r}=t.attrs;return["a",{href:e,title:r},0]}},em:{parseDOM:[{tag:"i"},{tag:"em"},{style:"font-style=italic"},{style:"font-style=normal",clearMark:t=>"em"==t.type.name}],toDOM:()=>u},strong:{parseDOM:[{tag:"strong"},{tag:"b",getAttrs:t=>"normal"!=t.style.fontWeight&&null},{style:"font-weight=400",clearMark:t=>"strong"==t.type.name},{style:"font-weight",getAttrs:t=>/^(bold(er)?|[5-9]\d{2,})$/.test(t)&&null}],toDOM:()=>h},code:{code:!0,parseDOM:[{tag:"code"}],toDOM:()=>p}};new n.Sj({nodes:c,marks:d}),r.d(e,{},{Z8:d,a9:c})},3772(t,e,r){var n=r(38262),i=r(96294),a=r(42845);let o=["li",0];function s(t,e=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(t,e,r,a=null){let o=!1,s=e,l=e.$from.doc;if(e.depth>=2&&e.$from.node(e.depth-1).type.compatibleContent(r)&&0==e.startIndex){if(0==e.$from.index(e.depth-1))return!1;let t=l.resolve(e.start-2);s=new i.u$(t,t,e.depth),e.endIndex<e.parent.childCount&&(e=new i.u$(e.$from,l.resolve(e.$to.end(e.depth)),e.depth)),o=!0}let c=(0,n.oM)(s,r,a,e);return!!c&&(t&&function(t,e,r,a,o){let s=i.FK.empty;for(let t=r.length-1;t>=0;t--)s=i.FK.from(r[t].type.create(r[t].attrs,s));t.step(new n.Wg(e.start-2*!!a,e.end,e.start,e.end,new i.Ji(s,0,0),r.length,!0));let l=0;for(let t=0;t<r.length;t++)r[t].type==o&&(l=t+1);let c=r.length-l,u=e.start+r.length-2*!!a,h=e.parent;for(let r=e.startIndex,i=e.endIndex,a=!0;r<i;r++,a=!1)!a&&(0,n.zy)(t.doc,u,c)&&(t.split(u,c),u+=2*c),u+=h.child(r).nodeSize}(t,e,c,o,r),!0)}(c,l,t,e)&&(a&&a(c.scrollIntoView()),!0)}}function l(t,e){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!=t)return!1;if(0==s.parent.content.size&&s.node(-1).childCount==s.indexAfter(-1)){if(3==s.depth||s.node(-3).type!=t||s.index(-2)!=s.node(-2).childCount-1)return!1;if(o){let e=i.FK.empty,n=s.index(-1)?1:s.index(-2)?2:3;for(let t=s.depth-n;t>=s.depth-3;t--)e=i.FK.from(s.node(t).copy(e));let l=s.indexAfter(-1)<s.node(-2).childCount?1:s.indexAfter(-2)<s.node(-3).childCount?2:3;e=e.append(i.FK.from(t.createAndFill()));let c=s.before(s.depth-(n-1)),u=r.tr.replace(c,s.after(-l),new i.Ji(e,4-n,0)),h=-1;u.doc.nodesBetween(c,u.doc.content.size,(t,e)=>{if(h>-1)return!1;t.isTextblock&&0==t.content.size&&(h=e+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?[e?{type:t,attrs:e}: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(t){return function(e,r){let{$from:a,$to:o}=e.selection,s=a.blockRange(o,e=>e.childCount>0&&e.firstChild.type==t);return!!s&&(!r||(a.node(s.depth-1).type==t?function(t,e,r,a){let o=t.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),e(o.scrollIntoView()),!0}(e,r,t,s):function(t,e,r){let a=t.tr,o=r.parent;for(let t=r.end,e=r.endIndex-1,n=r.startIndex;e>n;e--)t-=o.child(e).nodeSize,a.delete(t-1,t+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)),e(a.scrollIntoView()),!0}(e,r,s)))}}function u(t){return function(e,r){let{$from:a,$to:o}=e.selection,s=a.blockRange(o,e=>e.childCount>0&&e.firstChild.type==t);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!=t)return!1;if(r){let a=u.lastChild&&u.lastChild.type==c.type,o=i.FK.from(a?t.create():null),l=new i.Ji(i.FK.from(t.create(null,i.FK.from(c.type.create(null,o)))),a?3:1,0),h=s.start,p=s.end;r(e.tr.step(new n.Wg(h-(a?3:1),p,h,p,l,1,!0)).scrollIntoView())}return!0}}r.d(e,{$B:()=>u,Sd:()=>s,T2:()=>c,wn:()=>l},{Aw:{parseDOM:[{tag:"li"}],toDOM:()=>o,defining:!0}})},42845(t,e,r){var n=r(96294),i=r(38262);let a=Object.create(null);class o{constructor(t,e,r){this.$anchor=t,this.$head=e,this.ranges=r||[new s(t.min(e),t.max(e))]}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 t=this.ranges;for(let e=0;e<t.length;e++)if(t[e].$from.pos!=t[e].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(t,e=n.Ji.empty){let r=e.content.lastChild,i=null;for(let t=0;t<e.openEnd;t++)i=r,r=r.lastChild;let a=t.steps.length,o=this.ranges;for(let s=0;s<o.length;s++){let{$from:l,$to:c}=o[s],u=t.mapping.slice(a);t.replaceRange(u.map(l.pos),u.map(c.pos),s?n.Ji.empty:e),0==s&&A(t,a,(r?r.isInline:i&&i.isTextblock)?-1:1)}}replaceWith(t,e){let r=t.steps.length,n=this.ranges;for(let i=0;i<n.length;i++){let{$from:a,$to:o}=n[i],s=t.mapping.slice(r),l=s.map(a.pos),c=s.map(o.pos);i?t.deleteRange(l,c):(t.replaceRangeWith(l,c,e),A(t,r,e.isInline?-1:1))}}static findFrom(t,e,r=!1){let n=t.parent.inlineContent?new u(t):g(t.node(0),t.parent,t.pos,t.index(),e,r);if(n)return n;for(let n=t.depth-1;n>=0;n--){let i=e<0?g(t.node(0),t.node(n),t.before(n+1),t.index(n),e,r):g(t.node(0),t.node(n),t.after(n+1),t.index(n)+1,e,r);if(i)return i}return null}static near(t,e=1){return this.findFrom(t,e)||this.findFrom(t,-e)||new f(t.node(0))}static atStart(t){return g(t,t,0,0,1)||new f(t)}static atEnd(t){return g(t,t,t.content.size,t.childCount,-1)||new f(t)}static fromJSON(t,e){if(!e||!e.type)throw RangeError("Invalid input for Selection.fromJSON");let r=a[e.type];if(!r)throw RangeError(`No selection type ${e.type} defined`);return r.fromJSON(t,e)}static jsonID(t,e){if(t in a)throw RangeError("Duplicate use of selection JSON ID "+t);return a[t]=e,e.prototype.jsonID=t,e}getBookmark(){return u.between(this.$anchor,this.$head).getBookmark()}}o.prototype.visible=!0;class s{constructor(t,e){this.$from=t,this.$to=e}}let l=!1;function c(t){l||t.parent.inlineContent||(l=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+t.parent.type.name+")"))}class u extends o{constructor(t,e=t){c(t),c(e),super(t,e)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(t,e){let r=t.resolve(e.map(this.head));if(!r.parent.inlineContent)return o.near(r);let n=t.resolve(e.map(this.anchor));return new u(n.parent.inlineContent?n:r,r)}replace(t,e=n.Ji.empty){if(super.replace(t,e),e==n.Ji.empty){let e=this.$from.marksAcross(this.$to);e&&t.ensureMarks(e)}}eq(t){return t instanceof u&&t.anchor==this.anchor&&t.head==this.head}getBookmark(){return new h(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(t,e){if("number"!=typeof e.anchor||"number"!=typeof e.head)throw RangeError("Invalid input for TextSelection.fromJSON");return new u(t.resolve(e.anchor),t.resolve(e.head))}static create(t,e,r=e){let n=t.resolve(e);return new this(n,r==e?n:t.resolve(r))}static between(t,e,r){let n=t.pos-e.pos;if((!r||n)&&(r=n>=0?1:-1),!e.parent.inlineContent){let t=o.findFrom(e,r,!0)||o.findFrom(e,-r,!0);if(!t)return o.near(e,r);e=t.$head}return t.parent.inlineContent||(0==n?t=e:(t=(o.findFrom(t,-r,!0)||o.findFrom(t,r,!0)).$anchor).pos<e.pos!=n<0&&(t=e)),new u(t,e)}}o.jsonID("text",u);class h{constructor(t,e){this.anchor=t,this.head=e}map(t){return new h(t.map(this.anchor),t.map(this.head))}resolve(t){return u.between(t.resolve(this.anchor),t.resolve(this.head))}}class p extends o{constructor(t){let e=t.nodeAfter,r=t.node(0).resolve(t.pos+e.nodeSize);super(t,r),this.node=e}map(t,e){let{deleted:r,pos:n}=e.mapResult(this.anchor),i=t.resolve(n);return r?o.near(i):new p(i)}content(){return new n.Ji(n.FK.from(this.node),0,0)}eq(t){return t instanceof p&&t.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new d(this.anchor)}static fromJSON(t,e){if("number"!=typeof e.anchor)throw RangeError("Invalid input for NodeSelection.fromJSON");return new p(t.resolve(e.anchor))}static create(t,e){return new p(t.resolve(e))}static isSelectable(t){return!t.isText&&!1!==t.type.spec.selectable}}p.prototype.visible=!1,o.jsonID("node",p);class d{constructor(t){this.anchor=t}map(t){let{deleted:e,pos:r}=t.mapResult(this.anchor);return e?new h(r,r):new d(r)}resolve(t){let e=t.resolve(this.anchor),r=e.nodeAfter;return r&&p.isSelectable(r)?new p(e):o.near(e)}}class f extends o{constructor(t){super(t.resolve(0),t.resolve(t.content.size))}replace(t,e=n.Ji.empty){if(e==n.Ji.empty){t.delete(0,t.doc.content.size);let e=o.atStart(t.doc);e.eq(t.selection)||t.setSelection(e)}else super.replace(t,e)}toJSON(){return{type:"all"}}static fromJSON(t){return new f(t)}map(t){return new f(t)}eq(t){return t instanceof f}getBookmark(){return m}}o.jsonID("all",f);let m={map(){return this},resolve:t=>new f(t)};function g(t,e,r,n,i,a=!1){if(e.inlineContent)return u.create(t,r);for(let o=n-(i>0?0:1);i>0?o<e.childCount:o>=0;o+=i){let n=e.child(o);if(n.isAtom){if(!a&&p.isSelectable(n))return p.create(t,r-(i<0?n.nodeSize:0))}else{let e=g(t,n,r+i,i<0?n.childCount:0,i,a);if(e)return e}r+=n.nodeSize*i}return null}function A(t,e,r){let n,a=t.steps.length-1;if(a<e)return;let s=t.steps[a];(s instanceof i.Ln||s instanceof i.Wg)&&(t.mapping.maps[a].forEach((t,e,r,i)=>{null==n&&(n=i)}),t.setSelection(o.near(t.doc.resolve(n),r)))}class y extends i.dL{constructor(t){super(t.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=t.selection,this.storedMarks=t.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(t){if(t.$from.doc!=this.doc)throw RangeError("Selection passed to setSelection must point at the current document");return this.curSelection=t,this.curSelectionFor=this.steps.length,this.updated=(1|this.updated)&-3,this.storedMarks=null,this}get selectionSet(){return(1&this.updated)>0}setStoredMarks(t){return this.storedMarks=t,this.updated|=2,this}ensureMarks(t){return n.CU.sameSet(this.storedMarks||this.selection.$from.marks(),t)||this.setStoredMarks(t),this}addStoredMark(t){return this.ensureMarks(t.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(t){return this.ensureMarks(t.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(2&this.updated)>0}addStep(t,e){super.addStep(t,e),this.updated=-3&this.updated,this.storedMarks=null}setTime(t){return this.time=t,this}replaceSelection(t){return this.selection.replace(this,t),this}replaceSelectionWith(t,e=!0){let r=this.selection;return e&&(t=t.mark(this.storedMarks||(r.empty?r.$from.marks():r.$from.marksAcross(r.$to)||n.CU.none))),r.replaceWith(this,t),this}deleteSelection(){return this.selection.replace(this),this}insertText(t,e,r){let n=this.doc.type.schema;if(null==e)return t?this.replaceSelectionWith(n.text(t),!0):this.deleteSelection();{if(null==r&&(r=e),!t)return this.deleteRange(e,r);let i=this.storedMarks;if(!i){let t=this.doc.resolve(e);i=r==e?t.marks():t.marksAcross(this.doc.resolve(r))}return this.replaceRangeWith(e,r,n.text(t,i)),this.selection.empty||this.selection.to!=e+t.length||this.setSelection(o.near(this.selection.$to)),this}}setMeta(t,e){return this.meta["string"==typeof t?t:t.key]=e,this}getMeta(t){return this.meta["string"==typeof t?t:t.key]}get isGeneric(){for(let t in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=4,this}get scrolledIntoView(){return(4&this.updated)>0}}function v(t,e){return e&&t?t.bind(e):t}class R{constructor(t,e,r){this.name=t,this.init=v(e.init,r),this.apply=v(e.apply,r)}}let b=[new R("doc",{init:t=>t.doc||t.schema.topNodeType.createAndFill(),apply:t=>t.doc}),new R("selection",{init:(t,e)=>t.selection||o.atStart(e.doc),apply:t=>t.selection}),new R("storedMarks",{init:t=>t.storedMarks||null,apply:(t,e,r,n)=>n.selection.$cursor?t.storedMarks:null}),new R("scrollToSelection",{init:()=>0,apply:(t,e)=>t.scrolledIntoView?e+1:e})];class x{constructor(t,e){this.schema=t,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=b.slice(),e&&e.forEach(t=>{if(this.pluginsByKey[t.key])throw RangeError("Adding different instances of a keyed plugin ("+t.key+")");this.plugins.push(t),this.pluginsByKey[t.key]=t,t.spec.state&&this.fields.push(new R(t.key,t.spec.state,t))})}}class M{constructor(t){this.config=t}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(t){return this.applyTransaction(t).state}filterTransaction(t,e=-1){for(let r=0;r<this.config.plugins.length;r++)if(r!=e){let e=this.config.plugins[r];if(e.spec.filterTransaction&&!e.spec.filterTransaction.call(e,t,this))return!1}return!0}applyTransaction(t){if(!this.filterTransaction(t))return{state:this,transactions:[]};let e=[t],r=this.applyInner(t),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<e.length&&o.spec.appendTransaction.call(o,s?e.slice(s):e,l,r);if(c&&r.filterTransaction(c,a)){if(c.setMeta("appendedTransaction",t),!n){n=[];for(let t=0;t<this.config.plugins.length;t++)n.push(t<a?{state:r,n:e.length}:{state:this,n:0})}e.push(c),r=r.applyInner(c),i=!0}n&&(n[a]={state:r,n:e.length})}}if(!i)return{state:r,transactions:e}}}applyInner(t){if(!t.before.eq(this.doc))throw RangeError("Applying a mismatched transaction");let e=new M(this.config),r=this.config.fields;for(let n=0;n<r.length;n++){let i=r[n];e[i.name]=i.apply(t,this[i.name],this,e)}return e}get tr(){return new y(this)}static create(t){let e=new x(t.doc?t.doc.type.schema:t.schema,t.plugins),r=new M(e);for(let n=0;n<e.fields.length;n++)r[e.fields[n].name]=e.fields[n].init(t,r);return r}reconfigure(t){let e=new x(this.schema,t.plugins),r=e.fields,n=new M(e);for(let e=0;e<r.length;e++){let i=r[e].name;n[i]=this.hasOwnProperty(i)?this[i]:r[e].init(t,n)}return n}toJSON(t){let e={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(e.storedMarks=this.storedMarks.map(t=>t.toJSON())),t&&"object"==typeof t)for(let r in t){if("doc"==r||"selection"==r)throw RangeError("The JSON fields `doc` and `selection` are reserved");let n=t[r],i=n.spec.state;i&&i.toJSON&&(e[r]=i.toJSON.call(n,this[n.key]))}return e}static fromJSON(t,e,r){if(!e)throw RangeError("Invalid input for EditorState.fromJSON");if(!t.schema)throw RangeError("Required config field 'schema' missing");let i=new x(t.schema,t.plugins),a=new M(i);return i.fields.forEach(i=>{if("doc"==i.name)a.doc=n.bP.fromJSON(t.schema,e.doc);else if("selection"==i.name)a.selection=o.fromJSON(a.doc,e.selection);else if("storedMarks"==i.name)e.storedMarks&&(a.storedMarks=e.storedMarks.map(t.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(e,n)){a[i.name]=s.fromJSON.call(o,t,e[n],a);return}}a[i.name]=i.init(t,a)}}),a}}class S{constructor(t){this.spec=t,this.props={},t.props&&function t(e,r,n){for(let i in e){let a=e[i];a instanceof Function?a=a.bind(r):"handleDOMEvents"==i&&(a=t(a,r,{})),n[i]=a}return n}(t.props,this,this.props),this.key=t.key?t.key.key:O("plugin")}getState(t){return t[this.key]}}let w=Object.create(null);function O(t){return t in w?t+"$"+ ++w[t]:(w[t]=0,t+"$")}class N{constructor(t="key"){this.key=O(t)}get(t){return t.config.pluginsByKey[this.key]}getState(t){return t[this.key]}}r.d(e,{$t:()=>M,LN:()=>o,U3:()=>u,hs:()=>N,i5:()=>f,k_:()=>S,nh:()=>p,yn:()=>s})},38262(t,e,r){var n=r(96294);class i{constructor(t,e,r){this.pos=t,this.delInfo=e,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(t,e=!1){if(this.ranges=t,this.inverted=e,!t.length&&a.empty)return a.empty}recover(t){let e=0,r=65535&t;if(!this.inverted)for(let t=0;t<r;t++)e+=this.ranges[3*t+2]-this.ranges[3*t+1];return this.ranges[3*r]+e+(t-(65535&t))/65536}mapResult(t,e=1){return this._map(t,e,!1)}map(t,e=1){return this._map(t,e,!0)}_map(t,e,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>t)break;let c=this.ranges[s+a],u=this.ranges[s+o],h=l+c;if(t<=h){let a=c?t==l?-1:t==h?1:e:e,o=l+n+(a<0?0:u);if(r)return o;let p=t==(e<0?l:h)?null:s/3+(t-l)*65536,d=t==l?2:t==h?1:4;return(e<0?t!=l:t!=h)&&(d|=8),new i(o,d,p)}n+=u-c}return r?t+n:new i(t+n,0,null)}touches(t,e){let r=0,n=65535&e,i=this.inverted?2:1,a=this.inverted?1:2;for(let e=0;e<this.ranges.length;e+=3){let o=this.ranges[e]-(this.inverted?r:0);if(o>t)break;let s=this.ranges[e+i];if(t<=o+s&&e==3*n)return!0;r+=this.ranges[e+a]-s}return!1}forEach(t){let e=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+e],c=this.ranges[n+r];t(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(t){return 0==t?a.empty:new a(t<0?[0,-t,0]:[0,0,t])}}a.empty=new a([]);class o{constructor(t,e,r=0,n=t?t.length:0){this.mirror=e,this.from=r,this.to=n,this._maps=t||[],this.ownData=!(t||e)}get maps(){return this._maps}slice(t=0,e=this.maps.length){return new o(this._maps,this.mirror,t,e)}appendMap(t,e){this.ownData||(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),this.ownData=!0),this.to=this._maps.push(t),null!=e&&this.setMirror(this._maps.length-1,e)}appendMapping(t){for(let e=0,r=this._maps.length;e<t._maps.length;e++){let n=t.getMirror(e);this.appendMap(t._maps[e],null!=n&&n<e?r+n:void 0)}}getMirror(t){if(this.mirror){for(let e=0;e<this.mirror.length;e++)if(this.mirror[e]==t)return this.mirror[e+(e%2?-1:1)]}}setMirror(t,e){this.mirror||(this.mirror=[]),this.mirror.push(t,e)}appendMappingInverted(t){for(let e=t.maps.length-1,r=this._maps.length+t._maps.length;e>=0;e--){let n=t.getMirror(e);this.appendMap(t._maps[e].invert(),null!=n&&n>e?r-n-1:void 0)}}invert(){let t=new o;return t.appendMappingInverted(this),t}map(t,e=1){if(this.mirror)return this._map(t,e,!0);for(let r=this.from;r<this.to;r++)t=this._maps[r].map(t,e);return t}mapResult(t,e=1){return this._map(t,e,!1)}_map(t,e,r){let n=0;for(let r=this.from;r<this.to;r++){let i=this._maps[r].mapResult(t,e);if(null!=i.recover){let e=this.getMirror(r);if(null!=e&&e>r&&e<this.to){r=e,t=this._maps[e].recover(i.recover);continue}}n|=i.delInfo,t=i.pos}return r?t:new i(t,n,null)}}let s=Object.create(null);class l{getMap(){return a.empty}merge(t){return null}static fromJSON(t,e){if(!e||!e.stepType)throw RangeError("Invalid input for Step.fromJSON");let r=s[e.stepType];if(!r)throw RangeError(`No step type ${e.stepType} defined`);return r.fromJSON(t,e)}static jsonID(t,e){if(t in s)throw RangeError("Duplicate use of step JSON ID "+t);return s[t]=e,e.prototype.jsonID=t,e}}class c{constructor(t,e){this.doc=t,this.failed=e}static ok(t){return new c(t,null)}static fail(t){return new c(null,t)}static fromReplace(t,e,r,i){try{return c.ok(t.replace(e,r,i))}catch(t){if(t instanceof n.vI)return c.fail(t.message);throw t}}}function u(t,e,r){let i=[];for(let n=0;n<t.childCount;n++){let a=t.child(n);a.content.size&&(a=a.copy(u(a.content,e,a))),a.isInline&&(a=e(a,r,n)),i.push(a)}return n.FK.fromArray(i)}class h extends l{constructor(t,e,r){super(),this.from=t,this.to=e,this.mark=r}apply(t){let e=t.slice(this.from,this.to),r=t.resolve(this.from),i=r.node(r.sharedDepth(this.to)),a=new n.Ji(u(e.content,(t,e)=>t.isAtom&&e.type.allowsMarkType(this.mark.type)?t.mark(this.mark.addToSet(t.marks)):t,i),e.openStart,e.openEnd);return c.fromReplace(t,this.from,this.to,a)}invert(){return new p(this.from,this.to,this.mark)}map(t){let e=t.mapResult(this.from,1),r=t.mapResult(this.to,-1);return e.deleted&&r.deleted||e.pos>=r.pos?null:new h(e.pos,r.pos,this.mark)}merge(t){return t instanceof h&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new h(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,e){if("number"!=typeof e.from||"number"!=typeof e.to)throw RangeError("Invalid input for AddMarkStep.fromJSON");return new h(e.from,e.to,t.markFromJSON(e.mark))}}l.jsonID("addMark",h);class p extends l{constructor(t,e,r){super(),this.from=t,this.to=e,this.mark=r}apply(t){let e=t.slice(this.from,this.to),r=new n.Ji(u(e.content,t=>t.mark(this.mark.removeFromSet(t.marks)),t),e.openStart,e.openEnd);return c.fromReplace(t,this.from,this.to,r)}invert(){return new h(this.from,this.to,this.mark)}map(t){let e=t.mapResult(this.from,1),r=t.mapResult(this.to,-1);return e.deleted&&r.deleted||e.pos>=r.pos?null:new p(e.pos,r.pos,this.mark)}merge(t){return t instanceof p&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new p(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,e){if("number"!=typeof e.from||"number"!=typeof e.to)throw RangeError("Invalid input for RemoveMarkStep.fromJSON");return new p(e.from,e.to,t.markFromJSON(e.mark))}}l.jsonID("removeMark",p);class d extends l{constructor(t,e){super(),this.pos=t,this.mark=e}apply(t){let e=t.nodeAt(this.pos);if(!e)return c.fail("No node at mark step's position");let r=e.type.create(e.attrs,null,this.mark.addToSet(e.marks));return c.fromReplace(t,this.pos,this.pos+1,new n.Ji(n.FK.from(r),0,+!e.isLeaf))}invert(t){let e=t.nodeAt(this.pos);if(e){let t=this.mark.addToSet(e.marks);if(t.length==e.marks.length){for(let r=0;r<e.marks.length;r++)if(!e.marks[r].isInSet(t))return new d(this.pos,e.marks[r]);return new d(this.pos,this.mark)}}return new f(this.pos,this.mark)}map(t){let e=t.mapResult(this.pos,1);return e.deletedAfter?null:new d(e.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(t,e){if("number"!=typeof e.pos)throw RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new d(e.pos,t.markFromJSON(e.mark))}}l.jsonID("addNodeMark",d);class f extends l{constructor(t,e){super(),this.pos=t,this.mark=e}apply(t){let e=t.nodeAt(this.pos);if(!e)return c.fail("No node at mark step's position");let r=e.type.create(e.attrs,null,this.mark.removeFromSet(e.marks));return c.fromReplace(t,this.pos,this.pos+1,new n.Ji(n.FK.from(r),0,+!e.isLeaf))}invert(t){let e=t.nodeAt(this.pos);return e&&this.mark.isInSet(e.marks)?new d(this.pos,this.mark):this}map(t){let e=t.mapResult(this.pos,1);return e.deletedAfter?null:new f(e.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(t,e){if("number"!=typeof e.pos)throw RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new f(e.pos,t.markFromJSON(e.mark))}}l.jsonID("removeNodeMark",f);class m extends l{constructor(t,e,r,n=!1){super(),this.from=t,this.to=e,this.slice=r,this.structure=n}apply(t){return this.structure&&A(t,this.from,this.to)?c.fail("Structure replace would overwrite content"):c.fromReplace(t,this.from,this.to,this.slice)}getMap(){return new a([this.from,this.to-this.from,this.slice.size])}invert(t){return new m(this.from,this.from+this.slice.size,t.slice(this.from,this.to))}map(t){let e=t.mapResult(this.to,-1),r=this.from==this.to&&m.MAP_BIAS<0?e:t.mapResult(this.from,1);return r.deletedAcross&&e.deletedAcross?null:new m(r.pos,Math.max(r.pos,e.pos),this.slice,this.structure)}merge(t){if(!(t instanceof m)||t.structure||this.structure)return null;if(this.from+this.slice.size!=t.from||this.slice.openEnd||t.slice.openStart)if(t.to!=this.from||this.slice.openStart||t.slice.openEnd)return null;else{let e=this.slice.size+t.slice.size==0?n.Ji.empty:new n.Ji(t.slice.content.append(this.slice.content),t.slice.openStart,this.slice.openEnd);return new m(t.from,this.to,e,this.structure)}{let e=this.slice.size+t.slice.size==0?n.Ji.empty:new n.Ji(this.slice.content.append(t.slice.content),this.slice.openStart,t.slice.openEnd);return new m(this.from,this.to+(t.to-t.from),e,this.structure)}}toJSON(){let t={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(t.slice=this.slice.toJSON()),this.structure&&(t.structure=!0),t}static fromJSON(t,e){if("number"!=typeof e.from||"number"!=typeof e.to)throw RangeError("Invalid input for ReplaceStep.fromJSON");return new m(e.from,e.to,n.Ji.fromJSON(t,e.slice),!!e.structure)}}m.MAP_BIAS=1,l.jsonID("replace",m);class g extends l{constructor(t,e,r,n,i,a,o=!1){super(),this.from=t,this.to=e,this.gapFrom=r,this.gapTo=n,this.slice=i,this.insert=a,this.structure=o}apply(t){if(this.structure&&(A(t,this.from,this.gapFrom)||A(t,this.gapTo,this.to)))return c.fail("Structure gap-replace would overwrite content");let e=t.slice(this.gapFrom,this.gapTo);if(e.openStart||e.openEnd)return c.fail("Gap is not a flat range");let r=this.slice.insertAt(this.insert,e.content);return r?c.fromReplace(t,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(t){let e=this.gapTo-this.gapFrom;return new g(this.from,this.from+this.slice.size+e,this.from+this.insert,this.from+this.insert+e,t.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(t){let e=t.mapResult(this.from,1),r=t.mapResult(this.to,-1),n=this.from==this.gapFrom?e.pos:t.map(this.gapFrom,-1),i=this.to==this.gapTo?r.pos:t.map(this.gapTo,1);return e.deletedAcross&&r.deletedAcross||n<e.pos||i>r.pos?null:new g(e.pos,r.pos,n,i,this.slice,this.insert,this.structure)}toJSON(){let t={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(t.slice=this.slice.toJSON()),this.structure&&(t.structure=!0),t}static fromJSON(t,e){if("number"!=typeof e.from||"number"!=typeof e.to||"number"!=typeof e.gapFrom||"number"!=typeof e.gapTo||"number"!=typeof e.insert)throw RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new g(e.from,e.to,e.gapFrom,e.gapTo,n.Ji.fromJSON(t,e.slice),e.insert,!!e.structure)}}function A(t,e,r){let n=t.resolve(e),i=r-e,a=n.depth;for(;i>0&&a>0&&n.indexAfter(a)==n.node(a).childCount;)a--,i--;if(i>0){let t=n.node(a).maybeChild(n.indexAfter(a));for(;i>0;){if(!t||t.isLeaf)return!0;t=t.firstChild,i--}}return!1}function y(t,e,r,i=r.contentMatch,a=!0){let o=t.doc.nodeAt(e),s=[],l=e+1;for(let e=0;e<o.childCount;e++){let c=o.child(e),u=l+c.nodeSize,h=i.matchType(c.type);if(h){i=h;for(let e=0;e<c.marks.length;e++)r.allowsMarkType(c.marks[e].type)||t.step(new p(l,u,c.marks[e]));if(a&&c.isText&&"pre"!=r.whitespace){let t,e=/\r?\n|\r/g,i;for(;t=e.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+t.index,l+t.index+t[0].length,i))}}else s.push(new m(l,u,n.Ji.empty));l=u}if(!i.validEnd){let e=i.fillBefore(n.FK.empty,!0);t.replace(l,l,new n.Ji(e,0,0))}for(let e=s.length-1;e>=0;e--)t.step(s[e])}function v(t){let e=t.parent.content.cutByIndex(t.startIndex,t.endIndex);for(let r=t.depth,n=0,i=0;;--r){let a=t.$from.node(r),o=t.$from.index(r)+n,s=t.$to.indexAfter(r)-i;if(r<t.depth&&a.canReplace(o,s,e))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(t,e,r=null,n=t){let i=function(t,e){let{parent:r,startIndex:n,endIndex:i}=t,a=r.contentMatchAt(n).findWrapping(e);if(!a)return null;let o=a.length?a[0]:e;return r.canReplaceWith(n,i,o)?a:null}(t,e),a=i&&function(t,e){let{parent:r,startIndex:n,endIndex:i}=t,a=r.child(n),o=e.contentMatch.findWrapping(a.type);if(!o)return null;let s=(o.length?o[o.length-1]:e).contentMatch;for(let t=n;s&&t<i;t++)s=s.matchType(r.child(t).type);return s&&s.validEnd?o:null}(n,e);return a?i.map(b).concat({type:e,attrs:r}).concat(a.map(b)):null}function b(t){return{type:t,attrs:null}}function x(t,e,r,n){e.forEach((i,a)=>{if(i.isText){let o,s=/\r?\n|\r/g;for(;o=s.exec(i.text);){let i=t.mapping.slice(n).map(r+1+a+o.index);t.replaceWith(i,i+1,e.type.schema.linebreakReplacement.create())}}})}function M(t,e,r,n){e.forEach((i,a)=>{if(i.type==i.type.schema.linebreakReplacement){let i=t.mapping.slice(n).map(r+1+a);t.replaceWith(i,i+1,e.type.schema.text("\n"))}})}function S(t,e,r=1,n){let i=t.resolve(e),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 t=i.depth-1,e=r-2;t>a;t--,e--){let r=i.node(t),a=i.index(t);if(r.type.spec.isolating)return!1;let o=r.content.cutByIndex(a,r.childCount),s=n&&n[e+1];s&&(o=o.replaceChild(0,s.type.create(s.attrs)));let l=n&&n[e]||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(t,e){let r=t.resolve(e),n=r.index();return O(r.nodeBefore,r.nodeAfter)&&r.parent.canReplace(n,n+1)}function O(t,e){return!!(t&&e&&!t.isLeaf&&function(t,e){e.content.size||t.type.compatibleContent(e.type);let r=t.contentMatchAt(t.childCount),{linebreakReplacement:n}=t.type.schema;for(let i=0;i<e.childCount;i++){let a=e.child(i),o=a.type==n?t.type.schema.nodes.text:a.type;if(!(r=r.matchType(o))||!t.type.allowsMarks(a.marks))return!1}return r.validEnd}(t,e))}function N(t,e,r=-1){let n=t.resolve(e);for(let t=n.depth;;t--){let i,a,o=n.index(t);if(t==n.depth?(i=n.nodeBefore,a=n.nodeAfter):r>0?(i=n.node(t+1),o++,a=n.node(t).maybeChild(o)):(i=n.node(t).maybeChild(o-1),a=n.node(t+1)),i&&!i.isTextblock&&O(i,a)&&n.node(t).canReplace(o,o+1))return e;if(0==t)break;e=r<0?n.before(t):n.after(t)}}function L(t,e,r){let n=t.resolve(e);if(!r.content.size)return e;let i=r.content;for(let t=0;t<r.openStart;t++)i=i.firstChild.content;for(let t=1;t<=(0==r.openStart&&r.size?2:1);t++)for(let e=n.depth;e>=0;e--){let r=e==n.depth?0:n.pos<=(n.start(e+1)+n.end(e+1))/2?-1:1,a=n.index(e)+ +(r>0),o=n.node(e),s=!1;if(1==t)s=o.canReplace(a,a,i);else{let t=o.contentMatchAt(a).findWrapping(i.firstChild.type);s=t&&o.canReplaceWith(a,a,t[0])}if(s)return 0==r?n.pos:r<0?n.before(e+1):n.after(e+1)}return null}function _(t,e,r=e,i=n.Ji.empty){if(e==r&&!i.size)return null;let a=t.resolve(e),o=t.resolve(r);return T(a,o,i)?new m(e,r,i):new P(a,o,i).fit()}function T(t,e,r){return!r.openStart&&!r.openEnd&&t.start()==e.start()&&t.parent.canReplace(t.index(),e.index(),r.content)}l.jsonID("replaceAround",g);class P{constructor(t,e,r){this.$from=t,this.$to=e,this.unplaced=r,this.frontier=[],this.placed=n.FK.empty;for(let e=0;e<=t.depth;e++){let r=t.node(e);this.frontier.push({type:r.type,match:r.contentMatchAt(t.indexAfter(e))})}for(let e=t.depth;e>0;e--)this.placed=n.FK.from(t.node(e).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let t=this.findFittable();t?this.placeNodes(t):this.openMore()||this.dropNode()}let t=this.mustMoveInline(),e=this.placed.size-this.depth-this.$from.depth,r=this.$from,i=this.close(t<0?this.$to:r.doc.resolve(t));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 t>-1?new g(r.pos,t,this.$to.pos,this.$to.end(),l,e):l.size||r.pos!=this.$to.pos?new m(r.pos,i.pos,l):null}findFittable(){let t=this.unplaced.openStart;for(let e=this.unplaced.content,r=0,n=this.unplaced.openEnd;r<t;r++){let i=e.firstChild;if(e.childCount>1&&(n=0),i.type.spec.isolating&&n<=r){t=r;break}e=i.content}for(let e=1;e<=2;e++)for(let r=1==e?t:this.unplaced.openStart;r>=0;r--){let t=null,i=(r?(t=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==e&&(i?s.matchType(i.type)||(c=s.fillBefore(n.FK.from(i),!1)):t&&o.compatibleContent(t.type)))return{sliceDepth:r,frontierDepth:a,parent:t,inject:c};if(2==e&&i&&(l=s.findWrapping(i.type)))return{sliceDepth:r,frontierDepth:a,parent:t,wrap:l};if(t&&s.matchType(t.type))break}}}openMore(){let{content:t,openStart:e,openEnd:r}=this.unplaced,i=k(t,e);return!!i.childCount&&!i.firstChild.isLeaf&&(this.unplaced=new n.Ji(t,e+1,Math.max(r,i.size+e>=t.size-r?e+1:0)),!0)}dropNode(){let{content:t,openStart:e,openEnd:r}=this.unplaced,i=k(t,e);if(i.childCount<=1&&e>0){let a=t.size-e<=e+i.size;this.unplaced=new n.Ji(I(t,e-1,1),e-1,a?e-1:r)}else this.unplaced=new n.Ji(I(t,e,1),e,r)}placeNodes({sliceDepth:t,frontierDepth:e,parent:r,inject:i,wrap:a}){for(;this.depth>e;)this.closeFrontierNode();if(a)for(let t=0;t<a.length;t++)this.openFrontierNode(a[t]);let o=this.unplaced,s=r?r.content:o.content,l=o.openStart-t,c=0,u=[],{match:h,type:p}=this.frontier[e];if(i){for(let t=0;t<i.childCount;t++)u.push(i.child(t));h=h.matchFragment(i)}let d=s.size+t-(o.content.size-o.openEnd);for(;c<s.childCount;){let t=s.child(c),e=h.matchType(t.type);if(!e)break;(++c>1||0==l||t.content.size)&&(h=e,u.push(function t(e,r,i){if(r<=0)return e;let a=e.content;return r>1&&(a=a.replaceChild(0,t(a.firstChild,r-1,1==a.childCount?i-1:0))),r>0&&(a=e.type.contentMatch.fillBefore(a).append(a),i<=0&&(a=a.append(e.type.contentMatch.matchFragment(a).fillBefore(n.FK.empty,!0)))),e.copy(a)}(t.mark(p.allowedMarks(t.marks)),1==c?l:0,c==s.childCount?d:-1)))}let f=c==s.childCount;f||(d=-1),this.placed=C(this.placed,e,n.FK.from(u)),this.frontier[e].match=h,f&&d<0&&r&&r.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let t=0,e=s;t<d;t++){let t=e.lastChild;this.frontier.push({type:t.type,match:t.contentMatchAt(t.childCount)}),e=t.content}this.unplaced=f?0==t?n.Ji.empty:new n.Ji(I(o.content,t-1,1),t-1,d<0?o.openEnd:t-1):new n.Ji(I(o.content,t,c),o.openStart,o.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return -1;let t=this.frontier[this.depth],e;if(!t.type.isTextblock||!F(this.$to,this.$to.depth,t.type,t.match,!1)||this.$to.depth==this.depth&&(e=this.findCloseLevel(this.$to))&&e.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(t){s:for(let e=Math.min(this.depth,t.depth);e>=0;e--){let{match:r,type:n}=this.frontier[e],i=e<t.depth&&t.end(e+1)==t.pos+(t.depth-(e+1)),a=F(t,e,n,r,i);if(a){for(let r=e-1;r>=0;r--){let{match:e,type:n}=this.frontier[r],i=F(t,r,n,e,!0);if(!i||i.childCount)continue s}return{depth:e,fit:a,move:i?t.doc.resolve(t.after(e+1)):t}}}}close(t){let e=this.findCloseLevel(t);if(!e)return null;for(;this.depth>e.depth;)this.closeFrontierNode();e.fit.childCount&&(this.placed=C(this.placed,e.depth,e.fit)),t=e.move;for(let r=e.depth+1;r<=t.depth;r++){let e=t.node(r),n=e.type.contentMatch.fillBefore(e.content,!0,t.index(r));this.openFrontierNode(e.type,e.attrs,n)}return t}openFrontierNode(t,e=null,r){let i=this.frontier[this.depth];i.match=i.match.matchType(t),this.placed=C(this.placed,this.depth,n.FK.from(t.create(e,r))),this.frontier.push({type:t,match:t.contentMatch})}closeFrontierNode(){let t=this.frontier.pop().match.fillBefore(n.FK.empty,!0);t.childCount&&(this.placed=C(this.placed,this.frontier.length,t))}}function I(t,e,r){return 0==e?t.cutByIndex(r,t.childCount):t.replaceChild(0,t.firstChild.copy(I(t.firstChild.content,e-1,r)))}function C(t,e,r){return 0==e?t.append(r):t.replaceChild(t.childCount-1,t.lastChild.copy(C(t.lastChild.content,e-1,r)))}function k(t,e){for(let r=0;r<e;r++)t=t.firstChild.content;return t}function F(t,e,r,n,i){let a=t.node(e),o=i?t.indexAfter(e):t.index(e);if(o==a.childCount&&!r.compatibleContent(a.type))return null;let s=n.fillBefore(a.content,!0,o);return s&&!function(t,e,r){for(let n=r;n<e.childCount;n++)if(!t.allowsMarks(e.child(n).marks))return!0;return!1}(r,a.content,o)?s:null}function X(t,e){let r=[],n=Math.min(t.depth,e.depth);for(let i=n;i>=0;i--){let n=t.start(i);if(n<t.pos-(t.depth-i)||e.end(i)>e.pos+(e.depth-i)||t.node(i).type.spec.isolating||e.node(i).type.spec.isolating)break;(n==e.start(i)||i==t.depth&&i==e.depth&&t.parent.inlineContent&&e.parent.inlineContent&&i&&e.start(i-1)==n-1)&&r.push(i)}return r}class U extends l{constructor(t,e,r){super(),this.pos=t,this.attr=e,this.value=r}apply(t){let e=t.nodeAt(this.pos);if(!e)return c.fail("No node at attribute step's position");let r=Object.create(null);for(let t in e.attrs)r[t]=e.attrs[t];r[this.attr]=this.value;let i=e.type.create(r,null,e.marks);return c.fromReplace(t,this.pos,this.pos+1,new n.Ji(n.FK.from(i),0,+!e.isLeaf))}getMap(){return a.empty}invert(t){return new U(this.pos,this.attr,t.nodeAt(this.pos).attrs[this.attr])}map(t){let e=t.mapResult(this.pos,1);return e.deletedAfter?null:new U(e.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(t,e){if("number"!=typeof e.pos||"string"!=typeof e.attr)throw RangeError("Invalid input for AttrStep.fromJSON");return new U(e.pos,e.attr,e.value)}}l.jsonID("attr",U);class W extends l{constructor(t,e){super(),this.attr=t,this.value=e}apply(t){let e=Object.create(null);for(let r in t.attrs)e[r]=t.attrs[r];e[this.attr]=this.value;let r=t.type.create(e,t.content,t.marks);return c.ok(r)}getMap(){return a.empty}invert(t){return new W(this.attr,t.attrs[this.attr])}map(t){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(t,e){if("string"!=typeof e.attr)throw RangeError("Invalid input for DocAttrStep.fromJSON");return new W(e.attr,e.value)}}l.jsonID("docAttr",W);let V=class extends Error{};(V=function t(e){let r=Error.call(this,e);return r.__proto__=t.prototype,r}).prototype=Object.create(Error.prototype),V.prototype.constructor=V,V.prototype.name="TransformError";class E{constructor(t){this.doc=t,this.steps=[],this.docs=[],this.mapping=new o}get before(){return this.docs.length?this.docs[0]:this.doc}step(t){let e=this.maybeStep(t);if(e.failed)throw new V(e.failed);return this}maybeStep(t){let e=t.apply(this.doc);return e.failed||this.addStep(t,e.doc),e}get docChanged(){return this.steps.length>0}changedRange(){let t=1e9,e=-1e9;for(let r=0;r<this.mapping.maps.length;r++){let n=this.mapping.maps[r];r&&(t=n.map(t,1),e=n.map(e,-1)),n.forEach((r,n,i,a)=>{t=Math.min(t,i),e=Math.max(e,a)})}return 1e9==t?null:{from:t,to:e}}addStep(t,e){this.docs.push(this.doc),this.steps.push(t),this.mapping.appendMap(t.getMap()),this.doc=e}replace(t,e=t,r=n.Ji.empty){let i=_(this.doc,t,e,r);return i&&this.step(i),this}replaceWith(t,e,r){return this.replace(t,e,new n.Ji(n.FK.from(r),0,0))}delete(t,e){return this.replace(t,e,n.Ji.empty)}insert(t,e){return this.replaceWith(t,t,e)}replaceRange(t,e,r){return!function(t,e,r,i){if(!i.size)return t.deleteRange(e,r);let a=t.doc.resolve(e),o=t.doc.resolve(r);if(T(a,o,i))return t.step(new m(e,r,i));let s=X(a,o);0==s[s.length-1]&&s.pop();let l=-(a.depth+1);s.unshift(l);for(let t=a.depth,e=a.pos-1;t>0;t--,e--){let r=a.node(t).type.spec;if(r.defining||r.definingAsContext||r.isolating)break;s.indexOf(t)>-1?l=t:a.before(t)==e&&s.splice(1,0,-t)}let c=s.indexOf(l),u=[],h=i.openStart;for(let t=i.content,e=0;;e++){let r=t.firstChild;if(u.push(r),e==i.openStart)break;t=r.content}for(let t=h-1;t>=0;t--){var p;let e=u[t],r=(p=e.type).spec.defining||p.spec.definingForContent;if(r&&!e.sameMarkup(a.node(Math.abs(l)-1)))h=t;else if(r||!e.type.isTextblock)break}for(let e=i.openStart;e>=0;e--){let l=(e+h+1)%(i.openStart+1),p=u[l];if(p)for(let e=0;e<s.length;e++){let u=s[(e+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 t.replace(a.before(u),h?o.after(u):r,new n.Ji(function t(e,r,i,a,o){if(r<i){let n=e.firstChild;e=e.replaceChild(0,n.copy(t(n.content,r+1,i,a,n)))}if(r>a){let t=o.contentMatchAt(0),r=t.fillBefore(e).append(e);e=r.append(t.matchFragment(r).fillBefore(n.FK.empty,!0))}return e}(i.content,0,i.openStart,l),l,i.openEnd))}}let d=t.steps.length;for(let n=s.length-1;n>=0&&(t.replace(e,r,i),!(t.steps.length>d));n--){let t=s[n];t<0||(e=a.before(t),r=o.after(t))}}(this,t,e,r),this}replaceRangeWith(t,e,r){var i=t,a=e;if(!r.isInline&&i==a&&this.doc.resolve(i).parent.content.size){let t=function(t,e,r){let n=t.resolve(e);if(n.parent.canReplaceWith(n.index(),n.index(),r))return e;if(0==n.parentOffset)for(let t=n.depth-1;t>=0;t--){let e=n.index(t);if(n.node(t).canReplaceWith(e,e,r))return n.before(t+1);if(e>0)return null}if(n.parentOffset==n.parent.content.size)for(let t=n.depth-1;t>=0;t--){let e=n.indexAfter(t);if(n.node(t).canReplaceWith(e,e,r))return n.after(t+1);if(e<n.node(t).childCount)break}return null}(this.doc,i,r.type);null!=t&&(i=a=t)}return this.replaceRange(i,a,new n.Ji(n.FK.from(r),0,0)),this}deleteRange(t,e){return!function(t,e,r){let n=t.doc.resolve(e),i=t.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 t=n.depth;t>a;t--)n.node(t).type.spec.isolating&&(o=!0);for(let t=i.depth;t>a;t--)i.node(t).type.spec.isolating&&(o=!0);if(!o){for(let t=n.depth;t>0&&e==n.start(t);t--)e=n.before(t);for(let t=i.depth;t>0&&r==i.start(t);t--)r=i.before(t);n=t.doc.resolve(e),i=t.doc.resolve(r)}}let a=X(n,i);for(let e=0;e<a.length;e++){let r=a[e],o=e==a.length-1;if(o&&0==r||n.node(r).type.contentMatch.validEnd)return t.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 t.delete(n.before(r),i.after(r))}for(let a=1;a<=n.depth&&a<=i.depth;a++)if(e-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 t.delete(n.before(a),r);t.delete(e,r)}(this,t,e),this}lift(t,e){return!function(t,e,r){let{$from:i,$to:a,depth:o}=e,s=i.before(o+1),l=a.after(o+1),c=s,u=l,h=n.FK.empty,p=0;for(let t=o,e=!1;t>r;t--)e||i.index(t)>0?(e=!0,h=n.FK.from(i.node(t).copy(h)),p++):c--;let d=n.FK.empty,f=0;for(let t=o,e=!1;t>r;t--)e||a.after(t+1)<a.end(t)?(e=!0,d=n.FK.from(a.node(t).copy(d)),f++):u++;t.step(new g(c,u,s,l,new n.Ji(h.append(d),p,f),h.size-p,!0))}(this,t,e),this}join(t,e=1){return!function(t,e,r){let i=null,{linebreakReplacement:a}=t.doc.type.schema,o=t.doc.resolve(e-r),s=o.node().type;if(a&&s.inlineContent){let t="pre"==s.whitespace,e=!!s.contentMatch.matchType(a);t&&!e?i=!1:!t&&e&&(i=!0)}let l=t.steps.length;if(!1===i){let n=t.doc.resolve(e+r);M(t,n.node(),n.before(),l)}s.inlineContent&&y(t,e+r-1,s,o.node().contentMatchAt(o.index()),null==i);let c=t.mapping.slice(l),u=c.map(e-r);if(t.step(new m(u,c.map(e+r,-1),n.Ji.empty,!0)),!0===i){let e=t.doc.resolve(u);x(t,e.node(),e.before(),t.steps.length)}}(this,t,e),this}wrap(t,e){return!function(t,e,r){let i=n.FK.empty;for(let t=r.length-1;t>=0;t--){if(i.size){let e=r[t].type.contentMatch.matchFragment(i);if(!e||!e.validEnd)throw RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}i=n.FK.from(r[t].type.create(r[t].attrs,i))}let a=e.start,o=e.end;t.step(new g(a,o,a,o,new n.Ji(i,0,0),r.length,!0))}(this,t,e),this}setBlockType(t,e=t,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(t,e,(t,e)=>{var s,l,c;let u,h,p="function"==typeof i?i(t):i;if(t.isTextblock&&!t.hasMarkup(r,p)&&(s=a.doc,l=a.mapping.slice(o).map(e),c=r,h=(u=s.resolve(l)).index(),u.parent.canReplaceWith(h,h+1,c))){let i=null;if(r.schema.linebreakReplacement){let t="pre"==r.whitespace,e=!!r.contentMatch.matchType(r.schema.linebreakReplacement);t&&!e?i=!1:!t&&e&&(i=!0)}!1===i&&M(a,t,e,o),y(a,a.mapping.slice(o).map(e,1),r,void 0,null===i);let s=a.mapping.slice(o),l=s.map(e,1),c=s.map(e+t.nodeSize,1);return a.step(new g(l,c,l+1,c-1,new n.Ji(n.FK.from(r.create(p,null,t.marks)),0,0),1,!0)),!0===i&&x(a,t,e,o),!1}}),this}setNodeMarkup(t,e,r=null,i){return!function(t,e,r,i,a){let o=t.doc.nodeAt(e);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 t.replaceWith(e,e+o.nodeSize,s);if(!r.validContent(o.content))throw RangeError("Invalid content for node type "+r.name);t.step(new g(e,e+o.nodeSize,e+1,e+o.nodeSize-1,new n.Ji(n.FK.from(s),0,0),1,!0))}(this,t,e,r,i),this}setNodeAttribute(t,e,r){return this.step(new U(t,e,r)),this}setDocAttribute(t,e){return this.step(new W(t,e)),this}addNodeMark(t,e){return this.step(new d(t,e)),this}removeNodeMark(t,e){let r=this.doc.nodeAt(t);if(!r)throw RangeError("No node at position "+t);if(e instanceof n.CU)e.isInSet(r.marks)&&this.step(new f(t,e));else{let n=r.marks,i,a=[];for(;i=e.isInSet(n);)a.push(new f(t,i)),n=i.removeFromSet(n);for(let t=a.length-1;t>=0;t--)this.step(a[t])}return this}split(t,e=1,r){return!function(t,e,r=1,i){let a=t.doc.resolve(e),o=n.FK.empty,s=n.FK.empty;for(let t=a.depth,e=a.depth-r,l=r-1;t>e;t--,l--){o=n.FK.from(a.node(t).copy(o));let e=i&&i[l];s=n.FK.from(e?e.type.create(e.attrs,s):a.node(t).copy(s))}t.step(new m(e,e,new n.Ji(o.append(s),r,r),!0))}(this,t,e,r),this}addMark(t,e,r){var n;let i,a,o,s;return n=this,o=[],s=[],n.doc.nodesBetween(t,e,(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,t),d=Math.min(l+n.nodeSize,e),f=r.addToSet(u);for(let t=0;t<u.length;t++)u[t].isInSet(f)||(i&&i.to==c&&i.mark.eq(u[t])?i.to=d:o.push(i=new p(c,d,u[t])));a&&a.to==c?a.to=d:s.push(a=new h(c,d,r))}}),o.forEach(t=>n.step(t)),s.forEach(t=>n.step(t)),this}removeMark(t,e,r){var i;let a,o;return i=this,a=[],o=0,i.doc.nodesBetween(t,e,(i,s)=>{if(!i.isInline)return;o++;let l=null;if(r instanceof n.sX){let t=i.marks,e;for(;e=r.isInSet(t);)(l||(l=[])).push(e),t=e.removeFromSet(t)}else r?r.isInSet(i.marks)&&(l=[r]):l=i.marks;if(l&&l.length){let r=Math.min(s+i.nodeSize,e);for(let e=0;e<l.length;e++){let n=l[e],i;for(let t=0;t<a.length;t++){let e=a[t];e.step==o-1&&n.eq(a[t].style)&&(i=e)}i?(i.to=r,i.step=o):a.push({style:n,from:Math.max(s,t),to:r,step:o})}}}),a.forEach(t=>i.step(new p(t.from,t.to,t.style))),this}clearIncompatible(t,e,r){return y(this,t,e,r),this}}r.d(e,{$L:()=>_,Ln:()=>m,N0:()=>N,Um:()=>L,Wg:()=>g,X9:()=>o,dL:()=>E,jP:()=>v,n9:()=>w,oM:()=>R,zy:()=>S})},1575(t,e,r){var n=r(42845),i=r(96294),a=r(38262);let o=function(t){for(var e=0;;e++)if(!(t=t.previousSibling))return e},s=function(t){let e=t.assignedSlot||t.parentNode;return e&&11==e.nodeType?e.host:e},l=null,c=function(t,e,r){let n=l||(l=document.createRange());return n.setEnd(t,null==r?t.nodeValue.length:r),n.setStart(t,e||0),n},u=function(){l=null},h=function(t,e,r,n){return r&&(d(t,e,r,n,-1)||d(t,e,r,n,1))},p=/^(img|br|input|textarea|hr)$/i;function d(t,e,r,n,i){for(var a;;){if(t==r&&e==n)return!0;if(e==(i<0?0:f(t))){let r=t.parentNode;if(!r||1!=r.nodeType||m(t)||p.test(t.nodeName)||"false"==t.contentEditable)return!1;e=o(t)+(i<0?0:1),t=r}else{if(1!=t.nodeType)return!1;let r=t.childNodes[e+(i<0?-1:0)];if(1==r.nodeType&&"false"==r.contentEditable)if(null==(a=r.pmViewDesc)||!a.ignoreForSelection)return!1;else e+=i;else t=r,e=i<0?f(t):0}}}function f(t){return 3==t.nodeType?t.nodeValue.length:t.childNodes.length}function m(t){let e;for(let r=t;r&&!(e=r.pmViewDesc);r=r.parentNode);return e&&e.node&&e.node.isBlock&&(e.dom==t||e.contentDOM==t)}let g=function(t){return t.focusNode&&h(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset)};function A(t,e){let r=document.createEvent("Event");return r.initEvent("keydown",!0,!0),r.keyCode=t,r.key=r.code=e,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 N=!S&&/Chrome\/(\d+)/.exec(R),L=!!N,_=N?+N[1]:0,T=!S&&!!y&&/Apple Computer/.test(y.vendor),P=T&&(/Mobile\/\w+/.test(R)||!!y&&y.maxTouchPoints>2),I=P||!!y&&/Mac/.test(y.platform),C=!!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(t,e){return"number"==typeof t?t:t[e]}function W(t,e,r){if(!Q(e)&&0==e.left)return;let n=t.someProp("scrollThreshold")||0,i=t.someProp("scrollMargin")||5,a=t.dom.ownerDocument;for(let o=r||t.dom;o;){if(1!=o.nodeType){o=s(o);continue}let t=o,r=t==a.body,l=r?function(t){let e=t.defaultView&&t.defaultView.visualViewport;return e?{left:0,right:e.width,top:0,bottom:e.height}:{left:0,right:t.documentElement.clientWidth,top:0,bottom:t.documentElement.clientHeight}}(a):function(t){let e=t.getBoundingClientRect(),r=e.width/t.offsetWidth||1,n=e.height/t.offsetHeight||1;return{left:e.left,right:e.left+t.clientWidth*r,top:e.top,bottom:e.top+t.clientHeight*n}}(t),c=0,u=0;if(e.top<l.top+U(n,"top")?u=-(l.top-e.top+U(i,"top")):e.bottom>l.bottom-U(n,"bottom")&&(u=e.bottom-e.top>l.bottom-l.top?e.top+U(i,"top")-l.top:e.bottom-l.bottom+U(i,"bottom")),e.left<l.left+U(n,"left")?c=-(l.left-e.left+U(i,"left")):e.right>l.right-U(n,"right")&&(c=e.right-l.right+U(i,"right")),c||u)if(r)a.defaultView.scrollBy(c,u);else{let r=t.scrollLeft,n=t.scrollTop;u&&(t.scrollTop+=u),c&&(t.scrollLeft+=c);let i=t.scrollLeft-r,a=t.scrollTop-n;e={left:e.left-i,top:e.top-a,right:e.right-i,bottom:e.bottom-a}}let h=r?"fixed":getComputedStyle(o).position;if(/^(fixed|sticky)$/.test(h))break;o="absolute"==h?o.offsetParent:s(o)}}function V(t){let e=[],r=t.ownerDocument;for(let n=t;n&&(e.push({dom:n,top:n.scrollTop,left:n.scrollLeft}),t!=r);n=s(n));return e}function E(t,e){for(let r=0;r<t.length;r++){let{dom:n,top:i,left:a}=t[r];n.scrollTop!=i+e&&(n.scrollTop=i+e),n.scrollLeft!=a&&(n.scrollLeft=a)}}let Y=null;function D(t,e){return t.left>=e.left-1&&t.left<=e.right+1&&t.top>=e.top-1&&t.top<=e.bottom+1}function Q(t){return t.top<t.bottom||t.left<t.right}function Z(t,e){let r=t.getClientRects();if(r.length){let t=r[e<0?0:r.length-1];if(Q(t))return t}return Array.prototype.find.call(r,Q)||t.getBoundingClientRect()}let B=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function K(t,e,r){let{node:n,offset:i,atom:a}=t.docView.domFromPos(e,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 t=Z(c(n,i,i),r);if(O&&i&&/\s/.test(n.nodeValue[i-1])&&i<n.nodeValue.length){let e=Z(c(n,i-1,i-1),-1);if(e.top==t.top){let r=Z(c(n,i,i+1),-1);if(r.top!=t.top)return $(r,r.left<e.left)}}return t}else{let t=i,e=i,a=r<0?1:-1;return r<0&&!i?(e++,a=-1):r>=0&&i==n.nodeValue.length?(t--,a=1):r<0?t--:e++,$(Z(c(n,t,e),a),a<0)}if(!t.state.doc.resolve(e-(a||0)).parent.inlineContent){if(null==a&&i&&(r<0||i==f(n))){let t=n.childNodes[i-1];if(1==t.nodeType)return G(t.getBoundingClientRect(),!1)}if(null==a&&i<f(n)){let t=n.childNodes[i];if(1==t.nodeType)return G(t.getBoundingClientRect(),!0)}return G(n.getBoundingClientRect(),r>=0)}if(null==a&&i&&(r<0||i==f(n))){let t=n.childNodes[i-1],e=3==t.nodeType?c(t,f(t)-!o):1!=t.nodeType||"BR"==t.nodeName&&t.nextSibling?null:t;if(e)return $(Z(e,1),!1)}if(null==a&&i<f(n)){let t=n.childNodes[i];for(;t.pmViewDesc&&t.pmViewDesc.ignoreForCoords;)t=t.nextSibling;let e=t?3==t.nodeType?c(t,0,+!o):1==t.nodeType?t:null:null;if(e)return $(Z(e,-1),!0)}return $(Z(3==n.nodeType?c(n):n,-r),r>=0)}function $(t,e){if(0==t.width)return t;let r=e?t.left:t.right;return{top:t.top,bottom:t.bottom,left:r,right:r}}function G(t,e){if(0==t.height)return t;let r=e?t.top:t.bottom;return{top:r,bottom:r,left:t.left,right:t.right}}function H(t,e,r){let n=t.state,i=t.root.activeElement;n!=e&&t.updateState(e),i!=t.dom&&t.focus();try{return r()}finally{n!=e&&t.updateState(n),i!=t.dom&&i&&i.focus()}}let z=/[\u0590-\u08ac]/,J=null,j=null,q=!1;class tt{constructor(t,e,r,n){this.parent=t,this.children=e,this.dom=r,this.contentDOM=n,this.dirty=0,r.pmViewDesc=this}matchesWidget(t){return!1}matchesMark(t){return!1}matchesNode(t,e,r){return!1}matchesHack(t){return!1}parseRule(t){return null}stopEvent(t){return!1}get size(){let t=0;for(let e=0;e<this.children.length;e++)t+=this.children[e].size;return t}get border(){return 0}destroy(){this.parent=void 0,this.dom.pmViewDesc==this&&(this.dom.pmViewDesc=void 0);for(let t=0;t<this.children.length;t++)this.children[t].destroy()}posBeforeChild(t){for(let e=0,r=this.posAtStart;;e++){let n=this.children[e];if(n==t)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(t,e,r){let n;if(this.contentDOM&&this.contentDOM.contains(1==t.nodeType?t:t.parentNode))if(r<0){let r,n;if(t==this.contentDOM)r=t.childNodes[e-1];else{for(;t.parentNode!=this.contentDOM;)t=t.parentNode;r=t.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(t==this.contentDOM)r=t.childNodes[e];else{for(;t.parentNode!=this.contentDOM;)t=t.parentNode;r=t.nextSibling}for(;r&&!((n=r.pmViewDesc)&&n.parent==this);)r=r.nextSibling;return r?this.posBeforeChild(n):this.posAtEnd}if(t==this.dom&&this.contentDOM)n=e>o(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))n=2&t.compareDocumentPosition(this.contentDOM);else if(this.dom.firstChild){if(0==e)for(let e=t;;e=e.parentNode){if(e==this.dom){n=!1;break}if(e.previousSibling)break}if(null==n&&e==t.childNodes.length)for(let e=t;;e=e.parentNode){if(e==this.dom){n=!0;break}if(e.nextSibling)break}}return(null==n?r>0:n)?this.posAtEnd:this.posAtStart}nearestDesc(t,e=!1){for(let r=!0,n=t;n;n=n.parentNode){let i=this.getDesc(n),a;if(i&&(!e||i.node))if(!r||!(a=i.nodeDOM)||(1==a.nodeType?a.contains(1==t.nodeType?t:t.parentNode):a==t))return i;else r=!1}}getDesc(t){let e=t.pmViewDesc;for(let t=e;t;t=t.parent)if(t==this)return e}posFromDOM(t,e,r){for(let n=t;n;n=n.parentNode){let i=this.getDesc(n);if(i)return i.localPosFromDOM(t,e,r)}return -1}descAt(t){for(let e=0,r=0;e<this.children.length;e++){let n=this.children[e],i=r+n.size;if(r==t&&i!=r){for(;!n.border&&n.children.length;)for(let t=0;t<n.children.length;t++){let e=n.children[t];if(e.size){n=e;break}}return n}if(t<i)return n.descAt(t-r-n.border);r=i}}domFromPos(t,e){if(!this.contentDOM)return{node:this.dom,offset:0,atom:t+1};let r=0,n=0;for(let e=0;r<this.children.length;r++){let i=this.children[r],a=e+i.size;if(a>t||i instanceof ts){n=t-e;break}e=a}if(n)return this.children[r].domFromPos(n-this.children[r].border,e);for(let t;r&&!(t=this.children[r-1]).size&&t instanceof te&&t.side>=0;r--);if(e<=0){let t,n=!0;for(;(t=r?this.children[r-1]:null)&&t.dom.parentNode!=this.contentDOM;r--,n=!1);return t&&e&&n&&!t.border&&!t.domAtom?t.domFromPos(t.size,e):{node:this.contentDOM,offset:t?o(t.dom)+1:0}}{let t,n=!0;for(;(t=r<this.children.length?this.children[r]:null)&&t.dom.parentNode!=this.contentDOM;r++,n=!1);return t&&n&&!t.border&&!t.domAtom?t.domFromPos(0,e):{node:this.contentDOM,offset:t?o(t.dom):this.contentDOM.childNodes.length}}}parseRange(t,e,r=0){if(0==this.children.length)return{node:this.contentDOM,from:t,to:e,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&&t<=l){let i=a+r.border;if(t>=i&&e<=l-r.border&&r.node&&r.contentDOM&&this.contentDOM.contains(r.contentDOM))return r.parseRange(t,e,i);t=a;for(let e=s;e>0;e--){let r=this.children[e-1];if(r.size&&r.dom.parentNode==this.contentDOM&&!r.emptyChildAt(1)){n=o(r.dom)+1;break}t-=r.size}-1==n&&(n=0)}if(n>-1&&(l>e||s==this.children.length-1)){e=l;for(let t=s+1;t<this.children.length;t++){let r=this.children[t];if(r.size&&r.dom.parentNode==this.contentDOM&&!r.emptyChildAt(-1)){i=o(r.dom);break}e+=r.size}-1==i&&(i=this.contentDOM.childNodes.length);break}a=l}return{node:this.contentDOM,from:t,to:e,fromOffset:n,toOffset:i}}emptyChildAt(t){if(this.border||!this.contentDOM||!this.children.length)return!1;let e=this.children[t<0?0:this.children.length-1];return 0==e.size||e.emptyChildAt(t)}domAfterPos(t){let{node:e,offset:r}=this.domFromPos(t,0);if(1!=e.nodeType||r==e.childNodes.length)throw RangeError("No node after pos "+t);return e.childNodes[r]}setSelection(t,e,r,n=!1){let i=Math.min(t,e),a=Math.max(t,e);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(t-s-l.border,e-s-l.border,r,n);s=c}let s=this.domFromPos(t,t?-1:1),l=e==t?s:this.domFromPos(e,e?-1:1),c=r.root.getSelection(),u=r.domSelectionRange(),p=!1;if((O||T)&&t==e){let{node:t,offset:e}=s;if(3==t.nodeType){if((p=!!(e&&"\n"==t.nodeValue[e-1]))&&e==t.nodeValue.length)for(let e=t,r;e;e=e.parentNode){if(r=e.nextSibling){"BR"==r.nodeName&&(s=l={node:r.parentNode,offset:o(r)+1});break}let t=e.pmViewDesc;if(t&&t.node&&t.node.isBlock)break}}else{let r=t.childNodes[e-1];p=r&&("BR"==r.nodeName||"false"==r.contentEditable)}}if(O&&u.focusNode&&u.focusNode!=l.node&&1==u.focusNode.nodeType){let t=u.focusNode.childNodes[u.focusOffset];t&&"false"==t.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||t==e)&&!(p&&O)){c.collapse(s.node,s.offset);try{t!=e&&c.extend(l.node,l.offset),d=!0}catch(t){}}if(!d){if(t>e){let t=s;s=l,l=t}let r=document.createRange();r.setEnd(l.node,l.offset),r.setStart(s.node,s.offset),c.removeAllRanges(),c.addRange(r)}}ignoreMutation(t){return!this.contentDOM&&"selection"!=t.type}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(t,e){for(let r=0,n=0;n<this.children.length;n++){let i=this.children[n],a=r+i.size;if(r==a?t<=a&&e>=r:t<a&&e>r){let n=r+i.border,o=a-i.border;if(t>=n&&e<=o){this.dirty=t==r||e==a?2:1,t==n&&e==o&&(i.contentLost||i.dom.parentNode!=this.contentDOM)?i.dirty=3:i.markDirty(t-n,e-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 t=1;for(let e=this.parent;e;e=e.parent,t++){let r=1==t?2:1;e.dirty<r&&(e.dirty=r)}}get domAtom(){return!1}get ignoreForCoords(){return!1}get ignoreForSelection(){return!1}isText(t){return!1}}class te extends tt{constructor(t,e,r,n){let i,a=e.type.toDOM;if("function"==typeof a&&(a=a(r,()=>i?i.parent?i.parent.posBeforeChild(i):void 0:n)),!e.type.spec.raw){if(1!=a.nodeType){let t=document.createElement("span");t.appendChild(a),a=t}a.contentEditable="false",a.classList.add("ProseMirror-widget")}super(t,[],a,null),this.widget=e,this.widget=e,i=this}matchesWidget(t){return 0==this.dirty&&t.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(t){let e=this.widget.spec.stopEvent;return!!e&&e(t)}ignoreMutation(t){return"selection"!=t.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 tr extends tt{constructor(t,e,r,n){super(t,[],e,null),this.textDOM=r,this.text=n}get size(){return this.text.length}localPosFromDOM(t,e){return t!=this.textDOM?this.posAtStart+(e?this.size:0):this.posAtStart+e}domFromPos(t){return{node:this.textDOM,offset:t}}ignoreMutation(t){return"characterData"===t.type&&t.target.nodeValue==t.oldValue}}class tn extends tt{constructor(t,e,r,n,i){super(t,[],r,n),this.mark=e,this.spec=i}static create(t,e,r,n){let a=n.nodeViews[e.type.name],o=a&&a(e,n,r);return o&&o.dom||(o=i.ZF.renderSpec(document,e.type.spec.toDOM(e,r),null,e.attrs)),new tn(t,e,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(t){return 3!=this.dirty&&this.mark.eq(t)}markDirty(t,e){if(super.markDirty(t,e),0!=this.dirty){let t=this.parent;for(;!t.node;)t=t.parent;t.dirty<this.dirty&&(t.dirty=this.dirty),this.dirty=0}}slice(t,e,r){let n=tn.create(this.parent,this.mark,!0,r),i=this.children,a=this.size;e<a&&(i=ty(i,e,a,r)),t>0&&(i=ty(i,0,t,r));for(let t=0;t<i.length;t++)i[t].parent=n;return n.children=i,n}ignoreMutation(t){return this.spec.ignoreMutation?this.spec.ignoreMutation(t):super.ignoreMutation(t)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}}class ti extends tt{constructor(t,e,r,n,i,a,o){super(t,[],i,a),this.node=e,this.outerDeco=r,this.innerDeco=n,this.nodeDOM=o}static create(t,e,r,n,a,o){let s=a.nodeViews[e.type.name],l,c=s&&s(e,a,()=>l?l.parent?l.parent.posBeforeChild(l):void 0:o,r,n),u=c&&c.dom,h=c&&c.contentDOM;if(e.isText)if(u){if(3!=u.nodeType)throw RangeError("Text must be rendered as a DOM text node")}else u=document.createTextNode(e.text);else if(!u){let t=i.ZF.renderSpec(document,e.type.spec.toDOM(e),null,e.attrs);({dom:u,contentDOM:h}=t)}h||e.isText||"BR"==u.nodeName||(u.hasAttribute("contenteditable")||(u.contentEditable="false"),e.type.spec.draggable&&(u.draggable=!0));let p=u;return(u=td(u,r,e),c)?l=new tl(t,e,r,n,u,h||null,p,c):e.isText?new to(t,e,r,n,u,p):new ti(t,e,r,n,u,h||null,p)}parseRule(t){if(this.node.type.spec.reparseInView)return null;let e={node:this.node.type.name,attrs:this.node.attrs};if("pre"==this.node.type.whitespace&&(e.preserveWhitespace="full"),this.contentDOM)if(this.contentLost){for(let t=this.children.length-1;t>=0;t--){let r=this.children[t];if(this.dom.contains(r.dom.parentNode)){e.contentElement=r.dom.parentNode;break}}if(!e.contentElement){let r=t&&t.find(e=>1==e.nodeType&&0>t.indexOf(e.parentNode)&&this.dom.contains(e));r?e.contentElement=r:e.getContent=()=>i.FK.empty}}else e.contentElement=this.contentDOM;else e.getContent=()=>this.node.content;return e}matchesNode(t,e,r){return 0==this.dirty&&t.eq(this.node)&&tf(e,this.outerDeco)&&r.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return+!this.node.isLeaf}updateChildren(t,e){let r=this.node.inlineContent,n=e,a=t.composing?this.localCompositionInfo(t,e):null,o=a&&a.pos>-1?a:null,s=a&&a.pos<0,l=new tg(this,o&&o.node,t);(function(t,e,r,n){let i=e.locals(t),a=0;if(0==i.length){for(let r=0;r<t.childCount;r++){let o=t.child(r);n(o,i,e.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 t=i[o++];t.widget&&(u?(h||(h=[u])).push(t):u=t)}if(u)if(h){h.sort(tA);for(let t=0;t<h.length;t++)r(h[t],c,!!l)}else r(u,c,!!l);if(l)d=-1,p=l,l=null;else if(c<t.childCount)d=c,p=t.child(c++);else break;for(let t=0;t<s.length;t++)s[t].to<=a&&s.splice(t--,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 t=f;o<i.length&&i[o].from<t&&(t=i[o].from);for(let e=0;e<s.length;e++)s[e].to<t&&(t=s[e].to);t<f&&(l=p.cut(t-a),p=p.cut(0,t-a),f=t,d=-1)}else for(;o<i.length&&i[o].to<f;)o++;let m=p.isInline&&!p.isLeaf?s.filter(t=>!t.inline):s.slice();n(p,m,e.forChild(a,p),d),a=f}})(this.node,this.innerDeco,(e,a,o)=>{e.spec.marks?l.syncToMarks(e.spec.marks,r,t,a):e.type.side>=0&&!o&&l.syncToMarks(a==this.node.childCount?i.CU.none:this.node.child(a).marks,r,t,a),l.placeWidget(e,t,n)},(e,i,o,c)=>{let u;l.syncToMarks(e.marks,r,t,c),l.findNodeMatch(e,i,o,c)||s&&t.state.selection.from>n&&t.state.selection.to<n+e.nodeSize&&(u=l.findIndexWithChild(a.node))>-1&&l.updateNodeAt(e,i,o,u,t)||l.updateNextNode(e,i,o,t,c,n)||l.addNode(e,i,o,t,n),n+=e.nodeSize}),l.syncToMarks([],r,t,0),this.node.isTextblock&&l.addTextblockHacks(),l.destroyRest(),(l.changed||2==this.dirty)&&(o&&this.protectLocalComposition(t,o),function t(e,r,n){let i=e.firstChild,a=!1;for(let o=0;o<r.length;o++){let s=r[o],l=s.dom;if(l.parentNode==e){for(;l!=i;)i=tm(i),a=!0;i=i.nextSibling}else a=!0,e.insertBefore(l,i);if(s instanceof tn){let r=i?i.previousSibling:e.lastChild;t(s.contentDOM,s.children,n),i=r?r.nextSibling:e.firstChild}}for(;i;)i=tm(i),a=!0;a&&n.trackWrites==e&&(n.trackWrites=null)}(this.contentDOM,this.children,t),P&&function(t){if("UL"==t.nodeName||"OL"==t.nodeName){let e=t.style.cssText;t.style.cssText=e+"; list-style: square !important",window.getComputedStyle(t).listStyle,t.style.cssText=e}}(this.dom))}localCompositionInfo(t,e){let{from:r,to:i}=t.state.selection;if(!(t.state.selection instanceof n.U3)||r<e||i>e+this.node.content.size)return null;let a=t.input.compositionNode;if(!a||!this.dom.contains(a.parentNode))return null;if(!this.node.inlineContent)return{node:a,pos:-1,text:""};{let t=a.nodeValue,n=function(t,e,r,n){for(let i=0,a=0;i<t.childCount&&a<=n;){let o=t.child(i++),s=a;if(a+=o.nodeSize,!o.isText)continue;let l=o.text;for(;i<t.childCount;){let e=t.child(i++);if(a+=e.nodeSize,!e.isText)break;l+=e.text}if(a>=r){if(a>=n&&l.slice(n-e.length-s,n-s)==e)return n-e.length;let t=s<n?l.lastIndexOf(e,n-s-1):-1;if(t>=0&&t+e.length+s>=r)return s+t;if(r==n&&l.length>=n+e.length-s&&l.slice(n-s,n-s+e.length)==e)return n}}return -1}(this.node.content,t,r-e,i-e);return n<0?null:{node:a,pos:n,text:t}}}protectLocalComposition(t,{node:e,pos:r,text:n}){if(this.getDesc(e))return;let i=e;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 tr(this,i,e,n);t.input.compositionNodes.push(a),this.children=ty(this.children,r,r+n.length,t,a)}update(t,e,r,n){return 3!=this.dirty&&!!t.sameMarkup(this.node)&&(this.updateInner(t,e,r,n),!0)}updateInner(t,e,r,n){this.updateOuterDeco(e),this.node=t,this.innerDeco=r,this.contentDOM&&this.updateChildren(n,this.posAtStart),this.dirty=0}updateOuterDeco(t){if(tf(t,this.outerDeco))return;let e=1!=this.nodeDOM.nodeType,r=this.dom;this.dom=tp(this.dom,this.nodeDOM,th(this.outerDeco,this.node,e),th(t,this.node,e)),this.dom!=r&&(r.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=t}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 ta(t,e,r,n,i){td(n,e,t);let a=new ti(void 0,t,e,r,n,n,n);return a.contentDOM&&a.updateChildren(i,0),a}class to extends ti{constructor(t,e,r,n,i,a){super(t,e,r,n,i,null,a)}parseRule(){let t=this.nodeDOM.parentNode;for(;t&&t!=this.dom&&!t.pmIsDeco;)t=t.parentNode;return{skip:t||!0}}update(t,e,r,n){return 3!=this.dirty&&(0==this.dirty||!!this.inParent())&&!!t.sameMarkup(this.node)&&(this.updateOuterDeco(e),(0!=this.dirty||t.text!=this.node.text)&&t.text!=this.nodeDOM.nodeValue&&(this.nodeDOM.nodeValue=t.text,n.trackWrites==this.nodeDOM&&(n.trackWrites=null)),this.node=t,this.dirty=0,!0)}inParent(){let t=this.parent.contentDOM;for(let e=this.nodeDOM;e;e=e.parentNode)if(e==t)return!0;return!1}domFromPos(t){return{node:this.nodeDOM,offset:t}}localPosFromDOM(t,e,r){return t==this.nodeDOM?this.posAtStart+Math.min(e,this.node.text.length):super.localPosFromDOM(t,e,r)}ignoreMutation(t){return"characterData"!=t.type&&"selection"!=t.type}slice(t,e,r){let n=this.node.cut(t,e),i=document.createTextNode(n.text);return new to(this.parent,n,this.outerDeco,this.innerDeco,i,i)}markDirty(t,e){super.markDirty(t,e),this.dom!=this.nodeDOM&&(0==t||e==this.nodeDOM.nodeValue.length)&&(this.dirty=3)}get domAtom(){return!1}isText(t){return this.node.text==t}}class ts extends tt{parseRule(){return{ignore:!0}}matchesHack(t){return 0==this.dirty&&this.dom.nodeName==t}get domAtom(){return!0}get ignoreForCoords(){return"IMG"==this.dom.nodeName}}class tl extends ti{constructor(t,e,r,n,i,a,o,s){super(t,e,r,n,i,a,o),this.spec=s}update(t,e,r,n){if(3==this.dirty)return!1;if(this.spec.update&&(this.node.type==t.type||this.spec.multiType)){let i=this.spec.update(t,e,r);return i&&this.updateInner(t,e,r,n),i}return(!!this.contentDOM||!!t.isLeaf)&&super.update(t,e,r,n)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(t,e,r,n){this.spec.setSelection?this.spec.setSelection(t,e,r.root):super.setSelection(t,e,r,n)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(t){return!!this.spec.stopEvent&&this.spec.stopEvent(t)}ignoreMutation(t){return this.spec.ignoreMutation?this.spec.ignoreMutation(t):super.ignoreMutation(t)}}let tc=function(t){t&&(this.nodeName=t)};tc.prototype=Object.create(null);let tu=[new tc];function th(t,e,r){if(0==t.length)return tu;let n=r?tu[0]:new tc,i=[n];for(let a=0;a<t.length;a++){let o=t[a].type.attrs;if(o)for(let t in o.nodeName&&i.push(n=new tc(o.nodeName)),o){let a=o[t];null!=a&&(r&&1==i.length&&i.push(n=new tc(e.isInline?"span":"div")),"class"==t?n.class=(n.class?n.class+" ":"")+a:"style"==t?n.style=(n.style?n.style+";":"")+a:"nodeName"!=t&&(n[t]=a))}}return i}function tp(t,e,r,n){if(r==tu&&n==tu)return e;let i=e;for(let e=0;e<n.length;e++){let a=n[e],o=r[e];if(e){let e;o&&o.nodeName==a.nodeName&&i!=t&&(e=i.parentNode)&&e.nodeName.toLowerCase()==a.nodeName||((e=document.createElement(a.nodeName)).pmIsDeco=!0,e.appendChild(i),o=tu[0]),i=e}!function(t,e,r){for(let n in e)"class"==n||"style"==n||"nodeName"==n||n in r||t.removeAttribute(n);for(let n in r)"class"!=n&&"style"!=n&&"nodeName"!=n&&r[n]!=e[n]&&t.setAttribute(n,r[n]);if(e.class!=r.class){let n=e.class?e.class.split(" ").filter(Boolean):[],i=r.class?r.class.split(" ").filter(Boolean):[];for(let e=0;e<n.length;e++)-1==i.indexOf(n[e])&&t.classList.remove(n[e]);for(let e=0;e<i.length;e++)-1==n.indexOf(i[e])&&t.classList.add(i[e]);0==t.classList.length&&t.removeAttribute("class")}if(e.style!=r.style){if(e.style){let r=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g,n;for(;n=r.exec(e.style);)t.style.removeProperty(n[1])}r.style&&(t.style.cssText+=r.style)}}(i,o||tu[0],a)}return i}function td(t,e,r){return tp(t,t,tu,th(e,r,1!=t.nodeType))}function tf(t,e){if(t.length!=e.length)return!1;for(let r=0;r<t.length;r++)if(!t[r].type.eq(e[r].type))return!1;return!0}function tm(t){let e=t.nextSibling;return t.parentNode.removeChild(t),e}class tg{constructor(t,e,r){this.lock=e,this.view=r,this.index=0,this.stack=[],this.changed=!1,this.top=t,this.preMatch=function(t,e){let r=e,n=r.children.length,i=t.childCount,a=new Map,o=[];l:for(;i>0;){let s;for(;;)if(n){let t=r.children[n-1];if(t instanceof tn)r=t,n=t.children.length;else{s=t,n--;break}}else if(r==e)break l;else n=r.parent.children.indexOf(r),r=r.parent;let l=s.node;if(l){if(l!=t.child(i-1))break;--i,a.set(s,i),o.push(s)}}return{index:i,matched:a,matches:o.reverse()}}(t.node.content,t)}destroyBetween(t,e){if(t!=e){for(let r=t;r<e;r++)this.top.children[r].destroy();this.top.children.splice(t,e-t),this.changed=!0}}destroyRest(){this.destroyBetween(this.index,this.top.children.length)}syncToMarks(t,e,r,n){let i=0,a=this.stack.length>>1,o=Math.min(a,t.length);for(;i<o&&(i==a-1?this.top:this.stack[i+1<<1]).matchesMark(t[i])&&!1!==t[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<t.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 e=this.index;e<o;e++){let r=this.top.children[e];if(r.matchesMark(t[a])&&!this.isLocked(r.dom)){i=e;break}}if(i<0&&this.index<this.top.children.length){let e=this.top.children[this.index];e instanceof tn&&3!=e.dirty&&e.mark.type==t[a].type&&e.spec.update&&!this.isLocked(e.dom)&&e.spec.update(t[a])&&(e.mark=t[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=tn.create(this.top,t[a],e,r);this.top.children.splice(this.index,0,n),this.top=n,this.changed=!0}this.index=0,a++}}findNodeMatch(t,e,r,n){let i=-1,a;if(n>=this.preMatch.index&&(a=this.preMatch.matches[n-this.preMatch.index]).parent==this.top&&a.matchesNode(t,e,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(t,e,r)&&!this.preMatch.matched.has(a)){i=n;break}}return!(i<0)&&(this.destroyBetween(this.index,i),this.index++,!0)}updateNodeAt(t,e,r,n,i){let a=this.top.children[n];return 3==a.dirty&&a.dom==a.contentDOM&&(a.dirty=2),!!a.update(t,e,r,i)&&(this.destroyBetween(this.index,n),this.index++,!0)}findIndexWithChild(t){for(;;){let e=t.parentNode;if(!e)return -1;if(e==this.top.contentDOM){let e=t.pmViewDesc;if(e){for(let t=this.index;t<this.top.children.length;t++)if(this.top.children[t]==e)return t}return -1}t=e}}updateNextNode(t,e,r,n,i,a){for(let o=this.index;o<this.top.children.length;o++){let s=this.top.children[o];if(s instanceof ti){let l=this.preMatch.matched.get(s);if(null!=l&&l!=i)return!1;let c=s.dom,u,h=this.isLocked(c)&&!(t.isText&&s.node&&s.node.isText&&s.nodeDOM.nodeValue==t.text&&3!=s.dirty&&tf(e,s.outerDeco));if(!h&&s.update(t,e,r,n))return this.destroyBetween(this.index,o),s.dom!=c&&(this.changed=!0),this.index++,!0;if(!h&&(u=this.recreateWrapper(s,t,e,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(t,e,r,n,i,a){if(t.dirty||e.isAtom||!t.children.length||!t.node.content.eq(e.content)||!tf(r,t.outerDeco)||!n.eq(t.innerDeco))return null;let o=ti.create(this.top,e,r,n,i,a);if(o.contentDOM)for(let e of(o.children=t.children,t.children=[],o.children))e.parent=o;return t.destroy(),o}addNode(t,e,r,n,i){let a=ti.create(this.top,t,e,r,n,i);a.contentDOM&&a.updateChildren(n,i+1),this.top.children.splice(this.index++,0,a),this.changed=!0}placeWidget(t,e,r){let n=this.index<this.top.children.length?this.top.children[this.index]:null;if(n&&n.matchesWidget(t)&&(t==n.widget||!n.widget.type.toDOM.parentNode))this.index++;else{let n=new te(this.top,t,e,r);this.top.children.splice(this.index++,0,n),this.changed=!0}}addTextblockHacks(){let t=this.top.children[this.index-1],e=this.top;for(;t instanceof tn;)t=(e=t).children[e.children.length-1];(!t||!(t instanceof to)||/\n$/.test(t.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(t.node.text))&&((T||L)&&t&&"false"==t.dom.contentEditable&&this.addHackNode("IMG",e),this.addHackNode("BR",this.top))}addHackNode(t,e){if(e==this.top&&this.index<e.children.length&&e.children[this.index].matchesHack(t))this.index++;else{let r=document.createElement(t);"IMG"==t&&(r.className="ProseMirror-separator",r.alt=""),"BR"==t&&(r.className="ProseMirror-trailingBreak");let n=new ts(this.top,[],r,null);e!=this.top?e.children.push(n):e.children.splice(this.index++,0,n),this.changed=!0}}isLocked(t){return this.lock&&(t==this.lock||1==t.nodeType&&t.contains(this.lock.parentNode))}}function tA(t,e){return t.type.side-e.type.side}function ty(t,e,r,n,i){let a=[];for(let o=0,s=0;o<t.length;o++){let l=t[o],c=s,u=s+=l.size;c>=r||u<=e?a.push(l):(c<e&&a.push(l.slice(0,e-c,n)),i&&(a.push(i),i=void 0),u>r&&a.push(l.slice(r-c,l.size,n)))}return a}function tv(t,e=null){let r=t.domSelectionRange(),i=t.state.doc;if(!r.focusNode)return null;let a=t.docView.nearestDesc(r.focusNode),s=a&&0==a.size,l=t.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 t=a.node;if(a&&t.isAtom&&n.nh.isSelectable(t)&&a.parent&&!(t.isInline&&function(t,e,r){for(let n=0==e,i=e==f(t);n||i;){if(t==r)return!0;let e=o(t);if(!(t=t.parentNode))return!1;n=n&&0==e,i=i&&e==f(t)}}(r.focusNode,r.focusOffset,a.dom))){let t=a.posBefore;h=new n.nh(l==t?c:i.resolve(t))}}else{if(r instanceof t.dom.ownerDocument.defaultView.Selection&&r.rangeCount>1){let e=l,n=l;for(let i=0;i<r.rangeCount;i++){let a=r.getRangeAt(i);e=Math.min(e,t.docView.posFromDOM(a.startContainer,a.startOffset,1)),n=Math.max(n,t.docView.posFromDOM(a.endContainer,a.endOffset,-1))}if(e<0)return null;[u,l]=n==t.state.selection.anchor?[n,e]:[e,n],c=i.resolve(l)}else u=t.docView.posFromDOM(r.anchorNode,r.anchorOffset,1);if(u<0)return null}let p=i.resolve(u);if(!h){let r="pointer"==e||t.state.selection.head<c.pos&&!s?1:-1;h=tL(t,p,c,r)}return h}function tR(t){return t.editable?t.hasFocus():tT(t)&&document.activeElement&&document.activeElement.contains(t.dom)}function tb(t,e=!1){let r=t.state.selection;if(tO(t,r),!tR(t))return;let i=t.input.mouseDown;if(!e&&L&&i){let e=t.domSelectionRange(),r=t.domObserver.currentSelection;if(e.anchorNode&&r.anchorNode&&h(e.anchorNode,e.anchorOffset,r.anchorNode,r.anchorOffset)&&i.delaySelUpdate())return void t.domObserver.setCurSelection()}if(t.domObserver.disconnectSelection(),t.cursorWrapper)!function(t){let e=t.domSelection();if(!e)return;let r=t.cursorWrapper.dom,n="IMG"==r.nodeName;n?e.collapse(r.parentNode,o(r)+1):e.collapse(r,0),!n&&!t.state.selection.visible&&S&&w<=11&&(r.disabled=!0,r.disabled=!1)}(t);else{var a;let i,o,s,l,{anchor:c,head:u}=r,h,p;tx&&!(r instanceof n.U3)&&(r.$from.parent.inlineContent||(h=tM(t,r.from)),r.empty||r.$from.parent.inlineContent||(p=tM(t,r.to))),t.docView.setSelection(c,u,t,e),tx&&(h&&tw(h),p&&tw(p)),r.visible?t.dom.classList.remove("ProseMirror-hideselection"):(t.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&((i=(a=t).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(()=>{(!tR(a)||a.state.selection.visible)&&a.dom.classList.remove("ProseMirror-hideselection")},20))})))}t.domObserver.setCurSelection(),t.domObserver.connectSelection()}let tx=T||L&&_<63;function tM(t,e){let{node:r,offset:n}=t.docView.domFromPos(e,0),i=n<r.childNodes.length?r.childNodes[n]:null,a=n?r.childNodes[n-1]:null;if(T&&i&&"false"==i.contentEditable)return tS(i);if((!i||"false"==i.contentEditable)&&(!a||"false"==a.contentEditable)){if(i)return tS(i);else if(a)return tS(a)}}function tS(t){return t.contentEditable="true",T&&t.draggable&&(t.draggable=!1,t.wasDraggable=!0),t}function tw(t){t.contentEditable="false",t.wasDraggable&&(t.draggable=!0,t.wasDraggable=null)}function tO(t,e){if(e instanceof n.nh){let r=t.docView.descAt(e.from);r!=t.lastSelectedViewDesc&&(tN(t),r&&r.selectNode(),t.lastSelectedViewDesc=r)}else tN(t)}function tN(t){t.lastSelectedViewDesc&&(t.lastSelectedViewDesc.parent&&t.lastSelectedViewDesc.deselectNode(),t.lastSelectedViewDesc=void 0)}function tL(t,e,r,i){return t.someProp("createSelectionBetween",n=>n(t,e,r))||n.U3.between(e,r,i)}function t_(t){return(!t.editable||!!t.hasFocus())&&tT(t)}function tT(t){let e=t.domSelectionRange();if(!e.anchorNode)return!1;try{return t.dom.contains(3==e.anchorNode.nodeType?e.anchorNode.parentNode:e.anchorNode)&&(t.editable||t.dom.contains(3==e.focusNode.nodeType?e.focusNode.parentNode:e.focusNode))}catch(t){return!1}}function tP(t,e){let{$anchor:r,$head:i}=t.selection,a=e>0?r.max(i):r.min(i),o=a.parent.inlineContent?a.depth?t.doc.resolve(e>0?a.after():a.before()):null:a;return o&&n.LN.findFrom(o,e)}function tI(t,e){return t.dispatch(t.state.tr.setSelection(e).scrollIntoView()),!0}function tC(t,e,r){let i=t.state.selection;if(i instanceof n.U3){if(r.indexOf("s")>-1){let{$head:r}=i,a=r.textOffset?null:e<0?r.nodeBefore:r.nodeAfter;if(!a||a.isText||!a.isLeaf)return!1;let o=t.state.doc.resolve(r.pos+a.nodeSize*(e<0?-1:1));return tI(t,new n.U3(i.$anchor,o))}else if(!i.empty)return!1;else if(t.endOfTextblock(e>0?"forward":"backward")){let r=tP(t.state,e);return!!r&&r instanceof n.nh&&tI(t,r)}else if(!(I&&r.indexOf("m")>-1)){let r=i.$head,a=r.textOffset?null:e<0?r.nodeBefore:r.nodeAfter,o;if(!a||a.isText)return!1;let s=e<0?r.pos-a.nodeSize:r.pos;return!!(a.isAtom||(o=t.docView.descAt(s))&&!o.contentDOM)&&(n.nh.isSelectable(a)?tI(t,new n.nh(e<0?t.state.doc.resolve(r.pos-a.nodeSize):r)):!!F&&tI(t,new n.U3(t.state.doc.resolve(e<0?s:s+a.nodeSize))))}}else{if(i instanceof n.nh&&i.node.isInline)return tI(t,new n.U3(e>0?i.$to:i.$from));let r=tP(t.state,e);return!!r&&tI(t,r)}}function tk(t){return 3==t.nodeType?t.nodeValue.length:t.childNodes.length}function tF(t,e){let r=t.pmViewDesc;return r&&0==r.size&&(e<0||t.nextSibling||"BR"!=t.nodeName)}function tX(t,e){return e<0?function(t){let e=t.domSelectionRange(),r=e.focusNode,n=e.focusOffset;if(!r)return;let i,a,s=!1;for(O&&1==r.nodeType&&n<tk(r)&&tF(r.childNodes[n],-1)&&(s=!0);;)if(n>0)if(1!=r.nodeType)break;else{let t=r.childNodes[n-1];if(tF(t,-1))i=r,a=--n;else if(3==t.nodeType)n=(r=t).nodeValue.length;else break}else if(tU(r))break;else{let e=r.previousSibling;for(;e&&tF(e,-1);)i=r.parentNode,a=o(e),e=e.previousSibling;if(e)n=tk(r=e);else{if((r=r.parentNode)==t.dom)break;n=0}}s?tW(t,r,n):i&&tW(t,i,a)}(t):function(t){let e,r,n=t.domSelectionRange(),i=n.focusNode,a=n.focusOffset;if(!i)return;let s=tk(i);for(;;)if(a<s){if(1!=i.nodeType)break;if(tF(i.childNodes[a],1))e=i,r=++a;else break}else if(tU(i))break;else{let n=i.nextSibling;for(;n&&tF(n,1);)e=n.parentNode,r=o(n)+1,n=n.nextSibling;if(n)a=0,s=tk(i=n);else{if((i=i.parentNode)==t.dom)break;a=s=0}}e&&tW(t,e,r)}(t)}function tU(t){let e=t.pmViewDesc;return e&&e.node&&e.node.isBlock}function tW(t,e,r){if(3!=e.nodeType){let t,n;(n=function(t,e){for(;t&&e==t.childNodes.length&&!m(t);)e=o(t)+1,t=t.parentNode;for(;t&&e<t.childNodes.length;){let r=t.childNodes[e];if(3==r.nodeType)return r;if(1==r.nodeType&&"false"==r.contentEditable)break;t=r,e=0}}(e,r))?(e=n,r=0):(t=function(t,e){for(;t&&!e&&!m(t);)e=o(t),t=t.parentNode;for(;t&&e;){let r=t.childNodes[e-1];if(3==r.nodeType)return r;if(1==r.nodeType&&"false"==r.contentEditable)break;e=(t=r).childNodes.length}}(e,r))&&(e=t,r=t.nodeValue.length)}let n=t.domSelection();if(!n)return;if(g(n)){let t=document.createRange();t.setEnd(e,r),t.setStart(e,r),n.removeAllRanges(),n.addRange(t)}else n.extend&&n.extend(e,r);t.domObserver.setCurSelection();let{state:i}=t;setTimeout(()=>{t.state==i&&tb(t)},50)}function tV(t,e){let r=t.state.doc.resolve(e);if(!(L||C)&&r.parent.inlineContent){let n=t.coordsAtPos(e);if(e>r.start()){let r=t.coordsAtPos(e-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(e<r.end()){let r=t.coordsAtPos(e+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(t.dom).direction?"rtl":"ltr"}function tE(t,e,r){let i=t.state.selection;if(i instanceof n.U3&&!i.empty||r.indexOf("s")>-1||I&&r.indexOf("m")>-1)return!1;let{$from:a,$to:o}=i;if(!a.parent.inlineContent||t.endOfTextblock(e<0?"up":"down")){let r=tP(t.state,e);if(r&&r instanceof n.nh)return tI(t,r)}if(!a.parent.inlineContent){let r=e<0?a:o,s=i instanceof n.i5?n.LN.near(r,e):n.LN.findFrom(r,e);return!!s&&tI(t,s)}return!1}function tY(t,e){if(!(t.state.selection instanceof n.U3))return!0;let{$head:r,$anchor:i,empty:a}=t.state.selection;if(!r.sameParent(i))return!0;if(!a)return!1;if(t.endOfTextblock(e>0?"forward":"backward"))return!0;let o=!r.textOffset&&(e<0?r.nodeBefore:r.nodeAfter);if(o&&!o.isText){let n=t.state.tr;return e<0?n.delete(r.pos-o.nodeSize,r.pos):n.delete(r.pos,r.pos+o.nodeSize),t.dispatch(n),!0}return!1}function tD(t,e,r){t.domObserver.stop(),e.contentEditable=r,t.domObserver.start()}function tQ(t,e){t.someProp("transformCopied",r=>{e=r(e,t)});let r=[],{content:n,openStart:a,openEnd:o}=e;for(;a>1&&o>1&&1==n.childCount&&1==n.firstChild.childCount;){a--,o--;let t=n.firstChild;r.push(t.type.name,t.attrs!=t.type.defaultAttrs?t.attrs:null),n=t.content}let s=t.someProp("clipboardSerializer")||i.ZF.fromSchema(t.state.schema),l=tz(),c=l.createElement("div");c.appendChild(s.serializeFragment(n,{document:l}));let u=c.firstChild,h,p=0;for(;u&&1==u.nodeType&&(h=tH[u.nodeName.toLowerCase()]);){for(let t=h.length-1;t>=0;t--){let e=l.createElement(h[t]);for(;c.firstChild;)e.appendChild(c.firstChild);c.appendChild(e),p++}u=c.firstChild}return u&&1==u.nodeType&&u.setAttribute("data-pm-slice",`${a} ${o}${p?` -${p}`:""} ${JSON.stringify(r)}`),{dom:c,text:t.someProp("clipboardTextSerializer",r=>r(e,t))||e.content.textBetween(0,e.content.size,"\n\n"),slice:e}}function tZ(t,e,r,n,a){let o,s,l=a.parent.type.spec.code;if(!r&&!e)return null;let c=!!e&&(n||l||!r);if(c){if(t.someProp("transformPastedText",r=>{e=r(e,l||n,t)}),l)return s=new i.Ji(i.FK.from(t.state.schema.text(e.replace(/\r\n?/g,"\n"))),0,0),t.someProp("transformPasted",e=>{s=e(s,t,!0)}),s;let r=t.someProp("clipboardTextParser",r=>r(e,a,n,t));if(r)s=r;else{let r=a.marks(),{schema:n}=t.state,s=i.ZF.fromSchema(n);o=document.createElement("div"),e.split(/(?:\r\n?|\n)+/).forEach(t=>{let e=o.appendChild(document.createElement("p"));t&&e.appendChild(s.serializeNode(n.text(t,r)))})}}else t.someProp("transformPastedHTML",e=>{r=e(r,t)}),o=function(t){var e;let r,n=/^(\s*<meta [^>]*>)*/.exec(t);n&&(t=t.slice(n[0].length));let i=tz(),a=i.body,o=/<([a-z][^>\s]+)/i.exec(t),s;if((s=o&&tH[o[1].toLowerCase()])&&(t=s.map(t=>"<"+t+">").join("")+t+s.map(t=>"</"+t+">").reverse().join("")),a.innerHTML=(e=t,(r=window.trustedTypes)?(tJ||(tJ=r.defaultPolicy||r.createPolicy("ProseMirrorClipboard",{createHTML:t=>t})),tJ.createHTML(e)):e),s)for(let t=0;t<s.length;t++)a=a.querySelector(s[t])||a;for(let t=0;t<i.styleSheets.length;t++){let e=i.styleSheets[t];for(let t=0;t<e.rules.length;t++){let r=e.rules[t];if(r instanceof CSSStyleRule){let t=a.querySelectorAll(r.selectorText);for(let e=0;e<t.length;e++)t[e].style.cssText+=r.style.cssText}}}return a}(r),F&&function(t){let e=t.querySelectorAll(L?"span:not([class]):not([style])":"span.Apple-converted-space");for(let r=0;r<e.length;r++){let n=e[r];1==n.childNodes.length&&" "==n.textContent&&n.parentNode&&n.parentNode.replaceChild(t.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 t=+h[3];t>0;t--){let t=o.firstChild;for(;t&&1!=t.nodeType;)t=t.nextSibling;if(!t)break;o=t}if(s||(s=(t.someProp("clipboardParser")||t.someProp("domParser")||i.S4.fromSchema(t.state.schema)).parseSlice(o,{preserveWhitespace:!!(c||h),context:a,ruleFromNode:t=>"BR"!=t.nodeName||t.nextSibling||!t.parentNode||tB.test(t.parentNode.nodeName)?null:{ignore:!0}})),h)s=function(t,e){if(!t.size)return t;let r=t.content.firstChild.type.schema,n;try{n=JSON.parse(e)}catch(e){return t}let{content:a,openStart:o,openEnd:s}=t;for(let t=n.length-2;t>=0;t-=2){let e=r.nodes[n[t]];if(!e||e.hasRequiredAttrs())break;a=i.FK.from(e.create(n[t+1],a)),o++,s++}return new i.Ji(a,o,s)}(tG(s,+h[1],+h[2]),h[4]);else if((s=i.Ji.maxOpen(function(t,e){if(t.childCount<2)return t;for(let r=e.depth;r>=0;r--){let n=e.node(r).contentMatchAt(e.index(r)),a,o=[];if(t.forEach(t=>{if(!o)return;let e=n.findWrapping(t.type),r;if(!e)return o=null;if(r=o.length&&a.length&&function t(e,r,n,a,o){if(o<e.length&&o<r.length&&e[o]==r[o]){let s=t(e,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==e.length-1?n.type:e[o+1]))return a.copy(a.content.append(i.FK.from(tK(n,e,o+1))))}}(e,a,t,o[o.length-1],0))o[o.length-1]=r;else{o.length&&(o[o.length-1]=function t(e,r){if(0==r)return e;let n=e.content.replaceChild(e.childCount-1,t(e.lastChild,r-1)),a=e.contentMatchAt(e.childCount).fillBefore(i.FK.empty,!0);return e.copy(n.append(a))}(o[o.length-1],a.length));let r=tK(t,e);o.push(r),n=n.matchType(r.type),a=e}}),o)return i.FK.from(o)}return t}(s.content,a),!0)).openStart||s.openEnd){let t=0,e=0;for(let e=s.content.firstChild;t<s.openStart&&!e.type.spec.isolating;t++,e=e.firstChild);for(let t=s.content.lastChild;e<s.openEnd&&!t.type.spec.isolating;e++,t=t.lastChild);s=tG(s,t,e)}return t.someProp("transformPasted",e=>{s=e(s,t,c)}),s}let tB=/^(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 tK(t,e,r=0){for(let n=e.length-1;n>=r;n--)t=e[n].create(null,i.FK.from(t));return t}function t$(t,e,r,n,a,o){let s=e<0?t.firstChild:t.lastChild,l=s.content;return t.childCount>1&&(o=0),a<n-1&&(l=t$(l,e,r,n,a+1,o)),a>=r&&(l=e<0?s.contentMatchAt(0).fillBefore(l,o<=a).append(l):l.append(s.contentMatchAt(s.childCount).fillBefore(i.FK.empty,!0))),t.replaceChild(e<0?0:t.childCount-1,s.copy(l))}function tG(t,e,r){return e<t.openStart&&(t=new i.Ji(t$(t.content,-1,e,t.openStart,0,t.openEnd),e,t.openEnd)),r<t.openEnd&&(t=new i.Ji(t$(t.content,1,r,t.openEnd,0,0),t.openStart,r)),t}let tH={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 tz(){return document.implementation.createHTMLDocument("title")}let tJ=null,tj={},tq={},t0={touchstart:!0,touchmove:!0};class t1{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 t2(t,e){t.input.lastSelectionOrigin=e,t.input.lastSelectionTime=Date.now()}function t3(t){t.someProp("handleDOMEvents",e=>{for(let r in e)t.input.eventHandlers[r]||t.dom.addEventListener(r,t.input.eventHandlers[r]=e=>t5(t,e))})}function t5(t,e){return t.someProp("handleDOMEvents",r=>{let n=r[e.type];return!!n&&(n(t,e)||e.defaultPrevented)})}function t4(t){return{left:t.clientX,top:t.clientY}}function t6(t,e,r,n,i){if(-1==n)return!1;let a=t.state.doc.resolve(n);for(let n=a.depth+1;n>0;n--)if(t.someProp(e,e=>n>a.depth?e(t,r,a.nodeAfter,a.before(n),i,!0):e(t,r,a.node(n),a.before(n),i,!1)))return!0;return!1}function t8(t,e,r){if(t.focused||t.focus(),t.state.selection.eq(e))return;let n=t.state.tr.setSelection(e);"pointer"==r&&n.setMeta("pointer",!0),t.dispatch(n)}function t9(t,e,r){let i=t.state.doc;if(-1==e)return i.inlineContent?n.U3.create(i,0,i.content.size):null;let a=i.resolve(e);for(let t=a.depth+1;t>0;t--){let e=t>a.depth?a.nodeAfter:a.node(t),o=a.before(t);if(e.inlineContent)return n.U3.create(i,o+1,o+1+e.content.size);if(r&&n.nh.isSelectable(e))return n.nh.create(i,o)}return null}tq.keydown=(t,e)=>{if((t.input.shiftKey=16==e.keyCode||e.shiftKey,!en(t))&&(t.input.lastKeyCode=e.keyCode,t.input.lastKeyCodeTime=Date.now(),!k||!L||13!=e.keyCode))if(229!=e.keyCode&&t.domObserver.forceFlush(),!P||13!=e.keyCode||e.ctrlKey||e.altKey||e.metaKey)t.someProp("handleKeyDown",r=>r(t,e))||function(t,e){let r,n=e.keyCode,i=(r="",e.ctrlKey&&(r+="c"),e.metaKey&&(r+="m"),e.altKey&&(r+="a"),e.shiftKey&&(r+="s"),r);if(8==n||I&&72==n&&"c"==i)return tY(t,-1)||tX(t,-1);if(46==n&&!e.shiftKey||I&&68==n&&"c"==i)return tY(t,1)||tX(t,1);if(13==n||27==n)return!0;if(37==n||I&&66==n&&"c"==i){let e=37==n?"ltr"==tV(t,t.state.selection.from)?-1:1:-1;return tC(t,e,i)||tX(t,e)}if(39==n||I&&70==n&&"c"==i){let e=39==n?"ltr"==tV(t,t.state.selection.from)?1:-1:1;return tC(t,e,i)||tX(t,e)}else if(38==n||I&&80==n&&"c"==i)return tE(t,-1,i)||tX(t,-1);else if(40==n||I&&78==n&&"c"==i)return function(t){if(!T||t.state.selection.$head.parentOffset>0)return!1;let{focusNode:e,focusOffset:r}=t.domSelectionRange();if(e&&1==e.nodeType&&0==r&&e.firstChild&&"false"==e.firstChild.contentEditable){let r=e.firstChild;tD(t,r,"true"),setTimeout(()=>tD(t,r,"false"),20)}return!1}(t)||tE(t,1,i)||tX(t,1);else if(i==(I?"m":"c")&&(66==n||73==n||89==n||90==n))return!0;return!1}(t,e)?e.preventDefault():t2(t,"key");else{let e=Date.now();t.input.lastIOSEnter=e,t.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{t.input.lastIOSEnter==e&&(t.someProp("handleKeyDown",e=>e(t,A(13,"Enter"))),t.input.lastIOSEnter=0)},200)}},tq.keyup=(t,e)=>{16==e.keyCode&&(t.input.shiftKey=!1)},tq.keypress=(t,e)=>{if(en(t)||!e.charCode||e.ctrlKey&&!e.altKey||I&&e.metaKey)return;if(t.someProp("handleKeyPress",r=>r(t,e)))return void e.preventDefault();let r=t.state.selection;if(!(r instanceof n.U3)||!r.$from.sameParent(r.$to)){let n=String.fromCharCode(e.charCode),i=()=>t.state.tr.insertText(n).scrollIntoView();/[\r\n]/.test(n)||t.someProp("handleTextInput",e=>e(t,r.$from.pos,r.$to.pos,n,i))||t.dispatch(i()),e.preventDefault()}};let t7=I?"metaKey":"ctrlKey";tj.mousedown=(t,e)=>{var r;let i,a;t.input.shiftKey=e.shiftKey;let o=es(t),s=Date.now(),l="singleClick";s-t.input.lastClick.time<500&&(i=(r=t.input.lastClick).x-e.clientX)*i+(a=r.y-e.clientY)*a<100&&!e[t7]&&t.input.lastClick.button==e.button&&("singleClick"==t.input.lastClick.type?l="doubleClick":"doubleClick"==t.input.lastClick.type&&(l="tripleClick")),t.input.lastClick={time:s,x:e.clientX,y:e.clientY,type:l,button:e.button},t.input.mouseDown&&t.input.mouseDown.done();let c=t.posAtCoords(t4(e));c&&("singleClick"==l?t.input.mouseDown=new ee(t,c,e,!!o):("doubleClick"==l?function(t,e,r,n){return t6(t,"handleDoubleClickOn",e,r,n)||t.someProp("handleDoubleClick",r=>r(t,e,n))}:function(t,e,r,i){return t6(t,"handleTripleClickOn",e,r,i)||t.someProp("handleTripleClick",r=>r(t,e,i))||function(t,e,r){if(0!=r.button)return!1;let i=t9(t,e,!0),a=t.state.doc;return!!i&&(t8(t,i,"pointer"),i instanceof n.U3&&a.eq(t.state.doc)&&(t.input.mouseDown=new er(t,i)),!0)}(t,r,i)})(t,c.pos,c.inside,e)?e.preventDefault():t2(t,"pointer"))};class et{constructor(t){this.view=t,this.mightDrag=null,t.root.addEventListener("mouseup",this.up=this.up.bind(this)),t.root.addEventListener("mousemove",this.move=this.move.bind(this))}up(t){this.done()}move(t){0==t.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 ee extends et{constructor(t,e,r,i){let a,o;if(super(t),this.pos=e,this.event=r,this.flushed=i,this.delayedSelectionSync=!1,this.startDoc=t.state.doc,this.selectNode=!!r[t7],this.allowDefault=r.shiftKey,e.inside>-1)a=t.state.doc.nodeAt(e.inside),o=e.inside;else{let r=t.state.doc.resolve(e.pos);a=r.parent,o=r.depth?r.before():0}let s=i?null:r.target,l=s?t.docView.nearestDesc(s,!0):null;this.target=l&&1==l.nodeDOM.nodeType?l.nodeDOM:null;let{selection:c}=t.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()),t2(t,"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||tb(this.view)})}up(t){if(this.done(),!this.view.dom.contains(t.target))return;let e=this.pos;if(this.view.state.doc!=this.startDoc&&(e=this.view.posAtCoords(t4(t))),this.updateAllowDefault(t),this.allowDefault||!e)t2(this.view,"pointer");else{var r,i,a,o;(r=this.view,i=e.pos,a=e.inside,o=this.selectNode,t6(r,"handleClickOn",i,a,t)||r.someProp("handleClick",e=>e(r,i,t))||(o?function(t,e){if(-1==e)return!1;let r=t.state.selection,i,a;r instanceof n.nh&&(i=r.node);let o=t.state.doc.resolve(e);for(let t=o.depth+1;t>0;t--){let e=t>o.depth?o.nodeAfter:o.node(t);if(n.nh.isSelectable(e)){a=i&&r.$from.depth>0&&t>=r.$from.depth&&o.before(r.$from.depth+1)==r.$from.pos?o.before(r.$from.depth):o.before(t);break}}return null!=a&&(t8(t,n.nh.create(t.state.doc,a),"pointer"),!0)}(r,a):function(t,e){if(-1==e)return!1;let r=t.state.doc.resolve(e),i=r.nodeAfter;return!!(i&&i.isAtom&&n.nh.isSelectable(i))&&(t8(t,new n.nh(r),"pointer"),!0)}(r,a)))?t.preventDefault():0==t.button&&(this.flushed||T&&this.mightDrag&&!this.mightDrag.node.isAtom||L&&!this.view.state.selection.visible&&2>=Math.min(Math.abs(e.pos-this.view.state.selection.from),Math.abs(e.pos-this.view.state.selection.to)))?(t8(this.view,n.LN.near(this.view.state.doc.resolve(e.pos)),"pointer"),t.preventDefault()):t2(this.view,"pointer")}}move(t){this.updateAllowDefault(t),t2(this.view,"pointer"),super.move(t)}updateAllowDefault(t){!this.allowDefault&&(Math.abs(this.event.x-t.clientX)>4||Math.abs(this.event.y-t.clientY)>4)&&(this.allowDefault=!0)}delaySelUpdate(){return!!this.allowDefault&&(this.delayedSelectionSync=!0,!0)}}class er extends et{constructor(t,e){super(t),this.startSelection=e,this.startDoc=t.state.doc}move(t){if(0==t.buttons||this.view.isDestroyed||!this.view.state.doc.eq(this.startDoc))return void this.done();t.preventDefault(),t2(this.view,"pointer");let e=this.view.posAtCoords(t4(t)),r=e&&t9(this.view,e.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];t8(this.view,n.U3.create(i,o,s),"pointer")}}function en(t,e){return!!t.composing||!!(T&&500>Math.abs(Date.now()-t.input.compositionEndedAt))&&(t.input.compositionEndedAt=-2e8,!0)}tj.touchstart=t=>{t.input.lastTouch=Date.now(),es(t),t2(t,"pointer")},tj.touchmove=t=>{t.input.lastTouch=Date.now(),t2(t,"pointer")},tj.contextmenu=t=>es(t);let ei=k?5e3:-1;function ea(t,e){clearTimeout(t.input.composingTimeout),e>-1&&(t.input.composingTimeout=setTimeout(()=>es(t),e))}function eo(t){for(t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=Date.now());t.input.compositionNodes.length>0;)t.input.compositionNodes.pop().markParentsDirty()}function es(t,e=!1){if(!k||!(t.domObserver.flushingSoon>=0)){if(t.domObserver.forceFlush(),eo(t),e||t.docView&&t.docView.dirty){let r=tv(t),n=t.state.selection;return r&&!r.eq(n)?t.dispatch(t.state.tr.setSelection(r)):(t.markCursor||e)&&!n.$from.node(n.$from.sharedDepth(n.to)).inlineContent?t.dispatch(t.state.tr.deleteSelection()):t.updateState(t.state),!0}return!1}}tq.compositionstart=tq.compositionupdate=t=>{if(!t.composing){t.domObserver.flush();let{state:e}=t,r=e.selection.$to;if(e.selection instanceof n.U3&&(e.storedMarks||!r.textOffset&&r.parentOffset&&r.nodeBefore.marks.some(t=>!1===t.type.spec.inclusive)||L&&C&&function(t){let{focusNode:e,focusOffset:r}=t.domSelectionRange();if(!e||1!=e.nodeType||r>=e.childNodes.length)return!1;let n=e.childNodes[r];return 1==n.nodeType&&"false"==n.contentEditable}(t)))t.markCursor=t.state.storedMarks||r.marks(),es(t,!0),t.markCursor=null;else if(es(t,!e.selection.empty),O&&e.selection.empty&&r.parentOffset&&!r.textOffset&&r.nodeBefore.marks.length){let e=t.domSelectionRange();for(let r=e.focusNode,n=e.focusOffset;r&&1==r.nodeType&&0!=n;){let e=n<0?r.lastChild:r.childNodes[n-1];if(!e)break;if(3==e.nodeType){let r=t.domSelection();r&&r.collapse(e,e.nodeValue.length);break}r=e,n=-1}}t.input.composing=!0}ea(t,ei)},tq.compositionend=(t,e)=>{t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=Date.now(),t.input.compositionPendingChanges=t.domObserver.pendingRecords().length?t.input.compositionID:0,t.input.compositionNode=null,t.input.badSafariComposition?t.domObserver.forceFlush():t.input.compositionPendingChanges&&Promise.resolve().then(()=>t.domObserver.flush()),t.input.compositionID++,ea(t,20))};let el=S&&w<15||P&&X<604;function ec(t,e,r,n,a){let o=tZ(t,e,r,n,t.state.selection.$from);if(t.someProp("handlePaste",e=>e(t,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?t.state.tr.replaceSelectionWith(s,n):t.state.tr.replaceSelection(o);return t.dispatch(l.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function eu(t){let e=t.getData("text/plain")||t.getData("Text");if(e)return e;let r=t.getData("text/uri-list");return r?r.replace(/\r?\n/g," "):""}tj.copy=tq.cut=(t,e)=>{let r=t.state.selection,n="cut"==e.type;if(r.empty)return;let i=el?null:e.clipboardData,{dom:a,text:o}=tQ(t,r.content());i?(e.preventDefault(),i.clearData(),i.setData("text/html",a.innerHTML),i.setData("text/plain",o)):function(t,e){if(!t.dom.parentNode)return;let r=t.dom.parentNode.appendChild(document.createElement("div"));r.appendChild(e),r.style.cssText="position: fixed; left: -10000px; top: 10px";let n=getSelection(),i=document.createRange();i.selectNodeContents(e),t.dom.blur(),n.removeAllRanges(),n.addRange(i),setTimeout(()=>{r.parentNode&&r.parentNode.removeChild(r),t.focus()},50)}(t,a),n&&t.dispatch(t.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))},tq.paste=(t,e)=>{if(t.composing&&!k)return;let r=el?null:e.clipboardData,n=t.input.shiftKey&&45!=t.input.lastKeyCode;r&&ec(t,eu(r),r.getData("text/html"),n,e)?e.preventDefault():function(t,e){if(!t.dom.parentNode)return;let r=t.input.shiftKey||t.state.selection.$from.parent.type.spec.code,n=t.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=t.input.shiftKey&&45!=t.input.lastKeyCode;setTimeout(()=>{t.focus(),n.parentNode&&n.parentNode.removeChild(n),r?ec(t,n.value,null,i,e):ec(t,n.textContent,n.innerHTML,i,e)},50)}(t,e)};class eh{constructor(t,e,r){this.slice=t,this.move=e,this.node=r}}let ep=I?"altKey":"ctrlKey";function ed(t,e){let r;return t.someProp("dragCopies",t=>{r=r||t(e)}),null!=r?!r:!e[ep]}for(let t in tj.dragstart=(t,e)=>{let r,i=t.input.mouseDown;if(i&&i.done(),!e.dataTransfer)return;let a=t.state.selection,o=a.empty?null:t.posAtCoords(t4(e));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(t.state.doc,i.mightDrag.pos);else if(e.target&&1==e.target.nodeType){let i=t.docView.nearestDesc(e.target,!0);i&&i.node.type.spec.draggable&&i!=t.docView&&(r=n.nh.create(t.state.doc,i.posBefore))}let s=(r||t.state.selection).content(),{dom:l,text:c,slice:u}=tQ(t,s);e.dataTransfer.files.length&&L&&!(_>120)||e.dataTransfer.clearData(),e.dataTransfer.setData(el?"Text":"text/html",l.innerHTML),e.dataTransfer.effectAllowed="copyMove",el||e.dataTransfer.setData("text/plain",c),t.dragging=new eh(u,ed(t,e),r)},tj.dragend=t=>{let e=t.dragging;window.setTimeout(()=>{t.dragging==e&&(t.dragging=null)},50)},tq.dragover=tq.dragenter=(t,e)=>e.preventDefault(),tq.drop=(t,e)=>{try{!function(t,e,r){if(!e.dataTransfer)return;let o=t.posAtCoords(t4(e));if(!o)return;let s=t.state.doc.resolve(o.pos),l=r&&r.slice;l?t.someProp("transformPasted",e=>{l=e(l,t,!1)}):l=tZ(t,eu(e.dataTransfer),el?null:e.dataTransfer.getData("text/html"),!1,s);let c=!!(r&&ed(t,e));if(t.someProp("handleDrop",r=>r(t,e,l||i.Ji.empty,c)))return e.preventDefault();if(!l)return;e.preventDefault();let u=l?(0,a.Um)(t.state.doc,s.pos,l):s.pos;null==u&&(u=s.pos);let h=t.state.tr;if(c){let{node:t}=r;t?t.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 e=h.mapping.map(u);h.mapping.maps[h.mapping.maps.length-1].forEach((t,r,n,i)=>e=i),h.setSelection(tL(t,m,h.doc.resolve(e)))}t.focus(),t.dispatch(h.setMeta("uiEvent","drop"))}(t,e,t.dragging)}finally{t.dragging=null}},tj.focus=t=>{t.input.lastFocus=Date.now(),t.focused||(t.domObserver.stop(),t.dom.classList.add("ProseMirror-focused"),t.domObserver.start(),t.focused=!0,setTimeout(()=>{t.docView&&t.hasFocus()&&!t.domObserver.currentSelection.eq(t.domSelectionRange())&&tb(t)},20))},tj.blur=(t,e)=>{t.focused&&(t.domObserver.stop(),t.dom.classList.remove("ProseMirror-focused"),t.domObserver.start(),e.relatedTarget&&t.dom.contains(e.relatedTarget)&&t.domObserver.currentSelection.clear(),t.focused=!1)},tj.beforeinput=(t,e)=>{if(k&&"deleteContentBackward"==e.inputType){t.domObserver.flushSoon();let{domChangeCount:e}=t.input;setTimeout(()=>{if(t.input.domChangeCount!=e||(t.dom.blur(),t.focus(),t.someProp("handleKeyDown",e=>e(t,A(8,"Backspace")))))return;let{$cursor:r}=t.state.selection;r&&r.pos>0&&t.dispatch(t.state.tr.delete(r.pos-1,r.pos).scrollIntoView())},50)}},tq)tj[t]=tq[t];function ef(t,e){if(t==e)return!0;for(let r in t)if(t[r]!==e[r])return!1;for(let r in e)if(!(r in t))return!1;return!0}class em{constructor(t,e){this.toDOM=t,this.spec=e||eR,this.side=this.spec.side||0}map(t,e,r,n){let{pos:i,deleted:a}=t.mapResult(e.from+n,this.side<0?-1:1);return a?null:new ey(i-r,i-r,this)}valid(){return!0}eq(t){return this==t||t instanceof em&&(this.spec.key&&this.spec.key==t.spec.key||this.toDOM==t.toDOM&&ef(this.spec,t.spec))}destroy(t){this.spec.destroy&&this.spec.destroy(t)}}class eg{constructor(t,e){this.attrs=t,this.spec=e||eR}map(t,e,r,n){let i=t.map(e.from+n,this.spec.inclusiveStart?-1:1)-r,a=t.map(e.to+n,this.spec.inclusiveEnd?1:-1)-r;return i>=a?null:new ey(i,a,this)}valid(t,e){return e.from<e.to}eq(t){return this==t||t instanceof eg&&ef(this.attrs,t.attrs)&&ef(this.spec,t.spec)}static is(t){return t.type instanceof eg}destroy(){}}class eA{constructor(t,e){this.attrs=t,this.spec=e||eR}map(t,e,r,n){let i=t.mapResult(e.from+n,1);if(i.deleted)return null;let a=t.mapResult(e.to+n,-1);return a.deleted||a.pos<=i.pos?null:new ey(i.pos-r,a.pos-r,this)}valid(t,e){let{index:r,offset:n}=t.content.findIndex(e.from),i;return n==e.from&&!(i=t.child(r)).isText&&n+i.nodeSize==e.to}eq(t){return this==t||t instanceof eA&&ef(this.attrs,t.attrs)&&ef(this.spec,t.spec)}destroy(){}}class ey{constructor(t,e,r){this.from=t,this.to=e,this.type=r}copy(t,e){return new ey(t,e,this.type)}eq(t,e=0){return this.type.eq(t.type)&&this.from+e==t.from&&this.to+e==t.to}map(t,e,r){return this.type.map(t,this,e,r)}static widget(t,e,r){return new ey(t,t,new em(e,r))}static inline(t,e,r,n){return new ey(t,e,new eg(r,n))}static node(t,e,r,n){return new ey(t,e,new eA(r,n))}get spec(){return this.type.spec}get inline(){return this.type instanceof eg}get widget(){return this.type instanceof em}}let ev=[],eR={};class eb{constructor(t,e){this.local=t.length?t:ev,this.children=e.length?e:ev}static create(t,e){return e.length?eN(e,t,0,eR):ex}find(t,e,r){let n=[];return this.findInner(null==t?0:t,null==e?1e9:e,n,0,r),n}findInner(t,e,r,n,i){for(let a=0;a<this.local.length;a++){let o=this.local[a];o.from<=e&&o.to>=t&&(!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]<e&&this.children[a+1]>t){let o=this.children[a]+1;this.children[a+2].findInner(t-o,e-o,r,n+o,i)}}map(t,e,r){return this==ex||0==t.maps.length?this:this.mapInner(t,e,0,0,r||eR)}mapInner(t,e,r,n,i){let a;for(let o=0;o<this.local.length;o++){let s=this.local[o].map(t,r,n);s&&s.type.valid(e,s)?(a||(a=[])).push(s):i.onRemove&&i.onRemove(this.local[o].spec)}return this.children.length?function(t,e,r,n,i,a,o){let s=t.slice();for(let t=0,e=a;t<r.maps.length;t++){let n=0;r.maps[t].forEach((t,r,i,a)=>{let o=a-i-(r-t);for(let i=0;i<s.length;i+=3){let a=s[i+1];if(a<0||t>a+e-n)continue;let l=s[i]+e-n;r>=l?s[i+1]=t<=l?-2:-1:t>=e&&o&&(s[i]+=o,s[i+1]+=o)}n+=o}),e=r.maps[t].map(e,-1)}let l=!1;for(let e=0;e<s.length;e+=3)if(s[e+1]<0){if(-2==s[e+1]){l=!0,s[e+1]=-1;continue}let c=r.map(t[e]+a),u=c-i;if(u<0||u>=n.content.size){l=!0;continue}let h=r.map(t[e+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[e+2].mapInner(r,f,c+1,t[e]+a+1,o);n!=ex?(s[e]=u,s[e+1]=h,s[e+2]=n):(s[e+1]=-2,l=!0)}else l=!0}if(l){let l=eN(function(t,e,r,n,i,a,o){for(let s=0;s<t.length;s+=3)-1==t[s+1]&&function t(e,a){for(let t=0;t<e.local.length;t++){let s=e.local[t].map(n,i,a);s?r.push(s):o.onRemove&&o.onRemove(e.local[t].spec)}for(let r=0;r<e.children.length;r+=3)t(e.children[r+2],e.children[r]+a+1)}(t[s+2],e[s]+a+1);return r}(s,t,e,r,i,a,o),n,0,o);e=l.local;for(let t=0;t<s.length;t+=3)s[t+1]<0&&(s.splice(t,3),t-=3);for(let t=0,e=0;t<l.children.length;t+=3){let r=l.children[t];for(;e<s.length&&s[e]<r;)e+=3;s.splice(e,0,l.children[t],l.children[t+1],l.children[t+2])}}return new eb(e.sort(eL),s)}(this.children,a||[],t,e,r,n,i):a?new eb(a.sort(eL),ev):ex}add(t,e){return e.length?this==ex?eb.create(t,e):this.addInner(t,e,0):this}addInner(t,e,r){let n,i=0;t.forEach((t,a)=>{let o=a+r,s;if(s=ew(e,t,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(t,s,o+1):n.splice(i,0,a,a+t.nodeSize,eN(s,t,o+1,eR)),i+=3}});let a=eS(i?eO(e):e,-r);for(let e=0;e<a.length;e++)a[e].type.valid(t,a[e])||a.splice(e--,1);return new eb(a.length?this.local.concat(a).sort(eL):this.local,n||this.children)}remove(t){return 0==t.length||this==ex?this:this.removeInner(t,0)}removeInner(t,e){let r=this.children,n=this.local;for(let n=0;n<r.length;n+=3){let i,a=r[n]+e,o=r[n+1]+e;for(let e=0,r;e<t.length;e++)(r=t[e])&&r.from>a&&r.to<o&&(t[e]=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!=ex?r[n+2]=s:(r.splice(n,3),n-=3)}if(n.length){for(let r=0,i;r<t.length;r++)if(i=t[r])for(let t=0;t<n.length;t++)n[t].eq(i,e)&&(n==this.local&&(n=this.local.slice()),n.splice(t--,1))}return r==this.children&&n==this.local?this:n.length||r.length?new eb(n,r):ex}forChild(t,e){let r,n;if(this==ex)return this;if(e.isLeaf)return eb.empty;for(let e=0;e<this.children.length;e+=3)if(this.children[e]>=t){this.children[e]==t&&(r=this.children[e+2]);break}let i=t+1,a=i+e.content.size;for(let t=0;t<this.local.length;t++){let e=this.local[t];if(e.from<a&&e.to>i&&e.type instanceof eg){let t=Math.max(i,e.from)-i,r=Math.min(a,e.to)-i;t<r&&(n||(n=[])).push(e.copy(t,r))}}if(n){let t=new eb(n.sort(eL),ev);return r?new eM([t,r]):t}return r||ex}eq(t){if(this==t)return!0;if(!(t instanceof eb)||this.local.length!=t.local.length||this.children.length!=t.children.length)return!1;for(let e=0;e<this.local.length;e++)if(!this.local[e].eq(t.local[e]))return!1;for(let e=0;e<this.children.length;e+=3)if(this.children[e]!=t.children[e]||this.children[e+1]!=t.children[e+1]||!this.children[e+2].eq(t.children[e+2]))return!1;return!0}locals(t){return e_(this.localsInner(t))}localsInner(t){if(this==ex)return ev;if(t.inlineContent||!this.local.some(eg.is))return this.local;let e=[];for(let t=0;t<this.local.length;t++)this.local[t].type instanceof eg||e.push(this.local[t]);return e}forEachSet(t){t(this)}}eb.empty=new eb([],[]),eb.removeOverlap=e_;let ex=eb.empty;class eM{constructor(t){this.members=t}map(t,e){let r=this.members.map(r=>r.map(t,e,eR));return eM.from(r)}forChild(t,e){if(e.isLeaf)return eb.empty;let r=[];for(let n=0;n<this.members.length;n++){let i=this.members[n].forChild(t,e);i!=ex&&(i instanceof eM?r=r.concat(i.members):r.push(i))}return eM.from(r)}eq(t){if(!(t instanceof eM)||t.members.length!=this.members.length)return!1;for(let e=0;e<this.members.length;e++)if(!this.members[e].eq(t.members[e]))return!1;return!0}locals(t){let e,r=!0;for(let n=0;n<this.members.length;n++){let i=this.members[n].localsInner(t);if(i.length)if(e){r&&(e=e.slice(),r=!1);for(let t=0;t<i.length;t++)e.push(i[t])}else e=i}return e?e_(r?e:e.sort(eL)):ev}static from(t){switch(t.length){case 0:return ex;case 1:return t[0];default:return new eM(t.every(t=>t instanceof eb)?t:t.reduce((t,e)=>t.concat(e instanceof eb?e:e.members),[]))}}forEachSet(t){for(let e=0;e<this.members.length;e++)this.members[e].forEachSet(t)}}function eS(t,e){if(!e||!t.length)return t;let r=[];for(let n=0;n<t.length;n++){let i=t[n];r.push(new ey(i.from+e,i.to+e,i.type))}return r}function ew(t,e,r){if(e.isLeaf)return null;let n=r+e.nodeSize,i=null;for(let e=0,a;e<t.length;e++)(a=t[e])&&a.from>r&&a.to<n&&((i||(i=[])).push(a),t[e]=null);return i}function eO(t){let e=[];for(let r=0;r<t.length;r++)null!=t[r]&&e.push(t[r]);return e}function eN(t,e,r,n){let i=[],a=!1;e.forEach((e,o)=>{let s=ew(t,e,o+r);if(s){a=!0;let t=eN(s,e,r+o+1,n);t!=ex&&i.push(o,o+e.nodeSize,t)}});let o=eS(a?eO(t):t,-r).sort(eL);for(let t=0;t<o.length;t++)o[t].type.valid(e,o[t])||(n.onRemove&&n.onRemove(o[t].spec),o.splice(t--,1));return o.length||i.length?new eb(o,i):ex}function eL(t,e){return t.from-e.from||t.to-e.to}function e_(t){let e=t;for(let r=0;r<e.length-1;r++){let n=e[r];if(n.from!=n.to)for(let i=r+1;i<e.length;i++){let a=e[i];if(a.from==n.from){a.to!=n.to&&(e==t&&(e=t.slice()),e[i]=a.copy(a.from,n.to),eT(e,i+1,a.copy(n.to,a.to)));continue}a.from<n.to&&(e==t&&(e=t.slice()),e[r]=n.copy(n.from,a.from),eT(e,i,n.copy(a.from,n.to)));break}}return e}function eT(t,e,r){for(;e<t.length&&eL(r,t[e])>0;)e++;t.splice(e,0,r)}function eP(t){let e=[];return t.someProp("decorations",r=>{let n=r(t.state);n&&n!=ex&&e.push(n)}),t.cursorWrapper&&e.push(eb.create(t.state.doc,[t.cursorWrapper.deco])),eM.from(e)}let eI={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},eC=S&&w<=11;class ek{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(t){this.anchorNode=t.anchorNode,this.anchorOffset=t.anchorOffset,this.focusNode=t.focusNode,this.focusOffset=t.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(t){return t.anchorNode==this.anchorNode&&t.anchorOffset==this.anchorOffset&&t.focusNode==this.focusNode&&t.focusOffset==this.focusOffset}}class eF{constructor(t,e){this.view=t,this.handleDOMChange=e,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new ek,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.lastChangedTextNode=null,this.observer=window.MutationObserver&&new window.MutationObserver(e=>{for(let t=0;t<e.length;t++)this.queue.push(e[t]);S&&w<=11&&e.some(t=>"childList"==t.type&&t.removedNodes.length||"characterData"==t.type&&t.oldValue.length>t.target.nodeValue.length)?this.flushSoon():T&&t.composing&&e.some(t=>"childList"==t.type&&"TR"==t.target.nodeName)?(t.input.badSafariComposition=!0,this.flushSoon()):this.flush()}),eC&&(this.onCharData=t=>{this.queue.push({target:t.target,type:"characterData",oldValue:t.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,eI)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let t=this.observer.takeRecords();if(t.length){for(let e=0;e<t.length;e++)this.queue.push(t[e]);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(t_(this.view)){if(this.suppressingSelectionUpdates)return tb(this.view);if(S&&w<=11&&!this.view.state.selection.empty){let t=this.view.domSelectionRange();if(t.focusNode&&h(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(t){if(!t.focusNode)return!0;let e=new Set,r;for(let r=t.focusNode;r;r=s(r))e.add(r);for(let n=t.anchorNode;n;n=s(n))if(e.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 t of this.observer.takeRecords())this.queue.push(t);return this.queue}flush(){var t;let{view:e}=this;if(!e.docView||this.flushingSoon>-1)return;let r=this.pendingRecords();r.length&&(this.queue=[]);let i=e.domSelectionRange(),a=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(i)&&t_(e)&&!this.ignoreSelectionChange(i),o=-1,s=-1,l=!1,c=[];if(e.editable)for(let t=0;t<r.length;t++){let e=this.registerMutation(r[t],c);e&&(o=o<0?e.from:Math.min(e.from,o),s=s<0?e.to:Math.max(e.to,s),e.typeOver&&(l=!0))}if(c.some(t=>"BR"==t.nodeName)&&(8==e.input.lastKeyCode||46==e.input.lastKeyCode||L&&(e.composing||e.input.compositionEndedAt>Date.now()-50)&&r.some(t=>"childList"==t.type&&t.removedNodes.length))){for(let t of c)if("BR"==t.nodeName&&t.parentNode){let e=t.nextSibling;for(;e&&1==e.nodeType;){if("false"==e.contentEditable){t.parentNode.removeChild(t);break}e=e.firstChild}}}else if(O&&c.length){let t=c.filter(t=>"BR"==t.nodeName);if(2==t.length){let[e,r]=t;e.parentNode&&e.parentNode.parentNode==r.parentNode?r.remove():e.remove()}else{let{focusNode:r}=this.currentSelection;for(let n of t){let t=n.parentNode;t&&"LI"==t.nodeName&&(!r||function(t,e){for(let r=e.parentNode;r&&r!=t.dom;r=r.parentNode){let e=t.docView.nearestDesc(r,!0);if(e&&e.node.isBlock)return r}return null}(e,r)!=t)&&n.remove()}}}let u=null;o<0&&a&&e.input.lastFocus>Date.now()-200&&Math.max(e.input.lastTouch,e.input.lastClick.time)<Date.now()-300&&g(i)&&(u=tv(e))&&u.eq(n.LN.near(e.state.doc.resolve(0),1))?(e.input.lastFocus=0,tb(e),this.currentSelection.set(i),e.scrollToSelection()):(o>-1||a)&&(o>-1&&(e.docView.markDirty(o,s),t=e,!eX.has(t)&&(eX.set(t,null),-1!==["normal","nowrap","pre-line"].indexOf(getComputedStyle(t.dom).whiteSpace))&&(t.requiresGeckoHackNode=O,eU||(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."),eU=!0))),e.input.badSafariComposition&&(e.input.badSafariComposition=!1,function(t,e){var r;let{focusNode:n,focusOffset:i}=t.domSelectionRange();for(let a of e)if((null==(r=a.parentNode)?void 0:r.nodeName)=="TR"){let e=a.nextSibling;for(;e&&"TD"!=e.nodeName&&"TH"!=e.nodeName;)e=e.nextSibling;if(e){let r=e;for(;;){let t=r.firstChild;if(!t||1!=t.nodeType||"false"==t.contentEditable||/^(BR|IMG)$/.test(t.nodeName))break;r=t}r.insertBefore(a,r.firstChild),n==a&&t.domSelection().collapse(a,i)}else a.parentNode.removeChild(a)}}(e,c)),this.handleDOMChange(o,s,l,c),e.docView&&e.docView.dirty?e.updateState(e.state):this.currentSelection.eq(i)||tb(e),this.currentSelection.set(i))}registerMutation(t,e){if(e.indexOf(t.target)>-1)return null;let r=this.view.docView.nearestDesc(t.target);if("attributes"==t.type&&(r==this.view.docView||"contenteditable"==t.attributeName||"style"==t.attributeName&&!t.oldValue&&!t.target.getAttribute("style"))||!r||r.ignoreMutation(t))return null;if("childList"==t.type){for(let r=0;r<t.addedNodes.length;r++){let n=t.addedNodes[r];e.push(n),3==n.nodeType&&(this.lastChangedTextNode=n)}if(r.contentDOM&&r.contentDOM!=r.dom&&!r.contentDOM.contains(t.target))return{from:r.posBefore,to:r.posAfter};let n=t.previousSibling,i=t.nextSibling;if(S&&w<=11&&t.addedNodes.length)for(let e=0;e<t.addedNodes.length;e++){let{previousSibling:r,nextSibling:a}=t.addedNodes[e];(!r||0>Array.prototype.indexOf.call(t.addedNodes,r))&&(n=r),(!a||0>Array.prototype.indexOf.call(t.addedNodes,a))&&(i=a)}let a=n&&n.parentNode==t.target?o(n)+1:0,s=r.localPosFromDOM(t.target,a,-1),l=i&&i.parentNode==t.target?o(i):t.target.childNodes.length;return{from:s,to:r.localPosFromDOM(t.target,l,1)}}return"attributes"==t.type?{from:r.posAtStart-r.border,to:r.posAtEnd+r.border}:(this.lastChangedTextNode=t.target,{from:r.posAtStart,to:r.posAtEnd,typeOver:t.target.nodeValue==t.oldValue})}}let eX=new WeakMap,eU=!1;function eW(t,e){let r=e.startContainer,n=e.startOffset,i=e.endContainer,a=e.endOffset,o=t.domAtPos(t.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 eV=/^(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 eE(t,e,r){return Math.max(r.anchor,r.head)>e.content.size?null:tL(t,e.resolve(r.anchor),e.resolve(r.head))}function eY(t,e,r){let n=t.depth,i=e?t.end():t.pos;for(;n>0&&(e||t.indexAfter(n)==t.node(n).childCount);)n--,i++,e=!1;if(r){let e=t.node(n).maybeChild(t.indexAfter(n));for(;e&&!e.isLeaf;)e=e.firstChild,i++}return i}class eD{constructor(t,e){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 t1,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=e,this.state=e.state,this.directPlugins=e.plugins||[],this.directPlugins.forEach(e$),this.dispatch=this.dispatch.bind(this),this.dom=t&&t.mount||document.createElement("div"),t&&(t.appendChild?t.appendChild(this.dom):"function"==typeof t?t(this.dom):t.mount&&(this.mounted=!0)),this.editable=eB(this),eZ(this),this.nodeViews=eK(this),this.docView=ta(this.state.doc,eQ(this),eP(this),this.dom,this),this.domObserver=new eF(this,(t,e,r,a)=>(function(t,e,r,a,o){let s,l,c,u=t.input.compositionPendingChanges||(t.composing?t.input.compositionID:0);if(t.input.compositionPendingChanges=0,e<0){let e=t.input.lastSelectionTime>Date.now()-50?t.input.lastSelectionOrigin:null,r=tv(t,e);if(r&&!t.state.selection.eq(r)){if(L&&k&&13===t.input.lastKeyCode&&Date.now()-100<t.input.lastKeyCodeTime&&t.someProp("handleKeyDown",e=>e(t,A(13,"Enter"))))return;let n=t.state.tr.setSelection(r);"pointer"==e?n.setMeta("pointer",!0):"key"==e&&n.scrollIntoView(),u&&n.setMeta("composition",u),t.dispatch(n)}return}let h=t.state.doc.resolve(e),p=h.sharedDepth(r);e=h.before(p+1),r=t.state.doc.resolve(r).after(p+1);let d=t.state.selection,f=function(t,e,r,n){let a,o,{node:s,fromOffset:l,toOffset:c,from:u,to:h}=t.docView.parseRange(e,r),p=t.domSelectionRange(),d=p.anchorNode;if(d&&t.dom.contains(1==d.nodeType?d:d.parentNode)&&(o=[{node:d,offset:p.anchorOffset}],g(p)||o.push({node:p.focusNode,offset:p.focusOffset})),L&&8===t.input.lastKeyCode)for(let t=c;t>l;t--){let e=s.childNodes[t-1],r=e.pmViewDesc;if("BR"==e.nodeName&&!r){c=t;break}if(!r||r.size)break}let f=t.state.doc,m=t.someProp("domParser")||i.S4.fromSchema(t.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,t=>{let e=t.pmViewDesc;if(e)return e.parseRule(a);if("BR"==t.nodeName&&t.parentNode){if(T&&/^(ul|ol)$/i.test(t.parentNode.nodeName)){let t=document.createElement("div");return t.appendChild(document.createElement("li")),{skip:t}}else if(t.parentNode.lastChild==t||T&&/^(tr|table)$/i.test(t.parentNode.nodeName))return{ignore:!0}}else if("IMG"==t.nodeName&&t.getAttribute("mark-placeholder"))return{ignore:!0};return null}),context:A});if(o&&null!=o[0].pos){let t=o[0].pos,e=o[1]&&o[1].pos;null==e&&(e=t),y={anchor:t+u,head:e+u}}return{doc:v,sel:y,from:u,to:h}}(t,e,r,o),m=t.state.doc,y=m.slice(f.from,f.to);8===t.input.lastKeyCode&&Date.now()-100<t.input.lastKeyCodeTime?(s=t.state.selection.to,l="end"):(s=t.state.selection.from,l="start"),t.input.lastKeyCode=null;let v=function(t,e,r,n,i){let a=t.findDiffStart(e,r),o=r+t.size,s=r+e.size;if(null==a)return null;let{a:l,b:c}=t.findDiffEnd(e,o,s);if("end"==i){let t=Math.max(0,a-Math.min(l,c));n-=l+t-a}if(l<a&&o<s){let t=n<=a&&n>=l?a-n:0;a-=t,c=a+(c-l),l=a}else if(c<a){let t=n<=a&&n>=c?a-n:0;a-=t,l=a+(l-c),c=a}return{start:a,endA:l,endB:c}}(y.content,f.doc.content,f.from,s,l);if(v&&t.input.domChangeCount++,(P&&t.input.lastIOSEnter>Date.now()-225||k)&&o.some(t=>1==t.nodeType&&!eV.test(t.nodeName))&&(!v||v.endA>=v.endB)&&t.someProp("handleKeyDown",e=>e(t,A(13,"Enter")))){t.input.lastIOSEnter=0;return}if(!v)if(a&&d instanceof n.U3&&!d.empty&&d.$head.sameParent(d.$anchor)&&!t.composing&&!(f.sel&&f.sel.anchor!=f.sel.head))v={start:d.from,endA:d.to,endB:d.to};else{if(f.sel){let e=eE(t,t.state.doc,f.sel);if(e&&!e.eq(t.state.selection)){let r=t.state.tr.setSelection(e);u&&r.setMeta("composition",u),t.dispatch(r)}}return}t.state.selection.from<t.state.selection.to&&v.start==v.endB&&t.state.selection instanceof n.U3&&(v.start>t.state.selection.from&&v.start<=t.state.selection.from+2&&t.state.selection.from>=f.from?v.start=t.state.selection.from:v.endA<t.state.selection.to&&v.endA>=t.state.selection.to-2&&t.state.selection.to<=f.to&&(v.endB+=t.state.selection.to-v.endA,v.endA=t.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&&t.input.lastIOSEnter>Date.now()-225&&(!M||o.some(t=>"DIV"==t.nodeName||"P"==t.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,"","")))&&t.someProp("handleKeyDown",e=>e(t,A(13,"Enter")))){t.input.lastIOSEnter=0;return}if(t.state.selection.anchor>v.start&&function(t,e,r,n,i){if(r-e<=i.pos-n.pos||eY(n,!0,!1)<i.pos)return!1;let a=t.resolve(e);if(!n.parent.isTextblock){let t=a.nodeAfter;return null!=t&&r==e+t.nodeSize}if(a.parentOffset<a.parent.content.size||!a.parent.isTextblock)return!1;let o=t.resolve(eY(a,!0,!0));return!(!o.parent.isTextblock||o.pos>r||eY(o,!0,!1)<r)&&n.parent.content.cut(n.parentOffset).eq(o.parent.content)}(m,v.start,v.endA,R,b)&&t.someProp("handleKeyDown",e=>e(t,A(8,"Backspace")))){k&&L&&t.domObserver.suppressSelectionUpdates();return}L&&v.endB==v.start&&(t.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(()=>{t.someProp("handleKeyDown",function(e){return e(t,A(13,"Enter"))})},20));let O=v.start,N=v.endA,_=e=>{let r=e||t.state.tr.replace(O,N,f.doc.slice(v.start-f.from,v.endB-f.from));if(f.sel){let e=eE(t,r.doc,f.sel);e&&!(L&&t.composing&&e.empty&&(v.start!=v.endB||t.input.lastChromeDelete<Date.now()-100)&&(e.head==O||e.head==r.mapping.map(N)-1)||S&&e.empty&&e.head==O)&&r.setSelection(e)}return u&&r.setMeta("composition",u),r.scrollIntoView()};if(M)if(R.pos==b.pos){S&&w<=11&&0==R.parentOffset&&(t.domObserver.suppressSelectionUpdates(),setTimeout(()=>tb(t),20));let e=_(t.state.tr.delete(O,N)),r=m.resolve(v.start).marksAcross(m.resolve(v.endA));r&&e.ensureMarks(r),t.dispatch(e)}else if(v.endA==v.endB&&(c=function(t,e){let r=t.firstChild.marks,n=e.firstChild.marks,a=r,o=n,s,l,c;for(let t=0;t<n.length;t++)a=n[t].removeFromSet(a);for(let t=0;t<r.length;t++)o=r[t].removeFromSet(o);if(1==a.length&&0==o.length)l=a[0],s="add",c=t=>t.mark(l.addToSet(t.marks));else{if(0!=a.length||1!=o.length)return null;l=o[0],s="remove",c=t=>t.mark(l.removeFromSet(t.marks))}let u=[];for(let t=0;t<e.childCount;t++)u.push(c(e.child(t)));if(i.FK.from(u).eq(t))return{mark:l,type:s}}(R.parent.content.cut(R.parentOffset,b.parentOffset),x.parent.content.cut(x.parentOffset,v.endA-x.start())))){let e=_(t.state.tr);"add"==c.type?e.addMark(O,N,c.mark):e.removeMark(O,N,c.mark),t.dispatch(e)}else if(R.parent.child(R.index()).isText&&R.index()==b.index()-!b.textOffset){let e=R.parent.textBetween(R.parentOffset,b.parentOffset),r=()=>_(t.state.tr.insertText(e,O,N));t.someProp("handleTextInput",n=>n(t,O,N,e,r))||t.dispatch(r())}else t.dispatch(_());else t.dispatch(_())})(this,t,e,r,a)),this.domObserver.start();var r=this;for(let t in tj){let e=tj[t];r.dom.addEventListener(t,r.input.eventHandlers[t]=t=>{!function(t,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let r=e.target;r!=t.dom;r=r.parentNode)if(!r||11==r.nodeType||r.pmViewDesc&&r.pmViewDesc.stopEvent(e))return!1;return!0}(r,t)||t5(r,t)||!r.editable&&t.type in tq||e(r,t)},t0[t]?{passive:!0}:void 0)}T&&r.dom.addEventListener("input",()=>null),t3(r),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let t=this._props;for(let e in this._props={},t)this._props[e]=t[e];this._props.state=this.state}return this._props}update(t){t.handleDOMEvents!=this._props.handleDOMEvents&&t3(this);let e=this._props;this._props=t,t.plugins&&(t.plugins.forEach(e$),this.directPlugins=t.plugins),this.updateStateInner(t.state,e)}setProps(t){let e={};for(let t in this._props)e[t]=this._props[t];for(let r in e.state=this.state,t)e[r]=t[r];this.update(e)}updateState(t){this.updateStateInner(t,this._props)}updateStateInner(t,e){var r,n,i;let a=this.state,s=!1,l=!1;t.storedMarks&&this.composing&&(eo(this),l=!0),this.state=t;let c=a.plugins!=t.plugins||this._props.plugins!=e.plugins;if(c||this._props.plugins!=e.plugins||this._props.nodeViews!=e.nodeViews){let t=eK(this);(function(t,e){let r=0,n=0;for(let n in t){if(t[n]!=e[n])return!0;r++}for(let t in e)n++;return r!=n})(t,this.nodeViews)&&(this.nodeViews=t,s=!0)}(c||e.handleDOMEvents!=this._props.handleDOMEvents)&&t3(this),this.editable=eB(this),eZ(this);let u=eP(this),p=eQ(this),d=a.plugins==t.plugins||a.doc.eq(t.doc)?t.scrollToSelection>a.scrollToSelection?"to selection":"preserve":"reset",g=s||!this.docView.matchesNode(t.doc,p,u);(g||!t.selection.eq(a.selection))&&(l=!0);let A="preserve"==d&&l&&null==this.dom.style.overflowAnchor&&function(t){let e,r,n=t.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=t.root.elementFromPoint(a,o);if(!n||n==t.dom||!t.dom.contains(n))continue;let s=n.getBoundingClientRect();if(s.top>=i-20){e=n,r=s.top;break}}return{refDOM:e,refTop:r,stack:V(t.dom)}}(this);if(l){let e,r,l;this.domObserver.stop();let c=g&&(S||L)&&!this.composing&&!a.selection.empty&&!t.selection.empty&&(n=a.selection,i=t.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 e=L?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=function(t){let e=t.domSelectionRange();if(!e.focusNode)return null;let r=function(t,e){for(;;){if(3==t.nodeType&&e)return t;if(1==t.nodeType&&e>0){if("false"==t.contentEditable)return null;e=f(t=t.childNodes[e-1])}else{if(!t.parentNode||m(t))return null;e=o(t),t=t.parentNode}}}(e.focusNode,e.focusOffset),n=function(t,e){for(;;){if(3==t.nodeType&&e<t.nodeValue.length)return t;if(1==t.nodeType&&e<t.childNodes.length){if("false"==t.contentEditable)return null;t=t.childNodes[e],e=0}else{if(!t.parentNode||m(t))return null;e=o(t)+1,t=t.parentNode}}}(e.focusNode,e.focusOffset);if(r&&n&&r!=n){let e=n.pmViewDesc,i=t.domObserver.lastChangedTextNode;if(r==i||n==i)return i;if(!e||!e.isText(n.nodeValue))return n;if(t.input.compositionNode==n){let t=r.pmViewDesc;if(!(!t||!t.isText(r.nodeValue)))return n}}return r||n}(this)),(s||!this.docView.update(t.doc,p,u,this))&&(this.docView.updateOuterDeco(p),this.docView.destroy(),this.docView=ta(t.doc,p,u,this.dom,this)),!e||this.trackWrites&&this.dom.contains(this.trackWrites)||(c=!0)}let d=this.input.mouseDown;c||!(d&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&(e=this.docView.domFromPos(this.state.selection.anchor,0),r=this.domSelectionRange(),h(e.node,e.offset,r.anchorNode,r.anchorOffset))&&d.delaySelUpdate())?tb(this,c):(tO(this,t.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(a),(null==(r=this.dragging)?void 0:r.node)&&!a.doc.eq(t.doc)&&this.updateDraggedNode(this.dragging,a),"reset"==d?this.dom.scrollTop=0:"to selection"==d?this.scrollToSelection():A&&function({refDOM:t,refTop:e,stack:r}){let n=t?t.getBoundingClientRect().top:0;E(r,0==n?0:n-e)}(A)}scrollToSelection(){let t=this.domSelectionRange().focusNode;if(t&&this.dom.contains(1==t.nodeType?t:t.parentNode))if(this.someProp("handleScrollToSelection",t=>t(this)));else if(this.state.selection instanceof n.nh){let e=this.docView.domAfterPos(this.state.selection.from);1==e.nodeType&&W(this,e.getBoundingClientRect(),t)}else W(this,this.coordsAtPos(this.state.selection.head,1),t)}destroyPluginViews(){let t;for(;t=this.pluginViews.pop();)t.destroy&&t.destroy()}updatePluginViews(t){if(t&&t.plugins==this.state.plugins&&this.directPlugins==this.prevDirectPlugins)for(let e=0;e<this.pluginViews.length;e++){let r=this.pluginViews[e];r.update&&r.update(this,t)}else{this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let t=0;t<this.directPlugins.length;t++){let e=this.directPlugins[t];e.spec.view&&this.pluginViews.push(e.spec.view(this))}for(let t=0;t<this.state.plugins.length;t++){let e=this.state.plugins[t];e.spec.view&&this.pluginViews.push(e.spec.view(this))}}}updateDraggedNode(t,e){let r=t.node,i=-1;if(r.from<this.state.doc.content.size&&this.state.doc.nodeAt(r.from)==r.node)i=r.from;else{let t=r.from+(this.state.doc.content.size-e.doc.content.size);(t>0&&t<this.state.doc.content.size&&this.state.doc.nodeAt(t))==r.node&&(i=t)}this.dragging=new eh(t.slice,t.move,i<0?void 0:n.nh.create(this.state.doc,i))}someProp(t,e){let r=this._props&&this._props[t],n;if(null!=r&&(n=e?e(r):r))return n;for(let r=0;r<this.directPlugins.length;r++){let i=this.directPlugins[r].props[t];if(null!=i&&(n=e?e(i):i))return n}let i=this.state.plugins;if(i)for(let r=0;r<i.length;r++){let a=i[r].props[t];if(null!=a&&(n=e?e(a):a))return n}}hasFocus(){if(S){let t=this.root.activeElement;if(t==this.dom)return!0;if(!t||!this.dom.contains(t))return!1;for(;t&&this.dom!=t&&this.dom.contains(t);){if("false"==t.contentEditable)return!1;t=t.parentElement}return!0}return this.root.activeElement==this.dom}focus(){this.domObserver.stop(),this.editable&&function(t){if(t.setActive)return t.setActive();if(Y)return t.focus(Y);let e=V(t);t.focus(null==Y?{get preventScroll(){return Y={preventScroll:!0},!0}}:void 0),Y||(Y=!1,E(e,0))}(this.dom),tb(this),this.domObserver.start()}get root(){let t=this._root;if(null==t){for(let t=this.dom.parentNode;t;t=t.parentNode)if(9==t.nodeType||11==t.nodeType&&t.host)return t.getSelection||(Object.getPrototypeOf(t).getSelection=()=>t.ownerDocument.getSelection()),this._root=t}return t||document}updateRoot(){this._root=null}posAtCoords(t){return function(t,e){var r;let n,i,a=t.dom.ownerDocument,o,l=0,u=function(t,e,r){if(t.caretPositionFromPoint)try{let n=t.caretPositionFromPoint(e,r);if(n)return{node:n.offsetNode,offset:Math.min(f(n.offsetNode),n.offset)}}catch(t){}if(t.caretRangeFromPoint){let n=t.caretRangeFromPoint(e,r);if(n)return{node:n.startContainer,offset:Math.min(f(n.startContainer),n.startOffset)}}}(a,e.left,e.top);u&&({node:o,offset:l}=u);let h=(t.root.elementFromPoint?t.root:a).elementFromPoint(e.left,e.top);if(!h||!t.dom.contains(1!=h.nodeType?h.parentNode:h)){let r=t.dom.getBoundingClientRect();if(!D(e,r)||!(h=function t(e,r,n){let i=e.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=e.childNodes[o];if(1==n.nodeType){let e=n.getClientRects();for(let i=0;i<e.length;i++){let a=e[i];if(D(r,a))return t(n,r,a)}}if((o=(o+1)%i)==a)break}return e}(t.dom,e,r)))return null}if(T)for(let t=h;o&&t;t=s(t))t.draggable&&(o=void 0);if(h=(n=(r=h).parentNode)&&/^li$/i.test(n.nodeName)&&e.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 t=o.childNodes[l],r;"IMG"==t.nodeName&&(r=t.getBoundingClientRect()).right<=e.left&&r.bottom>e.top&&l++}F&&l&&1==o.nodeType&&1==(r=o.childNodes[l-1]).nodeType&&"false"==r.contentEditable&&r.getBoundingClientRect().top>=e.top&&l--,o==t.dom&&l==o.childNodes.length-1&&1==o.lastChild.nodeType&&e.top>o.lastChild.getBoundingClientRect().bottom?i=t.state.doc.content.size:(0==l||1!=o.nodeType||"BR"!=o.childNodes[l-1].nodeName)&&(i=function(t,e,r,n){let i=-1;for(let r=e,a=!1;r!=t.dom;){let e=t.docView.nearestDesc(r,!0),o;if(!e)return null;if(1==e.dom.nodeType&&(e.node.isBlock&&e.parent||!e.contentDOM)&&((o=e.dom.getBoundingClientRect()).width||o.height)&&(e.node.isBlock&&e.parent&&!/^T(R|BODY|HEAD|FOOT)$/.test(e.dom.nodeName)&&(!a&&o.left>n.left||o.top>n.top?i=e.posBefore:(!a&&o.right<n.left||o.bottom<n.top)&&(i=e.posAfter),a=!0),!e.contentDOM&&i<0&&!e.node.isText))return(e.node.isBlock?n.top<(o.top+o.bottom)/2:n.left<(o.left+o.right)/2)?e.posBefore:e.posAfter;r=e.dom.parentNode}return i>-1?i:t.docView.posFromDOM(e,r,-1)}(t,o,l,e))}null==i&&(i=function(t,e,r){let{node:n,offset:i}=function t(e,r){let n,i,a,o=2e8,s,l=0,u=r.top,h=r.top;for(let t=e.firstChild,p=0;t;t=t.nextSibling,p++){let e;if(1==t.nodeType)e=t.getClientRects();else{if(3!=t.nodeType)continue;e=c(t).getClientRects()}for(let c=0;c<e.length;c++){let d=e[c];if(d.top<=u&&d.bottom>=h){u=Math.max(d.bottom,u),h=Math.min(d.top,h);let e=d.left>r.left?d.left-r.left:d.right<r.left?r.left-d.right:0;if(e<o){a=t,o=e,s=e&&3==a.nodeType?{left:d.right<r.left?d.right:d.left,top:r.top}:r,1==t.nodeType&&e&&(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=t,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(t,e){let r=t.nodeValue.length,n=document.createRange(),i;for(let a=0;a<r;a++){n.setEnd(t,a+1),n.setStart(t,a);let r=Z(n,1);if(r.top!=r.bottom&&D(e,r)){i={node:t,offset:a+ +(e.left>=(r.left+r.right)/2)};break}}return n.detach(),i||{node:t,offset:0}}(a,s):!a||o&&1==a.nodeType?{node:e,offset:l}:t(a,s)}(e,r),a=-1;if(1==n.nodeType&&!n.firstChild){let t=n.getBoundingClientRect();a=t.left!=t.right&&r.left>(t.left+t.right)/2?1:-1}return t.docView.posFromDOM(n,i,a)}(t,h,e));let p=t.docView.nearestDesc(h,!0);return{pos:i,inside:p?p.posAtStart-p.border:-1}}(this,t)}coordsAtPos(t,e=1){return K(this,t,e)}domAtPos(t,e=0){return this.docView.domFromPos(t,e)}nodeDOM(t){let e=this.docView.descAt(t);return e?e.nodeDOM:null}posAtDOM(t,e,r=-1){let n=this.docView.posFromDOM(t,e,r);if(null==n)throw RangeError("DOM position not inside the editor");return n}endOfTextblock(t,e){return function(t,e,r){let n,i;return J==e&&j==r?q:(J=e,j=r,q="up"==r||"down"==r?(n=e.selection,i="up"==r?n.$from:n.$to,H(t,e,()=>{let{node:e}=t.docView.domFromPos(i.pos,"up"==r?-1:1);for(;;){let r=t.docView.nearestDesc(e,!0);if(!r)break;if(r.node.isBlock){e=r.contentDOM||r.dom;break}e=r.dom.parentNode}let n=K(t,i.pos,1);for(let t=e.firstChild;t;t=t.nextSibling){let e;if(1==t.nodeType)e=t.getClientRects();else{if(3!=t.nodeType)continue;e=c(t,0,t.nodeValue.length).getClientRects()}for(let t=0;t<e.length;t++){let i=e[t];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(t,e,r){let{$head:n}=e.selection;if(!n.parent.isTextblock)return!1;let i=n.parentOffset,a=i==n.parent.content.size,o=t.domSelection();return o?z.test(n.parent.textContent)&&o.modify?H(t,e,()=>{let{focusNode:e,focusOffset:i,anchorNode:a,anchorOffset:s}=t.domSelectionRange(),l=o.caretBidiLevel;o.modify("move",r,"character");let c=n.depth?t.docView.domAfterPos(n.before()):t.dom,{focusNode:u,focusOffset:h}=t.domSelectionRange(),p=u&&!c.contains(1==u.nodeType?u:u.parentNode)||e==u&&i==h;try{o.collapse(a,s),e&&(e!=a||i!=s)&&o.extend&&o.extend(e,i)}catch(t){}return null!=l&&(o.caretBidiLevel=l),p}):"left"==r||"backward"==r?!i:a:n.pos==n.start()||n.pos==n.end()}(t,e,r))}(this,e||this.state,t)}pasteHTML(t,e){return ec(this,"",t,!1,e||new ClipboardEvent("paste"))}pasteText(t,e){return ec(this,t,null,!0,e||new ClipboardEvent("paste"))}serializeForClipboard(t){return tQ(this,t)}destroy(){if(this.docView){for(let t in this.input.mouseDown&&this.input.mouseDown.done(),this.domObserver.stop(),this.input.eventHandlers)this.dom.removeEventListener(t,this.input.eventHandlers[t]);clearTimeout(this.input.composingTimeout),clearTimeout(this.input.lastIOSEnterFallbackTimeout),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],eP(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(t){!t5(this,t)&&tj[t.type]&&(this.editable||!(t.type in tq))&&tj[t.type](this,t)}domSelectionRange(){let t=this.domSelection();return t?T&&11===this.root.nodeType&&function(t){let e=t.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}(this.dom.ownerDocument)==this.dom&&function(t,e){let r;if(e.getComposedRanges){let r=e.getComposedRanges(t.root)[0];if(r)return eW(t,r)}function n(t){t.preventDefault(),t.stopImmediatePropagation(),r=t.getTargetRanges()[0]}return t.dom.addEventListener("beforeinput",n,!0),document.execCommand("indent"),t.dom.removeEventListener("beforeinput",n,!0),r?eW(t,r):null}(this,t)||t:{focusNode:null,focusOffset:0,anchorNode:null,anchorOffset:0}}domSelection(){return this.root.getSelection()}}function eQ(t){let e=Object.create(null);return e.class="ProseMirror",e.contenteditable=String(t.editable),t.someProp("attributes",r=>{if("function"==typeof r&&(r=r(t.state)),r)for(let t in r)"class"==t?e.class+=" "+r[t]:"style"==t?e.style=(e.style?e.style+";":"")+r[t]:e[t]||"contenteditable"==t||"nodeName"==t||(e[t]=String(r[t]))}),e.translate||(e.translate="no"),[ey.node(0,t.state.doc.content.size,e)]}function eZ(t){if(t.markCursor){let e=document.createElement("img");e.className="ProseMirror-separator",e.setAttribute("mark-placeholder","true"),e.setAttribute("alt",""),t.cursorWrapper={dom:e,deco:ey.widget(t.state.selection.from,e,{raw:!0,marks:t.markCursor})}}else t.cursorWrapper=null}function eB(t){return!t.someProp("editable",e=>!1===e(t.state))}function eK(t){let e=Object.create(null);function r(t){for(let r in t)Object.prototype.hasOwnProperty.call(e,r)||(e[r]=t[r])}return t.someProp("nodeViews",r),t.someProp("markViews",r),e}function e$(t){if(t.spec.state||t.spec.filterTransaction||t.spec.appendTransaction)throw RangeError("Plugins passed directly to the view must not have a state component")}eD.prototype.dispatch=function(t){let e=this._props.dispatchTransaction;e?e.call(this,t):this.updateState(this.state.apply(t))},r.d(e,{Lz:()=>eD,NZ:()=>ey,zF:()=>eb})},33097(t,e,r){function n(t,e,r){let n=t[e];t[e]=t[r],t[r]=n}r.d(e,{A:()=>i});class i{constructor(t=9){this._maxEntries=Math.max(4,t),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()}all(){return this._all(this.data,[])}search(t){let e=this.data,r=[];if(!d(t,e))return r;let n=this.toBBox,i=[];for(;e;){for(let a=0;a<e.children.length;a++){let o=e.children[a],s=e.leaf?n(o):o;d(t,s)&&(e.leaf?r.push(o):p(t,s)?this._all(o,r):i.push(o))}e=i.pop()}return r}collides(t){let e=this.data;if(!d(t,e))return!1;let r=[];for(;e;){for(let n=0;n<e.children.length;n++){let i=e.children[n],a=e.leaf?this.toBBox(i):i;if(d(t,a)){if(e.leaf||p(t,a))return!0;r.push(i)}}e=r.pop()}return!1}load(t){if(!(t&&t.length))return this;if(t.length<this._minEntries){for(let e=0;e<t.length;e++)this.insert(t[e]);return this}let e=this._build(t.slice(),0,t.length-1,0);if(this.data.children.length)if(this.data.height===e.height)this._splitRoot(this.data,e);else{if(this.data.height<e.height){let t=this.data;this.data=e,e=t}this._insert(e,this.data.height-e.height-1,!0)}else this.data=e;return this}insert(t){return t&&this._insert(t,this.data.height-1),this}clear(){return this.data=f([]),this}remove(t,e){let r,n,i;if(!t)return this;let a=this.data,o=this.toBBox(t),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(t,e,r){if(!r)return e.indexOf(t);for(let n=0;n<e.length;n++)if(r(t,e[n]))return n;return -1}(t,a.children,e);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(t){return t}compareMinX(t,e){return t.minX-e.minX}compareMinY(t,e){return t.minY-e.minY}toJSON(){return this.data}fromJSON(t){return this.data=t,this}_all(t,e){let r=[];for(;t;)t.leaf?e.push(...t.children):r.push(...t.children),t=r.pop();return e}_build(t,e,r,n){let i,o=r-e+1,s=this._maxEntries;if(o<=s)return a(i=f(t.slice(e,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(t,e,r,c,this.compareMinX);for(let a=e;a<=r;a+=c){let e=Math.min(a+c-1,r);m(t,a,e,l,this.compareMinY);for(let r=a;r<=e;r+=l){let a=Math.min(r+l-1,e);i.children.push(this._build(t,r,a,n-1))}}return a(i,this.toBBox),i}_chooseSubtree(t,e,r,n){for(;;){let o;if(n.push(e),e.leaf||n.length-1===r)break;let s=1/0,l=1/0;for(let r=0;r<e.children.length;r++){var i,a;let n=e.children[r],c=u(n),h=(i=t,(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)}e=o||e.children[0]}return e}_insert(t,e,r){let n=r?t:this.toBBox(t),i=[],a=this._chooseSubtree(n,this.data,e,i);for(a.children.push(t),s(a,n);e>=0;)if(i[e].children.length>this._maxEntries)this._split(i,e),e--;else break;this._adjustParentBBoxes(n,i,e)}_split(t,e){let r=t[e],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),e?t[e-1].children.push(s):this._splitRoot(r,s)}_splitRoot(t,e){this.data=f([t,e]),this.data.height=t.height+1,this.data.leaf=!1,a(this.data,this.toBBox)}_chooseSplitIndex(t,e,r){let n,i=1/0,a=1/0;for(let s=e;s<=r-e;s++){let e=o(t,0,s,this.toBBox),l=o(t,s,r,this.toBBox),c=function(t,e){let r=Math.max(t.minX,e.minX),n=Math.max(t.minY,e.minY);return Math.max(0,Math.min(t.maxX,e.maxX)-r)*Math.max(0,Math.min(t.maxY,e.maxY)-n)}(e,l),h=u(e)+u(l);c<i?(i=c,n=s,a=h<a?h:a):c===i&&h<a&&(a=h,n=s)}return n||r-e}_chooseSplitAxis(t,e,r){let n=t.leaf?this.compareMinX:l,i=t.leaf?this.compareMinY:c;this._allDistMargin(t,e,r,n)<this._allDistMargin(t,e,r,i)&&t.children.sort(n)}_allDistMargin(t,e,r,n){t.children.sort(n);let i=this.toBBox,a=o(t,0,e,i),l=o(t,r-e,r,i),c=h(a)+h(l);for(let n=e;n<r-e;n++){let e=t.children[n];s(a,t.leaf?i(e):e),c+=h(a)}for(let n=r-e-1;n>=e;n--){let e=t.children[n];s(l,t.leaf?i(e):e),c+=h(l)}return c}_adjustParentBBoxes(t,e,r){for(let n=r;n>=0;n--)s(e[n],t)}_condense(t){for(let e=t.length-1,r;e>=0;e--)0===t[e].children.length?e>0?(r=t[e-1].children).splice(r.indexOf(t[e]),1):this.clear():a(t[e],this.toBBox)}}function a(t,e){o(t,0,t.children.length,e,t)}function o(t,e,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=e;a<r;a++){let e=t.children[a];s(i,t.leaf?n(e):e)}return i}function s(t,e){return t.minX=Math.min(t.minX,e.minX),t.minY=Math.min(t.minY,e.minY),t.maxX=Math.max(t.maxX,e.maxX),t.maxY=Math.max(t.maxY,e.maxY),t}function l(t,e){return t.minX-e.minX}function c(t,e){return t.minY-e.minY}function u(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function h(t){return t.maxX-t.minX+(t.maxY-t.minY)}function p(t,e){return t.minX<=e.minX&&t.minY<=e.minY&&e.maxX<=t.maxX&&e.maxY<=t.maxY}function d(t,e){return e.minX<=t.maxX&&e.minY<=t.maxY&&e.maxX>=t.minX&&e.maxY>=t.minY}function f(t){return{children:t,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function m(t,e,r,i,a){let o=[e,r];for(;o.length;){if((r=o.pop())-(e=o.pop())<=i)continue;let s=e+Math.ceil((r-e)/i/2)*i;!function t(e,r,i=0,a=e.length-1,o=function(t,e){return t<e?-1:+(t>e)}){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));t(e,r,h,p,o)}let s=e[r],l=i,c=a;for(n(e,i,r),o(e[a],s)>0&&n(e,i,a);l<c;){for(n(e,l,c),l++,c--;0>o(e[l],s);)l++;for(;o(e[c],s)>0;)c--}0===o(e[i],s)?n(e,i,c):n(e,++c,a),c<=r&&(i=c+1),r<=c&&(a=c-1)}}(t,s,e,r,a),o.push(e,s,s,r)}}},80301(t,e,r){let n,i;var a=r(71178),o=r(51649);function s({groupSize:t,panelElement:e,styleProp:r}){let n,[i,a]=function(t){switch(typeof t){case"number":return[t,"px"];case"string":{let e=parseFloat(t);return t.endsWith("%")?[e,"%"]:t.endsWith("px")?[e,"px"]:t.endsWith("rem")?[e,"rem"]:t.endsWith("em")?[e,"em"]:t.endsWith("vh")?[e,"vh"]:t.endsWith("vw")?[e,"vw"]:[e,"%"]}}}(r);switch(a){case"%":n=i/100*t;break;case"px":n=i;break;case"rem":n=i*parseFloat(getComputedStyle(e.ownerDocument.documentElement).fontSize);break;case"em":n=i*parseFloat(getComputedStyle(e).fontSize);break;case"vh":n=i/100*window.innerHeight;break;case"vw":n=i/100*window.innerWidth}return n}function l(t){return parseFloat(t.toFixed(3))}function c({group:t}){let{orientation:e,panels:r}=t;return r.reduce((t,r)=>t+="horizontal"===e?r.element.offsetWidth:r.element.offsetHeight,0)}function u(t){let{panels:e}=t,r=c({group:t});return 0===r?e.map(t=>({groupResizeBehavior:t.panelConstraints.groupResizeBehavior,collapsedSize:0,collapsible:!0===t.panelConstraints.collapsible,defaultSize:void 0,disabled:t.panelConstraints.disabled,minSize:0,maxSize:100,panelId:t.id})):e.map(t=>{let e,{element:n,panelConstraints:i}=t,a=0;void 0!==i.collapsedSize&&(a=l(s({groupSize:r,panelElement:n,styleProp:i.collapsedSize})/r*100)),void 0!==i.defaultSize&&(e=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:e,disabled:i.disabled,minSize:o,maxSize:c,panelId:t.id}})}function h(t,e="Assertion error"){if(!t)throw Error(e)}function p(t,e){return Array.from(e).sort("horizontal"===t?d:f)}function d(t,e){let r=t.element.offsetLeft-e.element.offsetLeft;return 0!==r?r:t.element.offsetWidth-e.element.offsetWidth}function f(t,e){let r=t.element.offsetTop-e.element.offsetTop;return 0!==r?r:t.element.offsetHeight-e.element.offsetHeight}function m(t){return null!==t&&"object"==typeof t&&"nodeType"in t&&t.nodeType===Node.ELEMENT_NODE}function g(t,e){return{x:t.x>=e.left&&t.x<=e.right?0:Math.min(Math.abs(t.x-e.left),Math.abs(t.x-e.right)),y:t.y>=e.top&&t.y<=e.bottom?0:Math.min(Math.abs(t.y-e.top),Math.abs(t.y-e.bottom))}}function A(t){let{element:e,orientation:r,panels:i,separators:a}=t,o=p(r,Array.from(e.children).filter(m).map(t=>({element:t}))).map(({element:t})=>t),s=[],l=!1,u=!1,d=-1,f=-1,A=0,y,v=[];{let t=-1;for(let e of o)e.hasAttribute("data-panel")&&(t++,e.hasAttribute("data-disabled")||(A++,-1===d&&(d=t),f=t))}if(A>1){let e=-1;for(let p of o)if(p.hasAttribute("data-panel")){e++;let a=i.find(t=>t.element===p);if(a){if(y){let i,o=y.element.getBoundingClientRect(),m=p.getBoundingClientRect();if(u){let t="horizontal"===r?new DOMRect(o.right,o.top,0,o.height):new DOMRect(o.left,o.bottom,o.width,0),e="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=[t,e];break;case 1:{let n=v[0],a=function({orientation:t,rects:e,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 e){let{x:e,y:o}=g(n,r),s="horizontal"===t?e: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?e:t];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)?t.resizeTargetMinimumSize.coarse:t.resizeTargetMinimumSize.fine;if(i.width<o){let t=o-i.width;i=new DOMRect(i.x-t/2,i.y,i.width+t,i.height)}if(i.height<o){let t=o-i.height;i=new DOMRect(i.x,i.y-t/2,i.width,i.height+t)}let u=e<=d||e>f;l||u||s.push({group:t,groupSize:c({group:t}),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 t=a.find(t=>t.element===p);t?v.push(t):(y=void 0,v=[])}else u=!0}return s}class y{#t={};addListener(t,e){let r=this.#t[t];return void 0===r?this.#t[t]=[e]:r.includes(e)||r.push(e),()=>{this.removeListener(t,e)}}emit(t,e){let r=this.#t[t];if(void 0!==r)if(1===r.length)r[0].call(null,e);else{let t=!1,n=null,i=Array.from(r);for(let r=0;r<i.length;r++){let a=i[r];try{a.call(null,e)}catch(e){null===n&&(t=!0,n=e)}}if(t)throw n}}removeAllListeners(){this.#t={}}removeListener(t,e){let r=this.#t[t];if(void 0!==r){let t=r.indexOf(e);t>=0&&r.splice(t,1)}}}let v={cursorFlags:0,state:"inactive"},R=new y;function b(t){let e=v;v=t,R.emit("change",{prev:e,next:t})}let x=t=>t,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(t){if(!t.defaultView||!t.adoptedStyleSheets)return;let{prevStyle:e,styleSheet:r}=w.get(t)??{};void 0===r&&(r=new t.defaultView.CSSStyleSheet,t.adoptedStyleSheets&&(Object.isExtensible(t.adoptedStyleSheets)?t.adoptedStyleSheets.push(r):t.adoptedStyleSheets=[...t.adoptedStyleSheets,r]));let n=v;switch(n.state){case"active":case"hover":{let t=function({cursorFlags:t,groups:e,state:r}){let n=0,i=0;switch(r){case"active":case"hover":e.forEach(t=>{if(!t.mutableState.disableCursor)switch(t.orientation){case"horizontal":n++;break;case"vertical":i++}})}if(0!==n||0!==i){if("active"===r&&t&&S()){let e=(4&t)!=0,r=(8&t)!=0;if((1&t)!=0)return e?"se-resize":r?"ne-resize":"e-resize";if((2&t)!=0)return e?"sw-resize":r?"nw-resize":"w-resize";if(e)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(t=>t.group),state:n.state}),i=`*, *:hover {cursor: ${t} !important; }`;if(e===i)return;e=i,t?0===r.cssRules.length?r.insertRule(i):r.replaceSync(i):1===r.cssRules.length&&r.deleteRule(0);break}case"inactive":e=void 0,1===r.cssRules.length&&r.deleteRule(0)}w.set(t,{prevStyle:e,styleSheet:r})}let N=new Map,L=new y;function _(t,e){for(let[e]of N)if(e.id===t)return e}function T(t,e){for(let[e,r]of N)if(e.id===t)return r;if(e)throw Error(`Could not find data for Group with id ${t}`)}function P(t,e){return L.addListener("groupChange",r=>{r.group.id===t&&e(r)})}function I(t,e,r){let n=N.get(t);(N=new Map(N)).set(t,e),L.emit("groupChange",{group:t,isUserInteraction:r?.isUserInteraction===!0,prev:n,next:e})}function C(t){let e=v,r=N,n=!1;return"active"===e.state&&(b({cursorFlags:0,state:"inactive"}),e.hitRegions.length>0&&(O(t),n=!0,e.hitRegions.forEach(t=>{if(!r.has(t.group))return;let e=T(t.group.id,!0);I(t.group,e,{isUserInteraction:!0})}))),n}function k(t){t.defaultPrevented||C(t.currentTarget)}let F=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function X(t){let e=t.length;for(;e--;){let r=t[e];if(h(r,"Missing node"),function(t){let e,r=getComputedStyle(t);return!!("fixed"===r.position||"auto"!==r.zIndex&&("static"!==r.position||"flex"===(e=getComputedStyle(V(t)??t).display)||"inline-flex"===e)||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(t){return t&&Number(getComputedStyle(t).zIndex)||0}function W(t){let e=[];for(;t;)e.push(t),t=V(t);return e}function V(t){let{parentNode:e}=t;return null!==e&&"object"==typeof e&&"nodeType"in e&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.host:e}function E(t,e){let r=[];return e.forEach((e,n)=>{if(n.disabled)return;let i=A(n),a=function(t,e,r){let n,i={x:1/0,y:1/0};for(let a of e){let e=g(r,a.rect);switch(t){case"horizontal":e.x<=i.x&&(n=a,i=e);break;case"vertical":e.y<=i.y&&(n=a,i=e)}}return n?{distance:i,hitRegion:n}:void 0}(n.orientation,i,{x:t.clientX,y:t.clientY});a&&a.distance.x<=0&&a.distance.y<=0&&function({groupElement:t,hitRegion:e,pointerEventTarget:r}){if(!m(r)||r.contains(t)||t.contains(r))return!0;if(function(t,e){let r;if(t===e)throw Error("Cannot compare node with itself");let n={a:W(t),b:W(e)};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 t=r.childNodes,e={a:n.a.at(-1),b:n.b.at(-1)},i=t.length;for(;i--;){let r=t[i];if(r===e.a)return 1;if(r===e.b)return -1}}return Math.sign(i.a-i.b)}(r,t)>0){let i=r;for(;i;){var n;if(i.contains(t))break;if(n=i.getBoundingClientRect(),n.x<e.x+e.width&&n.x+n.width>e.x&&n.y<e.y+e.height&&n.y+n.height>e.y)return!1;i=i.parentElement}}return!0}({groupElement:n.element,hitRegion:a.hitRegion.rect,pointerEventTarget:t.target})&&r.push(a.hitRegion)}),r}function Y(t,e,r=0){return Math.abs(l(t)-l(e))<=r}function D(t,e){return Y(t,e)?0:t>e?1:-1}function Q({overrideDisabledPanels:t,panelConstraints:e,prevSize:r,size:n}){let{collapsedSize:i=0,collapsible:a,disabled:o,maxSize:s=100,minSize:c=0}=e;return o&&!t?r:(0>D(n,c)&&(n=a&&0>D(n,(i+c)/2)?i:c),l(n=Math.min(s,n)))}function Z({delta:t,initialLayout:e,panelConstraints:r,pivotIndices:n,prevLayout:i,trigger:a}){if(Y(t,0))return e;let o="imperative-api"===a,s=Object.values(e),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 e=t<0?p:u,n=r[e];h(n,`Panel constraints not found for index ${e}`);let{collapsedSize:i=0,collapsible:a,minSize:o=0}=n;if(a){let r=s[e];if(h(null!=r,`Previous layout not found for panel index ${e}`),Y(r,i)){let e=o-r;D(e,Math.abs(t))>0&&(t=t<0?0-e:e)}}}{let e=t<0?u:p,n=r[e];h(n,`No panel constraints found for index ${e}`);let{collapsedSize:i=0,collapsible:a,minSize:o=0}=n;if(a){let r=s[e];if(h(null!=r,`Previous layout not found for panel index ${e}`),Y(r,o)){let e=r-i;D(e,Math.abs(t))>0&&(t=t<0?0-e:e)}}}}else{let e=t<0?p:u,n=r[e];h(n,`Panel constraints not found for index ${e}`);let i=s[e],{collapsible:a,collapsedSize:o,minSize:l}=n;if(a&&0>D(i,l))if(t>0){let e=l-o;0>D(i+t,l)&&(t=0>=D(t,e/2)?0:e)}else{let e=l-o;0>D(i-t,l)&&(t=D(100+t,100-e/2)>0?0:-e)}}{let e=t<0?1:-1,n=t<0?p:u,i=0;for(;;){let t=s[n];if(h(null!=t,`Previous layout not found for panel index ${n}`),i+=Q({overrideDisabledPanels:o,panelConstraints:r[n],prevSize:t,size:100})-t,(n+=e)<0||n>=r.length)break}let a=Math.min(Math.abs(t),Math.abs(i));t=t<0?0-a:a}{let e=t<0?u:p;for(;e>=0&&e<r.length;){let n=Math.abs(t)-Math.abs(d),i=s[e];h(null!=i,`Previous layout not found for panel index ${e}`);let a=i-n,l=Q({overrideDisabledPanels:o,panelConstraints:r[e],prevSize:i,size:a});if(!Y(i,l)&&(d+=i-l,c[e]=l,d.toFixed(3).localeCompare(Math.abs(t).toFixed(3),void 0,{numeric:!0})>=0))break;t<0?e--:e++}}if(function(t,e){if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++)if(t[r]!=e[r])return!1;return!0}(l,c))return i;{let e=t<0?p:u,n=s[e];h(null!=n,`Previous layout not found for panel index ${e}`);let i=n+d,a=Q({overrideDisabledPanels:o,panelConstraints:r[e],prevSize:n,size:i});if(c[e]=a,!Y(a,i)){let e=i-a,n=t<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+e,s=Q({overrideDisabledPanels:o,panelConstraints:r[n],prevSize:i,size:a});if(Y(i,s)||(e-=s-i,c[n]=s),Y(e,0))break;t>0?n--:n++}}}if(!Y(Object.values(c).reduce((t,e)=>e+t,0),100,.1))return i;let f=Object.keys(i);return c.reduce((t,e,r)=>(t[f[r]]=e,t),{})}function B(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(let r in t)if(void 0===e[r]||0!==D(t[r],e[r]))return!1;return!0}function K({layout:t,panelConstraints:e}){let r=Object.values(t),n=[...r],i=n.reduce((t,e)=>t+e,0);if(n.length!==e.length)throw Error(`Invalid ${e.length} panel layout: ${n.map(t=>`${t}%`).join(", ")}`);if(!Y(i,100)&&n.length>0)for(let t=0;t<e.length;t++){let e=n[t];h(null!=e,`No layout data found for index ${t}`);let r=100/i*e;n[t]=r}let a=0;for(let t=0;t<e.length;t++){let i=r[t];h(null!=i,`No layout data found for index ${t}`);let o=n[t];h(null!=o,`No layout data found for index ${t}`);let s=Q({overrideDisabledPanels:!0,panelConstraints:e[t],prevSize:i,size:o});o!=s&&(a+=o-s,n[t]=s)}if(!Y(a,0))for(let t=0;t<e.length;t++){let r=n[t];h(null!=r,`No layout data found for index ${t}`);let i=r+a,o=Q({overrideDisabledPanels:!0,panelConstraints:e[t],prevSize:r,size:i});if(r!==o&&(a-=o-r,n[t]=o,Y(a,0)))break}let o=Object.keys(t);return n.reduce((t,e,r)=>(t[o[r]]=e,t),{})}function $({groupId:t,panelId:e}){let r=()=>{for(let[e,{defaultLayoutDeferred:r,derivedPanelConstraints:n,layout:i,groupSize:a,separatorToPanels:o}]of N)if(e.id===t)return{defaultLayoutDeferred:r,derivedPanelConstraints:n,group:e,groupSize:a,layout:i,separatorToPanels:o};throw Error(`Group ${t} not found`)},n=()=>{let t=r().derivedPanelConstraints.find(t=>t.panelId===e);if(void 0!==t)return t;throw Error(`Panel constraints not found for Panel ${e}`)},i=()=>{let t=r().group.panels.find(t=>t.id===e);if(void 0!==t)return t;throw Error(`Layout not found for Panel ${e}`)},a=()=>{let t=r().layout[e];if(void 0!==t)return t;throw Error(`Layout not found for Panel ${e}`)},o=t=>{if(t===a())return;let{defaultLayoutDeferred:n,derivedPanelConstraints:i,group:o,groupSize:s,layout:c,separatorToPanels:u}=r(),h=K({layout:(({nextSize:t,panels:r,prevLayout:n,derivedPanelConstraints:i})=>{let o=a(),s=r.findIndex(t=>t.id===e),c=0===s,u=s===r.length-1;if(u&&t<o&&(c||r.slice(0,s).every((t,e)=>{let r=i[e];return r?.collapsible&&Y(r.collapsedSize,n[r.panelId])}))){let t=r.slice(0,s).reduce((t,e)=>t+n[e.id],0);return{...n,[e]:l(100-t)}}return Z({delta:u?o-t:t-o,initialLayout:n,panelConstraints:i,pivotIndices:u?[s-1,s]:[s,s+1],prevLayout:n,trigger:"imperative-api"})})({nextSize:t,panels:o.panels,prevLayout:c,derivedPanelConstraints:i}),panelConstraints:i});B(c,h)||I(o,{defaultLayoutDeferred:n,derivedPanelConstraints:i,groupSize:s,layout:h,separatorToPanels:u})};return{collapse:()=>{let{collapsible:t,collapsedSize:e}=n(),{mutableValues:r}=i(),s=a();t&&s!==e&&(r.expandToSize=s,o(e))},expand:()=>{let{collapsible:t,collapsedSize:e,minSize:r}=n(),{mutableValues:s}=i(),l=a();if(t&&l===e){let t=s.expandToSize??r;0===t&&(t=1),o(t)}},getSize:()=>{let{group:t}=r(),e=a(),{element:n}=i();return{asPercentage:e,inPixels:"horizontal"===t.orientation?n.offsetWidth:n.offsetHeight}},isCollapsed:()=>{let{collapsible:t,collapsedSize:e}=n(),r=a();return t&&Y(e,r)},resize:t=>{let{group:e}=r(),{element:n}=i(),a=c({group:e});o(l(s({groupSize:a,panelElement:n,styleProp:t})/a*100))}}}function G(t){t.defaultPrevented||E(t,N).forEach(e=>{if(e.separator&&!e.separator.disableDoubleClick){let r=e.panels.find(t=>void 0!==t.panelConstraints.defaultSize);if(r){let n=r.panelConstraints.defaultSize,i=$({groupId:e.group.id,panelId:r.id});i&&void 0!==n&&(i.resize(n),t.preventDefault())}}})}function H(t){for(let[e]of N)if(e.separators.some(e=>e.element===t))return e;throw Error("Could not find parent Group for separator element")}function z({groupId:t}){let e=()=>{for(let[e,r]of N)if(e.id===t)return{group:e,...r};throw Error(`Could not find Group with id "${t}"`)};return{getLayout(){let{defaultLayoutDeferred:t,layout:r}=e();return t?{}:r},setLayout(t){let{defaultLayoutDeferred:r,derivedPanelConstraints:n,group:i,groupSize:a,layout:o,separatorToPanels:s}=e(),l=K({layout:t,panelConstraints:n});return r?o:(B(o,l)||I(i,{defaultLayoutDeferred:r,derivedPanelConstraints:n,groupSize:a,layout:l,separatorToPanels:s}),l)}}}function J(t,e){let r=H(t),n=T(r.id,!0),i=r.separators.find(e=>e.element===t);h(i,"Matching separator not found");let a=n.separatorToPanels.get(i);h(a,"Matching panels not found");let o=a.map(t=>r.panels.indexOf(t)),s=z({groupId:r.id}).getLayout(),l=K({layout:Z({delta:e,initialLayout:s,panelConstraints:n.derivedPanelConstraints,pivotIndices:o,prevLayout:s,trigger:"keyboard"}),panelConstraints:n.derivedPanelConstraints});B(s,l)||I(r,{defaultLayoutDeferred:n.defaultLayoutDeferred,derivedPanelConstraints:n.derivedPanelConstraints,groupSize:n.groupSize,layout:l,separatorToPanels:n.separatorToPanels},{isUserInteraction:!0})}function j(t){if(t.defaultPrevented)return;let e=t.currentTarget,r=H(e);if(!r.disabled)switch(t.key){case"ArrowDown":t.preventDefault(),"vertical"===r.orientation&&J(e,5);break;case"ArrowLeft":t.preventDefault(),"horizontal"===r.orientation&&J(e,-5);break;case"ArrowRight":t.preventDefault(),"horizontal"===r.orientation&&J(e,5);break;case"ArrowUp":t.preventDefault(),"vertical"===r.orientation&&J(e,-5);break;case"End":t.preventDefault(),J(e,100);break;case"Enter":{t.preventDefault();let r=H(e),{derivedPanelConstraints:n,layout:i,separatorToPanels:a}=T(r.id,!0),o=r.separators.find(t=>t.element===e);h(o,"Matching separator not found");let s=a.get(o);h(s,"Matching panels not found");let l=s[0],c=n.find(t=>t.panelId===l.id);if(h(c,"Panel metadata not found"),c.collapsible){let t=i[l.id];J(e,(c.collapsedSize===t?r.mutableState.expandedPanelSizes[l.id]??c.minSize:c.collapsedSize)-t)}break}case"F6":{t.preventDefault();let r=H(e).separators.map(t=>t.element),n=Array.from(r).findIndex(e=>e===t.currentTarget);h(null!==n,"Index not found");let i=t.shiftKey?n>0?n-1:r.length-1:n+1<r.length?n+1:0;r[i].focus({preventScroll:!0});break}case"Home":t.preventDefault(),J(e,-100)}}function q(t){if(t.defaultPrevented||"mouse"===t.pointerType&&t.button>0)return;let e=N,r=E(t,e),n=new Map,i=!1;r.forEach(t=>{t.separator&&(i||(i=!0,t.separator.element.focus({focusVisible:!1,preventScroll:!0})));let r=e.get(t.group);r&&n.set(t.group,r.layout)}),b({cursorFlags:0,hitRegions:r,initialLayoutMap:n,pointerDownAtPoint:{x:t.clientX,y:t.clientY},state:"active"}),r.length&&t.preventDefault()}function tt({document:t,event:e,hitRegions:r,initialLayoutMap:n,mountedGroups:i,pointerDownAtPoint:a,prevCursorFlags:o}){var s;let l,c,u=0;r.forEach(t=>{let{group:r,groupSize:o}=t,{orientation:s,panels:l}=r,{disableCursor:c}=r.mutableState,h=0;h=a?"horizontal"===s?(e.clientX-a.x)/o*100:(e.clientY-a.y)/o*100:"horizontal"===s?e.clientX<0?-100:100:e.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 e=Z({delta:h,initialLayout:p,panelConstraints:m,pivotIndices:t.panels.map(t=>l.indexOf(t)),prevLayout:A,trigger:"mouse-or-touch"});if(B(e,A)){if(0!==h&&!c)switch(s){case"horizontal":u|=h<0?1:2;break;case"vertical":u|=h<0?4:8}}else I(t.group,{defaultLayoutDeferred:f,derivedPanelConstraints:m,groupSize:g,layout:e,separatorToPanels:y})}});let h=0;0===e.movementX?h|=3&o:h|=3&u,0===e.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(t)}function te(t){let e=N,r=v;"active"===r.state&&tt({document:t.currentTarget,event:t,hitRegions:r.hitRegions,initialLayoutMap:r.initialLayoutMap,mountedGroups:e,prevCursorFlags:r.cursorFlags})}function tr(t){if(t.defaultPrevented)return;let e=v,r=N;if("active"===e.state){if(0===t.buttons){b({cursorFlags:0,state:"inactive"}),e.hitRegions.forEach(t=>{if(!r.has(t.group))return;let e=T(t.group.id,!0);I(t.group,e,{isUserInteraction:!0})});return}for(let r of e.hitRegions)if(r.separator){let{element:e}=r.separator;e.hasPointerCapture?.(t.pointerId)||e.setPointerCapture?.(t.pointerId)}tt({document:t.currentTarget,event:t,hitRegions:e.hitRegions,initialLayoutMap:e.initialLayoutMap,mountedGroups:r,pointerDownAtPoint:e.pointerDownAtPoint,prevCursorFlags:e.cursorFlags})}else{let n=E(t,r);0===n.length?"inactive"!==e.state&&b({cursorFlags:0,state:"inactive"}):b({cursorFlags:0,hitRegions:n,state:"hover"}),O(t.currentTarget)}}function tn(t){t.relatedTarget instanceof HTMLIFrameElement&&"hover"===v.state&&b({cursorFlags:0,state:"inactive"})}function ti(t){t.defaultPrevented||("mouse"!==t.pointerType||!(t.button>0))&&C(t.currentTarget)&&t.preventDefault()}function ta(t){let e=0,r=0,n={};for(let i of t)if(void 0!==i.defaultSize){e++;let t=l(i.defaultSize);r+=t,n[i.panelId]=t}else n[i.panelId]=void 0;let i=t.length-e;if(0!==i){let e=l((100-r)/i);for(let r of t)void 0===r.defaultSize&&(n[r.panelId]=e)}return n}let to=new Map;function ts(t){let e=(0,o.useId)();return`${t??e}`}let tl="u">typeof window?o.useLayoutEffect:o.useEffect;function tc(t){let e=(0,o.useRef)(t);return tl(()=>{e.current=t},[t]),(0,o.useCallback)((...t)=>e.current?.(...t),[e])}function tu(...t){return tc(e=>{t.forEach(t=>{if(t)switch(typeof t){case"function":t(e);break;case"object":t.current=e}})})}function th(t){let e=(0,o.useRef)({...t});return tl(()=>{for(let r in t)e.current[r]=t[r]},[t]),e.current}let tp=(0,o.createContext)(null);function td({children:t,className:e,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=tc(t=>{B(w.current.onLayoutChange,t)||(w.current.onLayoutChange=t,m?.(t))}),L=tc((t,e)=>{B(w.current.onLayoutChanged,t)||(w.current.onLayoutChanged=t,g?.(t,{isUserInteraction:e}))}),C=ts(f),F=(0,o.useRef)(null),[X,U]=function(){let[t,e]=(0,o.useState)({});return[t,(0,o.useCallback)(()=>e({}),[])]}(),W=(0,o.useRef)({lastExpandedPanelSizes:{},layouts:{},panels:[],resizeTargetMinimumSize:R,separators:[]}),V=tu(F,s);S=(0,o.useRef)({getLayout:()=>({}),setLayout:x}),(0,o.useImperativeHandle)(d,()=>S.current,[]),tl(()=>{Object.assign(S.current,z({groupId:C}))});let E=tc((t,e)=>{let n=v,i=_(t),a=T(t);if(a){let t=!1;return"active"===n.state&&(t=n.hitRegions.some(t=>t.group===i)),{flexGrow:a.layout[e]??1,pointerEvents:t?"none":void 0}}if(r?.[e])return{flexGrow:r?.[e]}}),D=th({defaultLayout:r,disableCursor:n}),Q=(0,o.useMemo)(()=>({get disableCursor(){return!!D.disableCursor},getPanelStyles:E,id:C,orientation:y,registerPanel:t=>{let e=W.current;return e.panels=p(y,[...e.panels,t]),U(),()=>{e.panels=e.panels.filter(e=>e!==t),U()}},registerSeparator:t=>{let e=W.current;return e.separators=p(y,[...e.separators,t]),U(),()=>{e.separators=e.separators.filter(e=>e!==t),U()}},updatePanelProps:(t,{disabled:e})=>{let r=W.current.panels.find(e=>e.id===t);r&&(r.panelConstraints.disabled=e);let n=_(C),i=T(C);n&&i&&I(n,{...i,derivedPanelConstraints:u(n)})},updateSeparatorProps:(t,{disabled:e,disableDoubleClick:r})=>{let n=W.current.separators.find(e=>e.id===t);n&&(n.disabled=e,n.disableDoubleClick=r)}}),[E,C,U,y,D]),Z=(0,o.useRef)(null);return tl(()=>{let t,e,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 e of(t={},x.panels)){let r=D.defaultLayout[e.id];void 0!==r&&(t[e.id]=r)}let M={disabled:!!i,element:b,id:C,mutableState:{defaultLayout:t,disableCursor:!!D.disableCursor,expandedPanelSizes:W.current.lastExpandedPanelSizes,layouts:W.current.layouts},orientation:y,panels:x.panels,resizeTargetMinimumSize:x.resizeTargetMinimumSize,separators:x.separators};Z.current=M;let S=(e=!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(t=>{for(let r of t){let{borderBoxSize:t,target:n}=r;if(n===M.element){if(e){let t=c({group:M});if(0===t)return;let e=T(M.id);if(!e)return;let r=u(M),n=e.defaultLayoutDeferred?ta(r):e.layout,i=K({layout:function({group:t,nextGroupSize:e,prevGroupSize:r,prevLayout:n}){if(r<=0||e<=0||r===e)return n;let i=0,a=0,o=!1,s=new Map,c=[];for(let u of t.panels){let t=n[u.id]??0;if("preserve-pixel-size"===u.panelConstraints.groupResizeBehavior){o=!0;let n=l(t/100*r/e*100);s.set(u.id,n),i+=n}else c.push(u.id),a+=t}if(!o||0===c.length)return n;let u=100-i,h={...n};if(s.forEach((t,e)=>{h[e]=t}),a>0)for(let t of c){let e=n[t]??0;h[t]=l(e/a*u)}else{let t=l(u/c.length);for(let e of c)h[e]=t}return h}({group:M,nextGroupSize:t,prevGroupSize:e.groupSize,prevLayout:n}),panelConstraints:r});if(!e.defaultLayoutDeferred&&B(e.layout,i)&&function(t,e){return t.length===e.length&&t.every((t,r)=>(function(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(let r in t)if(t[r]!==e[r])return!1;return!0})(t,e[r]))}(e.derivedPanelConstraints,r)&&e.groupSize===t)continue;I(M,{defaultLayoutDeferred:!1,derivedPanelConstraints:r,groupSize:t,layout:i,separatorToPanels:e.separatorToPanels})}}else!function(t,e,r){if(!r[0])return;let n=t.panels.find(t=>t.element===e);if(!n||!n.onResize)return;let i=c({group:t}),a="horizontal"===t.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,t)}})).observe(M.element),M.panels.forEach(t=>{h(!n.has(t.id),`Panel ids must be unique; id "${t.id}" was used more than once`),n.add(t.id),t.onResize&&o.observe(t.element)}),s=c({group:M}),p=u(M),d=M.panels.map(({id:t})=>t).join(","),(f=M.mutableState.defaultLayout)&&(function(t,e){let r=t.map(t=>t.id),n=Object.keys(e);if(r.length!==n.length)return!1;for(let t of r)if(!n.includes(t))return!1;return!0}(M.panels,f)||(f=void 0)),m=K({layout:M.mutableState.layouts[d]??f??ta(p),panelConstraints:p}),g=M.element.ownerDocument,to.set(g,(to.get(g)??0)+1),R=new Map,A(M).forEach(t=>{t.separator&&R.set(t.separator,t.panels)}),I(M,{defaultLayoutDeferred:0===s,derivedPanelConstraints:p,groupSize:s,layout:m,separatorToPanels:R}),M.separators.forEach(t=>{h(!a.has(t.id),`Separator ids must be unique; id "${t.id}" was used more than once`),a.add(t.id),t.element.addEventListener("keydown",j)}),1===to.get(g)&&(g.addEventListener("contextmenu",k,!0),g.addEventListener("dblclick",G,!0),g.addEventListener("pointerdown",q,!0),g.addEventListener("pointerleave",te),g.addEventListener("pointermove",tr),g.addEventListener("pointerout",tn),g.addEventListener("pointerup",ti,!0)),function(){e=!1,to.set(g,Math.max(0,(to.get(g)??0)-1)),(N=new Map(N)).delete(M),M.separators.forEach(t=>{t.element.removeEventListener("keydown",j)}),to.get(g)||(g.removeEventListener("contextmenu",k,!0),g.removeEventListener("dblclick",G,!0),g.removeEventListener("pointerdown",q,!0),g.removeEventListener("pointerleave",te),g.removeEventListener("pointermove",tr),g.removeEventListener("pointerout",tn),g.removeEventListener("pointerup",ti,!0)),o.disconnect()}),{defaultLayoutDeferred:w,derivedPanelConstraints:_,layout:X}=T(M.id,!0);!w&&_.length>0&&(O(X),L(X,!1));let U=P(C,t=>{let{defaultLayoutDeferred:e,derivedPanelConstraints:r,layout:n}=t.next;if(e||0===r.length)return;let i=M.panels.map(({id:t})=>t).join(",");M.mutableState.layouts[i]=n,r.forEach(e=>{if(e.collapsible){let{layout:r}=t.prev??{};if(r){let t=Y(e.collapsedSize,n[e.panelId]),i=Y(e.collapsedSize,r[e.panelId]);t&&!i&&(M.mutableState.expandedPanelSizes[e.panelId]=r[e.panelId])}}});let a="active"!==v.state;O(n),a&&L(n,t.isUserInteraction)});return()=>{Z.current=null,S(),U()}},[i,C,L,O,y,X,D]),(0,o.useEffect)(()=>{let t=Z.current;t&&(t.mutableState.defaultLayout=r,t.mutableState.disableCursor=!!n)}),(0,a.jsx)(tp.Provider,{value:Q,children:(0,a.jsx)("div",{...M,className:e,"data-group":!0,"data-testid":C,id:C,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:t})})}function tf(t,e){return`react-resizable-panels:${[t,...e].join(":")}`}function tm({debounceSaveMs:t=100,onlySaveAfterUserInteractions:e,panelIds:r,storage:n=localStorage,...i}){let a=void 0!==r,s="id"in i?i.id:i.groupId,l=tf(s,r??[]),c=(0,o.useSyncExternalStore)(tg,()=>n.getItem(l),()=>n.getItem(l)),u=(0,o.useMemo)(()=>{if(c){let t=JSON.parse(c);if(Array.from(Object.values(t)).every(t=>"number"==typeof t))return t}},[c]),h=(0,o.useMemo)(()=>{if(!u)return function({id:t,panelIds:e,storage:r}){let n=tf(t,[]),i=r.getItem(n);if(i)try{let t=JSON.parse(i);if(e){let r=t[e.join(",")];if(r&&Array.isArray(r.layout)&&e.length===r.layout.length){let t={};for(let n=0;n<e.length;n++)t[e[n]]=r.layout[n];return t}}else{let e=Object.keys(t);if(1===e.length){let r=t[e[0]];if(r&&Array.isArray(r.layout)){let t=e[0].split(",");if(t.length===r.layout.length){let e={};for(let n=0;n<t.length;n++)e[t[n]]=r.layout[n];return e}}}}}catch{}}({id:s,panelIds:r,storage:n})},[u,s,r,n]),p=u??h,d=(0,o.useRef)(null),f=(0,o.useCallback)(()=>{let t=d.current;t&&(d.current=null,clearTimeout(t))},[]);(0,o.useLayoutEffect)(()=>()=>{f()},[f]);let m=(0,o.useCallback)((t,r)=>{let i;if(!e||r.isUserInteraction){f(),i=a?tf(s,Object.keys(t)):tf(s,[]);try{n.setItem(i,JSON.stringify(t))}catch(t){console.error(t)}}},[f,a,s,e,n]);return{defaultLayout:p,onLayoutChange:(0,o.useCallback)(e=>{f(),0===t?m(e,{isUserInteraction:!1}):d.current=setTimeout(()=>{m(e,{isUserInteraction:!1})},t)},[f,t,m]),onLayoutChanged:m}}function tg(){return function(){}}function tA(){let t=(0,o.useContext)(tp);return h(t,"Group Context not found; did you render a Panel or Separator outside of a Group?"),t}function ty({children:t,className:e,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=ts(u),R=th({disabled:s}),b=(0,o.useRef)(null),x=tu(b,l),{getPanelStyles:S,id:w,orientation:O,registerPanel:N,updatePanelProps:L}=tA(),_=null!==d,T=tc((t,e,r)=>{d?.(t,u,r)});tl(()=>{let t=b.current;if(null!==t)return N({element:t,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,N,R]),(0,o.useEffect)(()=>{L(v,{disabled:s})},[s,v,L]),function(t,e){let{id:r}=tA(),n=(0,o.useRef)({collapse:M,expand:M,getSize:()=>({asPercentage:0,inPixels:0}),isCollapsed:()=>!1,resize:M});(0,o.useImperativeHandle)(e,()=>n.current,[]),tl(()=>{Object.assign(n.current,$({groupId:r,panelId:t}))})}(v,f);let I=()=>{let t=S(w,v);if(t)return JSON.stringify(t)},C=(0,o.useSyncExternalStore)(t=>P(w,t),I,I);return A=C?JSON.parse(C):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:{...tv,display:"flex",flexBasis:0,flexShrink:1,overflow:"visible",...A},children:(0,a.jsx)("div",{className:e,style:{maxHeight:"100%",maxWidth:"100%",flexGrow:1,overflow:"auto",...m,touchAction:"horizontal"===O?"pan-y":"pan-x"},children:t})})}td.displayName="Group",ty.displayName="Panel";let tv={minHeight:0,maxHeight:"100%",height:"auto",minWidth:0,maxWidth:"100%",width:"auto",border:"none",borderWidth:0,padding:0,margin:0};function tR(){return(0,o.useRef)(null)}function tb({children:t,className:e,disabled:r,disableDoubleClick:n,elementRef:i,id:s,style:l,...c}){let u,h,p=ts(s),d=th({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=tu(b,i),{disableCursor:M,id:S,orientation:w,registerSeparator:O,updateSeparatorProps:N}=tA();return tl(()=>{let t=b.current;if(null!==t){var e;let r={disabled:d.disabled,disableDoubleClick:d.disableDoubleClick,element:t,id:p},n=O(r),i=(e=t=>{A("inactive"!==t.next.state&&t.next.hitRegions.some(t=>t.separator===r)?t.next.state:"inactive")},R.addListener("change",e)),a=P(S,t=>{let{derivedPanelConstraints:e,layout:n,separatorToPanels:i}=t.next,a=i.get(r);if(a){let t=a[0],r=a.indexOf(t);m(function({layout:t,panelConstraints:e,panelId:r,panelIndex:n}){let i,a,o=t[r],s=e.find(t=>t.panelId===r);if(s){let l=s.maxSize,c=s.collapsible?s.collapsedSize:s.minSize,u=[n,n+1];a=K({layout:Z({delta:c-o,initialLayout:t,panelConstraints:e,pivotIndices:u,prevLayout:t}),panelConstraints:e})[r],i=K({layout:Z({delta:l-o,initialLayout:t,panelConstraints:e,pivotIndices:u,prevLayout:t}),panelConstraints:e})[r]}return{valueControls:r,valueMax:i,valueMin:a,valueNow:o}}({layout:n,panelConstraints:e,panelId:t.id,panelIndex:r}))}});return()=>{i(),a(),n()}}},[S,p,O,d]),(0,o.useEffect)(()=>{N(p,{disabled:r,disableDoubleClick:n})},[r,n,p,N]),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:t,className:e,"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})}tb.displayName="Separator",r.d(e,{YJ:()=>td,Zk:()=>ty,fk:()=>tR,lv:()=>tm,wv:()=>tb})},65179(t,e,r){function n([t,e],r){return[t*Math.cos(r)-e*Math.sin(r),t*Math.sin(r)+e*Math.cos(r)]}function i(...t){for(let e=0;e<t.length;e++)if("number"!=typeof t[e])throw Error(`assertNumbers arguments[${e}] is not a number. ${typeof t[e]} == typeof ${t[e]}`);return!0}r.d(e,{LQ:()=>w,zb:()=>R});let a=Math.PI;function o(t,e,r){t.lArcFlag=+(0!==t.lArcFlag),t.sweepFlag=+(0!==t.sweepFlag);let{rX:i,rY:o}=t,{x:s,y:l}=t;if(1e-10>Math.abs(i)||1e-10>Math.abs(o)){t.rX=0,t.rY=0,t.cX=(e+s)/2,t.cY=(r+l)/2,t.phi1=0,t.phi2=0;return}i=Math.abs(t.rX),o=Math.abs(t.rY);let c=t.xRot/180*a,[u,h]=n([(e-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)),t.rX=i,t.rY=o;let d=Math.pow(i,2)*Math.pow(h,2)+Math.pow(o,2)*Math.pow(u,2),f=(t.lArcFlag!==t.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);t.cX=A[0]+(e+s)/2,t.cY=A[1]+(r+l)/2,t.phi1=Math.atan2((h-g)/o,(u-m)/i),t.phi2=Math.atan2((-h-g)/o,(-u-m)/i),0===t.sweepFlag&&t.phi2>t.phi1&&(t.phi2-=2*a),1===t.sweepFlag&&t.phi2<t.phi1&&(t.phi2+=2*a),t.phi1*=180/a,t.phi2*=180/a}function s(t,e,r){i(t,e,r);let n=t*t+e*e-r*r;if(0>n)return[];if(0===n)return[[t*r/(t*t+e*e),e*r/(t*t+e*e)]];let a=Math.sqrt(n);return[[(t*r+e*a)/(t*t+e*e),(e*r-t*a)/(t*t+e*e)],[(t*r-e*a)/(t*t+e*e),(e*r+t*a)/(t*t+e*e)]]}let l=Math.PI/180;function c(t,e,r,n){return t+Math.cos(n/180*a)*e+Math.sin(n/180*a)*r}function u(t,e,r,n){let i=e-t,a=r-e,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(t,e,r=1e-6){let n=t*t/4-e;if(n<-r)return[];if(n<=r)return[-t/2];let i=Math.sqrt(n);return[-(t/2)-i,-(t/2)+i]}(s/o,l/o,1e-6)}function h(t,e,r,n,i){let a=1-i;return a*a*a*t+3*a*a*i*e+3*a*i*i*r+i*i*i*n}function p(t,e,r){let n=e[0]-t[0],i=e[1]-t[1],a=r[0]-t[0],o=r[1]-t[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(t){let e=t[t.length-1]?.type===w.CLOSE_PATH,r=e?t.length-2:t.length-1,n=[{type:w.MOVE_TO,relative:!1,x:t[r].x,y:t[r].y}];for(let e=r;e>0;e--){let r=t[e],i=t[e-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 e&&n.push({type:w.CLOSE_PATH}),n}function f(){return A((t,e,r)=>(t.relative&&(void 0!==t.x1&&(t.x1+=e),void 0!==t.y1&&(t.y1+=r),void 0!==t.x2&&(t.x2+=e),void 0!==t.y2&&(t.y2+=r),void 0!==t.x&&(t.x+=e),void 0!==t.y&&(t.y+=r),t.relative=!1),t))}function m(){let t=0/0,e=0/0,r=0/0,n=0/0;return A((i,a,o)=>(i.type&w.SMOOTH_CURVE_TO&&(i.type=w.CURVE_TO,t=isNaN(t)?a:t,e=isNaN(e)?o:e,i.x1=i.relative?a-t:2*a-t,i.y1=i.relative?o-e:2*o-e),i.type&w.CURVE_TO?(t=i.relative?a+i.x2:i.x2,e=i.relative?o+i.y2:i.y2):(t=0/0,e=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 t=0/0,e=0/0;return A((r,n,i)=>{if(r.type&w.SMOOTH_QUAD_TO&&(r.type=w.QUAD_TO,t=isNaN(t)?n:t,e=isNaN(e)?i:e,r.x1=r.relative?n-t:2*n-t,r.y1=r.relative?i-e:2*i-e),r.type&w.QUAD_TO){t=r.relative?n+r.x1:r.x1,e=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 t=0/0,e=0/0;return r})}function A(t){let e=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=t(a,e,r,n,i);return a.type&w.CLOSE_PATH&&(e=n,r=i),"x"in a&&void 0!==a.x&&(e=a.relative?e+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=e,i=r),o}}function y(t,e,r,n,a,o){return i(t,e,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!==e&&(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*t+f*r+(p?0:a)),void 0!==i.y&&(i.y=d*e+i.y*n+(p?0:o)),void 0!==i.x1&&(i.x1=i.x1*t+i.y1*r+(p?0:a)),void 0!==i.y1&&(i.y1=u*e+i.y1*n+(p?0:o)),void 0!==i.x2&&(i.x2=i.x2*t+i.y2*r+(p?0:a)),void 0!==i.y2&&(i.y2=h*e+i.y2*n+(p?0:o));let m=t*n-e*r;if(void 0!==i.xRot&&(1!==t||0!==e||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*e*n+p*e*e,f=h*(t*n+e*r)-2*(u*r*n+p*t*e),y=u*r*r-h*t*r+p*t*t,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 t=>({...t})}let R={ROUND:function(t=1e13){function e(e){return Math.round(e*t)/t}return i(t),function(t){return"x1"in t&&void 0!==t.x1&&(t.x1=e(t.x1)),"y1"in t&&void 0!==t.y1&&(t.y1=e(t.y1)),"x2"in t&&void 0!==t.x2&&(t.x2=e(t.x2)),"y2"in t&&void 0!==t.y2&&(t.y2=e(t.y2)),"x"in t&&void 0!==t.x&&(t.x=e(t.x)),"y"in t&&void 0!==t.y&&(t.y=e(t.y)),"rX"in t&&void 0!==t.rX&&(t.rX=e(t.rX)),"rY"in t&&void 0!==t.rY&&(t.rY=e(t.rY)),t}},TO_ABS:f,TO_REL:function(){return A((t,e,r)=>(t.relative||(void 0!==t.x1&&(t.x1-=e),void 0!==t.y1&&(t.y1-=r),void 0!==t.x2&&(t.x2-=e),void 0!==t.y2&&(t.y2-=r),void 0!==t.x&&(t.x-=e),void 0!==t.y&&(t.y-=r),t.relative=!0),t))},NORMALIZE_HVZ:function(t=!0,e=!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(e&&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),t&&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 t=[a,o],e=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(t,e,n)&&p(t,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(t=0){i(t);let e=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(e)?0:o-e,d=isNaN(r)?0:s-r),i.type&(w.CURVE_TO|w.SMOOTH_CURVE_TO)?(e=i.relative?o+i.x2:i.x2,r=i.relative?s+i.y2:i.y2):(e=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 e=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(e)<=t&&u(r)<=t&&u(p)<=t&&u(d)<=t&&u(l)<=t&&u(c)<=t&&(h=!0)}return i.type&w.CLOSE_PATH&&u(o-l)<=t&&u(s-c)<=t&&(h=!0),h?[]:i})},MATRIX:y,ROTATE:function(t,e=0,r=0){i(t,e,r);let n=Math.sin(t),a=Math.cos(t);return y(a,n,-n,a,e-e*a+r*n,r-e*n-r*a)},TRANSLATE:function(t,e=0){return i(t,e),y(1,0,0,1,t,e)},SCALE:function(t,e=t){return i(t,e),y(t,0,0,e,0,0)},SKEW_X:function(t){return i(t),y(1,0,Math.tan(t),1,0,0)},SKEW_Y:function(t){return i(t),y(1,Math.tan(t),0,1,0,0)},X_AXIS_SYMMETRY:function(t=0){return i(t),y(-1,0,0,1,t,0)},Y_AXIS_SYMMETRY:function(t=0){return i(t),y(1,0,0,-1,0,t)},A_TO_C:function(){return A((t,e,r)=>w.ARC===t.type?function(t,e,r){t.cX||o(t,e,r);let i=t.xRot/180*a;if(1e-10>Math.abs(t.rX)||1e-10>Math.abs(t.rY))return[{relative:t.relative,type:w.CURVE_TO,x1:e+(t.x-e)/3,y1:r+(t.y-r)/3,x2:e+2*(t.x-e)/3,y2:r+2*(t.y-r)/3,x:t.x,y:t.y}];let s=Math.min(t.phi1,t.phi2),c=Math.ceil((Math.max(t.phi1,t.phi2)-s)/90),u=Array(c),h=e,p=r,d=(e,r)=>{let[a,o]=n([e*t.rX,r*t.rY],i);return[t.cX+a,t.cY+o]};for(let e=0;e<c;e++){var f,m,g,A,y,v;let r=(f=t.phi1,m=t.phi2,(1-(g=e/c))*f+g*m),n=(A=t.phi1,y=t.phi2,(1-(v=(e+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),N={relative:t.relative,type:w.CURVE_TO,x:O[0],y:O[1],x1:M[0],y1:M[1],x2:S[0],y2:S[1]};t.relative&&(N.x1-=h,N.y1-=p,N.x2-=h,N.y2-=p,N.x-=h,N.y-=p),h=O[0],p=O[1],u[e]=N}return u}(t,t.relative?0:e,t.relative?0:r):t)},ANNOTATE_ARCS:function(){return A((t,e,r)=>(t.relative&&(e=0,r=0),w.ARC===t.type&&o(t,e,r),t))},CLONE:v,CALCULATE_BOUNDS:function(){let t=v(),e=f(),r=g(),n=m(),i=A((a,l,p)=>{let d=n(r(e(t(a))));function f(t){t>i.maxX&&(i.maxX=t),t<i.minX&&(i.minX=t)}function m(t){t>i.maxY&&(i.maxY=t),t<i.minY&&(i.minY=t)}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 t of(f(d.x),m(d.y),u(l,d.x1,d.x2,d.x)))0<t&&1>t&&f(h(l,d.x1,d.x2,d.x,t));for(let t of u(p,d.y1,d.y2,d.y))0<t&&1>t&&m(h(p,d.y1,d.y2,d.y,t))}if(d.type&w.ARC){f(d.x),m(d.y),o(d,l,p);let t=d.xRot/180*Math.PI,e=Math.cos(t)*d.rX,r=Math.sin(t)*d.rX,n=-Math.sin(t)*d.rY,i=Math.cos(t)*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=([t,e])=>{let r=180*Math.atan2(e,t)/Math.PI;return r<a?r+360:r};for(let t of s(n,-e,0).map(h))t>a&&t<u&&f(c(d.cX,e,n,t));for(let t of s(i,-r,0).map(h))t>a&&t<u&&m(c(d.cY,r,i,t))}return a});return i.minX=1/0,i.maxX=-1/0,i.minY=1/0,i.maxY=-1/0,i},REVERSE_PATH:function(t,e=!0){if(t.length<2)return t;let r=R.INFO((t,e,r)=>({...t,x:t.x??e,y:t.y??r,relative:t.relative??!1})),n=[],i=[];for(let a of t){let t=r(a);t.type===w.MOVE_TO&&i.length>0&&(e?n.push(...d(i)):n.unshift(...d(i)),i=[]),i.push(t)}return i.length>0&&(e?n.push(...d(i)):n.unshift(...d(i))),n},REMOVE_COLLINEAR:function(t){if(t.length<=2)return t;let e=[],r=t.map(R.INFO((t,e,r)=>{let n="relative"in t&&t.relative;return["x"in t?t.x+(n?e:0):e,"y"in t?t.y+(n?r:0):r]})),n=r[0];e.push(t[0]);for(let i=1;i<t.length;i++){let a=t[i],o=t[i+1];if(i<t.length-1&&o&&a.type&w.LINE_COMMANDS&&o.type&w.LINE_COMMANDS){let t=r[i+1];if(p(n,r[i],t)){"relative"in o&&o.relative&&("x"in o&&(o.x=t[0]-n[0]),"y"in o&&(o.y=t[1]-n[1]));continue}}e.push(a),n=r[i]}return e}};class b{round(t){return this.transform(R.ROUND(t))}toAbs(){return this.transform(R.TO_ABS())}toRel(){return this.transform(R.TO_REL())}normalizeHVZ(t,e,r){return this.transform(R.NORMALIZE_HVZ(t,e,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(t){return this.transform(R.SANITIZE(t))}translate(t,e){return this.transform(R.TRANSLATE(t,e))}scale(t,e){return this.transform(R.SCALE(t,e))}rotate(t,e,r){return this.transform(R.ROTATE(t,e,r))}matrix(t,e,r,n,i,a){return this.transform(R.MATRIX(t,e,r,n,i,a))}skewX(t){return this.transform(R.SKEW_X(t))}skewY(t){return this.transform(R.SKEW_Y(t))}xSymmetry(t){return this.transform(R.X_AXIS_SYMMETRY(t))}ySymmetry(t){return this.transform(R.Y_AXIS_SYMMETRY(t))}annotateArcs(){return this.transform(R.ANNOTATE_ARCS())}}let x=t=>" "===t||" "===t||"\r"===t||"\n"===t,M=t=>48<=t.charCodeAt(0)&&57>=t.charCodeAt(0);class S extends b{curNumber="";curCommandType=-1;curCommandRelative=!1;canParseCommandOrComma=!0;curNumberHasExp=!1;curNumberHasExpDigits=!1;curNumberHasDecimal=!1;curArgs=[];finish(t=[]){if(this.parse(" ",t),0!==this.curArgs.length||!this.canParseCommandOrComma)throw SyntaxError("Unterminated command at the path end.");return t}parse(t,e=[]){let r=t=>{e.push(t),this.curArgs.length=0,this.canParseCommandOrComma=!0};for(let n=0;n<t.length;n++){let i=t[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 t=Number(this.curNumber);if(isNaN(t))throw SyntaxError(`Invalid number ending at ${n}`);if(this.curCommandType===w.ARC){if(0===this.curArgs.length||1===this.curArgs.length){if(0>t)throw SyntaxError(`Expected positive number, got "${t}" 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(t),this.curArgs.length===O[this.curCommandType]&&(w.HORIZ_LINE_TO===this.curCommandType?r({type:w.HORIZ_LINE_TO,relative:this.curCommandRelative,x:t}):w.VERT_LINE_TO===this.curCommandType?r({type:w.VERT_LINE_TO,relative:this.curCommandRelative,y:t}):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){e.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 e}transform(t){return Object.create(this,{parse:{value(e,r=[]){for(let n of Object.getPrototypeOf(this).parse.call(this,e)){let e=t(n);Array.isArray(e)?r.push(...e):r.push(e)}return r}}})}}class w extends b{commands;constructor(t){super(),"string"==typeof t?this.commands=w.parse(t):this.commands=t}encode(){return w.encode(this.commands)}getBounds(){let t=R.CALCULATE_BOUNDS();return this.transform(t),t}transform(t){let e=[];for(let r of this.commands){let n=t(r);Array.isArray(n)?e.push(...n):e.push(n)}return this.commands=e,this}reverse(t=!0){return this.commands=R.REVERSE_PATH(this.commands,t),this}removeCollinear(){return this.commands=R.REMOVE_COLLINEAR(this.commands),this}static encode(t){var e=t;let r="";Array.isArray(e)||(e=[e]);for(let t=0;t<e.length;t++){let n=e[t];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 ${t}.`)}return r}static parse(t){let e=new S,r=[];return e.parse(t,r),e.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(t,e,r){function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var i,a,o,s=/^\s+/,l=/\s+$/;function c(t,e){if(e=e||{},(t=t||"")instanceof c)return t;if(!(this instanceof c))return new c(t,e);var r,i,a,o,u,h,p,d,f,m,g,A,y,v,R,b,x,M,S,w,N=(i={r:0,g:0,b:0},a=1,o=null,u=null,h=null,p=!1,d=!1,"string"==typeof(r=t)&&(r=function(t){t=t.replace(s,"").replace(l,"").toLowerCase();var e,r=!1;if(O[t])t=O[t],r=!0;else if("transparent"==t)return{r:0,g:0,b:0,a:0,format:"name"};return(e=F.rgb.exec(t))?{r:e[1],g:e[2],b:e[3]}:(e=F.rgba.exec(t))?{r:e[1],g:e[2],b:e[3],a:e[4]}:(e=F.hsl.exec(t))?{h:e[1],s:e[2],l:e[3]}:(e=F.hsla.exec(t))?{h:e[1],s:e[2],l:e[3],a:e[4]}:(e=F.hsv.exec(t))?{h:e[1],s:e[2],v:e[3]}:(e=F.hsva.exec(t))?{h:e[1],s:e[2],v:e[3],a:e[4]}:(e=F.hex8.exec(t))?{r:P(e[1]),g:P(e[2]),b:P(e[3]),a:P(e[4])/255,format:r?"name":"hex8"}:(e=F.hex6.exec(t))?{r:P(e[1]),g:P(e[2]),b:P(e[3]),format:r?"name":"hex"}:(e=F.hex4.exec(t))?{r:P(e[1]+""+e[1]),g:P(e[2]+""+e[2]),b:P(e[3]+""+e[3]),a:P(e[4]+""+e[4])/255,format:r?"name":"hex8"}:!!(e=F.hex3.exec(t))&&{r:P(e[1]+""+e[1]),g:P(e[2]+""+e[2]),b:P(e[3]+""+e[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=C(r.s),u=C(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=C(r.s),h=C(r.l),i=function(t,e,r){var n,i,a;function o(t,e,r){return(r<0&&(r+=1),r>1&&(r-=1),r<1/6)?t+(e-t)*6*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t}if(t=_(t,360),e=_(e,100),r=_(r,100),0===e)n=i=a=r;else{var s=r<.5?r*(1+e):r+e-r*e,l=2*r-s;n=o(l,s,t+1/3),i=o(l,s,t),a=o(l,s,t-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=L(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=t,this._r=N.r,this._g=N.g,this._b=N.b,this._a=N.a,this._roundA=Math.round(100*this._a)/100,this._format=e.format||N.format,this._gradientType=e.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=N.ok}function u(t,e,r){t=_(t,255);var n,i,a=Math.max(t,e=_(e,255),r=_(r,255)),o=Math.min(t,e,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 t:n=(e-r)/l+6*(e<r);break;case e:n=(r-t)/l+2;break;case r:n=(t-e)/l+4}n/=6}return{h:n,s:i,l:s}}function h(t,e,r){t=_(t,255);var n,i=Math.max(t,e=_(e,255),r=_(r,255)),a=Math.min(t,e,r),o=i-a;if(i==a)n=0;else{switch(i){case t:n=(e-r)/o+6*(e<r);break;case e:n=(r-t)/o+2;break;case r:n=(t-e)/o+4}n/=6}return{h:n,s:0===i?0:o/i,v:i}}function p(t,e,r,n){var i=[I(Math.round(t).toString(16)),I(Math.round(e).toString(16)),I(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(t,e,r,n){return[I(k(n)),I(Math.round(t).toString(16)),I(Math.round(e).toString(16)),I(Math.round(r).toString(16))].join("")}function f(t,e){e=0===e?0:e||10;var r=c(t).toHsl();return r.s-=e/100,r.s=T(r.s),c(r)}function m(t,e){e=0===e?0:e||10;var r=c(t).toHsl();return r.s+=e/100,r.s=T(r.s),c(r)}function g(t){return c(t).desaturate(100)}function A(t,e){e=0===e?0:e||10;var r=c(t).toHsl();return r.l+=e/100,r.l=T(r.l),c(r)}function y(t,e){e=0===e?0:e||10;var r=c(t).toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(-(e/100*255)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(-(e/100*255)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(-(e/100*255)))),c(r)}function v(t,e){e=0===e?0:e||10;var r=c(t).toHsl();return r.l-=e/100,r.l=T(r.l),c(r)}function R(t,e){var r=c(t).toHsl(),n=(r.h+e)%360;return r.h=n<0?360+n:n,c(r)}function b(t){var e=c(t).toHsl();return e.h=(e.h+180)%360,c(e)}function x(t,e){if(isNaN(e)||e<=0)throw Error("Argument to polyad must be a positive number");for(var r=c(t).toHsl(),n=[c(t)],i=360/e,a=1;a<e;a++)n.push(c({h:(r.h+a*i)%360,s:r.s,l:r.l}));return n}function M(t){var e=c(t).toHsl(),r=e.h;return[c(t),c({h:(r+72)%360,s:e.s,l:e.l}),c({h:(r+216)%360,s:e.s,l:e.l})]}function S(t,e,r){e=e||6,r=r||30;var n=c(t).toHsl(),i=360/r,a=[c(t)];for(n.h=(n.h-(i*e>>1)+720)%360;--e;)n.h=(n.h+i)%360,a.push(c(n));return a}function w(t,e){e=e||6;for(var r=c(t).toHsv(),n=r.h,i=r.s,a=r.v,o=[],s=1/e;e--;)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 t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},getLuminance:function(){var t,e,r,n=this.toRgb();return t=n.r/255,e=n.g/255,.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.0722*((r=n.b/255)<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},setAlpha:function(t){return this._a=L(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=h(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=h(this._r,this._g,this._b),e=Math.round(360*t.h),r=Math.round(100*t.s),n=Math.round(100*t.v);return 1==this._a?"hsv("+e+", "+r+"%, "+n+"%)":"hsva("+e+", "+r+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var t=u(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=u(this._r,this._g,this._b),e=Math.round(360*t.h),r=Math.round(100*t.s),n=Math.round(100*t.l);return 1==this._a?"hsl("+e+", "+r+"%, "+n+"%)":"hsla("+e+", "+r+"%, "+n+"%, "+this._roundA+")"},toHex:function(t){return p(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){var e,r,n,i,a,o;return e=this._r,r=this._g,n=this._b,i=this._a,a=t,o=[I(Math.round(e).toString(16)),I(Math.round(r).toString(16)),I(Math.round(n).toString(16)),I(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(t){return"#"+this.toHex8(t)},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)&&(N[p(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var e="#"+d(this._r,this._g,this._b,this._a),r=e,n=this._gradientType?"GradientType = 1, ":"";if(t){var i=c(t);r="#"+d(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+e+",endColorstr="+r+")"},toString:function(t){var e=!!t;t=t||this._format;var r=!1,n=this._a<1&&this._a>=0;return!e&&n&&("hex"===t||"hex6"===t||"hex3"===t||"hex4"===t||"hex8"===t||"name"===t)?"name"===t&&0===this._a?this.toName():this.toRgbString():("rgb"===t&&(r=this.toRgbString()),"prgb"===t&&(r=this.toPercentageRgbString()),("hex"===t||"hex6"===t)&&(r=this.toHexString()),"hex3"===t&&(r=this.toHexString(!0)),"hex4"===t&&(r=this.toHex8String(!0)),"hex8"===t&&(r=this.toHex8String()),"name"===t&&(r=this.toName()),"hsl"===t&&(r=this.toHslString()),"hsv"===t&&(r=this.toHsvString()),r||this.toHexString())},clone:function(){return c(this.toString())},_applyModification:function(t,e){var r=t.apply(null,[this].concat([].slice.call(e)));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(t,e){return t.apply(null,[this].concat([].slice.call(e)))},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(t,e){if("object"==n(t)){var r={};for(var i in t)t.hasOwnProperty(i)&&("a"===i?r[i]=t[i]:r[i]=C(t[i]));t=r}return c(t,e)},c.equals=function(t,e){return!!t&&!!e&&c(t).toRgbString()==c(e).toRgbString()},c.random=function(){return c.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},c.mix=function(t,e,r){r=0===r?0:r||50;var n=c(t).toRgb(),i=c(e).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(t,e){var r=c(t),n=c(e);return(Math.max(r.getLuminance(),n.getLuminance())+.05)/(Math.min(r.getLuminance(),n.getLuminance())+.05)},c.isReadable=function(t,e,r){var n,i,a,o,s,l=c.readability(t,e);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(t,e,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<e.length;u++)(n=c.readability(t,e[u]))>l&&(l=n,s=c(e[u]));return c.isReadable(t,s,{level:a,size:o})||!i?s:(r.includeFallbackColors=!1,c.mostReadable(t,["#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"},N=c.hexNames=function(t){var e={};for(var r in t)t.hasOwnProperty(r)&&(e[t[r]]=r);return e}(O);function L(t){return(isNaN(t=parseFloat(t))||t<0||t>1)&&(t=1),t}function _(t,e){"string"==typeof(r=t)&&-1!=r.indexOf(".")&&1===parseFloat(r)&&(t="100%");var r,n,i="string"==typeof(n=t)&&-1!=n.indexOf("%");return(t=Math.min(e,Math.max(0,parseFloat(t))),i&&(t=parseInt(t*e,10)/100),1e-6>Math.abs(t-e))?1:t%e/parseFloat(e)}function T(t){return Math.min(1,Math.max(0,t))}function P(t){return parseInt(t,16)}function I(t){return 1==t.length?"0"+t:""+t}function C(t){return t<=1&&(t=100*t+"%"),t}function k(t){return Math.round(255*parseFloat(t)).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(t){return!!F.CSS_UNIT.exec(t)}r.d(e,{A:()=>c})},57799(){((t="lang")=>()=>{var e;let r;return e=document?.cookie,(r=e?.split(";").map(t=>t.trim()).find(e=>e.startsWith(t))?.split("=")[1])?[r]:[]})();var t=t=>!!t;((e="lang")=>()=>[window?.localStorage?.getItem(e)].filter(t))(),((t="lang")=>()=>{let e=location?.search?.slice(1).split("&").find(e=>e.startsWith(t))?.split("=")[1];return e?[e]:[]})();var e=t=>!!t;((t="lang")=>()=>[window?.sessionStorage?.getItem(t)].filter(e))()},19788(t,e,r){var n=(t,e={})=>{let r=new Intl.NumberFormat(t,e);return t=>r.format(t)};r.d(e,{A:()=>n})},30139(t,e,r){var n=r(51649),i=()=>new Proxy(Object.assign(()=>"",{}),{get:(t,e)=>"length"===e?0:i()}),a=/^\{.*\}$/,o=/(\{(?:[^{}]+|\{(?:[^{}]+)*\})*\})/g,s=t=>t.substring(1,t.length-1),l=/\?\?/g;function c(t,e,r={}){let n,i;return h(e,(n={},i=new Intl.PluralRules(t),(t,...e)=>{var c;let u,h,p;return c=n[t]||(n[t]=((t,e=!0,r="",n="")=>t.split(o).map(t=>{if(!t.match(o))return t;let e=s(t);if(e.startsWith("{"))return((t,e)=>{let[r,n]=t.split(":");n||(n=r,r=e);let i=n.split("|"),[a,o,s,l,c,u]=i,h=i.filter(t=>void 0!==t).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(e),n);let i=(t=>{let[e="",...r]=t.split("|"),[n="",i]=e.split(":"),[a,o]=n.split("?");return{k:a,i:i,n:""===o,f:r}})(e);return n=i.k||n,r||(r=n),i}).map(t=>{if("string"==typeof t)return t;t.k||(t.k=r||"0");let n=Object.fromEntries(Object.keys(t).map(e=>{let r=t[e];return[e,Array.isArray(r)?r.map(t=>t?.trim()):!!r===r?r:r?.trim()]}));return e?Object.fromEntries(Object.entries(n).map(([t,e])=>"i"!==t&&e&&"0"!=e&&[t,e]).filter(Boolean)):n}))(t)),h=(u=e[0])&&"object"==typeof u&&u.constructor===Object,p=1===e.length&&h?u:e,c.map(t=>{if("string"==typeof t)return t;let{k:e="0",f:n=[]}=t,o=p[e];return t.o||t.r?(("boolean"==typeof o?o?t.o:t.r:((t,{z:e,o:r,t:n,f:i,m:a,r:o},s)=>{switch(e&&0==s?"zero":t.select(s)){case"zero":return e;case"one":return r;case"two":return n;case"few":return i??o;case"many":return a??o;default:return o}})(i,t,o))||"").replace(l,o):(""+((n.length?n.reduce((t,e)=>{let n;return(e.match(a)?(n=Object.fromEntries(s(e).split(",").map(t=>t.split(":")).reduce((t,e)=>2===e.length?[...t,e.map(t=>t.trim())]:(t[t.length-1][1]+=","+e[0],t),[])))[t]??n["*"]:r[e]?.(t))??t},o):o)??"")).trim()}).join("")}))}var u=(t={},e)=>"string"==typeof t?e.bind(null,t):Object.assign(Object.defineProperty(()=>"","name",{writable:!0}),t),h=(t,e)=>new Proxy(u(t,e),{get:(t,r)=>r===Symbol.iterator?[][Symbol.iterator].bind(Object.values(t).map(t=>u(t,e))):h(t[r],e)}),p=n.default,d=(t,e={})=>{let r=p.createContext({});return{component:n=>{let[a,o]=p.useState(n.locale),[s,l]=p.useState(()=>a?c(a,t[a],e[a]):i()),u=p.useCallback(r=>{o(r),l(()=>c(r,t[r],e[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(e,{w:()=>d})},86639(t,e,r){r.d(e,{y:()=>s});let n=/^\{.*\}$/,i=/(\{(?:[^{}]+|\{(?:[^{}]+)*\})*\})/g,a=t=>t.substring(1,t.length-1),o=/\?\?/g;function s(t,e,r={}){let l,u;return c(e,(l={},u=new Intl.PluralRules(t),(t,...e)=>{var s;let c,h,p;return s=l[t]||(l[t]=((t,e=!0,r="",n="")=>t.split(i).map(t=>{if(!t.match(i))return t;let e=a(t);if(e.startsWith("{"))return((t,e)=>{let[r,n]=t.split(":");n||(n=r,r=e);let i=n.split("|"),[a,o,s,l,c,u]=i,h=i.filter(t=>void 0!==t).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(e),n);let o=(t=>{let[e="",...r]=t.split("|"),[n="",i]=e.split(":"),[a,o]=n.split("?");return{k:a,i:i,n:""===o,f:r}})(e);return n=o.k||n,r||(r=n),o}).map(t=>{if("string"==typeof t)return t;t.k||(t.k=r||"0");let n=Object.fromEntries(Object.keys(t).map(e=>{let r=t[e];return[e,Array.isArray(r)?r.map(t=>null==t?void 0:t.trim()):!!r===r?r:null==r?void 0:r.trim()]}));return e?Object.fromEntries(Object.entries(n).map(([t,e])=>"i"!==t&&e&&"0"!=e&&[t,e]).filter(Boolean)):n}))(t)),h=(c=e[0])&&"object"==typeof c&&c.constructor===Object,p=1===e.length&&h?c:e,s.map(t=>{if("string"==typeof t)return t;let{k:e="0",f:i=[]}=t,s=p[e];if(t.o||t.r)return(("boolean"==typeof s?s?t.o:t.r:((t,{z:e,o:r,t:n,f:i,m:a,r:o},s)=>{switch(e&&0==s?"zero":t.select(s)){case"zero":return e;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,t,s))||"").replace(o,s);let l=i.length?i.reduce((t,e)=>{var i,o,s,l;return null!=(o=e.match(n)?null!=(l=(s=Object.fromEntries(a(e).split(",").map(t=>t.split(":")).reduce((t,e)=>2===e.length?[...t,e.map(t=>t.trim())]:(t[t.length-1][1]+=","+e[0],t),[])))[t])?l:s["*"]:null==(i=r[e])?void 0:i.call(r,t))?o:t},s):s;return(""+(null!=l?l:"")).trim()}).join("")}))}let l=(t={},e)=>"string"==typeof t?e.bind(null,t):Object.assign(Object.defineProperty(()=>"","name",{writable:!0}),t),c=(t,e)=>new Proxy(l(t,e),{get:(t,r)=>r===Symbol.iterator?[][Symbol.iterator].bind(Object.values(t).map(t=>l(t,e))):c(t[r],e)})},85469(t,e,r){function n(t){return!t||"object"!=typeof t&&"function"!=typeof t}var i=()=>(t,e)=>(function t(){var e=[].slice.call(arguments),r=!1;"boolean"==typeof e[0]&&(r=e.shift());var i=e[0];if(n(i))throw Error("extendee must be an object");for(var a=e.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]=t(!0,Object.prototype.hasOwnProperty.call(i,c)&&!n(i[c])?i[c]:p,h)}else i[c]=h}}return i})({},t,e);i(),r.d(e,{m:()=>i})},62534(t,e,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(t){var e=!(a&&t.metaKey&&t.shiftKey&&!t.ctrlKey&&!t.altKey||o&&t.shiftKey&&t.key&&1==t.key.length||"Unidentified"==t.key)&&t.key||(t.shiftKey?i:n)[t.keyCode]||t.key||"Unidentified";return"Esc"==e&&(e="Escape"),"Del"==e&&(e="Delete"),"Left"==e&&(e="ArrowLeft"),"Up"==e&&(e="ArrowUp"),"Right"==e&&(e="ArrowRight"),"Down"==e&&(e="ArrowDown"),e}r.d(e,{BN:()=>i,E3:()=>n,xT:()=>c})},62454(t,e,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(t,e){return t[e]=!0,t},{ignore:!1}),g={},A=new a.Ay(0,0,0,0),y=[],v=function(){function t(t){this.id=(0,l.Os)(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return t.prototype._init=function(t){this.attr(t)},t.prototype.drift=function(t,e,r){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=t,n[5]+=e,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var r=this.textConfig,n=r.local,i=e.innerTransformable,o=void 0,l=void 0,c=!1;i.parent=n?this:null;var u=!1;i.copyTransform(e);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,N=void 0,L=void 0;w&&this.canBeInsideText()?(O=r.insideFill,N=r.insideStroke,(null==O||"auto"===O)&&(O=this.getInsideTextFill()),(null==N||"auto"===N)&&(N=this.getInsideTextStroke(O),L=!0)):(O=r.outsideFill,N=r.outsideStroke,(null==O||"auto"===O)&&(O=this.getOutsideFill()),(null==N||"auto"===N)&&(N=this.getOutsideStroke(O),L=!0)),((O=O||"#000")!==M.fill||N!==M.stroke||L!==M.autoStroke||o!==M.align||l!==M.verticalAlign)&&(c=!0,M.fill=O,M.stroke=N,M.autoStroke=L,M.align=o,M.verticalAlign=l,e.setDefaultTextStyle(M)),e.__dirty|=h.M,c&&e.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(t){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?c.el:c._S},t.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),r="string"==typeof e&&(0,u.qg)(e);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")},t.prototype.traverse=function(t,e){},t.prototype.attrKV=function(t,e){"textConfig"===t?this.setTextConfig(e):"textContent"===t?this.setTextContent(e):"clipPath"===t?this.setClipPath(e):"extra"===t?(this.extra=this.extra||{},(0,l.X$)(this.extra,e)):this[t]=e},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(t,e){if("string"==typeof t)this.attrKV(t,e);else if((0,l.Gv)(t))for(var r=(0,l.HP)(t),n=0;n<r.length;n++){var i=r[n];this.attrKV(i,t[i])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=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?e[a]:e;n.saveTo(o)}}},t.prototype._innerSaveToNormal=function(t){var e=this._normalState;e||(e=this._normalState={}),t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,f)},t.prototype._savePrimaryToNormal=function(t,e,r){for(var n=0;n<r.length;n++){var i=r[n];null==t[i]||i in e||(e[i]=this[i])}},t.prototype.hasState=function(){return this.currentStates.length>0},t.prototype.getState=function(t){return this.states[t]},t.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},t.prototype.clearStates=function(t){this.useState(d,!1,t)},t.prototype.useState=function(t,e,r,n){var i,a=t===d;if(this.hasState()||!a){var o=this.currentStates,s=this.stateTransition;if(!((0,l.qh)(o,t)>=0)||!e&&1!==o.length){if(this.stateProxy&&!a&&(i=this.stateProxy(t)),i||(i=this.states&&this.states[t]),!i&&!a)return void(0,l.vV)("State "+t+" not exists.");a||this.saveCurrentToNormalState(i);var c=this._textContent,u=x(this,c,i,n);u&&!this.__inHover&&(this.__inHover=u),this._applyStateObj(t,i,this._normalState,e,S(this,r,s),s);var p=this._textGuide;return c&&c.useState(t,e,r,!!u),p&&p.useState(t,e,r,!!u),a?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!u&&this.__inHover&&(this.__inHover=0,this.__dirty&=~h.M),i}}},t.prototype.useStates=function(t,e,r){if(t.length){var n=[],i=this.currentStates,a=t.length,o=a===i.length;if(o){for(var s=0;s<a;s++)if(t[s]!==i[s]){o=!1;break}}if(!o){for(var s=0;s<a;s++){var l=t[s],c=void 0;this.stateProxy&&(c=this.stateProxy(l,t)),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(t.join(","),f,this._normalState,!1,S(this,e,m),m);var g=this._textGuide;p&&p.useStates(t,e,!!d),g&&g.useStates(t,e,!!d),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!d&&this.__inHover&&(this.__inHover=0,this.__dirty&=~h.M)}}else this.clearStates()},t.prototype.isSilent=function(){for(var t=this;t;){if(t.silent)return!0;var e=t.__hostTarget;t=e?t.ignoreHostSilent?null:e:t.parent}return!1},t.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},t.prototype.removeState=function(t){var e=(0,l.qh)(this.currentStates,t);if(e>=0){var r=this.currentStates.slice();r.splice(e,1),this.useStates(r)}},t.prototype.replaceState=function(t,e,r){var n=this.currentStates.slice(),i=(0,l.qh)(n,t),a=(0,l.qh)(n,e)>=0;i>=0?a?n.splice(i,1):n[i]=e:r&&!a&&n.push(e),this.useStates(n)},t.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},t.prototype._mergeStates=function(t){for(var e,r={},n=0;n<t.length;n++){var i=t[n];(0,l.X$)(r,i),i.textConfig&&(e=e||{},(0,l.X$)(e,i.textConfig))}return e&&(r.textConfig=e),r},t.prototype._applyStateObj=function(t,e,r,n,i,a){if(1!==this.__inHover){var o=!(e&&n);e&&e.textConfig?(this.textConfig=(0,l.X$)({},n?this.textConfig:r.textConfig),(0,l.X$)(this.textConfig,e.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];e&&null!=e[h]?p?(c=!0,s[h]=e[h]):this[h]=e[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?(e||r)[g]:e||r)}c&&this._transitionState(t,s,a)}},t.prototype._attachComponent=function(t){if((!t.__zr||t.__hostTarget)&&t!==this){var e=this.__zr;e&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this}},t.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},t.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(t){var e=this._textContent;e!==t&&(e&&e!==t&&this.removeTextContent(),t.innerTransformable=new n.Ay,this._attachComponent(t),this._textContent=t,this.markRedraw())},t.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),(0,l.X$)(this.textConfig,t),this.markRedraw()},t.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},t.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},t.prototype.getTextGuideLine=function(){return this._textGuide},t.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},t.prototype.markRedraw=function(){this.__dirty|=h.M;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var e=this.animators;if(e)for(var r=0;r<e.length;r++)t.animation.addAnimator(e[r]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},t.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var e=this.animators;if(e)for(var r=0;r<e.length;r++)t.animation.removeAnimator(e[r]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},t.prototype.animate=function(t,e,r){var n=t?this[t]:this,a=new i.A(n,e,r);return t&&(a.targetName=t),this.addAnimator(a,t),a},t.prototype.addAnimator=function(t,e){var r=this.__zr,n=this;t.during(function(){n.updateDuringAnimation(e)}).done(function(){var e=n.animators,r=(0,l.qh)(e,t);r>=0&&e.splice(r,1)}),this.animators.push(t),r&&r.animation.addAnimator(t),r&&r.wakeUp()},t.prototype.updateDuringAnimation=function(t){this.markRedraw()},t.prototype.stopAnimation=function(t,e){for(var r=this.animators,n=r.length,i=[],a=0;a<n;a++){var o=r[a];t&&t!==o.scope?i.push(o):o.stop(e)}return this.animators=i,this},t.prototype.animateTo=function(t,e,r){R(this,t,e,r)},t.prototype.animateFrom=function(t,e,r){R(this,t,e,r,!0)},t.prototype._transitionState=function(t,e,r,n){for(var i=R(this,e,r,n),a=0;a<i.length;a++)i[a].__fromStateTransition=t},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.initDefaultProps=function(){var e=t.prototype;function r(t,r,n,i){Object.defineProperty(e,t,{get:function(){return this[r]||a(this,this[r]=[]),this[r]},set:function(t){this[n]=t[0],this[i]=t[1],this[r]=t,a(this,t)}});function a(t,e){Object.defineProperty(e,0,{get:function(){return t[n]},set:function(e){t[n]=e}}),Object.defineProperty(e,1,{get:function(){return t[i]},set:function(e){t[i]=e}})}}e.type="element",e.name="",e.ignore=e.silent=e.ignoreHostSilent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=!1,e.__inHover=0,e.__dirty=h.M,Object.defineProperty&&(r("position","_legacyPos","x","y"),r("scale","_legacyScale","scaleX","scaleY"),r("origin","_legacyOrigin","originX","originY"))}(),t}();function R(t,e,r,n,a){var o=[];!function t(e,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=e.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,e.updateDuringAnimation(r));continue}t(e,R,n[R],x,o,s&&s[R],c,u)}else u||(n[R]=x,e.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(t){var e,r;return!((e=a[t])===(r=n[t])||(0,l.Xj)(e)&&(0,l.Xj)(r)&&function(t,e){var r=t.length;if(r!==e.length)return!1;for(var n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}(e,r))})).length),M>0||o.force&&!c.length){var N=void 0,L=void 0,_=void 0;if(u){L={},m&&(N={});for(var S=0;S<M;S++){var R=y[S];L[R]=n[R],m?N[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(t,e,r){if((0,l.Xj)(e[r]))if((0,l.Xj)(t[r])||(t[r]=[]),(0,l.iu)(e[r])){var n=e[r].length;t[r].length!==n&&(t[r]=new e[r].constructor(n),b(t[r],e[r],n))}else{var i=e[r],a=t[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 t[r]=e[r]}(n,a,R)}}var w=new i.A(n,!1,!1,f?(0,l.pb)(A,function(t){return t.targetName===r}):null);w.targetName=r,o.scope&&(w.scope=o.scope),m&&N&&w.whenWithKeys(0,N,y),_&&w.whenWithKeys(0,_,y),w.whenWithKeys(null==p?500:p,u?L:a,y).delay(d||0),e.addAnimator(w,r),c.push(w)}}(t,"",t,e,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(t,e){r.during(e)});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(t,e,r){for(var n=0;n<r;n++)t[n]=e[n]}function x(t,e,r,n){return!(r&&r.hoverLayer||n)||M(t)||e&&M(e)?0:1}function M(t){return"text"===t.type||"tspan"===t.type}function S(t,e,r){return!e&&!t.__inHover&&r&&r.duration>0}(0,l.co)(v,o.A),(0,l.co)(v,n.Ay),e.Ay=v,r.d(e,{yx:()=>1})},18565(t,e,r){r.d(e,{F:()=>d,A:()=>v});var n={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return .5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,r=.1;return 0===t?0:1===t?1:(!r||r<1?(r=1,e=.1):e=.4*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(t-=1))*Math.sin(2*Math.PI*(t-e)/.4)))},elasticOut:function(t){var e,r=.1;return 0===t?0:1===t?1:(!r||r<1?(r=1,e=.1):e=.4*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*t)*Math.sin(2*Math.PI*(t-e)/.4)+1)},elasticInOut:function(t){var e,r=.1;return 0===t?0:1===t?1:(!r||r<1?(r=1,e=.1):e=.4*Math.asin(1/r)/(2*Math.PI),(t*=2)<1)?-.5*(r*Math.pow(2,10*(t-=1))*Math.sin(2*Math.PI*(t-e)/.4)):r*Math.pow(2,-10*(t-=1))*Math.sin(2*Math.PI*(t-e)/.4)*.5+1},backIn:function(t){return t*t*(2.70158*t-1.70158)},backOut:function(t){return--t*t*(2.70158*t+1.70158)+1},backInOut:function(t){return(t*=2)<1?t*t*(3.5949095*t-2.5949095)*.5:.5*((t-=2)*t*(3.5949095*t+2.5949095)+2)},bounceIn:function(t){return 1-n.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*n.bounceIn(2*t):.5*n.bounceOut(2*t-1)+.5}},i=r(98026),a=r(96320),o=function(){function t(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||i.lQ,this.ondestroy=t.ondestroy||i.lQ,this.onrestart=t.onrestart||i.lQ,t.easing&&this.setEasing(t.easing)}return t.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=e;return}var r=this._life,n=t-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=t-n%r,this._pausedTime=0,this.onrestart();return!1},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(t){this.easing=t,this.easingFunc=(0,i.Tn)(t)?t:n[t]||(0,a.w)(t)},t}(),s=r(47698),l=r(3455),c=Array.prototype.slice;function u(t,e,r,n){for(var i,a=e.length,o=0;o<a;o++)t[o]=(i=e[o],(r[o]-i)*n+i);return t}function h(t,e,r,n){for(var i=e.length,a=0;a<i;a++)t[a]=e[a]+r[a]*n;return t}function p(t,e,r,n){for(var i=e.length,a=i&&e[0].length,o=0;o<i;o++){t[o]||(t[o]=[]);for(var s=0;s<a;s++)t[o][s]=e[o][s]+r[o][s]*n}return t}function d(t){if((0,i.Xj)(t)){var e=t.length;if((0,i.Xj)(t[0])){for(var r=[],n=0;n<e;n++)r.push(c.call(t[n]));return r}return c.call(t)}return t}function f(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=null==t[3]?1:t[3],"rgba("+t.join(",")+")"}function m(t){return 4===t||5===t}function g(t){return 1===t||2===t}var A=[0,0,0,0],y=function(){function t(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(t,e,r){this._needsSort=!0;var o=this.keyframes,c=o.length,u=!1,h=6,p=e;if((0,i.Xj)(e)){var d=(0,i.Xj)(e&&e[0])?2:1;h=d,(1!==d||(0,i.Et)(e[0]))&&(2!==d||(0,i.Et)(e[0][0]))||(u=!0)}else if((0,i.Et)(e)&&!(0,i.Yp)(e))h=0;else if((0,i.Kg)(e))if(isNaN(+e)){var f=s.qg(e);f&&(p=f,h=3)}else h=0;else if((0,i.C7)(e)){var m=(0,i.X$)({},p);m.colorStops=(0,i.Tj)(e.colorStops,function(t){return{offset:t.offset,color:s.qg(t.color)}}),(0,l.OS)(e)?h=4:(0,l.OH)(e)&&(h=5),p=m}0===c?this.valType=h:(h!==this.valType||6===h)&&(u=!0),this.discrete=this.discrete||u;var g={time:t,value:p,rawValue:e,percent:0};return r&&(g.easing=r,g.easingFunc=(0,i.Tn)(r)?r:n[r]||(0,a.w)(r)),o.push(g),g},t.prototype.prepare=function(t,e){var r=this.keyframes;this._needsSort&&r.sort(function(t,e){return t.time-e.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/t,!o&&(s&&u!==i-1?function(t,e,r){if(t.push&&e.push){var n=t.length,i=e.length;if(n!==i)if(n>i)t.length=i;else for(var a=n;a<i;a++)t.push(1===r?e[a]:c.call(e[a]));for(var o=t[0]&&t[0].length,a=0;a<t.length;a++)if(1===r)isNaN(t[a])&&(t[a]=e[a]);else for(var s=0;s<o;s++)isNaN(t[a][s])&&(t[a][s]=e[a][s])}}(f,A,n):l&&function(t,e){for(var r=t.length,n=e.length,i=r>n?e:t,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&&e&&this.needsAnimate()&&e.needsAnimate()&&n===e.valType&&!e._finished){this._additiveTrack=e;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))}},t.prototype.step=function(t,e){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(e<0)r=0;else if(e<this._lastFrP){for(r=v(y+1,h-1);r>=0&&!(c[r].percent<=e);r--);r=v(r,h-2)}else{for(r=y;r<h&&!(c[r].percent>e);r++);r=v(r-1,h-2)}a=c[r+1],n=c[r]}if(n&&a){this._lastFr=r,this._lastFrP=e;var R=a.percent-n.percent,b=0===R?1:v((e-n.percent)/R,1);a.easingFunc&&(b=a.easingFunc(b));var x=o?this._additiveValue:d?A:t[p];if((g(l)||d)&&!x&&(x=this._additiveValue=[]),this.discrete)t[p]=b<1?n.rawValue:a.rawValue;else if(g(l))1===l?u(x,n[s],a[s],b):function(t,e,r,n){for(var i=e.length,a=i&&e[0].length,o=0;o<i;o++){t[o]||(t[o]=[]);for(var s,l=0;l<a;l++)t[o][l]=(s=e[o][l],(r[o][l]-s)*n+s)}}(x,n[s],a[s],b);else if(m(l)){var M,S,w,O,N,L=n[s],_=a[s],T=4===l;(t[p]={type:T?"linear":"radial",x:(M=L.x,(_.x-M)*b+M),y:(S=L.y,(_.y-S)*b+S),colorStops:(0,i.Tj)(L.colorStops,function(t,e){var r,n=_.colorStops[e];return{offset:(r=t.offset,(n.offset-r)*b+r),color:f(u([],t.color,n.color,b))}}),global:_.global},T)?(t[p].x2=(w=L.x2,(_.x2-w)*b+w),t[p].y2=(O=L.y2,(_.y2-O)*b+O)):t[p].r=(N=L.r,(_.r-N)*b+N)}else if(d)u(x,n[s],a[s],b),o||(t[p]=f(x));else{var P,I=(P=n[s],(a[s]-P)*b+P);o?this._additiveValue=I:t[p]=I}o&&this._addToTarget(t)}}},t.prototype._addToTarget=function(t){var e=this.valType,r=this.propName,n=this._additiveValue;0===e?t[r]=t[r]+n:3===e?(s.qg(t[r],A),h(A,A,n,1),t[r]=f(A)):1===e?h(t[r],t[r],n,1):2===e&&p(t[r],t[r],n,1)},t}(),v=function(){function t(t,e,r,n){(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&n)?(0,i.vV)("Can' use additive animation on looped animation."):(this._additiveAnimators=n,this._allowDiscrete=r)}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(t){this._target=t},t.prototype.when=function(t,e,r){return this.whenWithKeys(t,e,(0,i.HP)(e),r)},t.prototype.whenWithKeys=function(t,e,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;t>0&&s.addKeyframe(0,d(l),n),this._trackKeys.push(o)}s.addKeyframe(t,d(e[o]),n)}return this._maxTime=Math.max(this._maxTime,t),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,r=0;r<e;r++)t[r].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var r=0;r<e.length;r++)e[r].call(this)},t.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,r=0;r<e.length;r++)t[e[r]].setFinished()},t.prototype._getAdditiveTrack=function(t){var e,r=this._additiveAnimators;if(r)for(var n=0;n<r.length;n++){var i=r[n].getTrack(t);i&&(e=i)}return e},t.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var e=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&&(e._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(t){e._started=2;var n=e._additiveAnimators;if(n){for(var i=!1,a=0;a<n.length;a++)if(n[a]._clip){i=!0;break}i||(e._additiveAnimators=null)}for(var a=0;a<r.length;a++)r[a].step(e._target,t);var o=e._onframeCbs;if(o)for(var a=0;a<o.length;a++)o[a](e._target,t)},ondestroy:function(){e._doneCallback()}});this._clip=p,this.animation&&this.animation.addClip(p),t&&p.setEasing(t)}else this._doneCallback();return this}},t.prototype.stop=function(t){if(this._clip){var e=this._clip;t&&e.onframe(1),this._abortedCallback()}},t.prototype.delay=function(t){return this._delay=t,this},t.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},t.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},t.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(t){return this._tracks[t]},t.prototype.getTracks=function(){var t=this;return(0,i.Tj)(this._trackKeys,function(e){return t._tracks[e]})},t.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var r=this._tracks,n=this._trackKeys,i=0;i<t.length;i++){var a=r[t[i]];a&&!a.isFinished()&&(e?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},t.prototype.saveTo=function(t,e,r){if(t){e=e||this._trackKeys;for(var n=0;n<e.length;n++){var i=e[n],a=this._tracks[i];if(!(!a||a.isFinished())){var o=a.keyframes,s=o[r?0:o.length-1];s&&(t[i]=d(s.rawValue))}}}},t.prototype.__changeFinalValue=function(t,e){e=e||(0,i.HP)(t);for(var r=0;r<e.length;r++){var n=e[r],a=this._tracks[n];if(a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,t[n]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},t}()},96320(t,e,r){var n=r(89259),i=r(98026),a=/cubic-bezier\(([0-9,\.e ]+)\)/;function o(t){var e=t&&a.exec(t);if(e){var r=e[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(t){return t<=0?0:t>=1?1:(0,n._E)(0,o,l,1,t,u)&&(0,n.Yb)(0,s,c,1,u[0])}}}r.d(e,{w:()=>o})},45825(t,e,r){e.A=r(38123).A.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)}},76050(t,e,r){var n=r(98026);function i(t){var e,r,i=t.style,a=i.lineDash&&i.lineWidth>0&&(e=i.lineDash,r=i.lineWidth,e&&"solid"!==e&&r>0?"dashed"===e?[4*r,2*r]:"dotted"===e?[r]:(0,n.Et)(e)?[e]:(0,n.cy)(e)?e:null:null),o=i.lineDashOffset;if(a){var s=i.strokeNoScale&&t.getLineScale?t.getLineScale():1;s&&1!==s&&(a=(0,n.Tj)(a,function(t){return t/s}),o/=s)}return[a,o]}r.d(e,{V:()=>i})},29571(t,e,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(t){var e=t.stroke;return null!=e&&"none"!==e&&t.lineWidth>0}function g(t){return"string"==typeof t&&"none"!==t}function A(t){var e=t.fill;return null!=e&&"none"!==e}function y(t,e){if(null!=e.fillOpacity&&1!==e.fillOpacity){var r=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=r}else t.fill()}function v(t,e){if(null!=e.strokeOpacity&&1!==e.strokeOpacity){var r=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=r}else t.stroke()}function R(t,e,r){var n=(0,a.OD)(e.image,e.__image,r);if((0,a.xA)(n)){var i=t.createPattern(n,e.repeat||"repeat");if("function"==typeof DOMMatrix&&i&&i.setTransform){var o=new DOMMatrix;o.translateSelf(e.x||0,e.y||0),o.rotateSelf(0,0,(e.rotation||0)*u.lI),o.scaleSelf(e.scaleX||1,e.scaleY||1),i.setTransform(o)}return i}}var b=["shadowBlur","shadowOffsetX","shadowOffsetY"],x=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function M(t,e,r,i,a){var o=!1;if(!i&&e===(r=r||{}))return!1;if(i||e.opacity!==r.opacity){O(t,a),o=!0;var s=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(s)?n.oN.opacity:s}(i||e.blend!==r.blend)&&(o||(O(t,a),o=!0),t.globalCompositeOperation=e.blend||n.oN.blend);for(var l=0;l<b.length;l++){var c=b[l];(i||e[c]!==r[c])&&(o||(O(t,a),o=!0),t[c]=t.dpr*(e[c]||0))}return(i||e.shadowColor!==r.shadowColor)&&(o||(O(t,a),o=!0),t.shadowColor=e.shadowColor||n.oN.shadowColor),o}function S(t,e,r,n,i){var a=e.style,o=n?null:r&&r.style||{};if(a===o)return!1;var s=M(t,a,o,n,i);if((n||a.fill!==o.fill)&&(s||(O(t,i),s=!0),g(a.fill)&&(t.fillStyle=a.fill)),(n||a.stroke!==o.stroke)&&(s||(O(t,i),s=!0),g(a.stroke)&&(t.strokeStyle=a.stroke)),(n||a.opacity!==o.opacity)&&(s||(O(t,i),s=!0),t.globalAlpha=null==a.opacity?1:a.opacity),e.hasStroke()){var l=a.lineWidth/(a.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==l&&(s||(O(t,i),s=!0),t.lineWidth=l)}for(var c=0;c<x.length;c++){var u=x[c],h=u[0];(n||a[h]!==o[h])&&(s||(O(t,i),s=!0),t[h]=a[h]||u[1])}return s}function w(t,e){var r=e.transform,n=t.dpr||1;r?t.setTransform(n*r[0],n*r[1],n*r[2],n*r[3],n*r[4],n*r[5]):t.setTransform(n,0,0,n,0,0)}function O(t,e){e.batchFill&&(e.batchFill=!1,t.fill()),e.batchStroke&&(e.batchStroke=!1,t.stroke())}function N(t,e){var r={inHover:!1,viewWidth:0,viewHeight:0,beforeBrushParam:{}};L(t,e,r),_(t,r)}function L(t,e,r){var n,i=e.transform;if(!e.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){e.__dirty&=~p.M,e.__isRendered=!1;return}var u=e.__clipPaths,g=r.prevElClipPaths,b=e.style,x=!1,N=!1;if((!g||(0,o.KU)(u,g))&&(g&&(O(t,r),t.restore(),N=x=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),u&&u.length)){O(t,r),t.save();for(var T=!1,P=0;P<u.length;P++){var I=u[P];T=T||I.isZeroArea(),w(t,I),t.beginPath(),I.buildPath(t,I.shape),t.clip()}r.allClipped=T,x=!0,r.prevElClipPaths=u}if(r.allClipped){e.__dirty&=~p.M,e.__isRendered=!1;return}e.beforeBrush&&e.beforeBrush(r.beforeBrushParam),e.innerBeforeBrush();var C=r.prevEl;C||(N=x=!0);var k=e instanceof s.Ay&&e.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=C.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(t,r):(O(t,r),w(t,e)),e instanceof s.Ay)1!==r.lastDrawType&&(N=!0,r.lastDrawType=1),S(t,e,C,N,r),k&&(r.batchFill||r.batchStroke)||t.beginPath(),function(t,e,r,n,i){var a,s,l,c=m(r),u=A(r),d=r.strokePercent,g=d<1,b=!e.path;(!e.silent||g)&&b&&e.createPathProxy();var x=e.path||f,M=e.__dirty;if(!n){var S=r.fill,w=r.stroke,O=u&&!!S.colorStops,N=c&&!!w.colorStops,L=u&&!!S.image,_=c&&!!w.image,T=void 0,P=void 0,I=void 0,C=void 0,k=void 0;(O||N)&&(k=e.getBoundingRect()),O&&(T=M?(0,o.Ff)(t,S,k):e.__canvasFillGradient,e.__canvasFillGradient=T),N&&(P=M?(0,o.Ff)(t,w,k):e.__canvasStrokeGradient,e.__canvasStrokeGradient=P),L&&(I=M||!e.__canvasFillPattern?R(t,S,e):e.__canvasFillPattern,e.__canvasFillPattern=I),_&&(C=M||!e.__canvasStrokePattern?R(t,w,e):e.__canvasStrokePattern,e.__canvasStrokePattern=C),O?t.fillStyle=T:L&&(I?t.fillStyle=I:u=!1),N?t.strokeStyle=P:_&&(C?t.strokeStyle=C:c=!1)}var F=e.getGlobalScale();x.setScale(F[0],F[1],e.segmentIgnoreThreshold),t.setLineDash&&r.lineDash&&(s=(a=(0,h.V)(e))[0],l=a[1]);var X=!0;(b||M&p.Dl)&&(x.setDPR(t.dpr),g?x.setContext(null):(x.setContext(t),X=!1),x.reset(),e.buildPath(x,e.shape,n),x.toStatic(),e.pathUpdated()),X&&x.rebuildPath(t,g?d:1),s&&(t.setLineDash(s),t.lineDashOffset=l),n?(i.batchFill=u,i.batchStroke=c):r.strokeFirst?(c&&v(t,r),u&&y(t,r)):(u&&y(t,r),c&&v(t,r)),s&&t.setLineDash([])}(t,e,b,k,r);else if(e instanceof c.A){3!==r.lastDrawType&&(N=!0,r.lastDrawType=3),S(t,e,C,N,r);var F,X,U,W,V=b.text;if(null!=V&&(V+=""),V){t.font=b.font||d.OH,t.textAlign=b.textAlign,t.textBaseline=b.textBaseline;var E=void 0,Y=void 0;t.setLineDash&&b.lineDash&&(E=(W=(0,h.V)(e))[0],Y=W[1]),E&&(t.setLineDash(E),t.lineDashOffset=Y),b.strokeFirst?(m(b)&&t.strokeText(V,b.x,b.y),A(b)&&t.fillText(V,b.x,b.y)):(A(b)&&t.fillText(V,b.x,b.y),m(b)&&t.strokeText(V,b.x,b.y)),E&&t.setLineDash([])}}else e instanceof l.Ay?(2!==r.lastDrawType&&(N=!0,r.lastDrawType=2),n=N,M(t,e.style,C&&C.style,n,r),function(t,e,r){var n=e.__image=(0,a.OD)(r.image,e.__image,e,e.onload);if(n&&(0,a.xA)(n)){var i=r.x||0,o=r.y||0,s=e.getWidth(),l=e.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;t.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;t.drawImage(n,u,h,p,d,i,o,s,l)}else t.drawImage(n,i,o,s,l)}}(t,e,b)):e.getTemporalDisplayables&&(4!==r.lastDrawType&&(N=!0,r.lastDrawType=4),function(t,e,r){var n,i,a=e.getDisplayables(),o=e.getTemporalDisplayables();t.save();var s={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover,beforeBrushParam:{}};for(n=e.getCursor(),i=a.length;n<i;n++){var l=a[n];l.beforeBrush&&l.beforeBrush(r.beforeBrushParam),l.innerBeforeBrush(),L(t,l,s),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}_(t,s);for(var c=0,u=o.length;c<u;c++){var l=o[c];l.beforeBrush&&l.beforeBrush(r.beforeBrushParam),l.innerBeforeBrush(),L(t,l,s),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}_(t,s),e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}(t,e,r));e.innerAfterBrush(),e.afterBrush&&(k&&O(t,r),e.afterBrush()),r.prevEl=e,e.__dirty=0,e.__isRendered=!0}function _(t,e){O(t,e),e.prevElClipPaths&&t.restore()}r.d(e,{V$:()=>L,Xi:()=>N,ZQ:()=>R,v6:()=>_})},53479(t,e,r){function n(t){return isFinite(t)}function i(t,e,r){for(var i,a,o,s,l,c,u,h,p,d,f="radial"===e.type?(o=Math.min(i=r.width,a=r.height),s=null==e.x?.5:e.x,l=null==e.y?.5:e.y,c=null==e.r?.5:e.r,e.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,t.createRadialGradient(s,l,0,s,l,c)):(u=null==e.x?0:e.x,h=null==e.x2?1:e.x2,p=null==e.y?0:e.y,d=null==e.y2?0:e.y2,e.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,t.createLinearGradient(u,p,h,d)),m=e.colorStops,g=0;g<m.length;g++)f.addColorStop(m[g].offset,m[g].color);return f}function a(t,e){if(t===e||!t&&!e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var r=0;r<t.length;r++)if(t[r]!==e[r])return!0;return!1}function o(t){return parseInt(t,10)}function s(t,e,r){var n=["width","height"][e],i=["clientWidth","clientHeight"][e],a=["paddingLeft","paddingTop"][e],s=["paddingRight","paddingBottom"][e];if(null!=r[n]&&"auto"!==r[n])return parseFloat(r[n]);var l=document.defaultView.getComputedStyle(t);return(t[i]||o(l[n])||o(t.style[n]))-(o(l[a])||0)-(o(l[s])||0)||0}r.d(e,{Ff:()=>i,KU:()=>a,YC:()=>s})},73098(t,e,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(e,{Y5:()=>a,_S:()=>"#333",el:()=>"#ccc",ps:()=>.4,tY:()=>"#eee"})},45558(t,e,r){var n,i=r(29308),a=r(60501),o=r(59741);function s(t){n||(n=new a.Ay(100)),t=t||o.OH;var e=n.get(t);return e||(e={font:t,strWidthCache:new a.Ay(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:o.yh.measureText("国",t).width,asciiCharWidth:o.yh.measureText("a",t).width},n.put(t,e)),e}var l=0;function c(t,e){return t.asciiWidthMapTried||(t.asciiWidthMap=function(t){if(!(l>=5)){t=t||o.OH;for(var e=[],r=+new Date,n=0;n<=127;n++)e[n]=o.yh.measureText(String.fromCharCode(n),t).width;var i=new Date-r;return i>16?l=5:i>2&&l++,e}}(t.font),t.asciiWidthMapTried=!0),0<=e&&e<=127?null!=t.asciiWidthMap?t.asciiWidthMap[e]:t.asciiCharWidth:t.stWideCharWidth}function u(t,e){var r=t.strWidthCache,n=r.get(e);return null==n&&(n=o.yh.measureText(e,t.font).width,r.put(e,n)),n}function h(t,e,r,n){var a=u(s(e),t),o=m(e),l=d(0,a,r),c=f(0,o,n);return new i.Ay(l,c,a,o)}function p(t,e,r,n){var a=((t||"")+"").split("\n");if(1===a.length)return h(a[0],e,r,n);for(var o=new i.Ay(0,0,0,0),s=0;s<a.length;s++){var l=h(a[s],e,r,n);0===s?o.copy(l):o.union(l)}return o}function d(t,e,r,n){return"right"===r?n?t+=e:t-=e:"center"===r&&(n?t+=e/2:t-=e/2),t}function f(t,e,r,n){return"middle"===r?n?t+=e/2:t-=e/2:"bottom"===r&&(n?t+=e:t-=e),t}function m(t){return s(t).stWideCharWidth}function g(t,e){return"string"==typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function A(t,e,r){var n=e.position||"inside",i=null!=e.distance?e.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(t=t||{}).x=l,t.y=c,t.align=u,t.verticalAlign=h,t}r.d(e,{JK:()=>c,NO:()=>p,Qw:()=>s,X4:()=>A,ks:()=>m,l8:()=>u,ll:()=>d,lo:()=>g,sZ:()=>f})},29308(t,e,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=N(),g=m.minTv,A=m.maxTv,y=[0,0],v=function(){function t(t,e,r,n){R(this,t,e,r,n)}return t.set=function(t,e,r,n,i){return n<0&&(e+=n,n=-n),i<0&&(r+=i,i=-i),t.x=e,t.y=r,t.width=n,t.height=i,t},t.prototype.union=function(t){var e=o(t.x,this.x),r=o(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=s(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=s(t.y+t.height,this.y+this.height)-r:this.height=t.height,this.x=e,this.y=r},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(t){return x(n.vt(),this,t)},t.prototype.intersect=function(e,r,n){return t.intersect(this,e,r,n)},t.intersect=function(e,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),!e||!r)return!1;e instanceof t||(e=R(M,e.x,e.y,e.width,e.height)),r instanceof t||(r=R(S,r.x,r.y,r.width,r.height));var l=!!n;m.reset(i,l);var c=m.touchThreshold,u=e.x+c,h=e.x+e.width-c,p=e.y+c,d=e.y+e.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},t.contain=function(t,e,r){return e>=t.x&&e<=t.x+t.width&&r>=t.y&&r<=t.y+t.height},t.prototype.contain=function(e,r){return t.contain(this,e,r)},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(t){b(this,t)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return 0===this.width||0===this.height},t.create=function(e){return new t(e?e.x:0,e?e.y:0,e?e.width:0,e?e.height:0)},t.copy=function(t,e){return t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height,t},t.applyTransform=function(t,e,r){if(!r){t!==e&&b(t,e);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];t.x=e.x*n+a,t.y=e.y*i+l,t.width=e.width*n,t.height=e.height*i,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}h.x=d.x=e.x,h.y=f.y=e.y,p.x=f.x=e.x+e.width,p.y=d.y=e.y+e.height,h.transform(r),f.transform(r),p.transform(r),d.transform(r),t.x=o(h.x,p.x,d.x,f.x),t.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);t.width=c-t.x,t.height=u-t.y},t.calculateTransform=function(t,e,r){var a=r.width/e.width,o=r.height/e.height;return t=n.D_(t||[]),n.Tl(t,t,i.hZ(w,-e.x,-e.y)),n.hs(t,t,i.hZ(w,a,o)),n.Tl(t,t,i.hZ(w,r.x,r.y)),t},t}();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(t,e,r,n,i,a,h,p){var d=l(e-r),f=l(n-t),v=o(d,f),R=c[i],b=c[1-i],x=u[i];e<r||n<t?d<f?(a&&(A[R]=-d),p&&(h[R]=e,h[x]=0)):(a&&(A[R]=f),p&&(h[R]=t,h[x]=0)):(h&&(h[R]=s(t,r),h[x]=o(e,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 N(){var t=0,e=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),t=i.direction,n.bidirectional=null==i.bidirectional||!!i.bidirectional,n.bidirectional||e.set(Math.cos(t),Math.sin(t))))},calcDirMTV:function(){var a=n.minTv,o=n.dirMinTv,s=a.y*a.y+a.x*a.x,l=Math.sin(t),c=Math.cos(t),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||e.dot(r)>0)&&r.len()<o.len()&&o.copy(r)}};function i(t){return 1e-10>l(t)}return n}e.Ay=v,r.d(e,{bV:()=>N})},57861(t,e){e.A=function(){function t(t){t&&(this._$eventProcessor=t)}return t.prototype.on=function(t,e,r,n){this._$handlers||(this._$handlers={});var i=this._$handlers;if("function"==typeof e&&(n=r,r=e,e=null),!r||!t)return this;var a=this._$eventProcessor;null!=e&&a&&a.normalizeQuery&&(e=a.normalizeQuery(e)),i[t]||(i[t]=[]);for(var o=0;o<i[t].length;o++)if(i[t][o].h===r)return this;var s={h:r,query:e,ctx:n||this,callAtLast:r.zrEventfulCallAtLast},l=i[t].length-1,c=i[t][l];return c&&c.callAtLast?i[t].splice(l,0,s):i[t].push(s),this},t.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},t.prototype.off=function(t,e){var r=this._$handlers;if(!r)return this;if(!t)return this._$handlers={},this;if(e){if(r[t]){for(var n=[],i=0,a=r[t].length;i<a;i++)r[t][i].h!==e&&n.push(r[t][i]);r[t]=n}r[t]&&0===r[t].length&&delete r[t]}else delete r[t];return this},t.prototype.trigger=function(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];if(!this._$handlers)return this;var n=this._$handlers[t],i=this._$eventProcessor;if(n)for(var a=e.length,o=n.length,s=0;s<o;s++){var l=n[s];if(!i||!i.filter||null==l.query||i.filter(t,l.query))switch(a){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,e[0]);break;case 2:l.h.call(l.ctx,e[0],e[1]);break;default:l.h.apply(l.ctx,e)}}return i&&i.afterTrigger&&i.afterTrigger(t),this},t.prototype.triggerWithContext=function(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];if(!this._$handlers)return this;var n=this._$handlers[t],i=this._$eventProcessor;if(n)for(var a=e.length,o=e[a-1],s=n.length,l=0;l<s;l++){var c=n[l];if(!i||!i.filter||null==c.query||i.filter(t,c.query))switch(a){case 0:c.h.call(o);break;case 1:c.h.call(o,e[0]);break;case 2:c.h.call(o,e[0],e[1]);break;default:c.h.apply(o,e.slice(1,a-1))}}return i&&i.afterTrigger&&i.afterTrigger(t),this},t}()},60501(t,e){var r=function(t){this.value=t},n=function(){function t(){this._len=0}return t.prototype.insert=function(t){var e=new r(t);return this.insertEntry(e),e},t.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},t.prototype.remove=function(t){var e=t.prev,r=t.next;e?e.next=r:this.head=r,r?r.prev=e:this.tail=e,t.next=t.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}();e.Ay=function(){function t(t){this._list=new n,this._maxSize=10,this._map={},this._maxSize=t}return t.prototype.put=function(t,e){var n=this._list,i=this._map,a=null;if(null==i[t]){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=e:s=new r(e),s.key=t,n.insertEntry(s),i[t]=s}return a},t.prototype.get=function(t){var e=this._map[t],r=this._list;if(null!=e)return e!==r.tail&&(r.remove(e),r.insertEntry(e)),e.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}()},84716(t,e,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;e.A=function(){function t(t,e){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;t&&this.fromBoundingRect(t,e)}return t.prototype.fromBoundingRect=function(t,e){var r=this._corners,i=this._axes,a=t.x,o=t.y,s=a+t.width,l=o+t.height;if(r[0].set(a,o),r[1].set(s,o),r[2].set(s,l),r[3].set(a,l),e)for(var c=0;c<4;c++)r[c].transform(e);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])},t.prototype.intersect=function(t,e,r){var i=!0,a=!e;return(e&&n.A.set(e,0,0),u.reset(r,!a),!this._intersectCheckOneSide(this,t,a,1)&&(i=!1,a)||!this._intersectCheckOneSide(t,this,a,-1)&&(i=!1,a))?i:(a||u.negativeSize||n.A.copy(e,i?u.useDir?u.dirMinTv:h:p),i)},t.prototype._intersectCheckOneSide=function(t,e,r,i){for(var o=!0,d=0;d<2;d++){var f=t._axes[d];if(t._getProjMinMaxOnAxis(d,t._corners,l),t._getProjMinMaxOnAxis(d,e._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},t.prototype._getProjMinMaxOnAxis=function(t,e,r){for(var n=this._axes[t],i=this._origin,s=e[0].dot(n)+i[t],l=s,c=s,h=1;h<e.length;h++){var p=e[h].dot(n)+i[t];l=a(p,l),c=o(p,c)}r[0]=l+u.touchThreshold,r[1]=c-u.touchThreshold,u.negativeSize=r[1]<r[0]},t}()},15938(t,e,r){r.d(e,{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(t,e,r,n,i,a){i[0]=s(t,r),i[1]=s(e,n),a[0]=l(t,r),a[1]=l(e,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,N=Math.cos,L=Math.sin,_=Math.abs,T=Math.PI,P=2*T,I="u">typeof Float32Array,C=[];function k(t){return Math.round(t/T*1e8)/1e8%2*T}function F(t,e){var r=k(t[0]);r<0&&(r+=P);var n=r-t[0],i=t[1];i+=n,!e&&i-r>=P?i=r+P:e&&r-i>=P?i=r-P:!e&&r>i?i=r+(P-k(r-i)):e&&r<i&&(i=r-(P-k(i-r))),t[0]=r,t[1]=i}var X=function(){var t;function e(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(t,e,r){(r=r||0)>0&&(this._ux=_(r/a.Y5/t)||0,this._uy=_(r/a.Y5/e)||0)},e.prototype.setDPR=function(t){this.dpr=t},e.prototype.setContext=function(t){this._ctx=t},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(y.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},e.prototype.lineTo=function(t,e){var r=_(t-this._xi),n=_(e-this._yi),i=r>this._ux||n>this._uy;if(this.addData(y.L,t,e),this._ctx&&i&&this._ctx.lineTo(t,e),i)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var a=r*r+n*n;a>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=a)}return this},e.prototype.bezierCurveTo=function(t,e,r,n,i,a){return this._drawPendingPt(),this.addData(y.C,t,e,r,n,i,a),this._ctx&&this._ctx.bezierCurveTo(t,e,r,n,i,a),this._xi=i,this._yi=a,this},e.prototype.quadraticCurveTo=function(t,e,r,n){return this._drawPendingPt(),this.addData(y.Q,t,e,r,n),this._ctx&&this._ctx.quadraticCurveTo(t,e,r,n),this._xi=r,this._yi=n,this},e.prototype.arc=function(t,e,r,n,i,a){this._drawPendingPt(),C[0]=n,C[1]=i,F(C,a),n=C[0];var o=(i=C[1])-n;return this.addData(y.A,t,e,r,r,n,o,0,+!a),this._ctx&&this._ctx.arc(t,e,r,n,i,a),this._xi=N(i)*r+t,this._yi=L(i)*r+e,this},e.prototype.arcTo=function(t,e,r,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,r,n,i),this},e.prototype.rect=function(t,e,r,n){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,r,n),this.addData(y.R,t,e,r,n),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(y.Z);var t=this._ctx,e=this._x0,r=this._y0;return t&&t.closePath(),this._xi=e,this._yi=r,this},e.prototype.fill=function(t){t&&t.fill(),this.toStatic()},e.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(t){if(this._saveData){var e=t.length;!(this.data&&this.data.length===e)&&I&&(this.data=new Float32Array(e));for(var r=0;r<e;r++)this.data[r]=t[r];this._len=e}},e.prototype.appendPath=function(t){if(this._saveData){t instanceof Array||(t=[t]);for(var e=t.length,r=0,n=this._len,i=0;i<e;i++)r+=t[i].len();var a=this.data;if(I&&(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<e;i++)for(var s=t[i].data,o=0;o<s.length;o++)this.data[n++]=s[o];this._len=n}},e.prototype.addData=function(t,e,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]}},e.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,I&&this._len>11&&(this.data=new Float32Array(t)))}},e.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 t,e=this.data,r=0,a=0,v=0,R=0;for(t=0;t<this._len;){var w=e[t++],O=1===t;switch(O&&(r=e[t],a=e[t+1],v=r,R=a),w){case y.M:r=v=e[t++],a=R=e[t++],M[0]=v,M[1]=R,S[0]=v,S[1]=R;break;case y.L:m(r,a,e[t],e[t+1],M,S),r=e[t++],a=e[t++];break;case y.C:!function(t,e,r,n,i,a,c,u,h,p){var d=o.lX,f=o.Yb,m=d(t,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(t,r,i,c,g[y]);h[0]=s(v,h[0]),p[0]=l(v,p[0])}m=d(e,n,a,u,A);for(var y=0;y<m;y++){var R=f(e,n,a,u,A[y]);h[1]=s(R,h[1]),p[1]=l(R,p[1])}h[0]=s(t,h[0]),p[0]=l(t,p[0]),h[0]=s(c,h[0]),p[0]=l(c,p[0]),h[1]=s(e,h[1]),p[1]=l(e,p[1]),h[1]=s(u,h[1]),p[1]=l(u,p[1])}(r,a,e[t++],e[t++],e[t++],e[t++],e[t],e[t+1],M,S),r=e[t++],a=e[t++];break;case y.Q:!function(t,e,r,n,i,a,c,u){var h=o.gC,p=o.k3,d=l(s(h(t,r,i),1),0),f=l(s(h(e,n,a),1),0),m=p(t,r,i,d),g=p(e,n,a,f);c[0]=s(t,i,m),c[1]=s(e,a,g),u[0]=l(t,i,m),u[1]=l(e,a,g)}(r,a,e[t++],e[t++],e[t],e[t+1],M,S),r=e[t++],a=e[t++];break;case y.A:var _=e[t++],T=e[t++],P=e[t++],I=e[t++],C=e[t++],k=e[t++]+C;t+=1;var F=!e[t++];O&&(v=N(C)*P+_,R=L(C)*I+T),function(t,e,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]=t-r,l[1]=e-i,m[0]=t+r,m[1]=e+i;return}if(p[0]=u(a)*r+t,p[1]=c(a)*i+e,d[0]=u(o)*r+t,d[1]=c(o)*i+e,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+t,f[1]=c(R)*i+e,g(l,f,l),A(m,f,m))}(_,T,P,I,C,k,F,M,S),r=N(k)*P+_,a=L(k)*I+T;break;case y.R:m(v=r=e[t++],R=a=e[t++],v+e[t++],R+e[t++],M,S);break;case y.Z:r=v,a=R}n.jk(b,b,M),n.T9(x,x,S)}return 0===t&&(b[0]=b[1]=x[0]=x[1]=0),new i.Ay(b[0],b[1],x[0]-b[0],x[1]-b[1])},e.prototype._calculateLength=function(){var t=this.data,e=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<e;){var d=t[p++],f=1===p;f&&(i=t[p],a=t[p+1],s=i,l=a);var m=-1;switch(d){case y.M:i=s=t[p++],a=l=t[p++];break;case y.L:var g=t[p++],A=t[p++],v=g-i,R=A-a;(_(v)>r||_(R)>n||p===e-1)&&(m=Math.sqrt(v*v+R*R),i=g,a=A);break;case y.C:var b=t[p++],x=t[p++],g=t[p++],A=t[p++],M=t[p++],S=t[p++];m=(0,o.h0)(i,a,b,x,g,A,M,S,10),i=M,a=S;break;case y.Q:var b=t[p++],x=t[p++],g=t[p++],A=t[p++];m=(0,o.d8)(i,a,b,x,g,A,10),i=g,a=A;break;case y.A:var T=t[p++],I=t[p++],C=t[p++],k=t[p++],F=t[p++],X=t[p++],U=X+F;p+=1,f&&(s=N(F)*C+T,l=L(F)*k+I),m=O(C,k)*w(P,Math.abs(X)),i=N(U)*C+T,a=L(U)*k+I;break;case y.R:s=i=t[p++],l=a=t[p++],m=2*t[p++]+2*t[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},e.prototype.rebuildPath=function(t,e){var r,n,i,a,s,l,c,u,h,p,d=this.data,f=this._ux,m=this._uy,g=this._len,A=e<1,b=0,x=0,M=0;if(!A||(this._pathSegLen||this._calculateLength(),c=this._pathSegLen,u=e*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&&(t.lineTo(h,p),M=0),T){case y.M:r=i=d[S++],n=a=d[S++],t.moveTo(i,a);break;case y.L:s=d[S++],l=d[S++];var I=_(s-i),C=_(l-a);if(I>f||C>m){if(A){var k=c[x++];if(b+k>u){var F=(u-b)/k;t.lineTo(i*(1-F)+s*F,a*(1-F)+l*F);break c}b+=k}t.lineTo(s,l),i=s,a=l,M=0}else{var X=I*I+C*C;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),t.bezierCurveTo(v[1],R[1],v[2],R[2],v[3],R[3]);break c}b+=k}t.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),t.quadraticCurveTo(v[1],R[1],v[2],R[2]);break c}b+=k}t.quadraticCurveTo(U,W,V,E),i=V,a=E;break;case y.A:var Q=d[S++],Z=d[S++],B=d[S++],K=d[S++],$=d[S++],G=d[S++],H=d[S++],z=!d[S++],J=B>K?B:K,j=_(B-K)>.001,q=$+G,tt=!1;if(A){var k=c[x++];b+k>u&&(q=$+G*(u-b)/k,tt=!0),b+=k}if(j&&t.ellipse?t.ellipse(Q,Z,B,K,H,$,q,z):t.arc(Q,Z,J,$,q,z),tt)break c;P&&(r=N($)*B+Q,n=L($)*K+Z),i=N(q)*B+Q,a=L(q)*K+Z;break;case y.R:r=i=d[S],n=a=d[S+1],s=d[S++],l=d[S++];var te=d[S++],tr=d[S++];if(A){var k=c[x++];if(b+k>u){var tn=u-b;t.moveTo(s,l),t.lineTo(s+w(tn,te),l),(tn-=te)>0&&t.lineTo(s+te,l+w(tn,tr)),(tn-=tr)>0&&t.lineTo(s+O(te-tn,0),l+tr),(tn-=te)>0&&t.lineTo(s,l+O(tr-tn,0));break c}b+=k}t.rect(s,l,te,tr);break;case y.Z:if(A){var k=c[x++];if(b+k>u){var F=(u-b)/k;t.lineTo(i*(1-F)+r*F,a*(1-F)+n*F);break c}b+=k}t.closePath(),i=r,a=n}}},e.prototype.clone=function(){var t=new e,r=this.data;return t.data=r.slice?r.slice():Array.prototype.slice.call(r),t._len=this._len,t},e.prototype.canSave=function(){return!!this._saveData},e.CMD=y,e.initDefaultProps=void((t=e.prototype)._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0),e}()},26346(t,e){e.A=function(){function t(t,e){this.x=t||0,this.y=e||0}return t.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(t,e){return this.x=t,this.y=e,this},t.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},t.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},t.prototype.scale=function(t){this.x*=t,this.y*=t},t.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},t.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},t.prototype.dot=function(t){return this.x*t.x+this.y*t.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},t.prototype.distance=function(t){var e=this.x-t.x,r=this.y-t.y;return Math.sqrt(e*e+r*r)},t.prototype.distanceSquare=function(t){var e=this.x-t.x,r=this.y-t.y;return e*e+r*r},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(t){if(t){var e=this.x,r=this.y;return this.x=t[0]*e+t[2]*r+t[4],this.y=t[1]*e+t[3]*r+t[5],this}},t.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},t.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},t.set=function(t,e,r){t.x=e,t.y=r},t.copy=function(t,e){t.x=e.x,t.y=e.y},t.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},t.lenSquare=function(t){return t.x*t.x+t.y*t.y},t.dot=function(t,e){return t.x*e.x+t.y*e.y},t.add=function(t,e,r){t.x=e.x+r.x,t.y=e.y+r.y},t.sub=function(t,e,r){t.x=e.x-r.x,t.y=e.y-r.y},t.scale=function(t,e,r){t.x=e.x*r,t.y=e.y*r},t.scaleAndAdd=function(t,e,r,n){t.x=e.x+r.x*n,t.y=e.y+r.y*n},t.lerp=function(t,e,r,n){var i=1-n;t.x=i*e.x+n*r.x,t.y=i*e.y+n*r.y},t}()},92836(t,e,r){var n=r(45587),i=r(98026),a=r(83509),o=n.D_;function s(t){return t>5e-5||t<-5e-5}var l=[],c=[],u=n.vt(),h=Math.abs,p=function(){var t;function e(){}return e.prototype.getLocalTransform=function(t){return d(this,t)},e.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},e.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},e.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},e.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},e.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)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),r=this.transform;if(!(e||t)){r&&(o(r),this.invTransform=null);return}r=r||n.vt(),e?this.getLocalTransform(r):o(r),t&&(e?n.lK(r,t,r):n.C(r,t)),this.transform=r,this._resolveGlobalScaleRatio(r),this.invTransform=this.invTransform||n.vt(),n.B8(this.invTransform,r)},e.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(l);var r=l[0]<0?-1:1,n=l[1]<0?-1:1,i=((l[0]-r)*e+r)/l[0]||0,a=((l[1]-n)*e+n)/l[1]||0;t[0]*=i,t[1]*=i,t[2]*=a,t[3]*=a}},e.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],r=t[2]*t[2]+t[3]*t[3],n=Math.atan2(t[1],t[0]),i=Math.PI/2+n-Math.atan2(t[3],t[2]);r=Math.sqrt(r)*Math.cos(i),e=Math.sqrt(e),this.skewX=i,this.skewY=0,this.rotation=-n,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=r,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||n.vt(),n.lK(c,t.invTransform,e),e=c);var r=this.originX,i=this.originY;(r||i)&&(u[4]=r,u[5]=i,n.lK(c,e,u),c[4]-=r,c[5]-=i,e=c),this.setLocalTransform(e)}},e.prototype.getGlobalScale=function(t){var e=this.transform;return(t=t||[],e)?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1])):(t[0]=1,t[1]=1),t},e.prototype.transformCoordToLocal=function(t,e){var r=[t,e],n=this.invTransform;return n&&a.NW(r,r,n),r},e.prototype.transformCoordToGlobal=function(t,e){var r=[t,e],n=this.transform;return n&&a.NW(r,r,n),r},e.prototype.getLineScale=function(){var t=this.transform;return t&&h(t[0]-1)>1e-10&&h(t[3]-1)>1e-10?Math.sqrt(h(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){m(this,t)},e.getLocalTransform=function(t,e){e=e||[];var r=t.originX||0,i=t.originY||0,a=t.scaleX,o=t.scaleY,s=t.anchorX,l=t.anchorY,c=t.rotation||0,u=t.x,h=t.y,p=t.skewX?Math.tan(t.skewX):0,d=t.skewY?Math.tan(-t.skewY):0;if(r||i||s||l){var f=r+s,m=i+l;e[4]=-f*a-p*m*o,e[5]=-m*o-d*f*a}else e[4]=e[5]=0;return e[0]=a,e[3]=o,e[1]=d*a,e[2]=p*o,c&&n.e$(e,e,c),e[4]+=r+u,e[5]+=i+h,e},e.initDefaultProps=void((t=e.prototype).scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0),e}(),d=p.getLocalTransform,f=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function m(t,e){return(0,i.Ac)(t,e,f)}e.Ay=p,r.d(e,{IT:()=>m,Wx:()=>f})},89259(t,e,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(t){return t>-1e-8&&t<1e-8}function p(t){return t>1e-8||t<-1e-8}function d(t,e,r,n,i){var a=1-i;return a*a*(a*t+3*i*e)+i*i*(i*n+3*a*r)}function f(t,e,r,n,i){var a=1-i;return 3*(((e-t)*a+2*(r-e)*i)*a+(n-r)*i*i)}function m(t,e,r,n,l,c){var u=n+3*(e-r)-t,p=3*(r-2*e+t),d=3*(e-t),f=t-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,N=a(m),L=Math.cos(O),v=(-p-2*N*L)/(3*u),x=(-p+N*(L+o*Math.sin(O)))/(3*u),_=(-p+N*(L-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(t,e,r,n,i){var o=6*r-12*e+6*t,s=9*e+3*n-3*t-9*r,l=3*e-3*t,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(t,e,r,n,i,a){var o=(e-t)*i+t,s=(r-e)*i+e,l=(n-r)*i+r,c=(s-o)*i+o,u=(l-s)*i+s,h=(u-c)*i+c;a[0]=t,a[1]=o,a[2]=c,a[3]=h,a[4]=h,a[5]=u,a[6]=l,a[7]=n}function y(t,e,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(t,r,o,h,S),c[1]=d(e,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(t,r,o,h,y),c[1]=d(e,i,s,p,y),R=(0,n.oi)(c,l),y>=0&&R<M?(A=y,M=R):(u[0]=d(t,r,o,h,v),u[1]=d(e,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(t,r,o,h,A),g[1]=d(e,i,s,p,A)),a(M)}function v(t,e,r,n,i,a,o,s,l){for(var c=t,u=e,h=0,p=1/l,f=1;f<=l;f++){var m=f*p,g=d(t,r,i,o,m),A=d(e,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(t,e,r,n){var i=1-n;return i*(i*t+2*n*e)+n*n*r}function b(t,e,r,n){return 2*((1-n)*(e-t)+n*(r-e))}function x(t,e,r,n,i){var o=t-2*e+r,s=2*(e-t),l=t-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(t,e,r){var n=t+r-2*e;return 0===n?.5:(t-e)/n}function S(t,e,r,n,i){var a=(e-t)*n+t,o=(r-e)*n+e,s=(o-a)*n+a;i[0]=t,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=r}function w(t,e,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(t,r,o,A),c[1]=R(e,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(t,r,o,b),c[1]=R(e,i,s,b);var y=(0,n.oi)(c,l);if(b>=0&&y<g)f=b,g=y;else{u[0]=R(t,r,o,x),u[1]=R(e,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(t,r,o,f),d[1]=R(e,i,s,f)),a(g)}function O(t,e,r,n,i,a,o){for(var s=t,l=e,c=0,u=1/o,h=1;h<=o;h++){var p=h*u,d=R(t,r,i,p),f=R(e,n,a,p),m=d-s,g=f-l;c+=Math.sqrt(m*m+g*g),s=d,l=f}return c}r.d(e,{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(t,e,r){r.d(e,{Me:()=>d,ot:()=>u,oq:()=>c});var n=r(38123),i=Math.log(2);function a(t,e,r,n,o,s){var l=n+"-"+o,c=t.length;if(s.hasOwnProperty(l))return s[l];if(1===e){var u=Math.round(Math.log((1<<c)-1&~o)/i);return t[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)*t[r][f]*a(t,e-1,p,h,o|g,s),m++)}return s[l]=d,d}function o(t,e){var r=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[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*e[s];return function(t,e,r){var n=e*o[6]+r*o[7]+1;t[0]=(e*o[0]+r*o[1]+o[2])/n,t[1]=(e*o[3]+r*o[4]+o[5])/n}}}var s=r(98026),l="___zrEVENTSAVED";function c(t,e,r,i,a){if(e.getBoundingClientRect&&n.A.domSupported&&!u(e)){var c=e[l]||(e[l]={}),h=function(t,e,r){for(var n=r?"invTrans":"trans",i=e[n],a=e.srcCoords,s=[],l=[],c=!0,u=0;u<4;u++){var h=t[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(t[u].offsetLeft,t[u].offsetTop)}return c&&i?i:(e.srcCoords=s,e[n]=r?o(l,s):o(s,l))}(function(t,e){var r=e.markers;if(r)return r;r=e.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;"),t.appendChild(o),r.push(o)}return e.clearMarkers=function(){(0,s.__)(r,function(t){t.parentNode&&t.parentNode.removeChild(t)})},r}(e,c),c,a);if(h)return h(t,r,i),!0}return!1}function u(t){return"CANVAS"===t.nodeName.toUpperCase()}var h=/([&<>"'])/g,p={"&":"&","<":"<",">":">",'"':""","'":"'"};function d(t){return null==t?"":(t+"").replace(h,function(t,e){return p[e]})}},38123(t,e){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(t,e){var r=e.browser,n=t.match(/Firefox\/([\d.]+)/),i=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),a=t.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(t);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),e.svgSupported="u">typeof SVGRect,e.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,e.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11),e.domSupported="u">typeof document){var s=document.documentElement.style;e.transform3dSupported=(r.ie&&"transition"in s||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||r.ie&&+r.version>=9}}(navigator.userAgent,n),e.A=n},35452(t,e,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(t,e,r,n){return r=r||{},n?c(t,e,r):s&&null!=e.layerX&&e.layerX!==e.offsetX?(r.zrX=e.layerX,r.zrY=e.layerY):null!=e.offsetX?(r.zrX=e.offsetX,r.zrY=e.offsetY):c(t,e,r),r}function c(t,e,r){if(n.A.domSupported&&t.getBoundingClientRect){var a=e.clientX,s=e.clientY;if((0,i.ot)(t)){var l=t.getBoundingClientRect();r.zrX=a-l.left,r.zrY=s-l.top;return}if((0,i.oq)(o,t,a,s)){r.zrX=o[0],r.zrY=o[1];return}}r.zrX=r.zrY=0}function u(t){return t||window.event}function h(t,e,r){if(null!=(e=u(e)).zrX)return e;var n=e.type;if(n&&n.indexOf("touch")>=0){var i="touchend"!==n?e.targetTouches[0]:e.changedTouches[0];i&&l(t,i,e,r)}else{l(t,e,e,r);var o=function(t){var e=t.wheelDelta;if(e)return e;var r=t.deltaX,n=t.deltaY;return null==r||null==n?e:3*(0!==n?Math.abs(n):Math.abs(r))*(n>0?-1:n<0?1:r>0?-1:1)}(e);e.zrDelta=o?o/120:-(e.detail||0)/3}var s=e.button;return null==e.which&&void 0!==s&&a.test(e.type)&&(e.which=1&s?1:2&s?3:4&s?2:0),e}function p(t,e,r,n){t.addEventListener(e,r,n)}function d(t,e,r,n){t.removeEventListener(e,r,n)}var f=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};r.d(e,{Yo:()=>l,ds:()=>f,e0:()=>h,f:()=>d,mK:()=>u,q2:()=>p})},45587(t,e,r){function n(){return[1,0,0,1,0,0]}function i(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function a(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function o(t,e,r){var n=e[0]*r[0]+e[2]*r[1],i=e[1]*r[0]+e[3]*r[1],a=e[0]*r[2]+e[2]*r[3],o=e[1]*r[2]+e[3]*r[3],s=e[0]*r[4]+e[2]*r[5]+e[4],l=e[1]*r[4]+e[3]*r[5]+e[5];return t[0]=n,t[1]=i,t[2]=a,t[3]=o,t[4]=s,t[5]=l,t}function s(t,e,r){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+r[0],t[5]=e[5]+r[1],t}function l(t,e,r,n){void 0===n&&(n=[0,0]);var i=e[0],a=e[2],o=e[4],s=e[1],l=e[3],c=e[5],u=Math.sin(r),h=Math.cos(r);return t[0]=i*h+s*u,t[1]=-i*u+s*h,t[2]=a*h+l*u,t[3]=-a*u+h*l,t[4]=h*(o-n[0])+u*(c-n[1])+n[0],t[5]=h*(c-n[1])-u*(o-n[0])+n[1],t}function c(t,e,r){var n=r[0],i=r[1];return t[0]=e[0]*n,t[1]=e[1]*i,t[2]=e[2]*n,t[3]=e[3]*i,t[4]=e[4]*n,t[5]=e[5]*i,t}function u(t,e){var r=e[0],n=e[2],i=e[4],a=e[1],o=e[3],s=e[5],l=r*o-a*n;return l?(l=1/l,t[0]=o*l,t[1]=-a*l,t[2]=-n*l,t[3]=r*l,t[4]=(n*s-o*i)*l,t[5]=(a*i-r*s)*l,t):null}r.d(e,{B8:()=>u,C:()=>a,D_:()=>i,Tl:()=>s,e$:()=>l,hs:()=>c,lK:()=>o,vt:()=>n})},59741(t,e,r){var n,i,a="sans-serif",o="12px "+a,s=function(t){var e={};if("u"<typeof JSON)return e;for(var r=0;r<t.length;r++){var n=String.fromCharCode(r+32),i=(t.charCodeAt(r)-20)/100;e[n]=i}return e}("007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N"),l={createCanvas:function(){return"u">typeof document&&document.createElement("canvas")},measureText:function(t,e){if(!n){var r=l.createCanvas();n=r&&r.getContext("2d")}if(n)return i!==e&&(i=n.font=e||o),n.measureText(t);t=t||"",e=e||o;var a=/((?:\d+)?\.?\d*)px/.exec(e),c=a&&+a[1]||12,u=0;if(e.indexOf("mono")>=0)u=c*t.length;else for(var h=0;h<t.length;h++){var p=s[t[h]];u+=null==p?c:p*c}return{width:u}},loadImage:function(t,e,r){var n=new Image;return n.onload=e,n.onerror=r,n.src=t,n},getTime:function(){return Date.now?Date.now():+new Date}};r.d(e,{OH:()=>o,gI:()=>12,yh:()=>l,zs:()=>a})},83470(t,e,r){function n(t,e,r,n){var i=e+1;if(i===r)return 1;if(0>n(t[i++],t[e])){for(;i<r&&0>n(t[i],t[i-1]);)i++;var a=t,o=e,s=i;for(s--;o<s;){var l=a[o];a[o++]=a[s],a[s--]=l}}else for(;i<r&&n(t[i],t[i-1])>=0;)i++;return i-e}function i(t,e,r,n,i){for(n===e&&n++;n<r;n++){for(var a,o=t[n],s=e,l=n;s<l;)0>i(o,t[a=s+l>>>1])?l=a:s=a+1;var c=n-s;switch(c){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;c>0;)t[s+c]=t[s+c-1],c--}t[s]=o}}function a(t,e,r,n,i,a){var o=0,s=0,l=1;if(a(t,e[r+i])>0){for(s=n-i;l<s&&a(t,e[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(t,e[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(t,e[r+u])>0?o=u+1:l=u}return l}function o(t,e,r,n,i,a){var o=0,s=0,l=1;if(0>a(t,e[r+i])){for(s=i+1;l<s&&0>a(t,e[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(t,e[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(t,e[r+u])?l=u:o=u+1}return l}function s(t,e,r,s){r||(r=0),s||(s=t.length);var l=s-r;if(!(l<2)){var c=0;if(l<32){c=n(t,r,s,e),i(t,r,s,r+c,e);return}var u=function(t,e){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(t[p],t,u,h,0,e);u+=f,0==(h-=f)||0!==(d=a(t[u+h-1],t,p,d,d-1,e))&&(h<=d?function(r,n,s,c){var u,h,p,d=0;for(d=0;d<n;d++)l[d]=t[r+d];var f=0,m=s,g=r;if(t[g++]=t[m++],0==--c){for(d=0;d<n;d++)t[g+d]=l[f+d];return}if(1===n){for(d=0;d<c;d++)t[g+d]=t[m+d];t[g+c]=l[f];return}for(var A=i;;){u=0,h=0,p=!1;do if(0>e(t[m],l[f])){if(t[g++]=t[m++],h++,u=0,0==--c){p=!0;break}}else if(t[g++]=l[f++],u++,h=0,1==--n){p=!0;break}while((u|h)<A)if(p)break;do{if(0!==(u=o(t[m],l,f,n,0,e))){for(d=0;d<u;d++)t[g+d]=l[f+d];if(g+=u,f+=u,(n-=u)<=1){p=!0;break}}if(t[g++]=t[m++],0==--c){p=!0;break}if(0!==(h=a(l[f],t,m,c,0,e))){for(d=0;d<h;d++)t[g+d]=t[m+d];if(g+=h,m+=h,0==(c-=h)){p=!0;break}}if(t[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++)t[g+d]=t[m+d];t[g+c]=l[f]}else if(0===n)throw Error();else for(d=0;d<n;d++)t[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]=t[s+u];var h=r+n-1,p=c-1,d=s+c-1,f=0,m=0;if(t[d--]=t[h--],0==--n){for(f=d-(c-1),u=0;u<c;u++)t[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--)t[m+u]=t[f+u];t[d]=l[p];return}for(var g=i;;){var A=0,y=0,v=!1;do if(0>e(l[p],t[h])){if(t[d--]=t[h--],A++,y=0,0==--n){v=!0;break}}else if(t[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],t,r,n,n-1,e))){for(d-=A,h-=A,n-=A,m=d+1,f=h+1,u=A-1;u>=0;u--)t[m+u]=t[f+u];if(0===n){v=!0;break}}if(t[d--]=l[p--],1==--c){v=!0;break}if(0!=(y=c-a(t[h],l,0,c,c-1,e))){for(d-=y,p-=y,c-=y,m=d+1,f=p+1,u=0;u<y;u++)t[m+u]=l[f+u];if(c<=1){v=!0;break}}if(t[d--]=t[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--)t[m+u]=t[f+u];t[d]=l[p]}else if(0===c)throw Error();else for(f=d-(c-1),u=0;u<c;u++)t[f+u]=l[u]}(u,h,p,d))}return r=[],n=[],{mergeRuns:function(){for(;s>1;){var t=s-2;if(t>=1&&n[t-1]<=n[t]+n[t+1]||t>=2&&n[t-2]<=n[t]+n[t-1])n[t-1]<n[t+1]&&t--;else if(n[t]>n[t+1])break;c(t)}},forceMergeRuns:function(){for(;s>1;){var t=s-2;t>0&&n[t-1]<n[t+1]&&t--,c(t)}},pushRun:function(t,e){r[s]=t,n[s]=e,s+=1}}}(t,e),h=function(t){for(var e=0;t>=32;)e|=1&t,t>>=1;return t+e}(l);do{if((c=n(t,r,s,e))<h){var p=l;p>h&&(p=h),i(t,r,r+p,r+c,e),c=p}u.pushRun(r,c),u.mergeRuns(),l-=c,r+=c}while(0!==l)u.forceMergeRuns()}}r.d(e,{A:()=>s})},85445(t,e,r){r.d(e,{$z:()=>0,XM:()=>2,cw:()=>1,jP:()=>1,r4:()=>0})},98026(t,e,r){var n=r(59741),i=L(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),a=L(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),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 t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];"u">typeof console&&console.error.apply(console,t)}function y(t){if(null==t||"object"!=typeof t)return t;var e=t,r=o.call(t);if("[object Array]"===r){if(!t[q]){e=[];for(var n=0,s=t.length;n<s;n++)e[n]=y(t[n])}}else if(a[r]){if(!t[q]){var l=t.constructor;if(l.from)e=l.from(t);else{e=new l(t.length);for(var n=0,s=t.length;n<s;n++)e[n]=t[n]}}}else if(!i[r]&&!t[q]&&!D(t))for(var c in e={},t)t.hasOwnProperty(c)&&c!==f&&(e[c]=y(t[c]));return e}function v(t,e){if(Object.assign)Object.assign(t,e);else for(var r in e)e.hasOwnProperty(r)&&r!==f&&(t[r]=e[r]);return t}function R(t,e,r){t=t||{};for(var n=0;n<r.length;n++){var i=r[n];t[i]=e[i]}return t}function b(t,e,r){for(var n=P(e),i=0,a=n.length;i<a;i++){var o=n[i];(r?null!=e[o]:null==t[o])&&(t[o]=e[o])}return t}function x(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r}return -1}function M(t,e){var r=t.prototype;function n(){}for(var i in n.prototype=e.prototype,t.prototype=new n,r)r.hasOwnProperty(i)&&(t.prototype[i]=r[i]);t.prototype.constructor=t,t.superClass=e}function S(t,e,r){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(e),i=0;i<n.length;i++){var a=n[i];"constructor"!==a&&(r?null!=e[a]:null==t[a])&&(t[a]=e[a])}else b(t,e,r)}function w(t){return!!t&&"string"!=typeof t&&"number"==typeof t.length}function O(t,e,r){if(t&&e)if(t.forEach&&t.forEach===l)t.forEach(e,r);else if(t.length===+t.length)for(var n=0,i=t.length;n<i;n++)e.call(r,t[n],n,t);else for(var a in t)t.hasOwnProperty(a)&&e.call(r,t[a],a,t)}function N(t,e,r){if(!t)return[];if(!e)return H(t);if(t.map&&t.map===h)return t.map(e,r);for(var n=[],i=0,a=t.length;i<a;i++)n.push(e.call(r,t[i],i,t));return n}function L(t,e,r,n){if(t&&e){for(var i=0,a=t.length;i<a;i++)r=e.call(n,r,t[i],i,t);return r}}function _(t,e,r){if(!t)return[];if(!e)return H(t);if(t.filter&&t.filter===c)return t.filter(e,r);for(var n=[],i=0,a=t.length;i<a;i++)e.call(r,t[i],i,t)&&n.push(t[i]);return n}function T(t,e,r){if(t&&e){for(var n=0,i=t.length;n<i;n++)if(e.call(r,t[n],n,t))return t[n]}}function P(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var r in t)t.hasOwnProperty(r)&&e.push(r);return e}n.yh.createCanvas;var I=d&&F(d.bind)?d.call.bind(d.bind):function(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return function(){return t.apply(e,r.concat(u.call(arguments)))}};function C(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return function(){return t.apply(this,e.concat(u.call(arguments)))}}function k(t){return Array.isArray?Array.isArray(t):"[object Array]"===o.call(t)}function F(t){return"function"==typeof t}function X(t){return"string"==typeof t}function U(t){return"[object String]"===o.call(t)}function W(t){return"number"==typeof t}function V(t){var e=typeof t;return"function"===e||!!t&&"object"===e}function E(t){return!!i[o.call(t)]}function Y(t){return!!a[o.call(t)]}function D(t){return"object"==typeof t&&"number"==typeof t.nodeType&&"object"==typeof t.ownerDocument}function Q(t){return null!=t.colorStops}function Z(t){return null!=t.image}function B(t){return t!=t}function K(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=0,n=t.length;r<n;r++)if(null!=t[r])return t[r]}function $(t,e){return null!=t?t:e}function G(t,e,r){return null!=t?t:null!=e?e:r}function H(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return u.apply(t,e)}function z(t){if("number"==typeof t)return[t,t,t,t];var e=t.length;return 2===e?[t[0],t[1],t[0],t[1]]:3===e?[t[0],t[1],t[2],t[1]]:t}function J(t,e){if(!t)throw Error(e)}function j(t){return null==t?null:"function"==typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var q="__ec_primitive__";function tt(t){t[q]=!0}var te=function(){function t(){this.data={}}return t.prototype.delete=function(t){var e=this.has(t);return e&&delete this.data[t],e},t.prototype.has=function(t){return this.data.hasOwnProperty(t)},t.prototype.get=function(t){return this.data[t]},t.prototype.set=function(t,e){return this.data[t]=e,this},t.prototype.keys=function(){return P(this.data)},t.prototype.forEach=function(t){var e=this.data;for(var r in e)e.hasOwnProperty(r)&&t(e[r],r)},t}(),tr="function"==typeof Map,tn=function(){function t(e){var r=k(e);this.data=tr?new Map:new te;var n=this;function i(t,e){r?n.set(t,e):n.set(e,t)}e instanceof t?e.each(i):e&&O(e,i)}return t.prototype.hasKey=function(t){return this.data.has(t)},t.prototype.get=function(t){return this.data.get(t)},t.prototype.set=function(t,e){return this.data.set(t,e),e},t.prototype.each=function(t,e){this.data.forEach(function(r,n){t.call(e,r,n)})},t.prototype.keys=function(){var t=this.data.keys();return tr?Array.from(t):t},t.prototype.removeKey=function(t){this.data.delete(t)},t}();function ti(t){return new tn(t)}function ta(t,e){for(var r=new t.constructor(t.length+e.length),n=0;n<t.length;n++)r[n]=t[n];for(var i=t.length,n=0;n<e.length;n++)r[n+i]=e[n];return r}function to(t,e){var r;if(Object.create)r=Object.create(t);else{var n=function(){};n.prototype=t,r=new n}return e&&v(r,e),r}function ts(t){var e=t.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function tl(t,e){return t.hasOwnProperty(e)}function tc(){}var tu=180/Math.PI;r.d(e,{$3:()=>tl,Ac:()=>R,B:()=>M,Bq:()=>j,C7:()=>Q,En:()=>tt,Et:()=>W,Gv:()=>V,HE:()=>Z,HP:()=>P,I6:()=>T,Je:()=>K,Kg:()=>X,Lh:()=>U,NT:()=>b,Os:()=>g,QX:()=>z,TS:()=>L,Tj:()=>N,Tn:()=>F,WV:()=>G,X$:()=>v,Xj:()=>w,Yp:()=>B,__:()=>O,bZ:()=>$,cF:()=>C,co:()=>S,cy:()=>k,di:()=>H,ed:()=>to,h1:()=>function t(e,r,n){if(!V(r)||!V(e))return n?y(r):e;for(var i in r)if(r.hasOwnProperty(i)&&i!==f){var a=e[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 e||(e[i]=y(r[i])):t(a,o,n)}return e},iq:()=>ts,iu:()=>Y,lI:()=>tu,lQ:()=>tc,nt:()=>ti,o8:()=>y,oI:()=>I,pb:()=>_,qh:()=>x,vA:()=>J,vV:()=>A,yB:()=>ta})},83509(t,e,r){function n(t,e){return null==t&&(t=0),null==e&&(e=0),[t,e]}function i(t){return[t[0],t[1]]}function a(t,e,r){return t[0]=e,t[1]=r,t}function o(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t}function s(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t}function l(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t}function c(t,e){var r,n=Math.sqrt((r=e)[0]*r[0]+r[1]*r[1]);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}function u(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var h=function(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])};function p(t,e,r,n){return t[0]=e[0]+n*(r[0]-e[0]),t[1]=e[1]+n*(r[1]-e[1]),t}function d(t,e,r){var n=e[0],i=e[1];return t[0]=r[0]*n+r[2]*i+r[4],t[1]=r[1]*n+r[3]*i+r[5],t}function f(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t}function m(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t}r.d(e,{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(t,e,r){var n=r(15727),i=r(87691);e.A=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="compound",e}return(0,n.C6)(e,t),e.prototype._updatePathDirty=function(){for(var t=this.shape.paths,e=this.shapeChanged(),r=0;r<t.length;r++)e=e||t[r].shapeChanged();e&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var t=this.shape.paths||[],e=this.getGlobalScale(),r=0;r<t.length;r++)t[r].path||t[r].createPathProxy(),t[r].path.setScale(e[0],e[1],t[r].segmentIgnoreThreshold)},e.prototype.buildPath=function(t,e){for(var r=e.paths||[],n=0;n<r.length;n++)r[n].buildPath(t,r[n].shape,!0)},e.prototype.afterBrush=function(){for(var t=this.shape.paths||[],e=0;e<t.length;e++)t[e].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),i.Ay.prototype.getBoundingRect.call(this)},e}(i.Ay)},71519(t,e,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(t){var e;function r(e){return t.call(this,e)||this}return(0,n.C6)(r,t),r.prototype._init=function(e){for(var r=(0,o.HP)(e),n=0;n<r.length;n++){var i=r[n];"style"===i?this.useStyle(e[i]):t.prototype.attrKV.call(this,i,e[i])}this.style||this.useStyle({})},r.prototype.beforeBrush=function(t){},r.prototype.afterBrush=function(){},r.prototype.innerBeforeBrush=function(){},r.prototype.innerAfterBrush=function(){},r.prototype.shouldBePainted=function(t,e,r,n){var i,a,o,s=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&(i=this,a=t,o=e,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(t,e){return this.rectContain(t,e)},r.prototype.traverse=function(t,e){t.call(e,this)},r.prototype.rectContain=function(t,e){var r=this.transformCoordToLocal(t,e);return this.getBoundingRect().contain(r[0],r[1])},r.prototype.getPaintRect=function(){var t=this._paintRect;if(!this._paintRect||this.__dirty){var e=this.transform,r=this.getBoundingRect(),n=this.style,i=n.shadowBlur||0,o=n.shadowOffsetX||0,s=n.shadowOffsetY||0;t=this._paintRect||(this._paintRect=new a.Ay(0,0,0,0)),e?a.Ay.applyTransform(t,r,e):t.copy(r),(i||o||s)&&(t.width+=2*i+Math.abs(o),t.height+=2*i+Math.abs(s),t.x=Math.min(t.x,t.x+o-i),t.y=Math.min(t.y,t.y+s-i));var l=this.dirtyRectTolerance;t.isZero()||(t.x=Math.floor(t.x-l),t.y=Math.floor(t.y-l),t.width=Math.ceil(t.width+1+2*l),t.height=Math.ceil(t.height+1+2*l))}return t},r.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new a.Ay(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},r.prototype.getPrevPaintRect=function(){return this._prevPaintRect},r.prototype.animateStyle=function(t){return this.animate("style",t)},r.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():this.markRedraw()},r.prototype.attrKV=function(e,r){"style"!==e?t.prototype.attrKV.call(this,e,r):this.style?this.setStyle(r):this.useStyle(r)},r.prototype.setStyle=function(t,e){return"string"==typeof t?this.style[t]=e:(0,o.X$)(this.style,t),this.dirtyStyle(),this},r.prototype.dirtyStyle=function(t){t||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(t){return(0,o.ed)(c,t)},r.prototype.useStyle=function(t){t[l]||(t=this.createStyle(t)),this.style=t,this.dirtyStyle()},r.prototype._useHoverStyle=function(t){this.__hoverStyle=t},r.prototype.isStyleObject=function(t){return t[l]},r.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var r=this._normalState;e.style&&!r.style&&(r.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(e,r,h)},r.prototype._applyStateObj=function(e,r,n,a,s,l){t.prototype._applyStateObj.call(this,e,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(e,{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(e){for(var r,n=t.prototype._mergeStates.call(this,e),i=0;i<e.length;i++){var a=e[i];a.style&&(r=r||{},this._mergeStyle(r,a.style))}return r&&(n.style=r),n},r.prototype._mergeStyle=function(t,e){return(0,o.X$)(t,e),t},r.prototype.getAnimationStyleProps=function(){return u},r.initDefaultProps=void((e=r.prototype).type="displayable",e.invisible=!1,e.z=0,e.z2=0,e.zlevel=0,e.culling=!1,e.cursor="pointer",e.rectHover=!1,e.incremental=0,e._rect=null,e.dirtyRectTolerance=0,e.__dirty=s.M|s.pO),r}(i.Ay),f=new a.Ay(0,0,0,0),m=new a.Ay(0,0,0,0);e.Ay=d,r.d(e,{oN:()=>c,sW:()=>u})},11793(t,e){e.A=function(){function t(t){this.colorStops=t||[]}return t.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},t}()},43870(t,e,r){var n=r(15727),i=r(98026),a=r(62454),o=r(29308),s=function(t){function e(e){var r=t.call(this)||this;return r.isGroup=!0,r._children=[],r.attr(e),r}return(0,n.C6)(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var e=this._children,r=0;r<e.length;r++)if(e[r].name===t)return e[r]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},e.prototype.addBefore=function(t,e){if(t&&t!==this&&t.parent!==this&&e&&e.parent===this){var r=this._children,n=r.indexOf(e);n>=0&&(r.splice(n,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,e){var r=i.qh(this._children,t);return r>=0&&this.replaceAt(e,r),this},e.prototype.replaceAt=function(t,e){var r=this._children,n=r[e];if(t&&t!==this&&t.parent!==this&&t!==n){r[e]=t,n.parent=null;var i=this.__zr;i&&n.removeSelfFromZr(i),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__zr;e&&e!==t.__zr&&t.addSelfToZr(e),e&&e.refresh()},e.prototype.remove=function(t){var e=this.__zr,r=this._children,n=i.qh(r,t);return n<0||(r.splice(n,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh()),this},e.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,r=0;r<t.length;r++){var n=t[r];e&&n.removeSelfFromZr(e),n.parent=null}return t.length=0,this},e.prototype.eachChild=function(t,e){for(var r=this._children,n=0;n<r.length;n++){var i=r[n];t.call(e,i,n)}return this},e.prototype.traverse=function(t,e){for(var r=0;r<this._children.length;r++){var n=this._children[r],i=t.call(e,n);n.isGroup&&!i&&n.traverse(t,e)}return this},e.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var r=0;r<this._children.length;r++)this._children[r].addSelfToZr(e)},e.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var r=0;r<this._children.length;r++)this._children[r].removeSelfFromZr(e)},e.prototype.getBoundingRect=function(t){for(var e=new o.Ay(0,0,0,0),r=t||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(e,l,c),(i=i||e.clone()).union(e)):(i=i||l.clone()).union(l)}}return i||e},e}(a.Ay);s.prototype.type="group",e.A=s},90540(t,e,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(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,n.C6)(e,t),e.prototype.createStyle=function(t){return(0,o.ed)(s,t)},e.prototype._getSize=function(t){var e,r=this.style,n=r[t];if(null!=n)return n;var i=(e=r.image)&&"string"!=typeof e&&e.width&&e.height?r.image:this.__image;if(!i)return 0;var a="width"===t?"height":"width",o=r[a];return null==o?i[t]:i[t]/i[a]*o},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return l},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new a.Ay(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(i.Ay);c.prototype.type="image",e.Ay=c},29668(t,e,r){var n=r(15727);e.A=function(t){function e(e,r,n,i,a,o){var s=t.call(this,a)||this;return s.x=null==e?0:e,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)(e,t),e}(r(11793).A)},87691(t,e,r){r.d(e,{MW:()=>M,Ay:()=>O});var n=r(15727),i=r(71519),a=r(62454),o=r(15938);function s(t,e,r,n,i,a,o){if(0===i)return!1;var s=0,l=t;if(o>e+i&&o>n+i||o<e-i&&o<n-i||a>t+i&&a>r+i||a<t-i&&a<r-i)return!1;if(t===r)return Math.abs(a-t)<=i/2;s=(e-n)/(t-r);var c=s*a-o+(l=(t*n-r*e)/(t-r));return c*c/(s*s+1)<=i/2*i/2}var l=r(89259),c=2*Math.PI;function u(t){return(t%=c)<0&&(t+=c),t}var h=2*Math.PI;function p(t,e,r,n,i,a){if(a>e&&a>n||a<e&&a<n||n===e)return 0;var o=(a-e)/(n-e),s=n<e?1:-1;(1===o||0===o)&&(s=n<e?.5:-.5);var l=o*(r-t)+t;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(t,e,r,n,i){for(var a,o,c=t.data,A=t.len(),y=0,v=0,R=0,b=0,x=0,M=0;M<A;){var S,w,O,N,L,_,T,P,I,C,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],e,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++],N=c[M++],L=c[M++],_=c[M++],T=c[M],P=c[M+1],0!==e&&(!(i>w+e)||!(i>N+e)||!(i>_+e)||!(i>P+e))&&(!(i<w-e)||!(i<N-e)||!(i<_-e)||!(i<P-e))&&(!(n>S+e)||!(n>O+e)||!(n>L+e)||!(n>T+e))&&(!(n<S-e)||!(n<O-e)||!(n<L-e)||!(n<T-e))&&l.Et(S,w,O,N,L,_,T,P,n,i,null)<=e/2)return!0}else y+=function(t,e,r,n,i,a,o,s,c,u){if(u>e&&u>n&&u>a&&u>s||u<e&&u<n&&u<a&&u<s)return 0;var h=l._E(e,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(t,r,i,o,v)<c||(d<0&&(d=l.lX(e,n,a,s,g),g[1]<g[0]&&d>1&&function(){var t=g[0];g[0]=g[1],g[1]=t}(),f=l.Yb(e,n,a,s,g[0]),d>1&&(A=l.Yb(e,n,a,s,g[1]))),2===d?v<g[0]?p+=f<e?R:-R:v<g[1]?p+=A<f?R:-R:p+=s<A?R:-R:v<g[0]?p+=f<e?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(I=v,C=R,k=c[M++],F=c[M++],X=c[M],U=c[M+1],0!==e&&(!(i>C+e)||!(i>F+e)||!(i>U+e))&&(!(i<C-e)||!(i<F-e)||!(i<U-e))&&(!(n>I+e)||!(n>k+e)||!(n>X+e))&&(!(n<I-e)||!(n<k-e)||!(n<X-e))&&(0,l.kh)(I,C,k,F,X,U,n,i,null)<=e/2)return!0}else y+=function(t,e,r,n,i,a,o,s){if(s>e&&s>n&&s>a||s<e&&s<n&&s<a)return 0;var c=l.qY(e,n,a,s,m);if(0===c)return 0;var u=l.gC(e,n,a);if(u>=0&&u<=1){for(var h=0,p=l.k3(e,n,a,u),d=0;d<c;d++){var f=0===m[d]||1===m[d]?.5:1,g=l.k3(t,r,i,m[d]);g<o||(m[d]<u?h+=p<e?f:-f:h+=a<p?f:-f)}return h}var f=0===m[0]||1===m[0]?.5:1,g=l.k3(t,r,i,m[0]);return g<o?0:a<e?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++],Z=c[M++],B=c[M++];M+=1;var K=!!(1-c[M++]);a=Math.cos(Z)*D+E,o=Math.sin(Z)*Q+Y,V?(b=a,x=o):y+=p(v,R,a,o,n,i);var $=(n-E)*Q/D+E;if(r){if(function(t,e,r,n,i,a,o,s,l){if(0===o)return!1;var c=Math.sqrt((s-=t)*s+(l-=e)*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,Z,Z+B,K,e,$,i))return!0}else y+=function(t,e,r,n,i,a,o,s){if((s-=e)>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]+t&&o<=m[1]+t?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+t>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,Z,Z+B,K,$,i);v=Math.cos(Z+B)*D+E,R=Math.sin(Z+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,e,n,i)||s(a,x,a,o,e,n,i)||s(a,o,b,o,e,n,i)||s(b,o,b,x,e,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,e,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(t){var e;function r(e){return t.call(this,e)||this}return(0,n.C6)(r,t),r.prototype.update=function(){var e=this;t.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(t){e.buildPath(t,e.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(e){var r=(0,y.HP)(e);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=e[a];"style"===a?this.style?(0,y.X$)(this.style,o):this.useStyle(o):"shape"===a?(0,y.X$)(this.shape,o):t.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 t=this.style.fill;if("none"!==t){if((0,y.Kg)(t)){var e=(0,v.fN)(t,0);return e>.5?R._S:e>.2?R.tY:R.el}else if(t)return R.el}return R._S},r.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if((0,y.Kg)(e)){var r=this.__zr;if(!!(r&&r.isDarkMode())==(0,v.fN)(t,0)<R.ps)return e}},r.prototype.buildPath=function(t,e,r){},r.prototype.pathUpdated=function(){this.__dirty&=~b.Dl},r.prototype.getUpdatedPathProxy=function(t){return this.path||this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},r.prototype.createPathProxy=function(){this.path=new o.A(!1)},r.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return null!=e&&"none"!==e&&t.lineWidth>0},r.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},r.prototype.getBoundingRect=function(){var t=this._rect,e=this.style,r=!t;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()),t=i.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var a=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||r){a.copy(t);var o=e.strokeNoScale?this.getLineScale():1,s=e.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 t},r.prototype.contain=function(t,e){var r=this.transformCoordToLocal(t,e),n=this.getBoundingRect(),i=this.style;if(t=r[0],e=r[1],n.contain(t,e)){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,t,e)))return!0}if(this.hasFill())return A(a,0,!1,t,e)}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(t){return this.animate("shape",t)},r.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},r.prototype.attrKV=function(e,r){"shape"===e?this.setShape(r):t.prototype.attrKV.call(this,e,r)},r.prototype.setShape=function(t,e){var r=this.shape;return r||(r=this.shape={}),"string"==typeof t?r[t]=e:(0,y.X$)(r,t),this.dirtyShape(),this},r.prototype.shapeChanged=function(){return!!(this.__dirty&b.Dl)},r.prototype.createStyle=function(t){return(0,y.ed)(M,t)},r.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var r=this._normalState;e.shape&&!r.shape&&(r.shape=(0,y.X$)({},this.shape))},r.prototype._applyStateObj=function(e,r,n,i,o,s){if(t.prototype._applyStateObj.call(this,e,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(e,{shape:u},s)}else this.shape=l,this.dirtyShape()}},r.prototype._mergeStates=function(e){for(var r,n=t.prototype._mergeStates.call(this,e),i=0;i<e.length;i++){var a=e[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(t){var e=function(e){function r(r){var n=e.call(this,r)||this;return t.init&&t.init.call(n,r),n}return(0,n.C6)(r,e),r.prototype.getDefaultStyle=function(){return(0,y.o8)(t.style)},r.prototype.getDefaultShape=function(){return(0,y.o8)(t.shape)},r}(r);for(var i in t)"function"==typeof t[i]&&(e.prototype[i]=t[i]);return e},r.initDefaultProps=void((e=r.prototype).type="path",e.strokeContainThreshold=5,e.segmentIgnoreThreshold=0,e.subPixelOptimize=!1,e.autoBatch=!1,e.__dirty=b.M|b.pO|b.Dl),r}(i.Ay)},19845(t,e,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(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,n.C6)(e,t),e.prototype.hasStroke=function(){return(0,l.n7)(this.style)},e.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},e.prototype.createStyle=function(t){return(0,o.ed)(c,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){return this._rect||(this._rect=(0,l.Xf)(this.style)),this._rect},e.initDefaultProps=void(e.prototype.dirtyRectTolerance=10),e}(i.Ay);u.prototype.type="tspan",e.A=u},32322(t,e,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(t){function e(e){var r=t.call(this)||this;return r.type="text",r._children=[],r._defaultStyle=d,r.attr(e),r}return(0,n.C6)(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e<this._children.length;e++){var r=this._children[e];r.zlevel=this.zlevel,r.z=this.z,r.z2=this.z2,r.culling=this.culling,r.cursor=this.cursor,r.invisible=this.invisible}},e.prototype.updateTransform=function(){var e=this.innerTransformable;e?(e.updateTransform(),e.transform&&(this.transform=e.transform)):t.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(e){var r=this.innerTransformable;return r?r.getLocalTransform(e):t.prototype.getLocalTransform.call(this,e)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),t.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){var t;this._childCursor=0,M(t=this.style),(0,o.__)(t.rich,M),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var r=0;r<this._children.length;r++)this._children[r].__zr=e},e.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var r=0;r<this._children.length;r++)this._children[r].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new u.Ay(0,0,0,0),e=this._children,r=[],n=null,i=0;i<e.length;i++){var a=e[i],o=a.getBoundingRect(),s=a.getLocalTransform(r);s?(t.copy(o),t.applyTransform(s),(n=n||t.clone()).union(t)):(n=n||o.clone()).union(o)}this._rect=n||t}return this._rect},e.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||d},e.prototype.setTextContent=function(t){},e.prototype._mergeStyle=function(t,e){if(!e)return t;var r=e.rich,n=t.rich||r&&{};return(0,o.X$)(t,e),r&&n?(this._mergeRich(n,r),t.rich=n):n&&(t.rich=n),t},e.prototype._mergeRich=function(t,e){for(var r=(0,o.HP)(e),n=0;n<r.length;n++){var i=r[n];t[i]=t[i]||{},(0,o.X$)(t[i],e[i])}},e.prototype.getAnimationStyleProps=function(){return m},e.prototype._getOrCreateChild=function(t){var e=this._children[this._childCursor];return e&&e instanceof t||(e=new t),this._children[this._childCursor++]=e,e.__zr=this.__zr,e.parent=this,e},e.prototype._updatePlainTexts=function(){var t=this.style,e=t.font||p.OH,r=t.padding,n=this._defaultStyle,o=t.x||0,l=t.y||0,c=t.align||n.align||"left",u=t.verticalAlign||n.verticalAlign||"top";(0,i.Ss)(f,n.overflowRect,o,l,c,u),o=f.baseX,l=f.baseY;var h=N(t),d=(0,i.j_)(h,t,f.outerWidth,f.outerHeight),m=L(t),g=!!t.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(t,t,_,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,I=!1,C=!1,k=w("fill"in t?t.fill:(C=!0,n.fill)),F=S("stroke"in t?t.stroke:g||n.autoStroke&&!C?null:(P=2,I=!0,n.stroke)),X=t.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=t.opacity,V.strokeFirst=!0,X&&(V.shadowBlur=t.textShadowBlur||0,V.shadowColor=t.textShadowColor||"transparent",V.shadowOffsetX=t.textShadowOffsetX||0,V.shadowOffsetY=t.textShadowOffsetY||0),V.stroke=F,V.fill=k,F&&(V.lineWidth=t.lineWidth||P,V.lineDash=t.lineDash,V.lineDashOffset=t.lineDashOffset||0),V.font=e,b(V,t),M+=R,W.setBoundingRect((0,i.xu)(V,d.contentWidth,d.calculatedLineHeight,I?0:null))}},e.prototype._updateRichTexts=function(){var t=this.style,e=this._defaultStyle,r=t.align||e.align,n=t.verticalAlign||e.verticalAlign,a=t.x||0,o=t.y||0;(0,i.Ss)(f,e.overflowRect,a,o,r,n),a=f.baseX,o=f.baseY;var l=N(t),c=(0,i.FQ)(l,t,f.outerWidth,f.outerHeight,r),u=c.width,h=c.outerWidth,p=c.outerHeight,d=t.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;L(t)&&this._renderBackground(t,t,m,g,h,p);for(var R=!!t.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,I=S-1,C=void 0;_<S&&(!(C=M[_]).align||"left"===C.align);)this._placeToken(C,t,w,y,T,"left",R),O-=C.width,T+=C.width,_++;for(;I>=0&&"right"===(C=M[I]).align;)this._placeToken(C,t,w,y,P,"right",R),O-=C.width,P-=C.width,I--;for(T+=(u-(T-A)-(v-P)-O)/2;_<=I;)C=M[_],this._placeToken(C,t,w,y,T+C.width/2,"center",R),T+=C.width,_++;y+=w}},e.prototype._placeToken=function(t,e,r,n,s,l,c){var u=e.rich[t.styleName]||{};u.text=t.text;var h=t.verticalAlign,d=n+r/2;"top"===h?d=n+t.height/2:"bottom"===h&&(d=n+r-t.height/2),!t.isLineHolder&&L(u)&&this._renderBackground(u,e,"right"===l?s-t.width:"center"===l?s-t.width/2:s,d-t.height/2,t.width,t.height);var f=!!u.backgroundColor,m=t.textPadding;m&&(s=O(s,l,m),d-=t.height/2-m[0]-t.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 e?e.fill:(v=!0,y.fill)),N=S("stroke"in u?u.stroke:"stroke"in e?e.stroke:f||c||y.autoStroke&&!v?null:(R=2,x=!0,y.stroke)),_=u.textShadowBlur>0||e.textShadowBlur>0;A.text=t.text,A.x=s,A.y=d,_&&(A.shadowBlur=u.textShadowBlur||e.textShadowBlur||0,A.shadowColor=u.textShadowColor||e.textShadowColor||"transparent",A.shadowOffsetX=u.textShadowOffsetX||e.textShadowOffsetX||0,A.shadowOffsetY=u.textShadowOffsetY||e.textShadowOffsetY||0),A.textAlign=l,A.textBaseline="middle",A.font=t.font||p.OH,A.opacity=(0,o.WV)(u.opacity,e.opacity,1),b(A,u),N&&(A.lineWidth=(0,o.WV)(u.lineWidth,e.lineWidth,R),A.lineDash=(0,o.bZ)(u.lineDash,e.lineDash),A.lineDashOffset=e.lineDashOffset||0,A.stroke=N),M&&(A.fill=M),g.setBoundingRect((0,i.xu)(A,t.contentWidth,t.contentHeight,x?0:null))},e.prototype._renderBackground=function(t,e,r,n,i,a){var s,u,h=t.backgroundColor,p=t.borderWidth,d=t.borderColor,f=h&&h.image,m=h&&!f,g=t.borderRadius,A=this;if(m||t.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)(t.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)(t.strokeOpacity,1),v.lineDash=t.borderDash,v.lineDashOffset=t.borderDashOffset||0,s.strokeContainThreshold=0,s.hasFill()&&s.hasStroke()&&(v.strokeFirst=!0,v.lineWidth*=2)}var b=(s||u).style;b.shadowBlur=t.shadowBlur||0,b.shadowColor=t.shadowColor||"transparent",b.shadowOffsetX=t.shadowOffsetX||0,b.shadowOffsetY=t.shadowOffsetY||0,b.opacity=(0,o.WV)(t.opacity,e.opacity,1)},e.makeFont=function(t){var e="";return x(t)&&(e=[t.fontStyle,t.fontWeight,R(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),e&&(0,o.Bq)(e)||t.textFont||t.font},e}(h.Ay),A={left:!0,right:1,center:1},y={top:1,bottom:1,middle:1},v=["fontStyle","fontWeight","fontSize","fontFamily"];function R(t){return"string"==typeof t&&(-1!==t.indexOf("px")||-1!==t.indexOf("rem")||-1!==t.indexOf("em"))?t:isNaN(+t)?p.gI+"px":t+"px"}function b(t,e){for(var r=0;r<v.length;r++){var n=v[r],i=e[n];null!=i&&(t[n]=i)}}function x(t){return null!=t.fontSize||t.fontFamily||t.fontWeight}function M(t){if(t){t.font=g.makeFont(t);var e=t.align;"middle"===e&&(e="center"),t.align=null==e||A[e]?e:"left";var r=t.verticalAlign;"center"===r&&(r="middle"),t.verticalAlign=null==r||y[r]?r:"top",t.padding&&(t.padding=(0,o.QX)(t.padding))}}function S(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function w(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function O(t,e,r){return"right"===e?t-r[1]:"center"===e?t+r[3]/2-r[1]/2:t+r[3]}function N(t){var e=t.text;return null!=e&&(e+=""),e}function L(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}e.Ay=g,r.d(e,{I5:()=>R,XE:()=>x})},56448(t,e,r){r.d(e,{Dl:()=>4,M:()=>1,pO:()=>2})},12191(t,e,r){var n=r(60501),i=r(59741),a=new n.Ay(50);function o(t){if("string"!=typeof t)return t;var e=a.get(t);return e&&e.image}function s(t,e,r,n,o){if(!t)return e;if("string"!=typeof t)return t;if(e&&e.__zrImageSrc===t||!r)return e;var s=a.get(t),u={hostEl:r,cb:n,cbPayload:o};return s?c(e=s.image)||s.pending.push(u):((e=i.yh.loadImage(t,l,l)).__zrImageSrc=t,a.put(t,e.__cachedImgObj={image:e,pending:[u]})),e}function l(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var r=t.pending[e],n=r.cb;n&&n(this,r.cbPayload),r.hostEl.dirty()}t.pending.length=0}function c(t){return t&&t.width&&t.height}r.d(e,{OD:()=>s,SR:()=>o,xA:()=>c})},62406(t,e,r){var n=r(12191),i=r(98026),a=r(45558),o=r(29308),s=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function l(t,e,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)(e),c=l.asciiCharWidth;o.placeholder=(0,i.bZ)(n.placeholder,"");for(var u=t=Math.max(0,t-1),h=0;h<s&&u>=c;h++)u-=c;var p=(0,a.l8)(l,r);return p>u&&(r="",p=0),u=t-p,o.ellipsis=r,o.ellipsisWidth=p,o.contentWidth=u,o.containerWidth=t,o}function c(t,e,r){var n=r.containerWidth,i=r.contentWidth,o=r.fontMeasureInfo;if(!n){t.textLine="",t.isTruncated=!1;return}var s=(0,a.l8)(o,e);if(s<=n){t.textLine=e,t.isTruncated=!1;return}for(var l=0;;l++){if(s<=i||l>=r.maxIterations){e+=r.ellipsis;break}var c=0===l?function(t,e,r){for(var n=0,i=0,o=t.length;i<o&&n<e;i++)n+=(0,a.JK)(r,t.charCodeAt(i));return i}(e,i,o):s>0?Math.floor(e.length*i/s):0;e=e.substr(0,c),s=(0,a.l8)(o,e)}""===e&&(e=r.placeholder),t.textLine=e,t.isTruncated=!0}function u(t,e,r,n){var o,s=b(t),u=e.overflow,h=e.padding,p=h?h[1]+h[3]:0,d=h?h[0]+h[2]:0,f=e.font,m=(0,a.ks)(f),g=(0,i.bZ)(e.lineHeight,m),y="truncate"===e.lineOverflow,v=!1,R=e.width;null==R&&null!=r&&(R=r-p);var x=e.height;null==x&&null!=n&&(x=n-d);var M=(o=null!=R&&("break"===u||"breakAll"===u)?s?A(s,e.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,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),O={},N=0;N<o.length;N++)c(O,o[N],w),o[N]=O.textLine,v=v||O.isTruncated;for(var L=x,_=0,T=(0,a.Qw)(f),N=0;N<o.length;N++)_=Math.max((0,a.l8)(T,o[N]),_);null==R&&(R=_);var P=R;return L+=d,{lines:o,height:x,outerWidth:P+=p,outerHeight:L,lineHeight:g,calculatedLineHeight:m,contentWidth:_,contentHeight:M,width:R,isTruncated:v}}var h=function(){},p=function(t){this.tokens=[],t&&(this.tokens=t)},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(t,e,r,o,u){var h,p=new d,f=b(t);if(!f)return p;var g=e.padding,A=g?g[1]+g[3]:0,y=g?g[0]+g[2]:0,v=e.width;null==v&&null!=r&&(v=r-A);var R=e.height;null==R&&null!=o&&(R=o-y);for(var x=e.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),e,M),m(p,h[2],e,M,h[1]),S=s.lastIndex}S<f.length&&m(p,f.substring(S,f.length),e,M);var O=[],N=0,L=0,_="truncate"===x,T="truncate"===e.lineOverflow,P={};function I(t,e,r){t.width=e,t.lineHeight=r,N+=r,L=Math.max(L,e)}l:for(var C=0;C<p.lines.length;C++){for(var k=p.lines[C],F=0,X=0,U=0;U<k.tokens.length;U++){var W=k.tokens[U],V=W.styleName&&e.rich[W.styleName]||{},E=W.textPadding=V.padding,Y=E?E[1]+E[3]:0,D=W.font=V.font||e.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,e.lineHeight,Q),W.align=V&&V.align||u,W.verticalAlign=V&&V.verticalAlign||"middle",T&&null!=R&&N+W.lineHeight>R){var Z=p.lines.length;U>0?(k.tokens=k.tokens.slice(0,U),I(k,X,F),p.lines=p.lines.slice(0,C+1)):p.lines=p.lines.slice(0,C),p.isTruncated=p.isTruncated||p.lines.length<Z;break l}var B=V.width,K=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(K){var $=V.backgroundColor,G=$&&$.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?!K||H<Y?(W.text="",W.width=W.contentWidth=0):(!function(t,e,r,n,i,a){if(!r){t.text="",t.isTruncated=!1;return}var o=(e+"").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;t.text=o.join("\n"),t.isTruncated=s}(P,W.text,H-Y,D,e.ellipsis,{minChar:e.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))}I(k,X,F)}p.outerWidth=p.width=(0,i.bZ)(v,L),p.outerHeight=p.height=(0,i.bZ)(R,N),p.contentHeight=N,p.contentWidth=L,p.outerWidth+=A,p.outerHeight+=y;for(var C=0;C<O.length;C++){var W=O[C],z=W.percentWidth;W.width=parseInt(z,10)/100*p.width}return p}function m(t,e,r,n,i){var o,s,l=""===e,c=i&&r.rich[i]||{},u=t.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=e.split("\n"),f=!0),n.accumWidth=y}else{var v=A(e,d,n.width,n.breakAll,n.accumWidth);n.accumWidth=v.accumWidth+g,s=v.linesWidths,o=v.lines}}o||(o=e.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(t,e){return t[e]=!0,t},{});function A(t,e,r,n,i){for(var o=[],s=[],l="",c="",u=0,h=0,p=(0,a.Qw)(e),d=0;d<t.length;d++){var f=t.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(t){var e;return(!((e=t.charCodeAt(0))>=32)||!(e<=591))&&(!(e>=880)||!(e<=4351))&&(!(e>=4608)||!(e<=5119))&&(!(e>=7680)||!(e<=8303))||!!g[t]}(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(t,e,r,n,i,s){if(t.baseX=r,t.baseY=n,t.outerWidth=t.outerHeight=null,e){var l=2*e.width,c=2*e.height;o.Ay.set(v,(0,a.ll)(r,l,i),(0,a.sZ)(n,c,s),l,c),o.Ay.intersect(e,v,null,R);var u=R.outIntersectRect;t.outerWidth=u.width,t.outerHeight=u.height,t.baseX=(0,a.ll)(u.x,u.width,i,!0),t.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(t){return null!=t?t+="":t=""}function x(t){var e=b(t.text),r=t.font;return M(t,(0,a.l8)((0,a.Qw)(r),e),(0,a.ks)(r),null)}function M(t,e,r,n){var i=new o.Ay((0,a.ll)(t.x||0,e,t.textAlign),(0,a.sZ)(t.y||0,r,t.textBaseline),e,r),s=null!=n?n:S(t)?t.lineWidth:0;return s>0&&(i.x-=s/2,i.y-=s/2,i.width+=s,i.height+=s),i}function S(t){var e=t.stroke;return null!=e&&"none"!==e&&t.lineWidth>0}r.d(e,{FQ:()=>f,Ss:()=>y,Xf:()=>x,j_:()=>u,n7:()=>S,xu:()=>M})},94825(t,e,r){r.d(e,{U:()=>i});var n=r(83509);function i(t,e,r){var i=e.smooth,a=e.points;if(a&&a.length>=2){if(i){var o=function(t,e,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=t.length;d<f;d++)(0,n.jk)(s,s,t[d]),(0,n.T9)(l,l,t[d]);(0,n.jk)(s,s,i[0]),(0,n.T9)(l,l,i[1])}for(var d=0,f=t.length;d<f;d++){var m=t[d];if(r)a=t[d?d-1:f-1],o=t[(d+1)%f];else if(0===d||d===f-1){c.push((0,n.o8)(t[d]));continue}else a=t[d-1],o=t[d+1];(0,n.jb)(u,o,a),(0,n.hs)(u,u,e);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,e.smoothConstraint);t.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];t.bezierCurveTo(c[0],c[1],u[0],u[1],h[0],h[1])}}else{t.moveTo(a[0][0],a[0][1]);for(var l=1,p=a.length;l<p;l++)t.lineTo(a[l][0],a[l][1])}r&&t.closePath()}}},14865(t,e,r){var n=Math.round;function i(t,e,r){if(e){var i=e.x1,a=e.x2,s=e.y1,l=e.y2;t.x1=i,t.x2=a,t.y1=s,t.y2=l;var c=r&&r.lineWidth;return c&&(n(2*i)===n(2*a)&&(t.x1=t.x2=o(i,c,!0)),n(2*s)===n(2*l)&&(t.y1=t.y2=o(s,c,!0))),t}}function a(t,e,r){if(e){var n=e.x,i=e.y,a=e.width,s=e.height;t.x=n,t.y=i,t.width=a,t.height=s;var l=r&&r.lineWidth;return l&&(t.x=o(n,l,!0),t.y=o(i,l,!0),t.width=Math.max(o(n+a,l,!1)-t.x,+(0!==a)),t.height=Math.max(o(i+s,l,!1)-t.y,+(0!==s))),t}}function o(t,e,r){if(!e)return t;var i=n(2*t);return(i+n(e))%2==0?i/2:(i+(r?1:-1))/2}r.d(e,{M7:()=>o,Op:()=>a,eB:()=>i})},43471(t,e,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(t){function e(e){return t.call(this,e)||this}return(0,n.C6)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new a},e.prototype.buildPath=function(t,e){var r=e.cx,n=e.cy,i=Math.max(e.r,0),a=e.startAngle,o=e.endAngle,s=e.clockwise,l=Math.cos(a),c=Math.sin(a);t.moveTo(l*i+r,c*i+n),t.arc(r,n,i,a,o,!s)},e}(i.Ay);o.prototype.type="arc",e.A=o},31571(t,e,r){var n=r(15727),i=r(87691),a=function(){this.cx=0,this.cy=0,this.r=0},o=function(t){function e(e){return t.call(this,e)||this}return(0,n.C6)(e,t),e.prototype.getDefaultShape=function(){return new a},e.prototype.buildPath=function(t,e){t.moveTo(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI)},e}(i.Ay);o.prototype.type="circle",e.A=o},82861(t,e,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(t){function e(e){return t.call(this,e)||this}return(0,n.C6)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new s},e.prototype.buildPath=function(t,e){if(this.subPixelOptimize){var r,n,i,s,l=(0,a.eB)(o,e,this.style);r=l.x1,n=l.y1,i=l.x2,s=l.y2}else r=e.x1,n=e.y1,i=e.x2,s=e.y2;var c=e.percent;0!==c&&(t.moveTo(r,n),c<1&&(i=r*(1-c)+i*c,s=n*(1-c)+s*c),t.lineTo(i,s))},e.prototype.pointAt=function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]},e}(i.Ay);l.prototype.type="line",e.A=l},52505(t,e,r){var n=r(15727),i=r(87691),a=r(94825),o=function(){this.points=null,this.smooth=0,this.smoothConstraint=null},s=function(t){function e(e){return t.call(this,e)||this}return(0,n.C6)(e,t),e.prototype.getDefaultShape=function(){return new o},e.prototype.buildPath=function(t,e){a.U(t,e,!0)},e}(i.Ay);s.prototype.type="polygon",e.A=s},39195(t,e,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(t){function e(e){return t.call(this,e)||this}return(0,n.C6)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new o},e.prototype.buildPath=function(t,e){a.U(t,e,!1)},e}(i.Ay);s.prototype.type="polyline",e.A=s},60866(t,e,r){r.d(e,{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(t){function e(e){return t.call(this,e)||this}return(0,n.C6)(e,t),e.prototype.getDefaultShape=function(){return new o},e.prototype.buildPath=function(t,e){if(this.subPixelOptimize){var r,n,i,o,l,c,u,h,p,d,f,m,g,A,y,v=(0,a.Op)(s,e,this.style);m=v.x,g=v.y,A=v.width,y=v.height,v.r=e.r,e=v}else m=e.x,g=e.y,A=e.width,y=e.height;e.r?(u=(r=e).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),t.moveTo(u+n,h),t.lineTo(u+p-i,h),0!==i&&t.arc(u+p-i,h+i,i,-Math.PI/2,0),t.lineTo(u+p,h+d-o),0!==o&&t.arc(u+p-o,h+d-o,o,0,Math.PI/2),t.lineTo(u+l,h+d),0!==l&&t.arc(u+l,h+d-l,l,Math.PI/2,Math.PI),t.lineTo(u,h+n),0!==n&&t.arc(u+n,h+n,n,Math.PI,1.5*Math.PI),t.closePath()):t.rect(m,g,A,y)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(i.Ay);l.prototype.type="rect";var c=l},42933(t,e,r){var n=r(15727),i=r(87691),a=function(){this.cx=0,this.cy=0,this.r=0,this.r0=0},o=function(t){function e(e){return t.call(this,e)||this}return(0,n.C6)(e,t),e.prototype.getDefaultShape=function(){return new a},e.prototype.buildPath=function(t,e){var r=e.cx,n=e.cy,i=2*Math.PI;t.moveTo(r+e.r,n),t.arc(r,n,e.r,0,i,!1),t.moveTo(r+e.r0,n),t.arc(r,n,e.r0,0,i,!0)},e}(i.Ay);o.prototype.type="ring",e.A=o},13818(t,e,r){r.d(e,{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(t,e,r,n,i,a,o){var s=t-r,l=e-n,c=(o?a:-a)/d(s*s+l*l),u=c*l,h=-c*s,p=t+u,m=e+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,N=(-S*R-b*w)/x,L=(S*b+R*w)/x,_=(-S*R+b*w)/x,T=O-y,P=N-v,I=L-y,C=_-v;return T*T+P*P>I*I+C*C&&(O=L,N=_),{cx:O,cy:N,x0:-u,y0:-h,x1:O*(i/M-1),y1:N*(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(t){function e(e){return t.call(this,e)||this}return(0,n.C6)(e,t),e.prototype.getDefaultShape=function(){return new A},e.prototype.buildPath=function(t,e){!function(t,e){var r,n=f(e.r,0),i=f(e.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=e.startAngle,b=e.endAngle;if(!(isNaN(R)||isNaN(b))){var x=e.cx,M=e.cy,S=!!e.clockwise,w=p(b-R),O=w>s&&w%s;if(O>1e-4&&(w=O),n>1e-4)if(w>s-1e-4)t.moveTo(x+n*c(R),M+n*l(R)),t.arc(x,M,n,R,b,!S),i>1e-4&&(t.moveTo(x+i*c(b),M+i*l(b)),t.arc(x,M,i,b,R,S));else{var N=void 0,L=void 0,_=void 0,T=void 0,P=void 0,I=void 0,C=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),Z=n*l(R),B=i*c(b),K=i*l(b),$=w>1e-4;if($){var G=e.cornerRadius;G&&(N=(r=function(t){var e;if((0,a.cy)(t)){var r=t.length;if(!r)return t;e=1===r?[t[0],t[0],0,0]:2===r?[t[0],t[0],t[1],t[1]]:3===r?t.concat(t[2]):t}else e=[t,t,t,t];return e}(G))[0],L=r[1],_=r[2],T=r[3]);var H=p(n-i)/2;if(P=m(H,_),I=m(H,T),C=m(H,N),k=m(H,L),U=F=f(P,I),W=X=f(C,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(t,e,r,n,i,a,o,s){var l=r-t,c=n-e,u=o-i,h=s-a,p=h*l-u*c;if(!(p*p<1e-4))return p=(u*(e-a)-h*(t-i))/p,[t+p*l,e+p*c]}(Q,Z,Y,D,V,E,B,K);if(z){var J=Q-z[0],j=Z-z[1],q=V-z[0],tt=E-z[1],te=1/l(u((J*q+j*tt)/(d(J*J+j*j)*d(q*q+tt*tt)))/2),tr=d(z[0]*z[0]+z[1]*z[1]);U=m(F,(n-tr)/(te+1)),W=m(X,(i-tr)/(te-1))}}}if($)if(U>1e-4){var tn=m(_,U),ti=m(T,U),ta=g(Y,D,Q,Z,n,tn,S),to=g(V,E,B,K,n,ti,S);t.moveTo(x+ta.cx+ta.x0,M+ta.cy+ta.y0),U<F&&tn===ti?t.arc(x+ta.cx,M+ta.cy,U,h(ta.y0,ta.x0),h(to.y0,to.x0),!S):(tn>0&&t.arc(x+ta.cx,M+ta.cy,tn,h(ta.y0,ta.x0),h(ta.y1,ta.x1),!S),t.arc(x,M,n,h(ta.cy+ta.y1,ta.cx+ta.x1),h(to.cy+to.y1,to.cx+to.x1),!S),ti>0&&t.arc(x+to.cx,M+to.cy,ti,h(to.y1,to.x1),h(to.y0,to.x0),!S))}else t.moveTo(x+Q,M+Z),t.arc(x,M,n,R,b,!S);else t.moveTo(x+Q,M+Z);if(i>1e-4&&$)if(W>1e-4){var tn=m(N,W),ti=m(L,W),ta=g(B,K,V,E,i,-ti,S),to=g(Q,Z,Y,D,i,-tn,S);t.lineTo(x+ta.cx+ta.x0,M+ta.cy+ta.y0),W<X&&tn===ti?t.arc(x+ta.cx,M+ta.cy,W,h(ta.y0,ta.x0),h(to.y0,to.x0),!S):(ti>0&&t.arc(x+ta.cx,M+ta.cy,ti,h(ta.y0,ta.x0),h(ta.y1,ta.x1),!S),t.arc(x,M,i,h(ta.cy+ta.y1,ta.cx+ta.x1),h(to.cy+to.y1,to.cx+to.x1),S),tn>0&&t.arc(x+to.cx,M+to.cy,tn,h(to.y1,to.x1),h(to.y0,to.x0),!S))}else t.lineTo(x+B,M+K),t.arc(x,M,i,b,R,S);else t.lineTo(x+B,M+K)}else t.moveTo(x,M);t.closePath()}}}(t,e)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(i.Ay);y.prototype.type="sector";var v=y},3455(t,e,r){var n=r(98026),i=r(47698),a=r(49705).hp,o=Math.round;function s(t){var e;if(t&&"transparent"!==t){if("string"==typeof t&&t.indexOf("rgba")>-1){var r=(0,i.qg)(t);r&&(t="rgb("+r[0]+","+r[1]+","+r[2]+")",e=r[3])}}else t="none";return{color:t,opacity:null==e?1:e}}function l(t){return t<1e-4&&t>-1e-4}function c(t){return o(1e3*t)/1e3}function u(t){return o(1e4*t)/1e4}function h(t){return"matrix("+c(t[0])+","+c(t[1])+","+c(t[2])+","+c(t[3])+","+u(t[4])+","+u(t[5])+")"}var p={left:"start",right:"end",center:"middle",middle:"middle"};function d(t,e,r){return"top"===r?t+=e/2:"bottom"===r&&(t-=e/2),t}function f(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY)}function m(t){var e=t.style,r=t.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),r[0],r[1]].join(",")}function g(t){return t&&!!t.image}function A(t){return g(t)||t&&!!t.svgElement}function y(t){return"linear"===t.type}function v(t){return"radial"===t.type}function R(t){return t&&("linear"===t.type||"radial"===t.type)}function b(t){return"url(#"+t+")"}function x(t){var e=t.getGlobalScale();return Math.max(Math.ceil(Math.log(Math.max(e[0],e[1]))/Math.log(10)),1)}function M(t){var e=t.x||0,r=t.y||0,i=(t.rotation||0)*n.lI,a=(0,n.bZ)(t.scaleX,1),s=(0,n.bZ)(t.scaleY,1),l=t.skewX||0,c=t.skewY||0,u=[];return(e||r)&&u.push("translate("+e+"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(t){return a.from(t).toString("base64")}:"function"==typeof btoa&&"function"==typeof unescape&&"function"==typeof encodeURIComponent?function(t){return btoa(unescape(encodeURIComponent(t)))}:function(t){return null};r.d(e,{$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(t,e,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(t){return(t=Math.round(t))<0?0:t>255?255:t}function s(t){return t<0?0:t>1?1:t}function l(t){return t.length&&"%"===t.charAt(t.length-1)?o(parseFloat(t)/100*255):o(parseInt(t,10))}function c(t){return t.length&&"%"===t.charAt(t.length-1)?s(parseFloat(t)/100):s(parseFloat(t))}function u(t,e,r){return(r<0?r+=1:r>1&&(r-=1),6*r<1)?t+(e-t)*r*6:2*r<1?e:3*r<2?t+(e-t)*(2/3-r)*6:t}function h(t,e,r,n,i){return t[0]=e,t[1]=r,t[2]=n,t[3]=i,t}function p(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var d=new n.Ay(20),f=null;function m(t,e){f&&p(f,e),f=d.put(t,f||e.slice())}function g(t,e){if(t){e=e||[];var r=d.get(t);if(r)return p(e,r);var n=(t+="").replace(/ /g,"").toLowerCase();if(n in a)return p(e,a[n]),m(t,e),e;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(e,(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(t,e),e):void h(e,0,0,0,1)}if(7===i||9===i){var o=parseInt(n.slice(1,7),16);return o>=0&&o<=0xffffff?(h(e,(0xff0000&o)>>16,(65280&o)>>8,255&o,9===i?parseInt(n.slice(7),16)/255:1),m(t,e),e):void h(e,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(e,+g[0],+g[1],+g[2],1):h(e,0,0,0,1);y=c(g.pop());case"rgb":if(g.length>=3)return h(e,l(g[0]),l(g[1]),l(g[2]),3===g.length?y:c(g[3])),m(t,e),e;return void h(e,0,0,0,1);case"hsla":if(4!==g.length)return void h(e,0,0,0,1);return g[3]=c(g[3]),A(g,e),m(t,e),e;case"hsl":if(3!==g.length)return void h(e,0,0,0,1);return A(g,e),m(t,e),e;default:return}}h(e,0,0,0,1)}}function A(t,e){var r=(parseFloat(t[0])%360+360)%360/360,n=c(t[1]),i=c(t[2]),a=i<=.5?i*(n+1):i+n-i*n,s=2*i-a;return h(e=e||[],o(255*u(s,a,r+1/3)),o(255*u(s,a,r)),o(255*u(s,a,r-1/3)),1),4===t.length&&(e[3]=t[3]),e}function y(t,e){var r=g(t);if(r){for(var n=0;n<3;n++)e<0?r[n]=r[n]*(1-e)|0:r[n]=(255-r[n])*e+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(t,e,r){if(e&&e.length&&t>=0&&t<=1){var n,i,a,l,c=t*(e.length-1),u=Math.floor(c),h=Math.ceil(c),p=g(e[u]),d=g(e[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(t,e,r,n){var a,o=g(t);if(t)return o=function(t){if(t){var e,r,n=t[0]/255,i=t[1]/255,a=t[2]/255,o=Math.min(n,i,a),s=Math.max(n,i,a),l=s-o,c=(s+o)/2;if(0===l)e=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?e=p-h:i===s?e=1/3+u-p:a===s&&(e=2/3+h-u),e<0&&(e+=1),e>1&&(e-=1)}var d=[360*e,r,c];return null!=t[3]&&d.push(t[3]),d}}(o),null!=e&&(o[0]=(a=Math.round(a=(0,i.Tn)(e)?e(o[0]):e))<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(t,e){if(t&&t.length){var r=t[0]+","+t[1]+","+t[2];return("rgba"===e||"hsva"===e||"hsla"===e)&&(r+=","+t[3]),e+"("+r+")"}}function x(t,e){var r=g(t);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*e:0}var M=new n.Ay(100);function S(t){if((0,i.Kg)(t)){var e=M.get(t);return e||(e=y(t,-.1),M.put(t,e)),e}if((0,i.C7)(t)){var r=(0,i.X$)({},t);return r.colorStops=(0,i.Tj)(t.colorStops,function(t){return{offset:t.offset,color:y(t.color,-.1)}}),r}return t}r.d(e,{As:()=>b,Cc:()=>v,P:()=>S,Yu:()=>R,fN:()=>x,qg:()=>g})},95068(t,e,r){r.d(e,{N1:()=>ts,Ts:()=>ta,fI:()=>to,jW:()=>tl});var n,i,a,o,s=r(38123),l=r(98026),c=r(15727),u=r(83509),h=function(t,e){this.target=t,this.topTarget=e&&e.topTarget},p=function(){function t(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(t){for(var e=t.target;e&&!e.draggable;)e=e.parent||e.__hostTarget;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new h(e,t),"dragstart",t.event))},t.prototype._drag=function(t){var e=this._draggingTarget;if(e){var r=t.offsetX,n=t.offsetY,i=r-this._x,a=n-this._y;this._x=r,this._y=n,e.drift(i,a,t),this.handler.dispatchToElement(new h(e,t),"drag",t.event);var o=this.handler.findHover(r,n,e).target,s=this._dropTarget;this._dropTarget=o,e!==o&&(s&&o!==s&&this.handler.dispatchToElement(new h(s,t),"dragleave",t.event),o&&o!==s&&this.handler.dispatchToElement(new h(o,t),"dragenter",t.event))}},t.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new h(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new h(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},t}(),d=r(57861),f=r(35452),m=function(){function t(){this._track=[]}return t.prototype.recognize=function(t,e,r){return this._doTrack(t,e,r),this._recognize(t)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(t,e,r){var n=t.touches;if(n){for(var i={points:[],touches:[],target:e,event:t},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)}},t.prototype._recognize=function(t){for(var e in A)if(A.hasOwnProperty(e)){var r=A[e](this._track,t);if(r)return r}},t}();function g(t){var e=t[1][0]-t[0][0],r=t[1][1]-t[0][1];return Math.sqrt(e*e+r*r)}var A={pinch:function(t,e){var r=t.length;if(r){var n=(t[r-1]||{}).points,i=(t[r-2]||{}).points||n;if(i&&i.length>1&&n&&n.length>1){var a=g(n)/g(i);isFinite(a)||(a=1),e.pinchScale=a;var o=[(n[0][0]+n[1][0])/2,(n[0][1]+n[1][1])/2];return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:t[0].target,event:e}}}}},y=r(29308),v="silent";function R(){f.ds(this.event)}var b=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return(0,c.C6)(e,t),e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(d.A),x=function(t,e){this.x=t,this.y=e},M=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],S=new y.Ay(0,0,0,0),w=function(t){function e(e,r,n,i,a){var o=t.call(this)||this;return o._hovered=new x(0,0),o.storage=e,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)(e,t),e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(l.__(M,function(e){t.on&&t.on(e,this[e],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var e=t.zrX,r=t.zrY,n=N(this,e,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(e,r):this.findHover(e,r),s=o.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),a&&s!==a&&this.dispatchToElement(i,"mouseout",t),this.dispatchToElement(o,"mousemove",t),s&&s!==a&&this.dispatchToElement(o,"mouseover",t)},e.prototype.mouseout=function(t){var e=t.zrEventControl;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new x(0,0)},e.prototype.dispatch=function(t,e){var r=this[t];r&&r.call(this,e)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},e.prototype.dispatchToElement=function(t,e,r){var n=(t=t||{}).target;if(!n||!n.silent){for(var i,a="on"+e,o={type:e,event:r,target:(i=t).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(e,o),n=n.__hostTarget?n.__hostTarget:n.parent,!o.cancelBubble););!o.cancelBubble&&(this.trigger(e,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(t){"function"==typeof t[a]&&t[a].call(t,o),t.trigger&&t.trigger(e,o)}))}},e.prototype.findHover=function(t,e,r){var n=this.storage.getDisplayList(),i=new x(t,e);if(O(n,i,t,e,r),this._pointerSize&&!i.target){for(var a=[],o=this._pointerSize,s=o/2,l=new y.Ay(t-s,e-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,t+d*Math.cos(f),e+d*Math.sin(f),r),i.target)return i}}return i},e.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new m);var r=this._gestureMgr;"start"===e&&r.clear();var n=r.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if("end"===e&&r.clear(),n){var i=n.type;t.gestureEvent=i;var a=new x;a.target=n.target,this.dispatchToElement(a,i,n.event)}},e}(d.A);function O(t,e,r,n,i){for(var a=t.length-1;a>=0;a--){var o=t[a],s=void 0;if(o!==i&&!o.ignore&&(s=function(t,e,r){if(t[t.rectHover?"rectContain":"contain"](e,r)){for(var n=t,i=void 0,a=!1;n;){if(n.ignoreClip&&(a=!0),!a){var o=n.getClipPath();if(o&&!o.contain(e,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))&&(e.topTarget||(e.topTarget=o),s!==v)){e.target=o;break}}}function N(t,e,r){var n=t.painter;return e<0||e>n.getWidth()||r<0||r>n.getHeight()}l.__(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){w.prototype[t]=function(e){var r,n,i=e.zrX,a=e.zrY,o=N(this,i,a);if("mouseup"===t&&o||(n=(r=this.findHover(i,a)).target),"mousedown"===t)this._downEl=n,this._downPoint=[e.zrX,e.zrY],this._upEl=n;else if("mouseup"===t)this._upEl=n;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||u.xg(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(r,t,e)}});var L=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 I(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var C=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=I}return t.prototype.traverse=function(t,e){for(var r=0;r<this._roots.length;r++)this._roots[r].traverse(t,e)},t.prototype.getDisplayList=function(t,e){e=e||!1;var r=this._displayList;return(t||!r.length)&&this.updateDisplayList(e),r},t.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,r=this._displayList,n=0,i=e.length;n<i;n++)this._updateAndAddDisplayable(e[n],null,t);r.length=this._displayListLen,(0,L.A)(r,I)},t.prototype._updateAndAddDisplayable=function(t,e,r){if(!t.ignore||r){t.beforeUpdate(),t.update(),t.afterUpdate();var n=t.getClipPath(),i=e&&e.length,a=0,o=t.__clipPaths;if(!t.ignoreClip&&(i||n)){if(o||(o=t.__clipPaths=[]),i)for(var s=0;s<e.length;s++)o[a++]=e[s];for(var l=n,c=t;l;)l.parent=c,l.updateTransform(),o[a++]=l,c=l,l=l.getClipPath()}if(o&&(o.length=a),t.childrenRef){for(var u=t.childrenRef(),h=0;h<u.length;h++){var p=u[h];t.__dirty&&(p.__dirty|=_.M),this._updateAndAddDisplayable(p,o,r)}t.__dirty=0}else isNaN(t.z)&&(P(),t.z=0),isNaN(t.z2)&&(P(),t.z2=0),isNaN(t.zlevel)&&(P(),t.zlevel=0),this._displayList[this._displayListLen++]=t;var d=t.getDecalElement&&t.getDecalElement();d&&this._updateAndAddDisplayable(d,o,r);var f=t.getTextGuideLine();f&&this._updateAndAddDisplayable(f,o,r);var m=t.getTextContent();m&&this._updateAndAddDisplayable(m,o,r)}},t.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},t.prototype.delRoot=function(t){if(t instanceof Array){for(var e=0,r=t.length;e<r;e++)this.delRoot(t[e]);return}var n=l.qh(this._roots,t);n>=0&&this._roots.splice(n,1)},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}(),k=r(45825),F=r(18565);function X(){return new Date().getTime()}var U=function(t){function e(e){var r=t.call(this)||this;return r._running=!1,r._time=0,r._pausedTime=0,r._pauseStart=0,r._paused=!1,r.stage=(e=e||{}).stage||{},r}return(0,c.C6)(e,t),e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var e=t.getClip();e&&this.addClip(e)},e.prototype.removeClip=function(t){if(t.animation){var e=t.prev,r=t.next;e?e.next=r:this._head=r,r?r.prev=e:this._tail=e,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},e.prototype.update=function(t){for(var e=X()-this._pausedTime,r=e-this._time,n=this._head;n;){var i=n.next;n.step(e,r)&&(n.ondestroy(),this.removeClip(n)),n=i}this._time=e,!t&&(this.trigger("frame",r),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0,(0,k.A)(function e(){t._running&&((0,k.A)(e),t._paused||t.update())})},e.prototype.start=function(){this._running||(this._time=X(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=X(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=X()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var e=t.next;t.prev=t.next=t.animation=null,t=e}this._head=this._tail=null},e.prototype.isFinished=function(){return null==this._head},e.prototype.animate=function(t,e){e=e||{},this.start();var r=new F.A(t,e.loop);return this.addAnimator(r),r},e}(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(t){var e=t.replace("mouse","pointer");return i.hasOwnProperty(e)?e:t}),{mouse:n,touch:["touchstart","touchend","touchmove"],pointer:a}),E=["mousemove","mouseup"],Y=["pointermove","pointerup"],D=!1;function Q(t){var e=t.pointerType;return"pen"===e||"touch"===e}function Z(t){t&&(t.zrByTouch=!0)}function B(t,e){for(var r=e,n=!1;r&&9!==r.nodeType&&!(n=r.domBelongToZr||r!==e&&r===t.painterRoot);)r=r.parentNode;return n}var K=function(t,e){this.stopPropagation=l.lQ,this.stopImmediatePropagation=l.lQ,this.preventDefault=l.lQ,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY},$={mousedown:function(t){t=(0,f.e0)(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=(0,f.e0)(this.dom,t);var e=this.__mayPointerCapture;e&&(t.zrX!==e[0]||t.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=(0,f.e0)(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){B(this,(t=(0,f.e0)(this.dom,t)).toElement||t.relatedTarget)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){D=!0,t=(0,f.e0)(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){D||(t=(0,f.e0)(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){Z(t=(0,f.e0)(this.dom,t)),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),$.mousemove.call(this,t),$.mousedown.call(this,t)},touchmove:function(t){Z(t=(0,f.e0)(this.dom,t)),this.handler.processGesture(t,"change"),$.mousemove.call(this,t)},touchend:function(t){Z(t=(0,f.e0)(this.dom,t)),this.handler.processGesture(t,"end"),$.mouseup.call(this,t),new Date-this.__lastTouchMoment<300&&$.click.call(this,t)},pointerdown:function(t){$.mousedown.call(this,t)},pointermove:function(t){Q(t)||$.mousemove.call(this,t)},pointerup:function(t){$.mouseup.call(this,t)},pointerout:function(t){Q(t)||$.mouseout.call(this,t)}};l.__(["click","dblclick","contextmenu"],function(t){$[t]=function(e){e=(0,f.e0)(this.dom,e),this.trigger(t,e)}});var G={pointermove:function(t){Q(t)||G.mousemove.call(this,t)},pointerup:function(t){G.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function H(t,e,r,n){t.mounted[e]=r,t.listenerOpts[e]=n,(0,f.q2)(t.domTarget,e,r,n)}function z(t){var e=t.mounted;for(var r in e)e.hasOwnProperty(r)&&(0,f.f)(t.domTarget,r,e[r],t.listenerOpts[r]);t.mounted={}}var J=function(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e},j=function(t){function e(e,r){var n,i,a=t.call(this)||this;return a.__pointerCapturing=!1,a.dom=e,a.painterRoot=r,a._localHandlerScope=new J(e,$),W&&(a._globalHandlerScope=new J(document,G)),i=(n=a._localHandlerScope).domHandlers,s.A.pointerEventsSupported?l.__(V.pointer,function(t){H(n,t,function(e){i[t].call(a,e)})}):(s.A.touchEventsSupported&&l.__(V.touch,function(t){H(n,t,function(e){i[t].call(a,e),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(t){H(n,t,function(e){e=(0,f.mK)(e),n.touching||i[t].call(a,e)})})),a}return(0,c.C6)(e,t),e.prototype.dispose=function(){z(this._localHandlerScope),W&&z(this._globalHandlerScope)},e.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},e.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,W&&this.__pointerCapturing^t){this.__pointerCapturing=t;var e=this._globalHandlerScope;t?function(t,e){s.A.pointerEventsSupported?l.__(Y,r):s.A.touchEventsSupported||l.__(E,r);function r(r){H(e,r,function(n){if(!B(t,(n=(0,f.mK)(n)).target)){var i;i=n,n=(0,f.e0)(t.dom,new K(t,i),!0),e.domHandlers[r].call(t,n)}},{capture:!0})}}(this,e):z(e)}},e}(d.A),q=r(47698),tt=r(73098),te=r(43870),tr={},tn={},ti=function(){function t(t,e,r){var n,i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!1,this._darkMode=!1,r=r||{},this.dom=e,this.id=t;var a=new C,o=r.renderer||"canvas";tr[o]||(o=l.HP(tr)[0]),r.useDirtyRect=null!=r.useDirtyRect&&r.useDirtyRect;var c=new tr[o](e,a,r,t),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 t.prototype.add=function(t){!this._disposed&&t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},t.prototype.remove=function(t){!this._disposed&&t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(t,e){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh())},t.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=function(t){if(!t)return!1;if("string"==typeof t)return(0,q.fN)(t,1)<tt.ps;if(t.colorStops){for(var e=t.colorStops,r=0,n=e.length,i=0;i<n;i++)r+=(0,q.fN)(e[i].color,1);return(r/=n)<tt.ps}return!1}(t))},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(t){this._darkMode=t},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(t){this._disposed||this._refresh({animUpdate:!t,refresh:!0,refreshHover:!1})},t.prototype._refresh=function(t){t.animUpdate&&this.animation.update(!0),this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh({refresh:t.refresh,refreshHover:t.refreshHover}),this._needsRefresh=this._needsRefreshHover=!1},t.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},t.prototype.flush=function(){this._disposed||this._flush(!0)},t.prototype._flush=function(t){var e,r=X(),n=this._needsRefresh,i=this._needsRefreshHover;(n||i)&&(e=!0,this._refresh({animUpdate:t,refresh:n,refreshHover:i}));var a=X();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:a-r})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},t.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._disposed||this._refresh({animUpdate:!1,refresh:!1,refreshHover:!0})},t.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},t.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},t.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},t.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},t.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},t.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},t.prototype.on=function(t,e,r){return this._disposed||this.handler.on(t,e,r),this},t.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},t.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},t.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof te.A&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},t.prototype.dispose=function(){if(!this._disposed){var t;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,t=this.id,delete tn[t]}},t}();function ta(t,e){var r=new ti(l.Os(),t,e);return tn[r.id]=r,r}function to(t,e){tr[t]=e}function ts(t){if("function"==typeof o)return o(t)}function tl(t){o=t}},9897(t,e,r){var n=r(1932);r.d(e,{},{D:t=>(e,r,i)=>(i.setState=(t,r,...i)=>e("function"==typeof t?(0,n.jM)(t):t,r,...i),t(i.setState,r,i))})},69157(t,e,r){r.d(e,{v:()=>o});var n=r(51649);let i=t=>{let e,r=new Set,n=(t,n)=>{let i="function"==typeof t?t(e):t;if(!Object.is(i,e)){let t=e;e=(null!=n?n:"object"!=typeof i||null===i)?i:Object.assign({},e,i),r.forEach(r=>r(e,t))}},i=()=>e,a={setState:n,getState:i,getInitialState:()=>o,subscribe:t=>(r.add(t),()=>r.delete(t))},o=e=t(n,i,a);return a},a=t=>{let e=t?i(t):i,r=t=>(function(t,e=t=>t){let r=n.default.useSyncExternalStore(t.subscribe,n.default.useCallback(()=>e(t.getState()),[t,e]),n.default.useCallback(()=>e(t.getInitialState()),[t,e]));return n.default.useDebugValue(r),r})(e,t);return Object.assign(r,e),r},o=t=>t?a(t):a},88501(t,e,r){r.d(e,{k:()=>a});var n=r(51649);let i=(t,e)=>{let r=t instanceof Map?t:new Map(t.entries()),n=e instanceof Map?e:new Map(e.entries());if(r.size!==n.size)return!1;for(let[t,e]of r)if(!n.has(t)||!Object.is(e,n.get(t)))return!1;return!0};function a(t){let e=n.default.useRef(void 0);return r=>{let n=t(r);return!function(t,e){if(Object.is(t,e))return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e||Object.getPrototypeOf(t)!==Object.getPrototypeOf(e))return!1;if(Symbol.iterator in t&&Symbol.iterator in e){if("entries"in t&&"entries"in e)return i(t,e);let r=t[Symbol.iterator](),n=e[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(t)},{entries:()=>Object.entries(e)})}(e.current,n)?e.current=n:e.current}}}};
|