3368 lines
2.0 MiB
JavaScript
3368 lines
2.0 MiB
JavaScript
|
|
/*
|
||
|
|
THIS IS A GENERATED/BUNDLED FILE BY ESBUILD
|
||
|
|
if you want to view the source, please visit the github repository of this plugin
|
||
|
|
*/
|
||
|
|
|
||
|
|
var BO=Object.create;var Xc=Object.defineProperty;var RO=Object.getOwnPropertyDescriptor;var PO=Object.getOwnPropertyNames;var _O=Object.getPrototypeOf,qO=Object.prototype.hasOwnProperty;var UO=(r,e,t)=>e in r?Xc(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var Dt=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),Sp=(r,e)=>{for(var t in e)Xc(r,t,{get:e[t],enumerable:!0})},wv=(r,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of PO(e))!qO.call(r,n)&&n!==t&&Xc(r,n,{get:()=>e[n],enumerable:!(i=RO(e,n))||i.enumerable});return r};var mr=(r,e,t)=>(t=r!=null?BO(_O(r)):{},wv(e||!r||!r.__esModule?Xc(t,"default",{value:r,enumerable:!0}):t,r)),HO=r=>wv(Xc({},"__esModule",{value:!0}),r);var Se=(r,e,t)=>(UO(r,typeof e!="symbol"?e+"":e,t),t);var Tv=Dt(($se,Dp)=>{"use strict";var jO=Object.prototype.hasOwnProperty,Ri="~";function Zc(){}Object.create&&(Zc.prototype=Object.create(null),new Zc().__proto__||(Ri=!1));function GO(r,e,t){this.fn=r,this.context=e,this.once=t||!1}function Sv(r,e,t,i,n){if(typeof t!="function")throw new TypeError("The listener must be a function");var s=new GO(t,i||r,n),a=Ri?Ri+e:e;return r._events[a]?r._events[a].fn?r._events[a]=[r._events[a],s]:r._events[a].push(s):(r._events[a]=s,r._eventsCount++),r}function mf(r,e){--r._eventsCount===0?r._events=new Zc:delete r._events[e]}function xi(){this._events=new Zc,this._eventsCount=0}xi.prototype.eventNames=function(){var e=[],t,i;if(this._eventsCount===0)return e;for(i in t=this._events)jO.call(t,i)&&e.push(Ri?i.slice(1):i);return Object.getOwnPropertySymbols?e.concat(Object.getOwnPropertySymbols(t)):e};xi.prototype.listeners=function(e){var t=Ri?Ri+e:e,i=this._events[t];if(!i)return[];if(i.fn)return[i.fn];for(var n=0,s=i.length,a=new Array(s);n<s;n++)a[n]=i[n].fn;return a};xi.prototype.listenerCount=function(e){var t=Ri?Ri+e:e,i=this._events[t];return i?i.fn?1:i.length:0};xi.prototype.emit=function(e,t,i,n,s,a){var o=Ri?Ri+e:e;if(!this._events[o])return!1;var l=this._events[o],h=arguments.length,c,u;if(l.fn){switch(l.once&&this.removeListener(e,l.fn,void 0,!0),h){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,t),!0;case 3:return l.fn.call(l.context,t,i),!0;case 4:return l.fn.call(l.context,t,i,n),!0;case 5:return l.fn.call(l.context,t,i,n,s),!0;case 6:return l.fn.call(l.context,t,i,n,s,a),!0}for(u=1,c=new Array(h-1);u<h;u++)c[u-1]=arguments[u];l.fn.apply(l.context,c)}else{var d=l.length,f;for(u=0;u<d;u++)switch(l[u].once&&this.removeListener(e,l[u].fn,void 0,!0),h){case 1:l[u].fn.call(l[u].context);break;case 2:l[u].fn.call(l[u].context,t);break;case 3:l[u].fn.call(l[u].context,t,i);break;case 4:l[u].fn.call(l[u].context,t,i,n);break;default:if(!c)for(f=1,c=new Array(h-1);f<h;f++)c[f-1]=arguments[f];l[u].fn.apply(l[u].context,c)}}return!0};xi.prototype.on=function(e,t,i){return Sv(this,e,t,i,!1)};xi.prototype.once=function(e,t,i){return Sv(this,e,t,i,!0)};xi.prototype.removeListener=function(e,t,i,n){var s=Ri?Ri+e:e;if(!this._events[s])return this;if(!t)return mf(this,s),this;var a=this._events[s];if(a.fn)a.fn===t&&(!n||a.once)&&(!i||a.context===i)&&mf(this,s);else{for(var o=0,l=[],h=a.length;o<h;o++)(a[o].fn!==t||n&&!a[o].once||i&&a[o].context!==i)&&l.push(a[o]);l.length?this._events[s]=l.length===1?l[0]:l:mf(this,s)}return this};xi.prototype.removeAllListeners=function(e){var t;return e?(t=Ri?Ri+e:e,this._events[t]&&mf(this,t)):(this._events=new Zc,this._eventsCount=0),this};xi.prototype.off=xi.prototype.removeListener;xi.prototype.addListener=xi.prototype.on;xi.prefixed=Ri;xi.EventEmitter=xi;typeof Dp!="undefined"&&(Dp.exports=xi)});var $c=Dt((rae,Nv)=>{"use strict";var pf=function(e){return WO(e)&&!YO(e)};function WO(r){return!!r&&typeof r=="object"}function YO(r){var e=Object.prototype.toString.call(r);return e==="[object RegExp]"||e==="[object Date]"||QO(r)}var VO=typeof Symbol=="function"&&Symbol.for,KO=VO?Symbol.for("react.element"):60103;function QO(r){return r.$$typeof===KO}function XO(r){return Array.isArray(r)?[]:{}}function Jc(r,e){var t=e&&e.clone===!0;return t&&pf(r)?W0(XO(r),r,e):r
|
||
|
|
`){let i=new es.default(this.ops),n=new Fr,s=0;for(;i.hasNext();){if(i.peekType()!=="insert")return;let a=i.peek(),o=Ha.default.length(a)-i.peekLength(),l=typeof a.insert=="string"?a.insert.indexOf(t,o)-o:-1;if(l<0)n.push(i.next());else if(l>0)n.push(i.next(l));else{if(e(n,i.next(1).attributes||{},s)===!1)return;s+=1,n=new Fr}}n.length()>0&&e(n,{},s)}invert(e){let t=new Fr;return this.reduce((i,n)=>{if(n.insert)t.delete(Ha.default.length(n));else{if(typeof n.retain=="number"&&n.attributes==null)return t.retain(n.retain),i+n.retain;if(n.delete||typeof n.retain=="number"){let s=n.delete||n.retain;return e.slice(i,i+s).forEach(o=>{n.delete?t.push(o):n.retain&&n.attributes&&t.retain(Ha.default.length(o),Jl.default.invert(n.attributes,o.attributes))}),i+s}else if(typeof n.retain=="object"&&n.retain!==null){let s=e.slice(i,i+1),a=new es.default(s.ops).next(),[o,l,h]=ZC(n.retain,a.insert),c=Fr.getHandler(o);return t.retain({[o]:c.invert(l,h)},Jl.default.invert(n.attributes,a.attributes)),i+1}}return i},0),t.chop()}transform(e,t=!1){if(t=!!t,typeof e=="number")return this.transformPosition(e,t);let i=e,n=new es.default(this.ops),s=new es.default(i.ops),a=new Fr;for(;n.hasNext()||s.hasNext();)if(n.peekType()==="insert"&&(t||s.peekType()!=="insert"))a.retain(Ha.default.length(n.next()));else if(s.peekType()==="insert")a.push(s.next());else{let o=Math.min(n.peekLength(),s.peekLength()),l=n.next(o),h=s.next(o);if(l.delete)continue;if(h.delete)a.push(h);else{let c=l.retain,u=h.retain,d=typeof u=="object"&&u!==null?u:o;if(typeof c=="object"&&c!==null&&typeof u=="object"&&u!==null){let f=Object.keys(c)[0];if(f===Object.keys(u)[0]){let m=Fr.getHandler(f);m&&(d={[f]:m.transform(c[f],u[f],t)})}}a.retain(d,Jl.default.transform(l.attributes,h.attributes,t))}}return a.chop()}transformPosition(e,t=!1){t=!!t;let i=new es.default(this.ops),n=0;for(;i.hasNext()&&n<=e;){let s=i.peekLength(),a=i.peekType();if(i.next(),a==="delete"){e-=Math.min(s,e-n);continue}else a==="insert"&&(n<e||!t)&&(e+=s);n+=s}return e}};Fr.Op=Ha.default;Fr.OpIterator=es.default;Fr.AttributeMap=Jl.default;Fr.handlers={};ja.default=Fr;typeof g3=="object"&&(g3.exports=Fr,g3.exports.default=Fr)});var eS=Dt((y6e,jg)=>{"use strict";var xZ=Object.prototype.hasOwnProperty,Qi="~";function cd(){}Object.create&&(cd.prototype=Object.create(null),new cd().__proto__||(Qi=!1));function bZ(r,e,t){this.fn=r,this.context=e,this.once=t||!1}function $C(r,e,t,i,n){if(typeof t!="function")throw new TypeError("The listener must be a function");var s=new bZ(t,i||r,n),a=Qi?Qi+e:e;return r._events[a]?r._events[a].fn?r._events[a]=[r._events[a],s]:r._events[a].push(s):(r._events[a]=s,r._eventsCount++),r}function v3(r,e){--r._eventsCount===0?r._events=new cd:delete r._events[e]}function Ti(){this._events=new cd,this._eventsCount=0}Ti.prototype.eventNames=function(){var e=[],t,i;if(this._eventsCount===0)return e;for(i in t=this._events)xZ.call(t,i)&&e.push(Qi?i.slice(1):i);return Object.getOwnPropertySymbols?e.concat(Object.getOwnPropertySymbols(t)):e};Ti.prototype.listeners=function(e){var t=Qi?Qi+e:e,i=this._events[t];if(!i)return[];if(i.fn)return[i.fn];for(var n=0,s=i.length,a=new Array(s);n<s;n++)a[n]=i[n].fn;return a};Ti.prototype.listenerCount=function(e){var t=Qi?Qi+e:e,i=this._events[t];return i?i.fn?1:i.length:0};Ti.prototype.emit=function(e,t,i,n,s,a){var o=Qi?Qi+e:e;if(!this._events[o])return!1;var l=this._events[o],h=arguments.length,c,u;if(l.fn){switch(l.once&&this.removeListener(e,l.fn,void 0,!0),h){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,t),!0;case 3:return l.fn.call(l.context,t,i),!0;case 4:return l.fn.call(l.context,t,i,n),!0;case 5:return l.fn.call(l.context,t,i,n,s),!0;case 6:return l.fn.call(l.context,t,i,n,s,a),!0}for(u=1,c=new Array(h-1);u<h;u++)c[u-1]=arguments[u];l.fn.apply(l.context,c)}else{var d=l.length,f;for(u=0;u<d;u++)switch(l[u].once&&this.removeListener(e,l[u].fn,void 0,!0),h){case 1:l[u].fn.call(l[u].context);break;case 2:l[u].fn.call(l[u].context,t);break;case 3:l[u].fn.call(l[u].context,t,i);break;case 4:l[u].fn.call(l[u].context,t,i,n
|
||
|
|
\0`,we+=i(ae,2),we+=C.magic,we+=i(y,2),we+=i(A,2),we+=i(be.crc32,4),we+=i(be.compressedSize,4),we+=i(be.uncompressedSize,4),we+=i(D.length,2),we+=i(G.length,2),{fileRecord:h.LOCAL_FILE_HEADER+we+D+G,dirRecord:h.CENTRAL_FILE_HEADER+i(Fe,2)+we+i(V.length,2)+"\0\0\0\0"+i(O,4)+i(m,4)+D+G+V}}var s=r("../utils"),a=r("../stream/GenericWorker"),o=r("../utf8"),l=r("../crc32"),h=r("../signature");function c(u,d,f,m){a.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=d,this.zipPlatform=f,this.encodeFileName=m,this.streamFiles=u,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}s.inherits(c,a),c.prototype.push=function(u){var d=u.meta.percent||0,f=this.entriesCount,m=this._sources.length;this.accumulate?this.contentBuffer.push(u):(this.bytesWritten+=u.data.length,a.prototype.push.call(this,{data:u.data,meta:{currentFile:this.currentFile,percent:f?(d+100*(f-m-1))/f:100}}))},c.prototype.openedSource=function(u){this.currentSourceOffset=this.bytesWritten,this.currentFile=u.file.name;var d=this.streamFiles&&!u.file.dir;if(d){var f=n(u,d,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:f.fileRecord,meta:{percent:0}})}else this.accumulate=!0},c.prototype.closedSource=function(u){this.accumulate=!1;var d=this.streamFiles&&!u.file.dir,f=n(u,d,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(f.dirRecord),d)this.push({data:function(m){return h.DATA_DESCRIPTOR+i(m.crc32,4)+i(m.compressedSize,4)+i(m.uncompressedSize,4)}(u),meta:{percent:100}});else for(this.push({data:f.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},c.prototype.flush=function(){for(var u=this.bytesWritten,d=0;d<this.dirRecords.length;d++)this.push({data:this.dirRecords[d],meta:{percent:100}});var f=this.bytesWritten-u,m=function(g,v,y,A,b){var C=s.transformTo("string",b(A));return h.CENTRAL_DIRECTORY_END+"\0\0\0\0"+i(g,2)+i(g,2)+i(v,4)+i(y,4)+i(C.length,2)+C}(this.dirRecords.length,f,u,this.zipComment,this.encodeFileName);this.push({data:m,meta:{percent:100}})},c.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},c.prototype.registerPrevious=function(u){this._sources.push(u);var d=this;return u.on("data",function(f){d.processChunk(f)}),u.on("end",function(){d.closedSource(d.previous.streamInfo),d._sources.length?d.prepareNextSource():d.end()}),u.on("error",function(f){d.error(f)}),this},c.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},c.prototype.error=function(u){var d=this._sources;if(!a.prototype.error.call(this,u))return!1;for(var f=0;f<d.length;f++)try{d[f].error(u)}catch(m){}return!0},c.prototype.lock=function(){a.prototype.lock.call(this);for(var u=this._sources,d=0;d<u.length;d++)u[d].lock()},e.exports=c},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(r,e,t){"use strict";var i=r("../compressions"),n=r("./ZipFileWorker");t.generateWorker=function(s,a,o){var l=new n(a.streamFiles,o,a.platform,a.encodeFileName),h=0;try{s.forEach(function(c,u){h++;var d=function(v,y){var A=v||y,b=i[A];if(!b)throw new Error(A+" is not a valid compression method !");return b}(u.options.compression,a.compression),f=u.options.compressionOptions||a.compressionOptions||{},m=u.dir,g=u.date;u._compressWorker(d,f).withStreamInfo("file",{name:c,dir:m,date:g,comment:u.comment||"",unixPermissions:u.unixPermissions,dosPermissions:u.dosPermissions}).pipe(l)}),l.entriesCount=h}catch(c){l.error(c)}return l}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(r,e,t){"use strict";function i(){if(!(this instanceof i))return new i;if(arguments.length)throw new Error("The constructor with parameters has been
|
||
|
|
`||U==="\r"||U===" "}function C(U){return U==='"'||U==="'"}function M(U){return U===">"||b(U)}function D(U,I){return U.test(I)}function L(U,I){return!D(U,I)}var k=0;r.STATE={BEGIN:k++,BEGIN_WHITESPACE:k++,TEXT:k++,TEXT_ENTITY:k++,OPEN_WAKA:k++,SGML_DECL:k++,SGML_DECL_QUOTED:k++,DOCTYPE:k++,DOCTYPE_QUOTED:k++,DOCTYPE_DTD:k++,DOCTYPE_DTD_QUOTED:k++,COMMENT_STARTING:k++,COMMENT:k++,COMMENT_ENDING:k++,COMMENT_ENDED:k++,CDATA:k++,CDATA_ENDING:k++,CDATA_ENDING_2:k++,PROC_INST:k++,PROC_INST_BODY:k++,PROC_INST_ENDING:k++,OPEN_TAG:k++,OPEN_TAG_SLASH:k++,ATTRIB:k++,ATTRIB_NAME:k++,ATTRIB_NAME_SAW_WHITE:k++,ATTRIB_VALUE:k++,ATTRIB_VALUE_QUOTED:k++,ATTRIB_VALUE_CLOSED:k++,ATTRIB_VALUE_UNQUOTED:k++,ATTRIB_VALUE_ENTITY_Q:k++,ATTRIB_VALUE_ENTITY_U:k++,CLOSE_TAG:k++,CLOSE_TAG_SAW_WHITE:k++,SCRIPT:k++,SCRIPT_ENDING:k++},r.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},r.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(r.ENTITIES).forEach(function(U){var I=r.ENTITIES[U],le=typeof I=="number"?String.fromCharCode(I):I;r.ENTITIES[U]=le});for(var V in r.STATE)r.STATE[r.STATE[V]]=V;k=r.STATE;function B(U,I,le){U[I]&&U[I](le)}function _(U,I,le){U.textNode&&S(U),B(U,I,le)}function S(U){U.textNode=G(U.opt,U.textNode),U.textNode&&B(U,"ontext",U.textNode),U.textNode=""}function G(U,I){return U.trim&&(I=I.trim()),U.normalize&&(I=I.replace(/\s+/g," ")),I}function Q(U,I){return S(U),U.trackPosition&&(I+=`
|
||
|
|
Line: `+U.line+`
|
||
|
|
Column: `+U.column+`
|
||
|
|
Char: `+U.c),I=new Error(I),U.error=I,B(U,"onerror",I),U}function Y(U){return U.sawRoot&&!U.closedRoot&&ne(U,"Unclosed root tag"),U.state!==k.BEGIN&&U.state!==k.BEGIN_WHITESPACE&&U.state!==k.TEXT&&Q(U,"Unexpected end"),S(U),U.c="",U.closed=!0,B(U,"onend"),t.call(U,U.strict,U.opt),U}function ne(U,I){if(typeof U!="object"||!(U instanceof t))throw new Error("bad call to strictFail");U.strict&&Q(U,I)}function ee(U){U.strict||(U.tagName=U.tagName[U.looseCase]());var I=U.tags[U.tags.length-1]||U,le=U.tag={name:U.tagName,attributes:{}};U.opt.xmlns&&(le.ns=I.ns),U.attribList.length=0,_(U,"onopentagstart",le)}function be(U,I){var le=U.indexOf(":"),te=le<0?["",U]:U.split(":"),Ye=te[0],We=te[1];return I&&U==="xmlns"&&(Ye="xmlns",We=""),{prefix:Ye,local:We}}function ae(U){if(U.strict||(U.attribName=U.attribName[U.looseCase]()),U.attribList.indexOf(U.attribName)!==-1||U.tag.attributes.hasOwnProperty(U.attribName)){U.attribName=U.attribValue="";return}if(U.opt.xmlns){var I=be(U.attribName,!0),le=I.prefix,te=I.local;if(le==="xmlns")if(te==="xml"&&U.attribValue!==d)ne(U,"xml: prefix must be bound to "+d+`
|
||
|
|
Actual: `+U.attribValue);else if(te==="xmlns"&&U.attribValue!==f)ne(U,"xmlns: prefix must be bound to "+f+`
|
||
|
|
Actual: `+U.attribValue);else{var Ye=U.tag,We=U.tags[U.tags.length-1]||U;Ye.ns===We.ns&&(Ye.ns=Object.create(We.ns)),Ye.ns[te]=U.attribValue}U.attribList.push([U.attribName,U.attribValue])}else U.tag.attributes[U.attribName]=U.attribValue,_(U,"onattribute",{name:U.attribName,value:U.attribValue});U.attribName=U.attribValue=""}function O(U,I){if(U.opt.xmlns){var le=U.tag,te=be(U.tagName);le.prefix=te.prefix,le.local=te.local,le.uri=le.ns[te.prefix]||"",le.prefix&&!le.uri&&(ne(U,"Unbound namespace prefix: "+JSON.stringify(U.tagName)),le.uri=te.prefix);var Ye=U.tags[U.tags.length-1]||U;le.ns&&Ye.ns!==le.ns&&Object.keys(le.ns).forEach(function(ke){_(U,"onopennamespace",{prefix:ke,uri:le.ns[ke]})});for(var We=0,F=U.attribList.length;We<F;We++){var de=U.attribList[We],ce=de[0],K=de[1],W=be(ce,!0),ie=W.prefix,ye=W.local,ve=ie===""?"":le.ns[ie]||"",oe={name:ce,value:K,prefix:ie,local:ye,uri:ve};ie&&ie!=="xmlns"&&!ve&&(ne(U,"Unbound namespace prefix: "+JSON.stringify(ie)),oe.uri=ie),U.tag.attributes[ce]=oe,_(U,"onattribute",oe)}U.attribList.length=0}U.tag.isSelfClosing=!!I,U.sawRoot=!0,U.tags.push(U.tag),_(U,"onopentag",U.tag),I||(!U.noscript&&U.tagName.toLowerCase()==="script"?U.state=k.SCRIPT:U.state=k.TEXT,U.tag=null,U.tagName=""),U.attribName=U.attribValue="",U.attribList.length=0}function Fe(U){if(!U.tagName){ne(U,"Weird empty close tag."),U.textNode+="</>",U.state=k.TEXT;return}if(U.script){if(U.tagName!=="script"){U.script+="</"+U.tagName+">",U.tagName="",U.state=k.SCRIPT;return}_(U,"onscript",U.script),U.script=""}var I=U.tags.length,le=U.tagName;U.strict||(le=le[U.looseCase]());for(var te=le;I--;){var Ye=U.tags[I];if(Ye.name!==te)ne(U,"Unexpected close tag");else break}if(I<0){ne(U,"Unmatched closing tag: "+U.tagName),U.textNode+="</"+U.tagName+">",U.state=k.TEXT;return}U.tagName=le;for(var We=U.tags.length;We-- >I;){var F=U.tag=U.tags.pop();U.tagName=U.tag.name,_(U,"onclosetag",U.tagName);var de={};for(var ce in F.ns)de[ce]=F.ns[ce];var K=U.tags[U.tags.length-1]||U;U.opt.xmlns&&F.ns!==K.ns&&Object.keys(F.ns).forEach(function(W){var ie=F.ns[W];_(U,"onclosenamespace",{prefix:W,uri:ie})})}I===0&&(U.closedRoot=!0),U.tagName=U.attribValue=U.attribName="",U.attribList.length=0,U.state=k.TEXT}function we(U){var I=U.entity,le=I.toLowerCase(),te,Ye="";return U.ENTITIES[I]?U.ENTITIES[I]:U.ENTITIES[le]?U.ENTITIES[le]:(I=le,I.charAt(0)==="#"&&(I.charAt(1)==="x"?(I=I.slice(2),te=parseInt(I,16),Ye=te.toString(16)):(I=I.slice(1),te=parseInt(I,10),Ye=te.toString(10))),I=I.replace(/^0+/,""),isNaN(te)||Ye.toLowerCase()!==I?(ne(U,"Invalid character entity"),"&"+U.entity+";"):String.fromCodePoint(te))}function R(U,I){I==="<"?(U.state=k.OPEN_WAKA,U.startTagPosition=U.position):b(I)||(ne(U,"Non-whitespace before first tag."),U.textNode=I,U.state=k.TEXT)}function gt(U,I){var le="";return I<U.length&&(le=U.charAt(I)),le}function Ct(U){var I=this;if(this.error)throw this.error;if(I.closed)return Q(I,"Cannot write after close. Assign an onready handler.");if(U===null)return Y(I);typeof U=="object"&&(U=U.toString());for(var le=0,te="";te=gt(U,le++),I.c=te,!!te;)switch(I.trackPosition&&(I.position++,te===`
|
||
|
|
`?(I.line++,I.column=0):I.column++),I.state){case k.BEGIN:if(I.state=k.BEGIN_WHITESPACE,te==="\uFEFF")continue;R(I,te);continue;case k.BEGIN_WHITESPACE:R(I,te);continue;case k.TEXT:if(I.sawRoot&&!I.closedRoot){for(var Ye=le-1;te&&te!=="<"&&te!=="&";)te=gt(U,le++),te&&I.trackPosition&&(I.position++,te===`
|
||
|
|
`?(I.line++,I.column=0):I.column++);I.textNode+=U.substring(Ye,le-1)}te==="<"&&!(I.sawRoot&&I.closedRoot&&!I.strict)?(I.state=k.OPEN_WAKA,I.startTagPosition=I.position):(!b(te)&&(!I.sawRoot||I.closedRoot)&&ne(I,"Text data outside of root node."),te==="&"?I.state=k.TEXT_ENTITY:I.textNode+=te);continue;case k.SCRIPT:te==="<"?I.state=k.SCRIPT_ENDING:I.script+=te;continue;case k.SCRIPT_ENDING:te==="/"?I.state=k.CLOSE_TAG:(I.script+="<"+te,I.state=k.SCRIPT);continue;case k.OPEN_WAKA:if(te==="!")I.state=k.SGML_DECL,I.sgmlDecl="";else if(!b(te))if(D(g,te))I.state=k.OPEN_TAG,I.tagName=te;else if(te==="/")I.state=k.CLOSE_TAG,I.tagName="";else if(te==="?")I.state=k.PROC_INST,I.procInstName=I.procInstBody="";else{if(ne(I,"Unencoded <"),I.startTagPosition+1<I.position){var We=I.position-I.startTagPosition;te=new Array(We).join(" ")+te}I.textNode+="<"+te,I.state=k.TEXT}continue;case k.SGML_DECL:if(I.sgmlDecl+te==="--"){I.state=k.COMMENT,I.comment="",I.sgmlDecl="";continue}I.doctype&&I.doctype!==!0&&I.sgmlDecl?(I.state=k.DOCTYPE_DTD,I.doctype+="<!"+I.sgmlDecl+te,I.sgmlDecl=""):(I.sgmlDecl+te).toUpperCase()===c?(_(I,"onopencdata"),I.state=k.CDATA,I.sgmlDecl="",I.cdata=""):(I.sgmlDecl+te).toUpperCase()===u?(I.state=k.DOCTYPE,(I.doctype||I.sawRoot)&&ne(I,"Inappropriately located doctype declaration"),I.doctype="",I.sgmlDecl=""):te===">"?(_(I,"onsgmldeclaration",I.sgmlDecl),I.sgmlDecl="",I.state=k.TEXT):(C(te)&&(I.state=k.SGML_DECL_QUOTED),I.sgmlDecl+=te);continue;case k.SGML_DECL_QUOTED:te===I.q&&(I.state=k.SGML_DECL,I.q=""),I.sgmlDecl+=te;continue;case k.DOCTYPE:te===">"?(I.state=k.TEXT,_(I,"ondoctype",I.doctype),I.doctype=!0):(I.doctype+=te,te==="["?I.state=k.DOCTYPE_DTD:C(te)&&(I.state=k.DOCTYPE_QUOTED,I.q=te));continue;case k.DOCTYPE_QUOTED:I.doctype+=te,te===I.q&&(I.q="",I.state=k.DOCTYPE);continue;case k.DOCTYPE_DTD:te==="]"?(I.doctype+=te,I.state=k.DOCTYPE):te==="<"?(I.state=k.OPEN_WAKA,I.startTagPosition=I.position):C(te)?(I.doctype+=te,I.state=k.DOCTYPE_DTD_QUOTED,I.q=te):I.doctype+=te;continue;case k.DOCTYPE_DTD_QUOTED:I.doctype+=te,te===I.q&&(I.state=k.DOCTYPE_DTD,I.q="");continue;case k.COMMENT:te==="-"?I.state=k.COMMENT_ENDING:I.comment+=te;continue;case k.COMMENT_ENDING:te==="-"?(I.state=k.COMMENT_ENDED,I.comment=G(I.opt,I.comment),I.comment&&_(I,"oncomment",I.comment),I.comment=""):(I.comment+="-"+te,I.state=k.COMMENT);continue;case k.COMMENT_ENDED:te!==">"?(ne(I,"Malformed comment"),I.comment+="--"+te,I.state=k.COMMENT):I.doctype&&I.doctype!==!0?I.state=k.DOCTYPE_DTD:I.state=k.TEXT;continue;case k.CDATA:te==="]"?I.state=k.CDATA_ENDING:I.cdata+=te;continue;case k.CDATA_ENDING:te==="]"?I.state=k.CDATA_ENDING_2:(I.cdata+="]"+te,I.state=k.CDATA);continue;case k.CDATA_ENDING_2:te===">"?(I.cdata&&_(I,"oncdata",I.cdata),_(I,"onclosecdata"),I.cdata="",I.state=k.TEXT):te==="]"?I.cdata+="]":(I.cdata+="]]"+te,I.state=k.CDATA);continue;case k.PROC_INST:te==="?"?I.state=k.PROC_INST_ENDING:b(te)?I.state=k.PROC_INST_BODY:I.procInstName+=te;continue;case k.PROC_INST_BODY:if(!I.procInstBody&&b(te))continue;te==="?"?I.state=k.PROC_INST_ENDING:I.procInstBody+=te;continue;case k.PROC_INST_ENDING:te===">"?(_(I,"onprocessinginstruction",{name:I.procInstName,body:I.procInstBody}),I.procInstName=I.procInstBody="",I.state=k.TEXT):(I.procInstBody+="?"+te,I.state=k.PROC_INST_BODY);continue;case k.OPEN_TAG:D(v,te)?I.tagName+=te:(ee(I),te===">"?O(I):te==="/"?I.state=k.OPEN_TAG_SLASH:(b(te)||ne(I,"Invalid character in tag name"),I.state=k.ATTRIB));continue;case k.OPEN_TAG_SLASH:te===">"?(O(I,!0),Fe(I)):(ne(I,"Forward-slash in opening tag not followed by >"),I.state=k.ATTRIB);continue;case k.ATTRIB:if(b(te))continue;te===">"?O(I):te==="/"?I.state=k.OPEN_TAG_SLASH:D(g,te)?(I.attribName=te,I.attribValue="",I.state=k.ATTRIB_NAME):ne(I,"Invalid attribute name");continue;case k.ATTRIB_NAME:te==="="?I.state=k.ATTRIB_VALUE:te===">"?(ne(I,"Attribute without value"),I.attribValue=I.attribName,ae(I),O(I)):b(te)?I.state=k.ATTRIB_NAME_SAW_WHITE:D(v,te)?I.attribName+=te:ne(I,"Invalid attribute name");continue;case k.ATTRIB_NAME_SAW_WHITE:if(te==="=")I.state=k.ATTR
|
||
|
|
`:"")+Array(e+1).join(r.spaces)}function s2(r,e,t){if(e.ignoreAttributes)return"";"attributesFn"in e&&(r=e.attributesFn(r,Ni,Di));var i,n,s,a,o=[];for(i in r)r.hasOwnProperty(i)&&r[i]!==null&&r[i]!==void 0&&(a=e.noQuotesForNativeAttributes&&typeof r[i]!="string"?"":'"',n=""+r[i],n=n.replace(/"/g,"""),s="attributeNameFn"in e?e.attributeNameFn(i,n,Ni,Di):i,o.push(e.spaces&&e.indentAttributes?Js(e,t+1,!1):" "),o.push(s+"="+a+("attributeValueFn"in e?e.attributeValueFn(n,i,Ni,Di):n)+a));return r&&Object.keys(r).length&&e.spaces&&e.indentAttributes&&o.push(Js(e,t,!1)),o.join("")}function uM(r,e,t){return Di=r,Ni="xml",e.ignoreDeclaration?"":"<?xml"+s2(r[e.attributesKey],e,t)+"?>"}function dM(r,e,t){if(e.ignoreInstruction)return"";var i;for(i in r)if(r.hasOwnProperty(i))break;var n="instructionNameFn"in e?e.instructionNameFn(i,r[i],Ni,Di):i;if(typeof r[i]=="object")return Di=r,Ni=n,"<?"+n+s2(r[i][e.attributesKey],e,t)+"?>";var s=r[i]?r[i]:"";return"instructionFn"in e&&(s=e.instructionFn(s,i,Ni,Di)),"<?"+n+(s?" "+s:"")+"?>"}function fM(r,e){return e.ignoreComment?"":"<!--"+("commentFn"in e?e.commentFn(r,Ni,Di):r)+"-->"}function mM(r,e){return e.ignoreCdata?"":"<![CDATA["+("cdataFn"in e?e.cdataFn(r,Ni,Di):r.replace("]]>","]]]]><![CDATA[>"))+"]]>"}function pM(r,e){return e.ignoreDoctype?"":"<!DOCTYPE "+("doctypeFn"in e?e.doctypeFn(r,Ni,Di):r)+">"}function Z5(r,e){return e.ignoreText?"":(r=""+r,r=r.replace(/&/g,"&"),r=r.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),"textFn"in e?e.textFn(r,Ni,Di):r)}function Kee(r,e){var t;if(r.elements&&r.elements.length)for(t=0;t<r.elements.length;++t)switch(r.elements[t][e.typeKey]){case"text":if(e.indentText)return!0;break;case"cdata":if(e.indentCdata)return!0;break;case"instruction":if(e.indentInstruction)return!0;break;case"doctype":case"comment":case"element":return!0;default:return!0}return!1}function Qee(r,e,t){Di=r,Ni=r.name;var i=[],n="elementNameFn"in e?e.elementNameFn(r.name,r):r.name;i.push("<"+n),r[e.attributesKey]&&i.push(s2(r[e.attributesKey],e,t));var s=r[e.elementsKey]&&r[e.elementsKey].length||r[e.attributesKey]&&r[e.attributesKey]["xml:space"]==="preserve";return s||("fullTagEmptyElementFn"in e?s=e.fullTagEmptyElementFn(r.name,r):s=e.fullTagEmptyElement),s?(i.push(">"),r[e.elementsKey]&&r[e.elementsKey].length&&(i.push(gM(r[e.elementsKey],e,t+1)),Di=r,Ni=r.name),i.push(e.spaces&&Kee(r,e)?`
|
||
|
|
`+Array(t+1).join(e.spaces):""),i.push("</"+n+">")):i.push("/>"),i.join("")}function gM(r,e,t,i){return r.reduce(function(n,s){var a=Js(e,t,i&&!n);switch(s.type){case"element":return n+a+Qee(s,e,t);case"comment":return n+a+fM(s[e.commentKey],e);case"doctype":return n+a+pM(s[e.doctypeKey],e);case"cdata":return n+(e.indentCdata?a:"")+mM(s[e.cdataKey],e);case"text":return n+(e.indentText?a:"")+Z5(s[e.textKey],e);case"instruction":var o={};return o[s[e.nameKey]]=s[e.attributesKey]?s:s[e.instructionKey],n+(e.indentInstruction?a:"")+dM(o,e,t)}},"")}function vM(r,e,t){var i;for(i in r)if(r.hasOwnProperty(i))switch(i){case e.parentKey:case e.attributesKey:break;case e.textKey:if(e.indentText||t)return!0;break;case e.cdataKey:if(e.indentCdata||t)return!0;break;case e.instructionKey:if(e.indentInstruction||t)return!0;break;case e.doctypeKey:case e.commentKey:return!0;default:return!0}return!1}function Xee(r,e,t,i,n){Di=r,Ni=e;var s="elementNameFn"in t?t.elementNameFn(e,r):e;if(typeof r=="undefined"||r===null||r==="")return"fullTagEmptyElementFn"in t&&t.fullTagEmptyElementFn(e,r)||t.fullTagEmptyElement?"<"+s+"></"+s+">":"<"+s+"/>";var a=[];if(e){if(a.push("<"+s),typeof r!="object")return a.push(">"+Z5(r,t)+"</"+s+">"),a.join("");r[t.attributesKey]&&a.push(s2(r[t.attributesKey],t,i));var o=vM(r,t,!0)||r[t.attributesKey]&&r[t.attributesKey]["xml:space"]==="preserve";if(o||("fullTagEmptyElementFn"in t?o=t.fullTagEmptyElementFn(e,r):o=t.fullTagEmptyElement),o)a.push(">");else return a.push("/>"),a.join("")}return a.push(yM(r,t,i+1,!1)),Di=r,Ni=e,e&&a.push((n?Js(t,i,!1):"")+"</"+s+">"),a.join("")}function yM(r,e,t,i){var n,s,a,o=[];for(s in r)if(r.hasOwnProperty(s))for(a=Yee(r[s])?r[s]:[r[s]],n=0;n<a.length;++n){switch(s){case e.declarationKey:o.push(uM(a[n],e,t));break;case e.instructionKey:o.push((e.indentInstruction?Js(e,t,i):"")+dM(a[n],e,t));break;case e.attributesKey:case e.parentKey:break;case e.textKey:o.push((e.indentText?Js(e,t,i):"")+Z5(a[n],e));break;case e.cdataKey:o.push((e.indentCdata?Js(e,t,i):"")+mM(a[n],e));break;case e.doctypeKey:o.push(Js(e,t,i)+pM(a[n],e));break;case e.commentKey:o.push(Js(e,t,i)+fM(a[n],e));break;default:o.push(Js(e,t,i)+Xee(a[n],s,e,t,vM(a[n],e)))}i=i&&!o.length}return o.join("")}xM.exports=function(r,e){e=Vee(e);var t=[];return Di=r,Ni="_root_",e.compact?t.push(yM(r,e,0,!0)):(r[e.declarationKey]&&t.push(uM(r[e.declarationKey],e,0)),r[e.elementsKey]&&r[e.elementsKey].length&&t.push(gM(r[e.elementsKey],e,0,!t.length))),t.join("")}});var wM=Dt((vxe,bM)=>{var Zee=J5();bM.exports=function(r,e){r instanceof Buffer&&(r=r.toString());var t=null;if(typeof r=="string")try{t=JSON.parse(r)}catch(i){throw new Error("The JSON structure is invalid")}else t=r;return Zee(t,e)}});var EM=Dt((yxe,AM)=>{var Jee=X5(),$ee=cM(),ete=J5(),tte=wM();AM.exports={xml2js:Jee,xml2json:$ee,js2xml:ete,json2xml:tte}});var Qa=Dt($i=>{"use strict";var fte=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Int32Array!="undefined";function mte(r,e){return Object.prototype.hasOwnProperty.call(r,e)}$i.assign=function(r){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var t=e.shift();if(t){if(typeof t!="object")throw new TypeError(t+"must be non-object");for(var i in t)mte(t,i)&&(r[i]=t[i])}}return r};$i.shrinkBuf=function(r,e){return r.length===e?r:r.subarray?r.subarray(0,e):(r.length=e,r)};var pte={arraySet:function(r,e,t,i,n){if(e.subarray&&r.subarray){r.set(e.subarray(t,t+i),n);return}for(var s=0;s<i;s++)r[n+s]=e[t+s]},flattenChunks:function(r){var e,t,i,n,s,a;for(i=0,e=0,t=r.length;e<t;e++)i+=r[e].length;for(a=new Uint8Array(i),n=0,e=0,t=r.length;e<t;e++)s=r[e],a.set(s,n),n+=s.length;return a}},gte={arraySet:function(r,e,t,i,n){for(var s=0;s<i;s++)r[n+s]=e[t+s]},flattenChunks:function(r){return[].concat.apply([],r)}};$i.setTyped=function(r){r?($i.Buf8=Uint8Array,$i.Buf16=Uint16Array,$i.Buf32=Int32Array,$i.assign($i,pte)):($i.Buf8=Array,$i.Buf16=Array,$i.Buf32=Array,$i.assign($i,gte))};$i.setTyped(fte)});var Nk=Dt(hc=>{"use strict";var vte=Qa(),yte=4,lk=0,hk=1,xte=2;function lc(r){for(var e=r.length
|
||
|
|
[`+$+"] ";for(pe in arguments[0])s(arguments[0],pe)&&(P+=pe+": "+arguments[0][pe]+", ");P=P.slice(0,-2)}else P=arguments[$];N.push(P)}L(p+`
|
||
|
|
Arguments: `+Array.prototype.slice.call(N).join("")+`
|
||
|
|
`+new Error().stack),E=!1}return x.apply(this,arguments)},x)}var V={};function B(p,x){e.deprecationHandler!=null&&e.deprecationHandler(p,x),V[p]||(L(x),V[p]=!0)}e.suppressDeprecationWarnings=!1,e.deprecationHandler=null;function _(p){return typeof Function!="undefined"&&p instanceof Function||Object.prototype.toString.call(p)==="[object Function]"}function S(p){var x,E;for(E in p)s(p,E)&&(x=p[E],_(x)?this[E]=x:this["_"+E]=x);this._config=p,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function G(p,x){var E=u({},p),N;for(N in x)s(x,N)&&(n(p[N])&&n(x[N])?(E[N]={},u(E[N],p[N]),u(E[N],x[N])):x[N]!=null?E[N]=x[N]:delete E[N]);for(N in p)s(p,N)&&!s(x,N)&&n(p[N])&&(E[N]=u({},E[N]));return E}function Q(p){p!=null&&this.set(p)}var Y;Object.keys?Y=Object.keys:Y=function(p){var x,E=[];for(x in p)s(p,x)&&E.push(x);return E};var ne={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function ee(p,x,E){var N=this._calendar[p]||this._calendar.sameElse;return _(N)?N.call(x,E):N}function be(p,x,E){var N=""+Math.abs(p),P=x-N.length,$=p>=0;return($?E?"+":"":"-")+Math.pow(10,Math.max(0,P)).toString().substr(1)+N}var ae=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,O=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Fe={},we={};function R(p,x,E,N){var P=N;typeof N=="string"&&(P=function(){return this[N]()}),p&&(we[p]=P),x&&(we[x[0]]=function(){return be(P.apply(this,arguments),x[1],x[2])}),E&&(we[E]=function(){return this.localeData().ordinal(P.apply(this,arguments),p)})}function gt(p){return p.match(/\[[\s\S]/)?p.replace(/^\[|\]$/g,""):p.replace(/\\/g,"")}function Ct(p){var x=p.match(ae),E,N;for(E=0,N=x.length;E<N;E++)we[x[E]]?x[E]=we[x[E]]:x[E]=gt(x[E]);return function(P){var $="",pe;for(pe=0;pe<N;pe++)$+=_(x[pe])?x[pe].call(P,p):x[pe];return $}}function U(p,x){return p.isValid()?(x=I(x,p.localeData()),Fe[x]=Fe[x]||Ct(x),Fe[x](p)):p.localeData().invalidDate()}function I(p,x){var E=5;function N(P){return x.longDateFormat(P)||P}for(O.lastIndex=0;E>=0&&O.test(p);)p=p.replace(O,N),O.lastIndex=0,E-=1;return p}var le={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function te(p){var x=this._longDateFormat[p],E=this._longDateFormat[p.toUpperCase()];return x||!E?x:(this._longDateFormat[p]=E.match(ae).map(function(N){return N==="MMMM"||N==="MM"||N==="DD"||N==="dddd"?N.slice(1):N}).join(""),this._longDateFormat[p])}var Ye="Invalid date";function We(){return this._invalidDate}var F="%d",de=/\d{1,2}/;function ce(p){return this._ordinal.replace("%d",p)}var K={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function W(p,x,E,N){var P=this._relativeTime[E];return _(P)?P(p,x,E,N):P.replace(/%d/i,p)}function ie(p,x){var E=this._relativeTime[p>0?"future":"past"];return _(E)?E(x):E.replace(/%s/i,x)}var ye={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function ve(p){return typeof p=="strin
|
||
|
|
/* \u9F20\u6807hover\u548C\u6FC0\u6D3B\u65F6\u6E32\u67D3\u7684\u77E9\u5F62 */
|
||
|
|
.smm-hover-node{
|
||
|
|
display: none;
|
||
|
|
opacity: 0.6;
|
||
|
|
stroke-width: 1;
|
||
|
|
}
|
||
|
|
|
||
|
|
.smm-node:not(.smm-node-dragging):hover .smm-hover-node{
|
||
|
|
display: block;
|
||
|
|
}
|
||
|
|
|
||
|
|
.smm-node.active .smm-hover-node, .smm-node-highlight .smm-hover-node{
|
||
|
|
display: block;
|
||
|
|
opacity: 1;
|
||
|
|
stroke-width: 2;
|
||
|
|
}
|
||
|
|
|
||
|
|
.smm-text-node-wrap, .smm-expand-btn-text {
|
||
|
|
user-select: none;
|
||
|
|
}
|
||
|
|
`,Ev=["img","br","hr","input","link","meta","area"],j0=1.2,G0=["fontFamily","fontSize","fontWeight","fontStyle","textDecoration","color","textAlign"];var kp=class{constructor(e={}){this.opt=e,this.mindMap=this.opt.mindMap,this.scale=1,this.sx=0,this.sy=0,this.x=0,this.y=0,this.firstDrag=!0,this.setTransformData(this.mindMap.opt.viewData),this.bind()}bind(){this.mindMap.keyCommand.addShortcut("Control+=",()=>{this.enlarge()}),this.mindMap.keyCommand.addShortcut("Control+-",()=>{this.narrow()}),this.mindMap.keyCommand.addShortcut("Control+i",()=>{this.fit()}),this.mindMap.event.on("mousedown",e=>{let{isDisableDrag:t,mousedownEventPreventDefault:i}=this.mindMap.opt;t||(i&&e.preventDefault(),this.sx=this.x,this.sy=this.y)}),this.mindMap.event.on("drag",(e,t)=>{e.ctrlKey||e.metaKey||this.mindMap.opt.isDisableDrag||(this.firstDrag&&(this.firstDrag=!1,this.mindMap.renderer.activeNodeList.length>0&&this.mindMap.execCommand("CLEAR_ACTIVE_NODE")),this.x=this.sx+t.mousemoveOffset.x,this.y=this.sy+t.mousemoveOffset.y,this.transform())}),this.mindMap.event.on("mouseup",()=>{this.firstDrag=!0}),this.mindMap.event.on("mousewheel",(e,t,i,n)=>{let{customHandleMousewheel:s,mousewheelAction:a,mouseScaleCenterUseMousePosition:o,mousewheelMoveStep:l,mousewheelZoomActionReverse:h,disableMouseWheelZoom:c,translateRatio:u}=this.mindMap.opt;if(s&&typeof s=="function")return s(e);if(a===J.MOUSE_WHEEL_ACTION.ZOOM||e.ctrlKey||e.metaKey){if(c)return;let{x:d,y:f}=this.mindMap.toPos(e.clientX,e.clientY),m=o?d:void 0,g=o?f:void 0;switch(n&&(t.includes(J.DIR.LEFT)||t.includes(J.DIR.RIGHT))&&(t=t.filter(v=>![J.DIR.LEFT,J.DIR.RIGHT].includes(v))),!0){case t.includes(J.DIR.UP||J.DIR.LEFT):h?this.enlarge(m,g,n):this.narrow(m,g,n);break;case t.includes(J.DIR.DOWN||J.DIR.RIGHT):h?this.narrow(m,g,n):this.enlarge(m,g,n);break}}else{let d=0,f=0;n?(d=Math.abs(e.wheelDeltaX),f=Math.abs(e.wheelDeltaY)):d=f=l;let m=0,g=0;t.includes(J.DIR.DOWN)&&(g=-f),t.includes(J.DIR.UP)&&(g=f),t.includes(J.DIR.LEFT)&&(m=d),t.includes(J.DIR.RIGHT)&&(m=-d),this.translateXY(m*u,g*u)}}),this.mindMap.on("resize",()=>{this.checkNeedMindMapInCanvas()&&this.transform()})}getTransformData(){return{transform:this.mindMap.draw.transform(),state:{scale:this.scale,x:this.x,y:this.y,sx:this.sx,sy:this.sy}}}setTransformData(e){e&&(Object.keys(e.state).forEach(t=>{this[t]=e.state[t]}),this.mindMap.draw.transform({...e.transform}),this.mindMap.emit("view_data_change",this.getTransformData()),this.emitEvent("scale"),this.emitEvent("translate"))}translateXY(e,t){e===0&&t===0||(this.x+=e,this.y+=t,this.transform(),this.emitEvent("translate"))}translateX(e){e!==0&&(this.x+=e,this.transform(),this.emitEvent("translate"))}translateXTo(e){this.x=e,this.transform(),this.emitEvent("translate")}translateY(e){e!==0&&(this.y+=e,this.transform(),this.emitEvent("translate"))}translateYTo(e){this.y=e,this.transform(),this.emitEvent("translate")}transform(){try{this.limitMindMapInCanvas()}catch(e){}this.mindMap.draw.transform({origin:[0,0],scale:this.scale,translate:[this.x,this.y]}),this.mindMap.emit("view_data_change",this.getTransformData())}reset(){let e=this.scale!==1,t=this.x!==0||this.y!==0;this.scale=1,this.x=0,this.y=0,this.transform(),e&&this.emitEvent("scale"),t&&this.emitEvent("translate")}narrow(e,t,i){let{scaleRatio:n,minZoomRatio:s}=this.mindMap.opt;n=n/(i?5:1);let a=Math.max(this.scale-n,s/100);this.scaleInCenter(a,e,t),this.transform(),this.emitEvent("scale")}enlarge(e,t,i){let{scaleRatio:n,maxZoomRatio:s}=this.mindMap.opt;n=n/(i?5:1);let a=0;s===-1?a=this.scale+n:a=Math.min(this.scale+n,s/100),this.scaleInCenter(a,e,t),this.transform(),this.emitEvent("scale")}scaleInCenter(e,t,i){(t===void 0||i===void 0)&&(t=this.mindMap.width/2,i=this.mindMap.height/2);let n=this.scale,s=1-e/n,a=(t-this.x)*s,o=(i-this.y)*s;this.x+=a,this.y+=o,this.scale=e}setScale(e,t,i){t!==void 0&&i!==void 0?this.scaleInCenter(e,t,i):this.scale=e,this.transform(),this.emitEvent("scale")}fit(e=()=>{},t=!1,i){i=i===void 0?this.mindMap.opt.fitPadding:i;let n=this.mindMap.draw,s=n.transform(),a=e()||n.rbox(),o=a.width/s.scaleX,l
|
||
|
|
`?i+=o:(this.attr("dy",s?o+i:0),i=0))}),this.fire("rebuild")}return this}setData(e){return this.dom=e,this.dom.leading=new ft(e.leading||1.3),this}text(e){if(e===void 0){let t=this.node.childNodes,i=0;e="";for(let n=0,s=t.length;n<s;++n){if(t[n].nodeName==="textPath"){n===0&&(i=1);continue}n!==i&&t[n].nodeType!==3&&Yn(t[n]).dom.newLined===!0&&(e+=`
|
||
|
|
`),e+=t[n].textContent}return e}if(this.clear().build(!0),typeof e=="function")e.call(this,this);else{e=(e+"").split(`
|
||
|
|
`);for(let t=0,i=e.length;t<i;t++)this.newLine(e[t])}return this.build(!1).rebuild()}};It(Zt,o9);At({Container:{text:pr(function(r=""){return this.put(new Zt).text(r)}),plain:pr(function(r=""){return this.put(new Zt).plain(r)})}});Ht(Zt,"Text");var eh=class extends qi{constructor(e,t=e){super(gr("tspan",e),t),this._build=!1}dx(e){return this.attr("dx",e)}dy(e){return this.attr("dy",e)}newLine(){this.dom.newLined=!0;let e=this.parent();if(!(e instanceof Zt))return this;let t=e.index(this),i=Wt.window.getComputedStyle(this.node).getPropertyValue("font-size"),n=e.dom.leading*new ft(i);return this.dy(t?n:0).attr("x",e.x())}text(e){return e==null?this.node.textContent+(this.dom.newLined?`
|
||
|
|
`:""):(typeof e=="function"?(this.clear().build(!0),e.call(this,this),this.build(!1)):this.plain(e),this)}};It(eh,o9);At({Tspan:{tspan:pr(function(r=""){let e=new eh;return this._build||this.clear(),this.put(e).text(r)})},Text:{newLine:function(r=""){return this.tspan(r).newLine()}}});Ht(eh,"Tspan");var ys=class extends qi{constructor(e,t=e){super(gr("circle",e),t)}radius(e){return this.attr("r",e)}rx(e){return this.attr("r",e)}ry(e){return this.rx(e)}size(e){return this.radius(new ft(e).divide(2))}};It(ys,{x:Qv,y:Xv,cx:Zv,cy:Jv,width:$v,height:e9});At({Container:{circle:pr(function(r=0){return this.put(new ys).size(r).move(0,0)})}});Ht(ys,"Circle");var fu=class extends bi{constructor(e,t=e){super(gr("clipPath",e),t)}remove(){return this.targets().forEach(function(e){e.unclip()}),super.remove()}targets(){return ih("svg [clip-path*="+this.id()+"]")}};At({Container:{clip:pr(function(){return this.defs().put(new fu)})},Element:{clipper(){return this.reference("clip-path")},clipWith(r){let e=r instanceof fu?r:this.parent().clip().add(r);return this.attr("clip-path","url(#"+e.id()+")")},unclip(){return this.attr("clip-path",null)}}});Ht(fu,"ClipPath");var th=class extends Vn{constructor(e,t=e){super(gr("foreignObject",e),t)}};At({Container:{foreignObject:pr(function(r,e){return this.put(new th).size(r,e)})}});Ht(th,"ForeignObject");function ZR(r,e){return this.children().forEach((t,i)=>{let n;try{n=t.bbox()}catch(l){return}let s=new tt(t),a=s.translate(r,e).transform(s.inverse()),o=new Sr(n.x,n.y).transform(a);t.move(o.x,o.y)}),this}function JR(r){return this.dmove(r,0)}function $R(r){return this.dmove(0,r)}function eP(r,e=this.bbox()){return r==null?e.height:this.size(e.width,r,e)}function tP(r=0,e=0,t=this.bbox()){let i=r-t.x,n=e-t.y;return this.dmove(i,n)}function rP(r,e,t=this.bbox()){let i=rh(this,r,e,t),n=i.width/t.width,s=i.height/t.height;return this.children().forEach((a,o)=>{let l=new Sr(t).transform(new tt(a).inverse());a.scale(n,s,l.x,l.y)}),this}function iP(r,e=this.bbox()){return r==null?e.width:this.size(r,e.height,e)}function nP(r,e=this.bbox()){return r==null?e.x:this.move(r,e.y,e)}function sP(r,e=this.bbox()){return r==null?e.y:this.move(e.x,r,e)}var l9={__proto__:null,dmove:ZR,dx:JR,dy:$R,height:eP,move:tP,size:rP,width:iP,x:nP,y:sP},Qt=class extends bi{constructor(e,t=e){super(gr("g",e),t)}};It(Qt,l9);At({Container:{group:pr(function(){return this.put(new Qt)})}});Ht(Qt,"G");var ho=class extends bi{constructor(e,t=e){super(gr("a",e),t)}target(e){return this.attr("target",e)}to(e){return this.attr("href",e,vu)}};It(ho,l9);At({Container:{link:pr(function(r){return this.put(new ho).to(r)})},Element:{unlink(){let r=this.linker();if(!r)return this;let e=r.parent();if(!e)return this.remove();let t=e.index(r);return e.add(this,t),r.remove(),this},linkTo(r){let e=this.linker();return e||(e=new ho,this.wrap(e)),typeof r=="function"?r.call(e,e):e.to(r),this},linker(){let r=this.parent();return r&&r.node.nodeName.toLowerCase()==="a"?r:null}}});Ht(ho,"A");var mu=class extends bi{constructor(e,t=e){super(gr("mask",e),t)}remove(){return this.targets().forEach(function(e){e.unmask()}),super.remove()}targets(){return ih("svg [mask*="+this.id()+"]")}};At({Container:{mask:pr(function(){return this.defs().put(new mu)})},Element:{masker(){return this.reference("mask")},maskWith(r){let e=r instanceof mu?r:this.parent().mask().add(r);return this.attr("mask","url(#"+e.id()+")")},unmask(){return this.attr("mask",null)}}});Ht(mu,"Mask");var wf=class extends Vn{constructor(e,t=e){super(gr("stop",e),t)}update(e){return(typeof e=="number"||e instanceof ft)&&(e={offset:arguments[0],color:arguments[1],opacity:arguments[2]}),e.opacity!=null&&this.attr("stop-opacity",e.opacity),e.color!=null&&this.attr("stop-color",e.color),e.offset!=null&&this.attr("offset",new ft(e.offset)),this}};At({Gradient:{stop:function(r,e,t){return this.put(new wf).update(r,e,t)}}});Ht(wf,"Stop");function aP(r,e){if(!r)return"";if(!e)return r;let t=r+"{";for(let i in e)t+=nB(i)+":"+e[i]+";";return t+="}",t}var pu=class extends Vn{constructor(e,t=e){super(gr("st
|
||
|
|
`);let e=document.createElement("div");return e.innerHTML=r,r=e.textContent,r},ln=r=>{try{return JSON.parse(JSON.stringify(r))}catch(e){return null}},t6=(r,e,t=!1)=>(r.data=ln(e.data),t&&(r.data.isActive=!1,Hi(r.data).forEach(n=>{n.isActive=!1})),r.children=[],e.children&&e.children.length>0&&e.children.forEach((i,n)=>{r.children[n]=t6({},i,t)}),Object.keys(e).forEach(i=>{!["data","children"].includes(i)&&!/^_/.test(i)&&(r[i]=e[i])}),r),zl=(r,e,t=!1,i=!0)=>{let n=e.nodeData?e.nodeData:e;return r.data=ln(n.data),i?delete r.data.uid:r.data.uid||(r.data.uid=$r()),t&&(r.data.isActive=!1),r.children=[],e.children&&e.children.length>0?e.children.forEach((s,a)=>{r.children[a]=zl({},s,t,i)}):e.nodeData&&e.nodeData.children&&e.nodeData.children.length>0&&e.nodeData.children.forEach((s,a)=>{r.children[a]=zl({},s,t,i)}),Object.keys(n).forEach(s=>{!["data","children"].includes(s)&&!/^_/.test(s)&&(r[s]=n[s])}),r},bu=(r,e=!1)=>new Promise((t,i)=>{let n=new Image;n.setAttribute("crossOrigin","anonymous"),n.onload=()=>{try{let s=document.createElement("canvas");s.width=n.width,s.height=n.height,s.getContext("2d").drawImage(n,0,0,n.width,n.height),e?s.toBlob(o=>{t(o)}):t(s.toDataURL())}catch(s){i(s)}},n.onerror=s=>{i(s)},n.src=r}),d9=r=>{if(!/^data:/.test(r))return r;let[e,t]=r.split(",");return{type:/^data:[^/]+\/([^;]+);/.exec(e)[1],base64:t}},f9=(r,e)=>{let t=document.createElement("a");t.href=r,t.download=e,t.click()},Rs=(r,e=300,t)=>{let i=null;return(...n)=>{i||(i=setTimeout(()=>{r.call(t,...n),i=null},e))}},m9=(r,e=300,t)=>{let i=null;return(...n)=>{i&&clearTimeout(i),i=setTimeout(()=>{i=null,r.apply(t,n)},e)}},hn=(r,e=()=>{})=>{let t=0,i=r.length;if(i<=0)return e();let n=()=>{if(t>=i){e();return}r[t](),setTimeout(()=>{t++,n()},0)};n()},Kn=r=>r*(Math.PI/180),Nf=r=>r.replace(/([a-z])([A-Z])/g,(...e)=>e[1]+"-"+e[2].toLowerCase());var p9=function(r,e){let t=!1,i=null,n=()=>{t=!1,e?r.call(e):r()};if(typeof MutationObserver!="undefined"){let s=1,a=new MutationObserver(n),o=document.createTextNode(s);a.observe(o,{characterData:!0}),i=function(){s=(s+1)%2,o.data=s}}else i=setTimeout;return function(){t||(t=!0,i(n,0))}},g9=(r,e,t=0,i=0)=>{let n=r.elRect,{scaleX:s,scaleY:a,translateX:o,translateY:l}=r.draw.transform(),{left:h,top:c,width:u,height:d}=e,f=(h+u)*s+o,m=(c+d)*a+l;h=h*s+o,c=c*a+l;let g=0,v=0;return h<0+t&&(g=-h+t),f>n.width-t&&(g=-(f-n.width)-t),c<0+i&&(v=-c+i),m>n.height-i&&(v=-(m-n.height)-i),{isOuter:g!==0||v!==0,offsetLeft:g,offsetTop:v}},Cf=null,cn=r=>(Cf||(Cf=document.createElement("div")),Cf.innerHTML=r,Cf.textContent),uo=r=>new Promise((e,t)=>{let i=new FileReader;i.onload=n=>{e(n.target.result)},i.onerror=n=>{t(n)},i.readAsDataURL(r)});var r6=r=>new Promise(e=>{let t=new Image;t.src=r,t.onload=()=>{e({width:t.width,height:t.height})},t.onerror=()=>{e({width:0,height:0})}}),$r=()=>eu(),v9=r=>new Promise((e,t)=>{let i=new FileReader;i.readAsDataURL(r),i.onload=async n=>{let s=n.target.result,a=await r6(s);e({url:s,size:a})},i.onerror=n=>{t(n)}}),y9=r=>([[" "," "]].forEach(e=>{r=r.replace(new RegExp(e[0],"g"),e[1])}),r),Il=r=>Object.prototype.toString.call(r).slice(8,-1),ei=r=>r==null||r==="";var Sf=null,x9=r=>{Sf||(Sf=document.createElement("div")),Sf.innerHTML=r;for(let e=Sf.childNodes,t=e.length;t--;)if(e[t].nodeType==1)return!0;return!1},xu=null,b9=(r,e,t)=>{xu||(xu=document.createElement("div")),xu.innerHTML=r;let i=n=>{n.childNodes.forEach(a=>{a.nodeType===1?i(a):a.nodeType===3&&n.replaceChild(document.createTextNode(a.nodeValue.replace(new RegExp(e,"g"),t)),a)})};return i(xu),xu.innerHTML};var wu=r=>(r=String(r).replace(/\s+/g,""),["#fff","#ffffff","#FFF","#FFFFFF","rgb(255,255,255)"].includes(r)||/rgba\(255,255,255,[^)]+\)/.test(r)),i6=r=>(r=String(r).replace(/\s+/g,""),["","transparent"].includes(r)||/rgba\(\d+,\d+,\d+,0\)/.test(r)),Ff=r=>{let{lineColor:e,root:t,second:i,node:n}=r,s=[e,t.fillColor,t.color,i.fillColor,i.color,n.fillColor,n.color,t.borderColor,i.borderColor,n.borderColor];for(let a=0;a<s.length;a++){let o=s[a];if(!i6(o)&&!wu(o))return o}},lP=r=>{let e=t=>{t.childNodes.forEach(n=>{n.nodeTy
|
||
|
|
`:t+=n.textContent):n.nodeType===3&&(t+=n.nodeValue)}return t.replace(/\n$/,"")},Mf=null,w9=r=>{Mf||(Mf=document.createElement("div")),Mf.innerHTML=r;let e=Mf.childNodes,t=[],i="";for(let n=0;n<e.length;n++){let s=e[n];s.nodeType===1?s.tagName.toLowerCase()==="br"?(t.push(i),i=""):i+=s.textContent:s.nodeType===3&&(i+=s.nodeValue)}return i&&t.push(i),t.map(n=>`<p><span>${Dn(n)}</span></p>`).join("")},co=null,A9=r=>{co||(co=document.createElement("div")),co.innerHTML=r;let e=co.querySelectorAll(".ql-formula");Array.from(e).forEach(n=>{let s=document.createTextNode("$smmformula$");n.parentNode.replaceChild(s,n)});let t=co.childNodes,i=[];for(let n=0;n<t.length;n++){let s=t[n];s.nodeType===1?i.push(s.textContent):s.nodeType===3&&i.push(s.nodeValue)}if(r=i.map(n=>`<p><span>${Dn(n)}</span></p>`).join(""),e.length>0){r=r.replace(/\$smmformula\$/g,'<span class="smmformula"></span>'),co.innerHTML=r;let n=co.querySelectorAll(".smmformula");Array.from(n).forEach((s,a)=>{s.parentNode.replaceChild(e[a],s)}),r=co.innerHTML}return r};var E9=(r,e)=>{let t={};return Object.keys(e).forEach(i=>{let n=r[i],s=e[i];if(Il(n)!==Il(s)){t[i]=s;return}if(Il(n)==="Object"){if(JSON.stringify(n)!==JSON.stringify(s)){t[i]=s;return}}else if(n!==s){t[i]=s;return}}),t},Ll=r=>/^_/.test(r)?!1:!H0.includes(r),C9=r=>{let e=[...yu],t=Object.keys(r);for(let i=0;i<t.length;i++)if(!e.includes(t[i]))return!1;return!0},S9=r=>r.reduce((e,t)=>{let i=e.find(n=>n.type===t.type);return i?t.list.forEach(n=>{let s=i.list.find(a=>a.name===n.name);s?s.icon=n.icon:i.list.push(n)}):e.push({...t}),e},[]),Ol=r=>{let e=[];return r.forEach(t=>{r.find(i=>i.uid!==t.uid&&i.isAncestor(t))||e.push(t)}),e};var T9=r=>{let e={},t={};r.forEach(n=>{let s=n.parent;if(s){let a=s.uid;t[a]=s;let o=n.getIndexInBrothers(),l={node:n,index:o};e[a]?e[a].find(h=>h.index===l.index)||e[a].push(l):e[a]=[l]}});let i=[];return Object.keys(e).forEach(n=>{if(e[n].length>1){let s=e[n].map(a=>a.index).sort((a,o)=>a-o);i.push({node:t[n],range:[s[0],s[s.length-1]]})}else i.push({node:e[n][0].node})}),i},M9=(r,e,t,i,n,s,a,o)=>e>n&&s>r&&i>a&&o>t,sh=r=>{let e=window.getSelection(),t=document.createRange();t.selectNodeContents(r),t.collapse(),e.removeAllRanges(),e.addRange(t)},ah=r=>{let e=window.getSelection(),t=document.createRange();t.selectNodeContents(r),e.removeAllRanges(),e.addRange(t)},Au=(r,e={})=>{e={...e},e&&e.richText&&e.resetRichText&&delete e.resetRichText;let i=n=>{n.forEach(s=>{s.data={...s.data,...e},s.children&&s.children.length>0&&i(s.children)})};return i(r),r},Bl=(r,e=!1,t=null,i=!1)=>{let n=s=>{s.forEach(a=>{a.data||(a.data={}),(e||ei(a.data.uid))&&(a.data.uid=$r()),i&&Hi(a.data).forEach(l=>{(e||ei(l.uid))&&(l.uid=$r())}),t&&t(a),a.children&&a.children.length>0&&n(a.children)})};return n(r),r},Ui=r=>r?Array.isArray(r)?r:[r]:[],mo=r=>r.parent?r.parent.nodeData.children.findIndex(e=>e.data.uid===r.uid):0,nr=(r,e)=>e.findIndex(t=>t.uid===r.uid),If=r=>{let e=0;for(let n=0;n<r.length;n++)e=r.charCodeAt(n)+((e<<5)-e);return"hsla("+new tu(e).genrand_int32()%360+", 50%, 50%, 1)"},Dn=r=>([["&","&"],["<","<"],[">",">"]].forEach(e=>{r=r.replace(new RegExp(e[0],"g"),e[1])}),r),kf=(r,e)=>{let t=Il(r);if(t!==Il(e))return!1;if(t==="Object"){let i=Object.keys(r),n=Object.keys(e);if(i.length!==n.length)return!1;for(let s=0;s<i.length;s++){let a=i[s];if(!n.includes(a)||!kf(r[a],e[a]))return!1}return!0}else if(t==="Array"){if(r.length!==e.length)return!1;for(let i=0;i<r.length;i++){let n=r[i],s=e[i],a=Il(n),o=Il(s);if(a!==o||!kf(n,s))return!1}return!0}else return r===e},n6=()=>navigator.clipboard&&typeof navigator.clipboard.read=="function",s6=r=>{navigator.clipboard&&navigator.clipboard.writeText&&navigator.clipboard.writeText(JSON.stringify(r))},k9=async()=>{let r=null,e=null;if(n6()){let t=await navigator.clipboard.read();if(t&&t.length>0)for(let i of t)for(let n of i.types)/^image\//.test(n)?e=await i.getType(n):n==="text/plain"&&(r=await(await i.getType(n)).text())}return{text:r,img:e}},zf=r=>{if(!r||!r.parent)return;let e=mo(r);e!==-1&&r.parent.nodeData.children.splice(e,1)},D9=r=>(Ev.forEach(
|
||
|
|
M${i},0
|
||
|
|
L${e-i},0
|
||
|
|
C${e-i},0 ${e},${0} ${e},${i}
|
||
|
|
L${e},${t-i}
|
||
|
|
C${e},${t-i} ${e},${t} ${e-i},${t}
|
||
|
|
L${i},${t}
|
||
|
|
C${i},${t} ${0},${t} ${0},${t-i}
|
||
|
|
L${0},${i}
|
||
|
|
C${0},${i} ${0},${0} ${i},${0}
|
||
|
|
Z
|
||
|
|
`;return this.createPath(n)}createDiamond(){let{width:e,height:t}=this.getNodeSize(),i=e/2,n=t/2,f=[[i,0],[e,n],[i,t],[0,n]];return this.createPolygon(f)}createParallelogram(){let{paddingX:e}=this.node.getPaddingVale();e=e||this.node.shapePadding.paddingX;let{width:t,height:i}=this.getNodeSize(),n=[[e,0],[t,0],[t-e,i],[0,i]];return this.createPolygon(n)}createRoundedRectangle(){let{width:e,height:t}=this.getNodeSize(),i=t/2,n=`
|
||
|
|
M${i},0
|
||
|
|
L${e-i},0
|
||
|
|
A${t/2},${t/2} 0 0,1 ${e-i},${t}
|
||
|
|
L${i},${t}
|
||
|
|
A${t/2},${t/2} 0 0,1 ${i},${0}
|
||
|
|
`;return this.createPath(n)}createOctagonalRectangle(){let e=5,{width:t,height:i}=this.getNodeSize(),n=[[0,e],[e,0],[t-e,0],[t,e],[t,i-e],[t-e,i],[e,i],[0,i-e]];return this.createPolygon(n)}createOuterTriangularRectangle(){let{paddingX:e}=this.node.getPaddingVale();e=e||this.node.shapePadding.paddingX;let{width:t,height:i}=this.getNodeSize(),n=[[e,0],[t-e,0],[t,i/2],[t-e,i],[e,i],[0,i/2]];return this.createPolygon(n)}createInnerTriangularRectangle(){let{paddingX:e}=this.node.getPaddingVale();e=e||this.node.shapePadding.paddingX;let{width:t,height:i}=this.getNodeSize(),n=[[0,0],[t,0],[t-e/2,i/2],[t,i],[0,i],[e/2,i/2]];return this.createPolygon(n)}createEllipse(){let{width:e,height:t}=this.getNodeSize(),i=e/2,n=t/2,s=`
|
||
|
|
M${i},0
|
||
|
|
A${i},${n} 0 0,1 ${i},${t}
|
||
|
|
M${i},${t}
|
||
|
|
A${i},${n} 0 0,1 ${i},${0}
|
||
|
|
`;return this.createPath(s)}createCircle(){let{width:e,height:t}=this.getNodeSize(),i=e/2,n=t/2,s=`
|
||
|
|
M${i},0
|
||
|
|
A${i},${n} 0 0,1 ${i},${t}
|
||
|
|
M${i},${t}
|
||
|
|
A${i},${n} 0 0,1 ${i},${0}
|
||
|
|
`;return this.createPath(s)}},q9=[J.SHAPE.RECTANGLE,J.SHAPE.DIAMOND,J.SHAPE.PARALLELOGRAM,J.SHAPE.ROUNDED_RECTANGLE,J.SHAPE.OCTAGONAL_RECTANGLE,J.SHAPE.OUTER_TRIANGULAR_RECTANGLE,J.SHAPE.INNER_TRIANGULAR_RECTANGLE,J.SHAPE.ELLIPSE,J.SHAPE.CIRCLE];function cP(){let r=this.getData("generalization");return Array.isArray(r)?r:r?[r]:[]}function uP(){return this.formatGetGeneralization().length>0}function dP(){return!!this.formatGetGeneralization().find(e=>!e.range||e.range.length<=0)}function fP(r){return this._generalizationList.findIndex(e=>e.generalizationNode.uid===r.uid)}function mP(){if(this.isGeneralization||!this.checkHasGeneralization())return;let r=0,e=0;this.formatGetGeneralization().forEach((i,n)=>{let s=this._generalizationList[n];s||(s=this._generalizationList[n]={}),s.node=this,s.range=i.range,s.generalizationLine||(s.generalizationLine=this.lineDraw.path()),s.generalizationNode||(s.generalizationNode=new go({data:{inserting:i.inserting,data:i},uid:$r(),renderer:this.renderer,mindMap:this.mindMap,isGeneralization:!0})),delete i.inserting,s.generalizationNode.generalizationBelongNode=this,s.generalizationNode.width>r&&(r=s.generalizationNode.width),s.generalizationNode.height>e&&(e=s.generalizationNode.height),i.isActive&&this.renderer.addNodeToActiveList(s.generalizationNode)}),this._generalizationNodeWidth=r,this._generalizationNodeHeight=e}function pP(){this.isGeneralization||(this.removeGeneralization(),this.createGeneralizationNode())}function gP(r){if(this.isGeneralization)return;this.updateGeneralizationData();let e=this.formatGetGeneralization();if(e.length<=0||this.getData("expand")===!1){this.removeGeneralization();return}e.length!==this._generalizationList.length&&this.removeGeneralization(),this.createGeneralizationNode(),this.renderer.layout.renderGeneralization(this._generalizationList),this._generalizationList.forEach(t=>{this.style.generalizationLine(t.generalizationLine),t.generalizationNode.render(()=>{},r)})}function vP(){let r=this.getChildrenLength(),e=this.formatGetGeneralization(),t=[];e.forEach(i=>{if(!i.range){t.push(i);return}i.range.length>0&&i.range[0]<=r-1&&i.range[1]<=r-1&&t.push(i)}),t.length!==e.length&&this.setData({generalization:t})}function yP(){this.isGeneralization||(this._generalizationList.forEach(r=>{r.generalizationNode.style.onRemove(),r.generalizationLine&&(r.generalizationLine.remove(),r.generalizationLine=null),r.generalizationNode&&(this.renderer.removeNodeFromActiveList(r.generalizationNode),r.generalizationNode.remove(),r.generalizationNode=null)}),this._generalizationList=[],this.generalizationBelongNode&&this.nodeDraw.find(".generalization_"+this.generalizationBelongNode.uid).remove())}function xP(){this.isGeneralization||this._generalizationList.forEach(r=>{r.generalizationLine&&r.generalizationLine.hide(),r.generalizationNode&&r.generalizationNode.hide()})}function bP(){this.isGeneralization||this._generalizationList.forEach(r=>{r.generalizationLine&&r.generalizationLine.show(),r.generalizationNode&&r.generalizationNode.show()})}function wP(r){this._generalizationList.forEach(e=>{e.generalizationLine.opacity(r),e.generalizationNode.group.opacity(r)})}function AP(){let r=this.generalizationBelongNode,e=r.formatGetGeneralization(),t=r.getGeneralizationNodeIndex(this),i=e[t],s=this.getStyle("hoverRectColor")||this.mindMap.opt.hoverRectColor,a=s?{stroke:s}:null;Array.isArray(i.range)&&i.range.length>0?this.mindMap.renderer.highlightNode(r,i.range,a):this.mindMap.renderer.highlightNode(r,null,a)}function EP(){this.mindMap.renderer.closeHighlightNode()}var d6={formatGetGeneralization:cP,checkHasGeneralization:uP,checkHasSelfGeneralization:dP,getGeneralizationNodeIndex:fP,createGeneralizationNode:mP,updateGeneralization:pP,updateGeneralizationData:vP,renderGeneralization:gP,removeGeneralization:yP,hideGeneralization:xP,showGeneralization:bP,setGeneralizationOpacity:wP,handleGeneralizationMouseenter:AP,handleGeneralizationMouseleave:EP};var CP='<svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="200" height="200"><path d="M475.136
|
||
|
|
`)}),s=s.join(`
|
||
|
|
`).replace(/\n$/g,"").split(/\n/gim),s.forEach((u,d)=>{u===""&&(u="\uFEFF");let f=new Zt().text(u);f.addClass("smm-text-node-wrap"),f.attr("text-anchor",{left:"start",center:"middle",right:"end"}[n]||"start"),this.style.text(f),f.y(i*j0*d+(j0-1)*i/2),t.add(f)});let{width:h,height:c}=t.bbox();if(c<=0){let u=new Zt().text(o);this.style.text(u),c=u.bbox().height}return h=Math.min(Math.ceil(h),a),c=Math.ceil(c),t.attr("data-width",h),t.attr("data-height",c),t.attr("data-ismultiLine",l||s.length>1),{node:t,width:h,height:c}}function n_(){let{hyperlink:r,hyperlinkTitle:e}=this.getData();if(!r)return;let{customHyperlinkJump:t,hyperlinkIcon:i}=this.mindMap.opt,{icon:n,style:s}=i,a=this.getNodeIconSize("hyperlinkIcon"),o=new Jt().size(a,a),l=new ho().to(r).target("_blank");l.node.addEventListener("click",c=>{typeof t=="function"&&(c.preventDefault(),t(r,this))}),e&&o.add(Jt(`<title>${e}</title>`)),l.rect(a,a).fill({color:"transparent"});let h=Jt(n||Tu.hyperlink).size(a,a);return this.style.iconNode(h,s.color),l.add(h),o.add(l),{node:o,width:a,height:a}}function s_(){let r=this.getData("tag");if(!r||r.length<=0)return[];let{maxTag:e,tagsColorMap:t}=this.mindMap.opt;t=t||{};let i=[];return r.slice(0,e).forEach((n,s)=>{let a="",o={...H9};typeof n=="string"?a=n:(a=n.text,o={...H9,...n.style});let l=typeof o.width!="undefined",h=new Qt;h.on("click",()=>{this.mindMap.emit("node_tag_click",this,n,s,h)});let c=new Zt().text(a);this.style.tagText(c,o);let{width:u,height:d}=c.bbox(),f=l?o.width:u+o.paddingX*2,m=l?Math.max(f,u):f,g=Math.max(o.height,d);l?c.x((m-u)/2):c.x(l?0:o.paddingX),c.cy(-g/2);let v=new Tr().size(f,o.height).cy(-g/2);l&&v.x((m-f)/2),this.style.tagRect(v,{...o,fill:o.fill||t[c.node.textContent]||If(c.node.textContent)}),h.add(v).add(c),i.push({node:h,width:m,height:g})}),i}function a_(){if(!this.getData("note"))return null;let{icon:r,style:e}=this.mindMap.opt.noteIcon,t=this.getNodeIconSize("noteIcon"),i=new Jt().attr("cursor","pointer").addClass("smm-node-note").size(t,t);i.add(new Tr().size(t,t).fill({color:"transparent"}));let n=Jt(r||Tu.note).size(t,t);return this.style.iconNode(n,e.color),i.add(n),this.mindMap.opt.customNoteContentShow||(this.noteEl||(this.noteEl=document.createElement("div"),this.noteEl.style.cssText=`
|
||
|
|
position: fixed;
|
||
|
|
padding: 10px;
|
||
|
|
border-radius: 5px;
|
||
|
|
box-shadow: 0 2px 5px rgb(0 0 0 / 10%);
|
||
|
|
display: none;
|
||
|
|
background-color: var(--background-primary);
|
||
|
|
z-index: ${this.mindMap.opt.nodeNoteTooltipZIndex}
|
||
|
|
`,(this.mindMap.opt.customInnerElsAppendTo||document.body).appendChild(this.noteEl)),this.noteEl.innerText=this.getData("note")),i.on("mouseover",()=>{let{left:s,top:a}=this.getNoteContentPosition();this.mindMap.opt.customNoteContentShow?this.mindMap.opt.customNoteContentShow.show(this.getData("note"),s,a,this):(this.noteEl.style.left=s+"px",this.noteEl.style.top=a+"px",this.noteEl.style.display="block")}),i.on("mouseout",()=>{this.mindMap.opt.customNoteContentShow?this.mindMap.opt.customNoteContentShow.hide():this.noteEl.style.display="none"}),i.on("click",s=>{this.mindMap.emit("node_note_click",this,s,i)}),i.on("dblclick",s=>{this.mindMap.emit("node_note_dblclick",this,s,i)}),{node:i,width:t,height:t}}function o_(){let{attachmentUrl:r,attachmentName:e}=this.getData();if(!r)return;let t=this.getNodeIconSize("attachmentIcon"),{icon:i,style:n}=this.mindMap.opt.attachmentIcon,s=new Jt().attr("cursor","pointer").size(t,t);e&&s.add(Jt(`<title>${e}</title>`)),s.add(new Tr().size(t,t).fill({color:"transparent"}));let a=Jt(i||Tu.attachment).size(t,t);return this.style.iconNode(a,n.color),s.add(a),s.on("click",o=>{this.mindMap.emit("node_attachmentClick",this,o,s)}),s.on("contextmenu",o=>{this.mindMap.emit("node_attachmentContextmenu",this,o,s)}),{node:s,width:t,height:t}}function l_(r){let{style:e}=this.mindMap.opt[r];return ei(e.size)?this.mindMap.themeConfig.iconSize:e.size}function h_(){let r=this.getNodeIconSize("noteIcon"),{scaleY:e}=this.mindMap.view.getTransformData().transform,t=r*e,{left:i,top:n}=this._noteData.node.node.getBoundingClientRect();return n+=t,{left:i,top:n}}function c_(r){this.mindMap.commonCaches.measureCustomNodeContentSizeEl||(this.mindMap.commonCaches.measureCustomNodeContentSizeEl=document.createElement("div"),this.mindMap.commonCaches.measureCustomNodeContentSizeEl.style.cssText=`
|
||
|
|
position: fixed;
|
||
|
|
left: -99999px;
|
||
|
|
top: -99999px;
|
||
|
|
`,this.mindMap.el.appendChild(this.mindMap.commonCaches.measureCustomNodeContentSizeEl)),this.mindMap.commonCaches.measureCustomNodeContentSizeEl.innerHTML="",this.mindMap.commonCaches.measureCustomNodeContentSizeEl.appendChild(r);let e=this.mindMap.commonCaches.measureCustomNodeContentSizeEl.getBoundingClientRect();return{width:e.width,height:e.height}}function u_(){return!!this._customNodeContent}var p6={createImgNode:$P,getImgShowSize:e_,createIconNode:t_,createRichTextNode:r_,createTextNode:i_,createHyperlinkNode:n_,createTagNode:s_,createNoteNode:a_,createAttachmentNode:o_,getNoteContentPosition:h_,getNodeIconSize:l_,measureCustomNodeContentSize:c_,isUseCustomNodeContent:u_};function d_(){if(this.getChildrenLength()<=0||this.isRoot)return;let{alwaysShowExpandBtn:r,notShowExpandBtn:e,expandBtnSize:t}=this.mindMap.opt;if(!r&&!e){let{width:i,height:n}=this;this._unVisibleRectRegionNode||(this._unVisibleRectRegionNode=new Tr,this._unVisibleRectRegionNode.fill({color:"transparent"})),this.group.add(this._unVisibleRectRegionNode),this.renderer.layout.renderExpandBtnRect(this._unVisibleRectRegionNode,t,i,n,this)}}function f_(){this._unVisibleRectRegionNode&&(this._unVisibleRectRegionNode.remove(),this._unVisibleRectRegionNode=null)}function m_(){this.needRerenderExpandBtnPlaceholderRect&&(this.needRerenderExpandBtnPlaceholderRect=!1,this.renderExpandBtnPlaceholderRect()),this.getChildrenLength()>0?this._unVisibleRectRegionNode||this.renderExpandBtnPlaceholderRect():this._unVisibleRectRegionNode&&this.clearExpandBtnPlaceholderRect()}var g6={renderExpandBtnPlaceholderRect:d_,clearExpandBtnPlaceholderRect:f_,updateExpandBtnPlaceholderRect:m_};function p_(){this.checkEnableDragModifyNodeWidth()&&(this._dragHandleNodes=null,this.dragHandleWidth=4,this.dragHandleMousedownX=0,this.isDragHandleMousedown=!1,this.dragHandleIndex=0,this.dragHandleMousedownCustomTextWidth=0,this.dragHandleMousedownBodyCursor="",this.dragHandleMousedownLeft=0,this.onDragMousemoveHandle=this.onDragMousemoveHandle.bind(this),window.addEventListener("mousemove",this.onDragMousemoveHandle),this.onDragMouseupHandle=this.onDragMouseupHandle.bind(this),window.addEventListener("mouseup",this.onDragMouseupHandle),this.mindMap.on("node_mouseup",this.onDragMouseupHandle))}function g_(r){if(!this.isDragHandleMousedown)return;r.stopPropagation(),r.preventDefault();let{minNodeTextModifyWidth:e,maxNodeTextModifyWidth:t,isUseCustomNodeContent:i,customCreateNodeContent:n}=this.mindMap.opt,s=i&&n&&this._customNodeContent;document.body.style.cursor="ew-resize",this.group.css({cursor:"ew-resize"});let{scaleX:a}=this.mindMap.draw.transform(),o=r.clientX-this.dragHandleMousedownX,l=this.dragHandleMousedownCustomTextWidth+(this.dragHandleIndex===0?-o:o)/a;if(l=Math.max(l,e),t!==-1&&(l=Math.min(l,t)),!s&&this.getData("image")){let h=this.getImgShowSize();this._rectInfo.textContentWidth-this.customTextWidth+l<=h[0]&&(l=h[0]+this.customTextWidth-this._rectInfo.textContentWidth)}this.customTextWidth=l,this.dragHandleIndex===0&&(this.left=this.dragHandleMousedownLeft+o/a),this.reRender(s?[]:["text"],{ignoreUpdateCustomTextWidth:!0})}function v_(){this.isDragHandleMousedown&&(document.body.style.cursor=this.dragHandleMousedownBodyCursor,this.group.css({cursor:"default"}),this.isDragHandleMousedown=!1,this.dragHandleMousedownX=0,this.dragHandleIndex=0,this.dragHandleMousedownCustomTextWidth=0,this.setData({customTextWidth:this.customTextWidth}),this.mindMap.render(),this.mindMap.emit("dragModifyNodeWidthEnd",this))}function y_(){let r=[new Tr,new Tr];return r.forEach((e,t)=>{e.size(this.dragHandleWidth,this.height).fill({color:"transparent"}).css({cursor:"ew-resize"}),e.on("mousedown",i=>{i.stopPropagation(),i.preventDefault(),this.dragHandleMousedownX=i.clientX,this.dragHandleIndex=t,this.dragHandleMousedownCustomTextWidth=this.customTextWidth===void 0?this._textData?this._textData.width:this.width:this.customTextWidth,this.dragHandleMousedownBodyCursor=document.body.style.cursor,this.dragHandleMousedownLeft=this.left,this.isDragHandleMousedown=!0})}),r}function x_(){this.che
|
||
|
|
position: fixed;
|
||
|
|
box-sizing: border-box;
|
||
|
|
${h?"":"box-shadow: 0 0 20px rgba(0,0,0,.5);"}
|
||
|
|
padding: ${this.textNodePaddingY}px ${this.textNodePaddingX}px;
|
||
|
|
margin-left: -${this.textNodePaddingX}px;
|
||
|
|
margin-top: -${this.textNodePaddingY}px;
|
||
|
|
outline: none;
|
||
|
|
word-break: break-all;
|
||
|
|
line-break: anywhere;
|
||
|
|
`,this.textEditNode.setAttribute("contenteditable",!0),this.textEditNode.addEventListener("keyup",v=>{v.stopPropagation()}),this.textEditNode.addEventListener("click",v=>{v.stopPropagation()}),this.textEditNode.addEventListener("mousedown",v=>{v.stopPropagation()}),this.textEditNode.addEventListener("keydown",v=>{this.checkIsAutoEnterTextEditKey(v)&&v.stopPropagation()}),this.textEditNode.addEventListener("paste",v=>{let y=v.clipboardData.getData("text"),{isSmm:A,data:b}=Rl(y);A&&b[0]&&b[0].data?o6(v,cn(b[0].data.text)):o6(v),this.emitTextChangeEvent()}),this.textEditNode.addEventListener("input",()=>{this.emitTextChangeEvent()}),(this.mindMap.opt.customInnerElsAppendTo||document.body).appendChild(this.textEditNode));let u=this.mindMap.view.scale,d=e.style.merge("fontSize"),f=(this.cacheEditingText||e.getData("text")).split(/\n/gim).map(g=>Dn(g)),m=e._textData.node.attr("data-ismultiLine")==="true";e.style.domText(this.textEditNode,u),h||(this.textEditNode.style.background=this.getBackground(e)),this.textEditNode.style.zIndex=a,n&&c?this.textEditNode.innerHTML="":this.textEditNode.innerHTML=f.join("<br>"),this.textEditNode.style.minWidth=t.width+this.textNodePaddingX*2+"px",this.textEditNode.style.minHeight=t.height+"px",this.textEditNode.style.left=Math.floor(t.left)+"px",this.textEditNode.style.top=Math.floor(t.top)+"px",this.textEditNode.style.display="block",this.textEditNode.style.maxWidth=o*u+"px",m?(this.textEditNode.style.lineHeight=j0,this.textEditNode.style.transform=`translateY(${(j0-1)*d/2*u}px)`):this.textEditNode.style.lineHeight="normal",this.setIsShowTextEdit(!0),i||l&&!n?ah(this.textEditNode):sh(this.textEditNode),this.cacheEditingText=""}emitTextChangeEvent(){this.mindMap.emit("node_text_edit_change",{node:this.currentNode,text:this.getEditText(),richText:!1})}updateTextEditNode(){if(this.mindMap.richText){this.mindMap.richText.updateTextEditNode();return}if(!this.showTextEdit||!this.currentNode)return;let e=this.currentNode._textData.node.node.getBoundingClientRect();this.textEditNode.style.minWidth=e.width+this.textNodePaddingX*2+"px",this.textEditNode.style.minHeight=e.height+this.textNodePaddingY*2+"px",this.textEditNode.style.left=Math.floor(e.left)+"px",this.textEditNode.style.top=Math.floor(e.top)+"px"}getBackground(e){if(e.style.merge("gradientStyle")){let i=e.style.merge("startColor"),n=e.style.merge("endColor");return`linear-gradient(to right, ${i}, ${n})`}else{let i=e.style.merge("fillColor"),n=e.style.merge("color");return i==="transparent"?wu(n)?Ff(this.mindMap.themeConfig):"#fff":i}}removeTextEditEl(){if(this.mindMap.richText){this.mindMap.richText.removeTextEditEl();return}if(!this.textEditNode)return;(this.mindMap.opt.customInnerElsAppendTo||document.body).removeChild(this.textEditNode)}getEditText(){return nh(this.textEditNode.innerHTML)}hideEditTextBox(){if(this.mindMap.richText)return this.mindMap.richText.hideEditText();if(!this.showTextEdit)return;let e=this.currentNode,t=this.getEditText();this.currentNode=null,this.textEditNode.style.display="none",this.textEditNode.innerHTML="",this.textEditNode.style.fontFamily="inherit",this.textEditNode.style.fontSize="inherit",this.textEditNode.style.fontWeight="normal",this.textEditNode.style.transform="translateY(0)",this.setIsShowTextEdit(!1),this.mindMap.execCommand("SET_NODE_TEXT",e,t),this.mindMap.render(),this.mindMap.emit("hide_text_edit",this.textEditNode,this.renderer.activeNodeList,e)}getCurrentEditNode(){return this.mindMap.richText?this.mindMap.richText.node:this.currentNode}};var V9={[J.LAYOUT.LOGICAL_STRUCTURE]:E6,[J.LAYOUT.LOGICAL_STRUCTURE_LEFT]:E6,[J.LAYOUT.MIND_MAP]:j9,[J.LAYOUT.CATALOG_ORGANIZATION]:G9,[J.LAYOUT.ORGANIZATION_STRUCTURE]:W9,[J.LAYOUT.TIMELINE]:k6,[J.LAYOUT.TIMELINE2]:k6,[J.LAYOUT.VERTICAL_TIMELINE]:Of,[J.LAYOUT.VERTICAL_TIMELINE2]:Of,[J.LAYOUT.VERTICAL_TIMELINE3]:Of,[J.LAYOUT.FISHBONE]:F6,[J.LAYOUT.FISHBONE2]:F6},I6=class{constructor(e={}){this.opt=e,this.mindMap=e.mindMap,this.themeConfig=this.mindMap.themeConfig,this.renderTree=this.mindMap.opt.data?(0,K9.default)({},this.mindMap.opt.data):null,this
|
||
|
|
|(?<!
|
||
|
|
)\r`,"g")).filter(d=>!!d);u.length>1&&t?t().then(()=>{this.mindMap.execCommand("INSERT_MULTI_CHILD_NODE",[],u.map(d=>({data:{text:d},children:[]})))}).catch(()=>{this.mindMap.execCommand("INSERT_CHILD_NODE",!1,[],{text:o})}):this.mindMap.execCommand("INSERT_CHILD_NODE",!1,[],{text:o})}}if(l&&(!o||!s))try{let h=null;i&&typeof i=="function"?h=await i(l):h=await v9(l),this.activeNodeList.length>0&&this.activeNodeList.forEach(c=>{this.mindMap.execCommand("SET_NODE_IMAGE",c,{url:h.url,title:"",width:h.size.width,height:h.size.height})})}catch(h){e(Wn.LOAD_CLIPBOARD_IMAGE_ERROR,h)}}catch(a){e(Wn.READ_CLIPBOARD_ERROR,a)}else this.beingCopyData&&this.mindMap.execCommand("PASTE_NODE",this.beingCopyData)}insertBefore(e,t){this.insertTo(e,t,"before")}insertAfter(e,t){this.insertTo(e,t,"after")}insertTo(e,t,i="before"){let n=Ui(e);n=n.filter(s=>!s.isRoot),i==="after"&&n.reverse(),n.forEach(s=>{let a=s.parent,o=a.children,l=nr(s,o);if(l===-1)return;o.splice(l,1),a.nodeData.children.splice(l,1);let h=t.parent,c=h.children,u=nr(t,c);u!==-1&&(i==="after"&&u++,c.splice(u,0,s),h.nodeData.children.splice(u,0,s.nodeData))}),this.mindMap.render()}removeNode(e=[]){if(e=Ui(e),this.activeNodeList.length<=0&&e.length<=0)return;let t=null,i=e.length>0,n=i?e:this.activeNodeList,s=n.find(a=>a.isRoot);if(s)this.clearActiveNodeList(),s.children=[],s.nodeData.children=[];else{t=this.getNextActiveNode(n);for(let a=0;a<n.length;a++){let o=n[a],l=this.textEdit.getCurrentEditNode();l&&l.getData("uid")===o.getData("uid")&&this.textEdit.hideEditTextBox(),i&&n.splice(a,1),o.isGeneralization?(this.deleteNodeGeneralization(o),this.removeNodeFromActiveList(o),a--):(this.removeNodeFromActiveList(o),zf(o),a--)}}this.activeNodeList=[],t&&this.addNodeToActiveList(t),this.emitNodeActiveEvent(),this.mindMap.render()}deleteNodeGeneralization(e){let t=e.generalizationBelongNode,i=t.getGeneralizationNodeIndex(e),n=t.getData("generalization");Array.isArray(n)?n.splice(i,1):n=null,this.mindMap.execCommand("SET_NODE_DATA",t,{generalization:n}),this.closeHighlightNode()}removeCurrentNode(e=[]){if(e=Ui(e),this.activeNodeList.length<=0&&e.length<=0)return;let i=e.length>0?e:this.activeNodeList;i=i.filter(s=>!s.isRoot);let n=this.getNextActiveNode(i);for(let s=0;s<i.length;s++){let a=i[s];if(a.isGeneralization)this.deleteNodeGeneralization(a);else{let o=a.parent,l=mo(a);o.nodeData.children.splice(l,1,...a.nodeData.children||[])}}this.activeNodeList=[],n&&this.addNodeToActiveList(n),this.emitNodeActiveEvent(),this.mindMap.render()}getNextActiveNode(e){if(e.length!==1||this.findActiveNodeIndex(e[0])===-1)return null;let t=null;if(this.activeNodeList.length===1&&!this.activeNodeList[0].isGeneralization&&this.mindMap.opt.deleteNodeActive){let i=this.activeNodeList[0],n=i.parent.children,s=nr(i,n);s<n.length-1?t=n[s+1]:s>0?t=n[s-1]:t=i.parent}return t}copyNode(){if(this.activeNodeList.length<=0)return null;let e=Ol(this.activeNodeList);return e=Eu(e),e.map(t=>zl({},t,!0))}cutNode(e){if(this.activeNodeList.length<=0)return;let t=Ol(this.activeNodeList).filter(n=>!n.isRoot);t=Eu(t);let i=t.map(n=>zl({},n,!0));t.forEach(n=>{zf(n)}),this.clearActiveNodeList(),this.mindMap.render(),e&&typeof e=="function"&&e(i)}moveNodeTo(e,t){let i=Ui(e);i=i.filter(n=>!n.isRoot),i.forEach(n=>{this.removeNodeFromActiveList(n),zf(n),t.setData({expand:!0}),t.nodeData.children.push(n.nodeData)}),this.emitNodeActiveEvent(),this.mindMap.render()}pasteNode(e){e=Ui(e),this.mindMap.execCommand("INSERT_MULTI_CHILD_NODE",[],e)}setNodeStyle(e,t,i){let n={[t]:i};this.setNodeDataRender(e,n),yu.includes(t)&&(e.parent||e).renderLine(!0)}setNodeStyles(e,t){let i={...t};this.setNodeDataRender(e,i);let n=Object.keys(t),s=!1;n.forEach(a=>{yu.includes(a)&&(s=!0)}),s&&(e.parent||e).renderLine(!0)}setNodeActive(e,t){this.mindMap.execCommand("SET_NODE_DATA",e,{isActive:t}),e.updateNodeByActive(t)}setNodeExpand(e,t){this.mindMap.execCommand("SET_NODE_DATA",e,{expand:t}),this.mindMap.render()}expandAllNode(e=""){if(!this.renderTree)return;let t=(i,n)=>{!n&&i.data.uid===e&&(n=!0),n&&!i.data.expand&&(i.data.expand=!0),i.children
|
||
|
|
* {
|
||
|
|
margin: 0;
|
||
|
|
padding: 0;
|
||
|
|
box-sizing: border-box;
|
||
|
|
}
|
||
|
|
`,minExportImgCanvasScale:2,addContentToHeader:null,addContentToFooter:null,handleBeingExportSvg:null,maxCanvasSize:16384,defaultAssociativeLineText:"\u5173\u8054",associativeLineIsAlwaysAboveNode:!0,associativeLineInitPointsPosition:{from:"",to:""},enableAdjustAssociativeLinePoints:!0,beforeAssociativeLineConnection:null,disableTouchZoom:!1,minTouchZoomScale:20,maxTouchZoomScale:-1,isLimitMindMapInCanvasWhenHasScrollbar:!0,isOnlySearchCurrentRenderNodes:!1,beforeCooperateUpdate:null,rainbowLinesConfig:{open:!1,colorsList:[]},demonstrateConfig:null,enableEditFormulaInRichTextEdit:!0,katexFontPath:"https://unpkg.com/katex@0.16.11/dist/",getKatexOutputType:null,transformRichTextOnEnterEdit:null,beforeHideRichTextEdit:null,outerFramePaddingX:10,outerFramePaddingY:10,defaultOuterFrameText:"\u5916\u6846",onlyPainterNodeCustomStyles:!1,beforeDeleteNodeImg:null,imgResizeBtnSize:25,minImgResizeWidth:50,minImgResizeHeight:50,maxImgResizeWidthInheritTheme:!1,maxImgResizeWidth:1/0,maxImgResizeHeight:1/0,customDeleteBtnInnerHTML:"",customResizeBtnInnerHTML:""};var hr=class{constructor(e={}){if(hr.instanceCount++,this.opt=this.handleOpt((0,R6.default)(B6,e)),this.opt.data=this.handleData(this.opt.data),this.el=this.opt.el,!this.el)throw new Error("\u7F3A\u5C11\u5BB9\u5668\u5143\u7D20el");this.getElRectInfo(),this.initWidth=this.width,this.initHeight=this.height,this.cssEl=null,this.cssTextMap={},this.nodeInnerPrefixList=[],this.nodeInnerPostfixList=[],this.editNodeClassList=[],this.extendShapeList=[],this.initContainer(),this.initTheme(),this.initCache(),hr.pluginList.filter(t=>t.preload).forEach(t=>{this.initPlugin(t)}),this.event=new kv({mindMap:this}),this.keyCommand=new Nu({mindMap:this}),this.command=new Z9({mindMap:this}),this.renderer=new Q9({mindMap:this}),this.view=new Cv({mindMap:this}),this.batchExecution=new J9,hr.pluginList.filter(t=>!t.preload).forEach(t=>{this.initPlugin(t)}),this.addCss(),this.render(this.opt.fit?()=>this.view.fit():()=>{}),this.opt.addHistoryOnInit&&this.opt.data&&this.command.addHistory()}handleOpt(e){return Mp.includes(e.layout)||(e.layout=J.LAYOUT.LOGICAL_STRUCTURE),e.theme=e.theme&&yo[e.theme]?e.theme:"default",e}handleData(e){return ei(e)||Object.keys(e).length<=0?null:(e=ln(e||{}),e.data&&!e.data.expand&&(e.data.expand=!0),Bl([e],!1,null,!0),e)}initContainer(){let{associativeLineIsAlwaysAboveNode:e}=this.opt;this.el.classList.add("smm-mind-map-container");let t=()=>{this.associativeLineDraw=this.draw.group(),this.associativeLineDraw.addClass("smm-associative-line-container")};this.svg=Jt().addTo(this.el).size(this.width,this.height),this.draw=this.svg.group(),this.draw.addClass("smm-container"),this.lineDraw=this.draw.group(),this.lineDraw.addClass("smm-line-container"),e||t(),this.nodeDraw=this.draw.group(),this.nodeDraw.addClass("smm-node-container"),e&&t(),this.otherDraw=this.draw.group(),this.otherDraw.addClass("smm-other-container")}clearDraw(){this.lineDraw.clear(),this.associativeLineDraw.clear(),this.nodeDraw.clear(),this.otherDraw.clear()}appendCss(e,t){this.cssTextMap[e]=t,this.removeCss(),this.addCss()}removeAppendCss(e){this.cssTextMap[e]&&(delete this.cssTextMap[e],this.removeCss(),this.addCss())}joinCss(){return Av+Object.keys(this.cssTextMap).map(e=>this.cssTextMap[e]).join(`
|
||
|
|
`)}addCss(){this.cssEl=document.createElement("style"),this.cssEl.type="text/css",this.cssEl.innerHTML=this.joinCss(),document.head.appendChild(this.cssEl)}removeCss(){this.cssEl&&document.head.removeChild(this.cssEl)}checkEditNodeClassIndex(e){return this.editNodeClassList.findIndex(t=>t===e)}addEditNodeClass(e){this.checkEditNodeClassIndex(e)===-1&&this.editNodeClassList.push(e)}deleteEditNodeClass(e){let t=this.checkEditNodeClassIndex(e);t!==-1&&this.editNodeClassList.splice(t,1)}render(e,t=""){this.initTheme(),this.renderer.render(e,t)}reRender(e,t=""){this.renderer.reRender=!0,this.renderer.clearCache(),this.clearDraw(),this.render(e,t)}getElRectInfo(){if(this.elRect=this.el.getBoundingClientRect(),this.width=this.elRect.width,this.height=this.elRect.height,this.width<=0||this.height<=0)throw new Error("\u5BB9\u5668\u5143\u7D20el\u7684\u5BBD\u9AD8\u4E0D\u80FD\u4E3A0")}resize(){let e=this.width,t=this.height;this.getElRectInfo(),this.svg.size(this.width,this.height),(e!==this.width||t!==this.height)&&(this.demonstrate?this.demonstrate.isInDemonstrate||this.render():this.render()),this.emit("resize")}on(e,t){this.event.on(e,t)}emit(e,...t){this.event.emit(e,...t)}off(e,t){this.event.off(e,t)}initCache(){this.commonCaches={measureCustomNodeContentSizeEl:null,measureRichtextNodeTextSizeEl:null}}initTheme(){this.themeConfig=c6(yo[this.opt.theme]||yo.default,this.opt.themeConfig),Cu.setBackgroundStyle(this.el,this.themeConfig)}setTheme(e,t=!1){this.execCommand("CLEAR_ACTIVE_NODE"),this.opt.theme=e,t||this.render(null,J.CHANGE_THEME),this.emit("view_theme_change",e)}getTheme(){return this.opt.theme}setThemeConfig(e,t=!1){let i=E9(this.themeConfig,e);if(this.opt.themeConfig=e,!t){let n=h9(i);this.render(null,n?"":J.CHANGE_THEME)}}getCustomThemeConfig(){return this.opt.themeConfig}getThemeConfig(e){return e===void 0?this.themeConfig:this.themeConfig[e]}getConfig(e){return e===void 0?this.opt:this.opt[e]}updateConfig(e={}){this.emit("before_update_config",this.opt);let t={...this.opt};this.opt=this.handleOpt(R6.default.all([B6,this.opt,e])),this.emit("after_update_config",this.opt,t)}getLayout(){return this.opt.layout}setLayout(e,t=!1){Mp.includes(e)||(e=J.LAYOUT.LOGICAL_STRUCTURE),this.opt.layout=e,this.view.reset(),this.renderer.setLayout(),t||this.render(null,J.CHANGE_LAYOUT),this.emit("layout_change",e)}execCommand(...e){this.command.exec(...e)}updateData(e){e=this.handleData(e),this.emit("before_update_data",e),this.renderer.setData(e),this.render(),this.command.addHistory(),this.emit("update_data",e)}setData(e){e=this.handleData(e),this.emit("before_set_data",e),this.opt.data=e,this.execCommand("CLEAR_ACTIVE_NODE"),this.command.clearHistory(),this.command.addHistory(),this.renderer.setData(e),this.reRender(),this.emit("set_data",e)}setFullData(e){e.root&&this.setData(e.root),e.layout&&this.setLayout(e.layout),e.theme&&(e.theme.template&&this.setTheme(e.theme.template),e.theme.config&&this.setThemeConfig(e.theme.config)),e.view&&this.view.setTransformData(e.view)}getData(e){let t=this.command.getCopyData(),i={};return e?i={layout:this.getLayout(),root:t,theme:{template:this.getTheme(),config:this.getCustomThemeConfig()},view:this.view.getTransformData()}:i=t,ln(i)}async export(...e){try{if(!this.doExport)throw new Error("\u8BF7\u6CE8\u518CExport\u63D2\u4EF6\uFF01");return await this.doExport.export(...e)}catch(t){this.opt.errorHandler(Wn.EXPORT_ERROR,t)}}toPos(e,t){return{x:e-this.elRect.left,y:t-this.elRect.top}}setMode(e){if(![J.MODE.READONLY,J.MODE.EDIT].includes(e))return;let t=e===J.MODE.READONLY;t!==this.opt.readonly&&(t&&(this.renderer.textEdit.isShowTextEdit()&&(this.renderer.textEdit.hideEditTextBox(),this.command.originAddHistory()),this.execCommand("CLEAR_ACTIVE_NODE")),this.opt.readonly=t,!t&&this.command.history.length<=0&&this.command.originAddHistory(),this.emit("mode_change",e))}getSvgData({paddingX:e=0,paddingY:t=0,ignoreWatermark:i=!1,addContentToHeader:n,addContentToFooter:s,node:a}={}){let{watermarkConfig:o,openPerformance:l}=this.opt;l&&this.renderer.forceLoadNode(a);let{cssTextList:h,header:c,heade
|
||
|
|
|
||
|
|
`,t.data.note&&(e+=t.data.note+`
|
||
|
|
|
||
|
|
`)},()=>{},!0),e};var X6=r=>r.richText?fo(r.text):r.text,fq=r=>new Array(r).fill(" ").join(""),mx=r=>{let e="";return it(r,null,(t,i,n,s)=>{e+=fq(s),e+=" "+X6(t.data);let a=t.data.generalization;Array.isArray(a)?e+=a.map(o=>` [${X6(o)}]`):a&&a.text&&(e+=` [${X6(a)}]`),e+=`
|
||
|
|
|
||
|
|
`},()=>{},!0),e};var Yf=class{constructor(e){this.mindMap=e.mindMap}async export(e,t=!0,i="\u601D\u7EF4\u5BFC\u56FE",...n){if(this[e]){let s=await this[e](i,...n);return t&&f9(s,i+"."+e),s}else return null}createTransformImgTaskList(e,t,i,n){return e.find(t).map(async a=>{let o=n(a);if(/^data:/.test(o)||o==="none")return;let l=await bu(o);a.attr(i,l)})}async getSvgData(e){let{exportPaddingX:t,exportPaddingY:i,errorHandler:n,resetCss:s,addContentToHeader:a,addContentToFooter:o,handleBeingExportSvg:l}=this.mindMap.opt,{svg:h,svgHTML:c,clipData:u}=this.mindMap.getSvgData({paddingX:t,paddingY:i,addContentToHeader:a,addContentToFooter:o,node:e});u&&(u.paddingX=t,u.paddingY=i);let d=!1,f=this.createTransformImgTaskList(h,"image","href",v=>v.attr("href")||v.attr("xlink:href")),m=this.createTransformImgTaskList(h,"img","src",v=>v.attr("src")),g=[...f,...m];try{await Promise.all(g)}catch(v){n(Wn.EXPORT_LOAD_IMAGE_ERROR,v)}if(this.mindMap.richText){let v=h.find("foreignObject");if(v.length>0&&(v[0].add(Jt(`<style>${s}</style>`)),d=!0),this.mindMap.formula&&h.find(".ql-formula").length>0){let A=this.mindMap.formula.getStyleText();if(A){let b=document.createElement("style");b.innerHTML=A,Ps(b),v[0].add(b),d=!0}}}return typeof l=="function"&&(d=!0,h=l(h)),(g.length>0||d)&&(c=h.svg()),{node:h,str:c,clipData:u}}svgToPng(e,t,i=null,n=!1,s="image/png"){let{maxCanvasSize:a,minExportImgCanvasScale:o}=this.mindMap.opt;return new Promise((l,h)=>{let c=new Image;c.setAttribute("crossOrigin","anonymous"),c.onload=async()=>{try{let u=document.createElement("canvas"),d=Math.max(window.devicePixelRatio,o),f=c.width,m=c.height,g=0,v=0;i&&(g=i.paddingX,v=i.paddingY,f=i.width+g*2,m=i.height+v*2);let y=0,A=0,{backgroundImage:b}=this.mindMap.themeConfig;if(n&&b&&!t){let G=await new Promise(Q=>{let Y=new Image;Y.onload=()=>{Q([Y.width,Y.height])},Y.onerror=()=>{Q(null)},Y.src=b});if(G){let Q=f/m,Y=G[0]/G[1];Q>Y?(y=f,A=f/Y):(A=m,y=m*Y)}}let C=1,M=1,D=(y||f)*d,L=(A||m)*d;if(D>a||L>a){let G=null,Q=null;D>a?G=a:L>a&&(Q=a);let Y=Df(D,L,G,Q);C=Y[0]/D,M=Y[1]/L,D=Y[0],L=Y[1]}u.width=D,u.height=L;let k=D/d,V=L/d;u.style.width=k+"px",u.style.height=V+"px";let B=u.getContext("2d");B.scale(d,d),t||await this.drawBackgroundToCanvas(B,k,V);let _=(y>0?(y-f)/2:0)*C,S=(A>0?(A-m)/2:0)*M;i?B.drawImage(c,i.left,i.top,i.width,i.height,g*C+_,v*M+S,i.width*C,i.height*M):B.drawImage(c,_,S,f*C,m*M),l(u.toDataURL(s))}catch(u){h(u)}},c.onerror=u=>{h(u)},c.src=e})}drawBackgroundToCanvas(e,t,i){return new Promise((n,s)=>{let{backgroundColor:a="#fff",backgroundImage:o,backgroundRepeat:l="no-repeat",backgroundPosition:h="center center",backgroundSize:c="cover"}=this.mindMap.themeConfig;e.save(),e.rect(0,0,t,i),e.fillStyle=a,e.fill(),e.restore(),o&&o!=="none"?(e.save(),fx(e,t,i,o,{backgroundRepeat:l,backgroundPosition:h,backgroundSize:c},u=>{u?s(u):n(),e.restore()})):n()})}drawBackgroundToSvg(e){return new Promise(async t=>{let{backgroundColor:i="#fff",backgroundImage:n,backgroundRepeat:s="repeat"}=this.mindMap.themeConfig;if(e.css("background-color",i),n&&n!=="none"){let a=await bu(n);e.css("background-image",`url(${a})`),e.css("background-repeat",s),t()}else t()})}async _image(e,t,i=!1,n=null,s=!1){this.mindMap.renderer.textEdit.hideEditTextBox(),this.handleNodeExport(n);let{str:a,clipData:o}=await this.getSvgData(n),l=await this.fixSvgStrAndToBlob(a);return await this.svgToPng(l,i,o,s,e)}async png(...e){return await this._image("image/png",...e)}async jpg(...e){return await this._image("image/jpg",...e)}handleNodeExport(e){if(e&&e.getData("isActive")){e.deactivate();let{alwaysShowExpandBtn:t,notShowExpandBtn:i}=this.mindMap.opt;!t&&!i&&e.getData("expand")&&e.removeExpandBtn()}}async pdf(e,t=!1,i=!1){if(!this.mindMap.doExportPDF)throw new Error("\u8BF7\u6CE8\u518CExportPDF\u63D2\u4EF6");let n=await this.png(e,t,null,i);return await this.mindMap.doExportPDF.pdf(n)}async xmind(e){if(!this.mindMap.doExportXMind)throw new Error("\u8BF7\u6CE8\u518CExportXMind\u63D2\u4EF6");let t=this.mindMap.getData(),i=await this.mindMap.doExportXMind.xmind(t,e);return await uo(i)}async svg(e){this.mi
|
||
|
|
position: fixed;
|
||
|
|
box-sizing: border-box;
|
||
|
|
background-color: #fff;
|
||
|
|
box-shadow: 0 0 20px rgba(0,0,0,.5);
|
||
|
|
outline: none;
|
||
|
|
word-break: break-all;
|
||
|
|
`,this.textEditNode.setAttribute("contenteditable",!0),this.textEditNode.addEventListener("keyup",m=>{m.stopPropagation()}),this.textEditNode.addEventListener("click",m=>{m.stopPropagation()}),(this.mindMap.opt.customInnerElsAppendTo||document.body).appendChild(this.textEditNode));let{node:e,range:t}=this.activeOuterFrame,i=this.getStyle(this.getNodeRangeFirstNode(e,t)),[n,s,a,o]=i.textFillPadding,{defaultOuterFrameText:l,nodeTextEditZIndex:h}=this.mindMap.opt,c=this.mindMap.view.scale,u=this.getText(this.getNodeRangeFirstNode(e,t)),d=(u||l).split(/\n/gim);this.textEditNode.style.padding=`${n}px ${s}px ${a}px ${o}px`,this.textEditNode.style.fontFamily=i.fontFamily,this.textEditNode.style.fontSize=i.fontSize*c+"px",this.textEditNode.style.fontWeight=i.fontWeight,this.textEditNode.style.fontStyle=i.fontStyle,this.textEditNode.style.lineHeight=d.length>1?i.lineHeight:"normal",this.textEditNode.style.zIndex=h,this.textEditNode.innerHTML=d.join("<br>"),this.textEditNode.style.display="block",this.updateTextEditBoxPos(r),this.setIsShowTextEdit(!0),u===""||u===l?ah(this.textEditNode):sh(this.textEditNode)}function vq(r){this.showTextEdit=r,r?this.mindMap.keyCommand.stopCheckInSvg():this.mindMap.keyCommand.recoveryCheckInSvg()}function yq(){if(!this.textEditNode)return;(this.mindMap.opt.customInnerElsAppendTo||document.body).removeChild(this.textEditNode)}function xq(){this.hideEditTextBox()}function bq(r){let e=r.node.getBoundingClientRect();this.textEditNode&&(this.textEditNode.style.minWidth=`${e.width}px`,this.textEditNode.style.minHeight=`${e.height}px`,this.textEditNode.style.left=`${e.left}px`,this.textEditNode.style.top=`${e.top}px`)}function wq(){if(!this.showTextEdit)return;let{el:r,textNode:e,node:t,range:i}=this.activeOuterFrame,n=nh(this.textEditNode.innerHTML);n=n===this.mindMap.opt.defaultOuterFrameText?"":n,this.updateActiveOuterFrame({text:n}),this.textEditNode.style.display="none",this.textEditNode.innerHTML="",this.setIsShowTextEdit(!1),this.renderText(n,r,e,t,i),this.mindMap.emit("hide_text_edit")}function Aq(r,e,t,i,n){if(!r)return;t.clear();let s=new Tr;t.add(s);let a=this.getStyle(this.getNodeRangeFirstNode(i,n)),[o,l,h,c]=a.textFillPadding,u=r.replace(/\n$/g,"").split(/\n/gim),d=new Qt;u.forEach((b,C)=>{b===""&&(b="\uFEFF");let M=new Zt().text(b);M.y(a.fontSize*a.lineHeight*C),this.styleText(M,a),d.add(M)}),t.add(d);let{width:f,height:m}=t.bbox(),g=f+o+h,v=m+l+c;s.size(g,v).x(0).dy(0),this.styleTextShape(s,a);let y=0;switch(a.textAlign){case"left":y=e.x();break;case"center":y=e.x()+e.width()/2-g/2;break;case"right":y=e.x()+e.width()-g;break;default:break}let A=e.y()-v;s.x(y),s.y(A),d.x(y+o),d.y(A+l)}function Eq(r,e){r.fill({color:e.textFill}).radius(e.textFillRadius)}function Cq(r,e){r.fill({color:e.color}).css({"font-family":e.fontFamily,"font-size":e.fontSize+"px","font-weight":e.fontWeight,"font-style":e.fontStyle})}function Sq(r){let e=r.getData("outerFrame");return e&&e.text?e.text:""}var Z6={getText:Sq,createText:pq,styleTextShape:Eq,styleText:Cq,onScale:xq,showEditTextBox:gq,setIsShowTextEdit:vq,removeTextEditEl:yq,hideEditTextBox:wq,updateTextEditBoxPos:bq,renderText:Aq};var $6={radius:5,strokeWidth:2,strokeColor:"#0984e3",strokeDasharray:"5,5",fill:"rgba(9,132,227,0.05)",fontSize:14,fontFamily:"\u5FAE\u8F6F\u96C5\u9ED1, Microsoft YaHei",fontWeight:"normal",fontStyle:"normal",color:"#fff",lineHeight:1.2,textFill:"#0984e3",textFillRadius:5,textFillPadding:[5,5,5,5],textAlign:"left"},J6="outer-frame-text-edit-warp",zu=class{constructor(e={}){this.mindMap=e.mindMap,this.draw=null,this.createDrawContainer(),this.isNotRenderOuterFrames=!1,this.textNodeList=[],this.outerFrameElList=[],this.activeOuterFrame=null,this.textEditNode=null,this.showTextEdit=!1,Object.keys(Z6).forEach(t=>{this[t]=Z6[t].bind(this)}),this.mindMap.addEditNodeClass(J6),this.bindEvent()}createDrawContainer(){this.draw=this.mindMap.draw.group(),this.draw.addClass("smm-outer-frame-container"),this.draw.back(),this.draw.forward()}bindEvent(){this.renderOuterFrames=this.renderOuterFrames.bind(this),this.mindMap.on("node_tree_rende
|
||
|
|
|
||
|
|
<select class="smm-select" id="theme-category-select">
|
||
|
|
<option value="all">\u5168\u90E8</option>
|
||
|
|
<option value="light">\u7ECF\u5178</option>
|
||
|
|
<option value="dark">\u6DF1\u8272</option>
|
||
|
|
<option value="minimal">\u6734\u7D20</option>
|
||
|
|
</select>
|
||
|
|
|
||
|
|
<!-- \u6D45\u8272\u4E3B\u9898 -->
|
||
|
|
<div class="smm-category-title" id="light-category">\u7ECF\u5178\u4E3B\u9898</div>
|
||
|
|
<div class="smm-themes-grid" id="light-themes">
|
||
|
|
<div class="smm-theme-card" themeCal="classic15">
|
||
|
|
<div class="smm-theme-image" style="background-image: url('${$e+"classic15.png"}')"></div>
|
||
|
|
<div class="smm-theme-info">
|
||
|
|
<div class="smm-theme-title">\u8111\u56FE\u7ECF\u517815</div>
|
||
|
|
<div class="smm-theme-desc">\u84DD\u7070\u8272\u914D\u8272\u7ECF\u5178</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="smm-theme-card" themeCal="classic14">
|
||
|
|
<div class="smm-theme-image" style="background-image: url('${$e+"classic14.png"}')"></div>
|
||
|
|
<div class="smm-theme-info">
|
||
|
|
<div class="smm-theme-title">\u8111\u56FE\u7ECF\u517814</div>
|
||
|
|
<div class="smm-theme-desc">\u5706\u5F62\u8282\u70B9\u3001\u9EC4\u8272\u4E3B\u9898</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="smm-theme-card" themeCal="classic13">
|
||
|
|
<div class="smm-theme-image" style="background-image: url('${$e+"classic13.png"}')"></div>
|
||
|
|
<div class="smm-theme-info">
|
||
|
|
<div class="smm-theme-title">\u8111\u56FE\u7ECF\u517813</div>
|
||
|
|
<div class="smm-theme-desc">\u9EC4\u84DD\u767D\u4E3B\u9898</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="smm-theme-card" themeCal="classic12">
|
||
|
|
<div class="smm-theme-image" style="background-image: url('${$e+"classic12.png"}')"></div>
|
||
|
|
<div class="smm-theme-info">
|
||
|
|
<div class="smm-theme-title">\u8111\u56FE\u7ECF\u517812</div>
|
||
|
|
<div class="smm-theme-desc">\u7EFF\u767D\u4E3B\u9898</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="smm-theme-card" themeCal="classic11">
|
||
|
|
<div class="smm-theme-image" style="background-image: url('${$e+"classic11.png"}')"></div>
|
||
|
|
<div class="smm-theme-info">
|
||
|
|
<div class="smm-theme-title">\u8111\u56FE\u7ECF\u517811</div>
|
||
|
|
<div class="smm-theme-desc">\u84DD\u9EC4\u767D\u4E3B\u9898</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="smm-theme-card" themeCal="classic10">
|
||
|
|
<div class="smm-theme-image" style="background-image: url('${$e+"classic10.png"}')"></div>
|
||
|
|
<div class="smm-theme-info">
|
||
|
|
<div class="smm-theme-title">\u8111\u56FE\u7ECF\u517810</div>
|
||
|
|
<div class="smm-theme-desc">\u7070\u9EC4\u4E3B\u9898</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="smm-theme-card" themeCal="classic9">
|
||
|
|
<div class="smm-theme-image" style="background-image: url('${$e+"classic9.png"}')"></div>
|
||
|
|
<div class="smm-theme-info">
|
||
|
|
<div class="smm-theme-title">\u8111\u56FE\u7ECF\u51789</div>
|
||
|
|
<div class="smm-theme-desc">\u9EC4\u8272\u4E3B\u9898</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="smm-theme-card" themeCal="classic8">
|
||
|
|
<div class="smm-theme-image" style="background-image: url('${$e+"classic8.png"}')"></div>
|
||
|
|
<div class="smm-theme-info">
|
||
|
|
<div class="smm-theme-title">\u8111\u56FE\u7ECF\u51788</div>
|
||
|
|
<div class="smm-theme-desc">\u84DD\u7EFF\u4E3B\u9898</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="smm-theme-card" themeCal="classic7">
|
||
|
|
<div class="smm-theme-image" style="background-image: url('${$e+"classic7.jpg"}')"></div>
|
||
|
|
<div class="smm-theme-info">
|
||
|
|
<div class="smm-theme-title">\u8111\u56FE\u7ECF\u51787</div>
|
||
|
|
<div class="smm-theme-desc">\u7EA2\u84DD\u4E3B\u9898</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="smm-theme-card" themeCal="classic6">
|
||
|
|
<div class="smm-theme-image" style="background-image: url('${$e+"classic6.jpg"}')"></div>
|
||
|
|
<div class="smm-theme-info">
|
||
|
|
<div class="smm-theme-title">\u8111\u56FE\u7ECF\u51786</div>
|
||
|
|
<div class="smm-theme-desc">\u9ED1\u9EC4\u4E3B\u9898</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="smm-theme-card" themeCal="classic5">
|
||
|
|
<div class="smm-theme-image" style="background-image: url('${$e+"classic5.jpg"}')"></div>
|
||
|
|
<div class="smm-theme-info">
|
||
|
|
<div class="smm-theme-title">\u8111\u56FE\u7ECF\u51785</div>
|
||
|
|
<div class="smm-theme-desc">\u7D2B\u7EFF\u4E3B\u9898</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="smm-theme-card" themeCal="classic4">
|
||
|
|
<div class="smm-theme-image" style="background-image: url('${$e+"classic4.jpg"}')"></div>
|
||
|
|
<div class="smm-theme-info">
|
||
|
|
<div class="smm-theme-title">\u8111\u56FE\u7ECF\u51784</div>
|
||
|
|
<div class="smm-theme-desc">\u7070\u7EFF\u4E3B\u9898</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="smm-theme-card" themeCal="cactus">
|
||
|
|
<div class="smm-theme-image" style="background-image: url('${$e+"cactus.jpg"}')"></div>
|
||
|
|
<div class="smm-theme-info">
|
||
|
|
<div class="smm-theme-title">\u4ED9\u4EBA\u638C</div>
|
||
|
|
<div class="smm-theme-desc">\u7EFF\u8272\u53EF\u7231</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="smm-theme-card" themeCal="morandi">
|
||
|
|
<div class="smm-theme-image" style="background-image: url('${$e+"morandi.jpg"}')"></div>
|
||
|
|
<div class="smm-theme-info">
|
||
|
|
<div class="smm-theme-title">\u83AB\u5170\u8FEA</div>
|
||
|
|
<div class="smm-theme-desc">\u7EA2\u9152\u7EA2\u8272</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="smm-theme-card" themeCal="seaBlueLine">
|
||
|
|
<div class="smm-theme-image" style="background-image: url('${$e+"seaBlueLine.jpg"}')"></div>
|
||
|
|
<div class="smm-theme-info">
|
||
|
|
<div class="smm-theme-title">\u6D77\u84DD\u7EBF</div>
|
||
|
|
<div class="smm-theme-desc">\u5927\u6D77\u6211\u6765\u4E86</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="smm-theme-card" themeCal="rose">
|
||
|
|
<div class="smm-theme-image" style="background-image: url('${$e+"rose.jpg"}')"></div>
|
||
|
|
<div class="smm-theme-info">
|
||
|
|
<div class="smm-theme-title">\u73AB\u7470</div>
|
||
|
|
<div class="smm-theme-desc">\u7231\u7684\u70ED\u70C8</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="smm-theme-card" themeCal="lemonBubbles">
|
||
|
|
<div class="smm-theme-image" style="background-image: url('${$e+"lemonBubbles.jpg"}')"></div>
|
||
|
|
<div class="smm-theme-info">
|
||
|
|
<div class="smm-theme-title">\u67E0\u6AAC\u6C14\u6CE1</div>
|
||
|
|
<div class="smm-theme-desc">\u5C0F\u6E05\u65B0</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="smm-theme-card" themeCal="shallowSea">
|
||
|
|
<div class="smm-theme-image" style="background-image: url('${$e+"shallowSea.jpg"}')"></div>
|
||
|
|
<div class="smm-theme-info">
|
||
|
|
<div class="smm-theme-title">\u6D45\u6D77</div>
|
||
|
|
<div class="smm-theme-desc">\u53EF\u60DC\u6CA1\u6709\u6C99\u6EE9</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="smm-theme-card" themeCal="oreo">
|
||
|
|
<div class="smm-theme-image" style="background-image: url('${$e+"oreo.jpg"}')"></div>
|
||
|
|
<div class="smm-theme-info">
|
||
|
|
<div class="smm-theme-title">\u5965\u5229\u5965</div>
|
||
|
|
<div class="smm-theme-desc">\u626D\u4E00\u626D\uFF0C\u6CE1\u4E00\u6CE1</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="smm-theme-card" themeCal="autumn">
|
||
|
|
<div class="smm-theme-image" style="background-image: url('${$e+"autumn.jpg"}')"></div>
|
||
|
|
<div class="smm-theme-info">
|
||
|
|
<div class="smm-theme-title">\u79CB\u5929</div>
|
||
|
|
<div class="smm-theme-desc">\u53C8\u662F\u4E00\u5E74\u79CB\u51C9\uFF0C\u4EBA\u751F\u51E0\u5EA6\u660F\u9EC4</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="smm-theme-card" themeCal="avocado">
|
||
|
|
<div class="smm-theme-image" style="background-image: url('${$e+"avocado.jpg"}')"></div>
|
||
|
|
<div class="smm-theme-info">
|
||
|
|
<div class="smm-theme-title">\u725B\u6CB9\u679C</div>
|
||
|
|
<div class="smm-theme-desc">\u6CA1\u5403\u8FC7\u3001\u597D\u50CF\u5F88\u8D35</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="smm-theme-card" themeCal="redSpirit">
|
||
|
|
<div class="smm-theme-image" style="background-image: url('${$e+"redSpirit.jpg"}')"></div>
|
||
|
|
<div class="smm-theme-info">
|
||
|
|
<div class="smm-theme-title">\u7EA2\u8272\u7CBE\u795E</div>
|
||
|
|
<div class="smm-theme-desc">\u6211\u4EEC\u90FD\u662F\u5171\u4EA7\u4E3B\u4E49\u63A5\u73ED\u4EBA</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="smm-theme-card" themeCal="coffee">
|
||
|
|
<div class="smm-theme-image" style="background-image: url('${$e+"coffee.jpg"}')"></div>
|
||
|
|
<div class="smm-theme-info">
|
||
|
|
<div class="smm-theme-title">\u5496\u5561</div>
|
||
|
|
<div class="smm-theme-desc">\u5496\u5561\u6E10\u6E10\u53D8\u6D53\uFF0C\u4F60\u53C8\u8FF7\u4EBA\u53C8\u7F8E</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="smm-theme-card" themeCal="courseGreen.jpg">
|
||
|
|
<div class="smm-theme-image" style="background-image: url('${$e+"courseGreen.jpg"}')"></div>
|
||
|
|
<div class="smm-theme-info">
|
||
|
|
<div class="smm-theme-title">\u8BFE\u7A0B\u7EFF</div>
|
||
|
|
<div class="smm-theme-desc">\u6211\u4E5F\u4E0D\u77E5\u9053\u4E3A\u4EC0\u4E48\u53EB\u8FD9</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="smm-theme-card" themeCal="simpleBlack">
|
||
|
|
<div class="smm-theme-image" style="background-image: url('${$e+"simpleBlack.jpg"}')"></div>
|
||
|
|
<div class="smm-theme-info">
|
||
|
|
<div class="smm-theme-title">\u7B80\u7EA6\u9ED1</div>
|
||
|
|
<div class="smm-theme-desc">\u9ED1\u8272\u5E84\u91CD\u4E14\u4F18\u96C5</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="smm-theme-card" themeCal="minions">
|
||
|
|
<div class="smm-theme-image" style="background-image: url('${$e+"minions.jpg"}')"></div>
|
||
|
|
<div class="smm-theme-info">
|
||
|
|
<div class="smm-theme-title">\u5C0F\u9EC4\u4EBA</div>
|
||
|
|
<div class="smm-theme-desc">\u5976\u7238\uFF0C\u662F\u4F60\u5417\u5976\u7238</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="smm-theme-card" themeCal="greenLeaf">
|
||
|
|
<div class="smm-theme-image" style="background-image: url('${$e+"greenLeaf.jpg"}')"></div>
|
||
|
|
<div class="smm-theme-info">
|
||
|
|
<div class="smm-theme-title">\u6E05\u65B0\u7EFF\u53F6</div>
|
||
|
|
<div class="smm-theme-desc">\u6625\u5929\u5230\u4E86</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="smm-theme-card" themeCal="vitalityOrange">
|
||
|
|
<div class="smm-theme-image" style="background-image: url('${$e+"vitalityOrange.jpg"}')"></div>
|
||
|
|
<div class="smm-theme-info">
|
||
|
|
<div class="smm-theme-title">\u6D3B\u529B\u6A59</div>
|
||
|
|
<div class="smm-theme-desc">\u6BCF\u5929\u90FD\u8981\u52A0\u6CB9\u6211</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="smm-theme-card" themeCal="gold">
|
||
|
|
<div class="smm-theme-image" style="background-image: url('${$e+"gold.jpg"}')"></div>
|
||
|
|
<div class="smm-theme-info">
|
||
|
|
<div class="smm-theme-title">\u91D1\u8272vip</div>
|
||
|
|
<div class="smm-theme-desc">\u55EF\uFF0C\u6715\u8BB8\u4E86</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<!-- \u6DF1\u8272\u4E3B\u9898 -->
|
||
|
|
<div class="smm-category-title" id="dark-category">\u6DF1\u8272\u4E3B\u9898</div>
|
||
|
|
<div class="smm-themes-grid" id="dark-themes">
|
||
|
|
<div class="smm-theme-card" themeCal="dark7">
|
||
|
|
<div class="smm-theme-image" style="background-image: url('${$e+"dark7.png"}')"></div>
|
||
|
|
<div class="smm-theme-info">
|
||
|
|
<div class="smm-theme-title">\u6697\u82727</div>
|
||
|
|
<div class="smm-theme-desc">\u6697\u82727\u4E3B\u9898\uFF0C\u5E26\u6765\u795E\u79D8\u6DF1\u6C89\u7684\u89C6\u89C9\u611F\u53D7\u3002</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="smm-theme-card" themeCal="dark6">
|
||
|
|
<div class="smm-theme-image" style="background-image: url('${$e+"dark6.png"}')"></div>
|
||
|
|
<div class="smm-theme-info">
|
||
|
|
<div class="smm-theme-title">\u6697\u82726</div>
|
||
|
|
<div class="smm-theme-desc">\u6697\u82726\u4E3B\u9898\uFF0C\u5C55\u73B0\u4F4E\u8C03\u800C\u4F18\u96C5\u7684\u6C1B\u56F4\u3002</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="smm-theme-card" themeCal="dark5">
|
||
|
|
<div class="smm-theme-image" style="background-image: url('${$e+"dark5.png"}')"></div>
|
||
|
|
<div class="smm-theme-info">
|
||
|
|
<div class="smm-theme-title">\u6697\u82725</div>
|
||
|
|
<div class="smm-theme-desc">\u6697\u82725\u4E3B\u9898\uFF0C\u8425\u9020\u51FA\u9759\u8C27\u800C\u6DF1\u9083\u7684\u73AF\u5883\u3002</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="smm-theme-card" themeCal="dark4">
|
||
|
|
<div class="smm-theme-image" style="background-image: url('${$e+"dark4.jpg"}')"></div>
|
||
|
|
<div class="smm-theme-info">
|
||
|
|
<div class="smm-theme-title">\u6697\u82724</div>
|
||
|
|
<div class="smm-theme-desc">\u6697\u82724\u4E3B\u9898\uFF0C\u4F20\u9012\u51FA\u6C89\u7A33\u800C\u5185\u655B\u7684\u683C\u8C03\u3002</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="smm-theme-card" themeCal="dark3">
|
||
|
|
<div class="smm-theme-image" style="background-image: url('${$e+"dark3.jpg"}')"></div>
|
||
|
|
<div class="smm-theme-info">
|
||
|
|
<div class="smm-theme-title">\u6697\u82723</div>
|
||
|
|
<div class="smm-theme-desc">\u6697\u82723\u4E3B\u9898\uFF0C\u51F8\u663E\u51FA\u72EC\u7279\u7684\u6697\u9ED1\u9B45\u529B\u3002</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="smm-theme-card" themeCal="dark2">
|
||
|
|
<div class="smm-theme-image" style="background-image: url('${$e+"dark2.jpg"}')"></div>
|
||
|
|
<div class="smm-theme-info">
|
||
|
|
<div class="smm-theme-title">\u6697\u82722</div>
|
||
|
|
<div class="smm-theme-desc">\u6697\u82722\u4E3B\u9898\uFF0C\u6253\u9020\u51FA\u7B80\u6D01\u800C\u51B7\u5CFB\u7684\u89C6\u89C9\u6548\u679C\u3002</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="smm-theme-card" themeCal="dark">
|
||
|
|
<div class="smm-theme-image" style="background-image: url('${$e+"dark.jpg"}')"></div>
|
||
|
|
<div class="smm-theme-info">
|
||
|
|
<div class="smm-theme-title">\u6697\u8272</div>
|
||
|
|
<div class="smm-theme-desc">\u6697\u8272\u4E3B\u9898\uFF0C\u8BE0\u91CA\u7EAF\u7CB9\u7684\u9ED1\u6697\u7F8E\u5B66\u3002</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="smm-theme-card" themeCal="darkNightLceBlade">
|
||
|
|
<div class="smm-theme-image" style="background-image: url('${$e+"darkNightLceBlade.jpg"}')"></div>
|
||
|
|
<div class="smm-theme-info">
|
||
|
|
<div class="smm-theme-title">\u6697\u591C\u51B0\u5203</div>
|
||
|
|
<div class="smm-theme-desc">\u6697\u591C\u51B0\u5203\u4E3B\u9898\uFF0C\u4EFF\u4F5B\u80FD\u611F\u53D7\u5230\u4E1D\u4E1D\u5BD2\u610F\u7684\u51CC\u5389\u98CE\u683C\u3002</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="smm-theme-card" themeCal="neonLamp">
|
||
|
|
<div class="smm-theme-image" style="background-image: url('${$e+"neonLamp.jpg"}')"></div>
|
||
|
|
<div class="smm-theme-info">
|
||
|
|
<div class="smm-theme-title">\u9713\u8679\u706F</div>
|
||
|
|
<div class="smm-theme-desc">\u9713\u8679\u706F\u4E3B\u9898\uFF0C\u5145\u6EE1\u79D1\u6280\u611F\u548C\u65F6\u5C1A\u7684\u9713\u8679\u706F\u5149\u6548\u679C\u3002</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="smm-theme-info" themeCal="orangeJuice">
|
||
|
|
<div class="smm-theme-image" style="background-image: url('${$e+"orangeJuice.jpg"}')"></div>
|
||
|
|
<div class="smm-theme-title">\u6A59\u6C41</div>
|
||
|
|
<div class="smm-theme-desc">\u6A59\u6C41\u4E3B\u9898\uFF0C\u6D0B\u6EA2\u7740\u6D3B\u529B\u548C\u6E05\u65B0\u7684\u6A59\u8272\u8C03\u3002</div>
|
||
|
|
</div>
|
||
|
|
<div class="smm-theme-card" themeCal="blackGold">
|
||
|
|
<div class="smm-theme-image" style="background-image: url('${$e+"blackGold.jpg"}')"></div>
|
||
|
|
<div class="smm-theme-info">
|
||
|
|
<div class="smm-theme-title">\u9ED1\u91D1</div>
|
||
|
|
<div class="smm-theme-desc">\u9ED1\u91D1\u4E3B\u9898\uFF0C\u5F70\u663E\u5962\u534E\u4E0E\u9AD8\u8D35\u7684\u8D28\u611F\u3002</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="smm-theme-card" themeCal="lateNightOffice">
|
||
|
|
<div class="smm-theme-image" style="background-image: url('${$e+"lateNightOffice.jpg"}')"></div>
|
||
|
|
<div class="smm-theme-info">
|
||
|
|
<div class="smm-theme-title">\u6DF1\u591C\u529E\u516C\u5BA4</div>
|
||
|
|
<div class="smm-theme-desc">\u6DF1\u591C\u529E\u516C\u5BA4\u4E3B\u9898\uFF0C\u5C55\u73B0\u5B89\u9759\u4E13\u6CE8\u7684\u529E\u516C\u6C1B\u56F4\u3002</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="smm-theme-card" themeCal="blackHumour">
|
||
|
|
<div class="smm-theme-image" style="background-image: url('${$e+"blackHumour.jpg"}')"></div>
|
||
|
|
<div class="smm-theme-info">
|
||
|
|
<div class="smm-theme-title">\u9ED1\u8272\u5E7D\u9ED8</div>
|
||
|
|
<div class="smm-theme-desc">\u9ED1\u8272\u5E7D\u9ED8\u4E3B\u9898\uFF0C\u5E26\u6709\u4E9B\u8BB8\u8BD9\u8C10\u7684\u6697\u9ED1\u98CE\u683C\u3002</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="smm-theme-card" themeCal="classic">
|
||
|
|
<div class="smm-theme-image" style="background-image: url('${$e+"classic.jpg"}')"></div>
|
||
|
|
<div class="smm-theme-info">
|
||
|
|
<div class="smm-theme-title">\u8111\u56FE\u7ECF\u5178</div>
|
||
|
|
<div class="smm-theme-desc">\u8111\u56FE\u7ECF\u5178\u4E3B\u9898\uFF0C\u7ECF\u5178\u7684\u98CE\u683C\u9002\u7528\u4E8E\u9AD8\u6548\u7684\u601D\u7EF4\u5BFC\u56FE\u573A\u666F\u3002</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<!-- \u6734\u7D20\u4E3B\u9898 -->
|
||
|
|
<div class="smm-category-title" id="minimal-category">\u6734\u7D20\u4E3B\u9898</div>
|
||
|
|
<div class="smm-themes-grid" id="minimal-themes">
|
||
|
|
<div class="smm-theme-card" themeCal="classic3">
|
||
|
|
<div class="smm-theme-image" style="background-image: url('${$e+"classic3.jpg"}')"></div>
|
||
|
|
<div class="smm-theme-info">
|
||
|
|
<div class="smm-theme-title">\u8111\u56FE\u7ECF\u51783</div>
|
||
|
|
<div class="smm-theme-desc">\u8111\u56FE\u7ECF\u51783\u4E3B\u9898\uFF0C\u72EC\u7279\u7684\u98CE\u683C\u4E3A\u601D\u7EF4\u5BFC\u56FE\u589E\u6DFB\u65B0\u7684\u89C6\u89C9\u4F53\u9A8C\u3002</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="smm-theme-card" themeCal="classic2">
|
||
|
|
<div class="smm-theme-image" style="background-image: url('${$e+"classic2.jpg"}')"></div>
|
||
|
|
<div class="smm-theme-info">
|
||
|
|
<div class="smm-theme-title">\u8111\u56FE\u7ECF\u51782</div>
|
||
|
|
<div class="smm-theme-desc">\u8111\u56FE\u7ECF\u51782\u4E3B\u9898\uFF0C\u7B80\u6D01\u7684\u8BBE\u8BA1\u8BA9\u601D\u7EF4\u5BFC\u56FE\u66F4\u6613\u9605\u8BFB\u548C\u7406\u89E3\u3002</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="smm-theme-card" themeCal="mint">
|
||
|
|
<div class="smm-theme-image" style="background-image: url('${$e+"mint.jpg"}')"></div>
|
||
|
|
<div class="smm-theme-info">
|
||
|
|
<div class="smm-theme-title">\u8584\u8377</div>
|
||
|
|
<div class="smm-theme-desc">\u8584\u8377\u4E3B\u9898\uFF0C\u6E05\u65B0\u7684\u8272\u8C03\u4E3A\u601D\u7EF4\u5BFC\u56FE\u5E26\u6765\u51C9\u723D\u7684\u611F\u89C9\u3002</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="smm-theme-card" themeCal="pinkGrape">
|
||
|
|
<div class="smm-theme-image" style="background-image: url('${$e+"pinkGrape.jpg"}')"></div>
|
||
|
|
<div class="smm-theme-info">
|
||
|
|
<div class="smm-theme-title">\u7C89\u7EA2\u8461\u8404</div>
|
||
|
|
<div class="smm-theme-desc">\u7C89\u7EA2\u8461\u8404\u4E3B\u9898\uFF0C\u751C\u7F8E\u7684\u8272\u8C03\u4F7F\u601D\u7EF4\u5BFC\u56FE\u5145\u6EE1\u6D3B\u529B\u3002</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="smm-theme-card" themeCal="romanticPurple">
|
||
|
|
<div class="smm-theme-image" style="background-image: url('${$e+"romanticPurple.jpg"}')"></div>
|
||
|
|
<div class="smm-theme-info">
|
||
|
|
<div class="smm-theme-title">\u6D6A\u6F2B\u7D2B</div>
|
||
|
|
<div class="smm-theme-desc">\u6D6A\u6F2B\u7D2B\u4E3B\u9898\uFF0C\u4F18\u96C5\u7684\u7D2B\u8272\u8C03\u8425\u9020\u51FA\u6D6A\u6F2B\u7684\u601D\u7EF4\u5BFC\u56FE\u6C1B\u56F4\u3002</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="smm-theme-card" themeCal="freshRed">
|
||
|
|
<div class="smm-theme-image" style="background-image: url('${$e+"freshRed.jpg"}')"></div>
|
||
|
|
<div class="smm-theme-info">
|
||
|
|
<div class="smm-theme-title">\u6E05\u65B0\u7EA2</div>
|
||
|
|
<div class="smm-theme-desc">\u6E05\u65B0\u7EA2\u4E3B\u9898\uFF0C\u660E\u4EAE\u7684\u7EA2\u8272\u8BA9\u601D\u7EF4\u5BFC\u56FE\u66F4\u9192\u76EE\u3002</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="smm-theme-card" themeCal="freshGreen">
|
||
|
|
<div class="smm-theme-image" style="background-image: url('${$e+"freshGreen.jpg"}')"></div>
|
||
|
|
<div class="smm-theme-info">
|
||
|
|
<div class="smm-theme-title">\u6E05\u65B0\u7EFF</div>
|
||
|
|
<div class="smm-theme-desc">\u6E05\u65B0\u7EFF\u4E3B\u9898\uFF0C\u5145\u6EE1\u751F\u673A\u7684\u7EFF\u8272\u8C03\u4F7F\u601D\u7EF4\u5BFC\u56FE\u5BCC\u6709\u6D3B\u529B\u3002</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="smm-theme-card" themeCal="earthYellow">
|
||
|
|
<div class="smm-theme-image" style="background-image: url('${$e+"earthYellow.jpg"}')"></div>
|
||
|
|
<div class="smm-theme-info">
|
||
|
|
<div class="smm-theme-title">\u6CE5\u571F\u9EC4</div>
|
||
|
|
<div class="smm-theme-desc">\u6CE5\u571F\u9EC4\u4E3B\u9898\uFF0C\u6E29\u6696\u7684\u9EC4\u8272\u8C03\u4E3A\u601D\u7EF4\u5BFC\u56FE\u5E26\u6765\u8D28\u6734\u7684\u611F\u89C9\u3002</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="smm-theme-card" themeCal="brainImpairedPink">
|
||
|
|
<div class="smm-theme-image" style="background-image: url('${$e+"brainImpairedPink.jpg"}')"></div>
|
||
|
|
<div class="smm-theme-info">
|
||
|
|
<div class="smm-theme-title">\u8111\u6B8B\u7C89</div>
|
||
|
|
<div class="smm-theme-desc">\u8111\u6B8B\u7C89\u4E3B\u9898\uFF0C\u72EC\u7279\u7684\u7C89\u8272\u8C03\u8BA9\u601D\u7EF4\u5BFC\u56FE\u522B\u5177\u4E00\u683C\u3002</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="smm-theme-card" themeCal="blueSky">
|
||
|
|
<div class="smm-theme-image" style="background-image: url('${$e+"blueSky.jpg"}')"></div>
|
||
|
|
<div class="smm-theme-info">
|
||
|
|
<div class="smm-theme-title">\u5929\u7A7A\u84DD</div>
|
||
|
|
<div class="smm-theme-desc">\u5929\u7A7A\u84DD\u4E3B\u9898\uFF0C\u7EAF\u51C0\u7684\u84DD\u8272\u8C03\u8BA9\u601D\u7EF4\u5BFC\u56FE\u4EFF\u4F5B\u7F6E\u8EAB\u4E8E\u84DD\u5929\u4E4B\u4E0B\u3002</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="smm-theme-card" themeCal="classicBlue">
|
||
|
|
<div class="smm-theme-image" style="background-image: url('${$e+"classicBlue.jpg"}')"></div>
|
||
|
|
<div class="smm-theme-info">
|
||
|
|
<div class="smm-theme-title">\u7ECF\u5178\u84DD</div>
|
||
|
|
<div class="smm-theme-desc">\u7ECF\u5178\u84DD\u4E3B\u9898\uFF0C\u6C89\u7A33\u7684\u84DD\u8272\u4F7F\u601D\u7EF4\u5BFC\u56FE\u66F4\u5177\u4E13\u4E1A\u611F\u3002</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="smm-theme-card" themeCal="classicGreen">
|
||
|
|
<div class="smm-theme-image" style="background-image: url('${$e+"classicGreen.jpg"}')"></div>
|
||
|
|
<div class="smm-theme-info">
|
||
|
|
<div class="smm-theme-title">\u7ECF\u5178\u7EFF</div>
|
||
|
|
<div class="smm-theme-desc">\u7ECF\u5178\u7EFF\u4E3B\u9898\uFF0C\u7ECF\u5178\u7684\u7EFF\u8272\u8C03\u8D4B\u4E88\u601D\u7EF4\u5BFC\u56FE\u81EA\u7136\u7684\u6C14\u606F\u3002</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="smm-theme-card" themeCal="skyGreen">
|
||
|
|
<div class="smm-theme-image" style="background-image: url('${$e+"skyGreen.jpg"}')"></div>
|
||
|
|
<div class="smm-theme-info">
|
||
|
|
<div class="smm-theme-title">\u5929\u6E05\u7EFF</div>
|
||
|
|
<div class="smm-theme-desc">\u5929\u6E05\u7EFF\u4E3B\u9898\uFF0C\u6E05\u65B0\u7684\u7EFF\u8272\u8425\u9020\u51FA\u5B81\u9759\u7684\u601D\u7EF4\u5BFC\u56FE\u73AF\u5883\u3002</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="smm-theme-card" themeCal="default">
|
||
|
|
<div class="smm-theme-image" style="background-image: url('${$e+"default.jpg"}')"></div>
|
||
|
|
<div class="smm-theme-info">
|
||
|
|
<div class="smm-theme-title">\u9ED8\u8BA4\u4E3B\u9898</div>
|
||
|
|
<div class="smm-theme-desc">\u9ED8\u8BA4\u4E3B\u9898\uFF0C\u7B80\u6D01\u901A\u7528\u7684\u98CE\u683C\u9002\u5408\u5404\u79CD\u601D\u7EF4\u5BFC\u56FE\u573A\u666F\u3002</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
`;var un="https://mindmap.ethanliang.top/dist/img/",wx=`
|
||
|
|
<div class="smm-structure-header">\u7ED3\u6784\u56FE\u7247</div>
|
||
|
|
|
||
|
|
<div class="smm-structure-grid">
|
||
|
|
<!-- \u7ED3\u6784\u56FE\u72471 -->
|
||
|
|
<div class="smm-structure-card" structure-cal="logicalStructure">
|
||
|
|
<div class="smm-structure-image" style="background-image: url('${un+"logicalStructure.jpg"}')"></div>
|
||
|
|
<div class="smm-structure-info">
|
||
|
|
<div class="smm-structure-title">\u903B\u8F91\u56FE\uFF08\u53F3\u8FB9\uFF09</div>
|
||
|
|
<div class="smm-structure-desc">\u6700\u5E38\u7528\u7684\u7ED3\u6784</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<!-- \u7ED3\u6784\u56FE\u72472 -->
|
||
|
|
<div class="smm-structure-card" structure-cal="logicalStructureLeft">
|
||
|
|
<div class="smm-structure-image" style="background-image: url('${un+"logicalStructureLeft.jpg"}')"></div>
|
||
|
|
<div class="smm-structure-info">
|
||
|
|
<div class="smm-structure-title">\u903B\u8F91\u56FE\uFF08\u5DE6\u8FB9\uFF09</div>
|
||
|
|
<div class="smm-structure-desc">\u671D\u5DE6\u7684\u903B\u8F91\u56FE</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="smm-structure-card" structure-cal="mindMap">
|
||
|
|
<div class="smm-structure-image" style="background-image: url('${un+"mindMap.jpg"}')"></div>
|
||
|
|
<div class="smm-structure-info">
|
||
|
|
<div class="smm-structure-title">\u601D\u7EF4\u5BFC\u56FE</div>
|
||
|
|
<div class="smm-structure-desc">\u53D1\u6563\u5F0F\u601D\u7EF4</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<div class="smm-structure-card" structure-cal="organizationStructure">
|
||
|
|
<div class="smm-structure-image" style="background-image: url('${un+"organizationStructure.jpg"}')"></div>
|
||
|
|
<div class="smm-structure-info">
|
||
|
|
<div class="smm-structure-title">\u7EC4\u7EC7\u7ED3\u6784\u56FE</div>
|
||
|
|
<div class="smm-structure-desc">\u5C55\u793A\u7EC4\u7EC7\u7ED3\u6784</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<div class="smm-structure-card" structure-cal="catalogOrganization">
|
||
|
|
<div class="smm-structure-image" style="background-image: url('${un+"catalogOrganization.jpg"}')"></div>
|
||
|
|
<div class="smm-structure-info">
|
||
|
|
<div class="smm-structure-title">\u76EE\u5F55\u7ED3\u6784\u56FE</div>
|
||
|
|
<div class="smm-structure-desc">\u5C55\u793A\u76EE\u5F55\u7ED3\u6784</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="smm-structure-card" structure-cal="timeline">
|
||
|
|
<div class="smm-structure-image" style="background-image: url('${un+"timeline.jpg"}')"></div>
|
||
|
|
<div class="smm-structure-info">
|
||
|
|
<div class="smm-structure-title">\u65F6\u95F4\u8F74\u56FE</div>
|
||
|
|
<div class="smm-structure-desc">\u5C55\u793A\u65F6\u95F4\u8F74</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="smm-structure-card" structure-cal="timeline2">
|
||
|
|
<div class="smm-structure-image" style="background-image: url('${un+"timeline2.jpg"}')"></div>
|
||
|
|
<div class="smm-structure-info">
|
||
|
|
<div class="smm-structure-title">\u65F6\u95F4\u8F74\u56FE</div>
|
||
|
|
<div class="smm-structure-desc">\u5C55\u793A\u65F6\u95F4\u8F74</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="smm-structure-card" structure-cal="verticalTimeline2">
|
||
|
|
<div class="smm-structure-image" style="background-image: url('${un+"verticalTimeline2.jpg"}')"></div>
|
||
|
|
<div class="smm-structure-info">
|
||
|
|
<div class="smm-structure-title">\u65F6\u95F4\u8F74\u56FE</div>
|
||
|
|
<div class="smm-structure-desc">\u5C55\u793A\u65F6\u95F4\u8F74</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="smm-structure-card" structure-cal="verticalTimeline3">
|
||
|
|
<div class="smm-structure-image" style="background-image: url('${un+"verticalTimeline3.jpg"}')"></div>
|
||
|
|
<div class="smm-structure-info">
|
||
|
|
<div class="smm-structure-title">\u65F6\u95F4\u8F74\u56FE</div>
|
||
|
|
<div class="smm-structure-desc">\u5C55\u793A\u65F6\u95F4\u8F74</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="smm-structure-card" structure-cal="verticalTimeline">
|
||
|
|
<div class="smm-structure-image" style="background-image: url('${un+"verticalTimeline.jpg"}')"></div>
|
||
|
|
<div class="smm-structure-info">
|
||
|
|
<div class="smm-structure-title">\u65F6\u95F4\u8F74\u56FE</div>
|
||
|
|
<div class="smm-structure-desc">\u5C55\u793A\u65F6\u95F4\u8F74</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="smm-structure-card" structure-cal="fishbone">
|
||
|
|
<div class="smm-structure-image" style="background-image: url('${un+"fishbone.jpg"}')"></div>
|
||
|
|
<div class="smm-structure-info">
|
||
|
|
<div class="smm-structure-title">\u9C7C\u9AA8\u56FE</div>
|
||
|
|
<div class="smm-structure-desc">\u50CF\u9C7C\u9AA8\u5934\u4E00\u6837\u6392\u5217</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="smm-structure-card" structure-cal="fishbone2">
|
||
|
|
<div class="smm-structure-image" style="background-image: url('${un+"fishbone2.jpg"}')"></div>
|
||
|
|
<div class="smm-structure-info">
|
||
|
|
<div class="smm-structure-title">\u9C7C\u9AA8\u56FE</div>
|
||
|
|
<div class="smm-structure-desc">\u50CF\u9C7C\u9AA8\u5934\u4E00\u6837\u6392\u5217</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<!-- <div class="smm-structure-card" structure-cal="rightFishbone">
|
||
|
|
<div class="smm-structure-image" style="background-image: url('${un+"rightFishbone.jpg"}')"></div>
|
||
|
|
<div class="smm-structure-info">
|
||
|
|
<div class="smm-structure-title">\u9C7C\u9AA8\u56FE</div>
|
||
|
|
<div class="smm-structure-desc">\u50CF\u9C7C\u9AA8\u5934\u4E00\u6837\u6392\u5217</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="smm-structure-card" structure-cal="rightFishbone2">
|
||
|
|
<div class="smm-structure-image" style="background-image: url('${un+"rightFishbone2.jpg"}')"></div>
|
||
|
|
<div class="smm-structure-info">
|
||
|
|
<div class="smm-structure-title">\u9C7C\u9AA8\u56FE</div>
|
||
|
|
<div class="smm-structure-desc">\u50CF\u9C7C\u9AA8\u5934\u4E00\u6837\u6392\u5217</div>
|
||
|
|
</div>
|
||
|
|
</div>-->
|
||
|
|
</div>
|
||
|
|
`;var Ax=`
|
||
|
|
|
||
|
|
<!-- \u6587\u5B57\u8BBE\u7F6E -->
|
||
|
|
<div class="smm-nodestyle-section">
|
||
|
|
<div class="smm-nodestyle-title">\u6587\u5B57</div>
|
||
|
|
<div class="smm-nodestyle-subsection">
|
||
|
|
<div class="smm-nodestyle-field">
|
||
|
|
<label class="smm-nodestyle-label">\u5B57\u4F53</label>
|
||
|
|
<select class="smm-nodestyle-select" id="smm-node-word-zt">
|
||
|
|
<option>\u5B8B\u4F53, SimSun, Songti SC</option>
|
||
|
|
<option>\u5FAE\u8F6F\u96C5\u9ED1, Microsoft YaHei</option>
|
||
|
|
<option>\u6977\u4F53, \u6977\u4F53_GB2312, SimKai, STKaiti</option>
|
||
|
|
<option>\u9ED1\u4F53, SimHei, Heiti SC</option>
|
||
|
|
<option>\u96B6\u4E66, SimLi</option>
|
||
|
|
<option>andale mono</option>
|
||
|
|
<option>arial, helvetica, sans-serif</option>
|
||
|
|
<option>arial black, avant garde</option>
|
||
|
|
<option>comic sans ms</option>
|
||
|
|
<option>impact, chicago</option>
|
||
|
|
<option>times new roman</option>
|
||
|
|
<option>sans-serif</option>
|
||
|
|
<option>serif</option>
|
||
|
|
</select>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<div class="smm-nodestyle-subsection">
|
||
|
|
<div class="smm-nodestyle-field">
|
||
|
|
<label class="smm-nodestyle-label">\u5B57\u53F7</label>
|
||
|
|
<select class="smm-nodestyle-select" id="smm-node-word-zh">
|
||
|
|
<option>12</option>
|
||
|
|
<option>14</option>
|
||
|
|
<option>16</option>
|
||
|
|
<option>18</option>
|
||
|
|
<option>24</option>
|
||
|
|
<option>32</option>
|
||
|
|
<option>48</option>
|
||
|
|
</select>
|
||
|
|
</div>
|
||
|
|
<div class="smm-nodestyle-field">
|
||
|
|
<label class="smm-nodestyle-label">\u989C\u8272</label>
|
||
|
|
<input type="color" class="smm-nodestyle-input" id="smm-nodestyle-bgcolor" value="#333333" id="smm-node-word-ys">
|
||
|
|
</div>
|
||
|
|
<div class="smm-nodestyle-stylebuttons">
|
||
|
|
<button class="smm-nodestyle-button smm-nodestyle-bold">B</button>
|
||
|
|
<button class="smm-nodestyle-button smm-nodestyle-italic">I</button>
|
||
|
|
<button class="smm-nodestyle-button smm-nodestyle-underline">U</button>
|
||
|
|
<button class="smm-nodestyle-button" id="smm-clear-s">S</button>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<!-- \u8FB9\u6846\u8BBE\u7F6E -->
|
||
|
|
<div class="smm-nodestyle-section">
|
||
|
|
<div class="smm-nodestyle-title">\u8FB9\u6846</div>
|
||
|
|
<div class="smm-nodestyle-subsection">
|
||
|
|
<div class="smm-nodestyle-field">
|
||
|
|
<label class="smm-nodestyle-label">\u989C\u8272</label>
|
||
|
|
<input type="color" class="smm-nodestyle-input" id="smm-nodestyle-border-color" value="#1e3556">
|
||
|
|
</div>
|
||
|
|
<div class="smm-nodestyle-field">
|
||
|
|
<label class="smm-nodestyle-label">\u6837\u5F0F</label>
|
||
|
|
<select class="smm-nodestyle-select" id="smm-nodestyle-line">
|
||
|
|
<option value="none">\u5B9E\u7EBF</option>
|
||
|
|
<option value="5,5">\u865A\u7EBF</option>
|
||
|
|
</select>
|
||
|
|
</div>
|
||
|
|
<div class="smm-nodestyle-field">
|
||
|
|
<label class="smm-nodestyle-label">\u5BBD\u5EA6</label>
|
||
|
|
<select class="smm-nodestyle-select" id="smm-nodestyle-line-width">
|
||
|
|
<option>0</option>
|
||
|
|
<option>1</option>
|
||
|
|
<option>2</option>
|
||
|
|
<option>3</option>
|
||
|
|
<option>4</option>
|
||
|
|
<option>5</option>
|
||
|
|
</select>
|
||
|
|
</div>
|
||
|
|
<div class="smm-nodestyle-field">
|
||
|
|
<label class="smm-nodestyle-label">\u5706\u89D2</label>
|
||
|
|
<select class="smm-nodestyle-select" id="smm-nodestyle-roundRadiu">
|
||
|
|
<option>0</option>
|
||
|
|
<option>1</option>
|
||
|
|
<option>2</option>
|
||
|
|
<option>3</option>
|
||
|
|
<option>4</option>
|
||
|
|
<option>5</option>
|
||
|
|
<option>6</option>
|
||
|
|
<option>7</option>
|
||
|
|
<option>8</option>
|
||
|
|
<option>9</option>
|
||
|
|
<option>10</option>
|
||
|
|
</select>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<!-- \u80CC\u666F\u8BBE\u7F6E -->
|
||
|
|
<div class="smm-nodestyle-section">
|
||
|
|
<div class="smm-nodestyle-title">\u80CC\u666F</div>
|
||
|
|
<div class="smm-nodestyle-subsection">
|
||
|
|
<div class="smm-nodestyle-field">
|
||
|
|
<label class="smm-nodestyle-label">\u989C\u8272</label>
|
||
|
|
<input type="color" class="smm-nodestyle-input" id="smm-nodestyle-bgcolor-bg">
|
||
|
|
</div>
|
||
|
|
<!-- <div class="smm-nodestyle-field">-->
|
||
|
|
<!-- <label class="smm-nodestyle-label">\u900F\u660E\u5EA6</label>-->
|
||
|
|
<!-- <select class="smm-nodestyle-select">-->
|
||
|
|
<!-- <option>100%</option>-->
|
||
|
|
<!-- <option>80%</option>-->
|
||
|
|
<!-- <option>60%</option>-->
|
||
|
|
<!-- <option>40%</option>-->
|
||
|
|
<!-- </select>-->
|
||
|
|
<!-- </div>-->
|
||
|
|
<!-- <div class="smm-nodestyle-field">-->
|
||
|
|
<!-- <label class="smm-nodestyle-label">\u6E10\u53D8</label>-->
|
||
|
|
<!-- <select class="smm-nodestyle-select">-->
|
||
|
|
<!-- <option>\u65E0</option>-->
|
||
|
|
<!-- <option>\u6C34\u5E73</option>-->
|
||
|
|
<!-- <option>\u5782\u76F4</option>-->
|
||
|
|
<!-- </select>-->
|
||
|
|
<!-- </div>-->
|
||
|
|
<!-- <div class="smm-nodestyle-field">-->
|
||
|
|
<!-- <label class="smm-nodestyle-label">\u989C\u82722</label>-->
|
||
|
|
<!-- <input type="color" class="smm-nodestyle-input">-->
|
||
|
|
<!-- </div>-->
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<!-- \u5F62\u72B6\u8BBE\u7F6E -->
|
||
|
|
<div class="smm-nodestyle-section">
|
||
|
|
<div class="smm-nodestyle-title">\u5F62\u72B6</div>
|
||
|
|
<div class="smm-nodestyle-subsection">
|
||
|
|
<div class="smm-nodestyle-field">
|
||
|
|
<label class="smm-nodestyle-label">\u5F62\u72B6</label>
|
||
|
|
<select class="smm-nodestyle-select" id="smm-node-shape">
|
||
|
|
<option value="rectangle">\u77E9\u5F62</option>
|
||
|
|
<option value="diamond">\u83F1\u5F62</option>
|
||
|
|
<option value="parallelogram">\u5E73\u884C\u56DB\u8FB9\u5F62</option>
|
||
|
|
<option value="roundedRectangle">\u5706\u89D2\u77E9\u5F62</option>
|
||
|
|
<option value="octagonalRectangle">\u516B\u89D2\u77E9\u5F62</option>
|
||
|
|
<option value="outerTriangularRectangle">\u5916\u4E09\u89D2\u77E9\u5F62</option>
|
||
|
|
<option value="innerTriangularRectangle">\u5185\u4E09\u89D2\u77E9\u5F62</option>
|
||
|
|
<option value="ellipse">\u692D\u5706</option>
|
||
|
|
<option value="circle">\u5706</option>
|
||
|
|
</select>
|
||
|
|
</div>
|
||
|
|
<!-- <div class="smm-nodestyle-field">-->
|
||
|
|
<!-- <label class="smm-nodestyle-label">\u5927\u5C0F</label>-->
|
||
|
|
<!-- <div class="smm-nodestyle-input" style="border: none; padding: 0; display: flex; align-items: center;">-->
|
||
|
|
<!-- <input type="range" class="smm-nodestyle-input" min="50" max="200" value="100" style="flex: 1;">-->
|
||
|
|
<!-- <span style="margin-left: 4px;">100%</span>-->
|
||
|
|
<!-- </div>-->
|
||
|
|
<!-- </div>-->
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<!-- \u7EBF\u6761\u8BBE\u7F6E -->
|
||
|
|
<div class="smm-nodestyle-section">
|
||
|
|
<div class="smm-nodestyle-title">\u7EBF\u6761</div>
|
||
|
|
<div class="smm-nodestyle-subsection">
|
||
|
|
<div class="smm-nodestyle-field">
|
||
|
|
<label class="smm-nodestyle-label">\u989C\u8272</label>
|
||
|
|
<input type="color" class="smm-nodestyle-input" id="smm-nodeline-color" value="#1e3556">
|
||
|
|
</div>
|
||
|
|
<div class="smm-nodestyle-field">
|
||
|
|
<label class="smm-nodestyle-label">\u6837\u5F0F</label>
|
||
|
|
<select class="smm-nodestyle-select" id="smm-node-ys-style">
|
||
|
|
<option value="none">\u5B9E\u7EBF</option>
|
||
|
|
<option value="5,5,1,5">\u865A\u7EBF</option>
|
||
|
|
</select>
|
||
|
|
</div>
|
||
|
|
<div class="smm-nodestyle-field">
|
||
|
|
<label class="smm-nodestyle-label">\u5BBD\u5EA6</label>
|
||
|
|
<select class="smm-nodestyle-select" id="smm-node-line-width">
|
||
|
|
<option>1</option>
|
||
|
|
<option>2</option>
|
||
|
|
<option>3</option>
|
||
|
|
<option>4</option>
|
||
|
|
<option>5</option>
|
||
|
|
<option>6</option>
|
||
|
|
<option>7</option>
|
||
|
|
<option>8</option>
|
||
|
|
<option>9</option>
|
||
|
|
<option>10</option>
|
||
|
|
</select>
|
||
|
|
</div>
|
||
|
|
<!-- <div class="smm-nodestyle-field">-->
|
||
|
|
<!-- <label class="smm-nodestyle-label">\u7BAD\u5934</label>-->
|
||
|
|
<!-- <select class="smm-nodestyle-select">-->
|
||
|
|
<!-- <option>\u65E0</option>-->
|
||
|
|
<!-- <option>\u5934\u90E8</option>-->
|
||
|
|
<!-- <option>\u5C3E\u90E8</option>-->
|
||
|
|
<!-- <option>\u4E24\u7AEF</option>-->
|
||
|
|
<!-- </select>-->
|
||
|
|
<!-- </div>-->
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<!-- \u8282\u70B9\u5185\u8FB9\u8DDD -->
|
||
|
|
<div class="smm-nodestyle-section">
|
||
|
|
<div class="smm-nodestyle-title">\u8282\u70B9\u5185\u8FB9\u8DDD</div>
|
||
|
|
<div class="smm-nodestyle-subsection">
|
||
|
|
<div class="smm-nodestyle-field">
|
||
|
|
<label class="smm-nodestyle-label">\u6C34\u5E73</label>
|
||
|
|
<div class="smm-nodestyle-input" style="border: none; padding: 0; display: flex; align-items: center;">
|
||
|
|
<input type="range" class="smm-nodestyle-input" id="smm-nodestyle-justify-padding" min="0" max="30" value="10" style="flex: 1;">
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="smm-nodestyle-field">
|
||
|
|
<label class="smm-nodestyle-label">\u5782\u76F4</label>
|
||
|
|
<div class="smm-nodestyle-input" style="border: none; padding: 0; display: flex; align-items: center;">
|
||
|
|
<input type="range" class="smm-nodestyle-input" id="smm-nodestyle-vertical-padding" min="0" max="30" value="5" style="flex: 1;">
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
`;var Ex=`
|
||
|
|
<!-- \u80CC\u666F\u8BBE\u7F6E -->
|
||
|
|
<div class="smm-ustyle-section">
|
||
|
|
<h3 class="smm-ustyle-section-title">\u80CC\u666F</h3>
|
||
|
|
<div class="smm-ustyle-sub-section">
|
||
|
|
<ul class="smm-ustyle-tab-list">
|
||
|
|
<li class="smm-ustyle-tab-item active">\u989C\u8272</li>
|
||
|
|
</ul>
|
||
|
|
<div class="smm-ustyle-color-palette">
|
||
|
|
<div class="smm-ustyle-color-square" style="background-color: #333;"></div>
|
||
|
|
<div class="smm-ustyle-color-square" style="background-color: #666;"></div>
|
||
|
|
<div class="smm-ustyle-color-square" style="background-color: #999;"></div>
|
||
|
|
<div class="smm-ustyle-color-square" style="background-color: #ccc;"></div>
|
||
|
|
<div class="smm-ustyle-color-square" style="background-color: #f00;"></div>
|
||
|
|
<div class="smm-ustyle-color-square" style="background-color: #fc0;"></div>
|
||
|
|
<div class="smm-ustyle-color-square" style="background-color: #ff0;"></div>
|
||
|
|
<div class="smm-ustyle-color-square" style="background-color: #0f0;"></div>
|
||
|
|
<div class="smm-ustyle-color-square" style="background-color: #0fc;"></div>
|
||
|
|
<div class="smm-ustyle-color-square" style="background-color: #0ff;"></div>
|
||
|
|
<div class="smm-ustyle-color-square" style="background-color: #00f;"></div>
|
||
|
|
<div class="smm-ustyle-color-square" style="background-color: #f0f;"></div>
|
||
|
|
<div class="smm-ustyle-color-square" style="background-color: #000;"></div>
|
||
|
|
<div class="smm-ustyle-color-square" style="background-color: #300;"></div>
|
||
|
|
<div class="smm-ustyle-color-square" style="background-color: #600;"></div>
|
||
|
|
<div class="smm-ustyle-color-square" style="background-color: #900;"></div>
|
||
|
|
<div class="smm-ustyle-color-square" style="background-color: #c00;"></div>
|
||
|
|
<div class="smm-ustyle-color-square" style="background-color: #f30;"></div>
|
||
|
|
<div class="smm-ustyle-color-square" style="background-color: #f60;"></div>
|
||
|
|
<div class="smm-ustyle-color-square" style="background-color: #f90;"></div>
|
||
|
|
<div class="smm-ustyle-color-square" style="background-color: #fc3;"></div>
|
||
|
|
<div class="smm-ustyle-color-square" style="background-color: #ff3;"></div>
|
||
|
|
<div class="smm-ustyle-color-square" style="background-color: #0f3;"></div>
|
||
|
|
<div class="smm-ustyle-color-square" style="background-color: #0fc3;"></div>
|
||
|
|
<div class="smm-ustyle-color-square" style="background-color: #0ff3;"></div>
|
||
|
|
<div class="smm-ustyle-color-square" style="background-color: #00f3;"></div>
|
||
|
|
<div class="smm-ustyle-color-square" style="background-color: #f0f3;"></div>
|
||
|
|
<div class="smm-ustyle-color-square" style="background-color: #f003;"></div>
|
||
|
|
<div class="smm-ustyle-color-square" style="background-color: #ccc3;"></div>
|
||
|
|
</div>
|
||
|
|
<div class="smm-ustyle-field">
|
||
|
|
<label class="smm-ustyle-label" >\u66F4\u591A\u989C\u8272</label>
|
||
|
|
<input type="color" class="smm-ustyle-color-input" id="smm-bg-color">
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<!-- \u8FDE\u7EBF\u8BBE\u7F6E -->
|
||
|
|
<div class="smm-ustyle-section">
|
||
|
|
<h3 class="smm-ustyle-section-title">\u8FDE\u7EBF</h3>
|
||
|
|
<div class="smm-ustyle-field-group">
|
||
|
|
<div class="smm-ustyle-field">
|
||
|
|
<label class="smm-ustyle-label">\u989C\u8272</label>
|
||
|
|
<input type="color" class="smm-ustyle-color-input" id="smm-ustyle-line-color" value="#1e3556">
|
||
|
|
</div>
|
||
|
|
<div class="smm-ustyle-field">
|
||
|
|
<label class="smm-ustyle-label">\u7C97\u7EC6</label>
|
||
|
|
<select class="smm-ustyle-select" id="smm-ustyle-line-width">
|
||
|
|
<option>0</option>
|
||
|
|
<option>1</option>
|
||
|
|
<option>2</option>
|
||
|
|
<option>3</option>
|
||
|
|
<option>4</option>
|
||
|
|
<option>5</option>
|
||
|
|
</select>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="smm-ustyle-field-group">
|
||
|
|
<div class="smm-ustyle-field">
|
||
|
|
<label class="smm-ustyle-label">\u98CE\u683C</label>
|
||
|
|
<select class="smm-ustyle-select" id="smm-ustyle-line-fad">
|
||
|
|
<option value="straight">\u76F4\u7EBF</option>
|
||
|
|
<option value="curve">\u66F2\u7EBF</option>
|
||
|
|
<option value="direct">\u76F4\u8FDE</option>
|
||
|
|
</select>
|
||
|
|
</div>
|
||
|
|
<div class="smm-ustyle-field">
|
||
|
|
<label class="smm-ustyle-label">\u5706\u89D2\u5927\u5C0F(\u76F4\u7EBF\u6A21\u5F0F\u4E0B\u751F\u6548)</label>
|
||
|
|
<select class="smm-ustyle-select" id="smm-straight-radiu">
|
||
|
|
<option>0</option>
|
||
|
|
<option>2</option>
|
||
|
|
<option>5</option>
|
||
|
|
<option>7</option>
|
||
|
|
<option>10</option>
|
||
|
|
<option>12</option>
|
||
|
|
<option>15</option>
|
||
|
|
</select>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<div class="smm-ustyle-field-checkbox">
|
||
|
|
<input type="checkbox" class="smm-ustyle-checkbox" id="smm-if-arrow">
|
||
|
|
<label class="smm-ustyle-label">\u662F\u5426\u663E\u793A\u7BAD\u5934</label>
|
||
|
|
</div>
|
||
|
|
<div class="smm-ustyle-sub-section">
|
||
|
|
<h4 class="smm-ustyle-section-title" style="font-size: 14px; margin-bottom: 5px;">\u5F69\u8679\u7EBF\u6761</h4>
|
||
|
|
<div class="smm-ustyle-rainbow-line"></div>
|
||
|
|
<button class="smm-ustyle-label" id="smm-close-rainbow">\u5173\u95ED\u5F69\u8679\u6761</button>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<!-- \u6982\u8981\u7684\u8FDE\u7EBF\u8BBE\u7F6E -->
|
||
|
|
<div class="smm-ustyle-section">
|
||
|
|
<h3 class="smm-ustyle-section-title">\u6982\u8981\u7684\u8FDE\u7EBF</h3>
|
||
|
|
<div class="smm-ustyle-field-group">
|
||
|
|
<div class="smm-ustyle-field">
|
||
|
|
<label class="smm-ustyle-label">\u989C\u8272</label>
|
||
|
|
<input type="color" class="smm-ustyle-color-input" value="#3498db" id="smm-generalize-color">
|
||
|
|
</div>
|
||
|
|
<div class="smm-ustyle-field">
|
||
|
|
<label class="smm-ustyle-label">\u7C97\u7EC6</label>
|
||
|
|
<select class="smm-ustyle-select" id="smm-generalize-width">
|
||
|
|
<option>0</option>
|
||
|
|
<option>1</option>
|
||
|
|
<option>2</option>
|
||
|
|
<option>3</option>
|
||
|
|
<option>4</option>
|
||
|
|
<option>5</option>
|
||
|
|
</select>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<!-- \u5173\u8054\u7EBF\u8BBE\u7F6E -->
|
||
|
|
<div class="smm-ustyle-section">
|
||
|
|
<h3 class="smm-ustyle-section-title">\u5173\u8054\u7EBF</h3>
|
||
|
|
<div class="smm-ustyle-field-group">
|
||
|
|
<div class="smm-ustyle-field">
|
||
|
|
<label class="smm-ustyle-label">\u989C\u8272</label>
|
||
|
|
<input type="color" class="smm-ustyle-color-input" id="smm-associal-line" value="#000000">
|
||
|
|
</div>
|
||
|
|
<div class="smm-ustyle-field">
|
||
|
|
<label class="smm-ustyle-label">\u7C97\u7EC6</label>
|
||
|
|
<select class="smm-ustyle-select" id="smm-associalline-width">
|
||
|
|
<option>1</option>
|
||
|
|
<option>2</option>
|
||
|
|
<option>3</option>
|
||
|
|
<option>4</option>
|
||
|
|
<option>5</option>
|
||
|
|
<option>6</option>
|
||
|
|
<option>7</option>
|
||
|
|
<option>8</option>
|
||
|
|
</select>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="smm-ustyle-field-group">
|
||
|
|
<div class="smm-ustyle-field">
|
||
|
|
<label class="smm-ustyle-label">\u6FC0\u6D3B\u989C\u8272</label>
|
||
|
|
<input type="color" class="smm-ustyle-color-input" id="smm-associalline-active" value="#2ecc71">
|
||
|
|
</div>
|
||
|
|
<div class="smm-ustyle-field">
|
||
|
|
<label class="smm-ustyle-label">\u6FC0\u6D3B\u7C97\u7EC6</label>
|
||
|
|
<select class="smm-ustyle-select" id="smm-asocialline-active-width">
|
||
|
|
<option>2</option>
|
||
|
|
<option>4</option>
|
||
|
|
<option>6</option>
|
||
|
|
<option>8</option>
|
||
|
|
</select>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="smm-ustyle-sub-section">
|
||
|
|
<h4 class="smm-ustyle-section-title" style="font-size: 14px; margin-bottom: 5px;">\u5173\u8054\u7EBF\u6587\u5B57</h4>
|
||
|
|
<div class="smm-ustyle-field-group">
|
||
|
|
<div class="smm-ustyle-field">
|
||
|
|
<label class="smm-ustyle-label">\u5B57\u4F53</label>
|
||
|
|
<select class="smm-ustyle-select" id="smm-line-word">
|
||
|
|
<option>\u5B8B\u4F53, SimSun, Songti SC</option>
|
||
|
|
<option>\u5FAE\u8F6F\u96C5\u9ED1, Microsoft YaHei</option>
|
||
|
|
<option>\u6977\u4F53, \u6977\u4F53_GB2312, SimKai, STKaiti</option>
|
||
|
|
<option>\u9ED1\u4F53, SimHei, Heiti SC</option>
|
||
|
|
<option>\u96B6\u4E66, SimLi</option>
|
||
|
|
<option>andale mono</option>
|
||
|
|
<option>arial, helvetica, sans-serif</option>
|
||
|
|
<option>arial black, avant garde</option>
|
||
|
|
<option>comic sans ms</option>
|
||
|
|
<option>impact, chicago</option>
|
||
|
|
<option>times new roman</option>
|
||
|
|
<option>sans-serif</option>
|
||
|
|
<option>serif</option>
|
||
|
|
</select>
|
||
|
|
</div>
|
||
|
|
<div class="smm-ustyle-field">
|
||
|
|
<label class="smm-ustyle-label">\u989C\u8272</label>
|
||
|
|
<input type="color" class="smm-ustyle-color-input" id='smm-line-word-color' value="#000000">
|
||
|
|
</div>
|
||
|
|
<div class="smm-ustyle-field">
|
||
|
|
<label class="smm-ustyle-label">\u5B57\u53F7</label>
|
||
|
|
<select class="smm-ustyle-select" id="smm-line-word-size">
|
||
|
|
<option>12</option>
|
||
|
|
<option>14</option>
|
||
|
|
<option>16</option>
|
||
|
|
</select>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<!-- \u8282\u70B9\u8FB9\u6846\u98CE\u683C\u8BBE\u7F6E -->
|
||
|
|
<div class="smm-ustyle-section">
|
||
|
|
<h3 class="smm-ustyle-section-title">\u8282\u70B9\u8FB9\u6846\u98CE\u683C</h3>
|
||
|
|
<div class="smm-ustyle-field-checkbox">
|
||
|
|
<input type="checkbox" class="smm-ustyle-checkbox" id="smm-node-border-style">
|
||
|
|
<label class="smm-ustyle-label">\u662F\u5426\u4F7F\u7528\u53EA\u6709\u5E95\u8FB9\u6846\u7684\u98CE\u683C</label>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<!-- \u8282\u70B9\u5185\u8FB9\u8DDD\u8BBE\u7F6E -->
|
||
|
|
<div class="smm-ustyle-section">
|
||
|
|
<h3 class="smm-ustyle-section-title">\u8282\u70B9\u5185\u8FB9\u8DDD</h3>
|
||
|
|
<div class="smm-ustyle-field-group">
|
||
|
|
<div class="smm-ustyle-field">
|
||
|
|
<label class="smm-ustyle-label">\u6C34\u5E73</label>
|
||
|
|
<div class="smm-ustyle-input" style="border: none; display: flex; align-items: center;">
|
||
|
|
<input type="range" class="smm-ustyle-range" min="0" max="50" value="20" id="smm-ustyle-node-padding-x">
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="smm-ustyle-field">
|
||
|
|
<label class="smm-ustyle-label">\u5782\u76F4</label>
|
||
|
|
<div class="smm-ustyle-input" style="border: none; display: flex; align-items: center;">
|
||
|
|
<input type="range" class="smm-ustyle-range" min="0" max="50" value="20" id="smm-ustyle-node-padding-y">
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
|
||
|
|
<!-- \u56FE\u6807\u8BBE\u7F6E -->
|
||
|
|
<div class="smm-ustyle-section">
|
||
|
|
<h3 class="smm-ustyle-section-title">\u56FE\u6807</h3>
|
||
|
|
<div class="smm-ustyle-field">
|
||
|
|
<label class="smm-ustyle-label">\u5927\u5C0F</label>
|
||
|
|
<div class="smm-ustyle-input" style="border: none; display: flex; align-items: center;">
|
||
|
|
<input type="range" class="smm-ustyle-range" min="0" max="50" id="smm-imgTag-size" value="20">
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<!-- \u8282\u70B9\u5916\u8FB9\u8DDD\u8BBE\u7F6E -->
|
||
|
|
<div class="smm-ustyle-section">
|
||
|
|
<h3 class="smm-ustyle-section-title">\u8282\u70B9\u5916\u8FB9\u8DDD</h3>
|
||
|
|
<ul class="smm-ustyle-tab-list">
|
||
|
|
<li class="smm-ustyle-tab-item active" id="smm-node-second">\u4E8C\u7EA7\u8282\u70B9</li>
|
||
|
|
<li class="smm-ustyle-tab-item" id="smm-node-third">\u4E09\u7EA7\u53CA\u4EE5\u4E0B\u8282\u70B9</li>
|
||
|
|
</ul>
|
||
|
|
<div class="smm-ustyle-field-group" id="smm-us-second-style">
|
||
|
|
<div class="smm-ustyle-field">
|
||
|
|
<label class="smm-ustyle-label">\u6C34\u5E73</label>
|
||
|
|
<div class="smm-ustyle-input" style="border: none; display: flex; align-items: center;">
|
||
|
|
<input type="range" id="smm-node-justify-margin" class="smm-ustyle-range" min="0" max="50" value="20">
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="smm-ustyle-field">
|
||
|
|
<label class="smm-ustyle-label">\u5782\u76F4</label>
|
||
|
|
<div class="smm-ustyle-input" style="border: none; display: flex; align-items: center;">
|
||
|
|
<input type="range" class="smm-ustyle-range" id="smm-node-vertical-margin" min="0" max="50" value="20">
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="smm-ustyle-field-group" id="smm-us-third-style" style="display: none">
|
||
|
|
<div class="smm-ustyle-field">
|
||
|
|
<label class="smm-ustyle-label">\u6C34\u5E73</label>
|
||
|
|
<div class="smm-ustyle-input" style="border: none; display: flex; align-items: center;">
|
||
|
|
<input type="range" class="smm-ustyle-range" id="smm-node-t-justify-margin" min="0" max="50" value="20">
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="smm-ustyle-field">
|
||
|
|
<label class="smm-ustyle-label">\u5782\u76F4</label>
|
||
|
|
<div class="smm-ustyle-input" style="border: none; display: flex; align-items: center;">
|
||
|
|
<input type="range" class="smm-ustyle-range" id="smm-node-t-vertical-margin" min="0" max="50" value="20">
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<!-- \u5916\u6846\u5185\u8FB9\u8DDD\u8BBE\u7F6E -->
|
||
|
|
<!-- <div class="smm-ustyle-section">-->
|
||
|
|
<!-- <h3 class="smm-ustyle-section-title">\u5916\u6846\u5185\u8FB9\u8DDD</h3>-->
|
||
|
|
<!-- <div class="smm-ustyle-field-group">-->
|
||
|
|
<!-- <div class="smm-ustyle-field">-->
|
||
|
|
<!-- <label class="smm-ustyle-label">\u6C34\u5E73</label>-->
|
||
|
|
<!-- <div class="smm-ustyle-input" style="border: none; display: flex; align-items: center;">-->
|
||
|
|
<!-- <input type="range" class="smm-ustyle-range" min="0" max="50" value="20" oninput="updateRangeValue(this, 'hBorderPaddingValue')">-->
|
||
|
|
<!-- </div>-->
|
||
|
|
<!-- </div>-->
|
||
|
|
<!-- <div class="smm-ustyle-field">-->
|
||
|
|
<!-- <label class="smm-ustyle-label">\u5782\u76F4</label>-->
|
||
|
|
<!-- <div class="smm-ustyle-input" style="border: none; display: flex; align-items: center;">-->
|
||
|
|
<!-- <input type="range" class="smm-ustyle-range" min="0" max="50" value="20" oninput="updateRangeValue(this, 'vBorderPaddingValue')">-->
|
||
|
|
<!-- </div>-->
|
||
|
|
<!-- </div>-->
|
||
|
|
<!-- </div>-->
|
||
|
|
<!--</div>-->
|
||
|
|
`;var Cx=`
|
||
|
|
<div class="smm-image-upload-header">\u56FE\u7247\u4E0A\u4F20</div>
|
||
|
|
|
||
|
|
<div class="smm-upload-area">
|
||
|
|
<!-- \u62D6\u653E\u4E0A\u4F20\u533A\u57DF -->
|
||
|
|
<div class="smm-dropzone" id="dropzone">
|
||
|
|
<div class="smm-dropzone-icon"><i class="fa fa-cloud-upload"></i></div>
|
||
|
|
<div class="smm-dropzone-text">\u70B9\u51FB\u4E0A\u4F20\u56FE\u7247\u6216\u62D6\u653E\u81F3\u6B64\u5904</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<!-- \u7C98\u8D34\u6309\u94AE -->
|
||
|
|
<div class="smm-dropzone" id="paste-button">
|
||
|
|
<div class="smm-dropzone-icon"><i class="fa fa-cloud-upload"></i></div>
|
||
|
|
<div class="smm-dropzone-text">\u70B9\u51FB\u6B64\u5904\uFF0C\u7136\u540ECtrl+V</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<!-- URL \u4E0A\u4F20 -->
|
||
|
|
<div class="smm-url-input">
|
||
|
|
<input type="text" class="smm-url-input-field" id="url-input" placeholder="\u8F93\u5165\u56FE\u7247 URL">
|
||
|
|
<button class="smm-url-input-button" id="load-url">\u52A0\u8F7D</button>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<!-- \u9884\u89C8\u533A\u57DF -->
|
||
|
|
<div class="smm-preview-container" id="preview-container">
|
||
|
|
<img src="" alt="\u56FE\u7247\u9884\u89C8" class="smm-preview-image" id="preview-image">
|
||
|
|
<div class="smm-preview-placeholder" id="preview-placeholder">\u56FE\u7247\u5C06\u663E\u793A\u5728\u8FD9\u91CC</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<!-- DataURL \u663E\u793A -->
|
||
|
|
<div class="smm-dataurl-container">
|
||
|
|
<div class="smm-dataurl-label">URL</div>
|
||
|
|
<textarea class="smm-dataurl-field" id="dataurl-field" readonly></textarea>
|
||
|
|
</div>
|
||
|
|
<button class="smm-action-button" style="width: 100%;margin-bottom:10px" id="upload-button" disabled>\u8BBE\u7F6E\u8282\u70B9\u56FE\u7247</button>
|
||
|
|
<!-- \u64CD\u4F5C\u6309\u94AE -->
|
||
|
|
<div style="display: flex;justify-content: space-between;width: 100%">
|
||
|
|
|
||
|
|
<button class="smm-action-button" id="upload-bg-button" disabled>\u8BBE\u7F6E\u753B\u5E03\u80CC\u666F</button>
|
||
|
|
<button class="smm-action-button" id="clear-bg-button">\u6E05\u9664\u80CC\u666F\u56FE\u7247</button>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
`;var Sx=`
|
||
|
|
<h3 class="smm-ustyle-section-title">\u8BBE\u7F6E</h3>
|
||
|
|
<div class="smm-ustyle-field-checkbox">
|
||
|
|
<input type="checkbox" class="smm-ustyle-checkbox" id="smm-if-water">
|
||
|
|
<label class="smm-ustyle-label">\u662F\u5426\u5F00\u542F\u6C34\u5370</label>
|
||
|
|
</div>
|
||
|
|
`;var Tx=`
|
||
|
|
<div class="smm-resize-handle" id="smm-resizeHandle"></div>
|
||
|
|
<div class="smm-sidebar">
|
||
|
|
<!-- \u8282\u70B9\u6837\u5F0F\u9009\u9879\u5361 -->
|
||
|
|
<button class="smm-tab active" title="\u8282\u70B9\u6837\u5F0F" calor="smm-nodestyle-container">
|
||
|
|
<svg t="1748092624681" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="84241" width="24" height="24"><path d="M512 0a512 512 0 0 0 0 1024 87.893333 87.893333 0 0 0 85.333333-85.333333 74.666667 74.666667 0 0 0-22.613333-57.173334 101.973333 101.973333 0 0 1-23.04-56.746666 85.333333 85.333333 0 0 1 85.333333-85.333334h102.4a282.026667 282.026667 0 0 0 284.586667-284.586666C1024 204.8 796.586667 0 512 0zM199.68 512a85.333333 85.333333 0 1 1 85.333333-85.333333 87.893333 87.893333 0 0 1-85.333333 85.333333z m170.666667-227.84a85.333333 85.333333 0 1 1 85.333333-85.333333 87.466667 87.466667 0 0 1-85.76 85.333333z m284.586666 0a85.333333 85.333333 0 1 1 85.333334-85.333333 87.466667 87.466667 0 0 1-85.76 85.333333z m170.666667 227.84a85.333333 85.333333 0 1 1 85.333333-85.333333 87.466667 87.466667 0 0 1-86.186666 85.333333z" p-id="84242"></path></svg>
|
||
|
|
<span class="smm-tab-text">\u8282\u70B9\u6837\u5F0F</span>
|
||
|
|
</button>
|
||
|
|
|
||
|
|
<!-- \u57FA\u7840\u6837\u5F0F\u9009\u9879\u5361 -->
|
||
|
|
<button class="smm-tab" title="\u57FA\u7840\u6837\u5F0F" calor="smm-universalstyle-container">
|
||
|
|
<svg t="1748506189605" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5024" width="24" height="24"><path d="M358.656 718.528a32 32 0 0 1 31.488 26.24l0.512 5.76v73.792h73.792a32 32 0 0 1 5.76 63.488l-5.76 0.512H390.656v73.792l-0.512 5.76a32 32 0 0 1-62.976 0l-0.512-5.76V888.32H252.8a32 32 0 0 1-5.76-63.488l5.76-0.512h73.792v-73.792l0.512-5.76a32 32 0 0 1 31.488-26.24zM194.304 105.728a96 96 0 0 1 135.808 0l588.288 588.288a96 96 0 0 1 0 135.808l-90.496 90.496a96 96 0 0 1-135.744 0L103.808 331.968a96 96 0 0 1 0-135.68z m271.488 226.24l-135.744 135.68 407.36 407.424a32 32 0 0 0 40.832 3.712l4.416-3.712 90.496-90.56a32 32 0 0 0 0-45.248L465.792 331.968zM133.504 486.4a25.6 25.6 0 0 1 25.088 20.48l0.512 5.12v50.24h37.504a25.6 25.6 0 0 1 5.12 50.688l-5.12 0.576h-37.568v37.44l-0.448 5.12a25.6 25.6 0 0 1-50.176 0l-0.512-5.12-0.064-37.44H57.6a25.6 25.6 0 0 1-5.12-50.688l5.12-0.512h50.304v-50.304l0.512-5.12a25.6 25.6 0 0 1 25.088-20.48zM284.8 150.976a32 32 0 0 0-45.248 0L149.056 241.472a32 32 0 0 0 0 45.248L284.8 422.4l135.744-135.68z m510.784-119.04a32 32 0 0 1 31.488 26.24l0.512 5.76v73.792h73.792a32 32 0 0 1 5.76 63.488l-5.76 0.512h-73.792v73.792l-0.512 5.76a32 32 0 0 1-62.976 0l-0.512-5.76-0.064-73.792h-73.728a32 32 0 0 1-5.76-63.488l5.76-0.512h73.792V63.936l0.512-5.76a32 32 0 0 1 31.488-26.24z" p-id="5025"></path></svg>
|
||
|
|
<span class="smm-tab-text">\u57FA\u7840\u6837\u5F0F</span>
|
||
|
|
</button>
|
||
|
|
|
||
|
|
<!-- \u8BBE\u7F6E\u9009\u9879\u5361 -->
|
||
|
|
<button class="smm-tab" title="\u8BBE\u7F6E" calor="smm-system-setting">
|
||
|
|
<svg t="1748330656795" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3380" width="24" height="24"><path d="M594.466 454.588c0-37.137 23.484-68.813 56.252-81.374-7.646-30.584-19.66-59.529-35.499-86.29-32.222 14.2-70.997 8.193-97.212-18.022-26.214-26.214-32.221-64.99-18.022-97.211a363.318 363.318 0 0 0-86.289-35.499c-12.561 32.768-44.237 56.252-81.374 56.252-37.137 0-68.813-23.484-81.374-56.252-30.583 7.646-59.528 19.66-86.289 35.499 14.2 32.222 8.192 70.997-18.022 97.211s-64.99 32.222-97.212 18.023c-15.838 26.76-27.853 55.705-35.499 86.289 32.768 12.56 56.252 44.237 56.252 81.374 0 37.137-23.484 68.813-56.252 81.374 7.646 30.583 19.661 59.528 35.5 86.289 32.22-14.2 70.996-8.192 97.21 18.022 26.215 26.214 32.223 64.99 18.023 97.212 26.76 15.838 55.706 27.853 86.29 35.498 12.56-32.768 44.236-56.251 81.373-56.251 37.137 0 68.813 23.483 81.374 56.251 30.583-7.645 59.529-19.66 86.29-35.498-14.2-32.222-8.193-70.998 18.021-97.212 26.215-26.214 64.99-32.222 97.212-18.022 15.838-26.76 27.853-55.706 35.499-86.29-32.768-12.56-56.252-43.69-56.252-81.373z m-262.144 87.381c-48.06 0-87.381-39.322-87.381-87.381s39.321-87.382 87.381-87.382 87.381 39.322 87.381 87.382-39.321 87.381-87.38 87.381z m359.356-369.732h318.396v80.281H691.678z m0 323.31h318.396v80.282H691.678zM175.582 818.86h834.492v80.281H175.582z" p-id="3381"></path></svg>
|
||
|
|
<span class="smm-tab-text">\u8BBE\u7F6E</span>
|
||
|
|
</button>
|
||
|
|
|
||
|
|
<!-- \u5927\u7EB2\u9009\u9879\u5361 -->
|
||
|
|
<button class="smm-tab" title="\u5927\u7EB2" calor="smm-dg-outline-container">
|
||
|
|
<svg t="1748092881187" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="93986" width="24" height="24"><path d="M138.971429 73.142857h526.628571c36.352 0 65.828571 32.768 65.828571 73.142857v73.142857c0 40.374857-29.476571 73.142857-65.828571 73.142858H138.971429C102.619429 292.571429 73.142857 259.803429 73.142857 219.428571V146.285714c0-40.374857 29.476571-73.142857 65.828572-73.142857z m39.350857 73.142857C160.621714 146.285714 146.285714 162.669714 146.285714 182.857143s14.336 36.571429 32.036572 36.571428h447.926857C644.022857 219.428571 658.285714 203.044571 658.285714 182.857143S643.949714 146.285714 626.249143 146.285714H178.395429zM358.4 658.285714h526.628571c36.352 0 65.828571 32.768 65.828572 73.142857v73.142858c0 40.374857-29.476571 73.142857-65.828572 73.142857H358.4c-36.352 0-65.828571-32.768-65.828571-73.142857v-73.142858c0-40.374857 29.476571-73.142857 65.828571-73.142857z m39.277714 73.142857c-17.627429 0-31.963429 16.384-31.963428 36.571429s14.336 36.571429 32.036571 36.571429h448c17.627429 0 31.963429-16.384 31.963429-36.571429s-14.336-36.571429-32.036572-36.571429H397.824zM358.4 365.714286h526.628571c36.352 0 65.828571 32.768 65.828572 73.142857v73.142857c0 40.374857-29.476571 73.142857-65.828572 73.142857H358.4C322.048 585.142857 292.571429 552.374857 292.571429 512V438.857143c0-40.374857 29.476571-73.142857 65.828571-73.142857z m39.277714 73.142857C380.123429 438.857143 365.714286 455.241143 365.714286 475.428571s14.336 36.571429 32.036571 36.571429h448c17.627429 0 31.963429-16.384 31.963429-36.571429s-14.336-36.571429-32.036572-36.571428H397.824z" p-id="93987"></path></svg>
|
||
|
|
<span class="smm-tab-text">\u5927\u7EB2</span>
|
||
|
|
</button>
|
||
|
|
<!-- \u4E3B\u9898\u9009\u9879\u5361 -->
|
||
|
|
<button class="smm-tab" title="\u4E3B\u9898" calor="smm-themes-container">
|
||
|
|
<svg t="1748092718793" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="88191" width="24" height="24"><path d="M768 388v475.2c0 17.6-14.4 32-32 32H288c-17.6 0-32-14.4-32-32V390.4l-72.8 40c-8 4-17.6 1.6-21.6-6.4L72 268c-4.8-8-1.6-17.6 6.4-21.6l216-117.6h46.4c6.4 0 12.8 4 15.2 10.4 19.2 51.2 82.4 89.6 156.8 89.6 75.2 0 137.6-37.6 156.8-89.6 2.4-6.4 8-10.4 15.2-10.4h46.4l214.4 117.6c8 4 10.4 14.4 5.6 21.6l-88 156c-4 8-14.4 10.4-21.6 5.6L768 388z" p-id="88192"></path></svg>
|
||
|
|
<span class="smm-tab-text">\u4E3B\u9898</span>
|
||
|
|
</button>
|
||
|
|
|
||
|
|
<!-- \u7ED3\u6784\u9009\u9879\u5361 -->
|
||
|
|
<button class="smm-tab" title="\u7ED3\u6784" calor="smm-structure-container">
|
||
|
|
<svg t="1748506266777" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8553" width="24" height="24"><path d="M928.426667 730.453333h-20.48V532.48c0-27.306667-20.48-54.613333-47.786667-54.613333H573.44V341.333333H614.4c40.96 0 68.266667-34.133333 68.266667-75.093333V75.093333C682.666667 34.133333 648.533333 0 614.4 0H436.906667c-40.96 0-68.266667 34.133333-68.266667 75.093333v191.146667c0 40.96 34.133333 75.093333 68.266667 75.093333H477.866667v136.533334H184.32c-27.306667 0-47.786667 27.306667-47.786667 54.613333v197.973333h-20.48c-40.96 0-68.266667 34.133333-68.266666 75.093334v143.36c0 40.96 34.133333 75.093333 68.266666 75.093333h136.533334c40.96 0 68.266667-34.133333 68.266666-75.093333v-143.36c0-40.96-34.133333-75.093333-68.266666-75.093334h-20.48V580.266667H477.866667v150.186666h-20.48c-40.96 0-68.266667 34.133333-68.266667 75.093334v143.36c0 40.96 34.133333 75.093333 68.266667 75.093333h136.533333c40.96 0 68.266667-34.133333 68.266667-75.093333v-143.36c0-40.96-34.133333-75.093333-68.266667-75.093334h-20.48V580.266667H819.2v150.186666h-20.48c-40.96 0-68.266667 34.133333-68.266667 75.093334v143.36c0 40.96 34.133333 75.093333 68.266667 75.093333h136.533333c40.96 0 68.266667-34.133333 68.266667-75.093333v-143.36c-6.826667-40.96-34.133333-75.093333-75.093333-75.093334z" p-id="8554"></path></svg>
|
||
|
|
<span class="smm-tab-text">\u7ED3\u6784</span>
|
||
|
|
</button>
|
||
|
|
|
||
|
|
<!-- \u56FE\u7247\u9009\u9879\u5361 -->
|
||
|
|
<button class="smm-tab" title="\u56FE\u7247" calor="smm-upload-image">
|
||
|
|
<svg t="1748506378840" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="13406" width="24" height="24"><path d="M896 626.592a16 16 0 0 0-7.68-13.664l-172.448-105.088a16 16 0 0 0-20.704 3.52l-76 92.608-1.024 1.152a16 16 0 0 1-22.624 0.032l-252.832-252.064a16.032 16.032 0 0 0-22.08-0.512l-187.36 170.656a15.936 15.936 0 0 0-5.248 11.84V800h768v-173.408z" p-id="13407"></path><path d="M800 320m-64 0a64 64 0 1 0 128 0 64 64 0 1 0-128 0Z" p-id="13408"></path><path d="M32 128v768h960V128H32z m896 704H96V192h832v640z" p-id="13409"></path></svg>
|
||
|
|
<span class="smm-tab-text">\u56FE\u7247</span>
|
||
|
|
</button>
|
||
|
|
|
||
|
|
<!-- \u56FE\u6807\u9009\u9879\u5361 -->
|
||
|
|
<button class="smm-tab" title="\u56FE\u6807" calor="smm-imgtag-container">
|
||
|
|
<svg t="1748506495523" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="22832" width="24" height="24"><path d="M511.839947 640.328115l-151.007586 79.409515 28.834771-168.186619-122.188173-119.096356 168.852076-24.514418 75.508912-153.014195 75.508912 153.014195 168.852076 24.514418-122.177934 119.096356 28.83477 168.186619-151.007586-79.409515z" p-id="22833"></path><path d="M512.085655 1023.994881a509.489358 509.489358 0 0 1-286.202887-87.420595 513.379723 513.379723 0 0 1-185.457791-225.231654 511.224666 511.224666 0 0 1 47.196269-485.456117 513.384842 513.384842 0 0 1 225.231654-185.46291 511.214428 511.214428 0 0 1 485.450998 47.196269 513.379723 513.379723 0 0 1 185.457791 225.231654 511.219547 511.219547 0 0 1-47.196269 485.456117 513.389961 513.389961 0 0 1-225.231654 185.457791A508.685691 508.685691 0 0 1 512.085655 1023.994881z m0-967.472332a455.582209 455.582209 0 1 0 455.582209 455.582209 456.094099 456.094099 0 0 0-455.582209-455.582209z" p-id="22834"></path></svg>
|
||
|
|
<span class="smm-tab-text">\u56FE\u6807</span>
|
||
|
|
</button>
|
||
|
|
<!-- \u9000\u51FA\u6309\u94AE -->
|
||
|
|
<button class="smm-tab" title="\u5173\u95ED" id="smm-exit-button-panel">
|
||
|
|
<svg t="1748092827084" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="92970" width="24" height="24"><path d="M288.998 738.284C346.186 794.396 424.552 829 511 829c120.81 0 225.836-67.581 279.335-167C814.365 617.344 828 566.264 828 512c0-8.414-0.328-16.751-0.972-25l-538.03 251.284z" fill="#FFEABB" p-id="92971"></path><path d="M511 859c-46.832 0-92.278-9.179-135.077-27.281-41.324-17.479-78.431-42.494-110.289-74.353-31.858-31.858-56.874-68.965-74.353-110.289C173.179 604.278 164 558.831 164 512c0-40.342 6.873-79.884 20.429-117.528 13.095-36.364 32.102-70.117 56.492-100.32 10.41-12.891 29.297-14.902 42.188-4.492 12.891 10.409 14.902 29.297 4.492 42.188C245.993 383.372 224 445.667 224 512c0 158.252 128.748 287 287 287s287-128.748 287-287c0-66.332-21.992-128.628-63.6-180.152-10.409-12.89-8.398-31.778 4.492-42.188 12.891-10.41 31.779-8.397 42.188 4.493 24.391 30.203 43.396 63.956 56.491 100.32C851.127 432.116 858 471.658 858 512c0 46.831-9.179 92.278-27.281 135.077-17.479 41.324-42.494 78.431-74.353 110.289s-68.965 56.874-110.289 74.353C603.278 849.821 557.831 859 511 859z" fill="#F9C73D" p-id="92972"></path><path d="M511 521c-16.5 0-30-13.5-30-30V183c0-16.5 13.5-30 30-30s30 13.5 30 30v308c0 16.5-13.5 30-30 30z" fill="#F9C73D" p-id="92973"></path></svg>
|
||
|
|
<span class="smm-tab-text">\u5173\u95ED</span>
|
||
|
|
</button>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<!-- \u4E3B\u5185\u5BB9\u533A\u57DF -->
|
||
|
|
<div class="smm-main-content">
|
||
|
|
<div class="smm-themes-container smm-contents-container" style="display: none">
|
||
|
|
${bx}
|
||
|
|
</div>
|
||
|
|
<div class="smm-structure-container smm-contents-container" style="display: none">
|
||
|
|
${wx}
|
||
|
|
</div>
|
||
|
|
<div class="smm-nodestyle-container smm-contents-container">
|
||
|
|
${Ax}
|
||
|
|
</div>
|
||
|
|
<div class="smm-universalstyle-container smm-contents-container" style="display: none">
|
||
|
|
${Ex}
|
||
|
|
</div>
|
||
|
|
<div class="smm-upload-image smm-contents-container" style="display: none">
|
||
|
|
${Cx}
|
||
|
|
</div>
|
||
|
|
<div class="smm-imgtag-container smm-contents-container" style="display: none">
|
||
|
|
<div id="iconsContainer">
|
||
|
|
<!-- \u56FE\u6807\u7EC4\u5C06\u901A\u8FC7JavaScript\u52A8\u6001\u751F\u6210 -->
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div id="smm-dg-outline" class="smm-dg-outline-container smm-contents-container" style="display: none"></div>
|
||
|
|
<div class="smm-system-setting smm-contents-container" style="display: none">${Sx}</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
|
||
|
|
`;var Mx=`
|
||
|
|
<div class="smm-toolbar">
|
||
|
|
<!-- \u7B2C\u4E00\u7EC4\u529F\u80FD\u6309\u94AE -->
|
||
|
|
<div class="smm-button-group">
|
||
|
|
<button class="smm-btn" title="\u8FDE\u7EBF" id="smm-createAssociativeLine">
|
||
|
|
<svg t="1748091882009" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="44504" width="24" height="24"><path d="M1009.465806 807.308387l-132.129032-132.129032a49.812645 49.812645 0 0 0-70.028387 0c-9.909677 9.909677-14.534194 22.461935-14.534193 35.014193V792.774194H280.774194c-63.421935 0-115.612903-52.190968-115.612904-115.612904S217.352258 561.548387 280.774194 561.548387h462.451612c118.255484 0 214.709677-96.454194 214.709678-214.709677S861.48129 132.129032 743.225806 132.129032H355.427097C333.625806 56.154839 264.258065 0 181.677419 0 81.259355 0 0 81.259355 0 181.677419S81.259355 363.354839 181.677419 363.354839c82.580645 0 151.948387-56.154839 173.749678-132.129033h387.798709c63.421935 0 115.612903 52.190968 115.612904 115.612904S806.647742 462.451613 743.225806 462.451613h-462.451612C162.51871 462.451613 66.064516 558.905806 66.064516 677.16129s96.454194 214.709677 214.709678 214.709678H792.774194v82.580645c0 12.552258 4.624516 25.104516 14.534193 35.014193s22.461935 14.534194 35.014194 14.534194 25.104516-4.624516 35.014193-14.534194l132.129032-132.129032c19.15871-19.15871 19.15871-50.869677 0-70.028387z" p-id="44505"></path></svg>
|
||
|
|
</button>
|
||
|
|
<button class="smm-btn" title="\u5916\u6846" id="smm-addOutLine">
|
||
|
|
<svg t="1748092981387" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="96696" width="24" height="24"><path d="M583.68 805.12h145.066667v74.666667h-145.066667zM295.466667 144.213333h145.066666v74.666667h-145.066666zM295.466667 805.12h145.066666v74.666667h-145.066666zM583.68 144.213333h145.066667v74.666667h-145.066667zM82.773333 310.186667v-91.306667h69.546667v-74.666667H34.773333A26.666667 26.666667 0 0 0 8.106667 170.666667v139.306666zM941.226667 310.186667h74.666666V170.666667a26.666667 26.666667 0 0 0-26.666666-26.666667h-117.546667v74.666667h69.546667zM8.106667 438.826667h74.666666v146.133333H8.106667zM82.773333 713.813333H8.106667V853.333333a26.666667 26.666667 0 0 0 26.666666 26.666667h117.546667v-74.666667H82.773333zM941.226667 438.826667h74.666666v146.133333h-74.666666zM941.226667 713.813333v91.306667h-69.546667v74.666667h117.546667A26.666667 26.666667 0 0 0 1015.893333 853.333333v-139.52z" p-id="96697"></path><path d="M221.866667 383.786667m32.213333 0l516.053333 0q32.213333 0 32.213334 32.213333l0 192.213333q0 32.213333-32.213334 32.213334l-516.053333 0q-32.213333 0-32.213333-32.213334l0-192.213333q0-32.213333 32.213333-32.213333Z" p-id="96698"></path></svg>
|
||
|
|
</button>
|
||
|
|
<button class="smm-btn" title="\u5C0F\u5730\u56FE" id="smm-showMap">
|
||
|
|
<svg t="1748234448025" class="icon" viewBox="0 0 1092 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="9152" width="24" height="24"><path d="M546.133333 0a238.933333 238.933333 0 0 0-238.933333 238.933333c0 106.7008 156.125867 301.124267 215.995733 371.712 12.0832 14.336 33.792 14.336 45.8752 0C628.9408 540.0576 785.066667 345.634133 785.066667 238.933333A238.933333 238.933333 0 0 0 546.133333 0z m0 318.600533a79.6672 79.6672 0 1 1 0-159.266133 79.6672 79.6672 0 0 1 0 159.266133zM38.161067 409.531733A60.757333 60.757333 0 0 0 0 465.851733v474.658134c0 21.504 21.640533 36.181333 41.642667 28.194133l261.7344-119.1936V407.552a574.2592 574.2592 0 0 1-40.277334-88.064L38.229333 409.6zM546.133333 681.984c-26.624 0-51.882667-11.741867-69.2224-32.1536a2003.012267 2003.012267 0 0 1-112.8448-145.476267v345.088l364.1344 121.378134V504.4224A2001.851733 2001.851733 0 0 1 615.355733 649.898667c-17.271467 20.48-42.530133 32.085333-69.2224 32.085333z m504.490667-376.4224l-261.7344 119.125333v546.133334l265.216-106.0864a60.689067 60.689067 0 0 0 38.161067-56.32V333.755733a30.3104 30.3104 0 0 0-41.642667-28.125866z" p-id="9153"></path></svg>
|
||
|
|
</button>
|
||
|
|
<button class="smm-btn" title="\u6982\u8981" id="smm-GENERALIZATION">
|
||
|
|
<svg t="1748330557298" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2166" width="24" height="24"><path d="M128 576h416a64 64 0 0 1 64 64v192a64 64 0 0 1-64 64H128a64 64 0 0 1-64-64V640a64 64 0 0 1 64-64z m32 64h352a32 32 0 0 1 32 32v128a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V672a32 32 0 0 1 32-32z m-32-512h416a64 64 0 0 1 64 64v192a64 64 0 0 1-64 64H128a64 64 0 0 1-64-64V192a64 64 0 0 1 64-64z m766.56 415.968A352.16 352.16 0 0 1 704 825.632c-23.68 3.52-35.52-7.2-35.52-32.224 0-15.584 11.84-29.568 35.52-41.92A287.712 287.712 0 0 0 832 512c0-99.84-50.816-187.84-128-239.488-23.68-14.848-35.52-29.536-35.52-44.064 0-25.568 11.84-35.584 35.52-30.08a352.16 352.16 0 0 1 190.56 281.664L896 480h32a32 32 0 0 1 0 64h-32l-1.44-0.032zM160 192h352a32 32 0 0 1 32 32v128a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V224a32 32 0 0 1 32-32z" p-id="2167"></path></svg>
|
||
|
|
</button>
|
||
|
|
<button class="smm-btn" title="\u5907\u6CE8" id="smm-setnote">
|
||
|
|
<svg t="1748506901054" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="29761" width="24" height="24"><path d="M898.685315 942.161838H115.084915c-22.505495 0-40.919081 18.413586-40.919081 40.919081s18.413586 40.919081 40.919081 40.919081h783.6004c22.505495 0 40.919081-18.413586 40.919081-40.919081s-18.413586-40.919081-40.919081-40.919081zM140.659341 815.312687c36.827173 0 242.445554-19.436563 242.445554-19.436563l535.016983-535.016983c41.942058-41.942058 41.942058-110.481518 0-152.423577l-76.723277-76.723276C819.916084 10.22977 792.295704 0 764.675325 0s-55.240759 10.22977-76.723277 31.712288L153.958042 566.729271s-25.574426 242.445554-19.436563 248.583416h6.137862z m604.57942-726.313686c7.160839-7.160839 15.344655-8.183816 19.436564-8.183816 4.091908 0 12.275724 1.022977 19.436563 8.183816l76.723277 76.723277c7.160839 7.160839 8.183816 15.344655 8.183816 19.436563 0 4.091908-1.022977 12.275724-8.183816 19.436564l-70.585415 70.585414-115.596403-115.596403 70.585414-70.585415zM231.704296 603.556444l405.098901-405.098902 114.573426 114.573427-405.098901 405.098901c-40.919081 4.091908-87.976024 8.183816-126.849151 11.252747 3.068931-37.85015 7.160839-82.861139 12.275725-125.826173z" p-id="29762"></path></svg>
|
||
|
|
</button>
|
||
|
|
<button class="smm-btn" title="\u6807\u7B7E" id="smm-tag-button">
|
||
|
|
<svg t="1748506986550" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2719" width="24" height="24"><path d="M925.5 497.7L617.4 184.8l-0.2-0.2C547 115.4 496.2 65.4 408.3 65.4H267.7c-85.4 0-136.8 15.7-166.8 50.9-32.3 38-36.8 98.4-36.8 158.1v149.5c0 42 4.4 67.3 15.6 90.2 11.5 23.3 30.3 43.9 61 73.8l347.4 339.7c20.3 19.8 49.8 29.7 79.2 29.7 29.3 0 58.7-9.8 79-29.5l279.5-272.2c20.5-19.8 32.2-48.4 32.2-78.6 0.1-30.3-11.8-59.2-32.5-79.3z m-54 101.9L592 871.7c-5.8 5.7-14.9 8.9-24.8 8.9s-18.9-3.3-24.7-8.9l-347.4-340c-51.9-50.2-53.1-55.4-53.1-108.1V274.2c0-61 2.6-91.1 18.3-108.5 16.9-18.7 52.1-22.4 107.2-22.4h140.2c54.2 0 86.6 29.8 154.8 97.2l28.3 27.6L870.4 553l0.1 0.1c6.1 5.8 9.5 14.3 9.5 23.9 0 9.1-3.1 17.4-8.5 22.6z" p-id="2720"></path><path d="M332.6 219.3c-62.6 0-113.5 50.9-113.5 113.5S270 446.3 332.6 446.3s113.5-50.9 113.5-113.5-50.9-113.5-113.5-113.5z m0 147c-18.5 0-33.5-15-33.5-33.5s15-33.5 33.5-33.5 33.5 15 33.5 33.5-15 33.5-33.5 33.5z" p-id="2721"></path></svg>
|
||
|
|
</button>
|
||
|
|
<button class="smm-btn" title="\u516C\u5F0F" id="smm-formula-button">
|
||
|
|
<svg t="1748091697600" class="icon" viewBox="0 0 1053 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="36240" width="24" height="24"><path d="M95.941353 671.543695l-71.544053 0.961244-1.190112-91.547092 133.384113-1.785168 34.375933 82.392383L333.826472 91.547092h696.39873v91.547092H405.141657L212.618122 951.540477zM446.887131 883.42944l157.369451-266.722453-152.746323-292.538733h415.944213l57.766215 137.320638-84.360645 35.474498-34.192839-81.431138h-204.150016l106.377722 203.646506-101.800367 172.70359h200.625453l33.735103-73.786957 83.170533 38.083591-58.178177 127.250458z" p-id="36241"></path></svg>
|
||
|
|
</button>
|
||
|
|
<button class="smm-btn" title="\u94FE\u63A5" id="smm-addLink-button">
|
||
|
|
<svg t="1748091715791" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="37263" width="24" height="24"><path d="M910.496 213.536C804.16 82.208 611.488 61.952 480.128 168.32l-100.768 81.6 50.336 62.176 100.768-81.6a225.984 225.984 0 1 1 284.448 351.264l-107.968 87.424 50.336 62.176 107.968-87.424a305.984 305.984 0 0 0 45.248-430.4zM516.352 823.552a225.984 225.984 0 1 1-284.448-351.264l110.976-89.856-50.336-62.176-110.976 89.856C50.24 516.448 29.984 709.152 136.32 840.48c106.336 131.328 299.04 151.584 430.368 45.248l105.12-85.12-50.336-62.176-105.12 85.12z" p-id="37264"></path><path d="M676.16 353.28l51.232 61.44-343.552 286.304-51.2-61.44z" p-id="37265"></path></svg>
|
||
|
|
</button>
|
||
|
|
<button class="smm-btn" title="\u4FA7\u8FB9\u5DE5\u5177\u680F" id="smm-panel-button">
|
||
|
|
<svg t="1748091737331" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="38302" width="24" height="24"><path d="M187.392 70.656q28.672 0 48.64 19.456t19.968 48.128l0 52.224q0 28.672-19.968 48.64t-48.64 19.968l-54.272 0q-27.648 0-47.616-19.968t-19.968-48.64l0-52.224q0-28.672 19.968-48.128t47.616-19.456l54.272 0zM889.856 70.656q27.648 0 47.616 19.456t19.968 48.128l0 52.224q0 28.672-19.968 48.64t-47.616 19.968l-437.248 0q-28.672 0-48.64-19.968t-19.968-48.64l0-52.224q0-28.672 19.968-48.128t48.64-19.456l437.248 0zM187.392 389.12q28.672 0 48.64 19.968t19.968 48.64l0 52.224q0 27.648-19.968 47.616t-48.64 19.968l-54.272 0q-27.648 0-47.616-19.968t-19.968-47.616l0-52.224q0-28.672 19.968-48.64t47.616-19.968l54.272 0zM889.856 389.12q27.648 0 47.616 19.968t19.968 48.64l0 52.224q0 27.648-19.968 47.616t-47.616 19.968l-437.248 0q-28.672 0-48.64-19.968t-19.968-47.616l0-52.224q0-28.672 19.968-48.64t48.64-19.968l437.248 0zM187.392 708.608q28.672 0 48.64 19.968t19.968 47.616l0 52.224q0 28.672-19.968 48.64t-48.64 19.968l-54.272 0q-27.648 0-47.616-19.968t-19.968-48.64l0-52.224q0-27.648 19.968-47.616t47.616-19.968l54.272 0zM889.856 708.608q27.648 0 47.616 19.968t19.968 47.616l0 52.224q0 28.672-19.968 48.64t-47.616 19.968l-437.248 0q-28.672 0-48.64-19.968t-19.968-48.64l0-52.224q0-27.648 19.968-47.616t48.64-19.968l437.248 0z" p-id="38303"></path></svg>
|
||
|
|
</button>
|
||
|
|
|
||
|
|
</div>
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
<!-- \u5206\u9694\u7EBF -->
|
||
|
|
<div class="smm-divider"></div>
|
||
|
|
|
||
|
|
<!-- \u7B2C\u56DB\u7EC4\u529F\u80FD\u6309\u94AE -->
|
||
|
|
<div class="smm-button-group">
|
||
|
|
<button class="smm-btn" title="\u5C45\u4E2D" id="smm-center-button">
|
||
|
|
<svg t="1748507103209" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5825" width="24" height="24"><path d="M405.333 512a106.667 106.667 0 1 0 213.334 0 106.667 106.667 0 1 0-213.334 0zM405.333 168.533c0-21.333-17.066-40.533-38.4-40.533s-38.4 17.067-38.4 40.533v162.134h-160c-21.333 0-40.533 17.066-40.533 38.4s17.067 36.266 40.533 36.266h198.4c8.534 0 17.067-4.266 23.467-8.533 8.533-6.4 14.933-17.067 14.933-27.733V168.533z m213.334 0c0-21.333 17.066-40.533 38.4-40.533s38.4 17.067 38.4 40.533v162.134H857.6c21.333 0 40.533 17.066 40.533 38.4s-19.2 36.266-42.666 36.266h-198.4c-8.534 0-17.067-4.266-23.467-8.533-8.533-6.4-14.933-17.067-14.933-27.733V168.533zM405.333 855.467c0 21.333-17.066 40.533-38.4 40.533s-38.4-17.067-38.4-40.533V693.333h-160c-21.333 0-40.533-17.066-40.533-38.4s17.067-36.266 40.533-36.266h198.4c8.534 0 17.067 4.266 23.467 8.533 8.533 6.4 14.933 17.067 14.933 27.733v200.534z m213.334 0c0 21.333 17.066 40.533 38.4 40.533s36.266-17.067 36.266-40.533V693.333h162.134c21.333 0 40.533-17.066 40.533-38.4s-17.067-36.266-40.533-36.266h-198.4c-8.534 0-17.067 4.266-23.467 8.533-8.533 6.4-14.933 17.067-14.933 27.733v200.534z" p-id="5826"></path></svg>
|
||
|
|
</button>
|
||
|
|
<button class="smm-btn" title="\u6F14\u793A" id="smm-demostrate-button">
|
||
|
|
<svg t="1748234382952" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="7218" width="24" height="24"><path d="M281.5 757.5h-79.7c-28.6 0-51.9-23.2-51.9-51.9v-493h-13.1c-21.5 0-38.9-17.4-38.9-38.9s17.4-38.9 38.9-38.9h751.9c21.5 0 38.9 17.4 38.9 38.9s-17.4 38.9-38.9 38.9h-12.9v493c0 28.6-23.2 51.9-51.9 51.9h-86.4l45.1 45.1c19.6 20.9 18.5 53.7-2.4 73.3-20 18.7-51 18.7-71 0l-110-110c-2.5-2.6-4.8-5.4-6.8-8.4h-166c-2 3-4.2 5.8-6.8 8.4l-110 109.9c-19.9 20.6-52.7 21.2-73.3 1.3-20.6-19.9-21.2-52.7-1.3-73.3 0.4-0.4 0.8-0.9 1.3-1.3l45.1-45.1 0.1 0.1z m-70.4-531.2V693h602.3V226.3H211.1z" p-id="7219"></path><path d="M428.9 302.7l218.7 132.6c8.3 5 8.3 17.1 0 22.2L428.9 590c-8.6 5.2-19.7-1-19.7-11.1V313.8c0-10.1 11.1-16.3 19.7-11.1z" p-id="7220"></path></svg> </button>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
|
||
|
|
<!-- \u5206\u9694\u7EBF -->
|
||
|
|
<div class="smm-divider"></div>
|
||
|
|
<div class="smm-button-group">
|
||
|
|
<button class="smm-btn" title="\u624B\u52A8\u4FDD\u5B58 | \u5C06\u4F1A\u5237\u65B0SVG" id="smm-save-svg-button">
|
||
|
|
<svg t="1748091579641" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="31216" width="24" height="24"><path d="M919.466667 264.533333V832c0 46.933333-38.4 85.333333-85.333334 85.333333h-640c-46.933333 0-85.333333-38.4-85.333333-85.333333V192c0-46.933333 38.4-85.333333 85.333333-85.333333h567.466667c6.4 0 10.666667 2.133333 14.933333 6.4l136.533334 136.533333c4.266667 4.266667 6.4 8.533333 6.4 14.933333z" fill="#1890FF" p-id="31217"></path><path d="M322.133333 106.666667h384v213.333333h-384zM258.133333 640h512v277.333333h-512z" fill="#FFFFFF" p-id="31218"></path><path d="M599.466667 149.333333h64v128h-64zM364.8 725.333333h298.666667v21.333334h-298.666667zM364.8 810.666667h298.666667v21.333333h-298.666667z" fill="#69C0FF" p-id="31219"></path></svg>
|
||
|
|
</button>
|
||
|
|
<button class="smm-btn" title="\u6E05\u7A7Asvg\u5B58\u50A8" id="smm-delete-svg-button">
|
||
|
|
<svg t="1748317705924" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="6328" width="24" height="24"><path d="M883.640502 229.817249H139.689235a45.799295 45.799295 0 0 0 0 91.598589h743.951267a45.799295 45.799295 0 1 0 0-91.598589z" fill="#FF517F" p-id="6329"></path><path d="M696.339444 267.408785a40.874639 40.874639 0 0 1-41.038795-41.038795 144.292401 144.292401 0 0 0-288.584803 0 41.038794 41.038794 0 0 1-82.077589 0 226.36999 226.36999 0 0 1 452.739981 0 41.038794 41.038794 0 0 1-41.038794 41.038795zM818.963362 932.237256a41.20295 41.20295 0 0 1-41.038795-41.20295L779.401964 311.894838a41.038794 41.038794 0 0 1 41.038794-41.038794 41.20295 41.20295 0 0 1 41.038795 41.038794l-1.477397 579.139468a41.038794 41.038794 0 0 1-41.038794 41.20295z" fill="#FF517F" p-id="6330"></path><path d="M622.797924 734.101956a41.038794 41.038794 0 0 1-40.710484-41.367105l1.477396-187.793524a41.038794 41.038794 0 0 1 41.038795-40.710484 41.038794 41.038794 0 0 1 40.710484 41.367105l-1.477397 187.793524a41.038794 41.038794 0 0 1-41.038794 40.710484z" fill="#FF517F" opacity=".3" p-id="6331"></path><path d="M407.754641 734.101956a41.038794 41.038794 0 0 1-40.710484-41.367105l1.477396-187.793524a41.038794 41.038794 0 0 1 41.038795-40.710484 41.038794 41.038794 0 0 1 40.710484 41.367105l-1.477397 187.793524a41.038794 41.038794 0 0 1-41.038794 40.710484z" fill="#FF517F" opacity=".3" p-id="6332"></path><path d="M623.94701 1023.179224H400.039347A236.383456 236.383456 0 0 1 163.984202 786.959923L165.297443 311.894838a41.20295 41.20295 0 0 1 41.038795-41.038794 41.038794 41.038794 0 0 1 41.038794 41.038794l-1.313241 476.050016a154.141712 154.141712 0 0 0 153.977556 153.977557h223.907663a41.038794 41.038794 0 1 1 0 82.077589z" fill="#FF517F" p-id="6333"></path></svg>
|
||
|
|
</button>
|
||
|
|
</div>
|
||
|
|
<div class="smm-divider"></div>
|
||
|
|
<!-- \u5355\u72EC\u7684\u529F\u80FD\u6309\u94AE -->
|
||
|
|
<div class="smm-button-group">
|
||
|
|
<button class="smm-btn" title="\u5E2E\u52A9"><a href="https://github.com/LXiangEthan/obsidian-simplemindmap">
|
||
|
|
<svg viewBox="0 0 24 24">
|
||
|
|
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 17h-2v-2h2v2zm2.07-7.75l-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25z"/>
|
||
|
|
</svg>
|
||
|
|
</a>
|
||
|
|
</button>
|
||
|
|
<button class="smm-btn" title="\u641C\u7D22" id="smm-hide-search">
|
||
|
|
<svg t="1748091633695" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="33320" width="24" height="24"><path d="M351.1808 59.2896A435.2 435.2 0 0 1 805.376 715.264 460.8 460.8 0 0 1 351.1808 59.3408z" fill="#20C997" p-id="33321"></path><path d="M754.3808 722.2272a358.4 358.4 0 1 0-267.8272 120.2176 51.2 51.2 0 0 1 0 102.4 460.8 460.8 0 1 1 365.1584-179.712l118.8864 121.2416c23.7568 24.2176 23.552 63.0272-0.4096 87.04l-0.4096 0.4096a61.184 61.184 0 0 1-86.9888-0.4608l-148.0192-150.9376a61.7984 61.7984 0 0 1 0.4096-86.9888l0.4096-0.4096c5.632-5.5808 11.9808-9.8304 18.7904-12.8z m-467.968-364.5952h409.6a51.2 51.2 0 1 1 0 102.4h-409.6a51.2 51.2 0 1 1 0-102.4z m0 204.8h256a51.2 51.2 0 0 1 0 102.4h-256a51.2 51.2 0 1 1 0-102.4z" fill="#2C6DD2" p-id="33322"></path></svg>
|
||
|
|
</button>
|
||
|
|
<button class="smm-btn" title="\u5217\u8868" id="smm-list-table">
|
||
|
|
<svg t="1748091930095" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="47338" width="24" height="24"><path d="M849.170732 0c97.404878 0 174.829268 77.42439 174.829268 174.829268v674.341464c0 97.404878-77.42439 174.829268-174.829268 174.829268H174.829268c-97.404878 0-174.829268-77.42439-174.829268-174.829268V174.829268c0-97.404878 77.42439-174.829268 174.829268-174.829268h674.341464z m-177.32683 249.756098H419.590244c-34.965854 2.497561-64.936585 32.468293-64.936585 67.434146v24.97561c2.497561 12.487805 9.990244 19.980488 22.478048 19.980487s22.478049-9.990244 22.478049-22.478048v-24.97561c2.497561-12.487805 9.990244-19.980488 22.478049-19.980488h107.395122l-7.492683 2.497561v2.497561c-17.482927 7.492683-27.473171 24.97561-27.473171 42.458537v342.165853h-72.429268c-12.487805-2.497561-19.980488-9.990244-19.980488-22.478048V614.4c-2.497561-12.487805-9.990244-19.980488-22.478049-19.980488s-22.478049 9.990244-22.478048 22.478049v49.951219c2.497561 34.965854 32.468293 64.936585 67.434146 64.936586h69.931707v27.473171c2.497561 22.478049 22.478049 42.458537 44.956098 42.458536 4.995122 0 9.990244 0 14.985366-2.497561l137.365853-44.956097 2.497561-2.497561c17.482927-7.492683 27.473171-24.97561 27.473171-42.458537V292.214634c0-24.97561-22.478049-44.956098-49.95122-42.458536z m-344.663414 119.882926c-7.492683-4.995122-14.985366-4.995122-22.478049-2.497561-7.492683 2.497561-14.985366 12.487805-14.985366 19.980488v69.931708H194.809756c-9.990244 0-19.980488 9.990244-19.980488 22.478048s9.990244 22.478049 22.478049 22.478049h92.409756V574.439024c0 7.492683 7.492683 14.985366 14.985366 17.482927 7.492683 2.497561 17.482927 2.497561 24.97561-4.995122l92.409756-92.409756 2.497561-2.497561c7.492683-9.990244 4.995122-22.478049-2.497561-29.970732l-94.907317-92.409756z" fill="#057514" p-id="47339"></path></svg>
|
||
|
|
<ul class="smm-list" style="display: none; left: 336px; top: 154px;" id="smm-list-tables">
|
||
|
|
<li class="smm-list-item" id="smm-import-md">
|
||
|
|
<div class="smm-list-item-icon">
|
||
|
|
<svg t="1748091334817" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="27325" width="24" height="24"><path d="M0 238.933333A102.4 102.4 0 0 1 102.4 136.533333h819.2A102.4 102.4 0 0 1 1024 238.933333v546.133334a102.4 102.4 0 0 1-102.4 102.4h-819.2A102.4 102.4 0 0 1 0 785.066667v-546.133334zM682.666667 341.333333v224.802134L604.433067 487.8336l-48.3328 48.3328 136.533333 136.533333a34.133333 34.133333 0 0 0 48.3328 0l136.533333-136.533333-48.264533-48.3328L750.933333 566.135467V341.333333h-68.266666z m-487.8336 9.966934A34.133333 34.133333 0 0 0 136.533333 375.466667V682.666667h68.266667V457.864533l102.4 102.4 102.4-102.4V682.666667h68.266667V375.466667a34.133333 34.133333 0 0 0-58.299734-24.1664L307.2 463.735467 194.833067 351.300267z" fill="#1D1929" p-id="27326"></path></svg>
|
||
|
|
</div>
|
||
|
|
<span>\u5BFC\u5165Markdown</span>
|
||
|
|
</li>
|
||
|
|
<li class="smm-list-item" id="smm-import-xmind">
|
||
|
|
<div class="smm-list-item-icon">
|
||
|
|
<svg t="1748091146878" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="16377" width="24" height="24"><path d="M0 0m128 0l768 0q128 0 128 128l0 768q0 128-128 128l-768 0q-128 0-128-128l0-768q0-128 128-128Z" fill="#EF5476" p-id="16378"></path><path d="M630.016 409.312c-19.712-6.592-44.608-16.96-64.736-31.584l0.128 0.16c-35.52-25.696-64.608-60.8-86.688-104.576 3.52-17.152 8.512-33.856 15.104-49.568a277.76 277.76 0 0 1 156.16 72.864 278.912 278.912 0 0 0-18.048 70.72 265.696 265.696 0 0 0-1.92 41.984z m88.224 200.32c-152.672-18.816-261.6-157.92-243.84-311.2a280 280 0 0 0 209.024 139.36 286.624 286.624 0 0 0 48.96 1.696 268.16 268.16 0 0 0 32.128-3.648 280.544 280.544 0 0 1 33.44 170.848c0 0.416 0 0.832-0.16 1.408a275.488 275.488 0 0 1-79.552 1.664v-0.128z m-168.64 120c17.76-153.28-91.168-292.384-243.84-311.2v-0.128l-2.848-0.288-1.344-0.128a275.072 275.072 0 0 0-75.36 2.112c-0.128 0.544-0.128 0.96-0.128 1.376a280.544 280.544 0 0 0 33.408 170.848 268.16 268.16 0 0 1 32.16-3.648 280.704 280.704 0 0 1 101.504 13.344 280 280 0 0 1 156.48 127.712z m-155.456-110.88c19.552 6.72 44.576 17.12 64.864 31.712v-0.128c35.392 25.536 64.448 60.48 86.56 104.16a281.92 281.92 0 0 1-15.232 49.824 277.76 277.76 0 0 1-156.192-72.864 278.88 278.88 0 0 0 18.048-70.72c1.792-14.208 2.368-28.224 1.92-41.984z" fill="#FFFFFF" p-id="16379"></path></svg>
|
||
|
|
</div>
|
||
|
|
<span>\u5BFC\u5165Xmind</span>
|
||
|
|
</li>
|
||
|
|
<li class="smm-list-divider"></li>
|
||
|
|
<li class="smm-list-item" id="smm-export-svg">
|
||
|
|
<div class="smm-list-item-icon">
|
||
|
|
<svg t="1748091377430" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="28508" width="24" height="24"><path d="M271.36 356.352L28.672 873.472l46.08 46.08 303.104-303.104c-11.264-24.576-7.168-54.272 13.312-74.752 25.6-25.6 66.56-25.6 93.184 0s25.6 66.56 0 93.184c-20.48 20.48-50.176 24.576-74.752 13.312L106.496 949.248l46.08 46.08 517.12-243.712 109.568-309.248-198.656-197.632-309.248 111.616z m709.632-61.44L729.088 43.008c-20.48-20.48-54.272-20.48-74.752 0L594.944 102.4c-20.48 20.48-20.48 54.272 0 74.752l250.88 250.88c20.48 20.48 54.272 20.48 74.752 0l59.392-59.392c20.48-20.48 20.48-53.248 1.024-73.728z" fill="#FEA500" p-id="28509"></path></svg>
|
||
|
|
</div>
|
||
|
|
<span>\u5BFC\u51FA\u4E3ASVG</span>
|
||
|
|
</li>
|
||
|
|
<li class="smm-list-item" id="smm-export-md">
|
||
|
|
<div class="smm-list-item-icon">
|
||
|
|
<svg t="1748507270725" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8207" width="24" height="24"><path d="M 821.76 755.2 L 621.824 483.84 H 742.4 V 212.608 h 160.96 v 271.36 H 1024 l -202.24 271.36 Z m -236.608 12.8 H 417.92 V 480 l -125.376 161.664 L 167.168 480 V 768 H 0 V 192 h 167.168 l 125.376 203.968 L 417.984 192 h 167.168 v 576 Z" fill="#333303" p-id="8208"></path></svg>
|
||
|
|
</div>
|
||
|
|
<span>\u5BFC\u51FAMarkdown</span>
|
||
|
|
</li>
|
||
|
|
<li class="smm-list-item" id="smm-export-png">
|
||
|
|
<div class="smm-list-item-icon">
|
||
|
|
<svg t="1748091185342" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="17488" width="24" height="24"><path d="M140.288 418.816c38.912 0 71.68-13.312 99.328-40.96 27.648-27.648 40.96-60.416 40.96-99.328 0-38.912-13.312-71.68-40.96-99.328-27.648-27.648-60.416-40.96-99.328-40.96-38.912 0-71.68 13.312-99.328 40.96-27.648 27.648-40.96 60.416-40.96 99.328 0 38.912 13.312 71.68 40.96 99.328 27.648 27.648 60.416 40.96 99.328 40.96z m209.92 209.92L233.472 512 1.024 744.448v139.264h1024V558.08L722.944 256 350.208 628.736z" fill="#E89131" p-id="17489"></path></svg>
|
||
|
|
</div>
|
||
|
|
<span>\u5BFC\u51FApng</span>
|
||
|
|
</li>
|
||
|
|
<li class="smm-list-item" id="smm-export-pdf">
|
||
|
|
<div class="smm-list-item-icon">
|
||
|
|
<svg t="1748091007262" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="12093" width="24" height="24"><path d="M620.9 67.2H236.5c-30.3 0-54.9 25-54.9 55.9v782.7c0 30.9 24.6 55.9 54.9 55.9h549c30.3 0 54.9-25 54.9-55.9v-615L620.9 67.2z" fill="#FF4242" p-id="12094"></path><path d="M802 925.9H220.1V109.7h379.6v218.9H802z" fill="#FFFFFF" p-id="12095"></path><path d="M802 922.6H220.1V106.4h379.6v218.8H802z" fill="#FF6464" p-id="12096"></path><path d="M348.9 650.4c35.1 0 52.6 14.9 52.6 44.8 0 30.1-17.8 45.2-53.1 45.2h-38.2v57.4h-22.5V650.4h61.2z m-38.6 70.8H347c11.1 0 19.2-2.1 24.4-6.2 5-4.1 7.6-10.7 7.6-19.8 0-9.1-2.7-15.7-7.8-19.4-5.2-4.1-13.2-6.2-24.2-6.2h-36.7v51.6zM476.1 650.4c23.7 0 41.7 6.6 54.1 20 11.6 12.4 17.3 30.3 17.3 53.7 0 23.1-6 41.1-17.8 53.9-12.4 13.2-30.3 19.8-54.1 19.8h-53.3V650.4h53.8z m-31.2 128.2h26.6c18.6 0 32.4-4.5 41.1-13.4 8.5-8.9 12.8-22.5 12.8-41.1 0-19-4.3-32.6-12.6-41.3-8.7-8.9-22.3-13.2-40.9-13.2h-27v109zM670.5 650.4v19.2h-77.6v42.9h73.3v19.2h-73.3v66.1h-22.5V650.4h100.1z" fill="#FFFFFF" p-id="12097"></path></svg> </div>
|
||
|
|
<span>\u5BFC\u51FApdf</span>
|
||
|
|
</li>
|
||
|
|
<li class="smm-list-item" id="smm-export-xmind">
|
||
|
|
<div class="smm-list-item-icon">
|
||
|
|
<svg t="1748091071709" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="14197" width="24" height="24"><path d="M282.624 397.312c167.936 24.576 286.72 192.512 270.336 376.832-36.864-73.728-98.304-126.976-172.032-155.648-20.48-8.192-36.864-12.288-57.344-12.288-16.384-4.096-36.864-4.096-53.248 0-12.288 0-24.576 4.096-36.864 4.096-32.768-65.536-45.056-135.168-36.864-208.896 28.672-4.096 57.344-4.096 81.92-4.096h4.096z" fill="#1F1F1F" p-id="14198"></path><path d="M454.656 679.936c-20.48-16.384-49.152-28.672-69.632-36.864 0 16.384 0 32.768-4.096 49.152-4.096 28.672-12.288 57.344-20.48 86.016 45.056 49.152 106.496 77.824 172.032 90.112 8.192-20.48 12.288-40.96 16.384-61.44-24.576-57.344-57.344-98.304-94.208-126.976 0-4.096 0 0 0 0z m286.72-53.248c-167.936-24.576-286.72-192.512-270.336-376.832 36.864 73.728 98.304 126.976 172.032 155.648 20.48 8.192 36.864 12.288 57.344 12.288 28.672 4.096 61.44 4.096 90.112-4.096 32.768 65.536 45.056 135.168 36.864 208.896-28.672 4.096-57.344 4.096-81.92 4.096-4.096 4.096-4.096 0-4.096 0z" fill="#1F1F1F" p-id="14199"></path><path d="M569.344 348.16c20.48 16.384 49.152 28.672 69.632 36.864 0-16.384 0-32.768 4.096-49.152 4.096-32.768 12.288-61.44 20.48-90.112-45.056-49.152-106.496-77.824-172.032-90.112-8.192 20.48-12.288 40.96-16.384 61.44a360.448 360.448 0 0 0 94.208 131.072z" fill="#1F1F1F" p-id="14200"></path></svg>
|
||
|
|
</div>
|
||
|
|
<span>\u5BFC\u51FAxmind</span>
|
||
|
|
</li>
|
||
|
|
<li class="smm-list-item" id="smm-export-txt">
|
||
|
|
<div class="smm-list-item-icon">
|
||
|
|
<svg t="1748091285425" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="26135" width="24" height="24"><path d="M768 85.792h-288a32 32 0 0 0 0 64h96.32l-230.336 704H256a32 32 0 0 0 0 64h288a32 32 0 0 0 0-64h-93.728l230.528-704H768a32 32 0 0 0 0-64z" p-id="26136"></path></svg>
|
||
|
|
</div>
|
||
|
|
<span>\u5BFC\u51FAtxt</span>
|
||
|
|
</li>
|
||
|
|
</ul>
|
||
|
|
|
||
|
|
</button>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
<!--\u5907\u6CE8\u6846-->
|
||
|
|
<div class="smm-note-container" id="smm-input-note" style="display:none">
|
||
|
|
<div class="smm-note-title">\u6DFB\u52A0\u5907\u6CE8</div>
|
||
|
|
<textarea class="smm-note-input" placeholder="\u5728\u6B64\u8F93\u5165\u5907\u6CE8\u5185\u5BB9..."></textarea>
|
||
|
|
<div class="smm-note-counter">
|
||
|
|
<span>\u5B57\u7B26\u8BA1\u6570: <span id="char-count">0</span>/1000</span>
|
||
|
|
<span>\u6700\u540E\u7F16\u8F91: \u672A\u4FDD\u5B58</span>
|
||
|
|
</div>
|
||
|
|
<div class="smm-note-actions">
|
||
|
|
<button class="smm-note-btn" id="smm-close-note">\u53D6\u6D88</button>
|
||
|
|
<button class="smm-note-btn primary" id="smm-save-note">\u4FDD\u5B58</button>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
<!-- \u94FE\u63A5\u6846-->
|
||
|
|
<div class="smm-link-container" id="smm-insertLink" style="display: none">
|
||
|
|
<div class="smm-link-title">\u6DFB\u52A0\u94FE\u63A5</div>
|
||
|
|
|
||
|
|
<!-- \u94FE\u63A5\u7C7B\u578B\u9009\u62E9 -->
|
||
|
|
<div class="smm-link-type">
|
||
|
|
<button class="smm-link-type-btn active" id="url-type">\u7F51\u9875\u94FE\u63A5</button>
|
||
|
|
<button class="smm-link-type-btn" id="obsidian-type">Obsidian\u6587\u4EF6</button>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<!-- URL\u94FE\u63A5\u8F93\u5165 -->
|
||
|
|
<div class="smm-link-input-container" id="url-input-container">
|
||
|
|
<input type="text" class="smm-link-input smm-link-input-with-icon" id="smm-url-link" placeholder="https://example.com">
|
||
|
|
<input type="text" class="smm-link-input smm-link-input-with-icon" id="smm-url-name" placeholder="name">
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<!-- Obsidian\u6587\u4EF6\u641C\u7D22\u8F93\u5165 -->
|
||
|
|
<div class="smm-link-input-container" id="obsidian-input-container" style="display: none;">
|
||
|
|
<input type="text" class="smm-link-input smm-link-input-with-icon" id="smm-search-obsidian" placeholder="\u641C\u7D22Obsidian\u6587\u4EF6...">
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<!-- \u641C\u7D22\u7ED3\u679C -->
|
||
|
|
<div class="smm-search-results" id="search-results">
|
||
|
|
|
||
|
|
</div>
|
||
|
|
<div class="smm-link-actions">
|
||
|
|
<button class="smm-link-btn" id="smm-cancel-smm-link">\u53D6\u6D88</button>
|
||
|
|
<button class="smm-link-btn primary" id="smm-add-link-button">\u63D2\u5165\u94FE\u63A5</button>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
</div>
|
||
|
|
<!-- \u6807\u7B7E\u6846-->
|
||
|
|
<div class="smm-tags-container" id="smm-tag-block" style="display: none">
|
||
|
|
<div class="smm-tags-title">\u6DFB\u52A0\u6807\u7B7E</div>
|
||
|
|
|
||
|
|
<!-- \u6807\u7B7E\u8F93\u5165\u6846\u7EC4 -->
|
||
|
|
<div class="smm-tags-input-group" id="tags-input-group">
|
||
|
|
<div class="smm-tag-input-wrapper">
|
||
|
|
<input type="text" class="smm-tag-input" placeholder="\u8F93\u5165\u6807\u7B7E...">
|
||
|
|
<div class="smm-tag-delete" title="\u5220\u9664">
|
||
|
|
<svg viewBox="0 0 24 24" width="14" height="14">
|
||
|
|
<path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" />
|
||
|
|
</svg>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div id="smm-tags-buttons">
|
||
|
|
<!-- \u6DFB\u52A0\u6807\u7B7E\u6309\u94AE -->
|
||
|
|
<button class="smm-add-tag-btn" id="add-tag-btn">
|
||
|
|
<svg viewBox="0 0 24 24" width="16" height="16">
|
||
|
|
<path d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z" />
|
||
|
|
</svg>
|
||
|
|
\u6DFB\u52A0\u6807\u7B7E
|
||
|
|
</button>
|
||
|
|
|
||
|
|
<!-- \u9000\u51FA\u6309\u94AE -->
|
||
|
|
<button class="smm-control-btn smm-exit-btn" id="exit-btn">
|
||
|
|
<svg class="smm-icon" viewBox="0 0 24 24" width="16" height="16">
|
||
|
|
<path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/>
|
||
|
|
</svg>
|
||
|
|
<span>\u9000\u51FA</span>
|
||
|
|
</button>
|
||
|
|
|
||
|
|
<button class="smm-control-btn smm-save-btn" id="save-btn">
|
||
|
|
<svg class="smm-icon" viewBox="0 0 24 24" width="16" height="16">
|
||
|
|
<path d="M17 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V7l-4-4zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3zm3-10H5V5h10v4z"/>
|
||
|
|
</svg>
|
||
|
|
<span>\u4FDD\u5B58</span>
|
||
|
|
</button>
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
</div>
|
||
|
|
<!-- \u5DF2\u6DFB\u52A0\u7684\u6807\u7B7E\u5217\u8868 -->
|
||
|
|
<div class="smm-tags-list" id="tags-list">
|
||
|
|
<!-- \u793A\u4F8B\u6807\u7B7E -->
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
<div class="smm-search-container" style="display: none">
|
||
|
|
<div class="smm-search-box">
|
||
|
|
<input type="text" class="smm-search-input" placeholder="\u641C\u7D22..." id="searchInput">
|
||
|
|
<button class="smm-search-btn smm-btn" aria-label="\u641C\u7D22">
|
||
|
|
<svg t="1748234324896" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="6119" width="24" height="24"><path d="M723.10784 723.10784a20.48 20.48 0 0 1 28.95872 0l262.43072 262.43072a20.48 20.48 0 0 1-28.96896 28.96896L723.10784 752.06656a20.48 20.48 0 0 1 0-28.95872z" p-id="6120"></path><path d="M433.60256 433.60256m-430.08 0a430.08 430.08 0 1 0 860.16 0 430.08 430.08 0 1 0-860.16 0Z" p-id="6121"></path><path d="M433.60256 433.60256m-215.04 0a215.04 215.04 0 1 0 430.08 0 215.04 215.04 0 1 0-430.08 0Z" fill="#EBBA50" p-id="6122"></path></svg>
|
||
|
|
|
||
|
|
</button>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
<div class="smm-formula-editor" style="display: none">
|
||
|
|
<div class="smm-formula-header">\u516C\u5F0F\u8F93\u5165</div>
|
||
|
|
<textarea class="smm-formula-input" placeholder="\u8F93\u5165\u516C\u5F0F..."></textarea>
|
||
|
|
<div class="smm-formula-actions">
|
||
|
|
<button class="smm-control-btn smm-cancel-btn" id="smm-formula-cancel">
|
||
|
|
<svg viewBox="0 0 24 24" width="14" height="14">
|
||
|
|
<path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/>
|
||
|
|
</svg>
|
||
|
|
\u53D6\u6D88
|
||
|
|
</button>
|
||
|
|
<button class="smm-control-btn smm-insert-btn" id="smm-formula-enter">
|
||
|
|
<svg viewBox="0 0 24 24" width="14" height="14">
|
||
|
|
<path d="M16.59 8.59L10 15.17 7.41 12.59 6 14l4 4 8-8z"/>
|
||
|
|
</svg>
|
||
|
|
\u63D2\u5165
|
||
|
|
</button>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
|
||
|
|
<!-- \u53F3\u952E\u83DC\u5355 -->
|
||
|
|
<div id="contextMenu" class="smm--right-menu-context">
|
||
|
|
<div class="smm--right-menu-item" id="smm-open-panel">
|
||
|
|
<i class="fa fa-copy"></i>
|
||
|
|
<span id="smm-open-panel-span">\u6253\u5F00\u4FA7\u8FB9\u680F</span>
|
||
|
|
</div>
|
||
|
|
<div class="smm--right-menu-item" id="smm-quiet-mode">
|
||
|
|
<i class="fa fa-cut"></i>
|
||
|
|
<span id="smm-chan-text">\u5F00\u542F\u7985\u6A21\u5F0F</span>
|
||
|
|
</div>
|
||
|
|
<div class="smm--right-menu-divider"></div>
|
||
|
|
<div class="smm--right-menu-item" id="smm-collapse-allnode">
|
||
|
|
<i class="fa fa-cut"></i>
|
||
|
|
<span id="smm-chan-text">\u5C55\u5F00\u6240\u6709\u8282\u70B9</span>
|
||
|
|
</div>
|
||
|
|
<div class="smm--right-menu-item" id="smm-uncollapse-allnode">
|
||
|
|
<i class="fa fa-cut"></i>
|
||
|
|
<span id="smm-chan-text">\u6536\u8D77\u6240\u6709\u8282\u70B9</span>
|
||
|
|
</div>
|
||
|
|
<div class="smm--right-menu-divider"></div>
|
||
|
|
<div class="smm--right-menu-item" id="smm-collapse-one-allnode">
|
||
|
|
<i class="fa fa-cut"></i>
|
||
|
|
<span id="smm-chan-text">\u5C55\u5F00\u5230\u4E00\u7EA7\u4E3B\u9898</span>
|
||
|
|
</div>
|
||
|
|
<div class="smm--right-menu-item" id="smm-collapse-two-allnode">
|
||
|
|
<i class="fa fa-cut"></i>
|
||
|
|
<span id="smm-chan-text">\u5C55\u5F00\u5230\u4E8C\u7EA7\u4E3B\u9898</span>
|
||
|
|
</div>
|
||
|
|
<div class="smm--right-menu-item" id="smm-collapse-three-allnode">
|
||
|
|
<i class="fa fa-cut"></i>
|
||
|
|
<span id="smm-chan-text">\u5C55\u5F00\u5230\u4E09\u7EA7\u4E3B\u9898</span>
|
||
|
|
</div>
|
||
|
|
<div class="smm--right-menu-divider"></div>
|
||
|
|
<div class="smm--right-menu-item" id="smm-fit-window">
|
||
|
|
<i class="fa fa-cut"></i>
|
||
|
|
<span id="smm-chan-text">\u9002\u5E94\u753B\u5E03</span>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<!-- \u53F3\u952E\u83DC\u5355 -->
|
||
|
|
<div id="contextMenu-node" class="smm--right-menu-context-node">
|
||
|
|
<div class="smm--right-menu-divider"></div>
|
||
|
|
<div class="smm--right-menu-item" id="smm-copy-node">
|
||
|
|
<i class="fa fa-paste"></i>
|
||
|
|
<span>\u590D\u5236</span>
|
||
|
|
</div>
|
||
|
|
<div class="smm--right-menu-item" id="smm-paste-node">
|
||
|
|
<i class="fa fa-trash"></i>
|
||
|
|
<span>\u7C98\u8D34</span>
|
||
|
|
</div>
|
||
|
|
<div class="smm--right-menu-item" id="smm-cut-node">
|
||
|
|
<i class="fa fa-share-alt"></i>
|
||
|
|
<span>\u526A\u5207</span>
|
||
|
|
</div>
|
||
|
|
<div class="smm--right-menu-divider"></div>
|
||
|
|
<div class="smm--right-menu-item" id="smm-up-node">
|
||
|
|
<i class="fa fa-share-alt"></i>
|
||
|
|
<span>\u4E0A\u79FB\u8282\u70B9</span>
|
||
|
|
</div>
|
||
|
|
<div class="smm--right-menu-item" id="smm-down-node">
|
||
|
|
<i class="fa fa-share-alt"></i>
|
||
|
|
<span>\u4E0B\u79FB\u8282\u70B9</span>
|
||
|
|
</div>
|
||
|
|
<div class="smm--right-menu-item" id="smm-INSERT_NODE">
|
||
|
|
<i class="fa fa-share-alt"></i>
|
||
|
|
<span>\u589E\u52A0\u5144\u5F1F\u8282\u70B9</span>
|
||
|
|
</div>
|
||
|
|
<div class="smm--right-menu-item" id="smm-INSERT_CHILD_NODE">
|
||
|
|
<i class="fa fa-share-alt"></i>
|
||
|
|
<span>\u589E\u52A0\u5B50\u8282\u70B9</span>
|
||
|
|
</div>
|
||
|
|
<div class="smm--right-menu-item" id="smm-INSERT_PARENT_NODE">
|
||
|
|
<i class="fa fa-share-alt"></i>
|
||
|
|
<span>\u589E\u52A0\u7236\u8282\u70B9</span>
|
||
|
|
</div>
|
||
|
|
<div class="smm--right-menu-item" id="smm-REMOVE_NODE">
|
||
|
|
<i class="fa fa-share-alt"></i>
|
||
|
|
<span>\u5220\u9664\u8282\u70B9</span>
|
||
|
|
</div>
|
||
|
|
<div class="smm--right-menu-divider"></div>
|
||
|
|
<div class="smm--right-menu-item" id="smm-delete-icon">
|
||
|
|
<i class="fa fa-share-alt"></i>
|
||
|
|
<span>\u5220\u9664\u56FE\u6807</span>
|
||
|
|
</div>
|
||
|
|
<div class="smm--right-menu-item" id="smm-delete-hyperlink">
|
||
|
|
<i class="fa fa-share-alt"></i>
|
||
|
|
<span>\u5220\u9664\u8D85\u94FE\u63A5</span>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
<!-- \u6309\u94AE\u7EC4 -->
|
||
|
|
<div id="smmFloatButtonGroup" class="smm-float-button-group">
|
||
|
|
<!-- \u666E\u901A\u6309\u94AE -->
|
||
|
|
<button class="smm-float-btn smm-float-btn-secondary" id="smm-float-bold">
|
||
|
|
<svg t="1748253627691" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1494" width="24" height="24"><path d="M136.562347 0m68.266666 0l0 0q68.266667 0 68.266667 68.266667l0 887.466666q0 68.266667-68.266667 68.266667l0 0q-68.266667 0-68.266666-68.266667l0-887.466666q0-68.266667 68.266666-68.266667Z" fill="#4D4D4D" p-id="1495"></path><path d="M563.229013 136.533333a153.6 153.6 0 0 1 0 307.2H273.09568V136.533333h290.133333m0-136.533333H225.309013A88.746667 88.746667 0 0 0 136.562347 88.746667v486.058666a4.778667 4.778667 0 0 0 5.461333 5.461334h421.205333a290.133333 290.133333 0 0 0 0-580.266667z" fill="#4D4D4D" p-id="1496"></path><path d="M597.362347 580.266667a153.6 153.6 0 0 1 0 307.2H273.09568V580.266667h324.266667m0-136.533334H136.562347v506.538667A73.728 73.728 0 0 0 210.290347 1024h387.072a290.133333 290.133333 0 0 0 0-580.266667z" fill="#4D4D4D" p-id="1497"></path></svg>
|
||
|
|
</button>
|
||
|
|
<button class="smm-float-btn smm-float-btn-secondary" id="smm-float-italic">
|
||
|
|
<svg t="1748253675156" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1675" width="24" height="24"><path d="M451.764706 0h301.17647v60.235294H451.764706zM271.058824 963.764706h301.17647v60.235294H271.058824zM451.764706 963.764706H391.529412L572.235294 60.235294h60.235294L451.764706 963.764706z" fill="#4D4D4D" p-id="1676"></path></svg>
|
||
|
|
</button>
|
||
|
|
<button class="smm-float-btn smm-float-btn-secondary" id="smm-float-underline">
|
||
|
|
<svg t="1748253691296" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1854" width="24" height="24"><path d="M90.352941 963.764706h843.294118v60.235294H90.352941z" fill="#05AFC8" p-id="1855"></path><path d="M512 843.294118C288.527059 843.294118 120.470588 662.588235 120.470588 421.647059V0h60.235294v421.647059c0 206.004706 142.155294 361.411765 331.294118 361.411765s331.294118-155.407059 331.294118-361.411765V0h60.235294v421.647059c0 240.941176-168.056471 421.647059-391.529412 421.647059z" fill="#4D4D4D" p-id="1856"></path></svg>
|
||
|
|
</button>
|
||
|
|
<button class="smm-float-btn smm-float-btn-secondary" id="smm-float-delete">
|
||
|
|
<svg t="1748253705469" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2034" width="24" height="24"><path d="M334.908235 542.117647L512 78.908235 689.091765 542.117647h60.235294L542.117647 0h-60.235294L274.672941 542.117647h60.235294zM205.402353 722.823529L90.352941 1024h60.235294l115.049412-301.176471h-60.235294zM758.362353 722.823529L873.411765 1024h60.235294l-115.049412-301.176471h-60.235294z" fill="#4D4D4D" p-id="2035"></path><path d="M90.352941 602.352941h843.294118v60.235294H90.352941z" fill="#05AFC8" p-id="2036"></path></svg>
|
||
|
|
</button>
|
||
|
|
|
||
|
|
<!-- \u4E0B\u62C9\u5217\u8868\u6309\u94AE -->
|
||
|
|
<div class="smm-float-dropdown">
|
||
|
|
<button id="smmWordClass" class="smm-float-btn smm-float-btn-accent">
|
||
|
|
<svg t="1748416895943" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4925" width="24" height="24"><path d="M913.408 1024l-66.56 0q-29.696 0-51.2-5.12t-36.864-15.872-26.112-27.136-19.968-37.888q-15.36-38.912-28.16-70.656t-22.016-55.296q-11.264-26.624-20.48-49.152l-254.976 0q-7.168 23.552-17.408 51.2-8.192 23.552-21.504 56.832t-30.72 72.192q-20.48 46.08-47.104 63.488t-60.416 17.408l-70.656 0q-45.056 0-60.928-19.968t2.56-68.096q18.432-46.08 43.008-108.544t52.224-132.608 57.344-143.872 57.344-144.384q65.536-164.864 137.216-343.04 7.168-17.408 18.432-31.744 10.24-11.264 27.136-21.504t42.496-10.24q26.624 0 43.52 10.752t28.16 24.064q12.288 15.36 19.456 33.792 72.704 180.224 138.24 345.088 27.648 70.656 57.344 143.872t56.832 142.336 51.2 129.536 41.472 104.448q14.336 34.816 4.096 62.464t-43.008 27.648zM616.448 634.88l-97.28-347.136-1.024 0-108.544 347.136 206.848 0z" p-id="4926"></path></svg>
|
||
|
|
</button>
|
||
|
|
|
||
|
|
<div id="smmFloatDropdownMenu" class="smm-float-dropdown-menu">
|
||
|
|
<div class="smm-float-dropdown-item1 smm-float-dropdown-item">\u5B8B\u4F53, SimSun, Songti SC</div>
|
||
|
|
<div class="smm-float-dropdown-item1 smm-float-dropdown-item">\u5FAE\u8F6F\u96C5\u9ED1, Microsoft YaHei</div>
|
||
|
|
<div class="smm-float-dropdown-item1 smm-float-dropdown-item">\u6977\u4F53, \u6977\u4F53_GB2312, SimKai, STKaiti</div>
|
||
|
|
<div class="smm-float-dropdown-item1 smm-float-dropdown-item">\u9ED1\u4F53, SimHei, Heiti SC</div>
|
||
|
|
<div class="smm-float-dropdown-item1 smm-float-dropdown-item">\u96B6\u4E66, SimLi</div>
|
||
|
|
<div class="smm-float-dropdown-item1 smm-float-dropdown-item">andale mono</div>
|
||
|
|
<div class="smm-float-dropdown-item1 smm-float-dropdown-item">arial, helvetica, sans-serif</div>
|
||
|
|
<div class="smm-float-dropdown-item1 smm-float-dropdown-item">arial black, avant garde</div>
|
||
|
|
<div class="smm-float-dropdown-item1 smm-float-dropdown-item">comic sans ms</div>
|
||
|
|
<div class="smm-float-dropdown-item1 smm-float-dropdown-item">impact, chicago</div>
|
||
|
|
<div class="smm-float-dropdown-item1 smm-float-dropdown-item">times new roman</div>
|
||
|
|
<div class="smm-float-dropdown-item1 smm-float-dropdown-item">sans-serif</div>
|
||
|
|
<div class="smm-float-dropdown-item1 smm-float-dropdown-item">serif</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<!-- \u4E0B\u62C9\u5217\u8868\u6309\u94AE -->
|
||
|
|
<div class="smm-float-dropdown">
|
||
|
|
<button id="smmWordSize" class="smm-float-btn smm-float-btn-accent">
|
||
|
|
<svg t="1748416941557" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5949" width="24" height="24"><path d="M712 1008c-18.7 0-36.4-11.7-43.5-30.8l-289.2-779L90 977.2c-9.2 24.8-36.1 37.1-60.1 27.7-24-9.5-36-37.2-26.8-62l332.7-896C342.7 28.3 360 16 379.3 16s36.6 12.3 43.5 30.8l332.7 896c9.2 24.8-2.8 52.5-26.8 62-5.6 2.2-11.2 3.2-16.7 3.2zM977.5 1008c-18.7 0-36.4-11.7-43.5-30.8L711.6 378.4l-28.3 76.1c-9.2 24.8-36.1 37.1-60.1 27.7-24-9.5-36-37.2-26.8-62L668.2 227c6.9-18.6 24.2-30.8 43.5-30.8s36.6 12.3 43.5 30.8L1021 942.9c9.2 24.8-2.8 52.5-26.8 62-5.6 2.1-11.2 3.1-16.7 3.1z" p-id="5950"></path><path d="M578.9 709.3H179.6c-25.7 0-46.5-21.5-46.5-48s20.8-48 46.5-48h399.2c25.7 0 46.5 21.5 46.5 48s-20.7 48-46.4 48zM845.1 784h-84.8c-25.7 0-46.5-21.5-46.5-48s20.8-48 46.5-48h84.8c25.7 0 46.5 21.5 46.5 48s-20.8 48-46.5 48z" p-id="5951"></path></svg>
|
||
|
|
</button>
|
||
|
|
|
||
|
|
<div id="smmFloatDropdownMenu2" class="smm-float-dropdown-menu">
|
||
|
|
<div class="smm-float-dropdown-item2 smm-float-dropdown-item">12</div>
|
||
|
|
<div class="smm-float-dropdown-item2 smm-float-dropdown-item">14</div>
|
||
|
|
<div class="smm-float-dropdown-item2 smm-float-dropdown-item">16</div>
|
||
|
|
<div class="smm-float-dropdown-item2 smm-float-dropdown-item">18</div>
|
||
|
|
<div class="smm-float-dropdown-item2 smm-float-dropdown-item">24</div>
|
||
|
|
<div class="smm-float-dropdown-item2 smm-float-dropdown-item">32</div>
|
||
|
|
<div class="smm-float-dropdown-item2 smm-float-dropdown-item">48</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<!-- \u989C\u8272\u9009\u53D6\u6309\u94AE -->
|
||
|
|
<button class="smm-float-btn">
|
||
|
|
<input type="color" id='smm-word-color' class="smm-float-color-picker" value="#3B82F6">
|
||
|
|
</button>
|
||
|
|
<button class="smm-float-btn">
|
||
|
|
<input type="color" id="smm-float-bg-color" class="smm-float-color-picker" value="#3B82F6">
|
||
|
|
</button>
|
||
|
|
<button class="smm-float-btn smm-float-btn-secondary" id="smm-float-clear">
|
||
|
|
<svg t="1748255962671" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3127" width="24" height="24"><path d="M921.6 512 880.64 512 972.8 972.8C972.8 1001.088 949.888 1024 921.6 1024L102.4 1024C74.112 1024 51.2 1001.088 51.2 972.8L143.36 512 102.4 512C74.112 512 51.2 489.088 51.2 460.8L51.2 409.6C51.2 381.312 74.112 358.4 102.4 358.4L409.6 358.4 409.6 102.4C409.6 45.8496 455.4496 0 512 0 568.5504 0 614.4 45.8496 614.4 102.4L614.4 358.4 921.6 358.4C949.888 358.4 972.8 381.312 972.8 409.6L972.8 460.8C972.8 489.088 949.888 512 921.6 512ZM102.4 972.8 257.6384 972.8C254.1056 967.5008 252.4416 960.9472 253.6192 954.1888L284.7488 726.5024C287.2064 712.6016 300.4672 703.2832 314.3936 705.7408 328.32 708.1984 337.6128 721.4848 335.1808 735.4112L304.0512 963.072C303.4112 966.6816 302.0032 969.9328 300.1088 972.8L921.6 972.8 819.2 512 204.8 512 102.4 972.8ZM563.2 102.4C563.2 74.112 540.288 51.2 512 51.2 483.712 51.2 460.8 74.112 460.8 102.4L460.8 358.4 563.2 358.4 563.2 102.4ZM921.6 409.6 102.4 409.6 102.4 460.8 921.6 460.8 921.6 409.6Z" fill="#272636" p-id="3128"></path></svg>
|
||
|
|
</button>
|
||
|
|
</div>
|
||
|
|
`;var kx=[{name:"\u4F18\u5148\u7EA7\u56FE\u6807",type:"priority",list:[{name:"1",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024"><path d="M512.042667 1024C229.248 1024 0 794.794667 0 511.957333 0 229.205333 229.248 0 512.042667 0 794.752 0 1024 229.205333 1024 511.957333 1024 794.794667 794.752 1024 512.042667 1024z" fill="#E93B30"></path><path d="M580.309333 256h-75.52c-10.666667 29.824-30.165333 55.765333-58.709333 78.165333-28.416 22.314667-54.869333 37.418667-79.146667 45.397334v84.608a320 320 0 0 0 120.234667-70.698667v352.085333H580.266667V256z" fill="#FFFFFF"></path></svg>'},{name:"2",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024"><path d="M511.957333 1024C229.248 1024 0 794.752 0 512S229.248 0 511.957333 0C794.752 0 1024 229.248 1024 512s-229.248 512-512.042667 512z" fill="#FA8D2E"></path><path d="M667.946667 658.602667h-185.301334c4.864-8.533333 11.178667-17.066667 19.072-25.984 7.808-8.874667 26.453333-26.837333 55.936-53.888 29.525333-27.008 49.877333-47.786667 61.226667-62.165334 16.981333-21.717333 29.44-42.453333 37.290667-62.293333 7.808-19.84 11.776-40.746667 11.776-62.677333 0-38.570667-13.738667-70.741333-41.088-96.725334C599.466667 268.928 561.706667 256 513.834667 256c-43.690667 0-80.128 11.136-109.354667 33.578667-29.098667 22.4-46.506667 59.306667-52.010667 110.805333l93.184 9.301333c1.792-27.349333 8.405333-46.890667 19.754667-58.624 11.434667-11.776 26.837333-17.664 46.165333-17.664 19.541333 0 34.858667 5.589333 45.909334 16.768 11.136 11.264 16.682667 27.221333 16.682666 48.042667 0 18.858667-6.4 37.930667-19.242666 57.258667-9.472 14.037333-35.157333 40.533333-77.098667 79.872-52.096 48.554667-87.04 87.509333-104.704 116.821333A226.688 226.688 0 0 0 341.333333 745.429333h326.613334v-86.826666z" fill="#FFFFFF"></path></svg>'},{name:"3",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024"><path d="M512 0C229.248 0 0 229.248 0 512s229.248 512 512 512 512-229.248 512-512S794.752 0 512 0z" fill="#2E66FA"></path><path d="M627.754667 731.733333c-29.354667 25.088-66.901333 37.632-112.725334 37.632-44.928 0-81.792-11.52-110.592-34.773333-33.066667-26.538667-49.877333-64.469333-50.304-114.133333h92.16c0.426667 21.76 7.552 38.314667 21.333334 49.664 12.288 10.88 28.117333 16.341333 47.402666 16.341333 20.309333 0 36.778667-6.101333 49.322667-18.432 12.544-12.330667 18.773333-29.568 18.773333-51.797333 0-21.290667-6.229333-38.186667-18.773333-50.773334-12.544-12.501333-29.866667-18.773333-52.138667-18.773333h-13.525333v-80.042667H512c42.112 0 63.274667-21.034667 63.274667-63.146666 0-20.309333-5.888-36.096-17.706667-47.445334a60.757333 60.757333 0 0 0-43.818667-17.066666c-17.493333 0-32 5.504-43.434666 16.298666-11.562667 10.88-17.792 25.728-18.773334 44.714667H359.68c0.981333-43.946667 16.042667-78.976 45.397333-104.96 29.354667-25.941333 65.706667-39.04 109.226667-39.04 44.928 0 81.792 13.525333 110.592 40.490667 28.8 26.922667 43.306667 61.610667 43.306667 104.149333 0 48.213333-19.413333 82.688-58.154667 103.552 43.52 23.125333 65.28 61.44 65.28 114.858667 0 48.128-15.957333 85.76-47.573333 112.682666z" fill="#FFFFFF"></path></svg>'},{name:"4",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024"><path d="M512.042667 1024C229.248 1024 0 794.794667 0 512.042667 0 229.205333 229.248 0 512.042667 0 794.752 0 1024 229.205333 1024 512.042667 1024 794.794667 794.752 1024 512.042667 1024z" fill="#4F46E5"></path><path d="M600.96 256v309.802667h60.117333v81.536h-60.16v98.218666h-90.154666v-98.218666H311.466667v-81.237334L522.666667 256h78.293333zM510.72 399.104l-112.042667 166.698667h112.042667V399.104z" fill="#FFFFFF"></path></svg>'},{name:"5",icon:'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024"><path d="M512.042667 1024C229.248 1024 0 794.794667 0 512.042667 0 229.205333 229.248 0 512.042667 0 794.752 0 1024 229.205333 1024 512.042667 1024 794.794667 794.752 1024 512.042667 1024z" fill="#EC4899"></path><path d="M470.912 343.552h175.786667V256H400
|
||
|
|
pointer-events: none;
|
||
|
|
position: fixed;
|
||
|
|
display:none;
|
||
|
|
background-size: cover;
|
||
|
|
`,this.handleEl.className="node-img-handle";let n=document.createElement("div");n.innerHTML=t||vo.imgAdjust,n.style.cssText=`
|
||
|
|
position: absolute;
|
||
|
|
right: 0;
|
||
|
|
bottom: 0;
|
||
|
|
pointer-events: auto;
|
||
|
|
background-color: rgba(0, 0, 0, 0.3);
|
||
|
|
width: ${e}px;
|
||
|
|
height: ${e}px;
|
||
|
|
display: flex;
|
||
|
|
justify-content: center;
|
||
|
|
align-items: center;
|
||
|
|
cursor: nwse-resize;
|
||
|
|
`,n.className="node-image-resize",n.addEventListener("mouseenter",()=>{this.showHandleEl()}),n.addEventListener("mouseleave",()=>{this.isMousedown||this.hideHandleEl()}),n.addEventListener("mousedown",o=>{o.stopPropagation(),o.preventDefault(),this.onMousedown(o)}),n.addEventListener("mouseup",o=>{setTimeout(()=>{this.hideHandleEl(),this.isAdjusted=!1},0)}),n.addEventListener("click",o=>{o.stopPropagation()}),this.handleEl.appendChild(n);let s=document.createElement("div");this.handleEl.prepend(s),s.className="node-image-remove",s.innerHTML=i||vo.remove,s.style.cssText=`
|
||
|
|
position: absolute;
|
||
|
|
right: 0;top:0;color:#fff;
|
||
|
|
pointer-events: auto;
|
||
|
|
background-color: rgba(0, 0, 0, 0.3);
|
||
|
|
width: ${e}px;
|
||
|
|
height: ${e}px;
|
||
|
|
display: flex;
|
||
|
|
justify-content: center;
|
||
|
|
align-items: center;
|
||
|
|
cursor: pointer;
|
||
|
|
`,s.addEventListener("mouseenter",o=>{this.showHandleEl()}),s.addEventListener("mouseleave",o=>{this.isMousedown||this.hideHandleEl()}),s.addEventListener("click",async o=>{let l=!1;typeof this.mindMap.opt.beforeDeleteNodeImg=="function"&&(l=await this.mindMap.opt.beforeDeleteNodeImg(this.node)),l||(this.mindMap.execCommand("SET_NODE_IMAGE",this.node,{url:null}),this.mindMap.emit("delete_node_img_from_delete_btn",this.node))}),(this.mindMap.opt.customInnerElsAppendTo||document.body).appendChild(this.handleEl)}onMousedown(e){this.mindMap.emit("node_img_adjust_btn_mousedown",this.node),this.isMousedown=!0,this.mousedownDrawTransform=this.mindMap.draw.transform(),this.hideNodeImage(),this.mousedownOffset.x=e.clientX-this.rect.x2,this.mousedownOffset.y=e.clientY-this.rect.y2,this.handleEl.style.backgroundImage=`url(${this.node.getData("image")})`}onMousemove(e){if(!this.isMousedown)return;e.preventDefault();let{scaleX:t,scaleY:i}=this.mousedownDrawTransform,{width:n,height:s}=this.node.getData("imageSize"),{minImgResizeWidth:a,minImgResizeHeight:o,maxImgResizeWidthInheritTheme:l,maxImgResizeWidth:h,maxImgResizeHeight:c}=this.mindMap.opt,u=a/o,d=n/s;u>d?o=a/d:a=o*d;let f,m;l?(f=this.mindMap.getThemeConfig("imgMaxWidth"),m=this.mindMap.getThemeConfig("imgMaxHeight")):(f=h,m=c),f=f*t,m=m*i;let g=Math.abs(e.clientX-this.rect.x-this.mousedownOffset.x),v=Math.abs(e.clientY-this.rect.y-this.mousedownOffset.y);g<a&&(g=a),v<o&&(v=o),g>f&&(g=f),v>m&&(v=m);let[y,A]=u9(n,s,g,v);this.currentImgWidth=y,this.currentImgHeight=A,this.updateHandleElSize()}onMouseup(){if(!this.isMousedown)return;this.showNodeImage(),this.hideHandleEl();let{image:e,imageTitle:t}=this.node.getData(),{scaleX:i,scaleY:n}=this.mousedownDrawTransform,s=this.currentImgWidth/i,a=this.currentImgHeight/n;(Math.abs(s-this.rect.width)>1||Math.abs(a-this.rect.height)>1)&&(this.mindMap.execCommand("SET_NODE_IMAGE",this.node,{url:e,title:t,width:s,height:a,custom:!0}),this.isAdjusted=!0),this.isMousedown=!1,this.mousedownDrawTransform=null,this.mousedownOffset.x=0,this.mousedownOffset.y=0}onRenderEnd(){if(!this.isAdjusted){this.hideHandleEl();return}this.isAdjusted=!1}beforePluginRemove(){this.unBindEvent()}beforePluginDestroy(){this.unBindEvent()}};Kf.instanceName="nodeImgAdjust";var Dx=Kf;var Qf=class{constructor({mindMap:e}){this.mindMap=e,this.touchesNum=0,this.singleTouchstartEvent=null,this.clickNum=0,this.touchStartScaleView=null,this.lastTouchStartPosition=null,this.lastTouchStartDistance=0,this.bindEvent()}bindEvent(){this.onTouchstart=this.onTouchstart.bind(this),this.onTouchmove=this.onTouchmove.bind(this),this.onTouchcancel=this.onTouchcancel.bind(this),this.onTouchend=this.onTouchend.bind(this),window.addEventListener("touchstart",this.onTouchstart,{capture:!0,passive:!1}),window.addEventListener("touchmove",this.onTouchmove,{capture:!0,passive:!1}),window.addEventListener("touchcancel",this.onTouchcancel,{capture:!0,passive:!1}),window.addEventListener("touchend",this.onTouchend,{capture:!0,passive:!1})}unBindEvent(){window.removeEventListener("touchstart",this.onTouchstart),window.removeEventListener("touchmove",this.onTouchmove),window.removeEventListener("touchcancel",this.onTouchcancel),window.removeEventListener("touchend",this.onTouchend)}onTouchstart(e){if(this.touchesNum=e.touches.length,this.touchStartScaleView=null,this.touchesNum===1){let t=e.touches[0];this.lastTouchStartPosition&&(this.lastTouchStartDistance=I9(this.lastTouchStartPosition.x,this.lastTouchStartPosition.y,t.clientX,t.clientY)),this.lastTouchStartPosition={x:t.clientX,y:t.clientY},this.singleTouchstartEvent=t,this.dispatchMouseEvent("mousedown",t.target,t)}}onTouchmove(e){if(e.target.parentNode.classList.contains("ob-simple-mindMapContainer")){e.stopPropagation(),e.preventDefault();let i=e.touches.length;if(i===1){let n=e.touches[0];this.dispatchMouseEvent("mousemove",n.target,n)}else if(i===2){let{disableTouchZoom:n,minTouchZoomScale:s,maxTouchZoomScale:a}=this.mindMap.opt;if(n)return;s=s===-1?-1/0:s/100,a=a===-1?1/0:a/100;let o=e.touches[0],l=e.touches[1],h=o.clientX-l.clientX,
|
||
|
|
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
|
||
|
|
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
|
||
|
|
c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
|
||
|
|
s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
|
||
|
|
c69,-144,104.5,-217.7,106.5,-221
|
||
|
|
l`+e/2.075+" -"+e+`
|
||
|
|
c5.3,-9.3,12,-14,20,-14
|
||
|
|
H400000v`+(40+e)+`H845.2724
|
||
|
|
s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
|
||
|
|
c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
|
||
|
|
M`+(834+e)+" "+t+"h400000v"+(40+e)+"h-400000z"},Wq=function(e,t){return"M263,"+(601+e+t)+`c0.7,0,18,39.7,52,119
|
||
|
|
c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
|
||
|
|
c340,-704.7,510.7,-1060.3,512,-1067
|
||
|
|
l`+e/2.084+" -"+e+`
|
||
|
|
c4.7,-7.3,11,-11,19,-11
|
||
|
|
H40000v`+(40+e)+`H1012.3
|
||
|
|
s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
|
||
|
|
c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1
|
||
|
|
s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
|
||
|
|
c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
|
||
|
|
M`+(1001+e)+" "+t+"h400000v"+(40+e)+"h-400000z"},Yq=function(e,t){return"M983 "+(10+e+t)+`
|
||
|
|
l`+e/3.13+" -"+e+`
|
||
|
|
c4,-6.7,10,-10,18,-10 H400000v`+(40+e)+`
|
||
|
|
H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7
|
||
|
|
s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744
|
||
|
|
c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
|
||
|
|
c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
|
||
|
|
c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
|
||
|
|
c53.7,-170.3,84.5,-266.8,92.5,-289.5z
|
||
|
|
M`+(1001+e)+" "+t+"h400000v"+(40+e)+"h-400000z"},Vq=function(e,t){return"M424,"+(2398+e+t)+`
|
||
|
|
c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
|
||
|
|
c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20
|
||
|
|
s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
|
||
|
|
s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
|
||
|
|
l`+e/4.223+" -"+e+`c4,-6.7,10,-10,18,-10 H400000
|
||
|
|
v`+(40+e)+`H1014.6
|
||
|
|
s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
|
||
|
|
c-2,6,-10,9,-24,9
|
||
|
|
c-8,0,-12,-0.7,-12,-2z M`+(1001+e)+" "+t+`
|
||
|
|
h400000v`+(40+e)+"h-400000z"},Kq=function(e,t){return"M473,"+(2713+e+t)+`
|
||
|
|
c339.3,-1799.3,509.3,-2700,510,-2702 l`+e/5.298+" -"+e+`
|
||
|
|
c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+e)+`H1017.7
|
||
|
|
s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
|
||
|
|
c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200
|
||
|
|
c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26
|
||
|
|
s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
|
||
|
|
606zM`+(1001+e)+" "+t+"h400000v"+(40+e)+"H1017.7z"},Qq=function(e){var t=e/2;return"M400000 "+e+" H0 L"+t+" 0 l65 45 L145 "+(e-80)+" H400000z"},Xq=function(e,t,i){var n=i-54-t-e;return"M702 "+(e+t)+"H400000"+(40+e)+`
|
||
|
|
H742v`+n+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1
|
||
|
|
h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
|
||
|
|
c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
|
||
|
|
219 661 l218 661zM702 `+t+"H400000v"+(40+e)+"H742z"},Zq=function(e,t,i){t=1e3*t;var n="";switch(e){case"sqrtMain":n=Gq(t,lh);break;case"sqrtSize1":n=Wq(t,lh);break;case"sqrtSize2":n=Yq(t,lh);break;case"sqrtSize3":n=Vq(t,lh);break;case"sqrtSize4":n=Kq(t,lh);break;case"sqrtTall":n=Xq(t,lh,i)}return n},Jq=function(e,t){switch(e){case"\u239C":return"M291 0 H417 V"+t+" H291z M291 0 H417 V"+t+" H291z";case"\u2223":return"M145 0 H188 V"+t+" H145z M145 0 H188 V"+t+" H145z";case"\u2225":return"M145 0 H188 V"+t+" H145z M145 0 H188 V"+t+" H145z"+("M367 0 H410 V"+t+" H367z M367 0 H410 V"+t+" H367z");case"\u239F":return"M457 0 H583 V"+t+" H457z M457 0 H583 V"+t+" H457z";case"\u23A2":return"M319 0 H403 V"+t+" H319z M319 0 H403 V"+t+" H319z";case"\u23A5":return"M263 0 H347 V"+t+" H263z M263 0 H347 V"+t+" H263z";case"\u23AA":return"M384 0 H504 V"+t+" H384z M384 0 H504 V"+t+" H384z";case"\u23D0":return"M312 0 H355 V"+t+" H312z M312 0 H355 V"+t+" H312z";case"\u2016":return"M257 0 H300 V"+t+" H257z M257 0 H300 V"+t+" H257z"+("M478 0 H521 V"+t+" H478z M478 0 H521 V"+t+" H478z");default:return""}},Fx={doubleleftarrow:`M262 157
|
||
|
|
l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3
|
||
|
|
0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28
|
||
|
|
14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5
|
||
|
|
c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5
|
||
|
|
157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87
|
||
|
|
-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
|
||
|
|
-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
|
||
|
|
m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
|
||
|
|
-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5
|
||
|
|
14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88
|
||
|
|
-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68
|
||
|
|
-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18
|
||
|
|
-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
|
||
|
|
c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3
|
||
|
|
-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
|
||
|
|
135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8
|
||
|
|
-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247
|
||
|
|
c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208
|
||
|
|
490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3
|
||
|
|
1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202
|
||
|
|
l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
|
||
|
|
-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
|
||
|
|
5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13
|
||
|
|
35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688
|
||
|
|
0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
|
||
|
|
-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80
|
||
|
|
H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0
|
||
|
|
435 0h399565z`,leftgroupunder:`M400000 262
|
||
|
|
H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219
|
||
|
|
435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
|
||
|
|
-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5
|
||
|
|
-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7
|
||
|
|
-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5
|
||
|
|
20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3
|
||
|
|
-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7
|
||
|
|
-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
|
||
|
|
m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
|
||
|
|
5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
|
||
|
|
1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667
|
||
|
|
-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12
|
||
|
|
10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7
|
||
|
|
-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
|
||
|
|
v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5
|
||
|
|
-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3
|
||
|
|
-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21
|
||
|
|
71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z
|
||
|
|
M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z
|
||
|
|
M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
|
||
|
|
-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
|
||
|
|
c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3
|
||
|
|
68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z
|
||
|
|
M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334
|
||
|
|
c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14
|
||
|
|
-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
|
||
|
|
311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11
|
||
|
|
12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
|
||
|
|
c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14
|
||
|
|
53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
|
||
|
|
11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0
|
||
|
|
-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6
|
||
|
|
-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
|
||
|
|
m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8
|
||
|
|
60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8
|
||
|
|
-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
|
||
|
|
m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
|
||
|
|
c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6
|
||
|
|
-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
|
||
|
|
m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0
|
||
|
|
85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8
|
||
|
|
-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
|
||
|
|
m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
|
||
|
|
c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128
|
||
|
|
-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20
|
||
|
|
11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7
|
||
|
|
39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85
|
||
|
|
-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
|
||
|
|
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
|
||
|
|
151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
|
||
|
|
-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5
|
||
|
|
s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1
|
||
|
|
c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3
|
||
|
|
28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
|
||
|
|
-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0
|
||
|
|
3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18
|
||
|
|
0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3
|
||
|
|
-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2
|
||
|
|
-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58
|
||
|
|
69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11
|
||
|
|
-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7
|
||
|
|
2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z
|
||
|
|
m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8
|
||
|
|
8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5
|
||
|
|
-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95
|
||
|
|
-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8
|
||
|
|
15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3
|
||
|
|
8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3
|
||
|
|
-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
|
||
|
|
m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3
|
||
|
|
15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0
|
||
|
|
-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21
|
||
|
|
66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z
|
||
|
|
M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`,rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23
|
||
|
|
1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
|
||
|
|
-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142
|
||
|
|
-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
|
||
|
|
115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69
|
||
|
|
-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
|
||
|
|
-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
|
||
|
|
-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
|
||
|
|
10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167
|
||
|
|
c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3
|
||
|
|
41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42
|
||
|
|
18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
|
||
|
|
-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
|
||
|
|
101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7
|
||
|
|
-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0
|
||
|
|
114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0
|
||
|
|
4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
|
||
|
|
-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
|
||
|
|
-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9
|
||
|
|
31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
|
||
|
|
c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751
|
||
|
|
181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457
|
||
|
|
-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
|
||
|
|
411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
|
||
|
|
16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
|
||
|
|
-338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
|
||
|
|
-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
|
||
|
|
177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
|
||
|
|
14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
|
||
|
|
-175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5
|
||
|
|
3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
|
||
|
|
10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63
|
||
|
|
-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1
|
||
|
|
-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
|
||
|
|
H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
|
||
|
|
c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22
|
||
|
|
c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10
|
||
|
|
-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10
|
||
|
|
-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10
|
||
|
|
-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,
|
||
|
|
-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
||
|
|
-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
||
|
|
-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
||
|
|
-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202
|
||
|
|
c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
|
||
|
|
c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130
|
||
|
|
s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47
|
||
|
|
121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6
|
||
|
|
s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11
|
||
|
|
c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
|
||
|
|
M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
|
||
|
|
-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0
|
||
|
|
13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39
|
||
|
|
-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5
|
||
|
|
-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
|
||
|
|
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
|
||
|
|
151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
|
||
|
|
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
|
||
|
|
c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21
|
||
|
|
c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
|
||
|
|
c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
|
||
|
|
M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
|
||
|
|
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
|
||
|
|
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
|
||
|
|
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
|
||
|
|
M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
|
||
|
|
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,
|
||
|
|
1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,
|
||
|
|
-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
|
||
|
|
M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0
|
||
|
|
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
|
||
|
|
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
|
||
|
|
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
|
||
|
|
M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},$q=function(e,t){switch(e){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+t+` v1759 h347 v-84
|
||
|
|
H403z M403 1759 V0 H319 V1759 v`+t+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+t+` v1759 H0 v84 H347z
|
||
|
|
M347 1759 V0 H263 V1759 v`+t+" v1759 h84z";case"vert":return"M145 15 v585 v"+t+` v585 c2.667,10,9.667,15,21,15
|
||
|
|
c10,0,16.667,-5,20,-15 v-585 v`+-t+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
||
|
|
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+t+" v585 h43z";case"doublevert":return"M145 15 v585 v"+t+` v585 c2.667,10,9.667,15,21,15
|
||
|
|
c10,0,16.667,-5,20,-15 v-585 v`+-t+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
||
|
|
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+t+` v585 h43z
|
||
|
|
M367 15 v585 v`+t+` v585 c2.667,10,9.667,15,21,15
|
||
|
|
c10,0,16.667,-5,20,-15 v-585 v`+-t+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
||
|
|
c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+t+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+t+` v1715 h263 v84 H319z
|
||
|
|
MM319 602 V0 H403 V602 v`+t+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+t+` v1799 H0 v-84 H319z
|
||
|
|
MM319 602 V0 H403 V602 v`+t+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+t+` v602 h84z
|
||
|
|
M403 1759 V0 H319 V1759 v`+t+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+t+` v602 h84z
|
||
|
|
M347 1759 V0 h-84 V1759 v`+t+" v602 h84z";case"lparen":return`M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1
|
||
|
|
c-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,
|
||
|
|
-36,557 l0,`+(t+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,
|
||
|
|
949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9
|
||
|
|
c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,
|
||
|
|
-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189
|
||
|
|
l0,-`+(t+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,
|
||
|
|
-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z`;case"rparen":return`M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3,
|
||
|
|
63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5
|
||
|
|
c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(t+9)+`
|
||
|
|
c-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664
|
||
|
|
c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11
|
||
|
|
c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17
|
||
|
|
c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
|
||
|
|
l0,-`+(t+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
||
|
|
-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}},_l=class{constructor(e){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(e){return rt.contains(this.classes,e)}toNode(){for(var e=document.createDocumentFragment(),t=0;t<this.children.length;t++)e.appendChild(this.children[t].toNode());return e}toMarkup(){for(var e="",t=0;t<this.children.length;t++)e+=this.children[t].toMarkup();return e}toText(){var e=t=>t.toText();return this.children.map(e).join("")}},Us={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,
|
||
|
|
`+L+" children.");for(var _=0;_<L;_++){var S=new Hs(b[_]),G=new Es([S],{width:"400em",height:Ie(D),viewBox:"0 0 "+o+" "+M,preserveAspectRatio:V[_]+" slice"}),Q=he.makeSvgSpan([k[_]],[G],t);if(L===1)return{span:Q,minWidth:C,height:D};Q.style.height=Ie(D),y.push(Q)}return{span:he.makeSpan(["stretchy"],y,t),minWidth:C,height:D}}}var{span:n,minWidth:s,height:a}=i();return n.height=a,n.style.height=Ie(a),s>0&&(n.style.minWidth=Ie(s)),n},BU=function(e,t,i,n,s){var a,o=e.height+e.depth+i+n;if(/fbox|color|angl/.test(t)){if(a=he.makeSpan(["stretchy",t],[],s),t==="fbox"){var l=s.color&&s.getColor();l&&(a.style.borderColor=l)}}else{var h=[];/^[bx]cancel$/.test(t)&&h.push(new Uu({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(t)&&h.push(new Uu({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var c=new Es(h,{width:"100%",height:Ie(o)});a=he.makeSvgSpan([],[c],s)}return a.height=o,a.style.height=Ie(o),a},Fa={encloseSpan:BU,mathMLnode:IU,svgSpan:OU};function Et(r,e){if(!r||r.type!==e)throw new Error("Expected node of type "+e+", but got "+(r?"node of type "+r.type:String(r)));return r}function N4(r){var e=vm(r);if(!e)throw new Error("Expected node of symbol group type, but got "+(r?"node of type "+r.type:String(r)));return e}function vm(r){return r&&(r.type==="atom"||lU.hasOwnProperty(r.type))?r:null}var F4=(r,e)=>{var t,i,n;r&&r.type==="supsub"?(i=Et(r.base,"accent"),t=i.base,r.base=t,n=aU(jt(r,e)),r.base=i):(i=Et(r,"accent"),t=i.base);var s=jt(t,e.havingCrampedStyle()),a=i.isShifty&&rt.isCharacterBox(t),o=0;if(a){var l=rt.getBaseElem(t),h=jt(l,e.havingCrampedStyle());o=Ox(h).skew}var c=i.label==="\\c",u=c?s.height+s.depth:Math.min(s.height,e.fontMetrics().xHeight),d;if(i.isStretchy)d=Fa.svgSpan(i,e),d=he.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"elem",elem:d,wrapperClasses:["svg-align"],wrapperStyle:o>0?{width:"calc(100% - "+Ie(2*o)+")",marginLeft:Ie(2*o)}:void 0}]},e);else{var f,m;i.label==="\\vec"?(f=he.staticSvg("vec",e),m=he.svgData.vec[1]):(f=he.makeOrd({mode:i.mode,text:i.label},e,"textord"),f=Ox(f),f.italic=0,m=f.width,c&&(u+=f.depth)),d=he.makeSpan(["accent-body"],[f]);var g=i.label==="\\textcircled";g&&(d.classes.push("accent-full"),u=s.height);var v=o;g||(v-=m/2),d.style.left=Ie(v),i.label==="\\textcircled"&&(d.style.top=".2em"),d=he.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:-u},{type:"elem",elem:d}]},e)}var y=he.makeSpan(["mord","accent"],[d],e);return n?(n.children[0]=y,n.height=Math.max(y.height,n.height),n.classes[0]="mord",n):y},Cb=(r,e)=>{var t=r.isStretchy?Fa.mathMLnode(r.label):new Te.MathNode("mo",[Zn(r.label,r.mode)]),i=new Te.MathNode("mover",[sr(r.base,e),t]);return i.setAttribute("accent","true"),i},RU=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(r=>"\\"+r).join("|"));Le({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(r,e)=>{var t=fm(e[0]),i=!RU.test(r.funcName),n=!i||r.funcName==="\\widehat"||r.funcName==="\\widetilde"||r.funcName==="\\widecheck";return{type:"accent",mode:r.parser.mode,label:r.funcName,isStretchy:i,isShifty:n,base:t}},htmlBuilder:F4,mathmlBuilder:Cb});Le({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(r,e)=>{var t=e[0],i=r.parser.mode;return i==="math"&&(r.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+r.funcName+" works only in text mode"),i="text"),{type:"accent",mode:i,label:r.funcName,isStretchy:!1,isShifty:!0,base:t}},htmlBuilder:F4,mathmlBuilder:Cb});Le({type:"accentUnder",names:["\\underleftarrow","\\un
|
||
|
|
]`,cH="\\\\[a-zA-Z@]+",uH="\\\\[^\uD800-\uDFFF]",dH="("+cH+")"+Zb+"*",fH=`\\\\(
|
||
|
|
|[ \r ]+
|
||
|
|
?)[ \r ]*`,A4="[\u0300-\u036F]",mH=new RegExp(A4+"+$"),pH="("+Zb+"+)|"+(fH+"|")+"([!-\\[\\]-\u2027\u202A-\uD7FF\uF900-\uFFFF]"+(A4+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(A4+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+dH)+("|"+uH+")"),mm=class{constructor(e,t){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=t,this.tokenRegex=new RegExp(pH,"g"),this.catcodes={"%":14,"~":13}}setCatcode(e,t){this.catcodes[e]=t}lex(){var e=this.input,t=this.tokenRegex.lastIndex;if(t===e.length)return new fn("EOF",new ji(this,t,t));var i=this.tokenRegex.exec(e);if(i===null||i.index!==t)throw new Me("Unexpected character: '"+e[t]+"'",new fn(e[t],new ji(this,t,t+1)));var n=i[6]||i[3]||(i[2]?"\\ ":" ");if(this.catcodes[n]===14){var s=e.indexOf(`
|
||
|
|
`,this.tokenRegex.lastIndex);return s===-1?(this.tokenRegex.lastIndex=e.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=s+1,this.lex()}return new fn(n,new ji(this,t,this.tokenRegex.lastIndex))}},E4=class{constructor(e,t){e===void 0&&(e={}),t===void 0&&(t={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=t,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new Me("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var e=this.undefStack.pop();for(var t in e)e.hasOwnProperty(t)&&(e[t]==null?delete this.current[t]:this.current[t]=e[t])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(e){return this.current.hasOwnProperty(e)||this.builtins.hasOwnProperty(e)}get(e){return this.current.hasOwnProperty(e)?this.current[e]:this.builtins[e]}set(e,t,i){if(i===void 0&&(i=!1),i){for(var n=0;n<this.undefStack.length;n++)delete this.undefStack[n][e];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][e]=t)}else{var s=this.undefStack[this.undefStack.length-1];s&&!s.hasOwnProperty(e)&&(s[e]=this.current[e])}t==null?delete this.current[e]:this.current[e]=t}},gH=qb;q("\\noexpand",function(r){var e=r.popToken();return r.isExpandable(e.text)&&(e.noexpand=!0,e.treatAsRelax=!0),{tokens:[e],numArgs:0}});q("\\expandafter",function(r){var e=r.popToken();return r.expandOnce(!0),{tokens:[e],numArgs:0}});q("\\@firstoftwo",function(r){var e=r.consumeArgs(2);return{tokens:e[0],numArgs:0}});q("\\@secondoftwo",function(r){var e=r.consumeArgs(2);return{tokens:e[1],numArgs:0}});q("\\@ifnextchar",function(r){var e=r.consumeArgs(3);r.consumeSpaces();var t=r.future();return e[0].length===1&&e[0][0].text===t.text?{tokens:e[1],numArgs:0}:{tokens:e[2],numArgs:0}});q("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");q("\\TextOrMath",function(r){var e=r.consumeArgs(2);return r.mode==="text"?{tokens:e[0],numArgs:0}:{tokens:e[1],numArgs:0}});var nb={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};q("\\char",function(r){var e=r.popToken(),t,i="";if(e.text==="'")t=8,e=r.popToken();else if(e.text==='"')t=16,e=r.popToken();else if(e.text==="`")if(e=r.popToken(),e.text[0]==="\\")i=e.text.charCodeAt(1);else{if(e.text==="EOF")throw new Me("\\char` missing argument");i=e.text.charCodeAt(0)}else t=10;if(t){if(i=nb[e.text],i==null||i>=t)throw new Me("Invalid base-"+t+" digit "+e.text);for(var n;(n=nb[r.future().text])!=null&&n<t;)i*=t,i+=n,r.popToken()}return"\\@char{"+i+"}"});var _4=(r,e,t,i)=>{var n=r.consumeArg().tokens;if(n.length!==1)throw new Me("\\newcommand's first argument must be a macro name");var s=n[0].text,a=r.isDefined(s);if(a&&!e)throw new Me("\\newcommand{"+s+"} attempting to redefine "+(s+"; use \\renewcommand"));if(!a&&!t)throw new Me("\\renewcommand{"+s+"} when command "+s+" does not yet exist; use \\newcommand");var o=0;if(n=r.consumeArg().tokens,n.length===1&&n[0].text==="["){for(var l="",h=r.expandNextToken();h.text!=="]"&&h.text!=="EOF";)l+=h.text,h=r.expandNextToken();if(!l.match(/^\s*[0-9]+\s*$/))throw new Me("Invalid number of arguments: "+l);o=parseInt(l),n=r.consumeArg().tokens}return a&&i||r.macros.set(s,{tokens:n,numArgs:o}),""};q("\\newcommand",r=>_4(r,!1,!0,!1));q("\\renewcommand",r=>_4(r,!0,!1,!1));q("\\providecommand",r=>_4(r,!0,!0,!0));q("\\message",r=>{var e=r.consumeArgs(1)[0];return console.log(e.reverse().map(t=>t.text).join("")),""});q("\\errmessage",r=>{var e=r.consumeArgs(1)[0];return console.error(e.reverse().map(t=>t.text).join("")),""});q("\\show",r=>{var e=r.popToken(),t=e.text;return console.log(e,r.macros.get(t),bo[t],cr.math[t],cr.text[t]),""});q("\\bgroup","{");q("\\egroup","}");q("~","\\nobreakspace");q("\\lq","`");q("\\rq","'");q("\\aa","\\r a");q("\\AA","\\r A");q("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`\xA9}");q("\\copyright","\\TextOrMath{
|
||
|
|
please report what input caused this bug`);return i=i.slice(1,-1),{type:"verb",mode:"text",body:i,star:n}}ob.hasOwnProperty(t[0])&&!cr[this.mode][t[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+t[0]+'" used in math mode',e),t=ob[t[0]]+t.slice(1));var s=mH.exec(t);s&&(t=t.substring(0,s.index),t==="i"?t="\u0131":t==="j"&&(t="\u0237"));var a;if(cr[this.mode][t]){this.settings.strict&&this.mode==="math"&&g4.indexOf(t)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+t[0]+'" used in math mode',e);var o=cr[this.mode][t].group,l=ji.range(e),h;if(oU.hasOwnProperty(o)){var c=o;h={type:"atom",mode:this.mode,family:c,loc:l,text:t}}else h={type:o,mode:this.mode,loc:l,text:t};a=h}else if(t.charCodeAt(0)>=128)this.settings.strict&&(hb(t.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+t[0]+'" used in math mode',e):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+t[0]+'"'+(" ("+t.charCodeAt(0)+")"),e)),a={type:"textord",mode:"text",loc:ji.range(e),text:t};else return null;if(this.consume(),s)for(var u=0;u<s[0].length;u++){var d=s[0][u];if(!d4[d])throw new Me("Unknown accent ' "+d+"'",e);var f=d4[d][this.mode]||d4[d].text;if(!f)throw new Me("Accent "+d+" unsupported in "+this.mode+" mode",e);a={type:"accent",mode:this.mode,loc:ji.range(e),label:f,isStretchy:!1,isShifty:!0,base:a}}return a}};uh.endOfExpression=["}","\\endgroup","\\end","\\right","&"];var U4=function(e,t){if(!(typeof e=="string"||e instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var i=new uh(e,t);delete i.gullet.macros.current["\\df@tag"];var n=i.parse();if(delete i.gullet.macros.current["\\current@color"],delete i.gullet.macros.current["\\color"],i.gullet.macros.get("\\df@tag")){if(!t.displayMode)throw new Me("\\tag works only in display equations");n=[{type:"tag",mode:"text",body:n,tag:i.subparse([new fn("\\df@tag")])}]}return n},tw=function(e,t,i){t.textContent="";var n=H4(e,i).toNode();t.appendChild(n)};typeof document!="undefined"&&document.compatMode!=="CSS1Compat"&&(typeof console!="undefined"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),tw=function(){throw new Me("KaTeX doesn't work in quirks mode.")});var vH=function(e,t){var i=H4(e,t).toMarkup();return i},yH=function(e,t){var i=new Pu(t);return U4(e,i)},rw=function(e,t,i){if(i.throwOnError||!(e instanceof Me))throw e;var n=he.makeSpan(["katex-error"],[new mn(t)]);return n.setAttribute("title",e.toString()),n.setAttribute("style","color:"+i.errorColor),n},H4=function(e,t){var i=new Pu(t);try{var n=U4(e,i);return DU(n,e,i)}catch(s){return rw(s,e,i)}},xH=function(e,t){var i=new Pu(t);try{var n=U4(e,i);return NU(n,e,i)}catch(s){return rw(s,e,i)}},bH="0.16.22",wH={Span:ql,Anchor:qu,SymbolNode:mn,SvgNode:Es,PathNode:Hs,LineNode:Uu},wm={version:bH,render:tw,renderToString:vH,ParseError:Me,SETTINGS_SCHEMA:om,__parse:yH,__renderToDomTree:H4,__renderToHTMLTree:xH,__setFontMetrics:eU,__defineSymbol:w,__defineFunction:Le,__defineMacro:q,__domTree:wH};var AH=typeof global=="object"&&global&&global.Object===Object&&global,Am=AH;var EH=typeof self=="object"&&self&&self.Object===Object&&self,CH=Am||EH||Function("return this")(),Yr=CH;var SH=Yr.Symbol,Jn=SH;var iw=Object.prototype,TH=iw.hasOwnProperty,MH=iw.toString,Gu=Jn?Jn.toStringTag:void 0;function kH(r){var e=TH.call(r,Gu),t=r[Gu];try{r[Gu]=void 0;var i=!0}catch(s){}var n=MH.call(r);return i&&(e?r[Gu]=t:delete r[Gu]),n}var nw=kH;var DH=Object.prototype,NH=DH.toString;function FH(r){return NH.call(r)}var sw=FH;var IH="[object Null]",zH="[object Undefined]",aw=Jn?Jn.toStringTag:void 0;function LH(r){return r==null?r===void 0?zH:IH:aw&&aw in Object(r)?nw(r):sw(r)}var Cs=LH;function OH(r){return r!=null&&typeof r=="object"}var mi=OH;var BH=Array.isArray,$n=BH;function RH(r){var e=typeof r;return r!=null&&(e=="object"||e=="func
|
||
|
|
`),a=s.shift();a.length>0&&(t<this.length()-1||this.children.tail==null?super.insertAt(Math.min(t,this.length()-1),a):this.children.tail.insertAt(this.children.tail.length(),a),this.cache={});let o=this;s.reduce((l,h)=>(o=o.split(l,!0),o.insertAt(0,h),h.length),t+a.length)}insertBefore(t,i){let{head:n}=this.children;super.insertBefore(t,i),n instanceof Ci&&n.remove(),this.cache={}}length(){return this.cache.length==null&&(this.cache.length=super.length()+JC),this.cache.length}moveChildren(t,i){super.moveChildren(t,i),this.cache={}}optimize(t){super.optimize(t),this.cache={}}path(t){return super.path(t,!0)}removeChild(t){super.removeChild(t),this.cache={}}split(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(i&&(t===0||t>=this.length()-JC)){let s=this.clone();return t===0?(this.parent.insertBefore(s,this),this):(this.parent.insertBefore(s,this.next),s)}let n=super.split(t,i);return this.cache={},n}};ar.blotName="block";ar.tagName="P";ar.defaultChild=Ci;ar.allowedChildren=[Ci,Si,Nr,_r];var ii=class extends Nr{attach(){super.attach(),this.attributes=new Xu(this.domNode)}delta(){return new Ug.default().insert(this.value(),{...this.formats(),...this.attributes.values()})}format(e,t){let i=this.scroll.query(e,ze.BLOCK_ATTRIBUTE);i!=null&&this.attributes.attribute(i,t)}formatAt(e,t,i,n){this.format(i,n)}insertAt(e,t,i){if(i!=null){super.insertAt(e,t,i);return}let n=t.split(`
|
||
|
|
`),s=n.pop(),a=n.map(l=>{let h=this.scroll.create(ar.blotName);return h.insertAt(0,l),h}),o=this.split(e);a.forEach(l=>{this.parent.insertBefore(l,o)}),s&&this.parent.insertBefore(this.scroll.create("text",s),o)}};ii.scope=ze.BLOCK_BLOT;function Hg(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return r.descendants(Kr).reduce((t,i)=>i.length()===0?t:t.insert(i.value(),wn(i,{},e)),new Ug.default).insert(`
|
||
|
|
`,wn(r))}function wn(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return r==null||("formats"in r&&typeof r.formats=="function"&&(e={...e,...r.formats()},t&&delete e["code-token"]),r.parent==null||r.parent.statics.blotName==="scroll"||r.parent.statics.scope!==r.statics.scope)?e:wn(r.parent,e,t)}var Ro=class extends Nr{static value(){}constructor(e,t,i){super(e,t),this.selection=i,this.textNode=document.createTextNode(Ro.CONTENTS),this.domNode.appendChild(this.textNode),this.savedLength=0}detach(){this.parent!=null&&this.parent.removeChild(this)}format(e,t){if(this.savedLength!==0){super.format(e,t);return}let i=this,n=0;for(;i!=null&&i.statics.scope!==ze.BLOCK_BLOT;)n+=i.offset(i.parent),i=i.parent;i!=null&&(this.savedLength=Ro.CONTENTS.length,i.optimize(),i.formatAt(n,Ro.CONTENTS.length,e,t),this.savedLength=0)}index(e,t){return e===this.textNode?0:super.index(e,t)}length(){return this.savedLength}position(){return[this.textNode,this.textNode.data.length]}remove(){super.remove(),this.parent=null}restore(){if(this.selection.composing||this.parent==null)return null;let e=this.selection.getNativeRange();for(;this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);let t=this.prev instanceof _r?this.prev:null,i=t?t.length():0,n=this.next instanceof _r?this.next:null,s=n?n.text:"",{textNode:a}=this,o=a.data.split(Ro.CONTENTS).join("");a.data=Ro.CONTENTS;let l;if(t)l=t,(o||n)&&(t.insertAt(t.length(),o+s),n&&n.remove());else if(n)l=n,n.insertAt(0,o);else{let h=document.createTextNode(o);l=this.scroll.create(h),this.parent.insertBefore(l,this)}if(this.remove(),e){let h=(d,f)=>t&&d===t.domNode?f:d===a?i+f-1:n&&d===n.domNode?i+o.length+f:null,c=h(e.start.node,e.start.offset),u=h(e.end.node,e.end.offset);if(c!==null&&u!==null)return{startNode:l.domNode,startOffset:c,endNode:l.domNode,endOffset:u}}return null}update(e,t){if(e.some(i=>i.type==="characterData"&&i.target===this.textNode)){let i=this.restore();i&&(t.range=i)}}optimize(e){super.optimize(e);let{parent:t}=this;for(;t;){if(t.domNode.tagName==="A"){this.savedLength=Ro.CONTENTS.length,t.isolate(this.offset(t),this.length()).unwrap(),this.savedLength=0;break}t=t.parent}}value(){return""}},e0=Ro;Se(e0,"blotName","cursor"),Se(e0,"className","ql-cursor"),Se(e0,"tagName","span"),Se(e0,"CONTENTS","\uFEFF");var Po=e0;var Gg=mr(eS(),1);var ud=new WeakMap;var Wg=["error","warn","log","info"],Yg="warn";function tS(r){if(Yg&&Wg.indexOf(r)<=Wg.indexOf(Yg)){for(var e=arguments.length,t=new Array(e>1?e-1:0),i=1;i<e;i++)t[i-1]=arguments[i];console[r](...t)}}function Vg(r){return Wg.reduce((e,t)=>(e[t]=tS.bind(console,t,r),e),{})}Vg.level=r=>{Yg=r};tS.level=Vg.level;var zn=Vg;var Kg=zn("quill:events"),wZ=["selectionchange","mousedown","mouseup","click"];wZ.forEach(r=>{document.addEventListener(r,function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];Array.from(document.querySelectorAll(".ql-container")).forEach(n=>{let s=ud.get(n);s&&s.emitter&&s.emitter.handleDOM(...t)})})});var dd=class extends Gg.default{constructor(){super(),this.domListeners={},this.on("error",Kg.error)}emit(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return Kg.log.call(Kg,...t),super.emit(...t)}handleDOM(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];(this.domListeners[e.type]||[]).forEach(s=>{let{node:a,handler:o}=s;(e.target===a||a.contains(e.target))&&o(e,...i)})}listenDOM(e,t,i){this.domListeners[e]||(this.domListeners[e]=[]),this.domListeners[e].push({node:t,handler:i})}};Se(dd,"events",{EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_BLOT_MOUNT:"scroll-blot-mount",SCROLL_BLOT_UNMOUNT:"scroll-blot-unmount",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SCROLL_EMBED_UPDATE:"scroll-embed-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change",COMPOSITION_BEFORE_START:"composition-before-start
|
||
|
|
`)&&(t<=a||!!this.scroll.descendant(ii,a)[0]),this.scroll.insertAt(a,m);let[g,v]=this.scroll.line(a),y=vn({},wn(g));if(g instanceof ar){let[A]=g.descendant(Kr,v);A&&(y=vn(y,wn(A)))}h=Ir.AttributeMap.diff(y,h)||{}}else if(typeof o.insert=="object"){let m=Object.keys(o.insert)[0];if(m==null)return a;let g=this.scroll.query(m,ze.INLINE)!=null;if(g)(t<=a||this.scroll.descendant(ii,a)[0])&&(u=!0);else if(a>0){let[v,y]=this.scroll.descendant(Kr,a-1);v instanceof _r?v.value()[y]!==`
|
||
|
|
`&&(c=!0):v instanceof Nr&&v.statics.scope===ze.INLINE_BLOT&&(c=!0)}if(this.scroll.insertAt(a,m,o.insert[m]),g){let[v]=this.scroll.descendant(Kr,a);if(v){let y=vn({},wn(v));h=Ir.AttributeMap.diff(y,h)||{}}}}t+=l}else if(n.push(o),o.retain!==null&&typeof o.retain=="object"){let m=Object.keys(o.retain)[0];if(m==null)return a;this.scroll.updateEmbedAt(a,m,o.retain[m])}Object.keys(h).forEach(m=>{this.scroll.formatAt(a,l,m,h[m])});let d=c?1:0,f=u?1:0;return t+=d+f,n.retain(d),n.delete(f),a+l+d+f},0),n.reduce((a,o)=>typeof o.delete=="number"?(this.scroll.deleteAt(a,o.delete),a):a+Ir.Op.length(o),0),this.scroll.batchEnd(),this.scroll.optimize(),this.update(i)}deleteText(e,t){return this.scroll.deleteAt(e,t),this.update(new Ir.default().retain(e).delete(t))}formatLine(e,t){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.scroll.update(),Object.keys(i).forEach(s=>{this.scroll.lines(e,Math.max(t,1)).forEach(a=>{a.format(s,i[s])})}),this.scroll.optimize();let n=new Ir.default().retain(e).retain(t,Qs(i));return this.update(n)}formatText(e,t){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.keys(i).forEach(s=>{this.scroll.formatAt(e,t,s,i[s])});let n=new Ir.default().retain(e).retain(t,Qs(i));return this.update(n)}getContents(e,t){return this.delta.slice(e,e+t)}getDelta(){return this.scroll.lines().reduce((e,t)=>e.concat(t.delta()),new Ir.default)}getFormat(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=[],n=[];t===0?this.scroll.path(e).forEach(o=>{let[l]=o;l instanceof ar?i.push(l):l instanceof Kr&&n.push(l)}):(i=this.scroll.lines(e,t),n=this.scroll.descendants(Kr,e,t));let[s,a]=[i,n].map(o=>{let l=o.shift();if(l==null)return{};let h=wn(l);for(;Object.keys(h).length>0;){let c=o.shift();if(c==null)return h;h=EZ(wn(c),h)}return h});return{...s,...a}}getHTML(e,t){let[i,n]=this.scroll.line(e);if(i){let s=i.length();return i.length()>=n+t&&!(n===0&&t===s)?fd(i,n,t,!0):fd(this.scroll,e,t,!0)}return""}getText(e,t){return this.getContents(e,t).filter(i=>typeof i.insert=="string").map(i=>i.insert).join("")}insertContents(e,t){let i=iS(t),n=new Ir.default().retain(e).concat(i);return this.scroll.insertContents(e,i),this.update(n)}insertEmbed(e,t,i){return this.scroll.insertAt(e,t,i),this.update(new Ir.default().retain(e).insert({[t]:i}))}insertText(e,t){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return t=t.replace(/\r\n/g,`
|
||
|
|
`).replace(/\r/g,`
|
||
|
|
`),this.scroll.insertAt(e,t),Object.keys(i).forEach(n=>{this.scroll.formatAt(e,t.length,n,i[n])}),this.update(new Ir.default().retain(e).insert(t,Qs(i)))}isBlank(){if(this.scroll.children.length===0)return!0;if(this.scroll.children.length>1)return!1;let e=this.scroll.children.head;if((e==null?void 0:e.statics.blotName)!==ar.blotName)return!1;let t=e;return t.children.length>1?!1:t.children.head instanceof Ci}removeFormat(e,t){let i=this.getText(e,t),[n,s]=this.scroll.line(e+t),a=0,o=new Ir.default;n!=null&&(a=n.length()-s,o=n.delta().slice(s,s+a-1).insert(`
|
||
|
|
`));let h=this.getContents(e,t+a).diff(new Ir.default().insert(i).concat(o)),c=new Ir.default().retain(e).concat(h);return this.applyDelta(c)}update(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,n=this.delta;if(t.length===1&&t[0].type==="characterData"&&t[0].target.data.match(AZ)&&this.scroll.find(t[0].target)){let s=this.scroll.find(t[0].target),a=wn(s),o=s.offset(this.scroll),l=t[0].oldValue.replace(Po.CONTENTS,""),h=new Ir.default().insert(l),c=new Ir.default().insert(s.value()),u=i&&{oldRange:nS(i.oldRange,-o),newRange:nS(i.newRange,-o)};e=new Ir.default().retain(o).concat(h.diff(c,u)).reduce((f,m)=>m.insert?f.insert(m.insert,a):f.push(m),new Ir.default),this.delta=n.compose(e)}else this.delta=this.getDelta(),(!e||!jl(n.compose(e),this.delta))&&(e=n.diff(this.delta,i));return e}};function Hh(r,e,t){if(r.length===0){let[f]=Jg(t.pop());return e<=0?`</li></${f}>`:`</li></${f}>${Hh([],e-1,t)}`}let[{child:i,offset:n,length:s,indent:a,type:o},...l]=r,[h,c]=Jg(o);if(a>e)return t.push(o),a===e+1?`<${h}><li${c}>${fd(i,n,s)}${Hh(l,a,t)}`:`<${h}><li>${Hh(r,e+1,t)}`;let u=t[t.length-1];if(a===e&&o===u)return`</li><li${c}>${fd(i,n,s)}${Hh(l,a,t)}`;let[d]=Jg(t.pop());return`</li></${d}>${Hh(r,e-1,t)}`}function fd(r,e,t){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if("html"in r&&typeof r.html=="function")return r.html(e,t);if(r instanceof _r)return $l(r.value().slice(e,e+t)).replaceAll(" "," ");if(r instanceof yn){if(r.statics.blotName==="list-container"){let h=[];return r.children.forEachAt(e,t,(c,u,d)=>{let f="formats"in c&&typeof c.formats=="function"?c.formats():{};h.push({child:c,offset:u,length:d,indent:f.indent||0,type:f.list})}),Hh(h,-1,[])}let n=[];if(r.children.forEachAt(e,t,(h,c,u)=>{n.push(fd(h,c,u))}),i||r.statics.blotName==="list")return n.join("");let{outerHTML:s,innerHTML:a}=r.domNode,[o,l]=s.split(`>${a}<`);return o==="<table"?`<table style="border: 1px solid #000;">${n.join("")}<${l}`:`${o}>${n.join("")}<${l}`}return r.domNode instanceof Element?r.domNode.outerHTML:""}function EZ(r,e){return Object.keys(e).reduce((t,i)=>{if(r[i]==null)return t;let n=e[i];return n===r[i]?t[i]=n:Array.isArray(n)?n.indexOf(r[i])<0?t[i]=n.concat([r[i]]):t[i]=n:t[i]=[n,r[i]],t},{})}function Jg(r){let e=r==="ordered"?"ol":"ul";switch(r){case"checked":return[e,' data-list="checked"'];case"unchecked":return[e,' data-list="unchecked"'];default:return[e,""]}}function iS(r){return r.reduce((e,t)=>{if(typeof t.insert=="string"){let i=t.insert.replace(/\r\n/g,`
|
||
|
|
`).replace(/\r/g,`
|
||
|
|
`);return e.insert(i,t.attributes)}return e.push(t)},new Ir.default)}function nS(r,e){let{index:t,length:i}=r;return new Xi(t+e,i)}function CZ(r){let e=[];return r.forEach(t=>{typeof t.insert=="string"?t.insert.split(`
|
||
|
|
`).forEach((n,s)=>{s&&e.push({insert:`
|
||
|
|
`,attributes:t.attributes}),n&&e.push({insert:n,attributes:t.attributes})}):e.push(t)}),e}var sS=$g;var y3=class{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.quill=e,this.options=t}};Se(y3,"DEFAULTS",{});var zr=y3;var x3="\uFEFF",e5=class extends Nr{constructor(e,t){super(e,t),this.contentNode=document.createElement("span"),this.contentNode.setAttribute("contenteditable","false"),Array.from(this.domNode.childNodes).forEach(i=>{this.contentNode.appendChild(i)}),this.leftGuard=document.createTextNode(x3),this.rightGuard=document.createTextNode(x3),this.domNode.appendChild(this.leftGuard),this.domNode.appendChild(this.contentNode),this.domNode.appendChild(this.rightGuard)}index(e,t){return e===this.leftGuard?0:e===this.rightGuard?1:super.index(e,t)}restore(e){let t=null,i,n=e.data.split(x3).join("");if(e===this.leftGuard)if(this.prev instanceof _r){let s=this.prev.length();this.prev.insertAt(s,n),t={startNode:this.prev.domNode,startOffset:s+n.length}}else i=document.createTextNode(n),this.parent.insertBefore(this.scroll.create(i),this),t={startNode:i,startOffset:n.length};else e===this.rightGuard&&(this.next instanceof _r?(this.next.insertAt(0,n),t={startNode:this.next.domNode,startOffset:n.length}):(i=document.createTextNode(n),this.parent.insertBefore(this.scroll.create(i),this.next),t={startNode:i,startOffset:n.length}));return e.data=x3,t}update(e,t){e.forEach(i=>{if(i.type==="characterData"&&(i.target===this.leftGuard||i.target===this.rightGuard)){let n=this.restore(i.target);n&&(t.range=n)}})}},jh=e5;var t5=class{constructor(e,t){Se(this,"isComposing",!1);this.scroll=e,this.emitter=t,this.setupListeners()}setupListeners(){this.scroll.domNode.addEventListener("compositionstart",e=>{this.isComposing||this.handleCompositionStart(e)}),this.scroll.domNode.addEventListener("compositionend",e=>{this.isComposing&&queueMicrotask(()=>{this.handleCompositionEnd(e)})})}handleCompositionStart(e){let t=e.target instanceof Node?this.scroll.find(e.target,!0):null;t&&!(t instanceof jh)&&(this.emitter.emit(Oe.events.COMPOSITION_BEFORE_START,e),this.scroll.batchStart(),this.emitter.emit(Oe.events.COMPOSITION_START,e),this.isComposing=!0)}handleCompositionEnd(e){this.emitter.emit(Oe.events.COMPOSITION_BEFORE_END,e),this.scroll.batchEnd(),this.emitter.emit(Oe.events.COMPOSITION_END,e),this.isComposing=!1}},aS=t5;var r5=class{constructor(e,t){Se(this,"modules",{});this.quill=e,this.options=t}init(){Object.keys(this.options.modules).forEach(e=>{this.modules[e]==null&&this.addModule(e)})}addModule(e){let t=this.quill.constructor.import(`modules/${e}`);return this.modules[e]=new t(this.quill,this.options.modules[e]||{}),this.modules[e]}},md=r5;Se(md,"DEFAULTS",{modules:{}}),Se(md,"themes",{default:r5});var Gh=md;var SZ=r=>r.parentElement||r.getRootNode().host||null,TZ=r=>{let e=r.getBoundingClientRect(),t="offsetWidth"in r&&Math.abs(e.width)/r.offsetWidth||1,i="offsetHeight"in r&&Math.abs(e.height)/r.offsetHeight||1;return{top:e.top,right:e.left+r.clientWidth*t,bottom:e.top+r.clientHeight*i,left:e.left}},b3=r=>{let e=parseInt(r,10);return Number.isNaN(e)?0:e},oS=(r,e,t,i,n,s)=>r<t&&e>i?0:r<t?-(t-r+n):e>i?e-r>i-t?r+n-t:e-i+s:0,MZ=(r,e)=>{var s,a,o,l,h;let t=r.ownerDocument,i=e,n=r;for(;n;){let c=n===t.body,u=c?{top:0,right:(a=(s=window.visualViewport)==null?void 0:s.width)!=null?a:t.documentElement.clientWidth,bottom:(l=(o=window.visualViewport)==null?void 0:o.height)!=null?l:t.documentElement.clientHeight,left:0}:TZ(n),d=getComputedStyle(n),f=oS(i.left,i.right,u.left,u.right,b3(d.scrollPaddingLeft),b3(d.scrollPaddingRight)),m=oS(i.top,i.bottom,u.top,u.bottom,b3(d.scrollPaddingTop),b3(d.scrollPaddingBottom));if(f||m)if(c)(h=t.defaultView)==null||h.scrollBy(f,m);else{let{scrollLeft:g,scrollTop:v}=n;m&&(n.scrollTop+=m),f&&(n.scrollLeft+=f);let y=n.scrollLeft-g,A=n.scrollTop-v;i={left:i.left-y,top:i.top-A,right:i.right-y,bottom:i.bottom-A}}n=c||d.position==="fixed"?null:SZ(n)}},lS=MZ;var kZ=100,DZ=["block","break","cursor","inline","scroll","text"],NZ=(r,e,t)=>{let i=new Io;return DZ.forEach(n=>{let s=e.que
|
||
|
|
`});this.setContents(a)}this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable(),this.allowReadOnlyEdits=!1}addContainer(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof e=="string"){let i=e;e=document.createElement("div"),e.classList.add(i)}return this.container.insertBefore(e,t),e}blur(){this.selection.setRange(null)}deleteText(e,t,i){return[e,t,,i]=Ga(e,t,i),Ss.call(this,()=>this.editor.deleteText(e,t),i,e,-1*t)}disable(){this.enable(!1)}editReadOnly(e){this.allowReadOnlyEdits=!0;let t=e();return this.allowReadOnlyEdits=!1,t}enable(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.scroll.enable(e),this.container.classList.toggle("ql-disabled",!e)}focus(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.selection.focus(),e.preventScroll||this.scrollSelectionIntoView()}format(e,t){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Oe.sources.API;return Ss.call(this,()=>{let n=this.getSelection(!0),s=new _o.default;if(n==null)return s;if(this.scroll.query(e,ze.BLOCK))s=this.editor.formatLine(n.index,n.length,{[e]:t});else{if(n.length===0)return this.selection.format(e,t),s;s=this.editor.formatText(n.index,n.length,{[e]:t})}return this.setSelection(n,Oe.sources.SILENT),s},i)}formatLine(e,t,i,n,s){let a;return[e,t,a,s]=Ga(e,t,i,n,s),Ss.call(this,()=>this.editor.formatLine(e,t,a),s,e,0)}formatText(e,t,i,n,s){let a;return[e,t,a,s]=Ga(e,t,i,n,s),Ss.call(this,()=>this.editor.formatText(e,t,a),s,e,0)}getBounds(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=null;if(typeof e=="number"?i=this.selection.getBounds(e,t):i=this.selection.getBounds(e.index,e.length),!i)return null;let n=this.container.getBoundingClientRect();return{bottom:i.bottom-n.top,height:i.height,left:i.left-n.left,right:i.right-n.left,top:i.top-n.top,width:i.width}}getContents(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-e;return[e,t]=Ga(e,t),this.editor.getContents(e,t)}getFormat(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getSelection(!0),t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof e=="number"?this.editor.getFormat(e,t):this.editor.getFormat(e.index,e.length)}getIndex(e){return e.offset(this.scroll)}getLength(){return this.scroll.length()}getLeaf(e){return this.scroll.leaf(e)}getLine(e){return this.scroll.line(e)}getLines(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;return typeof e!="number"?this.scroll.lines(e.index,e.length):this.scroll.lines(e,t)}getModule(e){return this.theme.modules[e]}getSelection(){return(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1)&&this.focus(),this.update(),this.selection.getRange()[0]}getSemanticHTML(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;return typeof e=="number"&&(t=t!=null?t:this.getLength()-e),[e,t]=Ga(e,t),this.editor.getHTML(e,t)}getText(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;return typeof e=="number"&&(t=t!=null?t:this.getLength()-e),[e,t]=Ga(e,t),this.editor.getText(e,t)}hasFocus(){return this.selection.hasFocus()}insertEmbed(e,t,i){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Wh.sources.API;return Ss.call(this,()=>this.editor.insertEmbed(e,t,i),n,e)}insertText(e,t,i,n,s){let a;return[e,,a,s]=Ga(e,0,i,n,s),Ss.call(this,()=>this.editor.insertText(e,t,a),s,e,t.length)}isEnabled(){return this.scroll.isEnabled()}off(){return this.emitter.off(...arguments)}on(){return this.emitter.on(...arguments)}once(){return this.emitter.once(...arguments)}removeFormat(e,t,i){return[e,t,,i]=Ga(e,t,i),Ss.call(this,()=>this.editor.removeFormat(e,t),i,e)}scrollRectIntoView(e){lS(this.root,e)}scrollIntoView(){console.warn("Quill#scrollIntoView() has been
|
||
|
|
`)?n.insertAt(0,t.slice(0,-1),i):n.insertAt(0,t,i)}else{let n=this.scroll.create(t,i);this.appendChild(n)}else super.insertAt(e,t,i);this.optimize()}insertBefore(e,t){if(e.statics.scope===ze.INLINE_BLOT){let i=this.scroll.create(this.statics.defaultChild.blotName);i.appendChild(e),super.insertBefore(i,t)}else super.insertBefore(e,t)}insertContents(e,t){let i=this.deltaToRenderBlocks(t.concat(new rs.default().insert(`
|
||
|
|
`))),n=i.pop();if(n==null)return;this.batchStart();let s=i.shift();if(s){let l=s.type==="block"&&(s.delta.length()===0||!this.descendant(ii,e)[0]&&e<this.length()),h=s.type==="block"?s.delta:new rs.default().insert({[s.key]:s.value});s5(this,e,h);let c=s.type==="block"?1:0,u=e+h.length()+c;l&&this.insertAt(u-1,`
|
||
|
|
`);let d=wn(this.line(e)[0]),f=rs.AttributeMap.diff(d,s.attributes)||{};Object.keys(f).forEach(m=>{this.formatAt(u-1,1,m,f[m])}),e=u}let[a,o]=this.children.find(e);if(i.length&&(a&&(a=a.split(o),o=0),i.forEach(l=>{if(l.type==="block"){let h=this.createBlock(l.attributes,a||void 0);s5(h,0,l.delta)}else{let h=this.create(l.key,l.value);this.insertBefore(h,a||void 0),Object.keys(l.attributes).forEach(c=>{h.format(c,l.attributes[c])})}})),n.type==="block"&&n.delta.length()){let l=a?a.offset(a.scroll)+o:this.length();s5(this,l,n.delta)}this.batchEnd(),this.optimize()}isEnabled(){return this.domNode.getAttribute("contenteditable")==="true"}leaf(e){let t=this.path(e).pop();if(!t)return[null,-1];let[i,n]=t;return i instanceof Kr?[i,n]:[null,-1]}line(e){return e===this.length()?this.line(e-1):this.descendant(fS,e)}lines(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE,i=(n,s,a)=>{let o=[],l=a;return n.children.forEachAt(s,a,(h,c,u)=>{fS(h)?o.push(h):h instanceof zh&&(o=o.concat(i(h,c,l))),l-=u}),o};return i(this,e,t)}optimize(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch||(super.optimize(e,t),e.length>0&&this.emitter.emit(Oe.events.SCROLL_OPTIMIZE,e,t))}path(e){return super.path(e).slice(1)}remove(){}update(e){if(this.batch){Array.isArray(e)&&(this.batch=this.batch.concat(e));return}let t=Oe.sources.USER;typeof e=="string"&&(t=e),Array.isArray(e)||(e=this.observer.takeRecords()),e=e.filter(i=>{let{target:n}=i,s=this.find(n,!0);return s&&!mS(s)}),e.length>0&&this.emitter.emit(Oe.events.SCROLL_BEFORE_UPDATE,t,e),super.update(e.concat([])),e.length>0&&this.emitter.emit(Oe.events.SCROLL_UPDATE,t,e)}updateEmbedAt(e,t,i){let[n]=this.descendant(s=>s instanceof ii,e);n&&n.statics.blotName===t&&mS(n)&&n.updateContent(i)}handleDragStart(e){e.preventDefault()}deltaToRenderBlocks(e){let t=[],i=new rs.default;return e.forEach(n=>{var a;let s=n==null?void 0:n.insert;if(s)if(typeof s=="string"){let o=s.split(`
|
||
|
|
`);o.slice(0,-1).forEach(h=>{var c;i.insert(h,n.attributes),t.push({type:"block",delta:i,attributes:(c=n.attributes)!=null?c:{}}),i=new rs.default});let l=o[o.length-1];l&&i.insert(l,n.attributes)}else{let o=Object.keys(s)[0];if(!o)return;this.query(o,ze.INLINE)?i.push(n):(i.length()&&t.push({type:"block",delta:i,attributes:{}}),i=new rs.default,t.push({type:"blockEmbed",key:o,value:s[o],attributes:(a=n.attributes)!=null?a:{}}))}}),i.length()&&t.push({type:"block",delta:i,attributes:{}}),t}createBlock(e,t){let i,n={};Object.entries(e).forEach(o=>{let[l,h]=o;this.query(l,ze.BLOCK&ze.BLOT)!=null?i=l:n[l]=h});let s=this.create(i||this.statics.defaultChild.blotName,i?e[i]:void 0);this.insertBefore(s,t||void 0);let a=s.length();return Object.entries(n).forEach(o=>{let[l,h]=o;s.formatAt(0,a,l,h)}),s}};Se(qo,"blotName","scroll"),Se(qo,"className","ql-editor"),Se(qo,"tagName","DIV"),Se(qo,"defaultChild",ar),Se(qo,"allowedChildren",[ar,ii,ts]);function s5(r,e,t){t.reduce((i,n)=>{let s=rs.Op.length(n),a=n.attributes||{};if(n.insert!=null){if(typeof n.insert=="string"){let o=n.insert;r.insertAt(i,o);let[l]=r.descendant(Kr,i),h=wn(l);a=rs.AttributeMap.diff(h,a)||{}}else if(typeof n.insert=="object"){let o=Object.keys(n.insert)[0];if(o==null)return i;if(r.insertAt(i,o,n.insert[o]),r.scroll.query(o,ze.INLINE)!=null){let[h]=r.descendant(Kr,i),c=wn(h);a=rs.AttributeMap.diff(c,a)||{}}}}return Object.keys(a).forEach(o=>{r.formatAt(i,s,o,a[o])}),i+s},e)}var pS=qo;var An=mr(bn(),1);var a5={scope:ze.BLOCK,whitelist:["right","center","justify"]},gS=new Vi("align","align",a5),o5=new Vr("align","ql-align",a5),A3=new xn("align","text-align",a5);var pd=class extends xn{value(e){let t=super.value(e);return t.startsWith("rgb(")?(t=t.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),`#${t.split(",").map(n=>`00${parseInt(n,10).toString(16)}`.slice(-2)).join("")}`):t}},vS=new Vr("color","ql-color",{scope:ze.INLINE}),gd=new pd("color","color",{scope:ze.INLINE});var yS=new Vr("background","ql-bg",{scope:ze.INLINE}),vd=new pd("background","background-color",{scope:ze.INLINE});var Zs=class extends ts{static create(e){let t=super.create(e);return t.setAttribute("spellcheck","false"),t}code(e,t){return this.children.map(i=>i.length()<=1?"":i.domNode.innerText).join(`
|
||
|
|
`).slice(e,e+t)}html(e,t){return`<pre>
|
||
|
|
${$l(this.code(e,t))}
|
||
|
|
</pre>`}},qr=class extends ar{static register(){ge.register(Zs)}};Se(qr,"TAB"," ");var Vh=class extends Si{};Vh.blotName="code";Vh.tagName="CODE";qr.blotName="code-block";qr.className="ql-code-block";qr.tagName="DIV";Zs.blotName="code-block-container";Zs.className="ql-code-block-container";Zs.tagName="DIV";Zs.allowedChildren=[qr];qr.allowedChildren=[_r,Ci,Po];qr.requiredContainer=Zs;var l5={scope:ze.BLOCK,whitelist:["rtl"]},E3=new Vi("direction","dir",l5),h5=new Vr("direction","ql-direction",l5),C3=new xn("direction","direction",l5);var xS={scope:ze.INLINE,whitelist:["serif","monospace"]},u5=new Vr("font","ql-font",xS),c5=class extends xn{value(e){return super.value(e).replace(/["']/g,"")}},S3=new c5("font","font-family",xS);var d5=new Vr("size","ql-size",{scope:ze.INLINE,whitelist:["small","large","huge"]}),T3=new xn("size","font-size",{scope:ze.INLINE,whitelist:["10px","18px","32px"]});var Mi=mr(bn(),1);var IZ=zn("quill:keyboard"),zZ=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",t0=class extends zr{static match(e,t){return["altKey","ctrlKey","metaKey","shiftKey"].some(i=>!!t[i]!==e[i]&&t[i]!==null)?!1:t.key===e.key||t.key===e.which}constructor(e,t){super(e,t),this.bindings={},Object.keys(this.options.bindings).forEach(i=>{this.options.bindings[i]&&this.addBinding(this.options.bindings[i])}),this.addBinding({key:"Enter",shiftKey:null},this.handleEnter),this.addBinding({key:"Enter",metaKey:null,ctrlKey:null,altKey:null},()=>{}),/Firefox/i.test(navigator.userAgent)?(this.addBinding({key:"Backspace"},{collapsed:!0},this.handleBackspace),this.addBinding({key:"Delete"},{collapsed:!0},this.handleDelete)):(this.addBinding({key:"Backspace"},{collapsed:!0,prefix:/^.?$/},this.handleBackspace),this.addBinding({key:"Delete"},{collapsed:!0,suffix:/^.?$/},this.handleDelete)),this.addBinding({key:"Backspace"},{collapsed:!1},this.handleDeleteRange),this.addBinding({key:"Delete"},{collapsed:!1},this.handleDeleteRange),this.addBinding({key:"Backspace",altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},this.handleBackspace),this.listen()}addBinding(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=OZ(e);if(n==null){IZ.warn("Attempted to add invalid keyboard binding",n);return}typeof t=="function"&&(t={handler:t}),typeof i=="function"&&(i={handler:i}),(Array.isArray(n.key)?n.key:[n.key]).forEach(a=>{let o={...n,key:a,...t,...i};this.bindings[o.key]=this.bindings[o.key]||[],this.bindings[o.key].push(o)})}listen(){this.quill.root.addEventListener("keydown",e=>{if(e.defaultPrevented||e.isComposing||e.keyCode===229&&(e.key==="Enter"||e.key==="Backspace"))return;let n=(this.bindings[e.key]||[]).concat(this.bindings[e.which]||[]).filter(y=>t0.match(e,y));if(n.length===0)return;let s=ge.find(e.target,!0);if(s&&s.scroll!==this.quill.scroll)return;let a=this.quill.getSelection();if(a==null||!this.quill.hasFocus())return;let[o,l]=this.quill.getLine(a.index),[h,c]=this.quill.getLeaf(a.index),[u,d]=a.length===0?[h,c]:this.quill.getLeaf(a.index+a.length),f=h instanceof Lh?h.value().slice(0,c):"",m=u instanceof Lh?u.value().slice(d):"",g={collapsed:a.length===0,empty:a.length===0&&o.length()<=1,format:this.quill.getFormat(a),line:o,offset:l,prefix:f,suffix:m,event:e};n.some(y=>{if(y.collapsed!=null&&y.collapsed!==g.collapsed||y.empty!=null&&y.empty!==g.empty||y.offset!=null&&y.offset!==g.offset)return!1;if(Array.isArray(y.format)){if(y.format.every(A=>g.format[A]==null))return!1}else if(typeof y.format=="object"&&!Object.keys(y.format).every(A=>y.format[A]===!0?g.format[A]!=null:y.format[A]===!1?g.format[A]==null:jl(y.format[A],g.format[A])))return!1;return y.prefix!=null&&!y.prefix.test(g.prefix)||y.suffix!=null&&!y.suffix.test(g.suffix)?!1:y.handler.call(this,a,g,y)!==!0})&&e.preventDefault()})}handleBackspace(e,t){let i=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(t.prefix)?2:1;if(e.index===0||this.quill.getLength()<=1)return;let n={},[s]=this.quill.getLine(e.index),a=new Mi.default().retain(e.index-i).delete(i);if(t.offset===0){let[o]=this.quil
|
||
|
|
`,i);this.quill.updateContents(n,ge.sources.USER),this.quill.setSelection(e.index+1,ge.sources.SILENT),this.quill.focus()}},LZ={bindings:{bold:f5("bold"),italic:f5("italic"),underline:f5("underline"),indent:{key:"Tab",format:["blockquote","indent","list"],handler(r,e){return e.collapsed&&e.offset!==0?!0:(this.quill.format("indent","+1",ge.sources.USER),!1)}},outdent:{key:"Tab",shiftKey:!0,format:["blockquote","indent","list"],handler(r,e){return e.collapsed&&e.offset!==0?!0:(this.quill.format("indent","-1",ge.sources.USER),!1)}},"outdent backspace":{key:"Backspace",collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler(r,e){e.format.indent!=null?this.quill.format("indent","-1",ge.sources.USER):e.format.list!=null&&this.quill.format("list",!1,ge.sources.USER)}},"indent code-block":bS(!0),"outdent code-block":bS(!1),"remove tab":{key:"Tab",shiftKey:!0,collapsed:!0,prefix:/\t$/,handler(r){this.quill.deleteText(r.index-1,1,ge.sources.USER)}},tab:{key:"Tab",handler(r,e){if(e.format.table)return!0;this.quill.history.cutoff();let t=new Mi.default().retain(r.index).delete(r.length).insert(" ");return this.quill.updateContents(t,ge.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(r.index+1,ge.sources.SILENT),!1}},"blockquote empty enter":{key:"Enter",collapsed:!0,format:["blockquote"],empty:!0,handler(){this.quill.format("blockquote",!1,ge.sources.USER)}},"list empty enter":{key:"Enter",collapsed:!0,format:["list"],empty:!0,handler(r,e){let t={list:!1};e.format.indent&&(t.indent=!1),this.quill.formatLine(r.index,r.length,t,ge.sources.USER)}},"checklist enter":{key:"Enter",collapsed:!0,format:{list:"checked"},handler(r){let[e,t]=this.quill.getLine(r.index),i={...e.formats(),list:"checked"},n=new Mi.default().retain(r.index).insert(`
|
||
|
|
`,i).retain(e.length()-t-1).retain(1,{list:"unchecked"});this.quill.updateContents(n,ge.sources.USER),this.quill.setSelection(r.index+1,ge.sources.SILENT),this.quill.scrollSelectionIntoView()}},"header enter":{key:"Enter",collapsed:!0,format:["header"],suffix:/^$/,handler(r,e){let[t,i]=this.quill.getLine(r.index),n=new Mi.default().retain(r.index).insert(`
|
||
|
|
`,e.format).retain(t.length()-i-1).retain(1,{header:null});this.quill.updateContents(n,ge.sources.USER),this.quill.setSelection(r.index+1,ge.sources.SILENT),this.quill.scrollSelectionIntoView()}},"table backspace":{key:"Backspace",format:["table"],collapsed:!0,offset:0,handler(){}},"table delete":{key:"Delete",format:["table"],collapsed:!0,suffix:/^$/,handler(){}},"table enter":{key:"Enter",shiftKey:null,format:["table"],handler(r){let e=this.quill.getModule("table");if(e){let[t,i,n,s]=e.getTable(r),a=BZ(t,i,n,s);if(a==null)return;let o=t.offset();if(a<0){let l=new Mi.default().retain(o).insert(`
|
||
|
|
`);this.quill.updateContents(l,ge.sources.USER),this.quill.setSelection(r.index+1,r.length,ge.sources.SILENT)}else if(a>0){o+=t.length();let l=new Mi.default().retain(o).insert(`
|
||
|
|
`);this.quill.updateContents(l,ge.sources.USER),this.quill.setSelection(o,ge.sources.USER)}}}},"table tab":{key:"Tab",shiftKey:null,format:["table"],handler(r,e){let{event:t,line:i}=e,n=i.offset(this.quill.scroll);t.shiftKey?this.quill.setSelection(n-1,ge.sources.USER):this.quill.setSelection(n+i.length(),ge.sources.USER)}},"list autofill":{key:" ",shiftKey:null,collapsed:!0,format:{"code-block":!1,blockquote:!1,table:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler(r,e){if(this.quill.scroll.query("list")==null)return!0;let{length:t}=e.prefix,[i,n]=this.quill.getLine(r.index);if(n>t)return!0;let s;switch(e.prefix.trim()){case"[]":case"[ ]":s="unchecked";break;case"[x]":s="checked";break;case"-":case"*":s="bullet";break;default:s="ordered"}this.quill.insertText(r.index," ",ge.sources.USER),this.quill.history.cutoff();let a=new Mi.default().retain(r.index-n).delete(t+1).retain(i.length()-2-n).retain(1,{list:s});return this.quill.updateContents(a,ge.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(r.index-t,ge.sources.SILENT),!1}},"code exit":{key:"Enter",collapsed:!0,format:["code-block"],prefix:/^$/,suffix:/^\s*$/,handler(r){let[e,t]=this.quill.getLine(r.index),i=2,n=e;for(;n!=null&&n.length()<=1&&n.formats()["code-block"];)if(n=n.prev,i-=1,i<=0){let s=new Mi.default().retain(r.index+e.length()-t-2).retain(1,{"code-block":null}).delete(1);return this.quill.updateContents(s,ge.sources.USER),this.quill.setSelection(r.index-1,ge.sources.SILENT),!1}return!0}},"embed left":M3("ArrowLeft",!1),"embed left shift":M3("ArrowLeft",!0),"embed right":M3("ArrowRight",!1),"embed right shift":M3("ArrowRight",!0),"table down":wS(!1),"table up":wS(!0)}};t0.DEFAULTS=LZ;function bS(r){return{key:"Tab",shiftKey:!r,format:{"code-block":!0},handler(e,t){let{event:i}=t,n=this.quill.scroll.query("code-block"),{TAB:s}=n;if(e.length===0&&!i.shiftKey){this.quill.insertText(e.index,s,ge.sources.USER),this.quill.setSelection(e.index+s.length,ge.sources.SILENT);return}let a=e.length===0?this.quill.getLines(e.index,1):this.quill.getLines(e),{index:o,length:l}=e;a.forEach((h,c)=>{r?(h.insertAt(0,s),c===0?o+=s.length:l+=s.length):h.domNode.textContent.startsWith(s)&&(h.deleteAt(0,s.length),c===0?o-=s.length:l-=s.length)}),this.quill.update(ge.sources.USER),this.quill.setSelection(o,l,ge.sources.SILENT)}}}function M3(r,e){return{key:r,shiftKey:e,altKey:null,[r==="ArrowLeft"?"prefix":"suffix"]:/^$/,handler(i){let{index:n}=i;r==="ArrowRight"&&(n+=i.length+1);let[s]=this.quill.getLeaf(n);return s instanceof Nr?(r==="ArrowLeft"?e?this.quill.setSelection(i.index-1,i.length+1,ge.sources.USER):this.quill.setSelection(i.index-1,ge.sources.USER):e?this.quill.setSelection(i.index,i.length+1,ge.sources.USER):this.quill.setSelection(i.index+i.length+1,ge.sources.USER),!1):!0}}}function f5(r){return{key:r[0],shortKey:!0,handler(e,t){this.quill.format(r,!t.format[r],ge.sources.USER)}}}function wS(r){return{key:r?"ArrowUp":"ArrowDown",collapsed:!0,format:["table"],handler(e,t){let i=r?"prev":"next",n=t.line,s=n.parent[i];if(s!=null){if(s.statics.blotName==="table-row"){let a=s.children.head,o=n;for(;o.prev!=null;)o=o.prev,a=a.next;let l=a.offset(this.quill.scroll)+Math.min(t.offset,a.length()-1);this.quill.setSelection(l,0,ge.sources.USER)}}else{let a=n.table()[i];a!=null&&(r?this.quill.setSelection(a.offset(this.quill.scroll)+a.length()-1,0,ge.sources.USER):this.quill.setSelection(a.offset(this.quill.scroll),0,ge.sources.USER))}return!1}}}function OZ(r){if(typeof r=="string"||typeof r=="number")r={key:r};else if(typeof r=="object")r=Qs(r);else return null;return r.shortKey&&(r[zZ]=r.shortKey,delete r.shortKey),r}function yd(r){let{quill:e,range:t}=r,i=e.getLines(t),n={};if(i.length>1){let s=i[0].formats(),a=i[i.length-1].formats();n=Mi.AttributeMap.diff(a,s)||{}}e.deleteText(t,ge.sources.USER),Object.keys(n).length>0&&e.formatLine(t.index,1,n,ge.sources.USER),e.setSelection(t.index,ge.sources.SILENT)}function BZ(r,e,t,i){return e.prev==null&&e.next==null?t.prev==null&&t.next==null?i===0?-1:1:t.prev==null?-1:1:e.prev==null?-1:e.next==null?1:null}var
|
||
|
|
`)&&(s.ops[s.ops.length-1].attributes==null||n.table)?s.compose(new An.default().retain(s.length()-1).delete(1)):s}normalizeHTML(e){ES(e)}convertHTML(e){let t=new DOMParser().parseFromString(e,"text/html");this.normalizeHTML(t);let i=t.body,n=new WeakMap,[s,a]=this.prepareMatching(i,n);return D3(this.quill.scroll,i,s,a,n)}dangerouslyPasteHTML(e,t){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ge.sources.API;if(typeof e=="string"){let n=this.convert({html:e,text:""});this.quill.setContents(n,t),this.quill.setSelection(0,ge.sources.SILENT)}else{let n=this.convert({html:t,text:""});this.quill.updateContents(new An.default().retain(e).concat(n),i),this.quill.setSelection(e+n.length(),ge.sources.SILENT)}}onCaptureCopy(e){var a,o;let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(e.defaultPrevented)return;e.preventDefault();let[i]=this.quill.selection.getRange();if(i==null)return;let{html:n,text:s}=this.onCopy(i,t);(a=e.clipboardData)==null||a.setData("text/plain",s),(o=e.clipboardData)==null||o.setData("text/html",n),t&&yd({range:i,quill:this.quill})}normalizeURIList(e){return e.split(/\r?\n/).filter(t=>t[0]!=="#").join(`
|
||
|
|
`)}onCapturePaste(e){var a,o,l,h,c;if(e.defaultPrevented||!this.quill.isEnabled())return;e.preventDefault();let t=this.quill.getSelection(!0);if(t==null)return;let i=(a=e.clipboardData)==null?void 0:a.getData("text/html"),n=(o=e.clipboardData)==null?void 0:o.getData("text/plain");if(!i&&!n){let u=(l=e.clipboardData)==null?void 0:l.getData("text/uri-list");u&&(n=this.normalizeURIList(u))}let s=Array.from(((h=e.clipboardData)==null?void 0:h.files)||[]);if(!i&&s.length>0){this.quill.uploader.upload(t,s);return}if(i&&s.length>0){let u=new DOMParser().parseFromString(i,"text/html");if(u.body.childElementCount===1&&((c=u.body.firstElementChild)==null?void 0:c.tagName)==="IMG"){this.quill.uploader.upload(t,s);return}}this.onPaste(t,{html:i,text:n})}onCopy(e){let t=this.quill.getText(e);return{html:this.quill.getSemanticHTML(e),text:t}}onPaste(e,t){let{text:i,html:n}=t,s=this.quill.getFormat(e.index),a=this.convert({text:i,html:n},s);KZ.log("onPaste",a,{text:i,html:n});let o=new An.default().retain(e.index).delete(e.length).concat(a);this.quill.updateContents(o,ge.sources.USER),this.quill.setSelection(o.length()-e.length,ge.sources.SILENT),this.quill.scrollSelectionIntoView()}prepareMatching(e,t){let i=[],n=[];return this.matchers.forEach(s=>{let[a,o]=s;switch(a){case Node.TEXT_NODE:n.push(o);break;case Node.ELEMENT_NODE:i.push(o);break;default:Array.from(e.querySelectorAll(a)).forEach(l=>{if(t.has(l)){let h=t.get(l);h==null||h.push(o)}else t.set(l,[o])});break}}),[i,n]}};Se(xd,"DEFAULTS",{matchers:[]});function r0(r,e,t,i){return i.query(e)?r.reduce((n,s)=>{if(!s.insert)return n;if(s.attributes&&s.attributes[e])return n.push(s);let a=t?{[e]:t}:{};return n.insert(s.insert,{...a,...s.attributes})},new An.default):r}function bd(r,e){let t="";for(let i=r.ops.length-1;i>=0&&t.length<e.length;--i){let n=r.ops[i];if(typeof n.insert!="string")break;t=n.insert+t}return t.slice(-1*e.length)===e}function Uo(r,e){if(!(r instanceof Element))return!1;let t=e.query(r);return t&&t.prototype instanceof Nr?!1:["address","article","blockquote","canvas","dd","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","iframe","li","main","nav","ol","output","p","pre","section","table","td","tr","ul","video"].includes(r.tagName.toLowerCase())}function ZZ(r,e){return r.previousElementSibling&&r.nextElementSibling&&!Uo(r.previousElementSibling,e)&&!Uo(r.nextElementSibling,e)}var k3=new WeakMap;function TS(r){return r==null?!1:(k3.has(r)||(r.tagName==="PRE"?k3.set(r,!0):k3.set(r,TS(r.parentNode))),k3.get(r))}function D3(r,e,t,i,n){return e.nodeType===e.TEXT_NODE?i.reduce((s,a)=>a(e,s,r),new An.default):e.nodeType===e.ELEMENT_NODE?Array.from(e.childNodes||[]).reduce((s,a)=>{let o=D3(r,a,t,i,n);return a.nodeType===e.ELEMENT_NODE&&(o=t.reduce((l,h)=>h(a,l,r),o),o=(n.get(a)||[]).reduce((l,h)=>h(a,l,r),o)),s.concat(o)},new An.default):new An.default}function g5(r){return(e,t,i)=>r0(t,r,!0,i)}function JZ(r,e,t){let i=Vi.keys(r),n=Vr.keys(r),s=xn.keys(r),a={};return i.concat(n).concat(s).forEach(o=>{let l=t.query(o,ze.ATTRIBUTE);l!=null&&(a[l.attrName]=l.value(r),a[l.attrName])||(l=XZ[o],l!=null&&(l.attrName===o||l.keyName===o)&&(a[l.attrName]=l.value(r)||void 0),l=CS[o],l!=null&&(l.attrName===o||l.keyName===o)&&(l=CS[o],a[l.attrName]=l.value(r)||void 0))}),Object.entries(a).reduce((o,l)=>{let[h,c]=l;return r0(o,h,c,t)},e)}function $Z(r,e,t){let i=t.query(r);if(i==null)return e;if(i.prototype instanceof Nr){let n={},s=i.value(r);if(s!=null)return n[i.blotName]=s,new An.default().insert(n,i.formats(r,t))}else if(i.prototype instanceof Gl&&!bd(e,`
|
||
|
|
`)&&e.insert(`
|
||
|
|
`),"blotName"in i&&"formats"in i&&typeof i.formats=="function")return r0(e,i.blotName,i.formats(r,t),t);return e}function eJ(r,e){return bd(e,`
|
||
|
|
`)||e.insert(`
|
||
|
|
`),e}function tJ(r,e,t){let i=t.query("code-block"),n=i&&"formats"in i&&typeof i.formats=="function"?i.formats(r,t):!0;return r0(e,"code-block",n,t)}function rJ(){return new An.default}function iJ(r,e,t){let i=t.query(r);if(i==null||i.blotName!=="list"||!bd(e,`
|
||
|
|
`))return e;let n=-1,s=r.parentNode;for(;s!=null;)["OL","UL"].includes(s.tagName)&&(n+=1),s=s.parentNode;return n<=0?e:e.reduce((a,o)=>o.insert?o.attributes&&typeof o.attributes.indent=="number"?a.push(o):a.insert(o.insert,{indent:n,...o.attributes||{}}):a,new An.default)}function nJ(r,e,t){let i=r,n=i.tagName==="OL"?"ordered":"bullet",s=i.getAttribute("data-checked");return s&&(n=s==="true"?"checked":"unchecked"),r0(e,"list",n,t)}function SS(r,e,t){if(!bd(e,`
|
||
|
|
`)){if(Uo(r,t)&&(r.childNodes.length>0||r instanceof HTMLParagraphElement))return e.insert(`
|
||
|
|
`);if(e.length()>0&&r.nextSibling){let i=r.nextSibling;for(;i!=null;){if(Uo(i,t))return e.insert(`
|
||
|
|
`);let n=t.query(i);if(n&&n.prototype instanceof ii)return e.insert(`
|
||
|
|
`);i=i.firstChild}}}return e}function sJ(r,e,t){var s;let i={},n=r.style||{};return n.fontStyle==="italic"&&(i.italic=!0),n.textDecoration==="underline"&&(i.underline=!0),n.textDecoration==="line-through"&&(i.strike=!0),((s=n.fontWeight)!=null&&s.startsWith("bold")||parseInt(n.fontWeight,10)>=700)&&(i.bold=!0),e=Object.entries(i).reduce((a,o)=>{let[l,h]=o;return r0(a,l,h,t)},e),parseFloat(n.textIndent||0)>0?new An.default().insert(" ").concat(e):e}function aJ(r,e,t){var n,s;let i=((n=r.parentElement)==null?void 0:n.tagName)==="TABLE"?r.parentElement:(s=r.parentElement)==null?void 0:s.parentElement;if(i!=null){let o=Array.from(i.querySelectorAll("tr")).indexOf(r)+1;return r0(e,"table",o,t)}return e}function oJ(r,e,t){var n;let i=r.data;if(((n=r.parentElement)==null?void 0:n.tagName)==="O:P")return e.insert(i.trim());if(!TS(r)){if(i.trim().length===0&&i.includes(`
|
||
|
|
`)&&!ZZ(r,t))return e;i=i.replace(/[^\S\u00a0]/g," "),i=i.replace(/ {2,}/g," "),(r.previousSibling==null&&r.parentElement!=null&&Uo(r.parentElement,t)||r.previousSibling instanceof Element&&Uo(r.previousSibling,t))&&(i=i.replace(/^ /,"")),(r.nextSibling==null&&r.parentElement!=null&&Uo(r.parentElement,t)||r.nextSibling instanceof Element&&Uo(r.nextSibling,t))&&(i=i.replace(/ $/,"")),i=i.replaceAll("\xA0"," ")}return e.insert(i)}var wd=class extends zr{constructor(t,i){super(t,i);Se(this,"lastRecorded",0);Se(this,"ignoreChange",!1);Se(this,"stack",{undo:[],redo:[]});Se(this,"currentRange",null);this.quill.on(ge.events.EDITOR_CHANGE,(n,s,a,o)=>{n===ge.events.SELECTION_CHANGE?s&&o!==ge.sources.SILENT&&(this.currentRange=s):n===ge.events.TEXT_CHANGE&&(this.ignoreChange||(!this.options.userOnly||o===ge.sources.USER?this.record(s,a):this.transform(s)),this.currentRange=v5(this.currentRange,s))}),this.quill.keyboard.addBinding({key:"z",shortKey:!0},this.undo.bind(this)),this.quill.keyboard.addBinding({key:["z","Z"],shortKey:!0,shiftKey:!0},this.redo.bind(this)),/Win/i.test(navigator.platform)&&this.quill.keyboard.addBinding({key:"y",shortKey:!0},this.redo.bind(this)),this.quill.root.addEventListener("beforeinput",n=>{n.inputType==="historyUndo"?(this.undo(),n.preventDefault()):n.inputType==="historyRedo"&&(this.redo(),n.preventDefault())})}change(t,i){if(this.stack[t].length===0)return;let n=this.stack[t].pop();if(!n)return;let s=this.quill.getContents(),a=n.delta.invert(s);this.stack[i].push({delta:a,range:v5(n.range,a)}),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(n.delta,ge.sources.USER),this.ignoreChange=!1,this.restoreSelection(n)}clear(){this.stack={undo:[],redo:[]}}cutoff(){this.lastRecorded=0}record(t,i){if(t.ops.length===0)return;this.stack.redo=[];let n=t.invert(i),s=this.currentRange,a=Date.now();if(this.lastRecorded+this.options.delay>a&&this.stack.undo.length>0){let o=this.stack.undo.pop();o&&(n=n.compose(o.delta),s=o.range)}else this.lastRecorded=a;n.length()!==0&&(this.stack.undo.push({delta:n,range:s}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift())}redo(){this.change("redo","undo")}transform(t){MS(this.stack.undo,t),MS(this.stack.redo,t)}undo(){this.change("undo","redo")}restoreSelection(t){if(t.range)this.quill.setSelection(t.range,ge.sources.USER);else{let i=hJ(this.quill.scroll,t.delta);this.quill.setSelection(i,ge.sources.USER)}}};Se(wd,"DEFAULTS",{delay:1e3,maxStack:100,userOnly:!1});function MS(r,e){let t=e;for(let i=r.length-1;i>=0;i-=1){let n=r[i];r[i]={delta:t.transform(n.delta,!0),range:n.range&&v5(n.range,t)},t=n.delta.transform(t),r[i].delta.length()===0&&r.splice(i,1)}}function lJ(r,e){let t=e.ops[e.ops.length-1];return t==null?!1:t.insert!=null?typeof t.insert=="string"&&t.insert.endsWith(`
|
||
|
|
`):t.attributes!=null?Object.keys(t.attributes).some(i=>r.query(i,ze.BLOCK)!=null):!1}function hJ(r,e){let t=e.reduce((n,s)=>n+(s.delete||0),0),i=e.length()-t;return lJ(r,e)&&(i-=1),i}function v5(r,e){if(!r)return r;let t=e.transformPosition(r.index),i=e.transformPosition(r.index+r.length);return{index:t,length:i-t}}var kS=mr(bn(),1);var N3=class extends zr{constructor(e,t){super(e,t),e.root.addEventListener("drop",i=>{var a;i.preventDefault();let n=null;if(document.caretRangeFromPoint)n=document.caretRangeFromPoint(i.clientX,i.clientY);else if(document.caretPositionFromPoint){let o=document.caretPositionFromPoint(i.clientX,i.clientY);n=document.createRange(),n.setStart(o.offsetNode,o.offset),n.setEnd(o.offsetNode,o.offset)}let s=n&&e.selection.normalizeNative(n);if(s){let o=e.selection.normalizedToRange(s);(a=i.dataTransfer)!=null&&a.files&&this.upload(o,i.dataTransfer.files)}})}upload(e,t){let i=[];Array.from(t).forEach(n=>{var s;n&&((s=this.options.mimetypes)!=null&&s.includes(n.type))&&i.push(n)}),i.length>0&&this.options.handler.call(this,e,i)}};N3.DEFAULTS={mimetypes:["image/png","image/jpeg"],handler(r,e){if(!this.quill.scroll.query("image"))return;let t=e.map(i=>new Promise(n=>{let s=new FileReader;s.onload=()=>{n(s.result)},s.readAsDataURL(i)}));Promise.all(t).then(i=>{let n=i.reduce((s,a)=>s.insert({image:a}),new kS.default().retain(r.index).delete(r.length));this.quill.updateContents(n,Oe.sources.USER),this.quill.setSelection(r.index+i.length,Oe.sources.SILENT)})}};var DS=N3;var Ho=mr(bn(),1);var NS=mr(bn(),1);var cJ=["insertText","insertReplacementText"],y5=class extends zr{constructor(e,t){super(e,t),e.root.addEventListener("beforeinput",i=>{this.handleBeforeInput(i)}),/Android/i.test(navigator.userAgent)||e.on(ge.events.COMPOSITION_BEFORE_START,()=>{this.handleCompositionStart()})}deleteRange(e){yd({range:e,quill:this.quill})}replaceText(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";if(e.length===0)return!1;if(t){let i=this.quill.getFormat(e.index,1);this.deleteRange(e),this.quill.updateContents(new NS.default().retain(e.index).insert(t,i),ge.sources.USER)}else this.deleteRange(e);return this.quill.setSelection(e.index+t.length,0,ge.sources.SILENT),!0}handleBeforeInput(e){if(this.quill.composition.isComposing||e.defaultPrevented||!cJ.includes(e.inputType))return;let t=e.getTargetRanges?e.getTargetRanges()[0]:null;if(!t||t.collapsed===!0)return;let i=uJ(e);if(i==null)return;let n=this.quill.selection.normalizeNative(t),s=n?this.quill.selection.normalizedToRange(n):null;s&&this.replaceText(s,i)&&e.preventDefault()}handleCompositionStart(){let e=this.quill.getSelection();e&&this.replaceText(e)}};function uJ(r){var e;return typeof r.data=="string"?r.data:(e=r.dataTransfer)!=null&&e.types.includes("text/plain")?r.dataTransfer.getData("text/plain"):null}var FS=y5;var dJ=/Mac/i.test(navigator.platform),fJ=100,mJ=r=>!!(r.key==="ArrowLeft"||r.key==="ArrowRight"||r.key==="ArrowUp"||r.key==="ArrowDown"||r.key==="Home"||dJ&&r.key==="a"&&r.ctrlKey===!0),x5=class extends zr{constructor(t,i){super(t,i);Se(this,"isListening",!1);Se(this,"selectionChangeDeadline",0);this.handleArrowKeys(),this.handleNavigationShortcuts()}handleArrowKeys(){this.quill.keyboard.addBinding({key:["ArrowLeft","ArrowRight"],offset:0,shiftKey:null,handler(t,i){let{line:n,event:s}=i;if(!(n instanceof yn)||!n.uiNode)return!0;let a=getComputedStyle(n.domNode).direction==="rtl";return a&&s.key!=="ArrowRight"||!a&&s.key!=="ArrowLeft"?!0:(this.quill.setSelection(t.index-1,t.length+(s.shiftKey?1:0),ge.sources.USER),!1)}})}handleNavigationShortcuts(){this.quill.root.addEventListener("keydown",t=>{!t.defaultPrevented&&mJ(t)&&this.ensureListeningToSelectionChange()})}ensureListeningToSelectionChange(){if(this.selectionChangeDeadline=Date.now()+fJ,this.isListening)return;this.isListening=!0;let t=()=>{this.isListening=!1,Date.now()<=this.selectionChangeDeadline&&this.handleSelectionChange()};document.addEventListener("selectionchange",t,{once:!0})}handleSelectionChange(){let t=document.getSelection();if(!t)return;let i=t.getRangeAt(0);if
|
||
|
|
`)}
|
||
|
|
`,s=En.formats(this.children.head.domNode);if(t||this.forceNext||this.cachedText!==n){if(n.trim().length>0||this.cachedText==null){let a=this.children.reduce((l,h)=>l.concat(Hg(h,!1)),new I3.default),o=e(n,s);a.diff(o).reduce((l,h)=>{let{retain:c,attributes:u}=h;return c?(u&&Object.keys(u).forEach(d=>{[En.blotName,Ts.blotName].includes(d)&&this.formatAt(l,c,d,u[d])}),l+c):l},0)}this.cachedText=n,this.forceNext=!1}}html(e,t){let[i]=this.children.find(e);return`<pre data-language="${i?En.formats(i.domNode):"plain"}">
|
||
|
|
${$l(this.code(e,t))}
|
||
|
|
</pre>`}optimize(e){if(super.optimize(e),this.parent!=null&&this.children.head!=null&&this.uiNode!=null){let t=En.formats(this.children.head.domNode);t!==this.uiNode.value&&(this.uiNode.value=t)}}};n0.allowedChildren=[En];En.requiredContainer=n0;En.allowedChildren=[Ts,Po,_r,Ci];var gJ=(r,e,t)=>{if(typeof r.versionString=="string"){let i=r.versionString.split(".")[0];if(parseInt(i,10)>=11)return r.highlight(t,{language:e}).value}return r.highlight(e,t).value},Fd=class extends zr{static register(){ge.register(Ts,!0),ge.register(En,!0),ge.register(n0,!0)}constructor(e,t){if(super(e,t),this.options.hljs==null)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");this.languages=this.options.languages.reduce((i,n)=>{let{key:s}=n;return i[s]=!0,i},{}),this.highlightBlot=this.highlightBlot.bind(this),this.initListener(),this.initTimer()}initListener(){this.quill.on(ge.events.SCROLL_BLOT_MOUNT,e=>{if(!(e instanceof n0))return;let t=this.quill.root.ownerDocument.createElement("select");this.options.languages.forEach(i=>{let{key:n,label:s}=i,a=t.ownerDocument.createElement("option");a.textContent=s,a.setAttribute("value",n),t.appendChild(a)}),t.addEventListener("change",()=>{e.format(En.blotName,t.value),this.quill.root.focus(),this.highlight(e,!0)}),e.uiNode==null&&(e.attachUI(t),e.children.head&&(t.value=En.formats(e.children.head.domNode)))})}initTimer(){let e=null;this.quill.on(ge.events.SCROLL_OPTIMIZE,()=>{e&&clearTimeout(e),e=setTimeout(()=>{this.highlight(),e=null},this.options.interval)})}highlight(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(this.quill.selection.composing)return;this.quill.update(ge.sources.USER);let i=this.quill.getSelection();(e==null?this.quill.scroll.descendants(n0):[e]).forEach(s=>{s.highlight(this.highlightBlot,t)}),this.quill.update(ge.sources.SILENT),i!=null&&this.quill.setSelection(i,ge.sources.SILENT)}highlightBlot(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"plain";if(t=this.languages[t]?t:"plain",t==="plain")return $l(e).split(`
|
||
|
|
`).reduce((n,s,a)=>(a!==0&&n.insert(`
|
||
|
|
`,{[qr.blotName]:t}),n.insert(s)),new I3.default);let i=this.quill.root.ownerDocument.createElement("div");return i.classList.add(qr.className),i.innerHTML=gJ(this.options.hljs,t,e),D3(this.quill.scroll,i,[(n,s)=>{let a=Nd.value(n);return a?s.compose(new I3.default().retain(s.length(),{[Ts.blotName]:a})):s}],[(n,s)=>n.data.split(`
|
||
|
|
`).reduce((a,o,l)=>(l!==0&&a.insert(`
|
||
|
|
`,{[qr.blotName]:t}),a.insert(o)),s)],new WeakMap)}};Fd.DEFAULTS={hljs:(()=>window.hljs)(),interval:1e3,languages:[{key:"plain",label:"Plain"},{key:"bash",label:"Bash"},{key:"cpp",label:"C++"},{key:"cs",label:"C#"},{key:"css",label:"CSS"},{key:"diff",label:"Diff"},{key:"xml",label:"HTML/XML"},{key:"java",label:"Java"},{key:"javascript",label:"JavaScript"},{key:"markdown",label:"Markdown"},{key:"php",label:"PHP"},{key:"python",label:"Python"},{key:"ruby",label:"Ruby"},{key:"sql",label:"SQL"}]};var WS=mr(bn(),1);var A5=class extends ar{static create(e){let t=super.create();return e?t.setAttribute("data-row",e):t.setAttribute("data-row",z3()),t}static formats(e){if(e.hasAttribute("data-row"))return e.getAttribute("data-row")}cellOffset(){return this.parent?this.parent.children.indexOf(this):-1}format(e,t){e===A5.blotName&&t?this.domNode.setAttribute("data-row",t):super.format(e,t)}row(){return this.parent}rowOffset(){return this.row()?this.row().rowOffset():-1}table(){return this.row()&&this.row().table()}},Cn=A5;Se(Cn,"blotName","table"),Se(Cn,"tagName","TD");var is=class extends ts{checkMerge(){if(super.checkMerge()&&this.next.children.head!=null){let e=this.children.head.formats(),t=this.children.tail.formats(),i=this.next.children.head.formats(),n=this.next.children.tail.formats();return e.table===t.table&&e.table===i.table&&e.table===n.table}return!1}optimize(e){super.optimize(e),this.children.forEach(t=>{if(t.next==null)return;let i=t.formats(),n=t.next.formats();if(i.table!==n.table){let s=this.splitAfter(t);s&&s.optimize(),this.prev&&this.prev.optimize()}})}rowOffset(){return this.parent?this.parent.children.indexOf(this):-1}table(){return this.parent&&this.parent.parent}};Se(is,"blotName","table-row"),Se(is,"tagName","TR");var On=class extends ts{};Se(On,"blotName","table-body"),Se(On,"tagName","TBODY");var Wa=class extends ts{balanceCells(){let e=this.descendants(is),t=e.reduce((i,n)=>Math.max(n.children.length,i),0);e.forEach(i=>{new Array(t-i.children.length).fill(0).forEach(()=>{let n;i.children.head!=null&&(n=Cn.formats(i.children.head.domNode));let s=this.scroll.create(Cn.blotName,n);i.appendChild(s),s.optimize()})})}cells(e){return this.rows().map(t=>t.children.at(e))}deleteColumn(e){let[t]=this.descendant(On);t==null||t.children.head==null||t.children.forEach(i=>{let n=i.children.at(e);n!=null&&n.remove()})}insertColumn(e){let[t]=this.descendant(On);t==null||t.children.head==null||t.children.forEach(i=>{let n=i.children.at(e),s=Cn.formats(i.children.head.domNode),a=this.scroll.create(Cn.blotName,s);i.insertBefore(a,n)})}insertRow(e){let[t]=this.descendant(On);if(t==null||t.children.head==null)return;let i=z3(),n=this.scroll.create(is.blotName);t.children.head.children.forEach(()=>{let a=this.scroll.create(Cn.blotName,i);n.appendChild(a)});let s=t.children.at(e);t.insertBefore(n,s)}rows(){let e=this.children.head;return e==null?[]:e.children.map(t=>t)}};Se(Wa,"blotName","table-container"),Se(Wa,"tagName","TABLE");Wa.allowedChildren=[On];On.requiredContainer=Wa;On.allowedChildren=[is];is.requiredContainer=On;is.allowedChildren=[Cn];Cn.requiredContainer=is;function z3(){return`row-${Math.random().toString(36).slice(2,6)}`}var E5=class extends zr{static register(){ge.register(Cn),ge.register(is),ge.register(On),ge.register(Wa)}constructor(){super(...arguments),this.listenBalanceCells()}balanceTables(){this.quill.scroll.descendants(Wa).forEach(e=>{e.balanceCells()})}deleteColumn(){let[e,,t]=this.getTable();t!=null&&(e.deleteColumn(t.cellOffset()),this.quill.update(ge.sources.USER))}deleteRow(){let[,e]=this.getTable();e!=null&&(e.remove(),this.quill.update(ge.sources.USER))}deleteTable(){let[e]=this.getTable();if(e==null)return;let t=e.offset();e.remove(),this.quill.update(ge.sources.USER),this.quill.setSelection(t,ge.sources.SILENT)}getTable(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.quill.getSelection();if(e==null)return[null,null,null,-1];let[t,i]=this.quill.getLine(e.index);if(t==null||t.statics.blotName!==Cn.blotName)return[null,null,null,-1];let n=t.parent;return[n.parent.parent,n,
|
||
|
|
`).join("");return s.insert(a,{table:z3()})},new WS.default().retain(i.index));this.quill.updateContents(n,ge.sources.USER),this.quill.setSelection(i.index,ge.sources.SILENT),this.balanceTables()}listenBalanceCells(){this.quill.on(ge.events.SCROLL_OPTIMIZE,e=>{e.some(t=>["TD","TR","TBODY","TABLE"].includes(t.target.tagName)?(this.quill.once(ge.events.TEXT_CHANGE,(i,n,s)=>{s===ge.sources.USER&&this.balanceTables()}),!0):!1)})}},YS=E5;var QS=mr(bn(),1);var VS=zn("quill:toolbar"),Zh=class extends zr{constructor(e,t){var i,n;if(super(e,t),Array.isArray(this.options.container)){let s=document.createElement("div");s.setAttribute("role","toolbar"),vJ(s,this.options.container),(n=(i=e.container)==null?void 0:i.parentNode)==null||n.insertBefore(s,e.container),this.container=s}else typeof this.options.container=="string"?this.container=document.querySelector(this.options.container):this.container=this.options.container;if(!(this.container instanceof HTMLElement)){VS.error("Container required for toolbar",this.options);return}this.container.classList.add("ql-toolbar"),this.controls=[],this.handlers={},this.options.handlers&&Object.keys(this.options.handlers).forEach(s=>{var o;let a=(o=this.options.handlers)==null?void 0:o[s];a&&this.addHandler(s,a)}),Array.from(this.container.querySelectorAll("button, select")).forEach(s=>{this.attach(s)}),this.quill.on(ge.events.EDITOR_CHANGE,()=>{let[s]=this.quill.selection.getRange();this.update(s)})}addHandler(e,t){this.handlers[e]=t}attach(e){let t=Array.from(e.classList).find(n=>n.indexOf("ql-")===0);if(!t)return;if(t=t.slice(3),e.tagName==="BUTTON"&&e.setAttribute("type","button"),this.handlers[t]==null&&this.quill.scroll.query(t)==null){VS.warn("ignoring attaching to nonexistent format",t,e);return}let i=e.tagName==="SELECT"?"change":"click";e.addEventListener(i,n=>{let s;if(e.tagName==="SELECT"){if(e.selectedIndex<0)return;let o=e.options[e.selectedIndex];o.hasAttribute("selected")?s=!1:s=o.value||!1}else e.classList.contains("ql-active")?s=!1:s=e.value||!e.hasAttribute("value"),n.preventDefault();this.quill.focus();let[a]=this.quill.selection.getRange();if(this.handlers[t]!=null)this.handlers[t].call(this,s);else if(this.quill.scroll.query(t).prototype instanceof Nr){if(s=prompt(`Enter ${t}`),!s)return;this.quill.updateContents(new QS.default().retain(a.index).delete(a.length).insert({[t]:s}),ge.sources.USER)}else this.quill.format(t,s,ge.sources.USER);this.update(a)}),this.controls.push([t,e])}update(e){let t=e==null?{}:this.quill.getFormat(e);this.controls.forEach(i=>{let[n,s]=i;if(s.tagName==="SELECT"){let a=null;if(e==null)a=null;else if(t[n]==null)a=s.querySelector("option[selected]");else if(!Array.isArray(t[n])){let o=t[n];typeof o=="string"&&(o=o.replace(/"/g,'\\"')),a=s.querySelector(`option[value="${o}"]`)}a==null?(s.value="",s.selectedIndex=-1):a.selected=!0}else if(e==null)s.classList.remove("ql-active"),s.setAttribute("aria-pressed","false");else if(s.hasAttribute("value")){let a=t[n],o=a===s.getAttribute("value")||a!=null&&a.toString()===s.getAttribute("value")||a==null&&!s.getAttribute("value");s.classList.toggle("ql-active",o),s.setAttribute("aria-pressed",o.toString())}else{let a=t[n]!=null;s.classList.toggle("ql-active",a),s.setAttribute("aria-pressed",a.toString())}})}};Zh.DEFAULTS={};function KS(r,e,t){let i=document.createElement("button");i.setAttribute("type","button"),i.classList.add(`ql-${e}`),i.setAttribute("aria-pressed","false"),t!=null?(i.value=t,i.setAttribute("aria-label",`${e}: ${t}`)):i.setAttribute("aria-label",e),r.appendChild(i)}function vJ(r,e){Array.isArray(e[0])||(e=[e]),e.forEach(t=>{let i=document.createElement("span");i.classList.add("ql-formats"),t.forEach(n=>{if(typeof n=="string")KS(i,n);else{let s=Object.keys(n)[0],a=n[s];Array.isArray(a)?yJ(i,s,a):KS(i,s,a)}}),r.appendChild(i)})}function yJ(r,e,t){let i=document.createElement("select");i.classList.add(`ql-${e}`),t.forEach(n=>{let s=document.createElement("option");n!==!1?s.setAttribute("value",String(n)):s.setAttribute("selected","selected"),i.appendChild(s)}),r.appendChild(i)}Zh.DEFAULTS={c
|
||
|
|
@font-face {
|
||
|
|
font-family: 'KaTeX_AMS';
|
||
|
|
src: url(${r}fonts/KaTeX_AMS-Regular.woff2) format('woff2'), url(${r}fonts/KaTeX_AMS-Regular.woff) format('woff'), url(${r}fonts/KaTeX_AMS-Regular.ttf) format('truetype');
|
||
|
|
font-weight: normal;
|
||
|
|
font-style: normal;
|
||
|
|
}
|
||
|
|
@font-face {
|
||
|
|
font-family: 'KaTeX_Caligraphic';
|
||
|
|
src: url(${r}fonts/KaTeX_Caligraphic-Bold.woff2) format('woff2'), url(${r}fonts/KaTeX_Caligraphic-Bold.woff) format('woff'), url(${r}fonts/KaTeX_Caligraphic-Bold.ttf) format('truetype');
|
||
|
|
font-weight: bold;
|
||
|
|
font-style: normal;
|
||
|
|
}
|
||
|
|
@font-face {
|
||
|
|
font-family: 'KaTeX_Caligraphic';
|
||
|
|
src: url(${r}fonts/KaTeX_Caligraphic-Regular.woff2) format('woff2'), url(${r}fonts/KaTeX_Caligraphic-Regular.woff) format('woff'), url(${r}fonts/KaTeX_Caligraphic-Regular.ttf) format('truetype');
|
||
|
|
font-weight: normal;
|
||
|
|
font-style: normal;
|
||
|
|
}
|
||
|
|
@font-face {
|
||
|
|
font-family: 'KaTeX_Fraktur';
|
||
|
|
src: url(${r}fonts/KaTeX_Fraktur-Bold.woff2) format('woff2'), url(${r}fonts/KaTeX_Fraktur-Bold.woff) format('woff'), url(${r}fonts/KaTeX_Fraktur-Bold.ttf) format('truetype');
|
||
|
|
font-weight: bold;
|
||
|
|
font-style: normal;
|
||
|
|
}
|
||
|
|
@font-face {
|
||
|
|
font-family: 'KaTeX_Fraktur';
|
||
|
|
src: url(${r}fonts/KaTeX_Fraktur-Regular.woff2) format('woff2'), url(${r}fonts/KaTeX_Fraktur-Regular.woff) format('woff'), url(${r}fonts/KaTeX_Fraktur-Regular.ttf) format('truetype');
|
||
|
|
font-weight: normal;
|
||
|
|
font-style: normal;
|
||
|
|
}
|
||
|
|
@font-face {
|
||
|
|
font-family: 'KaTeX_Main';
|
||
|
|
src: url(${r}fonts/KaTeX_Main-Bold.woff2) format('woff2'), url(${r}fonts/KaTeX_Main-Bold.woff) format('woff'), url(${r}fonts/KaTeX_Main-Bold.ttf) format('truetype');
|
||
|
|
font-weight: bold;
|
||
|
|
font-style: normal;
|
||
|
|
}
|
||
|
|
@font-face {
|
||
|
|
font-family: 'KaTeX_Main';
|
||
|
|
src: url(${r}fonts/KaTeX_Main-BoldItalic.woff2) format('woff2'), url(${r}fonts/KaTeX_Main-BoldItalic.woff) format('woff'), url(${r}fonts/KaTeX_Main-BoldItalic.ttf) format('truetype');
|
||
|
|
font-weight: bold;
|
||
|
|
font-style: italic;
|
||
|
|
}
|
||
|
|
@font-face {
|
||
|
|
font-family: 'KaTeX_Main';
|
||
|
|
src: url(${r}fonts/KaTeX_Main-Italic.woff2) format('woff2'), url(${r}fonts/KaTeX_Main-Italic.woff) format('woff'), url(${r}fonts/KaTeX_Main-Italic.ttf) format('truetype');
|
||
|
|
font-weight: normal;
|
||
|
|
font-style: italic;
|
||
|
|
}
|
||
|
|
@font-face {
|
||
|
|
font-family: 'KaTeX_Main';
|
||
|
|
src: url(${r}fonts/KaTeX_Main-Regular.woff2) format('woff2'), url(${r}fonts/KaTeX_Main-Regular.woff) format('woff'), url(${r}fonts/KaTeX_Main-Regular.ttf) format('truetype');
|
||
|
|
font-weight: normal;
|
||
|
|
font-style: normal;
|
||
|
|
}
|
||
|
|
@font-face {
|
||
|
|
font-family: 'KaTeX_Math';
|
||
|
|
src: url(${r}fonts/KaTeX_Math-BoldItalic.woff2) format('woff2'), url(${r}fonts/KaTeX_Math-BoldItalic.woff) format('woff'), url(${r}fonts/KaTeX_Math-BoldItalic.ttf) format('truetype');
|
||
|
|
font-weight: bold;
|
||
|
|
font-style: italic;
|
||
|
|
}
|
||
|
|
@font-face {
|
||
|
|
font-family: 'KaTeX_Math';
|
||
|
|
src: url(${r}fonts/KaTeX_Math-Italic.woff2) format('woff2'), url(${r}fonts/KaTeX_Math-Italic.woff) format('woff'), url(${r}fonts/KaTeX_Math-Italic.ttf) format('truetype');
|
||
|
|
font-weight: normal;
|
||
|
|
font-style: italic;
|
||
|
|
}
|
||
|
|
@font-face {
|
||
|
|
font-family: 'KaTeX_SansSerif';
|
||
|
|
src: url(${r}fonts/KaTeX_SansSerif-Bold.woff2) format('woff2'), url(${r}fonts/KaTeX_SansSerif-Bold.woff) format('woff'), url(${r}fonts/KaTeX_SansSerif-Bold.ttf) format('truetype');
|
||
|
|
font-weight: bold;
|
||
|
|
font-style: normal;
|
||
|
|
}
|
||
|
|
@font-face {
|
||
|
|
font-family: 'KaTeX_SansSerif';
|
||
|
|
src: url(${r}fonts/KaTeX_SansSerif-Italic.woff2) format('woff2'), url(${r}fonts/KaTeX_SansSerif-Italic.woff) format('woff'), url(${r}fonts/KaTeX_SansSerif-Italic.ttf) format('truetype');
|
||
|
|
font-weight: normal;
|
||
|
|
font-style: italic;
|
||
|
|
}
|
||
|
|
@font-face {
|
||
|
|
font-family: 'KaTeX_SansSerif';
|
||
|
|
src: url(${r}fonts/KaTeX_SansSerif-Regular.woff2) format('woff2'), url(${r}fonts/KaTeX_SansSerif-Regular.woff) format('woff'), url(${r}fonts/KaTeX_SansSerif-Regular.ttf) format('truetype');
|
||
|
|
font-weight: normal;
|
||
|
|
font-style: normal;
|
||
|
|
}
|
||
|
|
@font-face {
|
||
|
|
font-family: 'KaTeX_Script';
|
||
|
|
src: url(${r}fonts/KaTeX_Script-Regular.woff2) format('woff2'), url(${r}fonts/KaTeX_Script-Regular.woff) format('woff'), url(${r}fonts/KaTeX_Script-Regular.ttf) format('truetype');
|
||
|
|
font-weight: normal;
|
||
|
|
font-style: normal;
|
||
|
|
}
|
||
|
|
@font-face {
|
||
|
|
font-family: 'KaTeX_Size1';
|
||
|
|
src: url(${r}fonts/KaTeX_Size1-Regular.woff2) format('woff2'), url(${r}fonts/KaTeX_Size1-Regular.woff) format('woff'), url(${r}fonts/KaTeX_Size1-Regular.ttf) format('truetype');
|
||
|
|
font-weight: normal;
|
||
|
|
font-style: normal;
|
||
|
|
}
|
||
|
|
@font-face {
|
||
|
|
font-family: 'KaTeX_Size2';
|
||
|
|
src: url(${r}fonts/KaTeX_Size2-Regular.woff2) format('woff2'), url(${r}fonts/KaTeX_Size2-Regular.woff) format('woff'), url(${r}fonts/KaTeX_Size2-Regular.ttf) format('truetype');
|
||
|
|
font-weight: normal;
|
||
|
|
font-style: normal;
|
||
|
|
}
|
||
|
|
@font-face {
|
||
|
|
font-family: 'KaTeX_Size3';
|
||
|
|
src: url(${r}fonts/KaTeX_Size3-Regular.woff2) format('woff2'), url(${r}fonts/KaTeX_Size3-Regular.woff) format('woff'), url(${r}fonts/KaTeX_Size3-Regular.ttf) format('truetype');
|
||
|
|
font-weight: normal;
|
||
|
|
font-style: normal;
|
||
|
|
}
|
||
|
|
@font-face {
|
||
|
|
font-family: 'KaTeX_Size4';
|
||
|
|
src: url(${r}fonts/KaTeX_Size4-Regular.woff2) format('woff2'), url(${r}fonts/KaTeX_Size4-Regular.woff) format('woff'), url(${r}fonts/KaTeX_Size4-Regular.ttf) format('truetype');
|
||
|
|
font-weight: normal;
|
||
|
|
font-style: normal;
|
||
|
|
}
|
||
|
|
@font-face {
|
||
|
|
font-family: 'KaTeX_Typewriter';
|
||
|
|
src: url(${r}fonts/KaTeX_Typewriter-Regular.woff2) format('woff2'), url(${r}fonts/KaTeX_Typewriter-Regular.woff) format('woff'), url(${r}fonts/KaTeX_Typewriter-Regular.ttf) format('truetype');
|
||
|
|
font-weight: normal;
|
||
|
|
font-style: normal;
|
||
|
|
}
|
||
|
|
`,tT=()=>`
|
||
|
|
.katex {
|
||
|
|
font: normal 1.21em KaTeX_Main, Times New Roman, serif;
|
||
|
|
line-height: 1.2;
|
||
|
|
text-indent: 0;
|
||
|
|
text-rendering: auto;
|
||
|
|
}
|
||
|
|
.katex * {
|
||
|
|
-ms-high-contrast-adjust: none !important;
|
||
|
|
}
|
||
|
|
.katex * {
|
||
|
|
border-color: currentColor;
|
||
|
|
}
|
||
|
|
.katex .katex-version::after {
|
||
|
|
content: "0.16.9";
|
||
|
|
}
|
||
|
|
.katex .katex-mathml {
|
||
|
|
/* Accessibility hack to only show to screen readers
|
||
|
|
Found at: http://a11yproject.com/posts/how-to-hide-content/ */
|
||
|
|
position: absolute;
|
||
|
|
clip: rect(1px, 1px, 1px, 1px);
|
||
|
|
padding: 0;
|
||
|
|
border: 0;
|
||
|
|
height: 1px;
|
||
|
|
width: 1px;
|
||
|
|
overflow: hidden;
|
||
|
|
}
|
||
|
|
.katex .katex-html {
|
||
|
|
/*
|
||
|
|
ewline is an empty block at top level, between .base elements */
|
||
|
|
}
|
||
|
|
.katex .katex-html > .newline {
|
||
|
|
display: block;
|
||
|
|
}
|
||
|
|
.katex .base {
|
||
|
|
position: relative;
|
||
|
|
display: inline-block;
|
||
|
|
white-space: nowrap;
|
||
|
|
width: -webkit-min-content;
|
||
|
|
width: -moz-min-content;
|
||
|
|
width: min-content;
|
||
|
|
}
|
||
|
|
.katex .strut {
|
||
|
|
display: inline-block;
|
||
|
|
}
|
||
|
|
.katex .textbf {
|
||
|
|
font-weight: bold;
|
||
|
|
}
|
||
|
|
.katex .textit {
|
||
|
|
font-style: italic;
|
||
|
|
}
|
||
|
|
.katex .textrm {
|
||
|
|
font-family: KaTeX_Main;
|
||
|
|
}
|
||
|
|
.katex .textsf {
|
||
|
|
font-family: KaTeX_SansSerif;
|
||
|
|
}
|
||
|
|
.katex .texttt {
|
||
|
|
font-family: KaTeX_Typewriter;
|
||
|
|
}
|
||
|
|
.katex .mathnormal {
|
||
|
|
font-family: KaTeX_Math;
|
||
|
|
font-style: italic;
|
||
|
|
}
|
||
|
|
.katex .mathit {
|
||
|
|
font-family: KaTeX_Main;
|
||
|
|
font-style: italic;
|
||
|
|
}
|
||
|
|
.katex .mathrm {
|
||
|
|
font-style: normal;
|
||
|
|
}
|
||
|
|
.katex .mathbf {
|
||
|
|
font-family: KaTeX_Main;
|
||
|
|
font-weight: bold;
|
||
|
|
}
|
||
|
|
.katex .boldsymbol {
|
||
|
|
font-family: KaTeX_Math;
|
||
|
|
font-weight: bold;
|
||
|
|
font-style: italic;
|
||
|
|
}
|
||
|
|
.katex .amsrm {
|
||
|
|
font-family: KaTeX_AMS;
|
||
|
|
}
|
||
|
|
.katex .mathbb,
|
||
|
|
.katex .textbb {
|
||
|
|
font-family: KaTeX_AMS;
|
||
|
|
}
|
||
|
|
.katex .mathcal {
|
||
|
|
font-family: KaTeX_Caligraphic;
|
||
|
|
}
|
||
|
|
.katex .mathfrak,
|
||
|
|
.katex .textfrak {
|
||
|
|
font-family: KaTeX_Fraktur;
|
||
|
|
}
|
||
|
|
.katex .mathboldfrak,
|
||
|
|
.katex .textboldfrak {
|
||
|
|
font-family: KaTeX_Fraktur;
|
||
|
|
font-weight: bold;
|
||
|
|
}
|
||
|
|
.katex .mathtt {
|
||
|
|
font-family: KaTeX_Typewriter;
|
||
|
|
}
|
||
|
|
.katex .mathscr,
|
||
|
|
.katex .textscr {
|
||
|
|
font-family: KaTeX_Script;
|
||
|
|
}
|
||
|
|
.katex .mathsf,
|
||
|
|
.katex .textsf {
|
||
|
|
font-family: KaTeX_SansSerif;
|
||
|
|
}
|
||
|
|
.katex .mathboldsf,
|
||
|
|
.katex .textboldsf {
|
||
|
|
font-family: KaTeX_SansSerif;
|
||
|
|
font-weight: bold;
|
||
|
|
}
|
||
|
|
.katex .mathitsf,
|
||
|
|
.katex .textitsf {
|
||
|
|
font-family: KaTeX_SansSerif;
|
||
|
|
font-style: italic;
|
||
|
|
}
|
||
|
|
.katex .mainrm {
|
||
|
|
font-family: KaTeX_Main;
|
||
|
|
font-style: normal;
|
||
|
|
}
|
||
|
|
.katex .vlist-t {
|
||
|
|
display: inline-table;
|
||
|
|
table-layout: fixed;
|
||
|
|
border-collapse: collapse;
|
||
|
|
}
|
||
|
|
.katex .vlist-r {
|
||
|
|
display: table-row;
|
||
|
|
}
|
||
|
|
.katex .vlist {
|
||
|
|
display: table-cell;
|
||
|
|
vertical-align: bottom;
|
||
|
|
position: relative;
|
||
|
|
}
|
||
|
|
.katex .vlist > span {
|
||
|
|
display: block;
|
||
|
|
height: 0;
|
||
|
|
position: relative;
|
||
|
|
}
|
||
|
|
.katex .vlist > span > span {
|
||
|
|
display: inline-block;
|
||
|
|
}
|
||
|
|
.katex .vlist > span > .pstrut {
|
||
|
|
overflow: hidden;
|
||
|
|
width: 0;
|
||
|
|
}
|
||
|
|
.katex .vlist-t2 {
|
||
|
|
margin-right: -2px;
|
||
|
|
}
|
||
|
|
.katex .vlist-s {
|
||
|
|
display: table-cell;
|
||
|
|
vertical-align: bottom;
|
||
|
|
font-size: 1px;
|
||
|
|
width: 2px;
|
||
|
|
min-width: 2px;
|
||
|
|
}
|
||
|
|
.katex .vbox {
|
||
|
|
display: inline-flex;
|
||
|
|
flex-direction: column;
|
||
|
|
align-items: baseline;
|
||
|
|
}
|
||
|
|
.katex .hbox {
|
||
|
|
display: inline-flex;
|
||
|
|
flex-direction: row;
|
||
|
|
width: 100%;
|
||
|
|
}
|
||
|
|
.katex .thinbox {
|
||
|
|
display: inline-flex;
|
||
|
|
flex-direction: row;
|
||
|
|
width: 0;
|
||
|
|
max-width: 0;
|
||
|
|
}
|
||
|
|
.katex .msupsub {
|
||
|
|
text-align: left;
|
||
|
|
}
|
||
|
|
.katex .mfrac > span > span {
|
||
|
|
text-align: center;
|
||
|
|
}
|
||
|
|
.katex .mfrac .frac-line {
|
||
|
|
display: inline-block;
|
||
|
|
width: 100%;
|
||
|
|
border-bottom-style: solid;
|
||
|
|
}
|
||
|
|
.katex .mfrac .frac-line,
|
||
|
|
.katex .overline .overline-line,
|
||
|
|
.katex .underline .underline-line,
|
||
|
|
.katex .hline,
|
||
|
|
.katex .hdashline,
|
||
|
|
.katex .rule {
|
||
|
|
min-height: 1px;
|
||
|
|
}
|
||
|
|
.katex .mspace {
|
||
|
|
display: inline-block;
|
||
|
|
}
|
||
|
|
.katex .llap,
|
||
|
|
.katex .rlap,
|
||
|
|
.katex .clap {
|
||
|
|
width: 0;
|
||
|
|
position: relative;
|
||
|
|
}
|
||
|
|
.katex .llap > .inner,
|
||
|
|
.katex .rlap > .inner,
|
||
|
|
.katex .clap > .inner {
|
||
|
|
position: absolute;
|
||
|
|
}
|
||
|
|
.katex .llap > .fix,
|
||
|
|
.katex .rlap > .fix,
|
||
|
|
.katex .clap > .fix {
|
||
|
|
display: inline-block;
|
||
|
|
}
|
||
|
|
.katex .llap > .inner {
|
||
|
|
right: 0;
|
||
|
|
}
|
||
|
|
.katex .rlap > .inner,
|
||
|
|
.katex .clap > .inner {
|
||
|
|
left: 0;
|
||
|
|
}
|
||
|
|
.katex .clap > .inner > span {
|
||
|
|
margin-left: -50%;
|
||
|
|
margin-right: 50%;
|
||
|
|
}
|
||
|
|
.katex .rule {
|
||
|
|
display: inline-block;
|
||
|
|
border: solid 0;
|
||
|
|
position: relative;
|
||
|
|
}
|
||
|
|
.katex .overline .overline-line,
|
||
|
|
.katex .underline .underline-line,
|
||
|
|
.katex .hline {
|
||
|
|
display: inline-block;
|
||
|
|
width: 100%;
|
||
|
|
border-bottom-style: solid;
|
||
|
|
}
|
||
|
|
.katex .hdashline {
|
||
|
|
display: inline-block;
|
||
|
|
width: 100%;
|
||
|
|
border-bottom-style: dashed;
|
||
|
|
}
|
||
|
|
.katex .sqrt > .root {
|
||
|
|
margin-left: 0.27777778em;
|
||
|
|
margin-right: -0.55555556em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size1.size1,
|
||
|
|
.katex .fontsize-ensurer.reset-size1.size1 {
|
||
|
|
font-size: 1em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size1.size2,
|
||
|
|
.katex .fontsize-ensurer.reset-size1.size2 {
|
||
|
|
font-size: 1.2em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size1.size3,
|
||
|
|
.katex .fontsize-ensurer.reset-size1.size3 {
|
||
|
|
font-size: 1.4em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size1.size4,
|
||
|
|
.katex .fontsize-ensurer.reset-size1.size4 {
|
||
|
|
font-size: 1.6em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size1.size5,
|
||
|
|
.katex .fontsize-ensurer.reset-size1.size5 {
|
||
|
|
font-size: 1.8em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size1.size6,
|
||
|
|
.katex .fontsize-ensurer.reset-size1.size6 {
|
||
|
|
font-size: 2em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size1.size7,
|
||
|
|
.katex .fontsize-ensurer.reset-size1.size7 {
|
||
|
|
font-size: 2.4em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size1.size8,
|
||
|
|
.katex .fontsize-ensurer.reset-size1.size8 {
|
||
|
|
font-size: 2.88em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size1.size9,
|
||
|
|
.katex .fontsize-ensurer.reset-size1.size9 {
|
||
|
|
font-size: 3.456em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size1.size10,
|
||
|
|
.katex .fontsize-ensurer.reset-size1.size10 {
|
||
|
|
font-size: 4.148em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size1.size11,
|
||
|
|
.katex .fontsize-ensurer.reset-size1.size11 {
|
||
|
|
font-size: 4.976em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size2.size1,
|
||
|
|
.katex .fontsize-ensurer.reset-size2.size1 {
|
||
|
|
font-size: 0.83333333em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size2.size2,
|
||
|
|
.katex .fontsize-ensurer.reset-size2.size2 {
|
||
|
|
font-size: 1em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size2.size3,
|
||
|
|
.katex .fontsize-ensurer.reset-size2.size3 {
|
||
|
|
font-size: 1.16666667em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size2.size4,
|
||
|
|
.katex .fontsize-ensurer.reset-size2.size4 {
|
||
|
|
font-size: 1.33333333em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size2.size5,
|
||
|
|
.katex .fontsize-ensurer.reset-size2.size5 {
|
||
|
|
font-size: 1.5em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size2.size6,
|
||
|
|
.katex .fontsize-ensurer.reset-size2.size6 {
|
||
|
|
font-size: 1.66666667em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size2.size7,
|
||
|
|
.katex .fontsize-ensurer.reset-size2.size7 {
|
||
|
|
font-size: 2em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size2.size8,
|
||
|
|
.katex .fontsize-ensurer.reset-size2.size8 {
|
||
|
|
font-size: 2.4em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size2.size9,
|
||
|
|
.katex .fontsize-ensurer.reset-size2.size9 {
|
||
|
|
font-size: 2.88em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size2.size10,
|
||
|
|
.katex .fontsize-ensurer.reset-size2.size10 {
|
||
|
|
font-size: 3.45666667em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size2.size11,
|
||
|
|
.katex .fontsize-ensurer.reset-size2.size11 {
|
||
|
|
font-size: 4.14666667em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size3.size1,
|
||
|
|
.katex .fontsize-ensurer.reset-size3.size1 {
|
||
|
|
font-size: 0.71428571em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size3.size2,
|
||
|
|
.katex .fontsize-ensurer.reset-size3.size2 {
|
||
|
|
font-size: 0.85714286em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size3.size3,
|
||
|
|
.katex .fontsize-ensurer.reset-size3.size3 {
|
||
|
|
font-size: 1em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size3.size4,
|
||
|
|
.katex .fontsize-ensurer.reset-size3.size4 {
|
||
|
|
font-size: 1.14285714em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size3.size5,
|
||
|
|
.katex .fontsize-ensurer.reset-size3.size5 {
|
||
|
|
font-size: 1.28571429em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size3.size6,
|
||
|
|
.katex .fontsize-ensurer.reset-size3.size6 {
|
||
|
|
font-size: 1.42857143em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size3.size7,
|
||
|
|
.katex .fontsize-ensurer.reset-size3.size7 {
|
||
|
|
font-size: 1.71428571em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size3.size8,
|
||
|
|
.katex .fontsize-ensurer.reset-size3.size8 {
|
||
|
|
font-size: 2.05714286em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size3.size9,
|
||
|
|
.katex .fontsize-ensurer.reset-size3.size9 {
|
||
|
|
font-size: 2.46857143em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size3.size10,
|
||
|
|
.katex .fontsize-ensurer.reset-size3.size10 {
|
||
|
|
font-size: 2.96285714em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size3.size11,
|
||
|
|
.katex .fontsize-ensurer.reset-size3.size11 {
|
||
|
|
font-size: 3.55428571em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size4.size1,
|
||
|
|
.katex .fontsize-ensurer.reset-size4.size1 {
|
||
|
|
font-size: 0.625em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size4.size2,
|
||
|
|
.katex .fontsize-ensurer.reset-size4.size2 {
|
||
|
|
font-size: 0.75em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size4.size3,
|
||
|
|
.katex .fontsize-ensurer.reset-size4.size3 {
|
||
|
|
font-size: 0.875em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size4.size4,
|
||
|
|
.katex .fontsize-ensurer.reset-size4.size4 {
|
||
|
|
font-size: 1em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size4.size5,
|
||
|
|
.katex .fontsize-ensurer.reset-size4.size5 {
|
||
|
|
font-size: 1.125em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size4.size6,
|
||
|
|
.katex .fontsize-ensurer.reset-size4.size6 {
|
||
|
|
font-size: 1.25em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size4.size7,
|
||
|
|
.katex .fontsize-ensurer.reset-size4.size7 {
|
||
|
|
font-size: 1.5em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size4.size8,
|
||
|
|
.katex .fontsize-ensurer.reset-size4.size8 {
|
||
|
|
font-size: 1.8em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size4.size9,
|
||
|
|
.katex .fontsize-ensurer.reset-size4.size9 {
|
||
|
|
font-size: 2.16em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size4.size10,
|
||
|
|
.katex .fontsize-ensurer.reset-size4.size10 {
|
||
|
|
font-size: 2.5925em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size4.size11,
|
||
|
|
.katex .fontsize-ensurer.reset-size4.size11 {
|
||
|
|
font-size: 3.11em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size5.size1,
|
||
|
|
.katex .fontsize-ensurer.reset-size5.size1 {
|
||
|
|
font-size: 0.55555556em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size5.size2,
|
||
|
|
.katex .fontsize-ensurer.reset-size5.size2 {
|
||
|
|
font-size: 0.66666667em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size5.size3,
|
||
|
|
.katex .fontsize-ensurer.reset-size5.size3 {
|
||
|
|
font-size: 0.77777778em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size5.size4,
|
||
|
|
.katex .fontsize-ensurer.reset-size5.size4 {
|
||
|
|
font-size: 0.88888889em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size5.size5,
|
||
|
|
.katex .fontsize-ensurer.reset-size5.size5 {
|
||
|
|
font-size: 1em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size5.size6,
|
||
|
|
.katex .fontsize-ensurer.reset-size5.size6 {
|
||
|
|
font-size: 1.11111111em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size5.size7,
|
||
|
|
.katex .fontsize-ensurer.reset-size5.size7 {
|
||
|
|
font-size: 1.33333333em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size5.size8,
|
||
|
|
.katex .fontsize-ensurer.reset-size5.size8 {
|
||
|
|
font-size: 1.6em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size5.size9,
|
||
|
|
.katex .fontsize-ensurer.reset-size5.size9 {
|
||
|
|
font-size: 1.92em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size5.size10,
|
||
|
|
.katex .fontsize-ensurer.reset-size5.size10 {
|
||
|
|
font-size: 2.30444444em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size5.size11,
|
||
|
|
.katex .fontsize-ensurer.reset-size5.size11 {
|
||
|
|
font-size: 2.76444444em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size6.size1,
|
||
|
|
.katex .fontsize-ensurer.reset-size6.size1 {
|
||
|
|
font-size: 0.5em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size6.size2,
|
||
|
|
.katex .fontsize-ensurer.reset-size6.size2 {
|
||
|
|
font-size: 0.6em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size6.size3,
|
||
|
|
.katex .fontsize-ensurer.reset-size6.size3 {
|
||
|
|
font-size: 0.7em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size6.size4,
|
||
|
|
.katex .fontsize-ensurer.reset-size6.size4 {
|
||
|
|
font-size: 0.8em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size6.size5,
|
||
|
|
.katex .fontsize-ensurer.reset-size6.size5 {
|
||
|
|
font-size: 0.9em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size6.size6,
|
||
|
|
.katex .fontsize-ensurer.reset-size6.size6 {
|
||
|
|
font-size: 1em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size6.size7,
|
||
|
|
.katex .fontsize-ensurer.reset-size6.size7 {
|
||
|
|
font-size: 1.2em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size6.size8,
|
||
|
|
.katex .fontsize-ensurer.reset-size6.size8 {
|
||
|
|
font-size: 1.44em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size6.size9,
|
||
|
|
.katex .fontsize-ensurer.reset-size6.size9 {
|
||
|
|
font-size: 1.728em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size6.size10,
|
||
|
|
.katex .fontsize-ensurer.reset-size6.size10 {
|
||
|
|
font-size: 2.074em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size6.size11,
|
||
|
|
.katex .fontsize-ensurer.reset-size6.size11 {
|
||
|
|
font-size: 2.488em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size7.size1,
|
||
|
|
.katex .fontsize-ensurer.reset-size7.size1 {
|
||
|
|
font-size: 0.41666667em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size7.size2,
|
||
|
|
.katex .fontsize-ensurer.reset-size7.size2 {
|
||
|
|
font-size: 0.5em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size7.size3,
|
||
|
|
.katex .fontsize-ensurer.reset-size7.size3 {
|
||
|
|
font-size: 0.58333333em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size7.size4,
|
||
|
|
.katex .fontsize-ensurer.reset-size7.size4 {
|
||
|
|
font-size: 0.66666667em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size7.size5,
|
||
|
|
.katex .fontsize-ensurer.reset-size7.size5 {
|
||
|
|
font-size: 0.75em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size7.size6,
|
||
|
|
.katex .fontsize-ensurer.reset-size7.size6 {
|
||
|
|
font-size: 0.83333333em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size7.size7,
|
||
|
|
.katex .fontsize-ensurer.reset-size7.size7 {
|
||
|
|
font-size: 1em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size7.size8,
|
||
|
|
.katex .fontsize-ensurer.reset-size7.size8 {
|
||
|
|
font-size: 1.2em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size7.size9,
|
||
|
|
.katex .fontsize-ensurer.reset-size7.size9 {
|
||
|
|
font-size: 1.44em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size7.size10,
|
||
|
|
.katex .fontsize-ensurer.reset-size7.size10 {
|
||
|
|
font-size: 1.72833333em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size7.size11,
|
||
|
|
.katex .fontsize-ensurer.reset-size7.size11 {
|
||
|
|
font-size: 2.07333333em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size8.size1,
|
||
|
|
.katex .fontsize-ensurer.reset-size8.size1 {
|
||
|
|
font-size: 0.34722222em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size8.size2,
|
||
|
|
.katex .fontsize-ensurer.reset-size8.size2 {
|
||
|
|
font-size: 0.41666667em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size8.size3,
|
||
|
|
.katex .fontsize-ensurer.reset-size8.size3 {
|
||
|
|
font-size: 0.48611111em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size8.size4,
|
||
|
|
.katex .fontsize-ensurer.reset-size8.size4 {
|
||
|
|
font-size: 0.55555556em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size8.size5,
|
||
|
|
.katex .fontsize-ensurer.reset-size8.size5 {
|
||
|
|
font-size: 0.625em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size8.size6,
|
||
|
|
.katex .fontsize-ensurer.reset-size8.size6 {
|
||
|
|
font-size: 0.69444444em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size8.size7,
|
||
|
|
.katex .fontsize-ensurer.reset-size8.size7 {
|
||
|
|
font-size: 0.83333333em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size8.size8,
|
||
|
|
.katex .fontsize-ensurer.reset-size8.size8 {
|
||
|
|
font-size: 1em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size8.size9,
|
||
|
|
.katex .fontsize-ensurer.reset-size8.size9 {
|
||
|
|
font-size: 1.2em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size8.size10,
|
||
|
|
.katex .fontsize-ensurer.reset-size8.size10 {
|
||
|
|
font-size: 1.44027778em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size8.size11,
|
||
|
|
.katex .fontsize-ensurer.reset-size8.size11 {
|
||
|
|
font-size: 1.72777778em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size9.size1,
|
||
|
|
.katex .fontsize-ensurer.reset-size9.size1 {
|
||
|
|
font-size: 0.28935185em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size9.size2,
|
||
|
|
.katex .fontsize-ensurer.reset-size9.size2 {
|
||
|
|
font-size: 0.34722222em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size9.size3,
|
||
|
|
.katex .fontsize-ensurer.reset-size9.size3 {
|
||
|
|
font-size: 0.40509259em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size9.size4,
|
||
|
|
.katex .fontsize-ensurer.reset-size9.size4 {
|
||
|
|
font-size: 0.46296296em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size9.size5,
|
||
|
|
.katex .fontsize-ensurer.reset-size9.size5 {
|
||
|
|
font-size: 0.52083333em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size9.size6,
|
||
|
|
.katex .fontsize-ensurer.reset-size9.size6 {
|
||
|
|
font-size: 0.5787037em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size9.size7,
|
||
|
|
.katex .fontsize-ensurer.reset-size9.size7 {
|
||
|
|
font-size: 0.69444444em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size9.size8,
|
||
|
|
.katex .fontsize-ensurer.reset-size9.size8 {
|
||
|
|
font-size: 0.83333333em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size9.size9,
|
||
|
|
.katex .fontsize-ensurer.reset-size9.size9 {
|
||
|
|
font-size: 1em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size9.size10,
|
||
|
|
.katex .fontsize-ensurer.reset-size9.size10 {
|
||
|
|
font-size: 1.20023148em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size9.size11,
|
||
|
|
.katex .fontsize-ensurer.reset-size9.size11 {
|
||
|
|
font-size: 1.43981481em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size10.size1,
|
||
|
|
.katex .fontsize-ensurer.reset-size10.size1 {
|
||
|
|
font-size: 0.24108004em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size10.size2,
|
||
|
|
.katex .fontsize-ensurer.reset-size10.size2 {
|
||
|
|
font-size: 0.28929605em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size10.size3,
|
||
|
|
.katex .fontsize-ensurer.reset-size10.size3 {
|
||
|
|
font-size: 0.33751205em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size10.size4,
|
||
|
|
.katex .fontsize-ensurer.reset-size10.size4 {
|
||
|
|
font-size: 0.38572806em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size10.size5,
|
||
|
|
.katex .fontsize-ensurer.reset-size10.size5 {
|
||
|
|
font-size: 0.43394407em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size10.size6,
|
||
|
|
.katex .fontsize-ensurer.reset-size10.size6 {
|
||
|
|
font-size: 0.48216008em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size10.size7,
|
||
|
|
.katex .fontsize-ensurer.reset-size10.size7 {
|
||
|
|
font-size: 0.57859209em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size10.size8,
|
||
|
|
.katex .fontsize-ensurer.reset-size10.size8 {
|
||
|
|
font-size: 0.69431051em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size10.size9,
|
||
|
|
.katex .fontsize-ensurer.reset-size10.size9 {
|
||
|
|
font-size: 0.83317261em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size10.size10,
|
||
|
|
.katex .fontsize-ensurer.reset-size10.size10 {
|
||
|
|
font-size: 1em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size10.size11,
|
||
|
|
.katex .fontsize-ensurer.reset-size10.size11 {
|
||
|
|
font-size: 1.19961427em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size11.size1,
|
||
|
|
.katex .fontsize-ensurer.reset-size11.size1 {
|
||
|
|
font-size: 0.20096463em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size11.size2,
|
||
|
|
.katex .fontsize-ensurer.reset-size11.size2 {
|
||
|
|
font-size: 0.24115756em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size11.size3,
|
||
|
|
.katex .fontsize-ensurer.reset-size11.size3 {
|
||
|
|
font-size: 0.28135048em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size11.size4,
|
||
|
|
.katex .fontsize-ensurer.reset-size11.size4 {
|
||
|
|
font-size: 0.32154341em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size11.size5,
|
||
|
|
.katex .fontsize-ensurer.reset-size11.size5 {
|
||
|
|
font-size: 0.36173633em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size11.size6,
|
||
|
|
.katex .fontsize-ensurer.reset-size11.size6 {
|
||
|
|
font-size: 0.40192926em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size11.size7,
|
||
|
|
.katex .fontsize-ensurer.reset-size11.size7 {
|
||
|
|
font-size: 0.48231511em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size11.size8,
|
||
|
|
.katex .fontsize-ensurer.reset-size11.size8 {
|
||
|
|
font-size: 0.57877814em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size11.size9,
|
||
|
|
.katex .fontsize-ensurer.reset-size11.size9 {
|
||
|
|
font-size: 0.69453376em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size11.size10,
|
||
|
|
.katex .fontsize-ensurer.reset-size11.size10 {
|
||
|
|
font-size: 0.83360129em;
|
||
|
|
}
|
||
|
|
.katex .sizing.reset-size11.size11,
|
||
|
|
.katex .fontsize-ensurer.reset-size11.size11 {
|
||
|
|
font-size: 1em;
|
||
|
|
}
|
||
|
|
.katex .delimsizing.size1 {
|
||
|
|
font-family: KaTeX_Size1;
|
||
|
|
}
|
||
|
|
.katex .delimsizing.size2 {
|
||
|
|
font-family: KaTeX_Size2;
|
||
|
|
}
|
||
|
|
.katex .delimsizing.size3 {
|
||
|
|
font-family: KaTeX_Size3;
|
||
|
|
}
|
||
|
|
.katex .delimsizing.size4 {
|
||
|
|
font-family: KaTeX_Size4;
|
||
|
|
}
|
||
|
|
.katex .delimsizing.mult .delim-size1 > span {
|
||
|
|
font-family: KaTeX_Size1;
|
||
|
|
}
|
||
|
|
.katex .delimsizing.mult .delim-size4 > span {
|
||
|
|
font-family: KaTeX_Size4;
|
||
|
|
}
|
||
|
|
.katex .nulldelimiter {
|
||
|
|
display: inline-block;
|
||
|
|
width: 0.12em;
|
||
|
|
}
|
||
|
|
.katex .delimcenter {
|
||
|
|
position: relative;
|
||
|
|
}
|
||
|
|
.katex .op-symbol {
|
||
|
|
position: relative;
|
||
|
|
}
|
||
|
|
.katex .op-symbol.small-op {
|
||
|
|
font-family: KaTeX_Size1;
|
||
|
|
}
|
||
|
|
.katex .op-symbol.large-op {
|
||
|
|
font-family: KaTeX_Size2;
|
||
|
|
}
|
||
|
|
.katex .op-limits > .vlist-t {
|
||
|
|
text-align: center;
|
||
|
|
}
|
||
|
|
.katex .accent > .vlist-t {
|
||
|
|
text-align: center;
|
||
|
|
}
|
||
|
|
.katex .accent .accent-body {
|
||
|
|
position: relative;
|
||
|
|
}
|
||
|
|
.katex .accent .accent-body:not(.accent-full) {
|
||
|
|
width: 0;
|
||
|
|
}
|
||
|
|
.katex .overlay {
|
||
|
|
display: block;
|
||
|
|
}
|
||
|
|
.katex .mtable .vertical-separator {
|
||
|
|
display: inline-block;
|
||
|
|
min-width: 1px;
|
||
|
|
}
|
||
|
|
.katex .mtable .arraycolsep {
|
||
|
|
display: inline-block;
|
||
|
|
}
|
||
|
|
.katex .mtable .col-align-c > .vlist-t {
|
||
|
|
text-align: center;
|
||
|
|
}
|
||
|
|
.katex .mtable .col-align-l > .vlist-t {
|
||
|
|
text-align: left;
|
||
|
|
}
|
||
|
|
.katex .mtable .col-align-r > .vlist-t {
|
||
|
|
text-align: right;
|
||
|
|
}
|
||
|
|
.katex .svg-align {
|
||
|
|
text-align: left;
|
||
|
|
}
|
||
|
|
.katex svg {
|
||
|
|
display: block;
|
||
|
|
position: absolute;
|
||
|
|
width: 100%;
|
||
|
|
height: inherit;
|
||
|
|
fill: currentColor;
|
||
|
|
stroke: currentColor;
|
||
|
|
fill-rule: nonzero;
|
||
|
|
fill-opacity: 1;
|
||
|
|
stroke-width: 1;
|
||
|
|
stroke-linecap: butt;
|
||
|
|
stroke-linejoin: miter;
|
||
|
|
stroke-miterlimit: 4;
|
||
|
|
stroke-dasharray: none;
|
||
|
|
stroke-dashoffset: 0;
|
||
|
|
stroke-opacity: 1;
|
||
|
|
}
|
||
|
|
.katex svg path {
|
||
|
|
stroke: none;
|
||
|
|
}
|
||
|
|
.katex img {
|
||
|
|
border-style: none;
|
||
|
|
min-width: 0;
|
||
|
|
min-height: 0;
|
||
|
|
max-width: none;
|
||
|
|
max-height: none;
|
||
|
|
}
|
||
|
|
.katex .stretchy {
|
||
|
|
width: 100%;
|
||
|
|
display: block;
|
||
|
|
position: relative;
|
||
|
|
overflow: hidden;
|
||
|
|
}
|
||
|
|
.katex .stretchy::before,
|
||
|
|
.katex .stretchy::after {
|
||
|
|
content: "";
|
||
|
|
}
|
||
|
|
.katex .hide-tail {
|
||
|
|
width: 100%;
|
||
|
|
position: relative;
|
||
|
|
overflow: hidden;
|
||
|
|
}
|
||
|
|
.katex .halfarrow-left {
|
||
|
|
position: absolute;
|
||
|
|
left: 0;
|
||
|
|
width: 50.2%;
|
||
|
|
overflow: hidden;
|
||
|
|
}
|
||
|
|
.katex .halfarrow-right {
|
||
|
|
position: absolute;
|
||
|
|
right: 0;
|
||
|
|
width: 50.2%;
|
||
|
|
overflow: hidden;
|
||
|
|
}
|
||
|
|
.katex .brace-left {
|
||
|
|
position: absolute;
|
||
|
|
left: 0;
|
||
|
|
width: 25.1%;
|
||
|
|
overflow: hidden;
|
||
|
|
}
|
||
|
|
.katex .brace-center {
|
||
|
|
position: absolute;
|
||
|
|
left: 25%;
|
||
|
|
width: 50%;
|
||
|
|
overflow: hidden;
|
||
|
|
}
|
||
|
|
.katex .brace-right {
|
||
|
|
position: absolute;
|
||
|
|
right: 0;
|
||
|
|
width: 25.1%;
|
||
|
|
overflow: hidden;
|
||
|
|
}
|
||
|
|
.katex .x-arrow-pad {
|
||
|
|
padding: 0 0.5em;
|
||
|
|
}
|
||
|
|
.katex .cd-arrow-pad {
|
||
|
|
padding: 0 0.55556em 0 0.27778em;
|
||
|
|
}
|
||
|
|
.katex .x-arrow,
|
||
|
|
.katex .mover,
|
||
|
|
.katex .munder {
|
||
|
|
text-align: center;
|
||
|
|
}
|
||
|
|
.katex .boxpad {
|
||
|
|
padding: 0 0.3em;
|
||
|
|
}
|
||
|
|
.katex .fbox,
|
||
|
|
.katex .fcolorbox {
|
||
|
|
box-sizing: border-box;
|
||
|
|
border: 0.04em solid;
|
||
|
|
}
|
||
|
|
.katex .cancel-pad {
|
||
|
|
padding: 0 0.2em;
|
||
|
|
}
|
||
|
|
.katex .cancel-lap {
|
||
|
|
margin-left: -0.2em;
|
||
|
|
margin-right: -0.2em;
|
||
|
|
}
|
||
|
|
.katex .sout {
|
||
|
|
border-bottom-style: solid;
|
||
|
|
border-bottom-width: 0.08em;
|
||
|
|
}
|
||
|
|
.katex .angl {
|
||
|
|
box-sizing: border-box;
|
||
|
|
border-top: 0.049em solid;
|
||
|
|
border-right: 0.049em solid;
|
||
|
|
margin-right: 0.03889em;
|
||
|
|
}
|
||
|
|
.katex .anglpad {
|
||
|
|
padding: 0 0.03889em;
|
||
|
|
}
|
||
|
|
.katex .eqn-num::before {
|
||
|
|
counter-increment: katexEqnNo;
|
||
|
|
content: "(" counter(katexEqnNo) ")";
|
||
|
|
}
|
||
|
|
.katex .mml-eqn-num::before {
|
||
|
|
counter-increment: mmlEqnNo;
|
||
|
|
content: "(" counter(mmlEqnNo) ")";
|
||
|
|
}
|
||
|
|
.katex .mtr-glue {
|
||
|
|
width: 50%;
|
||
|
|
}
|
||
|
|
.katex .cd-vert-arrow {
|
||
|
|
display: inline-block;
|
||
|
|
position: relative;
|
||
|
|
}
|
||
|
|
.katex .cd-label-left {
|
||
|
|
display: inline-block;
|
||
|
|
position: absolute;
|
||
|
|
right: calc(50% + 0.3em);
|
||
|
|
text-align: left;
|
||
|
|
}
|
||
|
|
.katex .cd-label-right {
|
||
|
|
display: inline-block;
|
||
|
|
position: absolute;
|
||
|
|
left: calc(50% + 0.3em);
|
||
|
|
text-align: right;
|
||
|
|
}
|
||
|
|
.katex-display {
|
||
|
|
display: block;
|
||
|
|
margin: 1em 0;
|
||
|
|
text-align: center;
|
||
|
|
}
|
||
|
|
.katex-display > .katex {
|
||
|
|
display: block;
|
||
|
|
text-align: center;
|
||
|
|
white-space: nowrap;
|
||
|
|
}
|
||
|
|
.katex-display > .katex > .katex-html {
|
||
|
|
display: block;
|
||
|
|
position: relative;
|
||
|
|
}
|
||
|
|
.katex-display > .katex > .katex-html > .tag {
|
||
|
|
position: absolute;
|
||
|
|
right: 0;
|
||
|
|
}
|
||
|
|
.katex-display.leqno > .katex > .katex-html > .tag {
|
||
|
|
left: 0;
|
||
|
|
right: auto;
|
||
|
|
}
|
||
|
|
.katex-display.fleqn > .katex {
|
||
|
|
text-align: left;
|
||
|
|
padding-left: 2em;
|
||
|
|
}
|
||
|
|
body {
|
||
|
|
counter-reset: katexEqnNo mmlEqnNo;
|
||
|
|
}
|
||
|
|
`;var k5=!1,rT=ni.import("formats/formula"),q3=class{constructor(e){this.opt=e,this.mindMap=e.mindMap,window.katex=wm,this.init(),this.config=this.getKatexConfig(),this.cssEl=null,this.addStyle(),this.extendQuill(),this.onDestroy=this.onDestroy.bind(this),this.mindMap.on("beforeDestroy",this.onDestroy)}onDestroy(){Object.getPrototypeOf(this.mindMap).constructor.instanceCount<=1&&(k5=!1,ni.register("formats/formula",rT,!0))}init(){this.mindMap.opt.enableEditFormulaInRichTextEdit&&(this.mindMap.opt.transformRichTextOnEnterEdit=this.latexRichToText.bind(this),this.mindMap.opt.beforeHideRichTextEdit=this.formatLatex.bind(this))}getKatexConfig(){let e={throwOnError:!1,errorColor:"#f00",output:"mathml"},{getKatexOutputType:t}=this.mindMap.opt;t=t||function(){let n=F9();if(n&&n<=100)return"html"};let i=t()||"mathml";return e.output=["mathml","html"].includes(i)?i:"mathml",e}extendQuill(){if(k5)return;k5=!0;let e=this;class t extends rT{static create(n){let s=super.create(n);return typeof n=="string"&&(wm.render(n,s,e.config),s.setAttribute("data-value",Dn(n))),s}}ni.register("formats/formula",t,!0)}getStyleText(){let{katexFontPath:e}=this.mindMap.opt,t="";return this.config.output==="html"&&(t=eT(e)),t+=tT(),t}addStyle(){this.cssEl=document.createElement("style"),this.cssEl.type="text/css",this.cssEl.innerHTML=this.getStyleText(),document.head.appendChild(this.cssEl)}removeStyle(){document.head.removeChild(this.cssEl)}insertFormulaToNode(e,t){let i=this.mindMap.richText;i.showEditText({node:e}),i.quill.insertEmbed(i.quill.getLength()-1,"formula",t),i.hideEditText([e])}latexRichToText(e){if(e.indexOf('class="ql-formula"')!==-1){let n=new DOMParser().parseFromString(e,"text/html").getElementsByClassName("ql-formula");for(let s of n)e=e.replace(s.outerHTML,`$${s.getAttribute("data-value")}$`);this.mindMap.opt.openRealtimeRenderOnNodeTextEdit&&setTimeout(()=>{this.mindMap.emit("node_text_edit_change",{node:this.mindMap.richText.node,text:this.mindMap.richText.getEditText(),richText:!0})},0)}return e}formatLatex(e){let t=e.quill.getContents(),i=t.ops,n=!1;for(let s=i.length-1;s>=0;s--){let o=i[s].insert;if(o&&typeof o!="object"&&o!==`
|
||
|
|
`&&/\$.+?\$/g.test(o)){let l=[...o.matchAll(/\$.+?\$/g)],h=o.split(/\$.+?\$/g);for(let c=l.length-1;c>=0;c--){let u=l[c]&&l[c][0]&&l[c][0].slice(1,-1)||null;u!==null&&u.trim().length>0&&this.checkFormulaIsLegal(u)?(h.splice(c+1,0,{insert:{formula:u}}),n=!0):h.splice(c+1,0,"")}for(;h.length>0;){let c=h.pop();if(typeof c=="string"){if(c.length<1)continue;c={insert:c}}c.attributes=i[s].attributes,i.splice(s+1,0,c)}i.splice(s,1)}}n&&e.quill.setContents(t)}checkFormulaIsLegal(e){try{return wm.renderToString(e),!0}catch(t){return!1}}beforePluginRemove(){this.removeStyle(),this.mindMap.off("beforeDestroy",this.onDestroy)}beforePluginDestroy(){this.removeStyle(),this.mindMap.off("beforeDestroy",this.onDestroy)}};q3.instanceName="formula";var iT=q3;var sT=mr(bn());var nT=!1,Ld=["\u5B8B\u4F53, SimSun, Songti SC","\u5FAE\u8F6F\u96C5\u9ED1, Microsoft YaHei","\u6977\u4F53, \u6977\u4F53_GB2312, SimKai, STKaiti","\u9ED1\u4F53, SimHei, Heiti SC","\u96B6\u4E66, SimLi","andale mono","arial, helvetica, sans-serif","arial black, avant garde","comic sans ms","impact, chicago","times new roman","sans-serif","serif"],D5=new Array(100).fill(0).map((r,e)=>e+"px"),Od="ql-editor",U3=class{constructor({mindMap:e,pluginOpt:t}){this.mindMap=e,this.pluginOpt=t,this.textEditNode=null,this.showTextEdit=!1,this.quill=null,this.range=null,this.lastRange=null,this.pasteUseRange=null,this.node=null,this.isInserting=!1,this.styleEl=null,this.cacheEditingText="",this.isCompositing=!1,this.textNodePaddingX=6,this.textNodePaddingY=4,this.mindMap.addEditNodeClass(Od),this.initOpt(),this.extendQuill(),this.appendCss(),this.bindEvent(),this.handleDataToRichTextOnInit()}bindEvent(){this.onCompositionStart=this.onCompositionStart.bind(this),this.onCompositionUpdate=this.onCompositionUpdate.bind(this),this.onCompositionEnd=this.onCompositionEnd.bind(this),this.handleSetData=this.handleSetData.bind(this),window.addEventListener("compositionstart",this.onCompositionStart),window.addEventListener("compositionupdate",this.onCompositionUpdate),window.addEventListener("compositionend",this.onCompositionEnd),this.mindMap.on("before_update_data",this.handleSetData),this.mindMap.on("before_set_data",this.handleSetData)}unbindEvent(){window.removeEventListener("compositionstart",this.onCompositionStart),window.removeEventListener("compositionupdate",this.onCompositionUpdate),window.removeEventListener("compositionend",this.onCompositionEnd),this.mindMap.off("before_update_data",this.handleSetData),this.mindMap.off("before_set_data",this.handleSetData)}appendCss(){this.mindMap.appendCss("richText",`
|
||
|
|
.smm-richtext-node-wrap {
|
||
|
|
word-break: break-all;
|
||
|
|
user-select: none;
|
||
|
|
}
|
||
|
|
|
||
|
|
.ql-editor .ql-align-left,
|
||
|
|
.smm-richtext-node-wrap .ql-align-left {
|
||
|
|
text-align: left;
|
||
|
|
}
|
||
|
|
|
||
|
|
.smm-richtext-node-wrap .ql-align-right {
|
||
|
|
text-align: right;
|
||
|
|
}
|
||
|
|
|
||
|
|
.smm-richtext-node-wrap .ql-align-center {
|
||
|
|
text-align: center;
|
||
|
|
}
|
||
|
|
.ql-editor p{
|
||
|
|
margin: 0;
|
||
|
|
}
|
||
|
|
`);let e=`
|
||
|
|
.${Od} {
|
||
|
|
overflow: hidden;
|
||
|
|
padding: 0;
|
||
|
|
height: auto;
|
||
|
|
line-height: 1.2;
|
||
|
|
-webkit-user-select: text;
|
||
|
|
text-align: inherit;
|
||
|
|
}
|
||
|
|
|
||
|
|
.ql-container {
|
||
|
|
height: auto;
|
||
|
|
font-size: inherit;
|
||
|
|
}
|
||
|
|
|
||
|
|
.ql-container.ql-snow {
|
||
|
|
border: none;
|
||
|
|
}
|
||
|
|
`;this.styleEl=document.createElement("style"),this.styleEl.type="text/css",this.styleEl.innerHTML=e,document.head.appendChild(this.styleEl)}initOpt(){this.pluginOpt.fontFamilyList&&Array.isArray(this.pluginOpt.fontFamilyList)&&(Ld=this.pluginOpt.fontFamilyList),this.pluginOpt.fontSizeList&&Array.isArray(this.pluginOpt.fontSizeList)&&(D5=this.pluginOpt.fontSizeList)}extendQuill(){if(nT)return;nT=!0,this.extendFont([]),this.extendAlign();let e=ni.import("attributors/class/size");e.whitelist=D5,ni.register(e,!0);let t=ni.import("attributors/style/size");t.whitelist=D5,ni.register(t,!0)}extendFont(e=[],t=!1){Ld=t?[...e]:[...Ld,...e];let i=ni.import("attributors/class/font");i.whitelist=Ld,ni.register(i,!0);let n=ni.import("attributors/style/font");n.whitelist=Ld,ni.register(n,!0)}extendAlign(){let e=ni.import("formats/align");e.whitelist=["right","center","justify","left"],ni.register(e,!0)}showEditText({node:e,rect:t,isInserting:i,isFromKeyDown:n,isFromScale:s}){if(this.showTextEdit)return;let{customInnerElsAppendTo:a,nodeTextEditZIndex:o,textAutoWrapWidth:l,selectTextOnEnterEditText:h,transformRichTextOnEnterEdit:c,openRealtimeRenderOnNodeTextEdit:u,autoEmptyTextWhenKeydownEnterEdit:d}=this.mindMap.opt;l=e.hasCustomWidth()?e.customTextWidth:l,this.node=e,this.isInserting=i,t||(t=e._textData.node.node.getBoundingClientRect()),s||this.mindMap.emit("before_show_text_edit"),this.mindMap.renderer.textEdit.registerTmpShortcut();let f=e._textData.node,m=f.attr("data-width"),g=f.attr("data-height"),v=Math.ceil(t.width)/m,y=Math.ceil(t.height)/g,A=this.textNodePaddingX,b=this.textNodePaddingY;this.textEditNode||(this.textEditNode=document.createElement("div"),this.textEditNode.classList.add("smm-richtext-node-edit-wrap"),this.textEditNode.style.cssText=`
|
||
|
|
position:fixed;
|
||
|
|
box-sizing: border-box;
|
||
|
|
${u?"":"box-shadow: 0 0 20px rgba(0,0,0,.5);"}
|
||
|
|
outline: none;
|
||
|
|
word-break: break-all;
|
||
|
|
padding: ${b}px ${A}px;
|
||
|
|
line-height: 1.2;
|
||
|
|
`,this.textEditNode.addEventListener("click",k=>{k.stopPropagation()}),this.textEditNode.addEventListener("mousedown",k=>{k.stopPropagation()}),this.textEditNode.addEventListener("keydown",k=>{this.mindMap.renderer.textEdit.checkIsAutoEnterTextEditKey(k)&&k.stopPropagation()}),(a||document.body).appendChild(this.textEditNode)),this.addNodeTextStyleToTextEditNode(e),this.textEditNode.style.marginLeft=`-${A*v}px`,this.textEditNode.style.marginTop=`-${b*y}px`,this.textEditNode.style.zIndex=o,u||(this.textEditNode.style.background=this.mindMap.renderer.textEdit.getBackground(e)),this.textEditNode.style.minWidth=m+A*2+"px",this.textEditNode.style.minHeight=g+"px",this.textEditNode.style.left=t.left+"px",this.textEditNode.style.top=t.top+"px",this.textEditNode.style.display="block",this.textEditNode.style.maxWidth=l+A*2+"px",this.textEditNode.style.transform=`scale(${v}, ${y})`,this.textEditNode.style.transformOrigin="left top";let C=e.getData("text");typeof c=="function"&&(C=c(C));let M=ei(C),D=!e.getData("richText")&&!M;if(n&&d)this.textEditNode.innerHTML="";else if(D){let k=`<p>${String(C).split(/\n/gim).join("<br>")}</p>`;this.textEditNode.innerHTML=this.cacheEditingText||k}else this.textEditNode.innerHTML=this.cacheEditingText||C;this.initQuillEditor(),this.setQuillContainerMinHeight(g),this.setIsShowTextEdit(!0),this.focus(i||h&&!n?0:null),this.cacheEditingText=""}onOpenRealtimeRenderOnNodeTextEditConfigUpdate(e){this.textEditNode&&(this.textEditNode.style.background=e?"transparent":this.node?this.mindMap.renderer.textEdit.getBackground(this.node):"",this.textEditNode.style.boxShadow=e?"none":"0 0 20px rgba(0,0,0,.5)")}addNodeTextStyleToTextEditNode(e){let t=Lf(e);Object.keys(t).forEach(i=>{this.textEditNode.style[i]=t[i]})}setQuillContainerMinHeight(e){document.querySelector("."+Od).style.minHeight=e+"px"}updateTextEditNode(){if(!this.node)return;let e=this.node._textData.node,t=e.node.getBoundingClientRect(),i=e.attr("data-width"),n=e.attr("data-height");this.textEditNode.style.minWidth=i+this.textNodePaddingX*2+"px",this.textEditNode.style.minHeight=n+"px",this.textEditNode.style.left=t.left+"px",this.textEditNode.style.top=t.top+"px",this.setQuillContainerMinHeight(n)}removeTextEditEl(){if(!this.textEditNode)return;(this.mindMap.opt.customInnerElsAppendTo||document.body).removeChild(this.textEditNode)}getEditText(){return this.quill.container.firstChild.innerHTML.replace(/ +/g,e=>" ".repeat(e.length))}hideEditText(e){if(!this.showTextEdit)return;let{beforeHideRichTextEdit:t}=this.mindMap.opt;typeof t=="function"&&t(this);let i=this.getEditText(),n=e&&e.length>0?e:[this.node],s=this.node;this.textEditNode.style.display="none",this.setIsShowTextEdit(!1),this.mindMap.emit("rich_text_selection_change",!1),this.node=null,this.isInserting=!1,n.forEach(a=>{this.mindMap.execCommand("SET_NODE_TEXT",a,i,!0),this.mindMap.render()}),this.mindMap.emit("hide_text_edit",this.textEditNode,n,s)}initQuillEditor(){this.quill=new ni(this.textEditNode,{modules:{toolbar:!1,keyboard:{bindings:{enter:{key:"Enter",handler:function(){}},shiftEnter:{key:"Enter",shiftKey:!0,handler:function(e,t){let i=Object.keys(t.format).reduce((s,a)=>(this.quill.scroll.query(a,ze.BLOCK)&&!Array.isArray(t.format[a])&&(s[a]=t.format[a]),s),{}),n=new sT.default().retain(e.index).delete(e.length).insert(`
|
||
|
|
`,i);this.quill.updateContents(n,ni.sources.USER),this.quill.setSelection(e.index+1,ni.sources.SILENT),this.quill.focus(),Object.keys(t.format).forEach(s=>{i[s]==null&&(Array.isArray(t.format[s])||s==="code"||s==="link"||this.quill.format(s,t.format[s],ni.sources.USER))})}},tab:{key:9,handler:function(){}}}}},formats:["bold","italic","underline","strike","color","background","font","size","formula","align"],theme:"snow"}),this.quill.root.addEventListener("copy",e=>{e.preventDefault();let t=window.getSelection(),i=t.toString();try{let n=t.getRangeAt(0),s=document.createElement("div");s.appendChild(n.cloneContents());let a=fo(s.innerHTML);e.clipboardData.setData("text/plain",a)}catch(n){e.clipboardData.setData("text/plain",i)}}),this.quill.on("selection-change",e=>{if(!this.isInserting)if(this.lastRange=this.range,this.range=null,e){this.pasteUseRange=e;let t=this.quill.getBounds(e.index,e.length),i=this.textEditNode.getBoundingClientRect(),n={left:t.left+i.left,top:t.top+i.top,right:t.right+i.left,bottom:t.bottom+i.top,width:t.width},s=this.quill.getFormat(e.index,e.length),a=!1;e.length==0?a=!1:(this.range=e,a=!0),this.mindMap.emit("rich_text_selection_change",a,n,s)}else this.mindMap.emit("rich_text_selection_change",!1,null,null)}),this.quill.on("text-change",()=>{this.mindMap.emit("node_text_edit_change",{node:this.node,text:this.getEditText(),richText:!0})}),this.quill.clipboard.addMatcher(Node.ELEMENT_NODE,(e,t)=>{let i=[],n=this.getPasteTextStyle();return t.ops.forEach(s=>{s.insert&&typeof s.insert=="string"&&i.push({attributes:{...n},insert:this.formatPasteText(s.insert)})}),t.ops=i,t}),this.quill.root.addEventListener("paste",e=>{e.clipboardData&&e.clipboardData.files&&e.clipboardData.files.length&&e.preventDefault()},!0)}getPasteTextStyle(){return this.pasteUseRange?this.quill.getFormat(this.pasteUseRange.index,this.pasteUseRange.length):{}}formatPasteText(e){let{isSmm:t,data:i}=Rl(e);return t&&i[0]&&i[0].data?cn(i[0].data.text):e}onCompositionStart(){this.showTextEdit&&(this.isCompositing=!0)}onCompositionUpdate(){!this.showTextEdit||!this.node||this.mindMap.emit("node_text_edit_change",{node:this.node,text:this.getEditText(),richText:!0})}onCompositionEnd(){this.showTextEdit&&(this.isCompositing=!1)}setIsShowTextEdit(e){this.showTextEdit=e,e?this.mindMap.keyCommand.stopCheckInSvg():this.mindMap.keyCommand.recoveryCheckInSvg()}selectAll(){this.quill.setSelection(0,this.quill.getLength())}focus(e){let t=this.quill.getLength();this.quill.setSelection(typeof e=="number"?e:t,t)}formatText(e={},t=!1){if(!this.range&&!this.lastRange)return;let i=!this.range,n=i?this.lastRange:this.range;if(t)this.quill.removeFormat(n.index,n.length);else{let{align:s,...a}=e;s&&this.quill.formatLine(n.index,n.length,"align",s),Object.keys(a).length>0&&this.quill.formatText(n.index,n.length,a)}i&&this.quill.setSelection(this.lastRange.index,this.lastRange.length)}removeFormat(){this.formatText({},!0)}formatRangeText(e,t={}){e&&this.quill.formatText(e.index,e.length,t)}formatAllText(e={}){this.quill.formatText(0,this.quill.getLength(),e)}normalStyleToRichTextStyle(e){let t={};return Object.keys(e).forEach(i=>{let n=e[i];switch(i){case"fontFamily":t.font=n;break;case"fontSize":t.size=n+"px";break;case"fontWeight":t.bold=n==="bold";break;case"fontStyle":t.italic=n==="italic";break;case"textDecoration":t.underline=n==="underline",t.strike=n==="line-through";break;case"color":t.color=n;break;case"textAlign":t.align=n;break;default:break}}),t}richTextStyleToNormalStyle(e){let t={};return Object.keys(e).forEach(i=>{let n=e[i];switch(i){case"font":t.fontFamily=n;break;case"size":t.fontSize=parseFloat(n);break;case"bold":t.fontWeight=n?"bold":"normal";break;case"italic":t.fontStyle=n?"italic":"normal";break;case"underline":t.textDecoration=n?"underline":"none";break;case"strike":t.textDecoration=n?"line-through":"none";break;case"color":t.color=n;break;case"align":t.textAlign=n;break;default:break}}),t}isHasRichTextStyle(e){let t=Object.keys(e);for(let i=0;i<t.length;i++){let n=t[i];if(G0.includes(n))return!0}return!1}checkNodeHasCustomRichTex
|
||
|
|
<!-- \u7B2C\u4E8C\u7EC4\u529F\u80FD\u6309\u94AE -->
|
||
|
|
|
||
|
|
<input type="text" class="smm-zoom-input" value="100%" readonly>
|
||
|
|
<!-- \u5206\u9694\u7EBF -->
|
||
|
|
<div class="smm-divider"></div>
|
||
|
|
<button class="smm-btn" title="\u7F29\u5C0F" id="smm-narrow-button">
|
||
|
|
<svg t="1748092005125" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="51065" width="24" height="24"><path d="M919.264 905.984l-138.912-138.912C851.808 692.32 896 591.328 896 480c0-229.376-186.624-416-416-416S64 250.624 64 480s186.624 416 416 416c95.008 0 182.432-32.384 252.544-86.208l141.44 141.44a31.904 31.904 0 0 0 45.248 0 32 32 0 0 0 0.032-45.248zM128 480C128 285.92 285.92 128 480 128s352 157.92 352 352-157.92 352-352 352S128 674.08 128 480z" p-id="51066"></path><path d="M625.792 448H336a32 32 0 0 0 0 64h289.792a32 32 0 1 0 0-64z" p-id="51067"></path></svg>
|
||
|
|
</button>
|
||
|
|
<button class="smm-btn" title="\u653E\u5927" id="smm-enlarge-button">
|
||
|
|
<svg t="1748091983390" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="50052" width="24" height="24"><path d="M919.264 905.984l-138.912-138.912C851.808 692.32 896 591.328 896 480c0-229.376-186.624-416-416-416S64 250.624 64 480s186.624 416 416 416c95.008 0 182.432-32.384 252.544-86.208l141.44 141.44a31.904 31.904 0 0 0 45.248 0 32 32 0 0 0 0.032-45.248zM128 480C128 285.92 285.92 128 480 128s352 157.92 352 352-157.92 352-352 352S128 674.08 128 480z" p-id="50053"></path><path d="M625.792 448H512v-112a32 32 0 0 0-64 0V448h-112a32 32 0 0 0 0 64H448v112a32 32 0 1 0 64 0V512h113.792a32 32 0 1 0 0-64z" p-id="50054"></path></svg>
|
||
|
|
</button>
|
||
|
|
<!-- \u5206\u9694\u7EBF -->
|
||
|
|
<div class="smm-divider"></div>
|
||
|
|
|
||
|
|
<button class="smm-btn" title="\u5411\u540E" id="smm-back">
|
||
|
|
<svg t="1748092059920" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="53927" width="24" height="24"><path d="M505.27776 0.812089a0.868983 0.868983 0 0 0-1.736102 0 0.867119 0.867119 0 1 0 1.736102 0z" p-id="53928"></path><path d="M60.88317 560.973548c-8.943443-5.764008-14.832391-15.811396-14.832391-27.253633 0.035431-11.403077 5.983119-21.455127 14.957331-27.190231l432.929975-276.669596c9.623152-6.134165 22.230871-6.998487 32.957036-1.108607 10.734556 5.887083 16.807184 16.956366 16.807184 28.393941v164.663038l372.566395-198.421926c9.679096-5.148634 21.766543-5.238143 31.878266 0.835417 10.078157 6.042792 15.692051 16.737255 15.692051 27.714232V818.623409c0 11.008678-5.64373 21.736707-15.755453 27.775769-10.143424 6.041859-22.26164 5.918784-31.940736 0.708613L543.702305 646.712004v166.636899c0 11.468344-6.108059 22.571192-16.866856 28.42471a32.298772 32.298772 0 0 1-33.018574-1.229817L60.88317 560.973548z m0 0" p-id="53929"></path></svg>
|
||
|
|
</button>
|
||
|
|
<button class="smm-btn" title="\u5411\u524D" id="smm-forward">
|
||
|
|
<svg t="1748092046717" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="53747" width="24" height="24"><path d="M505.386133 0.812089a0.868983 0.868983 0 0 0-1.736102 0 0.867119 0.867119 0 1 0 1.736102 0z" p-id="53748"></path><path d="M948.045553 509.121716c8.943443 5.764008 14.832391 15.811396 14.832391 27.254566-0.035431 11.402144-5.984051 21.455127-14.957331 27.189298L514.99157 840.235176c-9.623152 6.134165-22.231804 6.998487-32.957969 1.108607-10.733624-5.887083-16.807184-16.957298-16.807184-28.393008V648.288668L92.660023 846.710595c-9.679096 5.147701-21.765611 5.23721-31.878266-0.83635-10.078157-6.041859-15.692983-16.736323-15.692983-27.714232V251.472787c0-11.008678 5.64373-21.736707 15.756385-27.775769 10.142491-6.042792 22.260708-5.918784 31.939803-0.709545l372.440523 200.395787V256.746361c0-11.467411 6.108059-22.571192 16.867789-28.423777a32.295042 32.295042 0 0 1 33.018574 1.229816l432.933705 279.569316z m0 0" p-id="53749"></path></svg>
|
||
|
|
</button>
|
||
|
|
<button class="smm-btn" title="\u63D2\u5165\u8282\u70B9" id="smm-insert-node">
|
||
|
|
<svg t="1748092438114" class="icon" viewBox="0 0 1033 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="80289" width="24" height="24"><path d="M0 236.307692v118.810257A39.384615 39.384615 0 0 0 39.384615 393.846154h741.08718a39.384615 39.384615 0 0 0 39.384615-39.384616V39.384615a39.384615 39.384615 0 0 0-39.384615-39.384615H39.384615a39.384615 39.384615 0 0 0-39.384615 39.384615v118.810257m113.558974 230.4v294.728205a39.384615 39.384615 0 0 0 39.384616 39.384615h191.015384v118.810257a38.728205 38.728205 0 0 0 39.384616 38.728205h179.85641a39.384615 39.384615 0 1 0 0-78.112821H422.728205V564.512821h531.035898V656.410256a39.384615 39.384615 0 1 0 78.76923 0V525.128205a39.384615 39.384615 0 0 0-39.384615-39.384615H383.34359a39.384615 39.384615 0 0 0-39.384616 39.384615v118.810257H192.328205V388.594872M78.769231 78.769231h662.317948v236.964102H78.769231z" fill="#595959" p-id="80290"></path><path d="M977.394872 802.133333h-102.4v-103.05641a39.384615 39.384615 0 0 0-39.384616-39.384615 39.384615 39.384615 0 0 0-39.384615 39.384615v103.05641h-103.05641a39.384615 39.384615 0 0 0 0 78.112821h103.05641V984.615385a39.384615 39.384615 0 0 0 39.384615 39.384615 39.384615 39.384615 0 0 0 39.384616-39.384615v-104.369231h102.4a39.384615 39.384615 0 1 0 0-78.112821z" fill="#595959" p-id="80291"></path></svg>
|
||
|
|
</button>
|
||
|
|
|
||
|
|
<button class="smm-btn" title="\u5220\u9664\u8282\u70B9" id="smm-delete-node">
|
||
|
|
<svg t="1748092453090" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="80465" width="24" height="24"><path d="M4.836272 231.412429v116.349027A38.568738 38.568738 0 0 0 43.40501 385.687382h725.735091a38.568738 38.568738 0 0 0 38.568739-38.568738V38.568738a38.568738 38.568738 0 0 0-38.568739-38.568738H43.40501a38.568738 38.568738 0 0 0-38.568738 38.568738v116.349027m111.206529 225.627119v288.622724a38.568738 38.568738 0 0 0 38.568738 38.568739h187.05838v116.349027a37.925926 37.925926 0 0 0 38.568738 37.925925h176.130572a38.568738 38.568738 0 1 0 0-76.494664H418.807396V552.818581h520.035154V578.531073a38.568738 38.568738 0 1 0 77.137476 0V514.249843a38.568738 38.568738 0 0 0-38.568738-38.568738H380.238657a38.568738 38.568738 0 0 0-38.568738 38.568738v116.349027H193.180277V380.544884M81.973748 77.137476h648.597615v232.055242H81.973748z" fill="#595959" p-id="80466"></path><path d="M706.787308 1020.785938a41.139987 41.139987 0 0 1-41.139988-39.21155l-10.284996-219.841808h-27.64093v-30.854991a26.998117 26.998117 0 0 1 26.998117-26.998116h43.711237v-22.498431a41.139987 41.139987 0 0 1 41.139987-41.139987h142.061519a41.139987 41.139987 0 0 1 41.139988 41.139987v25.712492h44.354049a26.998117 26.998117 0 0 1 26.998117 26.998117v26.998117l-16.71312 3.856874h-14.141871l-10.284997 219.841807a41.7828 41.7828 0 0 1-41.139987 39.211551z m185.772756-57.853107l12.213433-201.200251h-192.843691l10.284997 202.485876z m-30.212179-257.124921v-6.428123h-109.278091V707.093534z" fill="#595959" p-id="80467"></path></svg>
|
||
|
|
</button>
|
||
|
|
|
||
|
|
`;var H3=class{constructor(e){this.opt=e,this.mindMap=e.mindMap,this.init()}init(){this.updateNodeTree=this.updateNodeTree.bind(this),this.afterExecCommand=this.afterExecCommand.bind(this),this.layoutChange=this.layoutChange.bind(this),this.mindMap.opt.data&&this.isMindMapLayout()&&this.updateNodeTree(this.mindMap.opt.data),this.mindMap.on("layout_change",this.layoutChange),this.mindMap.on("afterExecCommand",this.afterExecCommand),this.mindMap.on("before_update_data",this.updateNodeTree),this.mindMap.on("before_set_data",this.updateNodeTree)}restore(){this.mindMap.off("layout_change",this.layoutChange),this.mindMap.off("afterExecCommand",this.afterExecCommand),this.mindMap.off("before_update_data",this.updateNodeTree),this.mindMap.off("before_set_data",this.updateNodeTree)}afterExecCommand(e){this.isMindMapLayout()&&["BACK","FORWARD","INSERT_NODE","INSERT_MULTI_NODE","INSERT_CHILD_NODE","INSERT_MULTI_CHILD_NODE","INSERT_PARENT_NODE","UP_NODE","DOWN_NODE","MOVE_UP_ONE_LEVEL","INSERT_AFTER","INSERT_BEFORE","MOVE_NODE_TO","REMOVE_NODE","REMOVE_CURRENT_NODE","PASTE_NODE","CUT_NODE"].includes(e)&&this.updateRenderTree()}layoutChange(e){e===J.LAYOUT.MIND_MAP&&this.updateRenderTree()}updateRenderTree(){this.updateNodeTree(this.mindMap.renderer.renderTree)}updateNodeTree(e){if(!this.isMindMapLayout())return;let t=e,i=t.children.length;if(i<=0)return;let n=Math.ceil(i/2);t.children.forEach((s,a)=>{a+1<=n?s.data.dir=J.LAYOUT_GROW_DIR.RIGHT:s.data.dir=J.LAYOUT_GROW_DIR.LEFT})}isMindMapLayout(){return this.mindMap.opt.layout===J.LAYOUT.MIND_MAP}beforePluginRemove(){this.restore()}beforePluginDestroy(){this.restore()}};H3.instanceName="mindMapLayoutPro";var N5=H3;var lT=`
|
||
|
|
data:image/gif;base64,R0lGODlhWAKQAffqAKve9ua6Zna00ZnM///35rVQSNelUcmYR5d2U0VFRbiHO/GXAdvX1pWHg//WhriXXKSIWE2NvXVoT1BNR//rxf/blI9xMOT2/3vG6f/SerPl/v/z22pWUc6yFfLDaf/nuNOqYv/eAGW59mhlTsa7tFlJP3RaSny1ZWJTScyZZoNmT//iq////2BLRmd3U3KQknjS/XSXXGYzAFay9WtUSnxhTGaGWOzs7P/68It4VFR2k//bbv/MZpiBVnRHFGWpYsPn/bKjl21OKG6XrGFMR1xVS2yNnYV6doDCaXmoYWJbS1pgbNyyZOazW3B9c//MM2hrUXBaVLeurH5xauXHC4prTubi4v/PcsNOSGaZZppNR4RTGPL7/3tmOtHs/dzy/oKZXczMzP/eoGWxZXGKWWa8aKidmv+xOsrDwWZ0e3KmvmZQSPTUBVCDqmBPSmZmZp54Vu6/Z9Ht7XGCe3NkXejm5XfK8WFUU5Z/La17NJq7zN3///Px8bKOWnGIhrCXInlMRv/HUrTe+8BMRoykpdLw/62RW4DG+Ga4Z2ROSKGJKb6MP7SbH+ni26qRJWpUQ2pLRnjO9sKnGrbKzX7O9NZ1U8/TsZFwUm9bP9zc3J2qm06KtmBsd9u+D5fe/3C+9+nGbe6mO8/r63bB+OSVXOW4Oe3n4mdfTPHPa7jZ5V2TtnKMjMpeTf/vz3vD+GVLRo5/fMnf6lxZX33K7/Du7n+cpcvV2HB3aX9vUZrL3qR7V2uAjlOPuuzUnczMmYfJ+ci5hfXJcePo6trAfersxmpEGujw0/WiFPitKrK+vXA/C+vNCMPZz//MAOT14eLu85ySjHfI7/HRBtjj6Ovet+LOjchDQ0KTun++aJFzQe+nO59/V41eJc+wYnjQ+MRIRXW+39qZPXfM9PraAu7OCLqeH+z4/8CcXu+nLXjU/wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh/wtYTVAgRGF0YVhNUDw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDE0IDc5LjE1MTQ4MSwgMjAxMy8wMy8xMy0xMjowOToxNSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChXaW5kb3dzKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpCM0Q0MzU0OTdDNzExMUU1OUNDQ0IyODgzREUzNTQxMSIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDpCM0Q0MzU0QTdDNzExMUU1OUNDQ0IyODgzREUzNTQxMSI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkIzRDQzNTQ3N0M3MTExRTU5Q0NDQjI4ODNERTM1NDExIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkIzRDQzNTQ4N0M3MTExRTU5Q0NDQjI4ODNERTM1NDExIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+Af/+/fz7+vn49/b19PPy8fDv7u3s6+rp6Ofm5eTj4uHg397d3Nva2djX1tXU09LR0M/OzczLysnIx8bFxMPCwcC/vr28u7q5uLe2tbSzsrGwr66trKuqqainpqWko6KhoJ+enZybmpmYl5aVlJOSkZCPjo2Mi4qJiIeGhYSDgoGAf359fHt6eXh3dnV0c3JxcG9ubWxramloZ2ZlZGNiYWBfXl1cW1pZWFdWVVRTUlFQT05NTEtKSUhHRkVEQ0JBQD8+PTw7Ojk4NzY1NDMyMTAvLi0sKyopKCcmJSQjIiEgHx4dHBsaGRgXFhUUExIREA8ODQwLCgkIBwYFBAMCAQAAIfkEBQQA6gAsAAAAAFgCkAEACP8AeQgcSLCgwYMIEypcyLChw4cQI0qcSLGixYsYM2rcyLGjx48gQ4ocSbKkyZMoU6pcybKly5cwY8qcSbOmzZs4c+rcybOnz59AgwodSrSo0aNIkypdyrSp06dQo0qdSrWq1atYs2rdyrWr169gw4odS7as2bNo06pdy7at27dw48qdS7eu3bt48+rdy7ev37+AAwseTLiw4cOIEytezLix48eQI0ueTLmy5cuYM2vezLmz58+gQ4seTbq06dOoU6tezbq169ewY8ueTbu27du4c+vezbu379/AgwsfTry48ePIkytfzry58+fQo0ufTr269evYs2vfzr279+/gw4v/H0++vPnz6NOrX8++vfv38OPLn0+/vv37+PPr38+/v///AAYo4IAEFmjggQgmqOCCDDbo4IMQRijhhBRWaOGFGGao4YYcdujhhyCGKOKIJJZo4okopqjiiiy26OKLMMYo44w01mjjjTjmqOOOPPbo449ABinkkEQWaeSRSCap5JJMNunkk1BGKeWUVFZp5ZVYZqnlllx26eWXYIYp5phklmnmmWimqeaabLbp5ptwxinnnHTWGdE559j5XQBrrBGAnt3V0EILNQC63TaDDrqNodilkGiiKTBaXQA0DGqCCYPS8Kek0qmQKRxwVNqCCpxGB8GgRFyiiy6XEDEoBKU6/weCq6OuuqqnLRABQqzLxSGqCbbaimkLNMTBa3JVDLoGHMGuCscag1Zx7HF9oKpqs6u2OmgfBsVRRSKPhhtuIlUYO21qsw6qArbB4qprQcmKK++j0p57mge/stvssDR4QBC48wZMhL2nxbusvsE+G+2/AQtMcGnV5notwrZq2wK3AsXbsLj1PhwaE7TWQDG2gubKhEDeArxxC+Sa6/FnHgwL7MjYyuzvQIneoPPOOieaVwYOiLHCCh98MLQYDmTwskeXKMsszc0q3MIlBOXM884+13VF0B+0QgAOLITNAg4EtPIB0ktr9ECiE0MdbNODPoDzoFdjPWhdGYhBAQFi9//tNwEUiKF02hUxAbDIbrNbciIn82B13VnHtfUHfPtted8EfOAA4RTxmzjCvwr0+NWRv7U1BZen7jcFFTiQ9BWcN4TAoIkg8Lm+CACMgON0131D6W45gLrqxIuNwwaBvx47QuckWsXtCGvcfO+Q3w1XBh8Ur73fOLAO+/IE8Tko4tDrWzK01JNu/VtigL39+2K3sjn4ApVMQ/kjizo6z8Cv5UAr8Atg2AggBvrBgXa2wx/Ccvco3/1ufWvJ2wYESEECrGB502vB8xRIMY21wIH9O8v/3EdBAW6gApwTH6E4SLOStSAMvgthWSowwRLa8AOcs9/TWIiwUA2KDnWoXgv//AdAG9rwhGlDVK4SyEOKIYBW0BCiWrBnxCpuQHAec1S0mgg1jZFAfUNMiwNqWEUbWnBw56KUpbjotmFxgAH8g6BZ2lfGKhKQYLiiwQ7ZSDEftmAKQeyZHMsihjqWUX7nOpXE+Og2i0VRkGFECx0NacYCHitdtWKk29z1xQdG8iw0pKQRccgrX61Rk4lzYyY8OcXsibKEFDiWwfaIypFJb
|
||
|
|
`;var j3=require("obsidian"),hT=(r,e,t,i)=>{e.root=!0;let n=b=>{let C=(b.data.richText?fo(b.data.text):b.data.text).replaceAll(/\n/g,"<br>");C=Dn(C),C=C.replaceAll(/\n/g,"<br>"),b.textCache=C,b.label=C,b.uid=b.data.uid,b.children&&b.children.length>0&&b.children.forEach(M=>{n(M)})};n(e);let s=t.querySelector("#smm-dg-outline"),a=null,o=null,l=null,h=null;function c(b){if(!b)return"";if(typeof b!="string")return String(b);if(b.includes("<")){let C=i.createElement("div");return C.innerHTML=b,C.textContent||C.innerText||b}return b}function u(b){return b.data.text?c(b.data.text):b.textCache?b.textCache:b.label?b.label:""}function d(b,C=0,M=null){if(M&&M.data.expand===!1)return;let D=i.createElement("div");D.className=`smm-dg-outline-node smm-dg-node-level-${C}`,D.dataset.uid=b.data.uid,D.draggable=!0;let L=i.createElement("div");L.className="smm-dg-drop-indicator top";let k=i.createElement("div");k.className="smm-dg-drop-indicator bottom";let V=i.createElement("div");V.className="smm-dg-drop-indicator inside",D.appendChild(L),D.appendChild(k),D.appendChild(V);let B=i.createElement("div");B.className="smm-dg-node-actions";let _=i.createElement("button");_.className="smm-dg-node-btn add",_.innerHTML="+",_.title="\u6DFB\u52A0\u5B50\u8282\u70B9",_.onclick=G=>{G.stopPropagation(),v(b)};let S=i.createElement("button");if(S.className="smm-dg-node-btn delete",S.innerHTML="\xD7",S.title="\u5220\u9664\u8282\u70B9",S.onclick=G=>{G.stopPropagation(),y(b)},B.appendChild(_),B.appendChild(S),D.appendChild(B),a===b.data.uid){let G=i.createElement("input");G.className="smm-dg-node-edit",G.value=u(b),G.addEventListener("keydown",Q=>{Q.key==="Enter"?(m(b,G.value),a=null,g()):Q.key==="Escape"&&(a=null,g())}),G.addEventListener("blur",()=>{m(b,G.value),a=null,g()}),setTimeout(()=>{G.focus(),G.select()},0),D.appendChild(G)}else{let G=i.createElement("div");if(G.className="smm-dg-node-wrapper",b.children&&b.children.length>0){let ne=i.createElement("span");ne.className=`smm-dg-collapse-btn ${b.data.expand===!1?"collapsed":""}`,ne.innerHTML="\u25BC",ne.title=b.data.expand===!1?"\u5C55\u5F00":"\u6298\u53E0",ne.onclick=ee=>{ee.stopPropagation(),A(b)},G.appendChild(ne)}else{let ne=i.createElement("span");ne.innerHTML="\u25CB",G.appendChild(ne);let ee=i.createElement("span");ee.className="smm-dg-placeholder",G.appendChild(ee)}let Y=i.createElement("span");Y.className="smm-dg-node-content",Y.textContent=u(b),Y.ondblclick=ne=>{ne.stopPropagation(),a=b.data.uid,g()},G.appendChild(Y),D.appendChild(G)}D.addEventListener("dragstart",G=>{D.classList.add("smm-dg-dragging"),o=b,G.dataTransfer.effectAllowed="move",G.dataTransfer.setData("text/plain",b.data.uid),i.querySelectorAll(".smm-dg-drop-target").forEach(Q=>{Q!==D&&Q.classList.remove("smm-dg-drop-target")})}),D.addEventListener("dragend",()=>{D.classList.remove("smm-dg-dragging"),i.querySelectorAll(".smm-dg-drop-indicator").forEach(Y=>{Y.style.display="none"}),i.querySelectorAll(".smm-dg-drop-target").forEach(Y=>{Y.classList.remove("smm-dg-drop-target")});let G=r.renderer.findNodeByUid(o.data.uid),Q=r.renderer.findNodeByUid(l.data.uid);if(Q.getAncestorNodes().contains(G)){new j3.Notice("\u7956\u5148\u8282\u70B9\u4E0D\u80FD\u63A8\u7ED9\u5B69\u5B50\u8282\u70B9");return}if(!(!Q||Q.uid===G.uid)){if(h=="inside")r.execCommand("MOVE_NODE_TO",G,Q);else if(h=="bottom"){if(Q.isRoot){new j3.Notice("\u6839\u7ED3\u70B9\u65E0\u6CD5\u4F5C\u4E3A\u5144\u5F1F\u8282\u70B9");return}r.execCommand("INSERT_AFTER",G,Q)}else if(h=="top"){if(Q.isRoot){new j3.Notice("\u6839\u7ED3\u70B9\u65E0\u6CD5\u4F5C\u4E3A\u5144\u5F1F\u8282\u70B9");return}r.execCommand("INSERT_BEFORE",G,Q)}setTimeout(()=>{o=null,l=null,h=null},10)}}),D.addEventListener("dragover",G=>{if(G.preventDefault(),!o||o.data.uid===b.data.uid)return;l=b,D.querySelectorAll(".smm-dg-drop-indicator").forEach(ne=>{ne.style.display="none"}),i.querySelectorAll(".smm-dg-drop-target").forEach(ne=>{ne.classList.remove("smm-dg-drop-target")});let Q=D.getBoundingClientRect(),Y=G.clientY-Q.top;Y<Q.height*.25?(L.style.display="block",h="top"):Y>Q.height*.75?(k.style.display="block",h=
|
||
|
|
/* \u753B\u5E03\u6240\u6709\u5143\u7D20\u7981\u6B62\u54CD\u5E94\u9F20\u6807\u4E8B\u4EF6 */
|
||
|
|
.smm-mind-map-container {
|
||
|
|
pointer-events: none;
|
||
|
|
}
|
||
|
|
/* \u8D85\u94FE\u63A5\u56FE\u6807\u5141\u8BB8\u54CD\u5E94\u9F20\u6807\u4E8B\u4EF6 */
|
||
|
|
.smm-node a {
|
||
|
|
pointer-events: all;
|
||
|
|
}
|
||
|
|
/* \u5907\u6CE8\u56FE\u6807\u5141\u8BB8\u54CD\u5E94\u9F20\u6807\u4E8B\u4EF6 */
|
||
|
|
.smm-node .smm-node-note {
|
||
|
|
pointer-events: all;
|
||
|
|
}
|
||
|
|
`;this.config.openBlankMode&&(e+=`
|
||
|
|
/* \u5E26\u4E0B\u5212\u7EBF\u7684\u6587\u672C\u5185\u5BB9\u5168\u90E8\u9690\u85CF */
|
||
|
|
.smm-richtext-node-wrap u {
|
||
|
|
opacity: 0;
|
||
|
|
}
|
||
|
|
`),this.tmpStyleEl.innerText=e,document.head.appendChild(this.tmpStyleEl)}removeTmpStyles(){this.tmpStyleEl&&document.head.removeChild(this.tmpStyleEl)}createHighlightEl(){this.highlightEl||(this.highlightEl=document.createElement("div"),this.highlightEl.style.cssText=`
|
||
|
|
position: absolute;
|
||
|
|
box-shadow: 0 0 0 5000px ${this.config.boxShadowColor};
|
||
|
|
border-radius: ${this.config.borderRadius};
|
||
|
|
transition: ${this.config.transition};
|
||
|
|
z-index: ${this.config.zIndex+1};
|
||
|
|
pointer-events: none;
|
||
|
|
`,this.mindMap.el.appendChild(this.highlightEl))}removeHighlightEl(){this.highlightEl&&(this.mindMap.el.removeChild(this.highlightEl),this.highlightEl=null)}updateHighlightEl({left:e,top:t,width:i,height:n}){let s=this.config.padding;e&&(this.highlightEl.style.left=e-s+"px"),t&&(this.highlightEl.style.top=t-s+"px"),i&&(this.highlightEl.style.width=i+s*2+"px"),n&&(this.highlightEl.style.height=n+s*2+"px")}bindEvent(){this.onKeydown=this.onKeydown.bind(this),window.addEventListener("keydown",this.onKeydown)}bindFullscreenEvent(){this.onFullscreenChange=this.onFullscreenChange.bind(this),document.addEventListener(h6,this.onFullscreenChange)}unBindEvent(){window.removeEventListener("keydown",this.onKeydown),document.removeEventListener(h6,this.onFullscreenChange)}onFullscreenChange(){document.fullscreenElement?document.fullscreenElement===this.mindMap.el&&this._enter():this.exit()}onKeydown(e){e.keyCode===Nn.Left?this.prev():e.keyCode===Nn.Right?this.next():e.keyCode===Nn.Esc?this.exit():e.keyCode===Nn.Enter&&this.showNextUnderlineText()}prev(){this.currentStepIndex>0&&this.jump(this.currentStepIndex-1)}next(){let e=this.stepList.length;this.currentStepIndex<e-1&&this.jump(this.currentStepIndex+1)}showNextUnderlineText(){if(!this.config.openBlankMode||!this.currentStepNode||!this.currentUnderlineTextData)return;let{index:e,list:t,length:i}=this.currentUnderlineTextData;if(e>=i)return;let n=t[e];this.currentUnderlineTextData.index++,n.node.style.opacity=1}jump(e){this.currentUnderlineTextData&&(this.currentUnderlineTextData.list.forEach(a=>{a.node.style.opacity=""}),this.currentUnderlineTextData=null),this.currentStepNode=null,this.currentStepIndex=e,this.mindMap.emit("demonstrate_jump",this.currentStepIndex,this.stepList.length);let t=this.stepList[e],i=t.node,n=i.data.uid,s=this.mindMap.renderer.findNodeByUid(n);if(!s){this.mindMap.renderer.expandToNodeUid(n,()=>{this.mindMap.renderer.findNodeByUid(n)&&this.jump(e)});return}if(t.type==="node"){this.currentStepNode=s;let a=this.config.openBlankMode?s.group.find("u"):null;a&&a.length>0&&(this.currentUnderlineTextData={index:0,list:a,length:a.length}),this.mindMap.view.fit(()=>s.group.rbox(),!0,this.config.padding+this.config.margin);let o=s.group.rbox();this.updateHighlightEl({left:o.x,top:o.y,width:o.width,height:o.height})}else{let a=()=>{i.children.forEach(o=>{o.data.expand=!1}),this.mindMap.render(()=>{this.mindMap.view.fit(()=>{let l=oh(s,0,0,0,0,!0);return{...l,x:l.left,y:l.top}},!0,this.config.padding+this.config.margin);let o=oh(s,0,0,0,0,!0);this.updateHighlightEl(o)})};if(i.data.expand)a();else{this.mindMap.execCommand("SET_NODE_EXPAND",s,!0);let o=()=>{this.mindMap.off("node_tree_render_end",o),a()};this.mindMap.on("node_tree_render_end",o)}}}getStepList(){it(this.mindMap.renderer.renderTree,null,e=>{this.stepList.push({type:"node",node:e}),Hi(e.data).forEach(i=>{i.uid&&this.stepList.push({type:"node",node:{data:i}})}),e.children.length>1&&this.stepList.push({type:"children",node:e})})}beforePluginRemove(){this.unBindEvent()}beforePluginDestroy(){this.unBindEvent()}};W3.instanceName="demonstrate";var dT=W3;var h$={};function F5(r,e){let t=e||h$,i=typeof t.includeImageAlt=="boolean"?t.includeImageAlt:!0,n=typeof t.includeHtml=="boolean"?t.includeHtml:!0;return mT(r,i,n)}function mT(r,e,t){if(c$(r)){if("value"in r)return r.type==="html"&&!t?"":r.value;if(e&&"alt"in r&&r.alt)return r.alt;if("children"in r)return fT(r.children,e,t)}return Array.isArray(r)?fT(r,e,t):""}function fT(r,e,t){let i=[],n=-1;for(;++n<r.length;)i[n]=mT(r[n],e,t);return i.join("")}function c$(r){return Boolean(r&&typeof r=="object")}function pi(r,e,t,i){let n=r.length,s=0,a;if(e<0?e=-e>n?0:n+e:e=e>n?n:e,t=t>0?t:0,i.length<1e4)a=Array.from(i),a.unshift(e,t),r.splice(...a);else for(t&&r.splice(e,t);s<i.length;)a=i.slice(s,s+1e4),a.unshift(e,0),r.splice(...a),s+=1e4,e+=1e4}function Zi(r,e){return r.length>0?(pi(r,r.length,0,e),r):e}var pT={}.hasOwnProperty;function gT(r){let e={},t=-1;for(;++t<r.length;)u$(e,r[t]);return e}function u$(r,e){let t;for(t in e){let n=(pT.call(r,t)?r[t]:void 0)
|
||
|
|
`;break}case-3:{a=`\r
|
||
|
|
`;break}case-2:{a=e?" ":" ";break}case-1:{if(!e&&n)continue;a=" ";break}default:a=String.fromCharCode(s)}n=s===-2,i.push(a)}return i.join("")}var G5={};Sp(G5,{attentionMarkers:()=>Nee,contentInitial:()=>Cee,disable:()=>Fee,document:()=>Eee,flow:()=>Tee,flowInitial:()=>See,insideSpan:()=>Dee,string:()=>Mee,text:()=>kee});var Eee={[42]:ki,[43]:ki,[45]:ki,[48]:ki,[49]:ki,[50]:ki,[51]:ki,[52]:ki,[53]:ki,[54]:ki,[55]:ki,[56]:ki,[57]:ki,[62]:Y3},Cee={[91]:B5},See={[-2]:_d,[-1]:_d,[32]:_d},Tee={[35]:P5,[42]:o0,[45]:[e2,o0],[60]:q5,[61]:e2,[95]:o0,[96]:Q3,[126]:Q3},Mee={[38]:K3,[92]:V3},kee={[-5]:qd,[-4]:qd,[-3]:qd,[33]:H5,[38]:K3,[42]:Pd,[60]:[z5,U5],[91]:j5,[92]:[R5,V3],[93]:a0,[95]:Pd,[96]:L5},Dee={null:[Pd,FT]},Nee={null:[42,95]},Fee={null:[]};function RT(r){let t=gT([G5,...(r||{}).extensions||[]]),i={defined:[],lazy:{},constructs:t,content:n(ET),document:n(ST),flow:n(NT),string:n(IT),text:n(zT)};return i;function n(s){return a;function a(o){return BT(i,s,o)}}}var PT=/[\0\t\n\r]/g;function _T(){let r=1,e="",t=!0,i;return n;function n(s,a,o){let l=[],h,c,u,d,f;for(s=e+s.toString(a),u=0,e="",t&&(s.charCodeAt(0)===65279&&u++,t=void 0);u<s.length;){if(PT.lastIndex=u,h=PT.exec(s),d=h&&h.index!==void 0?h.index:s.length,f=s.charCodeAt(d),!h){e=s.slice(u);break}if(f===10&&u===d&&i)l.push(-3),i=void 0;else switch(i&&(l.push(-5),i=void 0),u<d&&(l.push(s.slice(u,d)),r+=d-u),f){case 0:{l.push(65533),r++;break}case 9:{for(c=Math.ceil(r/4)*4,l.push(-2);r++<c;)l.push(-1);break}case 10:{l.push(-4),r=1;break}default:i=!0,r=1}u=d+1}return o&&(i&&l.push(-5),e&&l.push(e),l.push(null)),l}}function qT(r){for(;!X3(r););return r}function t2(r,e){let t=Number.parseInt(r,e);return t<9||t===11||t>13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||(t&65535)===65535||(t&65535)===65534||t>1114111?"\uFFFD":String.fromCharCode(t)}var Iee=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function UT(r){return r.replace(Iee,zee)}function zee(r,e,t){if(e)return e;if(t.charCodeAt(0)===35){let n=t.charCodeAt(1),s=n===120||n===88;return t2(t.slice(s?2:1),s?16:10)}return ec(t)||r}function tc(r){return!r||typeof r!="object"?"":"position"in r||"type"in r?HT(r.position):"start"in r||"end"in r?HT(r):"line"in r||"column"in r?W5(r):""}function W5(r){return jT(r&&r.line)+":"+jT(r&&r.column)}function HT(r){return W5(r&&r.start)+"-"+W5(r&&r.end)}function jT(r){return r&&typeof r=="number"?r:1}var WT={}.hasOwnProperty,Y5=function(r,e,t){return typeof e!="string"&&(t=e,e=void 0),Lee(t)(qT(RT(t).document().write(_T()(r,e,!0))))};function Lee(r){let e={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(oe),autolinkProtocol:_,autolinkEmail:_,atxHeading:o(W),blockQuote:o(We),characterEscape:_,characterReference:_,codeFenced:o(F),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:o(F,l),codeText:o(de,l),codeTextData:_,data:_,codeFlowValue:_,definition:o(ce),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:o(K),hardBreakEscape:o(ie),hardBreakTrailing:o(ie),htmlFlow:o(ye,l),htmlFlowData:_,htmlText:o(ye,l),htmlTextData:_,image:o(ve),label:l,link:o(oe),listItem:o(Be),listItemValue:m,listOrdered:o(ke,f),listUnordered:o(ke),paragraph:o(Ne),reference:Ct,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:o(W),strong:o(qe),thematicBreak:o(St)},exit:{atxHeading:c(),atxHeadingSequence:L,autolink:c(),autolinkEmail:Ye,autolinkProtocol:te,blockQuote:c(),characterEscapeValue:S,characterReferenceMarkerHexadecimal:I,characterReferenceMarkerNumeric:I,characterReferenceValue:le,codeFenced:c(A),codeFencedFence:y,codeFencedFenceInfo:g,codeFencedFenceMeta:v,codeFlowValue:S,codeIndented:c(b),codeText:c(ee),codeTextData:S,data:S,definition:c(),definitionDestinationString:D,definitionLabelString:C,definitionTitleString:M,emphasis:c(),hardBreakEscape:c(Q),hardBreakTrailing:c(Q),htmlFlow:c(Y),htmlFlowData:S,htmlText:c(ne),htmlTextData:S,image:c(ae),label:Fe,labelText:O,lineEnding:G,link:c(be),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),r
|
||
|
|
%`+e+e+e+e},r.prototype.sizeInBytes=function(){return 12+this.major.length+this.minor.length},r.prototype.copyBytesInto=function(e,t){var i=t;return e[t++]=j.Percent,e[t++]=j.P,e[t++]=j.D,e[t++]=j.F,e[t++]=j.Dash,t+=ir(this.major,e,t),e[t++]=j.Period,t+=ir(this.minor,e,t),e[t++]=j.Newline,e[t++]=j.Percent,e[t++]=129,e[t++]=129,e[t++]=129,e[t++]=129,t-i},r.forVersion=function(e,t){return new r(e,t)},r}(),$a=Fie;var Iie=function(){function r(){}return r.prototype.clone=function(e){throw new vi(this.constructor.name,"clone")},r.prototype.toString=function(){throw new vi(this.constructor.name,"toString")},r.prototype.sizeInBytes=function(){throw new vi(this.constructor.name,"sizeInBytes")},r.prototype.copyBytesInto=function(e,t){throw new vi(this.constructor.name,"copyBytesInto")},r}(),er=Iie;var zie=function(r){fe(e,r);function e(t){var i=r.call(this)||this;return i.numberValue=t,i.stringValue=ok(t),i}return e.prototype.asNumber=function(){return this.numberValue},e.prototype.value=function(){return this.numberValue},e.prototype.clone=function(){return e.of(this.numberValue)},e.prototype.toString=function(){return this.stringValue},e.prototype.sizeInBytes=function(){return this.stringValue.length},e.prototype.copyBytesInto=function(t,i){return i+=ir(this.stringValue,t,i),this.stringValue.length},e.of=function(t){return new e(t)},e}(er),_e=zie;var Lie=function(r){fe(e,r);function e(t){var i=r.call(this)||this;return i.array=[],i.context=t,i}return e.prototype.size=function(){return this.array.length},e.prototype.push=function(t){this.array.push(t)},e.prototype.insert=function(t,i){this.array.splice(t,0,i)},e.prototype.indexOf=function(t){var i=this.array.indexOf(t);return i===-1?void 0:i},e.prototype.remove=function(t){this.array.splice(t,1)},e.prototype.set=function(t,i){this.array[t]=i},e.prototype.get=function(t){return this.array[t]},e.prototype.lookupMaybe=function(t){for(var i,n=[],s=1;s<arguments.length;s++)n[s-1]=arguments[s];return(i=this.context).lookupMaybe.apply(i,bt([this.get(t)],n))},e.prototype.lookup=function(t){for(var i,n=[],s=1;s<arguments.length;s++)n[s-1]=arguments[s];return(i=this.context).lookup.apply(i,bt([this.get(t)],n))},e.prototype.asRectangle=function(){if(this.size()!==4)throw new wN(this.size());var t=this.lookup(0,_e).asNumber(),i=this.lookup(1,_e).asNumber(),n=this.lookup(2,_e).asNumber(),s=this.lookup(3,_e).asNumber(),a=t,o=i,l=n-t,h=s-i;return{x:a,y:o,width:l,height:h}},e.prototype.asArray=function(){return this.array.slice()},e.prototype.clone=function(t){for(var i=e.withContext(t||this.context),n=0,s=this.size();n<s;n++)i.push(this.array[n]);return i},e.prototype.toString=function(){for(var t="[ ",i=0,n=this.size();i<n;i++)t+=this.get(i).toString(),t+=" ";return t+="]",t},e.prototype.sizeInBytes=function(){for(var t=3,i=0,n=this.size();i<n;i++)t+=this.get(i).sizeInBytes()+1;return t},e.prototype.copyBytesInto=function(t,i){var n=i;t[i++]=j.LeftSquareBracket,t[i++]=j.Space;for(var s=0,a=this.size();s<a;s++)i+=this.get(s).copyBytesInto(t,i),t[i++]=j.Space;return t[i++]=j.RightSquareBracket,i-n},e.prototype.scalePDFNumbers=function(t,i){for(var n=0,s=this.size();n<s;n++){var a=this.lookup(n);if(a instanceof _e){var o=n%2===0?t:i;this.set(n,_e.of(a.asNumber()*o))}}},e.withContext=function(t){return new e(t)},e}(er),at=Lie;var K7={},Oie=function(r){fe(e,r);function e(t,i){var n=this;if(t!==K7)throw new vc("PDFBool");return n=r.call(this)||this,n.value=i,n}return e.prototype.asBoolean=function(){return this.value},e.prototype.clone=function(){return this},e.prototype.toString=function(){return String(this.value)},e.prototype.sizeInBytes=function(){return this.value?4:5},e.prototype.copyBytesInto=function(t,i){return this.value?(t[i++]=j.t,t[i++]=j.r,t[i++]=j.u,t[i++]=j.e,4):(t[i++]=j.f,t[i++]=j.a,t[i++]=j.l,t[i++]=j.s,t[i++]=j.e,5)},e.True=new e(K7,!0),e.False=new e(K7,!1),e}(er),eo=Oie;var Mn=new Uint8Array(256);Mn[j.LeftParen]=1;Mn[j.RightParen]=1;Mn[j.LessThan]=1;Mn[j.GreaterThan]=1;Mn[j.LeftSquareBracket]=1;Mn[j.RightSquareBracket]=1;Mn[j.LeftCurly]=1;Mn[j.RightCurly]=1;Mn[j.ForwardSlash]=
|
||
|
|
`,i=this.entries(),n=0,s=i.length;n<s;n++){var a=i[n],o=a[0],l=a[1];t+=o.toString()+" "+l.toString()+`
|
||
|
|
`}return t+=">>",t},e.prototype.sizeInBytes=function(){for(var t=5,i=this.entries(),n=0,s=i.length;n<s;n++){var a=i[n],o=a[0],l=a[1];t+=o.sizeInBytes()+l.sizeInBytes()+2}return t},e.prototype.copyBytesInto=function(t,i){var n=i;t[i++]=j.LessThan,t[i++]=j.LessThan,t[i++]=j.Newline;for(var s=this.entries(),a=0,o=s.length;a<o;a++){var l=s[a],h=l[0],c=l[1];i+=h.copyBytesInto(t,i),t[i++]=j.Space,i+=c.copyBytesInto(t,i),t[i++]=j.Newline}return t[i++]=j.GreaterThan,t[i++]=j.GreaterThan,i-n},e.withContext=function(t){return new e(new Map,t)},e.fromMapWithContext=function(t,i){return new e(t,i)},e}(er),Ge=qie;var Uie=function(r){fe(e,r);function e(t){var i=r.call(this)||this;return i.dict=t,i}return e.prototype.clone=function(t){throw new vi(this.constructor.name,"clone")},e.prototype.getContentsString=function(){throw new vi(this.constructor.name,"getContentsString")},e.prototype.getContents=function(){throw new vi(this.constructor.name,"getContents")},e.prototype.getContentsSize=function(){throw new vi(this.constructor.name,"getContentsSize")},e.prototype.updateDict=function(){var t=this.getContentsSize();this.dict.set(H.Length,_e.of(t))},e.prototype.sizeInBytes=function(){return this.updateDict(),this.dict.sizeInBytes()+this.getContentsSize()+18},e.prototype.toString=function(){this.updateDict();var t=this.dict.toString();return t+=`
|
||
|
|
stream
|
||
|
|
`,t+=this.getContentsString(),t+=`
|
||
|
|
endstream`,t},e.prototype.copyBytesInto=function(t,i){this.updateDict();var n=i;i+=this.dict.copyBytesInto(t,i),t[i++]=j.Newline,t[i++]=j.s,t[i++]=j.t,t[i++]=j.r,t[i++]=j.e,t[i++]=j.a,t[i++]=j.m,t[i++]=j.Newline;for(var s=this.getContents(),a=0,o=s.length;a<o;a++)t[i++]=s[a];return t[i++]=j.Newline,t[i++]=j.e,t[i++]=j.n,t[i++]=j.d,t[i++]=j.s,t[i++]=j.t,t[i++]=j.r,t[i++]=j.e,t[i++]=j.a,t[i++]=j.m,i-n},e}(er),xr=Uie;var Hie=function(r){fe(e,r);function e(t,i){var n=r.call(this,t)||this;return n.contents=i,n}return e.prototype.asUint8Array=function(){return this.contents.slice()},e.prototype.clone=function(t){return e.of(this.dict.clone(t),this.contents.slice())},e.prototype.getContentsString=function(){return u2(this.contents)},e.prototype.getContents=function(){return this.contents},e.prototype.getContentsSize=function(){return this.contents.length},e.of=function(t,i){return new e(t,i)},e}(xr),sa=Hie;var BN={},RN=new Map,jie=function(r){fe(e,r);function e(t,i,n){var s=this;if(t!==BN)throw new vc("PDFRef");return s=r.call(this)||this,s.objectNumber=i,s.generationNumber=n,s.tag=i+" "+n+" R",s}return e.prototype.clone=function(){return this},e.prototype.toString=function(){return this.tag},e.prototype.sizeInBytes=function(){return this.tag.length},e.prototype.copyBytesInto=function(t,i){return i+=ir(this.tag,t,i),this.tag.length},e.of=function(t,i){i===void 0&&(i=0);var n=t+" "+i+" R",s=RN.get(n);return s||(s=new e(BN,t,i),RN.set(n,s)),s},e}(er),lt=jie;var Gie=function(){function r(e,t){this.name=e,this.args=t||[]}return r.prototype.clone=function(e){for(var t=new Array(this.args.length),i=0,n=t.length;i<n;i++){var s=this.args[i];t[i]=s instanceof er?s.clone(e):s}return r.of(this.name,t)},r.prototype.toString=function(){for(var e="",t=0,i=this.args.length;t<i;t++)e+=String(this.args[t])+" ";return e+=this.name,e},r.prototype.sizeInBytes=function(){for(var e=0,t=0,i=this.args.length;t<i;t++){var n=this.args[t];e+=(n instanceof er?n.sizeInBytes():n.length)+1}return e+=this.name.length,e},r.prototype.copyBytesInto=function(e,t){for(var i=t,n=0,s=this.args.length;n<s;n++){var a=this.args[n];a instanceof er?t+=a.copyBytesInto(e,t):t+=ir(a,e,t),e[t++]=j.Space}return t+=ir(this.name,e,t),t-i},r.of=function(e,t){return new r(e,t)},r}(),Tt=Gie;var Q7;(function(r){r.NonStrokingColor="sc",r.NonStrokingColorN="scn",r.NonStrokingColorRgb="rg",r.NonStrokingColorGray="g",r.NonStrokingColorCmyk="k",r.NonStrokingColorspace="cs",r.StrokingColor="SC",r.StrokingColorN="SCN",r.StrokingColorRgb="RG",r.StrokingColorGray="G",r.StrokingColorCmyk="K",r.StrokingColorspace="CS",r.BeginMarkedContentSequence="BDC",r.BeginMarkedContent="BMC",r.EndMarkedContent="EMC",r.MarkedContentPointWithProps="DP",r.MarkedContentPoint="MP",r.DrawObject="Do",r.ConcatTransformationMatrix="cm",r.PopGraphicsState="Q",r.PushGraphicsState="q",r.SetFlatness="i",r.SetGraphicsStateParams="gs",r.SetLineCapStyle="J",r.SetLineDashPattern="d",r.SetLineJoinStyle="j",r.SetLineMiterLimit="M",r.SetLineWidth="w",r.SetTextMatrix="Tm",r.SetRenderingIntent="ri",r.AppendRectangle="re",r.BeginInlineImage="BI",r.BeginInlineImageData="ID",r.EndInlineImage="EI",r.ClipEvenOdd="W*",r.ClipNonZero="W",r.CloseAndStroke="s",r.CloseFillEvenOddAndStroke="b*",r.CloseFillNonZeroAndStroke="b",r.ClosePath="h",r.AppendBezierCurve="c",r.CurveToReplicateFinalPoint="y",r.CurveToReplicateInitialPoint="v",r.EndPath="n",r.FillEvenOddAndStroke="B*",r.FillEvenOdd="f*",r.FillNonZeroAndStroke="B",r.FillNonZero="f",r.LegacyFillNonZero="F",r.LineTo="l",r.MoveTo="m",r.ShadingFill="sh",r.StrokePath="S",r.BeginText="BT",r.EndText="ET",r.MoveText="Td",r.MoveTextSetLeading="TD",r.NextLine="T*",r.SetCharacterSpacing="Tc",r.SetFontAndSize="Tf",r.SetTextHorizontalScaling="Tz",r.SetTextLineHeight="TL",r.SetTextRenderingMode="Tr",r.SetTextRise="Ts",r.SetWordSpacing="Tw",r.ShowText="Tj",r.ShowTextAdjusted="TJ",r.ShowTextLine="'",r.ShowTextLineAndSpace='"',r.Type3D0="d0",r.Type3D1="d1",r.BeginCompatibilitySection="BX",r.EndCompatibilitySection="EX"})(Q7||(Q7={}));var Nt=Q7;var PN=mr(c1());var Wie=function(r){fe(e,r);function e(t,
|
||
|
|
`;return t},e.prototype.getUnencodedContents=function(){for(var t=new Uint8Array(this.getUnencodedContentsSize()),i=0,n=0,s=this.operators.length;n<s;n++)i+=this.operators[n].copyBytesInto(t,i),t[i++]=j.Newline;return t},e.prototype.getUnencodedContentsSize=function(){for(var t=0,i=0,n=this.operators.length;i<n;i++)t+=this.operators[i].sizeInBytes()+1;return t},e.of=function(t,i,n){return n===void 0&&(n=!0),new e(t,i,n)},e}(A0),to=Yie;var _N=function(){function r(e){this.seed=e}return r.prototype.nextInt=function(){var e=Math.sin(this.seed++)*1e4;return e-Math.floor(e)},r.withSeed=function(e){return new r(e)},r}();var Vie=function(r,e){var t=r[0],i=e[0];return t.objectNumber-i.objectNumber},Kie=function(){function r(){this.largestObjectNumber=0,this.header=$a.forVersion(1,7),this.trailerInfo={},this.indirectObjects=new Map,this.rng=_N.withSeed(1)}return r.prototype.assign=function(e,t){this.indirectObjects.set(e,t),e.objectNumber>this.largestObjectNumber&&(this.largestObjectNumber=e.objectNumber)},r.prototype.nextRef=function(){return this.largestObjectNumber+=1,lt.of(this.largestObjectNumber)},r.prototype.register=function(e){var t=this.nextRef();return this.assign(t,e),t},r.prototype.delete=function(e){return this.indirectObjects.delete(e)},r.prototype.lookupMaybe=function(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];var n=t.includes(ci),s=e instanceof lt?this.indirectObjects.get(e):e;if(!(!s||s===ci&&!n)){for(var a=0,o=t.length;a<o;a++){var l=t[a];if(l===ci){if(s===ci)return s}else if(s instanceof l)return s}throw new w0(t,s)}},r.prototype.lookup=function(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];var n=e instanceof lt?this.indirectObjects.get(e):e;if(t.length===0)return n;for(var s=0,a=t.length;s<a;s++){var o=t[s];if(o===ci){if(n===ci)return n}else if(n instanceof o)return n}throw new w0(t,n)},r.prototype.getObjectRef=function(e){for(var t=Array.from(this.indirectObjects.entries()),i=0,n=t.length;i<n;i++){var s=t[i],a=s[0],o=s[1];if(o===e)return a}},r.prototype.enumerateIndirectObjects=function(){return Array.from(this.indirectObjects.entries()).sort(Vie)},r.prototype.obj=function(e){if(e instanceof er)return e;if(e==null)return ci;if(typeof e=="string")return H.of(e);if(typeof e=="number")return _e.of(e);if(typeof e=="boolean")return e?eo.True:eo.False;if(Array.isArray(e)){for(var t=at.withContext(this),i=0,n=e.length;i<n;i++)t.push(this.obj(e[i]));return t}else{for(var s=Ge.withContext(this),a=Object.keys(e),i=0,n=a.length;i<n;i++){var o=a[i],l=e[o];l!==void 0&&s.set(H.of(o),this.obj(l))}return s}},r.prototype.stream=function(e,t){return t===void 0&&(t={}),sa.of(this.obj(t),c2(e))},r.prototype.flateStream=function(e,t){return t===void 0&&(t={}),this.stream(qN.default.deflate(c2(e)),ot(ot({},t),{Filter:"FlateDecode"}))},r.prototype.contentStream=function(e,t){return t===void 0&&(t={}),to.of(this.obj(t),e)},r.prototype.formXObject=function(e,t){return t===void 0&&(t={}),this.contentStream(e,ot(ot({BBox:this.obj([0,0,0,0]),Matrix:this.obj([1,0,0,1,0,0])},t),{Type:"XObject",Subtype:"Form"}))},r.prototype.getPushGraphicsStateContentStream=function(){if(this.pushGraphicsStateContentStreamRef)return this.pushGraphicsStateContentStreamRef;var e=this.obj({}),t=Tt.of(Nt.PushGraphicsState),i=to.of(e,[t]);return this.pushGraphicsStateContentStreamRef=this.register(i),this.pushGraphicsStateContentStreamRef},r.prototype.getPopGraphicsStateContentStream=function(){if(this.popGraphicsStateContentStreamRef)return this.popGraphicsStateContentStreamRef;var e=this.obj({}),t=Tt.of(Nt.PopGraphicsState),i=to.of(e,[t]);return this.popGraphicsStateContentStreamRef=this.register(i),this.popGraphicsStateContentStreamRef},r.prototype.addRandomSuffix=function(e,t){return t===void 0&&(t=4),e+"-"+Math.floor(this.rng.nextInt()*Math.pow(10,t))},r.create=function(){return new r},r}(),Ac=Kie;var Qie=function(r){fe(e,r);function e(t,i,n){n===void 0&&(n=!0);var s=r.call(this,t,i)||this;return s.normalized=!1,s.autoNormalizeCTM=n,s}return e.prototype.clone=function(t){for(var i=e.fromMapWithContext(new Map,t||this
|
||
|
|
`,t=0,i=this.subsections.length;t<i;t++){var n=this.subsections[t];e+=n[0].ref.objectNumber+" "+n.length+`
|
||
|
|
`;for(var s=0,a=n.length;s<a;s++){var o=n[s];e+=Pn(String(o.offset),10,"0"),e+=" ",e+=Pn(String(o.ref.generationNumber),5,"0"),e+=" ",e+=o.deleted?"f":"n",e+=`
|
||
|
|
`}}return e},r.prototype.sizeInBytes=function(){for(var e=5,t=0,i=this.subsections.length;t<i;t++){var n=this.subsections[t],s=n.length,a=n[0];e+=2,e+=String(a.ref.objectNumber).length,e+=String(s).length,e+=20*s}return e},r.prototype.copyBytesInto=function(e,t){var i=t;return e[t++]=j.x,e[t++]=j.r,e[t++]=j.e,e[t++]=j.f,e[t++]=j.Newline,t+=this.copySubsectionsIntoBuffer(this.subsections,e,t),t-i},r.prototype.copySubsectionsIntoBuffer=function(e,t,i){for(var n=i,s=e.length,a=0;a<s;a++){var o=this.subsections[a],l=String(o[0].ref.objectNumber);i+=ir(l,t,i),t[i++]=j.Space;var h=String(o.length);i+=ir(h,t,i),t[i++]=j.Newline,i+=this.copyEntriesIntoBuffer(o,t,i)}return i-n},r.prototype.copyEntriesIntoBuffer=function(e,t,i){for(var n=e.length,s=0;s<n;s++){var a=e[s],o=Pn(String(a.offset),10,"0");i+=ir(o,t,i),t[i++]=j.Space;var l=Pn(String(a.ref.generationNumber),5,"0");i+=ir(l,t,i),t[i++]=j.Space,t[i++]=a.deleted?j.f:j.n,t[i++]=j.Space,t[i++]=j.Newline}return 20*n},r.prototype.append=function(e){if(this.chunkLength===0){this.subsections.push([e]),this.chunkIdx=0,this.chunkLength=1;return}var t=this.subsections[this.chunkIdx],i=t[this.chunkLength-1];e.ref.objectNumber-i.ref.objectNumber>1?(this.subsections.push([e]),this.chunkIdx+=1,this.chunkLength=1):(t.push(e),this.chunkLength+=1)},r.create=function(){return new r({ref:lt.of(0,65535),offset:0,deleted:!0})},r.createEmpty=function(){return new r},r}(),v1=Zie;var Jie=function(){function r(e){this.lastXRefOffset=String(e)}return r.prototype.toString=function(){return`startxref
|
||
|
|
`+this.lastXRefOffset+`
|
||
|
|
%%EOF`},r.prototype.sizeInBytes=function(){return 16+this.lastXRefOffset.length},r.prototype.copyBytesInto=function(e,t){var i=t;return e[t++]=j.s,e[t++]=j.t,e[t++]=j.a,e[t++]=j.r,e[t++]=j.t,e[t++]=j.x,e[t++]=j.r,e[t++]=j.e,e[t++]=j.f,e[t++]=j.Newline,t+=ir(this.lastXRefOffset,e,t),e[t++]=j.Newline,e[t++]=j.Percent,e[t++]=j.Percent,e[t++]=j.E,e[t++]=j.O,e[t++]=j.F,t-i},r.forLastCrossRefSectionOffset=function(e){return new r(e)},r}(),E0=Jie;var $ie=function(){function r(e){this.dict=e}return r.prototype.toString=function(){return`trailer
|
||
|
|
`+this.dict.toString()},r.prototype.sizeInBytes=function(){return 8+this.dict.sizeInBytes()},r.prototype.copyBytesInto=function(e,t){var i=t;return e[t++]=j.t,e[t++]=j.r,e[t++]=j.a,e[t++]=j.i,e[t++]=j.l,e[t++]=j.e,e[t++]=j.r,e[t++]=j.Newline,t+=this.dict.copyBytesInto(e,t),t-i},r.of=function(e){return new r(e)},r}(),X7=$ie;var ene=function(r){fe(e,r);function e(t,i,n){n===void 0&&(n=!0);var s=r.call(this,t.obj({}),n)||this;return s.objects=i,s.offsets=s.computeObjectOffsets(),s.offsetsString=s.computeOffsetsString(),s.dict.set(H.of("Type"),H.of("ObjStm")),s.dict.set(H.of("N"),_e.of(s.objects.length)),s.dict.set(H.of("First"),_e.of(s.offsetsString.length)),s}return e.prototype.getObjectsCount=function(){return this.objects.length},e.prototype.clone=function(t){return e.withContextAndObjects(t||this.dict.context,this.objects.slice(),this.encode)},e.prototype.getContentsString=function(){for(var t=this.offsetsString,i=0,n=this.objects.length;i<n;i++){var s=this.objects[i],a=s[1];t+=a+`
|
||
|
|
`}return t},e.prototype.getUnencodedContents=function(){for(var t=new Uint8Array(this.getUnencodedContentsSize()),i=ir(this.offsetsString,t,0),n=0,s=this.objects.length;n<s;n++){var a=this.objects[n],o=a[1];i+=o.copyBytesInto(t,i),t[i++]=j.Newline}return t},e.prototype.getUnencodedContentsSize=function(){return this.offsetsString.length+sc(this.offsets)[1]+sc(this.objects)[1].sizeInBytes()+1},e.prototype.computeOffsetsString=function(){for(var t="",i=0,n=this.offsets.length;i<n;i++){var s=this.offsets[i],a=s[0],o=s[1];t+=a+" "+o+" "}return t},e.prototype.computeObjectOffsets=function(){for(var t=0,i=new Array(this.objects.length),n=0,s=this.objects.length;n<s;n++){var a=this.objects[n],o=a[0],l=a[1];i[n]=[o.objectNumber,t],t+=l.sizeInBytes()+1}return i},e.withContextAndObjects=function(t,i,n){return n===void 0&&(n=!0),new e(t,i,n)},e}(A0),y1=ene;var tne=function(){function r(e,t){var i=this;this.parsedObjects=0,this.shouldWaitForTick=function(n){return i.parsedObjects+=n,i.parsedObjects%i.objectsPerTick===0},this.context=e,this.objectsPerTick=t}return r.prototype.serializeToBuffer=function(){return Ke(this,void 0,void 0,function(){var e,t,i,n,s,a,o,l,h,c,u,d,f,m,g,v,y;return Qe(this,function(A){switch(A.label){case 0:return[4,this.computeBufferSize()];case 1:e=A.sent(),t=e.size,i=e.header,n=e.indirectObjects,s=e.xref,a=e.trailerDict,o=e.trailer,l=0,h=new Uint8Array(t),l+=i.copyBytesInto(h,l),h[l++]=j.Newline,h[l++]=j.Newline,c=0,u=n.length,A.label=2;case 2:return c<u?(d=n[c],f=d[0],m=d[1],g=String(f.objectNumber),l+=ir(g,h,l),h[l++]=j.Space,v=String(f.generationNumber),l+=ir(v,h,l),h[l++]=j.Space,h[l++]=j.o,h[l++]=j.b,h[l++]=j.j,h[l++]=j.Newline,l+=m.copyBytesInto(h,l),h[l++]=j.Newline,h[l++]=j.e,h[l++]=j.n,h[l++]=j.d,h[l++]=j.o,h[l++]=j.b,h[l++]=j.j,h[l++]=j.Newline,h[l++]=j.Newline,y=m instanceof y1?m.getObjectsCount():1,this.shouldWaitForTick(y)?[4,$s()]:[3,4]):[3,5];case 3:A.sent(),A.label=4;case 4:return c++,[3,2];case 5:return s&&(l+=s.copyBytesInto(h,l),h[l++]=j.Newline),a&&(l+=a.copyBytesInto(h,l),h[l++]=j.Newline,h[l++]=j.Newline),l+=o.copyBytesInto(h,l),[2,h]}})})},r.prototype.computeIndirectObjectSize=function(e){var t=e[0],i=e[1],n=t.sizeInBytes()+3,s=i.sizeInBytes()+9;return n+s},r.prototype.createTrailerDict=function(){return this.context.obj({Size:this.context.largestObjectNumber+1,Root:this.context.trailerInfo.Root,Encrypt:this.context.trailerInfo.Encrypt,Info:this.context.trailerInfo.Info,ID:this.context.trailerInfo.ID})},r.prototype.computeBufferSize=function(){return Ke(this,void 0,void 0,function(){var e,t,i,n,s,a,o,l,h,c,u;return Qe(this,function(d){switch(d.label){case 0:e=$a.forVersion(1,7),t=e.sizeInBytes()+2,i=v1.create(),n=this.context.enumerateIndirectObjects(),s=0,a=n.length,d.label=1;case 1:return s<a?(o=n[s],l=o[0],i.addEntry(l,t),t+=this.computeIndirectObjectSize(o),this.shouldWaitForTick(1)?[4,$s()]:[3,3]):[3,4];case 2:d.sent(),d.label=3;case 3:return s++,[3,1];case 4:return h=t,t+=i.sizeInBytes()+1,c=X7.of(this.createTrailerDict()),t+=c.sizeInBytes()+2,u=E0.forLastCrossRefSectionOffset(h),t+=u.sizeInBytes(),[2,{size:t,header:e,indirectObjects:n,xref:i,trailerDict:c,trailer:u}]}})})},r.forContext=function(e,t){return new r(e,t)},r}(),x1=tne;var rne=function(r){fe(e,r);function e(t){var i=r.call(this)||this;return i.data=t,i}return e.prototype.clone=function(){return e.of(this.data.slice())},e.prototype.toString=function(){return"PDFInvalidObject("+this.data.length+" bytes)"},e.prototype.sizeInBytes=function(){return this.data.length},e.prototype.copyBytesInto=function(t,i){for(var n=this.data.length,s=0;s<n;s++)t[i++]=this.data[s];return n},e.of=function(t){return new e(t)},e}(er),b1=rne;var sl;(function(r){r[r.Deleted=0]="Deleted",r[r.Uncompressed=1]="Uncompressed",r[r.Compressed=2]="Compressed"})(sl||(sl={}));var ine=function(r){fe(e,r);function e(t,i,n){n===void 0&&(n=!0);var s=r.call(this,t,n)||this;return s.computeIndex=function(){for(var a=[],o=0,l=0,h=s.entries.length;l<h;l++){var c=s.entries[l],u=s.entries[l-1];l===0?a.push(c.ref.objectNumber):c.ref.objectNumber-u.ref.objectNumber
|
||
|
|
12 dict begin
|
||
|
|
begincmap
|
||
|
|
/CIDSystemInfo <<
|
||
|
|
/Registry (Adobe)
|
||
|
|
/Ordering (UCS)
|
||
|
|
/Supplement 0
|
||
|
|
>> def
|
||
|
|
/CMapName /Adobe-Identity-UCS def
|
||
|
|
/CMapType 2 def
|
||
|
|
1 begincodespacerange
|
||
|
|
<0000><ffff>
|
||
|
|
endcodespacerange
|
||
|
|
`+r.length+` beginbfchar
|
||
|
|
`+r.map(function(e){var t=e[0],i=e[1];return t+" "+i}).join(`
|
||
|
|
`)+`
|
||
|
|
endbfchar
|
||
|
|
endcmap
|
||
|
|
CMapName currentdict /CMap defineresource pop
|
||
|
|
end
|
||
|
|
end`},UN=function(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];return"<"+r.join("")+">"},R2=function(r){return Ka(r,4)},lne=function(r){if(ik(r))return R2(r);if(nk(r)){var e=s7(r),t=a7(r);return""+R2(e)+R2(t)}var i=Qo(r),n="0x"+i+" is not a valid UTF-8 or UTF-16 codepoint.";throw new Error(n)};var hne=function(r){var e=0,t=function(i){e|=1<<i-1};return r.fixedPitch&&t(1),r.serif&&t(2),r.symbolic&&t(3),r.script&&t(4),r.nonsymbolic&&t(6),r.italic&&t(7),r.allCap&&t(17),r.smallCap&&t(18),r.forceBold&&t(19),e},jN=function(r){var e=r["OS/2"]?r["OS/2"].sFamilyClass:0,t=hne({fixedPitch:r.post.isFixedPitch,serif:1<=e&&e<=7,symbolic:!0,script:e===10,italic:r.head.macStyle.italic});return t};var cne=function(r){fe(e,r);function e(t){var i=r.call(this)||this;return i.value=t,i}return e.prototype.asBytes=function(){for(var t=[],i="",n=!1,s=function(u){u!==void 0&&t.push(u),n=!1},a=0,o=this.value.length;a<o;a++){var l=this.value[a],h=ht(l),c=this.value[a+1];n?h===j.Newline||h===j.CarriageReturn?s():h===j.n?s(j.Newline):h===j.r?s(j.CarriageReturn):h===j.t?s(j.Tab):h===j.b?s(j.Backspace):h===j.f?s(j.FormFeed):h===j.LeftParen?s(j.LeftParen):h===j.RightParen?s(j.RightParen):h===j.Backspace?s(j.BackSlash):h>=j.Zero&&h<=j.Seven?(i+=l,(i.length===3||!(c>="0"&&c<="7"))&&(s(parseInt(i,8)),i="")):s(h):h===j.BackSlash?n=!0:s(h)}return new Uint8Array(t)},e.prototype.decodeText=function(){var t=this.asBytes();return f2(t)?d2(t):z2(t)},e.prototype.decodeDate=function(){var t=this.decodeText(),i=h2(t);if(!i)throw new L2(t);return i},e.prototype.asString=function(){return this.value},e.prototype.clone=function(){return e.of(this.value)},e.prototype.toString=function(){return"("+this.value+")"},e.prototype.sizeInBytes=function(){return this.value.length+2},e.prototype.copyBytesInto=function(t,i){return t[i++]=j.LeftParen,i+=ir(this.value,t,i),t[i++]=j.RightParen,this.value.length+2},e.of=function(t){return new e(t)},e.fromDate=function(t){var i=Pn(String(t.getUTCFullYear()),4,"0"),n=Pn(String(t.getUTCMonth()+1),2,"0"),s=Pn(String(t.getUTCDate()),2,"0"),a=Pn(String(t.getUTCHours()),2,"0"),o=Pn(String(t.getUTCMinutes()),2,"0"),l=Pn(String(t.getUTCSeconds()),2,"0");return new e("D:"+i+n+s+a+o+l+"Z")},e}(er),wt=cne;var une=function(){function r(e,t,i,n){var s=this;this.allGlyphsInFontSortedById=function(){for(var a=new Array(s.font.characterSet.length),o=0,l=a.length;o<l;o++){var h=s.font.characterSet[o];a[o]=s.font.glyphForCodePoint(h)}return QM(a.sort(KM),function(c){return c.id})},this.font=e,this.scale=1e3/this.font.unitsPerEm,this.fontData=t,this.fontName=this.font.postscriptName||"Font",this.customName=i,this.fontFeatures=n,this.baseFontName="",this.glyphCache=Ii.populatedBy(this.allGlyphsInFontSortedById)}return r.for=function(e,t,i,n){return Ke(this,void 0,void 0,function(){var s;return Qe(this,function(a){switch(a.label){case 0:return[4,e.create(t)];case 1:return s=a.sent(),[2,new r(s,t,i,n)]}})})},r.prototype.encodeText=function(e){for(var t=this.font.layout(e,this.fontFeatures).glyphs,i=new Array(t.length),n=0,s=t.length;n<s;n++)i[n]=Ka(t[n].id,4);return Re.of(i.join(""))},r.prototype.widthOfTextAtSize=function(e,t){for(var i=this.font.layout(e,this.fontFeatures).glyphs,n=0,s=0,a=i.length;s<a;s++)n+=i[s].advanceWidth*this.scale;var o=t/1e3;return n*o},r.prototype.heightOfFontAtSize=function(e,t){t===void 0&&(t={});var i=t.descender,n=i===void 0?!0:i,s=this.font,a=s.ascent,o=s.descent,l=s.bbox,h=(a||l.maxY)*this.scale,c=(o||l.minY)*this.scale,u=h-c;return n||(u-=Math.abs(o)||0),u/1e3*e},r.prototype.sizeOfFontAtHeight=function(e){var t=this.font,i=t.ascent,n=t.descent,s=t.bbox,a=(i||s.maxY)*this.scale,o=(n||s.minY)*this.scale;return 1e3*e/(a-o)},r.prototype.embedIntoContext=function(e,t){return this.baseFontName=this.customName||e.addRandomSuffix(this.fontName),this.embedFontDict(e,t)},r.prototype.embedFontDict=function(e,t){return Ke(this,void 0,void 0,function(){var i,n,s;return Qe(this,function(a){switch(a.label){case 0:return[4,this.embedCIDFontDict(e)];case 1:return i=a.sent(),n=this.embedUnicodeCmap(e),s=e.obj({Type:"Font",S
|
||
|
|
`);r.setDefaultAppearance(s)},HF=function(r,e){var t,i,n,s=cs(e),a=cs(r.acroField),o=e.getRectangle(),l=e.getAppearanceCharacteristics(),h=e.getBorderStyle(),c=(t=h==null?void 0:h.getWidth())!==null&&t!==void 0?t:0,u=Ns(l==null?void 0:l.getRotation()),d=ro(o,u),f=d.width,m=d.height,g=Fs(ot(ot({},o),{rotation:u})),v=kt(0,0,0),y=(i=Li(l==null?void 0:l.getBorderColor()))!==null&&i!==void 0?i:v,A=Li(l==null?void 0:l.getBackgroundColor()),b=Li(l==null?void 0:l.getBackgroundColor(),.8),C=(n=s!=null?s:a)!==null&&n!==void 0?n:v;us(s?e:r.acroField,C);var M={x:0+c/2,y:0+c/2,width:f-c,height:m-c,thickness:1.5,borderWidth:c,borderColor:y,markColor:C};return{normal:{on:bt(g,K1(ot(ot({},M),{color:A,filled:!0}))),off:bt(g,K1(ot(ot({},M),{color:A,filled:!1})))},down:{on:bt(g,K1(ot(ot({},M),{color:b,filled:!0}))),off:bt(g,K1(ot(ot({},M),{color:b,filled:!1})))}}},jF=function(r,e){var t,i,n,s=cs(e),a=cs(r.acroField),o=e.getRectangle(),l=e.getAppearanceCharacteristics(),h=e.getBorderStyle(),c=(t=h==null?void 0:h.getWidth())!==null&&t!==void 0?t:0,u=Ns(l==null?void 0:l.getRotation()),d=ro(o,u),f=d.width,m=d.height,g=Fs(ot(ot({},o),{rotation:u})),v=kt(0,0,0),y=(i=Li(l==null?void 0:l.getBorderColor()))!==null&&i!==void 0?i:v,A=Li(l==null?void 0:l.getBackgroundColor()),b=Li(l==null?void 0:l.getBackgroundColor(),.8),C=(n=s!=null?s:a)!==null&&n!==void 0?n:v;us(s?e:r.acroField,C);var M={x:f/2,y:m/2,width:f-c,height:m-c,borderWidth:c,borderColor:y,dotColor:C};return{normal:{on:bt(g,Q1(ot(ot({},M),{color:A,filled:!0}))),off:bt(g,Q1(ot(ot({},M),{color:A,filled:!1})))},down:{on:bt(g,Q1(ot(ot({},M),{color:b,filled:!0}))),off:bt(g,Q1(ot(ot({},M),{color:b,filled:!1})))}}},GF=function(r,e,t){var i,n,s,a,o,l=cs(e),h=cs(r.acroField),c=vl(e),u=vl(r.acroField),d=e.getRectangle(),f=e.getAppearanceCharacteristics(),m=e.getBorderStyle(),g=f==null?void 0:f.getCaptions(),v=(i=g==null?void 0:g.normal)!==null&&i!==void 0?i:"",y=(s=(n=g==null?void 0:g.down)!==null&&n!==void 0?n:v)!==null&&s!==void 0?s:"",A=(a=m==null?void 0:m.getWidth())!==null&&a!==void 0?a:0,b=Ns(f==null?void 0:f.getRotation()),C=ro(d,b),M=C.width,D=C.height,L=Fs(ot(ot({},d),{rotation:b})),k=kt(0,0,0),V=Li(f==null?void 0:f.getBorderColor()),B=Li(f==null?void 0:f.getBackgroundColor()),_=Li(f==null?void 0:f.getBackgroundColor(),.8),S={x:A,y:A,width:M-A*2,height:D-A*2},G=X1(v,{alignment:Br.Center,fontSize:c!=null?c:u,font:t,bounds:S}),Q=X1(y,{alignment:Br.Center,fontSize:c!=null?c:u,font:t,bounds:S}),Y=Math.min(G.fontSize,Q.fontSize),ne=(o=l!=null?l:h)!==null&&o!==void 0?o:k;us(l||c!==void 0?e:r.acroField,ne,t,Y);var ee={x:0+A/2,y:0+A/2,width:M-A,height:D-A,borderWidth:A,borderColor:V,textColor:ne,font:t.name,fontSize:Y};return{normal:bt(L,C8(ot(ot({},ee),{color:B,textLines:[G.line]}))),down:bt(L,C8(ot(ot({},ee),{color:_,textLines:[Q.line]})))}},WF=function(r,e,t){var i,n,s,a,o=cs(e),l=cs(r.acroField),h=vl(e),c=vl(r.acroField),u=e.getRectangle(),d=e.getAppearanceCharacteristics(),f=e.getBorderStyle(),m=(i=r.getText())!==null&&i!==void 0?i:"",g=(n=f==null?void 0:f.getWidth())!==null&&n!==void 0?n:0,v=Ns(d==null?void 0:d.getRotation()),y=ro(u,v),A=y.width,b=y.height,C=Fs(ot(ot({},u),{rotation:v})),M=kt(0,0,0),D=Li(d==null?void 0:d.getBorderColor()),L=Li(d==null?void 0:d.getBackgroundColor()),k,V,B=r.isCombed()?0:1,_={x:g+B,y:g+B,width:A-(g+B)*2,height:b-(g+B)*2};if(r.isMultiline()){var S=k8(m,{alignment:r.getAlignment(),fontSize:h!=null?h:c,font:t,bounds:_});k=S.lines,V=S.fontSize}else if(r.isCombed()){var S=UF(m,{fontSize:h!=null?h:c,font:t,bounds:_,cellCount:(s=r.getMaxLength())!==null&&s!==void 0?s:0});k=S.cells,V=S.fontSize}else{var S=X1(m,{alignment:r.getAlignment(),fontSize:h!=null?h:c,font:t,bounds:_});k=[S.line],V=S.fontSize}var G=(a=o!=null?o:l)!==null&&a!==void 0?a:M;us(o||h!==void 0?e:r.acroField,G,t,V);var Q={x:0+g/2,y:0+g/2,width:A-g,height:b-g,borderWidth:g!=null?g:0,borderColor:D,textColor:G,font:t.name,fontSize:V,color:L,textLines:k,padding:B};return bt(C,T8(Q))},YF=function(r,e,t){var i,n,s,a=cs(e),o=cs(r.acroField),l=vl(e),h=vl(r.acroField),c=e.getRectangle(),u=e.getAppearanceCharacte
|
||
|
|
`);for(var B=1,_={x:d+B,y:d+B,width:g-(d+B)*2,height:v-(d+B)*2},S=k8(L,{alignment:Br.Left,fontSize:o!=null?o:l,font:t,bounds:_}),G=S.lines,Q=S.fontSize,Y=S.lineHeight,ne=[],k=0,V=G.length;k<V;k++){var ee=G[k];D.includes(ee.text)&&ne.push(k)}var be=kt(153/255,193/255,218/255),ae=(n=s!=null?s:a)!==null&&n!==void 0?n:A;return us(s||o!==void 0?e:r.acroField,ae,t,Q),bt(y,MF({x:0+d/2,y:0+d/2,width:g-d,height:v-d,borderWidth:d!=null?d:0,borderColor:b,textColor:ae,font:t.name,fontSize:Q,color:C,textLines:G,lineHeight:Y,selectedColor:be,selectedLines:ne,padding:B}))};var Tse=function(){function r(e,t,i){this.alreadyEmbedded=!1,se(e,"ref",[[lt,"PDFRef"]]),se(t,"doc",[[Oi,"PDFDocument"]]),se(i,"embedder",[[S1,"PDFPageEmbedder"]]),this.ref=e,this.doc=t,this.width=i.width,this.height=i.height,this.embedder=i}return r.prototype.scale=function(e){return se(e,"factor",["number"]),{width:this.width*e,height:this.height*e}},r.prototype.size=function(){return this.scale(1)},r.prototype.embed=function(){return Ke(this,void 0,void 0,function(){return Qe(this,function(e){switch(e.label){case 0:return this.alreadyEmbedded?[3,2]:[4,this.embedder.embedIntoContext(this.doc.context,this.ref)];case 1:e.sent(),this.alreadyEmbedded=!0,e.label=2;case 2:return[2]}})})},r.of=function(e,t,i){return new r(e,t,i)},r}(),Z1=Tse;var Mse=function(){function r(e,t,i){this.modified=!0,se(e,"ref",[[lt,"PDFRef"]]),se(t,"doc",[[Oi,"PDFDocument"]]),se(i,"embedder",[[S0,"CustomFontEmbedder"],[C0,"StandardFontEmbedder"]]),this.ref=e,this.doc=t,this.name=i.fontName,this.embedder=i}return r.prototype.encodeText=function(e){return se(e,"text",["string"]),this.modified=!0,this.embedder.encodeText(e)},r.prototype.widthOfTextAtSize=function(e,t){return se(e,"text",["string"]),se(t,"size",["number"]),this.embedder.widthOfTextAtSize(e,t)},r.prototype.heightAtSize=function(e,t){var i;return se(e,"size",["number"]),Ee(t==null?void 0:t.descender,"options.descender",["boolean"]),this.embedder.heightOfFontAtSize(e,{descender:(i=t==null?void 0:t.descender)!==null&&i!==void 0?i:!0})},r.prototype.sizeAtHeight=function(e){return se(e,"height",["number"]),this.embedder.sizeOfFontAtHeight(e)},r.prototype.getCharacterSet=function(){return this.embedder instanceof C0?this.embedder.encoding.supportedCodePoints:this.embedder.font.characterSet},r.prototype.embed=function(){return Ke(this,void 0,void 0,function(){return Qe(this,function(e){switch(e.label){case 0:return this.modified?[4,this.embedder.embedIntoContext(this.doc.context,this.ref)]:[3,2];case 1:e.sent(),this.modified=!1,e.label=2;case 2:return[2]}})})},r.of=function(e,t,i){return new r(e,t,i)},r}(),jr=Mse;var kse=function(){function r(e,t,i){se(e,"ref",[[lt,"PDFRef"]]),se(t,"doc",[[Oi,"PDFDocument"]]),se(i,"embedder",[[A1,"JpegEmbedder"],[E1,"PngEmbedder"]]),this.ref=e,this.doc=t,this.width=i.width,this.height=i.height,this.embedder=i}return r.prototype.scale=function(e){return se(e,"factor",["number"]),{width:this.width*e,height:this.height*e}},r.prototype.scaleToFit=function(e,t){se(e,"width",["number"]),se(t,"height",["number"]);var i=e/this.width,n=t/this.height,s=Math.min(i,n);return this.scale(s)},r.prototype.size=function(){return this.scale(1)},r.prototype.embed=function(){return Ke(this,void 0,void 0,function(){var e,t,i;return Qe(this,function(n){switch(n.label){case 0:return this.embedder?(this.embedTask||(e=this,t=e.doc,i=e.ref,this.embedTask=this.embedder.embedIntoContext(t.context,i)),[4,this.embedTask]):[2];case 1:return n.sent(),this.embedder=void 0,[2]}})})},r.of=function(e,t,i){return new r(e,t,i)},r}(),zc=kse;var Is;(function(r){r[r.Left=0]="Left",r[r.Center=1]="Center",r[r.Right=2]="Right"})(Is||(Is={}));var fs=function(r){Ee(r==null?void 0:r.x,"options.x",["number"]),Ee(r==null?void 0:r.y,"options.y",["number"]),Ee(r==null?void 0:r.width,"options.width",["number"]),Ee(r==null?void 0:r.height,"options.height",["number"]),Ee(r==null?void 0:r.textColor,"options.textColor",[[Object,"Color"]]),Ee(r==null?void 0:r.backgroundColor,"options.backgroundColor",[[Object,"Color"]]),Ee(r==null?void 0:r.borderColor,"options
|
||
|
|
`+ha(i).toString();this.acroField.setDefaultAppearance(C)}return g},r.prototype.updateWidgetAppearanceWithFont=function(e,t,i){var n=i.normal,s=i.rollover,a=i.down;this.updateWidgetAppearances(e,{normal:this.createAppearanceStream(e,n,t),rollover:s&&this.createAppearanceStream(e,s,t),down:a&&this.createAppearanceStream(e,a,t)})},r.prototype.updateOnOffWidgetAppearance=function(e,t,i){var n=i.normal,s=i.rollover,a=i.down;this.updateWidgetAppearances(e,{normal:this.createAppearanceDict(e,n,t),rollover:s&&this.createAppearanceDict(e,s,t),down:a&&this.createAppearanceDict(e,a,t)})},r.prototype.updateWidgetAppearances=function(e,t){var i=t.normal,n=t.rollover,s=t.down;e.setNormalAppearance(i),n?e.setRolloverAppearance(n):e.removeRolloverAppearance(),s?e.setDownAppearance(s):e.removeDownAppearance()},r.prototype.createAppearanceStream=function(e,t,i){var n,s=this.acroField.dict.context,a=e.getRectangle(),o=a.width,l=a.height,h=i&&{Font:(n={},n[i.name]=i.ref,n)},c=s.formXObject(t,{Resources:h,BBox:s.obj([0,0,o,l]),Matrix:s.obj([1,0,0,1,0,0])}),u=s.register(c);return u},r.prototype.createImageAppearanceStream=function(e,t,i){var n,s,a=this.acroField.dict.context,o=e.getRectangle(),l=e.getAppearanceCharacteristics(),h=e.getBorderStyle(),c=(s=h==null?void 0:h.getWidth())!==null&&s!==void 0?s:0,u=Ns(l==null?void 0:l.getRotation()),d=Fs(ot(ot({},o),{rotation:u})),f=ro(o,u),m=t.scaleToFit(f.width-c*2,f.height-c*2),g={x:c,y:c,width:m.width,height:m.height,rotate:Xe(0),xSkew:Xe(0),ySkew:Xe(0)};i===Is.Center?(g.x+=(f.width-c*2)/2-m.width/2,g.y+=(f.height-c*2)/2-m.height/2):i===Is.Right&&(g.x=f.width-c-m.width,g.y=f.height-c-m.height);var v=this.doc.context.addRandomSuffix("Image",10),y=bt(d,ep(v,g)),A={XObject:(n={},n[v]=t.ref,n)},b=a.formXObject(y,{Resources:A,BBox:a.obj([0,0,o.width,o.height]),Matrix:a.obj([1,0,0,1,0,0])});return a.register(b)},r.prototype.createAppearanceDict=function(e,t,i){var n=this.acroField.dict.context,s=this.createAppearanceStream(e,t.on),a=this.createAppearanceStream(e,t.off),o=n.obj({});return o.set(i,s),o.set(H.of("Off"),a),o},r}(),sn=Dse;var Nse=function(r){fe(e,r);function e(t,i,n){var s=r.call(this,t,i,n)||this;return se(t,"acroCheckBox",[[al,"PDFAcroCheckBox"]]),s.acroField=t,s}return e.prototype.check=function(){var t,i=(t=this.acroField.getOnValue())!==null&&t!==void 0?t:H.of("Yes");this.markAsDirty(),this.acroField.setValue(i)},e.prototype.uncheck=function(){this.markAsDirty(),this.acroField.setValue(H.of("Off"))},e.prototype.isChecked=function(){var t=this.acroField.getOnValue();return!!t&&t===this.acroField.getValue()},e.prototype.addToPage=function(t,i){var n,s,a,o,l,h;se(t,"page",[[Zr,"PDFPage"]]),fs(i),i||(i={}),"textColor"in i||(i.textColor=kt(0,0,0)),"backgroundColor"in i||(i.backgroundColor=kt(1,1,1)),"borderColor"in i||(i.borderColor=kt(0,0,0)),"borderWidth"in i||(i.borderWidth=1);var c=this.createWidget({x:(n=i.x)!==null&&n!==void 0?n:0,y:(s=i.y)!==null&&s!==void 0?s:0,width:(a=i.width)!==null&&a!==void 0?a:50,height:(o=i.height)!==null&&o!==void 0?o:50,textColor:i.textColor,backgroundColor:i.backgroundColor,borderColor:i.borderColor,borderWidth:(l=i.borderWidth)!==null&&l!==void 0?l:0,rotate:(h=i.rotate)!==null&&h!==void 0?h:Xe(0),hidden:i.hidden,page:t.ref}),u=this.doc.context.register(c.dict);this.acroField.addWidget(u),c.setAppearanceState(H.of("Off")),this.updateWidgetAppearance(c,H.of("Yes")),t.node.addAnnot(u)},e.prototype.needsAppearancesUpdate=function(){for(var t,i=this.acroField.getWidgets(),n=0,s=i.length;n<s;n++){var a=i[n],o=a.getAppearanceState(),l=(t=a.getAppearances())===null||t===void 0?void 0:t.normal;if(!(l instanceof Ge)||o&&!l.has(o))return!0}return!1},e.prototype.defaultUpdateAppearances=function(){this.updateAppearances()},e.prototype.updateAppearances=function(t){var i;Ee(t,"provider",[Function]);for(var n=this.acroField.getWidgets(),s=0,a=n.length;s<a;s++){var o=n[s],l=(i=o.getOnValue())!==null&&i!==void 0?i:H.of("Yes");l&&this.updateWidgetAppearance(o,l,t)}this.markAsClean()},e.prototype.updateWidgetAppearance=function(t,i,n){var s=n!=null?n:HF,a=ds(s(this,t));th
|
||
|
|
<span class="smm-search-item-icon">
|
||
|
|
<svg viewBox="0 0 24 24" width="16" height="16">
|
||
|
|
<path d="M19,19H5V5h7V3H5C3.9,3,3,3.9,3,5v14c0,1.1,0.9,2,2,2h14C20.1,21,21,20.1,21,19z"/>
|
||
|
|
<path d="M14,3v2h3.59l-9.83,9.83l1.41,1.41L19,6.41V10h2V3H14z"/>
|
||
|
|
</svg>
|
||
|
|
</span>
|
||
|
|
<div class="smm-search-item-title">${y.name}</div>
|
||
|
|
<div class="smm-search-item-path">${y.path}</div>
|
||
|
|
</div>`).join("");this.contentEl.querySelector("#search-results").innerHTML=m,setTimeout(()=>{this.contentEl.querySelectorAll(".smm-search-item").forEach(y=>{y.onclick=()=>{let A=this.app.vault.getAbstractFileByPath(y.children[2].innerText);if(!A){new or.Notice("\u63D2\u5165\u5185\u94FE\u5931\u8D25",3e3);return}let b=v(A);this.activeNodeList.forEach(C=>{C.setHyperlink(b,y.children[2].innerText)}),this.contentEl.querySelector("#smm-insertLink").style.display="none"}})},200);let g=this.app;function v(y){let A=encodeURIComponent(y.path);return`obsidian://open? Vault=${encodeURIComponent(g.vault.getName())}&file=${A}`}}),this.contentEl.querySelector("#smm-import-md").onclick=()=>{this.readFileByBrowser().then(async d=>{d?this.mindMap.setData(await KT.transformMarkdownTo(d.content)):new or.Notice("\u64CD\u4F5C\u53D6\u6D88\u6216\u6587\u4EF6\u8BFB\u53D6\u5931\u8D25")})},this.contentEl.querySelector("#smm-import-xmind").onclick=()=>{this.readFileByBrowser().then(async d=>{d?this.mindMap.setData(await Hd.parseXmindFile(d.file,async f=>{if(f.length>1){new or.Notice("\u5F53\u524D\u6587\u4EF6\u5177\u6709\u591A\u4E2A\u753B\u5E03\uFF0C\u8BF7\u4E0D\u8981\u5173\u95ED\uFF0C\u6B63\u5728\u4E3A\u60A8\u5BFC\u5165",3e3);for(let m=1;m<f.length;m++){let{vault:g}=this.app,v=new Date,y=Gse(v).format("YYYY-MM-DD-HH-mm-ss"),A=`${this.app.settings.myInputFolderPath}/SMM-${y}.smm`,b=`${f[m]}`;try{g.getAbstractFileByPath(A)?new or.Notice("\u6587\u4EF6\u5DF2\u7ECF\u5B58\u5728",3e3):(await g.create(A,b),await this.app.workspace.openLinkText(A,"",!0))}catch(C){new or.Notice("\u521B\u5EFASMM\u6587\u4EF6\u5931\u8D25"+C,3e3)}}}})):new or.Notice("\u64CD\u4F5C\u53D6\u6D88\u6216\u6587\u4EF6\u8BFB\u53D6\u5931\u8D25")})},this.contentEl.querySelector("#smm-export-svg").onclick=async()=>{await this.mindMap.export("svg",!0,"\u672A\u547D\u540D")},this.contentEl.querySelector("#smm-export-md").onclick=()=>{this.mindMap.export("md",!0,"\u672A\u547D\u540D")},this.contentEl.querySelector("#smm-export-png").onclick=()=>{this.mindMap.export("png",!0,"\u672A\u547D\u540D")},this.contentEl.querySelector("#smm-export-xmind").onclick=()=>{this.mindMap.export("xmind",!0,"\u672A\u547D\u540D")},this.contentEl.querySelector("#smm-export-pdf").onclick=()=>{this.mindMap.export("pdf",!0,"\u672A\u547D\u540D")},this.contentEl.querySelector("#smm-export-txt").onclick=()=>{this.mindMap.export("txt",!0,"\u672A\u547D\u540D")},this.contentEl.querySelector("#smm-if-water").addEventListener("change",async()=>{this.contentEl.querySelector("#smm-if-water").checked?this.mindMap.watermark.updateWatermark({text:this.app.settings.myInputWater,lineSpacing:50,textSpacing:50,angle:45,textStyle:{color:"#73D8FF",opacity:1,fontSize:12}}):this.mindMap.watermark.updateWatermark({text:"",lineSpacing:50,textSpacing:50,angle:45,textStyle:{color:"#73D8FF",opacity:1,fontSize:12}})}),this.contentEl.querySelector("#smm-clear-s").onclick=()=>{this.mindMap.painter.startPainter()};let a=0,o=0,l=!1;this.mindMap.on("svg_mousedown",d=>{d.which===3&&(a=d.clientX,o=d.clientY,l=!0)}),this.mindMap.on("node_contextmenu",(d,f)=>{let m=this.contentEl.querySelector("#contextMenu-node"),g=f.getRectInSvg().left,v=f.getRectInSvg().top,y=this.mindMap.el.offsetWidth,A=this.mindMap.el.offsetHeight,b=m.offsetWidth,C=m.offsetHeight;y-g>b&&A-v>C&&(m.style.left=g+50+"px",m.style.top=v+25+"px"),y-g<b&&(m.style.left=g-b-50+"px",m.style.top=v+25+"px"),A-v<C&&(m.style.left=g+50+"px",m.style.top=v-C-25+"px"),this.contentEl.querySelector("#contextMenu").classList.remove("visible"),m.classList.add("visible")}),this.mindMap.on("mouseup",d=>{var A,b;if(!l){this.contentEl.querySelector(".smm--right-menu-context").classList.remove("visible");return}if(l=!1,Math.abs(a-d.clientX)>3||Math.abs(o-d.clientY)>3)return;let f=this.contentEl.querySelector("#contextMenu"),m=this.mindMap.el.offsetWidth,g=this.mindMap.el.offsetHeight,v=f.offsetWidth,y=f.offsetHeight;m-d.offsetX>v&&g-d.offsetY>y&&(f.style.left=d.offsetX+10+"px",f.style.top=d.offsetY+10+"px"),m-d.offsetX<v&&(f.style.left=d.offsetX-v-10+"px",f.style.top=d.offsetY+10+"px"),g-d.offsetY
|
||
|
|
${n.text}
|
||
|
|
<span class="smm-tag-remove">\xD7</span>
|
||
|
|
`,this.contentEl.querySelector("#tags-list").appendChild(s)}this.initTagInputEvents()}},this.contentEl.querySelector("#save-btn").onclick=()=>{let t=this.getTagArray();this.node.setTag(t),this.contentEl.querySelector("#smm-tag-block").style.display="none",this.contentEl.querySelector("#tags-list").innerHTML=""},this.contentEl.querySelector("#exit-btn").onclick=()=>{this.contentEl.querySelector("#smm-tag-block").style.display="none",this.contentEl.querySelector("#tags-list").innerHTML=""}}initTagInputEvents(){let t=this.contentEl.querySelector("#smm-tag-block .smm-tag-input"),i=this.contentEl.querySelector("#add-tag-btn"),n=this.contentEl.querySelector("#tags-list");this.contentEl.querySelector("#add-tag-btn").onclick=()=>{s(t.value.trim()),t.value="",i.onclick=()=>{s(t.value.trim()),t.value=""}},i.addEventListener("click",()=>{s(t.value.trim()),t.value=""}),this.contentEl.querySelectorAll(".smm-tag-remove").forEach(a=>{a.onclick=()=>{n.removeChild(a.parentNode)}});function s(a){if(!a)return;let o=document.createElement("div");o.className="smm-tag-item";let l=document.createElement("span");l.innerText="\xD7",l.classList.add("smm-tag-remove"),o.innerHTML=`
|
||
|
|
${a}
|
||
|
|
`,o.appendChild(l),n.appendChild(o),l.addEventListener("click",()=>{n.removeChild(o)})}}getTagArray(){let i=this.contentEl.querySelector("#tags-list").querySelectorAll(".smm-tag-item");return Array.from(i).map(n=>{var a;return{text:((a=n.textContent)==null?void 0:a.replace("\xD7","").trim())||"",style:{backgroundColor:getComputedStyle(n).backgroundColor,color:getComputedStyle(n).color}}})}bandOnPanel(){let t=this.contentEl.querySelectorAll(".smm-tab"),i=this.contentEl.querySelectorAll(".smm-contents-container");for(let n of t)n.onclick=()=>{let s=n.getAttribute("calor");for(let a of t)a.classList.remove("active");for(let a of i){if(a.classList.contains(s)){a.removeAttribute("style");continue}a.style.display="none"}n.classList.add("active")}}getTheme(){this.changeCalorTheme()}changeCalorTheme(){let t=this.contentEl.querySelector("#theme-category-select"),i=this.contentEl.querySelector("#light-themes"),n=this.contentEl.querySelector("#dark-themes"),s=this.contentEl.querySelector("#minimal-themes");t.addEventListener("change",function(){let a=this.value;a==="all"?(i.classList.remove("hidden"),n.classList.remove("hidden"),s.classList.remove("hidden")):a==="light"?(i.classList.remove("hidden"),n.classList.add("hidden"),s.classList.add("hidden")):a==="dark"?(i.classList.add("hidden"),n.classList.remove("hidden"),s.classList.add("hidden")):a==="minimal"&&(i.classList.add("hidden"),n.classList.add("hidden"),s.classList.remove("hidden"))})}upload_Image(){let t=this.contentEl.querySelector("#dropzone"),i=this.contentEl.querySelector("#preview-image"),n=this.contentEl.querySelector("#preview-placeholder"),s=this.contentEl.querySelector("#dataurl-field"),a=this.contentEl.querySelector("#upload-button"),o=this.contentEl.querySelector("#upload-bg-button"),l=this.contentEl.querySelector("#url-input"),h=this.contentEl.querySelector("#load-url"),c=this.contentEl.querySelector("#paste-button"),u=document.createElement("input");u.type="file",u.accept="image/*",document.body.appendChild(u);let d=!1;function f(v){if(!v.type.match("image.*")){new or.Notice("\u8BF7\u4E0A\u4F20\u56FE\u7247\u6587\u4EF6\uFF01",3e3);return}let y=new FileReader;y.onload=function(A){let b=A.target.result;i.src=b,i.style.display="block",n.style.display="none",s.value=b,a.disabled=!1,o.disabled=!1},y.readAsDataURL(v)}let m=null;function g(){clearTimeout(m),d=!0,c.classList.add("active"),setTimeout(()=>{c.classList.remove("active")},800)}t.addEventListener("click",()=>{u.click()}),u.addEventListener("change",v=>{v.target.files.length>0&&f(v.target.files[0])}),t.addEventListener("dragover",v=>{v.preventDefault(),t.classList.add("active")}),t.addEventListener("dragleave",()=>{t.classList.remove("active")}),t.addEventListener("drop",v=>{v.preventDefault(),t.classList.remove("active"),v.dataTransfer.files.length>0&&f(v.dataTransfer.files[0])}),document.addEventListener("paste",v=>{if(d&&v.clipboardData&&v.clipboardData.items){for(let y of v.clipboardData.items)if(y.kind==="file"){let A=y.getAsFile();f(A),d=!1,c.classList.remove("active");break}}}),c.addEventListener("click",()=>{g()}),h.addEventListener("click",()=>{let v=l.value.trim();if(!v){alert("\u8BF7\u8F93\u5165\u56FE\u7247 URL");return}let y=v.startsWith("http")?v:`https://${v}`;n.textContent="\u52A0\u8F7D\u4E2D...",n.style.display="block",i.style.display="none";let A=new Image,b=null,C=()=>{b=setTimeout(()=>{n.textContent="\u52A0\u8F7D\u8D85\u65F6\uFF0C\u8BF7\u68C0\u67E5URL\u6216\u7F51\u7EDC"},1e4)};A.onload=()=>{clearTimeout(b),i.src=y,i.style.display="block",n.style.display="none",s.value=y,a.disabled=!1,o.disabled=!1},A.onerror=()=>{clearTimeout(b),n.textContent="\u52A0\u8F7D\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5URL\u662F\u5426\u6709\u6548"},A.src=y,C()}),a.onclick=()=>{let v=s.value;if(v){for(let y of this.activeNodeList)y.setImage({url:v,title:"",width:100,height:100});i.src="",s.value=""}}}async getIconize(){let t=[],i=".obsidian/icons",n=s=>{let a=new RegExp(/width="[\d.]+(px)?"/),o=new RegExp(/height="[\d.]+(px)?"/);return s.match(a)&&(s=s.replace(a,"")),s.match(o)&&(s=s.replace(o,"")),s=s.replace(/<\?x
|
||
|
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M4 2H7.32297L8.52297 5H3V7H5.11765L5.94463 21.0587C5.97572 21.5873 6.41343 22 6.9429 22H17.0571C17.5866 22 18.0243 21.5873 18.0554 21.0587L18.8824 7H21V5H10.677L8.67703 0H4V2ZM7.29906 10.0252L7.1211 7H16.8789L16.5867 11.9675C14.28 11.853 13.4226 11.4919 12.3713 11.0714C11.2792 10.6347 9.97065 10.1354 7.29906 10.0252ZM7.41714 12.0326C9.72097 12.1473 10.5894 12.5128 11.6401 12.933C12.7001 13.357 13.9556 13.8375 16.4692 13.9641L16.1142 20H7.88581L7.41714 12.0326Z"></path></svg>
|
||
|
|
`),await this.loadSettings(),this.registerView($1,t=>new np(t)),this.registerExtensions(["smm"],$1),this.addCommand({id:"create a smm mindmap",name:"Create a SimpleMindMap File",callback:async()=>{let{vault:t}=this.app,i=new Date,n=L8(i).format("YYYY-MM-DD-HH-mm-ss"),s=`${this.settings.myInputFolderPath}/SMM-${n}.smm`,a=`
|
||
|
|
{"svgData":"","layout":"logicalStructure","root":{"data":{"text":"\u6839\u8282\u70B9","expand":true,"uid":"3cb9f800-5a74-4609-a8ff-c37a0beb0bd8","richText":true,"isActive":false},"children":[{"data":{"text":"\u4E8C\u7EA7\u8282\u70B9","generalization":{"text":"\u6982\u8981","uid":"cd2361f6-2cc4-4dc6-b336-57b46f8b33ed","richText":true,"expand":true,"isActive":false},"uid":"a7ae8e47-39fb-4370-ae20-d22f703e7065","richText":true,"expand":true,"isActive":false},"children":[{"data":{"text":"\u5206\u652F\u4E3B\u9898","uid":"ff04f5b8-f02b-4faf-b598-a5fb8f666b91","richText":true,"expand":true,"isActive":false},"children":[]},{"data":{"text":"\u5206\u652F\u4E3B\u9898","uid":"796eef36-18e2-41e2-96c6-25fcc2162d2d","richText":true,"expand":true,"isActive":false},"children":[]}]}],"smmVersion":"0.13.1-fix.2"},"theme":{"template":"classic4","config":{}},"view":{"transform":{"scaleX":1,"scaleY":1,"shear":0,"rotate":0,"translateX":0,"translateY":0,"originX":0,"originY":0,"a":1,"b":0,"c":0,"d":1,"e":0,"f":0},"state":{"scale":1,"x":0,"y":0,"sx":0,"sy":0}}} `;try{t.getAbstractFileByPath(s)?new Pt.Notice("\u6587\u4EF6\u5DF2\u7ECF\u5B58\u5728",3e3):(await t.create(s,a),await this.app.workspace.openLinkText(s,"",!1))}catch(o){new Pt.Notice("\u521B\u5EFASMM\u6587\u4EF6\u5931\u8D25"+o,3e3)}}}),this.addSettingTab(new O8(this.app,this)),this.addRibbonIcon("ob-smm-brain","create a smm mindmap",async()=>{let{vault:t}=this.app,i=new Date,n=L8(i).format("YYYY-MM-DD-HH-mm-ss"),s=`${this.settings.myInputFolderPath}/SMM-${n}.smm`,a=`
|
||
|
|
{"svgData":"","layout":"logicalStructure","root":{"data":{"text":"\u6839\u8282\u70B9","expand":true,"uid":"3cb9f800-5a74-4609-a8ff-c37a0beb0bd8","richText":true,"isActive":false},"children":[{"data":{"text":"\u4E8C\u7EA7\u8282\u70B9","generalization":{"text":"\u6982\u8981","uid":"cd2361f6-2cc4-4dc6-b336-57b46f8b33ed","richText":true,"expand":true,"isActive":false},"uid":"a7ae8e47-39fb-4370-ae20-d22f703e7065","richText":true,"expand":true,"isActive":false},"children":[{"data":{"text":"\u5206\u652F\u4E3B\u9898","uid":"ff04f5b8-f02b-4faf-b598-a5fb8f666b91","richText":true,"expand":true,"isActive":false},"children":[]},{"data":{"text":"\u5206\u652F\u4E3B\u9898","uid":"796eef36-18e2-41e2-96c6-25fcc2162d2d","richText":true,"expand":true,"isActive":false},"children":[]}]}],"smmVersion":"0.13.1-fix.2"},"theme":{"template":"classic4","config":{}},"view":{"transform":{"scaleX":1,"scaleY":1,"shear":0,"rotate":0,"translateX":0,"translateY":0,"originX":0,"originY":0,"a":1,"b":0,"c":0,"d":1,"e":0,"f":0},"state":{"scale":1,"x":0,"y":0,"sx":0,"sy":0}}} `;try{t.getAbstractFileByPath(s)?new Pt.Notice("\u6587\u4EF6\u5DF2\u7ECF\u5B58\u5728",3e3):(await t.create(s,a),await this.app.workspace.openLinkText(s,"",!1))}catch(o){new Pt.Notice("\u521B\u5EFASMM\u6587\u4EF6\u5931\u8D25"+o,3e3)}}),this.setupObsidianSmmInterceptor(async t=>{let i="",n=t.split("/").length;i=this.settings.myInputFolderPath+"/"+t.split("/")[n-1];let s=this.app.vault.getAbstractFileByPath(i);if(s){let a=await this.app.vault.read(s),o=this.dataURItoBlob(JSON.parse(a).svgData);return URL.createObjectURL(o)}else new Pt.Notice(`SMM file not found: ${i}`)}),this.app.settings=this.settings,this.settings.cacheSize!==65e3&&(this.app.vault.cacheLimit=this.app.settings.cacheSize),this.checkForUpdates(!0),console.log(this.app.metadataCache)}async loadSettings(){this.settings=Object.assign({},Yse,await this.loadData())}async saveSettings(){this.saveData(this.settings),this.removeCommand("create a smm mindmap"),this.addCommand({id:"create a smm mindmap",name:"Create a SimpleMindMap File",callback:async()=>{let{vault:t}=this.app,i=new Date,n=L8(i).format("YYYY-MM-DD-HH-mm-ss"),s=`${this.settings.myInputFolderPath}/SMM-${n}.smm`,a=`
|
||
|
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M1.94607 9.31543C1.42353 9.14125 1.4194 8.86022 1.95682 8.68108L21.043 2.31901C21.5715 2.14285 21.8746 2.43866 21.7265 2.95694L16.2733 22.0432C16.1223 22.5716 15.8177 22.59 15.5944 22.0876L11.9999 14L17.9999 6.00005L9.99992 12L1.94607 9.31543Z"></path></svg>
|
||
|
|
`;try{t.getAbstractFileByPath(s)?new Pt.Notice("\u6587\u4EF6\u5DF2\u7ECF\u5B58\u5728",3e3):(await t.create(s,a),await this.app.workspace.openLinkText(s,"",!1))}catch(o){new Pt.Notice("\u521B\u5EFASMM\u6587\u4EF6\u5931\u8D25"+o,3e3)}}})}async onunload(){this.app.workspace.detachLeavesOfType($1)}dataURItoBlob(t){let i=atob(t.split(",")[1]),n=t.split(",")[0].split(":")[1].split(";")[0],s=new ArrayBuffer(i.length),a=new Uint8Array(s);for(let o=0;o<i.length;o++)a[o]=i.charCodeAt(o);return new Blob([s],{type:n})}setupObsidianSmmInterceptor(t){let i=this.settings.myInputFolderPath,n=this.app,s=new Map;function a(){new MutationObserver(f=>{for(let m of f)for(let g of m.addedNodes)g instanceof HTMLElement&&g.classList.contains("internal-embed")&&l(g)}).observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["src"]}),document.querySelectorAll('.internal-embed[src$=".smm"]').forEach(l)}this.registerMarkdownPostProcessor(async(d,f)=>{let m=d.querySelectorAll(".internal-embed");for(let g of m){let v=g.getAttribute("src");if(v&&v.endsWith(".smm")){let y="",A=v.split("/").length;y=this.settings.myInputFolderPath+"/"+v.split("/")[A-1];let b=this.app.vault.getAbstractFileByPath(y);if(b)try{let C=await this.app.vault.read(b),M=document.createElement("div");if(M.classList.add("SMM-DRAW"),g.parentNode)if(g.parentNode.nodeName!=="HTML"){g.parentNode.insertBefore(M,g),g.style.display="none";let D=this.dataURItoBlob(JSON.parse(C).svgData),L=URL.createObjectURL(D);o.changeWidth?M.innerHTML=`<img src="${L}" class="embed-link-smm"></img>`:M.innerHTML=`<img src="${L}" width="100%" class="embed-link-smm"></img>`}else new Pt.Notice(`Cannot replace element inside ${g.parentNode.nodeName} node`,3e3);else new Pt.Notice(`No parent node found for ${v}`,3e3)}catch(C){new Pt.Notice(`Error reading or processing ${v}:`+C,3e3)}else new Pt.Notice(`SMM file not found: ${v}`,3e3)}}for(let g of document.querySelectorAll(".action_has"))g.onclick=async()=>{let v=g.getAttribute("file");await this.app.workspace.openLinkText(v,"",!1)}});let o=this.settings;function l(d){let f=d.getAttribute("src");f&&f.endsWith(".smm")&&(async()=>{var m;try{let g=await t(f);(m=d.empty)==null||m.call(d);let v=document.createElement("img");v.src=g,o.changeWidth||(v.style.width="100%",v.style.height="auto",v.style.maxWidth="100%",v.style.maxHeight="600px"),d.appendChild(v)}catch(g){new Pt.Notice("Obsidian \u5D4C\u5165\u5143\u7D20\u5904\u7406\u5931\u8D25:"+g,3e3),d.innerHTML=`<div class="error">Failed to load SMM: ${g.message}</div>`}})()}a(),setTimeout(()=>document.querySelectorAll('img[src$=".smm"]').forEach(d=>d.src=d.src),200);function h(){new MutationObserver(f=>{for(let m of f)for(let g of m.addedNodes)g instanceof HTMLElement&&g.classList.contains("canvas-node-content")&&u(g)}).observe(document.body,{childList:!0,subtree:!0}),document.querySelectorAll(".canvas-node-content").forEach(u)}h();let c=this.dataURItoBlob;async function u(d){var g;let f=(g=d.parentNode.nextSibling)==null?void 0:g.innerText;if(!f)return;if(f.split(".")[f.split(".").length-1]=="smm"){let v=d;v.style.padding="0px";let y=i+"/"+f,A=n.vault.getAbstractFileByPath(y);if(A){let b=await n.vault.read(A),C=JSON.parse(b).svgData;C||setTimeout(()=>{C=JSON.parse(b).svgData,C||setTimeout(()=>{C=JSON.parse(b).svgData;let L=URL.createObjectURL(c(C));v.classList.remove("file-embed"),v.classList.add("media-embed"),v.classList.add("image-embed"),v.innerHTML=`<img src="${L}" width="100%" height="100%" draggable="false" style="position: absolute;z-index=100"></img>`},1e3);let D=URL.createObjectURL(c(C));v.classList.remove("file-embed"),v.classList.add("media-embed"),v.classList.add("image-embed"),v.innerHTML=`<img src="${D}" width="100%" height="100%" draggable="false" style="position: absolute;z-index=100"></img>`},500);let M=URL.createObjectURL(c(C));v.innerHTML=`<img src="${M}" width="100%" height="100%" draggable="false" style="position: absolute;z-index=100"></img>`}else new Pt.Notice("no such file")}}return{unmount:()=>{s.forEach(d=>URL.revokeObjectURL(d)),s.clear()}}}async checkForUpdates(t){try
|
||
|
|
/*! Bundled license information:
|
||
|
|
|
||
|
|
jszip/dist/jszip.min.js:
|
||
|
|
(*!
|
||
|
|
|
||
|
|
JSZip v3.10.1 - A JavaScript class for generating and reading zip files
|
||
|
|
<http://stuartk.com/jszip>
|
||
|
|
|
||
|
|
(c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
|
||
|
|
Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown.
|
||
|
|
|
||
|
|
JSZip uses the library pako released under the MIT license :
|
||
|
|
https://github.com/nodeca/pako/blob/main/LICENSE
|
||
|
|
*)
|
||
|
|
|
||
|
|
sax/lib/sax.js:
|
||
|
|
(*! http://mths.be/fromcodepoint v0.1.0 by @mathias *)
|
||
|
|
|
||
|
|
moment/moment.js:
|
||
|
|
(*! moment.js *)
|
||
|
|
(*! version : 2.30.1 *)
|
||
|
|
(*! authors : Tim Wood, Iskren Chernev, Moment.js contributors *)
|
||
|
|
(*! license : MIT *)
|
||
|
|
(*! momentjs.com *)
|
||
|
|
|
||
|
|
@svgdotjs/svg.js/dist/svg.esm.js:
|
||
|
|
(*!
|
||
|
|
* @svgdotjs/svg.js - A lightweight library for manipulating and animating SVG.
|
||
|
|
* @version 3.2.0
|
||
|
|
* https://svgjs.dev/
|
||
|
|
*
|
||
|
|
* @copyright Wout Fierens <wout@mick-wout.com>
|
||
|
|
* @license MIT
|
||
|
|
*
|
||
|
|
* BUILT: Mon Jun 12 2023 10:34:51 GMT+0200 (Central European Summer Time)
|
||
|
|
*)
|
||
|
|
|
||
|
|
lodash-es/lodash.js:
|
||
|
|
(**
|
||
|
|
* @license
|
||
|
|
* Lodash (Custom Build) <https://lodash.com/>
|
||
|
|
* Build: `lodash modularize exports="es" -o ./`
|
||
|
|
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
||
|
|
* Released under MIT license <https://lodash.com/license>
|
||
|
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
||
|
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
||
|
|
*)
|
||
|
|
|
||
|
|
tslib/tslib.es6.js:
|
||
|
|
(*! *****************************************************************************
|
||
|
|
Copyright (c) Microsoft Corporation.
|
||
|
|
|
||
|
|
Permission to use, copy, modify, and/or distribute this software for any
|
||
|
|
purpose with or without fee is hereby granted.
|
||
|
|
|
||
|
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||
|
|
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||
|
|
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||
|
|
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||
|
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||
|
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||
|
|
PERFORMANCE OF THIS SOFTWARE.
|
||
|
|
***************************************************************************** *)
|
||
|
|
*/
|