607 lines
216 KiB
JavaScript
607 lines
216 KiB
JavaScript
|
|
/*
|
||
|
|
THIS IS A GENERATED/BUNDLED FILE BY ESBUILD
|
||
|
|
if you want to view the source, please visit the github repository of this plugin
|
||
|
|
https://github.com/LBF38/obsidian-syncthing-integration
|
||
|
|
|
||
|
|
It is MIT-licensed:
|
||
|
|
|
||
|
|
Copyright (c) 2023 LBF38
|
||
|
|
|
||
|
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||
|
|
of this software and associated documentation files (the "Software"), to deal
|
||
|
|
in the Software without restriction, including without limitation the rights
|
||
|
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||
|
|
copies of the Software, and to permit persons to whom the Software is
|
||
|
|
furnished to do so, subject to the following conditions:
|
||
|
|
|
||
|
|
The above copyright notice and this permission notice shall be included in all
|
||
|
|
copies or substantial portions of the Software.
|
||
|
|
|
||
|
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||
|
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||
|
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||
|
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||
|
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||
|
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||
|
|
SOFTWARE.
|
||
|
|
|
||
|
|
|
||
|
|
Other used code in this built file is licensed as follows:
|
||
|
|
|
||
|
|
This plugin uses diff2html:
|
||
|
|
https://github.com/rtfpessoa/diff2html
|
||
|
|
|
||
|
|
Copyright 2014-2016 Rodrigo Fernandes https://rtfpessoa.github.io/
|
||
|
|
|
||
|
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
|
||
|
|
documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
|
||
|
|
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit
|
||
|
|
persons to whom the Software is furnished to do so, subject to the following conditions:
|
||
|
|
|
||
|
|
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
|
||
|
|
Software.
|
||
|
|
|
||
|
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
|
||
|
|
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
||
|
|
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
||
|
|
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||
|
|
|
||
|
|
|
||
|
|
This plugin and diff2html use jsdiff:
|
||
|
|
https://github.com/kpdecker/jsdiff
|
||
|
|
|
||
|
|
Software License Agreement (BSD License)
|
||
|
|
|
||
|
|
Copyright (c) 2009-2015, Kevin Decker <kpdecker@gmail.com>
|
||
|
|
|
||
|
|
All rights reserved.
|
||
|
|
|
||
|
|
Redistribution and use of this software in source and binary forms, with or without modification,
|
||
|
|
are permitted provided that the following conditions are met:
|
||
|
|
|
||
|
|
* Redistributions of source code must retain the above
|
||
|
|
copyright notice, this list of conditions and the
|
||
|
|
following disclaimer.
|
||
|
|
|
||
|
|
* Redistributions in binary form must reproduce the above
|
||
|
|
copyright notice, this list of conditions and the
|
||
|
|
following disclaimer in the documentation and/or other
|
||
|
|
materials provided with the distribution.
|
||
|
|
|
||
|
|
* Neither the name of Kevin Decker nor the names of its
|
||
|
|
contributors may be used to endorse or promote products
|
||
|
|
derived from this software without specific prior
|
||
|
|
written permission.
|
||
|
|
|
||
|
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||
|
|
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
||
|
|
FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
||
|
|
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||
|
|
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||
|
|
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
|
||
|
|
IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
|
||
|
|
OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||
|
|
|
||
|
|
|
||
|
|
diff2html uses hogan.js:
|
||
|
|
https://github.com/twitter/hogan.js
|
||
|
|
|
||
|
|
Apache License
|
||
|
|
Version 2.0, January 2004
|
||
|
|
http://www.apache.org/licenses/
|
||
|
|
|
||
|
|
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||
|
|
|
||
|
|
1. Definitions.
|
||
|
|
|
||
|
|
"License" shall mean the terms and conditions for use, reproduction,
|
||
|
|
and distribution as defined by Sections 1 through 9 of this document.
|
||
|
|
|
||
|
|
"Licensor" shall mean the copyright owner or entity authorized by
|
||
|
|
the copyright owner that is granting the License.
|
||
|
|
|
||
|
|
"Legal Entity" shall mean the union of the acting entity and all
|
||
|
|
other entities that control, are controlled by, or are under common
|
||
|
|
control with that entity. For the purposes of this definition,
|
||
|
|
"control" means (i) the power, direct or indirect, to cause the
|
||
|
|
direction or management of such entity, whether by contract or
|
||
|
|
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||
|
|
outstanding shares, or (iii) beneficial ownership of such entity.
|
||
|
|
|
||
|
|
"You" (or "Your") shall mean an individual or Legal Entity
|
||
|
|
exercising permissions granted by this License.
|
||
|
|
|
||
|
|
"Source" form shall mean the preferred form for making modifications,
|
||
|
|
including but not limited to software source code, documentation
|
||
|
|
source, and configuration files.
|
||
|
|
|
||
|
|
"Object" form shall mean any form resulting from mechanical
|
||
|
|
transformation or translation of a Source form, including but
|
||
|
|
not limited to compiled object code, generated documentation,
|
||
|
|
and conversions to other media types.
|
||
|
|
|
||
|
|
"Work" shall mean the work of authorship, whether in Source or
|
||
|
|
Object form, made available under the License, as indicated by a
|
||
|
|
copyright notice that is included in or attached to the work
|
||
|
|
(an example is provided in the Appendix below).
|
||
|
|
|
||
|
|
"Derivative Works" shall mean any work, whether in Source or Object
|
||
|
|
form, that is based on (or derived from) the Work and for which the
|
||
|
|
editorial revisions, annotations, elaborations, or other modifications
|
||
|
|
represent, as a whole, an original work of authorship. For the purposes
|
||
|
|
of this License, Derivative Works shall not include works that remain
|
||
|
|
separable from, or merely link (or bind by name) to the interfaces of,
|
||
|
|
the Work and Derivative Works thereof.
|
||
|
|
|
||
|
|
"Contribution" shall mean any work of authorship, including
|
||
|
|
the original version of the Work and any modifications or additions
|
||
|
|
to that Work or Derivative Works thereof, that is intentionally
|
||
|
|
submitted to Licensor for inclusion in the Work by the copyright owner
|
||
|
|
or by an individual or Legal Entity authorized to submit on behalf of
|
||
|
|
the copyright owner. For the purposes of this definition, "submitted"
|
||
|
|
means any form of electronic, verbal, or written communication sent
|
||
|
|
to the Licensor or its representatives, including but not limited to
|
||
|
|
communication on electronic mailing lists, source code control systems,
|
||
|
|
and issue tracking systems that are managed by, or on behalf of, the
|
||
|
|
Licensor for the purpose of discussing and improving the Work, but
|
||
|
|
excluding communication that is conspicuously marked or otherwise
|
||
|
|
designated in writing by the copyright owner as "Not a Contribution."
|
||
|
|
|
||
|
|
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||
|
|
on behalf of whom a Contribution has been received by Licensor and
|
||
|
|
subsequently incorporated within the Work.
|
||
|
|
|
||
|
|
2. Grant of Copyright License. Subject to the terms and conditions of
|
||
|
|
this License, each Contributor hereby grants to You a perpetual,
|
||
|
|
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||
|
|
copyright license to reproduce, prepare Derivative Works of,
|
||
|
|
publicly display, publicly perform, sublicense, and distribute the
|
||
|
|
Work and such Derivative Works in Source or Object form.
|
||
|
|
|
||
|
|
3. Grant of Patent License. Subject to the terms and conditions of
|
||
|
|
this License, each Contributor hereby grants to You a perpetual,
|
||
|
|
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||
|
|
(except as stated in this section) patent license to make, have made,
|
||
|
|
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||
|
|
where such license applies only to those patent claims licensable
|
||
|
|
by such Contributor that are necessarily infringed by their
|
||
|
|
Contribution(s) alone or by combination of their Contribution(s)
|
||
|
|
with the Work to which such Contribution(s) was submitted. If You
|
||
|
|
institute patent litigation against any entity (including a
|
||
|
|
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||
|
|
or a Contribution incorporated within the Work constitutes direct
|
||
|
|
or contributory patent infringement, then any patent licenses
|
||
|
|
granted to You under this License for that Work shall terminate
|
||
|
|
as of the date such litigation is filed.
|
||
|
|
|
||
|
|
4. Redistribution. You may reproduce and distribute copies of the
|
||
|
|
Work or Derivative Works thereof in any medium, with or without
|
||
|
|
modifications, and in Source or Object form, provided that You
|
||
|
|
meet the following conditions:
|
||
|
|
|
||
|
|
(a) You must give any other recipients of the Work or
|
||
|
|
Derivative Works a copy of this License; and
|
||
|
|
|
||
|
|
(b) You must cause any modified files to carry prominent notices
|
||
|
|
stating that You changed the files; and
|
||
|
|
|
||
|
|
(c) You must retain, in the Source form of any Derivative Works
|
||
|
|
that You distribute, all copyright, patent, trademark, and
|
||
|
|
attribution notices from the Source form of the Work,
|
||
|
|
excluding those notices that do not pertain to any part of
|
||
|
|
the Derivative Works; and
|
||
|
|
|
||
|
|
(d) If the Work includes a "NOTICE" text file as part of its
|
||
|
|
distribution, then any Derivative Works that You distribute must
|
||
|
|
include a readable copy of the attribution notices contained
|
||
|
|
within such NOTICE file, excluding those notices that do not
|
||
|
|
pertain to any part of the Derivative Works, in at least one
|
||
|
|
of the following places: within a NOTICE text file distributed
|
||
|
|
as part of the Derivative Works; within the Source form or
|
||
|
|
documentation, if provided along with the Derivative Works; or,
|
||
|
|
within a display generated by the Derivative Works, if and
|
||
|
|
wherever such third-party notices normally appear. The contents
|
||
|
|
of the NOTICE file are for informational purposes only and
|
||
|
|
do not modify the License. You may add Your own attribution
|
||
|
|
notices within Derivative Works that You distribute, alongside
|
||
|
|
or as an addendum to the NOTICE text from the Work, provided
|
||
|
|
that such additional attribution notices cannot be construed
|
||
|
|
as modifying the License.
|
||
|
|
|
||
|
|
You may add Your own copyright statement to Your modifications and
|
||
|
|
may provide additional or different license terms and conditions
|
||
|
|
for use, reproduction, or distribution of Your modifications, or
|
||
|
|
for any such Derivative Works as a whole, provided Your use,
|
||
|
|
reproduction, and distribution of the Work otherwise complies with
|
||
|
|
the conditions stated in this License.
|
||
|
|
|
||
|
|
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||
|
|
any Contribution intentionally submitted for inclusion in the Work
|
||
|
|
by You to the Licensor shall be under the terms and conditions of
|
||
|
|
this License, without any additional terms or conditions.
|
||
|
|
Notwithstanding the above, nothing herein shall supersede or modify
|
||
|
|
the terms of any separate license agreement you may have executed
|
||
|
|
with Licensor regarding such Contributions.
|
||
|
|
|
||
|
|
6. Trademarks. This License does not grant permission to use the trade
|
||
|
|
names, trademarks, service marks, or product names of the Licensor,
|
||
|
|
except as required for reasonable and customary use in describing the
|
||
|
|
origin of the Work and reproducing the content of the NOTICE file.
|
||
|
|
|
||
|
|
7. Disclaimer of Warranty. Unless required by applicable law or
|
||
|
|
agreed to in writing, Licensor provides the Work (and each
|
||
|
|
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||
|
|
implied, including, without limitation, any warranties or conditions
|
||
|
|
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||
|
|
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||
|
|
appropriateness of using or redistributing the Work and assume any
|
||
|
|
risks associated with Your exercise of permissions under this License.
|
||
|
|
|
||
|
|
8. Limitation of Liability. In no event and under no legal theory,
|
||
|
|
whether in tort (including negligence), contract, or otherwise,
|
||
|
|
unless required by applicable law (such as deliberate and grossly
|
||
|
|
negligent acts) or agreed to in writing, shall any Contributor be
|
||
|
|
liable to You for damages, including any direct, indirect, special,
|
||
|
|
incidental, or consequential damages of any character arising as a
|
||
|
|
result of this License or out of the use or inability to use the
|
||
|
|
Work (including but not limited to damages for loss of goodwill,
|
||
|
|
work stoppage, computer failure or malfunction, or any and all
|
||
|
|
other commercial damages or losses), even if such Contributor
|
||
|
|
has been advised of the possibility of such damages.
|
||
|
|
|
||
|
|
9. Accepting Warranty or Additional Liability. While redistributing
|
||
|
|
the Work or Derivative Works thereof, You may choose to offer,
|
||
|
|
and charge a fee for, acceptance of support, warranty, indemnity,
|
||
|
|
or other liability obligations and/or rights consistent with this
|
||
|
|
License. However, in accepting such obligations, You may act only
|
||
|
|
on Your own behalf and on Your sole responsibility, not on behalf
|
||
|
|
of any other Contributor, and only if You agree to indemnify,
|
||
|
|
defend, and hold each Contributor harmless for any liability
|
||
|
|
incurred by, or claims asserted against, such Contributor by reason
|
||
|
|
of your accepting any such warranty or additional liability.
|
||
|
|
|
||
|
|
END OF TERMS AND CONDITIONS
|
||
|
|
|
||
|
|
hogan.js uses nopt:
|
||
|
|
https://github.com/npm/nopt
|
||
|
|
|
||
|
|
The ISC License
|
||
|
|
|
||
|
|
Copyright (c) Isaac Z. Schlueter and Contributors
|
||
|
|
|
||
|
|
Permission to use, copy, modify, and/or distribute this software for any
|
||
|
|
purpose with or without fee is hereby granted, provided that the above
|
||
|
|
copyright notice and this permission notice appear in all copies.
|
||
|
|
|
||
|
|
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.
|
||
|
|
|
||
|
|
nopt uses abbrev:
|
||
|
|
https://github.com/npm/abbrev-js
|
||
|
|
|
||
|
|
This software is dual-licensed under the ISC and MIT licenses.
|
||
|
|
You may use this software under EITHER of the following licenses.
|
||
|
|
|
||
|
|
----------
|
||
|
|
|
||
|
|
The ISC License
|
||
|
|
|
||
|
|
Copyright (c) Isaac Z. Schlueter and Contributors
|
||
|
|
|
||
|
|
Permission to use, copy, modify, and/or distribute this software for any
|
||
|
|
purpose with or without fee is hereby granted, provided that the above
|
||
|
|
copyright notice and this permission notice appear in all copies.
|
||
|
|
|
||
|
|
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.
|
||
|
|
|
||
|
|
|
||
|
|
hogan.js uses mkdirp:
|
||
|
|
https://github.com/isaacs/node-mkdirp
|
||
|
|
|
||
|
|
Copyright (c) 2011-2022 James Halliday (mail@substack.net) and Isaac Z. Schlueter (i@izs.me)
|
||
|
|
|
||
|
|
This project is free software released under the MIT license:
|
||
|
|
|
||
|
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||
|
|
of this software and associated documentation files (the "Software"), to deal
|
||
|
|
in the Software without restriction, including without limitation the rights
|
||
|
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||
|
|
copies of the Software, and to permit persons to whom the Software is
|
||
|
|
furnished to do so, subject to the following conditions:
|
||
|
|
|
||
|
|
The above copyright notice and this permission notice shall be included in
|
||
|
|
all copies or substantial portions of the Software.
|
||
|
|
|
||
|
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||
|
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||
|
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||
|
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||
|
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||
|
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||
|
|
THE SOFTWARE.
|
||
|
|
*/
|
||
|
|
|
||
|
|
"use strict";var la=Object.create;var Sn=Object.defineProperty;var aa=Object.getOwnPropertyDescriptor;var ca=Object.getOwnPropertyNames;var ua=Object.getPrototypeOf,fa=Object.prototype.hasOwnProperty;var da=(i,e,t)=>e in i?Sn(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var it=(i,e)=>()=>(e||i((e={exports:{}}).exports,e),e.exports),pa=(i,e)=>{for(var t in e)Sn(i,t,{get:e[t],enumerable:!0})},$o=(i,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of ca(e))!fa.call(i,r)&&r!==t&&Sn(i,r,{get:()=>e[r],enumerable:!(n=aa(e,r))||n.enumerable});return i};var ga=(i,e,t)=>(t=i!=null?la(ua(i)):{},$o(e||!i||!i.__esModule?Sn(t,"default",{value:i,enumerable:!0}):t,i)),ma=i=>$o(Sn({},"__esModule",{value:!0}),i);var K=(i,e,t)=>(da(i,typeof e!="symbol"?e+"":e,t),t),ha=(i,e,t)=>{if(!e.has(i))throw TypeError("Cannot "+t)};var br=(i,e,t)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,t)};var ri=(i,e,t)=>(ha(i,e,"access private method"),t);var kr=it(At=>{"use strict";Object.defineProperty(At,"__esModule",{value:!0});At.FORMAT_PLAIN=At.FORMAT_HTML=At.FORMATS=void 0;var No="html";At.FORMAT_HTML=No;var Ao="plain";At.FORMAT_PLAIN=Ao;var va=[No,Ao];At.FORMATS=va});var Po=it(nt=>{"use strict";Object.defineProperty(nt,"__esModule",{value:!0});nt.UNIT_WORDS=nt.UNIT_WORD=nt.UNIT_SENTENCES=nt.UNIT_SENTENCE=nt.UNIT_PARAGRAPHS=nt.UNIT_PARAGRAPH=nt.UNITS=void 0;var Do="words";nt.UNIT_WORDS=Do;var jo="word";nt.UNIT_WORD=jo;var Eo="sentences";nt.UNIT_SENTENCES=Eo;var Fo="sentence";nt.UNIT_SENTENCE=Fo;var zo="paragraphs";nt.UNIT_PARAGRAPHS=zo;var Oo="paragraph";nt.UNIT_PARAGRAPH=Oo;var wa=[Do,jo,Eo,Fo,zo,Oo];nt.UNITS=wa});var xr=it(li=>{"use strict";Object.defineProperty(li,"__esModule",{value:!0});li.WORDS=void 0;var ka=["ad","adipisicing","aliqua","aliquip","amet","anim","aute","cillum","commodo","consectetur","consequat","culpa","cupidatat","deserunt","do","dolor","dolore","duis","ea","eiusmod","elit","enim","esse","est","et","eu","ex","excepteur","exercitation","fugiat","id","in","incididunt","ipsum","irure","labore","laboris","laborum","Lorem","magna","minim","mollit","nisi","non","nostrud","nulla","occaecat","officia","pariatur","proident","qui","quis","reprehenderit","sint","sit","sunt","tempor","ullamco","ut","velit","veniam","voluptate"];li.WORDS=ka});var Ro=it(ai=>{"use strict";Object.defineProperty(ai,"__esModule",{value:!0});ai.LINE_ENDINGS=void 0;var xa={POSIX:`
|
||
|
|
`,WIN32:`\r
|
||
|
|
`};ai.LINE_ENDINGS=xa});var Bo=it(ci=>{"use strict";Object.defineProperty(ci,"__esModule",{value:!0});ci.default=void 0;var Ca=function(e){var t=e.trim();return t.charAt(0).toUpperCase()+t.slice(1)},Ia=Ca;ci.default=Ia});var Go=it((ui,Cr)=>{"use strict";Object.defineProperty(ui,"__esModule",{value:!0});ui.default=void 0;var Ma=function(){return typeof Cr!="undefined"&&!!Cr.exports},Sa=Ma;ui.default=Sa});var Zo=it(fi=>{"use strict";Object.defineProperty(fi,"__esModule",{value:!0});fi.default=void 0;var $a=function(){var e=!1;try{e=navigator.product==="ReactNative"}catch(t){e=!1}return e},Ta=$a;fi.default=Ta});var Wo=it(di=>{"use strict";Object.defineProperty(di,"__esModule",{value:!0});di.SUPPORTED_PLATFORMS=void 0;var La={DARWIN:"darwin",LINUX:"linux",WIN32:"win32"};di.SUPPORTED_PLATFORMS=La});var Qo=it(pi=>{"use strict";Object.defineProperty(pi,"__esModule",{value:!0});pi.default=void 0;var Na=Wo(),Aa=function(){var e=!1;try{e=process.platform===Na.SUPPORTED_PLATFORMS.WIN32}catch(t){e=!1}return e},Da=Aa;pi.default=Da});var Ir=it(gi=>{"use strict";Object.defineProperty(gi,"__esModule",{value:!0});gi.default=void 0;var ja=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return Array.apply(null,Array(e)).map(function(t,n){return n})},Ea=ja;gi.default=Ea});var Yo=it(mi=>{"use strict";Object.defineProperty(mi,"__esModule",{value:!0});mi.default=void 0;var Fa=za(Ir());function za(i){return i&&i.__esModule?i:{default:i}}var Oa=function(e,t){var n=(0,Fa.default)(e);return n.map(function(){return t()})},Pa=Oa;mi.default=Pa});var Mr=it(Dt=>{"use strict";Object.defineProperty(Dt,"__esModule",{value:!0});Object.defineProperty(Dt,"capitalize",{enumerable:!0,get:function(){return Ra.default}});Object.defineProperty(Dt,"isNode",{enumerable:!0,get:function(){return Ba.default}});Object.defineProperty(Dt,"isReactNative",{enumerable:!0,get:function(){return Ga.default}});Object.defineProperty(Dt,"isWindows",{enumerable:!0,get:function(){return Za.default}});Object.defineProperty(Dt,"makeArrayOfLength",{enumerable:!0,get:function(){return Wa.default}});Object.defineProperty(Dt,"makeArrayOfStrings",{enumerable:!0,get:function(){return Qa.default}});var Ra=un(Bo()),Ba=un(Go()),Ga=un(Zo()),Za=un(Qo()),Wa=un(Ir()),Qa=un(Yo());function un(i){return i&&i.__esModule?i:{default:i}}});var Jo=it(_i=>{"use strict";Object.defineProperty(_i,"__esModule",{value:!0});_i.default=void 0;var Ya=xr(),Sr=Mr();function Ua(i,e){if(!(i instanceof e))throw new TypeError("Cannot call a class as a function")}function Uo(i,e){for(var t=0;t<e.length;t++){var n=e[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(i,n.key,n)}}function Ja(i,e,t){return e&&Uo(i.prototype,e),t&&Uo(i,t),Object.defineProperty(i,"prototype",{writable:!1}),i}function hi(i,e,t){return e in i?Object.defineProperty(i,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):i[e]=t,i}var Ha=function(){function i(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.sentencesPerParagraph,n=t===void 0?{max:7,min:3}:t,r=e.wordsPerSentence,o=r===void 0?{max:15,min:5}:r,s=e.random,a=e.seed,l=e.words,u=l===void 0?Ya.WORDS:l;if(Ua(this,i),hi(this,"sentencesPerParagraph",void 0),hi(this,"wordsPerSentence",void 0),hi(this,"random",void 0),hi(this,"words",void 0),n.min>n.max)throw new Error("Minimum number of sentences per paragraph (".concat(n.min,") cannot exceed maximum (").concat(n.max,")."));if(o.min>o.max)throw new Error("Minimum number of words per sentence (".concat(o.min,") cannot exceed maximum (").concat(o.max,")."));this.sentencesPerParagraph=n,this.words=u,this.wordsPerSentence=o,this.random=s||Math.random}return Ja(i,[{key:"generateRandomInteger",value:function(t,n){return Math.floor(this.random()*(n-t+1)+t)}},{key:"generateRandomWords",value:function(t){var n=this,r=this.wordsPerSentence,o=r.min,s=r.max,a=t||this.generateRandomInteger(o,s);return(0,Sr.makeArrayOfLength)(a).reduce(function(l,u){return"".concat(n.pluckRandomWord()," ").concat(l)},"").trim()}},{key:"generateRandomSentence",value:function(
|
||
|
|
|
||
|
|
${(0,fn.loremIpsum)({count:1,units:"paragraphs"})}`);console.log("In the generateSyncthingConflicts function."),new rt.Notice("Creating conflict files...");for(let a=0;a<t;a++){r.setMessage(`Progress (conflicts): ${a}/${t}`);let u=wr({from:new Date(2020,0,1),to:new Date}).toISOString().replace(/-/gm,"").replace("T","-").replace(/:|\.\d{3}Z/gm,""),f=Math.random().toString(36).substring(2,9).toUpperCase();console.log(u),await this.plugin.app.vault.create(`${s.basename}.sync-conflict-${u}-${f}.md`,`# ${(0,fn.loremIpsum)({count:1,units:"words"})}
|
||
|
|
|
||
|
|
${(0,fn.loremIpsum)({count:2,units:"paragraphs"})}`)}}}async purgeVault(){this.plugin.app.vault.getAllLoadedFiles().forEach(async e=>{await this.plugin.app.vault.delete(e)})}},Nn=class extends rt.Modal{constructor(t,n){super(t);this.pluginDevModeController=n;this.distinctFiles=2,this.conflictsPerFile=3}onOpen(){let{contentEl:t}=this;t.createEl("h2",{text:"Plugin development mode"}),t.createEl("p",{text:`Here, you can create sample files to test the Obsidian Syncthing integration plugin.
|
||
|
|
The generated files are formated as in Syncthing documentation about conflicting files.`}),t.createEl("p",{text:"File format : <filename>.sync-conflict-<date>-<deviceID>.<extension>"}),new rt.Setting(t).setName("Number of distinct files").setDesc("Number of files that will be created.").addSlider(n=>{n.setValue(this.distinctFiles).setDynamicTooltip().setLimits(1,50,1).onChange(r=>{this.distinctFiles=r})}),new rt.Setting(t).setName("Number of conflicts per file").setDesc("Number of conflicts that will be created for each file.").addSlider(n=>{n.setValue(this.conflictsPerFile).setDynamicTooltip().setLimits(1,25,1).onChange(r=>{this.conflictsPerFile=r})}),new rt.Setting(t).setName("Generate Syncthing conflicts").addButton(n=>{n.setCta().setButtonText("Generate").onClick(async()=>{await this.pluginDevModeController.generateSyncthingConflicts(this.distinctFiles,this.conflictsPerFile),this.close()})}),new rt.Setting(t).setName("Purge Vault").setDesc("Delete all files in the vault.").addButton(n=>{n.setWarning().setButtonText("Purge").onClick(async()=>{let r=new rt.Modal(this.app);r.contentEl.createEl("h1",{text:"Purge Vault"}),r.contentEl.createEl("p",{text:"This will delete all files in the vault. Please don't use it on a vault that contains important files."}),new rt.Setting(r.contentEl).setName("Are you sure?").setHeading().addButton(o=>{o.setWarning().setButtonText("Yes").onClick(async()=>{await this.pluginDevModeController.purgeVault(),r.close(),this.close()})}).addButton(o=>{o.setButtonText("No").onClick(()=>{r.close()})}),r.open()})})}onClose(){let{contentEl:t}=this;t.empty()}};var An=require("obsidian");var wi=class{constructor(e,t){this.status_bar=e;this.plugin=t;this.app=t.app,this.currentFile=this.app.workspace.getActiveFile()}onload(){this.createStatusBar(),this.plugin.registerEvent(this.plugin.app.workspace.on("file-open",e=>{this.currentFile=e,this.createStatusBar()})),this.status_bar.onClickEvent(e=>{var n,r;let t=new An.Menu;if(t.addItem(o=>{o.setTitle("Open all conflicts as splits").onClick(()=>{var s;(s=this.activeConflicts)==null||s.forEach(async a=>{await this.app.workspace.createLeafBySplit(this.app.workspace.getLeaf()).openFile(a)})}),o.setIcon("arrow-up-right")}),this.currentFile&&$n(this.currentFile.name)&&this.originalFile===void 0){let o=this.currentFile;t.addItem(s=>{s.setTitle("Rename to original").onClick(async()=>{let a=tt(o.name);if(a instanceof _e){new An.Notice("Failed to parse conflict filename"),console.error(a.message);return}new An.Notice("Not implemented yet")}),s.setIcon("pencil")})}this.originalFile!==void 0&&t.addItem(o=>{o.setTitle("Open original file").onClick(async()=>await this.app.workspace.createLeafBySplit(this.app.workspace.getLeaf()).openFile(this.originalFile)),o.setIcon("arrow-up-right")}),t.addSeparator(),(n=this.activeConflicts)==null||n.sort((o,s)=>{let a=tt(o.basename),l=tt(s.basename);return a instanceof _e||l instanceof _e?0:a.dateTime>l.dateTime?-1:a.dateTime<l.dateTime?1:0}),(r=this.activeConflicts)==null||r.forEach(o=>{t.addItem(s=>{if($n(o.basename)){let a=tt(o.basename);if(a instanceof _e)return;s.setTitle(`${a.filename} (caused by ${a.modifiedBy} on ${a.dateTime.toISOString().replace("T"," ").replace("Z","")})`)}s.setIcon("file"),s.onClick(async()=>{await this.app.workspace.createLeafBySplit(this.app.workspace.getLeaf()).openFile(o)})})}),t.showAtPosition({x:window.innerWidth-15,y:window.innerHeight-37})}),this.status_bar.addClass("mod-clickable"),this.status_bar.style.color="var(--text-warning)"}createStatusBar(){let e=this.app.workspace.getActiveFile();if(!e){this.status_bar.empty();return}this.plugin.syncthingController.getConflictsWithOriginal(e).then(t=>{if(this.activeConflicts=t.conflicts,this.activeConflicts.remove(e),this.originalFile=t.originalFile,!this.activeConflicts||this.activeConflicts.length===0){this.status_bar.empty();return}this.status_bar.setText(`${this.activeConflicts.length} conflicts`)})}onunload(){this.status_bar.empty()}};var es=require("obsidian"),ki=class{async hasSyncthing(){return console.log("Platform: ",es.Platform),console.log("Ob
|
||
|
|
`)}static newName(){let e=_s[hs]||1;return _s[hs]=e+1,Or+e.toString(36)}static mount(e,t,n){let r=e[Pr],o=n&&n.nonce;r?o&&r.setNonce(o):r=new Rr(e,o),r.mount(Array.isArray(t)?t:[t],e)}},bs=new Map,Rr=class{constructor(e,t){let n=e.ownerDocument||e,r=n.defaultView;if(!e.head&&e.adoptedStyleSheets&&r.CSSStyleSheet){let o=bs.get(n);if(o)return e[Pr]=o;this.sheet=new r.CSSStyleSheet,bs.set(n,this)}else this.styleTag=n.createElement("style"),t&&this.styleTag.setAttribute("nonce",t);this.modules=[],e[Pr]=this}mount(e,t){let n=this.sheet,r=0,o=0;for(let s=0;s<e.length;s++){let a=e[s],l=this.modules.indexOf(a);if(l<o&&l>-1&&(this.modules.splice(l,1),o--,l=-1),l==-1){if(this.modules.splice(o++,0,a),n)for(let u=0;u<a.rules.length;u++)n.insertRule(a.rules[u],r++)}else{for(;o<l;)r+=this.modules[o++].rules.length;r+=a.rules.length,o++}}if(n)t.adoptedStyleSheets.indexOf(this.sheet)<0&&(t.adoptedStyleSheets=[this.sheet,...t.adoptedStyleSheets]);else{let s="";for(let l=0;l<this.modules.length;l++)s+=this.modules[l].getRules()+`
|
||
|
|
`;this.styleTag.textContent=s;let a=t.head||t;this.styleTag.parentNode!=a&&a.insertBefore(this.styleTag,a.firstChild)}}setNonce(e){this.styleTag&&this.styleTag.getAttribute("nonce")!=e&&this.styleTag.setAttribute("nonce",e)}};var Ui=require("@codemirror/language"),Es=require("@lezer/highlight"),Pe=class i{constructor(e,t,n,r){this.fromA=e,this.toA=t,this.fromB=n,this.toB=r}offset(e,t){return new i(this.fromA+e,this.toA+e,this.fromB+t,this.toB+t)}};function Xt(i,e,t,n,r,o){if(i==n)return[];let s=Yr(i,e,t,n,r,o),a=Ur(i,e+s,t,n,r+s,o);e+=s,t-=a,r+=s,o-=a;let l=t-e,u=o-r;if(!l||!u)return[new Pe(e,t,r,o)];if(l>u){let d=i.slice(e,t).indexOf(n.slice(r,o));if(d>-1)return[new Pe(e,e+d,r,r),new Pe(e+d+u,t,o,o)]}else if(u>l){let d=n.slice(r,o).indexOf(i.slice(e,t));if(d>-1)return[new Pe(e,e,r,r+d),new Pe(t,t,r+d+l,o)]}if(l==1||u==1)return[new Pe(e,t,r,o)];let f=zs(i,e,t,n,r,o);if(f){let[d,m,g]=f;return Xt(i,e,d,n,r,m).concat(Xt(i,d+g,t,n,m+g,o))}return Ic(i,e,t,n,r,o)}var Rn=1e9;function Ic(i,e,t,n,r,o){let s=t-e,a=o-r;if(Rn<1e9&&Math.min(s,a)>Rn*16)return Math.min(s,a)>Rn*64?[new Pe(e,t,r,o)]:ys(i,e,t,n,r,o);let l=Math.ceil((s+a)/2);Br.reset(l),Gr.reset(l);let u=(g,_)=>i.charCodeAt(e+g)==n.charCodeAt(r+_),f=(g,_)=>i.charCodeAt(t-g-1)==n.charCodeAt(o-_-1),d=(s-a)%2!=0?Gr:null,m=d?null:Br;for(let g=0;g<l;g++){if(g>Rn)return ys(i,e,t,n,r,o);let _=Br.advance(g,s,a,l,d,!1,u)||Gr.advance(g,s,a,l,m,!0,f);if(_)return Mc(i,e,t,e+_[0],n,r,o,r+_[1])}return[new Pe(e,t,r,o)]}var Gi=class{constructor(){this.vec=[]}reset(e){this.len=e<<1;for(let t=0;t<this.len;t++)this.vec[t]=-1;this.vec[e+1]=0,this.start=this.end=0}advance(e,t,n,r,o,s,a){for(let l=-e+this.start;l<=e-this.end;l+=2){let u=r+l,f=l==-e||l!=e&&this.vec[u-1]<this.vec[u+1]?this.vec[u+1]:this.vec[u-1]+1,d=f-l;for(;f<t&&d<n&&a(f,d);)f++,d++;if(this.vec[u]=f,f>t)this.end+=2;else if(d>n)this.start+=2;else if(o){let m=r+(t-n)-l;if(m>=0&&m<this.len&&o.vec[m]!=-1)if(s){let g=o.vec[m];if(g>=t-f)return[g,r+g-m]}else{let g=t-o.vec[m];if(f>=g)return[f,d]}}}return null}},Br=new Gi,Gr=new Gi;function Mc(i,e,t,n,r,o,s,a){let l=!1;return!yn(i,n)&&++n==t&&(l=!0),!yn(r,a)&&++a==s&&(l=!0),l?[new Pe(e,t,o,s)]:Xt(i,e,n,r,o,a).concat(Xt(i,n,t,r,a,s))}function Fs(i,e){let t=1,n=Math.min(i,e);for(;t<n;)t=t<<1;return t}function Yr(i,e,t,n,r,o){if(e==t||e==o||i.charCodeAt(e)!=n.charCodeAt(r))return 0;let s=Fs(t-e,o-r);for(let a=e,l=r;;){let u=a+s,f=l+s;if(u>t||f>o||i.slice(a,u)!=n.slice(l,f)){if(s==1)return a-e-(yn(i,a)?0:1);s=s>>1}else{if(u==t||f==o)return u-e;a=u,l=f}}}function Ur(i,e,t,n,r,o){if(e==t||r==o||i.charCodeAt(t-1)!=n.charCodeAt(o-1))return 0;let s=Fs(t-e,o-r);for(let a=t,l=o;;){let u=a-s,f=l-s;if(u<e||f<r||i.slice(u,a)!=n.slice(f,l)){if(s==1)return t-a-(yn(i,a)?0:1);s=s>>1}else{if(u==e||f==r)return t-u;a=u,l=f}}}function Zr(i,e,t,n,r,o,s,a){let l=n.slice(r,o),u=null;for(;;){if(u||s<a)return u;for(let f=e+s;;){yn(i,f)||f++;let d=f+s;if(yn(i,d)||(d+=d==f+1?1:-1),d>=t)break;let m=i.slice(f,d),g=-1;for(;(g=l.indexOf(m,g+1))!=-1;){let _=Yr(i,d,t,n,r+g+m.length,o),k=Ur(i,e,f,n,r,r+g),x=m.length+_+k;(!u||u[2]<x)&&(u=[f-k,r+g-k,x])}f=d}if(a<0)return u;s=s>>1}}function zs(i,e,t,n,r,o){let s=t-e,a=o-r;if(s<a){let l=zs(n,r,o,i,e,t);return l&&[l[1],l[0],l[2]]}return s<4||a*2<s?null:Zr(i,e,t,n,r,o,Math.floor(s/4),-1)}function ys(i,e,t,n,r,o){let s=t-e,a=o-r,l;if(s<a){let m=Zr(n,r,o,i,e,t,Math.floor(s/6),50);l=m&&[m[1],m[0],m[2]]}else l=Zr(i,e,t,n,r,o,Math.floor(a/6),50);if(!l)return[new Pe(e,t,r,o)];let[u,f,d]=l;return Xt(i,e,u,n,r,f).concat(Xt(i,u+d,t,n,f+d,o))}function Os(i,e){for(let t=1;t<i.length;t++){let n=i[t-1],r=i[t];n.toA>r.fromA-e&&n.toB>r.fromB-e&&(i[t-1]=new Pe(n.fromA,r.toA,n.fromB,r.toB),i.splice(t--,1))}}function Sc(i,e,t){for(;;){Os(t,1);let n=!1;for(let r=0;r<t.length;r++){let o=t[r],s,a;(s=Yr(i,o.fromA,o.toA,e,o.fromB,o.toB))&&(o=t[r]=new Pe(o.fromA+s,o.toA,o.fromB+s,o.toB)),(a=Ur(i,o.fromA,o.toA,e,o.fromB,o.toB))&&(o=t[r]=new Pe(o.fromA,o.toA-a,o.fromB,o.toB-a));let l=o.toA-o.fromA,u=o.toB-o.fromB;if(l&&u)continue;let f=o.fromA-(r?t[r-1].toA:0),d=(r<t.length-1?t[r+1].fromA:i.length)-o.to
|
||
|
|
`).map(r=>{let o=r.match(/^\s+/);if(o===null)return r;let[s]=o;return s.length>=n.length?r.slice(n.length):r}).join(`
|
||
|
|
`)}var wn=class{constructor(e){K(this,"options");K(this,"rules");K(this,"lexer");this.options=e||tn}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let n=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?n:qi(n,`
|
||
|
|
`)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let n=t[0],r=tu(n,t[3]||"");return{type:"code",raw:n,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:r}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let n=t[2].trim();if(/#$/.test(n)){let r=qi(n,"#");(this.options.pedantic||!r||/ $/.test(r))&&(n=r.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let n=qi(t[0].replace(/^ *>[ \t]?/gm,""),`
|
||
|
|
`),r=this.lexer.state.top;this.lexer.state.top=!0;let o=this.lexer.blockTokens(n);return this.lexer.state.top=r,{type:"blockquote",raw:t[0],tokens:o,text:n}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),r=n.length>1,o={type:"list",raw:"",ordered:r,start:r?+n.slice(0,-1):"",loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:"[*+-]");let s=new RegExp(`^( {0,3}${n})((?:[ ][^\\n]*)?(?:\\n|$))`),a="",l="",u=!1;for(;e;){let f=!1;if(!(t=s.exec(e))||this.rules.block.hr.test(e))break;a=t[0],e=e.substring(a.length);let d=t[2].split(`
|
||
|
|
`,1)[0].replace(/^\t+/,C=>" ".repeat(3*C.length)),m=e.split(`
|
||
|
|
`,1)[0],g=0;this.options.pedantic?(g=2,l=d.trimStart()):(g=t[2].search(/[^ ]/),g=g>4?1:g,l=d.slice(g),g+=t[1].length);let _=!1;if(!d&&/^ *$/.test(m)&&(a+=m+`
|
||
|
|
`,e=e.substring(m.length+1),f=!0),!f){let C=new RegExp(`^ {0,${Math.min(3,g-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),w=new RegExp(`^ {0,${Math.min(3,g-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),S=new RegExp(`^ {0,${Math.min(3,g-1)}}(?:\`\`\`|~~~)`),T=new RegExp(`^ {0,${Math.min(3,g-1)}}#`);for(;e;){let P=e.split(`
|
||
|
|
`,1)[0];if(m=P,this.options.pedantic&&(m=m.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),S.test(m)||T.test(m)||C.test(m)||w.test(e))break;if(m.search(/[^ ]/)>=g||!m.trim())l+=`
|
||
|
|
`+m.slice(g);else{if(_||d.search(/[^ ]/)>=4||S.test(d)||T.test(d)||w.test(d))break;l+=`
|
||
|
|
`+m}!_&&!m.trim()&&(_=!0),a+=P+`
|
||
|
|
`,e=e.substring(P.length+1),d=m.slice(g)}}o.loose||(u?o.loose=!0:/\n *\n *$/.test(a)&&(u=!0));let k=null,x;this.options.gfm&&(k=/^\[[ xX]\] /.exec(l),k&&(x=k[0]!=="[ ] ",l=l.replace(/^\[[ xX]\] +/,""))),o.items.push({type:"list_item",raw:a,task:!!k,checked:x,loose:!1,text:l,tokens:[]}),o.raw+=a}o.items[o.items.length-1].raw=a.trimEnd(),o.items[o.items.length-1].text=l.trimEnd(),o.raw=o.raw.trimEnd();for(let f=0;f<o.items.length;f++)if(this.lexer.state.top=!1,o.items[f].tokens=this.lexer.blockTokens(o.items[f].text,[]),!o.loose){let d=o.items[f].tokens.filter(g=>g.type==="space"),m=d.length>0&&d.some(g=>/\n.*\n/.test(g.raw));o.loose=m}if(o.loose)for(let f=0;f<o.items.length;f++)o.items[f].loose=!0;return o}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let n=t[1].toLowerCase().replace(/\s+/g," "),r=t[2]?t[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",o=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:n,raw:t[0],href:r,title:o}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!/[:|]/.test(t[2]))return;let n=Xs(t[1]),r=t[2].replace(/^\||\| *$/g,"").split("|"),o=t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split(`
|
||
|
|
`):[],s={type:"table",raw:t[0],header:[],align:[],rows:[]};if(n.length===r.length){for(let a of r)/^ *-+: *$/.test(a)?s.align.push("right"):/^ *:-+: *$/.test(a)?s.align.push("center"):/^ *:-+ *$/.test(a)?s.align.push("left"):s.align.push(null);for(let a of n)s.header.push({text:a,tokens:this.lexer.inline(a)});for(let a of o)s.rows.push(Xs(a,s.header.length).map(l=>({text:l,tokens:this.lexer.inline(l)})));return s}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:t[2].charAt(0)==="="?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let n=t[1].charAt(t[1].length-1)===`
|
||
|
|
`?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:n,tokens:this.lexer.inline(n)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:pt(t[1])}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^<a /i.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let n=t[2].trim();if(!this.options.pedantic&&/^</.test(n)){if(!/>$/.test(n))return;let s=qi(n.slice(0,-1),"\\");if((n.length-s.length)%2===0)return}else{let s=eu(t[2],"()");if(s>-1){let l=(t[0].indexOf("!")===0?5:4)+t[1].length+s;t[2]=t[2].substring(0,s),t[0]=t[0].substring(0,l).trim(),t[3]=""}}let r=t[2],o="";if(this.options.pedantic){let s=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(r);s&&(r=s[1],o=s[3])}else o=t[3]?t[3].slice(1,-1):"";return r=r.trim(),/^</.test(r)&&(this.options.pedantic&&!/>$/.test(n)?r=r.slice(1):r=r.slice(1,-1)),Ks(t,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:o&&o.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let r=(n[2]||n[1]).replace(/\s+/g," "),o=t[r.toLowerCase()];if(!o){let s=n[0].charAt(0);return{type:"text",raw:s,text:s}}return Ks(n,o,n[0],this.lexer)}}emStrong(e,t,n=""){let r=this.rules.inline.emStrongLDelim.exec(e);if(!r||r[3]&&n.match(/[\p{L}\p{N}]/u))return;if(!(r[1]||r[2]||"")||!n||this.rules.inline.punctuation.exec(n)){let s=[...r[0]].length-1,a,l,u=s,f=0,d=r[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(d.lastIndex=0,t=t.slice(-1*e.length+s);(r=d.exec(t))!=null;){if(a=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!a)continue;if(l=[...a].length,r[3]||r[4]){u+=l;continue}else if((r[5]||r[6])&&s%3&&!((s+l)%3)){f+=l;continue}if(u-=l,u>0)continue;l=Math.min(l,l+u+f);let m=[...r[0]][0].length,g=e.slice(0,s+r.index+m+l);if(Math.min(s,l)%2){let k=g.slice(1,-1);return{type:"em",raw:g,text:k,tokens:this.lexer.inlineTokens(k)}}let _=g.slice(2,-2);return{type:"strong",raw:g,text:_,tokens:this.lexer.inlineTokens(_)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let n=t[2].replace(/\n/g," "),r=/[^ ]/.test(n),o=/^ /.test(n)&&/ $/.test(n);return r&&o&&(n=n.substring(1,n.length-1)),n=pt(n,!0),{type:"codespan",raw:t[0],text:n}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){let t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let n,r;return t[2]==="@"?(n=pt(t[1]),r="mailto:"+n):(n=pt(t[1]),r=n),{type:"link",raw:t[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}}}url(e){var n,r;let t;if(t=this.rules.inline.url.exec(e)){let o,s;if(t[2]==="@")o=pt(t[0]),s="mailto:"+o;else{let a;do a=t[0],t[0]=(r=(n=this.rules.inline._backpedal.exec(t[0]))==null?void 0:n[0])!=null?r:"";while(a!==t[0]);o=pt(t[0]),t[1]==="www."?s="http://"+t[0]:s=t[0]}return{type:"link",raw:t[0],text:o,href:s,tokens:[{type:"text",raw:o,text:o}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let n;return this.lexer.state.inRawBlock?n=t[0]:n=pt(t[0]),{type:"text",raw:t[0],text:n}}}},nu=/^(?: *(?:\n|$))+/,iu=/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,ru=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Jn=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,ou=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,rl=/(?:[*+-]|\d{1,9}[.)])/,ol=Me(/^(?!bull )((?:.|\n(?!\s*?\
|
||
|
|
]`).replace("lheading",ol).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},ll=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,pu=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,al=/^( {2,}|\\)\n(?!\s*$)/,gu=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Hn="\\p{P}$+<=>`^|~",mu=Me(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,Hn).getRegex(),hu=/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,_u=Me(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,Hn).getRegex(),bu=Me("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,Hn).getRegex(),yu=Me("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,Hn).getRegex(),vu=Me(/\\([punct])/,"gu").replace(/punct/g,Hn).getRegex(),wu=Me(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),ku=Me(to).replace("(?:-->|$)","-->").getRegex(),xu=Me("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",ku).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Xi=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Cu=Me(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",Xi).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),cl=Me(/^!?\[(label)\]\[(ref)\]/).replace("label",Xi).replace("ref",eo).getRegex(),ul=Me(/^!?\[(ref)\](?:\[\])?/).replace("ref",eo).getRegex(),Iu=Me("reflink|nolink(?!\\()","g").replace("reflink",cl).replace("nolink",ul).getRegex(),io={_backpedal:Qn,anyPunctuation:vu,autolink:wu,blockSkip:hu,br:al,code:pu,del:Qn,emStrongLDelim:_u,emStrongRDelimAst:bu,emStrongRDelimUnd:yu,escape:ll,link:Cu,nolink:ul,punctuation:mu,reflink:cl,reflinkSearch:Iu,tag:xu,text:gu,url:Qn},Mu={...io,link:Me(/^!?\[(label)\]\((.*?)\)/).replace("label",Xi).getRegex(),reflink:Me(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Xi).getRegex()},Hr={...io,escape:Me(ll).replace("])","~|])").getRegex(),url:Me(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},Su={...Hr,br:Me(al).replace("{2,}","*").getRegex(),text:Me(Hr.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Vi={normal:no,gfm:fu,pedantic:du},Wn={normal:io,gfm:Hr,breaks:Su,pedantic:Mu},It=class i{constructor(e){K(this,"tokens");K(this,"options");K(this,"state");K(this,"tokenizer");K(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=e||tn,this.options.tokenizer=this.options.tokenizer||new wn,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let t={block:Vi.normal,inline:Wn.normal};this.options.pedantic?(t.block=Vi.pedantic,t.inline=Wn.pedantic):th
|
||
|
|
`),this.blockTokens(e,this.tokens);for(let t=0;t<this.inlineQueue.length;t++){let n=this.inlineQueue[t];this.inlineTokens(n.src,n.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[]){this.options.pedantic?e=e.replace(/\t/g," ").replace(/^ +$/gm,""):e=e.replace(/^( *)(\t+)/gm,(a,l,u)=>l+" ".repeat(u.length));let n,r,o,s;for(;e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(a=>(n=a.call({lexer:this},e,t))?(e=e.substring(n.raw.length),t.push(n),!0):!1))){if(n=this.tokenizer.space(e)){e=e.substring(n.raw.length),n.raw.length===1&&t.length>0?t[t.length-1].raw+=`
|
||
|
|
`:t.push(n);continue}if(n=this.tokenizer.code(e)){e=e.substring(n.raw.length),r=t[t.length-1],r&&(r.type==="paragraph"||r.type==="text")?(r.raw+=`
|
||
|
|
`+n.raw,r.text+=`
|
||
|
|
`+n.text,this.inlineQueue[this.inlineQueue.length-1].src=r.text):t.push(n);continue}if(n=this.tokenizer.fences(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.heading(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.hr(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.blockquote(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.list(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.html(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.def(e)){e=e.substring(n.raw.length),r=t[t.length-1],r&&(r.type==="paragraph"||r.type==="text")?(r.raw+=`
|
||
|
|
`+n.raw,r.text+=`
|
||
|
|
`+n.raw,this.inlineQueue[this.inlineQueue.length-1].src=r.text):this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title});continue}if(n=this.tokenizer.table(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.lheading(e)){e=e.substring(n.raw.length),t.push(n);continue}if(o=e,this.options.extensions&&this.options.extensions.startBlock){let a=1/0,l=e.slice(1),u;this.options.extensions.startBlock.forEach(f=>{u=f.call({lexer:this},l),typeof u=="number"&&u>=0&&(a=Math.min(a,u))}),a<1/0&&a>=0&&(o=e.substring(0,a+1))}if(this.state.top&&(n=this.tokenizer.paragraph(o))){r=t[t.length-1],s&&r.type==="paragraph"?(r.raw+=`
|
||
|
|
`+n.raw,r.text+=`
|
||
|
|
`+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):t.push(n),s=o.length!==e.length,e=e.substring(n.raw.length);continue}if(n=this.tokenizer.text(e)){e=e.substring(n.raw.length),r=t[t.length-1],r&&r.type==="text"?(r.raw+=`
|
||
|
|
`+n.raw,r.text+=`
|
||
|
|
`+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):t.push(n);continue}if(e){let a="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(a);break}else throw new Error(a)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let n,r,o,s=e,a,l,u;if(this.tokens.links){let f=Object.keys(this.tokens.links);if(f.length>0)for(;(a=this.tokenizer.rules.inline.reflinkSearch.exec(s))!=null;)f.includes(a[0].slice(a[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,a.index)+"["+"a".repeat(a[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(a=this.tokenizer.rules.inline.blockSkip.exec(s))!=null;)s=s.slice(0,a.index)+"["+"a".repeat(a[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(a=this.tokenizer.rules.inline.anyPunctuation.exec(s))!=null;)s=s.slice(0,a.index)+"++"+s.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;e;)if(l||(u=""),l=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(f=>(n=f.call({lexer:this},e,t))?(e=e.substring(n.raw.length),t.push(n),!0):!1))){if(n=this.tokenizer.escape(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.tag(e)){e=e.substring(n.raw.length),r=t[t.length-1],r&&n.type==="text"&&r.type==="text"?(r.raw+=n.raw,r.text+=n.text):t.push(n);continue}if(n=this.tokenizer.link(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(n.raw.length),r=t[t.length-1],r&&n.type==="text"&&r.type==="text"?(r.raw+=n.raw,r.text+=n.text):t.push(n);continue}if(n=this.tokenizer.emStrong(e,s,u)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.codespan(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.br(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.del(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.autolink(e)){e=e.substring(n.raw.length),t.push(n);continue}if(!this.state.inLink&&(n=this.tokenizer.url(e))){e=e.substring(n.raw.length),t.push(n);continue}if(o=e,this.options.extensions&&this.options.extensions.startInline){let f=1/0,d=e.slice(1),m;this.options.extensions.startInline.forEach(g=>{m=g.call({lexer:this},d),typeof m=="number"&&m>=0&&(f=Math.min(f,m))}),f<1/0&&f>=0&&(o=e.substring(0,f+1))}if(n=this.tokenizer.inlineText(o)){e=e.substring(n.raw.length),n.raw.slice(-1)!=="_"&&(u=n.raw.slice(-1)),l=!0,r=t[t.length-1],r&&r.type==="text"?(r.raw+=n.raw,r.text+=n.text):t.push(n);continue}if(e){let f="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(f);break}else throw new Error(f)}}return t}},kn=class{constructor(e){K(this,"options");this.options=e||tn}code(e,t,n){var o;let r=(o=(t||"").match(/^\S*/))==null?void 0:o[0];return e=e.replace(/\n$/,"")+`
|
||
|
|
`,r?'<pre><code class="language-'+pt(r)+'">'+(n?e:pt(e,!0))+`</code></pre>
|
||
|
|
`:"<pre><code>"+(n?e:pt(e,!0))+`</code></pre>
|
||
|
|
`}blockquote(e){return`<blockquote>
|
||
|
|
${e}</blockquote>
|
||
|
|
`}html(e,t){return e}heading(e,t,n){return`<h${t}>${e}</h${t}>
|
||
|
|
`}hr(){return`<hr>
|
||
|
|
`}list(e,t,n){let r=t?"ol":"ul",o=t&&n!==1?' start="'+n+'"':"";return"<"+r+o+`>
|
||
|
|
`+e+"</"+r+`>
|
||
|
|
`}listitem(e,t,n){return`<li>${e}</li>
|
||
|
|
`}checkbox(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph(e){return`<p>${e}</p>
|
||
|
|
`}table(e,t){return t&&(t=`<tbody>${t}</tbody>`),`<table>
|
||
|
|
<thead>
|
||
|
|
`+e+`</thead>
|
||
|
|
`+t+`</table>
|
||
|
|
`}tablerow(e){return`<tr>
|
||
|
|
${e}</tr>
|
||
|
|
`}tablecell(e,t){let n=t.header?"th":"td";return(t.align?`<${n} align="${t.align}">`:`<${n}>`)+e+`</${n}>
|
||
|
|
`}strong(e){return`<strong>${e}</strong>`}em(e){return`<em>${e}</em>`}codespan(e){return`<code>${e}</code>`}br(){return"<br>"}del(e){return`<del>${e}</del>`}link(e,t,n){let r=Vs(e);if(r===null)return n;e=r;let o='<a href="'+e+'"';return t&&(o+=' title="'+t+'"'),o+=">"+n+"</a>",o}image(e,t,n){let r=Vs(e);if(r===null)return n;e=r;let o=`<img src="${e}" alt="${n}"`;return t&&(o+=` title="${t}"`),o+=">",o}text(e){return e}},Yn=class{strong(e){return e}em(e){return e}codespan(e){return e}del(e){return e}html(e){return e}text(e){return e}link(e,t,n){return""+n}image(e,t,n){return""+n}br(){return""}},Mt=class i{constructor(e){K(this,"options");K(this,"renderer");K(this,"textRenderer");this.options=e||tn,this.options.renderer=this.options.renderer||new kn,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Yn}static parse(e,t){return new i(t).parse(e)}static parseInline(e,t){return new i(t).parseInline(e)}parse(e,t=!0){let n="";for(let r=0;r<e.length;r++){let o=e[r];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[o.type]){let s=o,a=this.options.extensions.renderers[s.type].call({parser:this},s);if(a!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(s.type)){n+=a||"";continue}}switch(o.type){case"space":continue;case"hr":{n+=this.renderer.hr();continue}case"heading":{let s=o;n+=this.renderer.heading(this.parseInline(s.tokens),s.depth,Xc(this.parseInline(s.tokens,this.textRenderer)));continue}case"code":{let s=o;n+=this.renderer.code(s.text,s.lang,!!s.escaped);continue}case"table":{let s=o,a="",l="";for(let f=0;f<s.header.length;f++)l+=this.renderer.tablecell(this.parseInline(s.header[f].tokens),{header:!0,align:s.align[f]});a+=this.renderer.tablerow(l);let u="";for(let f=0;f<s.rows.length;f++){let d=s.rows[f];l="";for(let m=0;m<d.length;m++)l+=this.renderer.tablecell(this.parseInline(d[m].tokens),{header:!1,align:s.align[m]});u+=this.renderer.tablerow(l)}n+=this.renderer.table(a,u);continue}case"blockquote":{let s=o,a=this.parse(s.tokens);n+=this.renderer.blockquote(a);continue}case"list":{let s=o,a=s.ordered,l=s.start,u=s.loose,f="";for(let d=0;d<s.items.length;d++){let m=s.items[d],g=m.checked,_=m.task,k="";if(m.task){let x=this.renderer.checkbox(!!g);u?m.tokens.length>0&&m.tokens[0].type==="paragraph"?(m.tokens[0].text=x+" "+m.tokens[0].text,m.tokens[0].tokens&&m.tokens[0].tokens.length>0&&m.tokens[0].tokens[0].type==="text"&&(m.tokens[0].tokens[0].text=x+" "+m.tokens[0].tokens[0].text)):m.tokens.unshift({type:"text",text:x+" "}):k+=x+" "}k+=this.parse(m.tokens,u),f+=this.renderer.listitem(k,_,!!g)}n+=this.renderer.list(f,a,l);continue}case"html":{let s=o;n+=this.renderer.html(s.text,s.block);continue}case"paragraph":{let s=o;n+=this.renderer.paragraph(this.parseInline(s.tokens));continue}case"text":{let s=o,a=s.tokens?this.parseInline(s.tokens):s.text;for(;r+1<e.length&&e[r+1].type==="text";)s=e[++r],a+=`
|
||
|
|
`+(s.tokens?this.parseInline(s.tokens):s.text);n+=t?this.renderer.paragraph(a):a;continue}default:{let s='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(s),"";throw new Error(s)}}}return n}parseInline(e,t){t=t||this.renderer;let n="";for(let r=0;r<e.length;r++){let o=e[r];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[o.type]){let s=this.options.extensions.renderers[o.type].call({parser:this},o);if(s!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(o.type)){n+=s||"";continue}}switch(o.type){case"escape":{let s=o;n+=t.text(s.text);break}case"html":{let s=o;n+=t.html(s.text);break}case"link":{let s=o;n+=t.link(s.href,s.title,this.parseInline(s.tokens,t));break}case"image":{let s=o;n+=t.image(s.href,s.title,s.text);break}case"strong":{let s=o;n+=t.strong(this.parseInline(s.tokens,t));break}case"em":{let s=o;n+=t.em(this.parseInline(s.tokens,t));break}case"codespan":{let s=o;n+=t.codespan(s.text);break}case"br":{n+=t.br();break}case"del":{let s=o;n+=t.del(this.parseInline(s.tokens,t));break}case"text":{let s=o;n+=t.text(s.text);break}default:{let s='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(s),"";throw new Error(s)}}}return n}},Kt=class{constructor(e){K(this,"options");this.options=e||tn}preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}};K(Kt,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"]));var Un,Vr,Ki,fl,qr=class{constructor(...e){br(this,Un);br(this,Ki);K(this,"defaults",Xr());K(this,"options",this.setOptions);K(this,"parse",ri(this,Un,Vr).call(this,It.lex,Mt.parse));K(this,"parseInline",ri(this,Un,Vr).call(this,It.lexInline,Mt.parseInline));K(this,"Parser",Mt);K(this,"Renderer",kn);K(this,"TextRenderer",Yn);K(this,"Lexer",It);K(this,"Tokenizer",wn);K(this,"Hooks",Kt);this.use(...e)}walkTokens(e,t){var r,o;let n=[];for(let s of e)switch(n=n.concat(t.call(this,s)),s.type){case"table":{let a=s;for(let l of a.header)n=n.concat(this.walkTokens(l.tokens,t));for(let l of a.rows)for(let u of l)n=n.concat(this.walkTokens(u.tokens,t));break}case"list":{let a=s;n=n.concat(this.walkTokens(a.items,t));break}default:{let a=s;(o=(r=this.defaults.extensions)==null?void 0:r.childTokens)!=null&&o[a.type]?this.defaults.extensions.childTokens[a.type].forEach(l=>{let u=a[l].flat(1/0);n=n.concat(this.walkTokens(u,t))}):a.tokens&&(n=n.concat(this.walkTokens(a.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(n=>{let r={...n};if(r.async=this.defaults.async||r.async||!1,n.extensions&&(n.extensions.forEach(o=>{if(!o.name)throw new Error("extension name required");if("renderer"in o){let s=t.renderers[o.name];s?t.renderers[o.name]=function(...a){let l=o.renderer.apply(this,a);return l===!1&&(l=s.apply(this,a)),l}:t.renderers[o.name]=o.renderer}if("tokenizer"in o){if(!o.level||o.level!=="block"&&o.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let s=t[o.level];s?s.unshift(o.tokenizer):t[o.level]=[o.tokenizer],o.start&&(o.level==="block"?t.startBlock?t.startBlock.push(o.start):t.startBlock=[o.start]:o.level==="inline"&&(t.startInline?t.startInline.push(o.start):t.startInline=[o.start]))}"childTokens"in o&&o.childTokens&&(t.childTokens[o.name]=o.childTokens)}),r.extensions=t),n.renderer){let o=this.defaults.renderer||new kn(this.defaults);for(let s in n.renderer){if(!(s in o))throw new Error(`renderer '${s}' does not exist`);if(s==="options")continue;let a=s,l=n.renderer[a],u=o[a];o[a]=(...f)=>{let d=l.apply(o,f);return d===!1&&(d=u.apply(o,f)),d||""}}r.renderer=o}if(n.tokenizer){let o=this.defaults.tokenizer||new wn(this.defaults);for(let s in n.tokenizer){if(!(s in o))throw new Error(`tokenizer '${s}' does not exist`);if(["options","rules","lexer"].includes(s))continue;let a=s,l=n.tokenizer[a],u=o[a];o[a]=(...f)=>{let d=l.apply(o,f);return d===!1&&(d=u.apply(o,f)),d}}r.tokenizer=o}if(n.hooks){let o=this.defaults.hooks||new
|
||
|
|
Please report this to https://github.com/markedjs/marked.`,e){let r="<p>An error occurred:</p><pre>"+pt(n.message+"",!0)+"</pre>";return t?Promise.resolve(r):r}if(t)return Promise.reject(n);throw n}};var en=new qr;function de(i,e){return en.parse(i,e)}de.options=de.setOptions=function(i){return en.setOptions(i),de.defaults=en.defaults,tl(de.defaults),de};de.getDefaults=Xr;de.defaults=tn;de.use=function(...i){return en.use(...i),de.defaults=en.defaults,tl(de.defaults),de};de.walkTokens=function(i,e){return en.walkTokens(i,e)};de.parseInline=en.parseInline;de.Parser=Mt;de.parser=Mt.parse;de.Renderer=kn;de.TextRenderer=Yn;de.Lexer=It;de.lexer=It.lex;de.Tokenizer=wn;de.Hooks=Kt;de.parse=de;var $m=de.options,Tm=de.setOptions,Lm=de.use,Nm=de.walkTokens,Am=de.parseInline;var Dm=Mt.parse,jm=It.lex;var St=require("obsidian");var dl=require("@codemirror/state");var _t=require("obsidian");var qn=require("obsidian"),xn=class extends qn.Modal{constructor(t,n,r){super(t);this.message=n;this.callback=r}onOpen(){this.titleEl.setText("Are you sure?"),this.contentEl.setText(this.message);let t=this.contentEl.createDiv("div");t.addClass("confirm-modal-buttons"),new qn.ButtonComponent(t).setButtonText("Yes").setCta().onClick(()=>{this.callback(),this.close()}),new qn.ButtonComponent(t).setButtonText("No").onClick(()=>{this.close()})}};function $u(i){Ie(i,"svelte-1vfpmb8",".merge.svelte-1vfpmb8{border-radius:5px;height:35%;overflow:scroll}.preview.svelte-1vfpmb8{border:1px solid var(--background-modifier-border);border-radius:5px;height:35%;overflow:scroll;padding:1%}.tools.svelte-1vfpmb8{display:flex;flex-direction:row;justify-content:end;align-items:center}")}function Tu(i){let e,t=de(i[0],{mangle:!1,headerIds:!1})+"",n;return{c(){e=new Fn(!1),n=ot(),e.a=n},m(r,o){e.m(t,r,o),v(r,n,o)},p(r,o){o&1&&t!==(t=de(r[0],{mangle:!1,headerIds:!1})+"")&&e.p(t)},d(r){r&&(y(n),e.d())}}}function Lu(i){let e,t=de(i[2].toString(),{mangle:!1,headerIds:!1})+"",n;return{c(){e=new Fn(!1),n=ot(),e.a=n},m(r,o){e.m(t,r,o),v(r,n,o)},p(r,o){o&4&&t!==(t=de(r[2].toString(),{mangle:!1,headerIds:!1})+"")&&e.p(t)},d(r){r&&(y(n),e.d())}}}function Nu(i){let e,t,n,r,o,s,a;function l(d,m){return d[2]?Lu:Tu}let u=l(i,-1),f=u(i);return{c(){e=p("div"),t=b(),n=p("h3"),n.textContent="Preview the merged file",r=b(),o=p("div"),f.c(),s=b(),a=p("div"),h(e,"class","merge svelte-1vfpmb8"),h(o,"class","preview svelte-1vfpmb8"),h(a,"class","tools svelte-1vfpmb8")},m(d,m){v(d,e,m),i[6](e),v(d,t,m),v(d,n,m),v(d,r,m),v(d,o,m),f.m(o,null),v(d,s,m),v(d,a,m),i[7](a)},p(d,[m]){u===(u=l(d,m))&&f?f.p(d,m):(f.d(1),f=u(d),f&&(f.c(),f.m(o,null)))},i:z,o:z,d(d){d&&(y(e),y(t),y(n),y(r),y(o),y(s),y(a)),i[6](null),f.d(),i[7](null)}}}function Au(i,e,t){let{originalContent:n="this is the original text"}=e,{modifiedContent:r="this is the modified text"}=e,{parentModal:o}=e,s,a,l,u,f;Ke(()=>{s=new Qi({a:{doc:n,extensions:[Zn,at.EditorView.lineWrapping,at.EditorView.darkTheme.of(!0),at.EditorView.updateListener.of(g=>{g.docChanged&&t(2,l=g.state.doc)})]},b:{doc:r,extensions:[Zn,at.EditorView.lineWrapping,at.EditorView.darkTheme.of(!0),at.EditorView.updateListener.of(g=>{g.docChanged&&(u=g.state.doc)}),at.EditorView.editable.of(!1),dl.EditorState.readOnly.of(!0)]},revertControls:"b-to-a",parent:a}),new _t.ButtonComponent(f).setButtonText("Save merged file").setCta().onClick(()=>He(void 0,void 0,void 0,function*(){if(s.chunks.length>0){new _t.Notice("There is still some merge conflicts. Please resolve them."),new xn(o.app,`Are you sure you want to save the file?
|
||
|
|
There are still some merge conflicts.
|
||
|
|
This action will save the previewed file in the original file and delete the conflicting file.`,()=>He(void 0,void 0,void 0,function*(){new _t.Notice("Saved file"),yield o.app.vault.delete(o.modifiedFile),new _t.Notice("Deleted conflicting file"),o.close()})).open();return}yield o.app.vault.modify(o.originalFile,l.toString()),new _t.Notice("Saved file"),yield o.app.vault.delete(o.modifiedFile),new _t.Notice("Deleted conflicting file"),o.close()})).buttonEl.style.margin="1%",new _t.ButtonComponent(f).setButtonText("Cancel merge").setWarning().onClick(()=>{if(s.chunks.length>0){new _t.Notice("There is still some merge conflicts. Please resolve them."),new xn(o.app,`Are you sure you want to cancel the merge?
|
||
|
|
There are still some merge conflicts.
|
||
|
|
This will keep the original file and the conflicting file.`,()=>{new _t.Notice("Closing the merge editor."),o.close()}).open();return}new xn(o.app,`Are you sure you want to cancel the merge?
|
||
|
|
You have resolved the conflicts but your modifications will not be saved.
|
||
|
|
This will keep the original file and the conflicting file.`,()=>{new _t.Notice("Closing the merge editor."),o.close()}).open()}).buttonEl.style.margin="1% 0"});function d(g){st[g?"unshift":"push"](()=>{a=g,t(1,a)})}function m(g){st[g?"unshift":"push"](()=>{f=g,t(3,f)})}return i.$$set=g=>{"originalContent"in g&&t(0,n=g.originalContent),"modifiedContent"in g&&t(4,r=g.modifiedContent),"parentModal"in g&&t(5,o=g.parentModal)},[n,a,l,f,r,o,d,m]}var ro=class extends fe{constructor(e){super(),he(this,e,Au,Nu,ue,{originalContent:0,modifiedContent:4,parentModal:5},$u)}},pl=ro;var gl=require("obsidian"),tr=class extends gl.Modal{constructor(t,n,r){super(t);this.originalFile=n;this.modifiedFile=r}async onOpen(){this.originalContent=await this.app.vault.read(this.originalFile),this.modifiedContent=await this.app.vault.read(this.modifiedFile),this.component=new pl({target:this.contentEl,props:{parentModal:this,originalContent:this.originalContent,modifiedContent:this.modifiedContent}}),this.modalEl.addClass("syncthing-merge-editor-modal"),this.contentEl.addClass("syncthing-merge-editor"),this.titleEl.setText(`Resolve conflicts - ${this.originalFile.basename}`)}onClose(){var t;(t=this.component)==null||t.$destroy()}};function Du(i){Ie(i,"svelte-8kfohb","p.svelte-8kfohb{background-color:darkred;opacity:0.6;border-radius:10px;box-shadow:black 0px 0px 10px;padding:1%}")}function ju(i){let e,t,n=i[0].message+"",r;return{c(){e=p("p"),t=F(`A failure occured :
|
||
|
|
`),r=F(n),h(e,"class","svelte-8kfohb")},m(o,s){v(o,e,s),c(e,t),c(e,r)},p(o,[s]){s&1&&n!==(n=o[0].message+"")&&oe(r,n)},i:z,o:z,d(o){o&&y(e)}}}function Eu(i,e,t){let{failure:n}=e;return i.$$set=r=>{"failure"in r&&t(0,n=r.failure)},[n]}var oo=class extends fe{constructor(e){super(),he(this,e,Eu,ju,ue,{failure:0},Du)}},nr=oo;function Fu(i){Ie(i,"svelte-kca58t",".conflict-file.svelte-kca58t{padding:0.5em;border-radius:0.5em;margin:0.5em}.conflict-file.svelte-kca58t:hover{background-color:var(--background-secondary-alt)}.conflict-file.svelte-kca58t:active{background-color:var(--background-secondary-alt)}.selected.svelte-kca58t{background-color:var(--background-secondary-alt)}")}function zu(i){let e,t,n,r,o,s,a,l,u,f,d,m,g,_,k,x=i[1].extension+"",C,w,S,T,P=cn(i[1].stat.size,1)+"",Z,O,R,re,te=new Date(i[1].stat.mtime).toLocaleString()+"",W,U,E,G,D=new Date(i[1].stat.ctime).toLocaleString()+"",J,be,X,$,j=i[1].path+"",ye;return{c(){e=p("div"),t=p("strong"),n=F("Conflict #"),r=F(i[0]),o=b(),s=p("em"),s.textContent=`Occured on: ${i[4].dateTime.toLocaleString()}`,a=b(),l=p("ul"),u=p("li"),u.textContent=`Conflict date: ${i[4].dateTime.toLocaleString()}`,f=b(),d=p("li"),d.textContent=`Modified by: ${i[4].modifiedBy}`,m=b(),g=p("li"),_=F("Extension: "),k=p("code"),C=F(x),w=b(),S=p("li"),T=F("Size: "),Z=F(P),O=b(),R=p("li"),re=F("Last modified at: "),W=F(te),U=b(),E=p("li"),G=F("Created at: "),J=F(D),be=b(),X=p("li"),$=F("Path: "),ye=F(j)},m(ge,q){v(ge,e,q),c(e,t),c(t,n),c(t,r),c(e,o),c(e,s),c(e,a),c(e,l),c(l,u),c(l,f),c(l,d),c(l,m),c(l,g),c(g,_),c(g,k),c(k,C),c(l,w),c(l,S),c(S,T),c(S,Z),c(l,O),c(l,R),c(R,re),c(R,W),c(l,U),c(l,E),c(E,G),c(E,J),c(l,be),c(l,X),c(X,$),c(X,ye)},p(ge,q){q&1&&oe(r,ge[0]),q&2&&x!==(x=ge[1].extension+"")&&oe(C,x),q&2&&P!==(P=cn(ge[1].stat.size,1)+"")&&oe(Z,P),q&2&&te!==(te=new Date(ge[1].stat.mtime).toLocaleString()+"")&&oe(W,te),q&2&&D!==(D=new Date(ge[1].stat.ctime).toLocaleString()+"")&&oe(J,D),q&2&&j!==(j=ge[1].path+"")&&oe(ye,j)},i:z,o:z,d(ge){ge&&y(e)}}}function Ou(i){let e,t;return e=new nr({props:{failure:i[4]}}),{c(){A(e.$$.fragment)},m(n,r){L(e,n,r),t=!0},p:z,i(n){t||(I(e.$$.fragment,n),t=!0)},o(n){M(e.$$.fragment,n),t=!1},d(n){N(e,n)}}}function Pu(i){let e,t,n,r,o,s,a=[Ou,zu],l=[];function u(f,d){return f[4]instanceof _e?0:1}return t=u(i,-1),n=l[t]=a[t](i),{c(){e=p("div"),n.c(),h(e,"class","svelte-kca58t"),gt(e,"conflict-file",i[2]),gt(e,"selected",i[3])},m(f,d){v(f,e,d),l[t].m(e,null),r=!0,o||(s=Q(e,"click",i[6]),o=!0)},p(f,[d]){n.p(f,d),(!r||d&4)&>(e,"conflict-file",f[2]),(!r||d&8)&>(e,"selected",f[3])},i(f){r||(I(n),r=!0)},o(f){M(n),r=!1},d(f){f&&y(e),l[t].d(),o=!1,s()}}}function Ru(i,e,t){let{counter:n}=e,{file:r}=e,{styled:o=!1}=e,{isClicked:s=!1}=e,a=Dr(),l=tt(r.name);function u(){a("file",{file:r})}let f=()=>{o&&u()};return i.$$set=d=>{"counter"in d&&t(0,n=d.counter),"file"in d&&t(1,r=d.file),"styled"in d&&t(2,o=d.styled),"isClicked"in d&&t(3,s=d.isClicked)},[n,r,o,s,l,u,f]}var so=class extends fe{constructor(e){super(),he(this,e,Ru,Pu,ue,{counter:0,file:1,styled:2,isClicked:3},Fu)}},ir=so;function Bu(i){let e,t,n,r,o,s=i[0].extension+"",a,l,u,f,d=cn(i[0].stat.size,1)+"",m,g,_,k,x=new Date(i[0].stat.mtime).toLocaleString()+"",C,w,S,T,P=new Date(i[0].stat.ctime).toLocaleString()+"",Z,O,R,re,te=i[0].path+"",W;return{c(){e=p("div"),t=p("ul"),n=p("li"),r=F("Extension: "),o=p("code"),a=F(s),l=b(),u=p("li"),f=F("Size: "),m=F(d),g=b(),_=p("li"),k=F("Last modified at: "),C=F(x),w=b(),S=p("li"),T=F("Created at: "),Z=F(P),O=b(),R=p("li"),re=F("Path: "),W=F(te)},m(U,E){v(U,e,E),c(e,t),c(t,n),c(n,r),c(n,o),c(o,a),c(t,l),c(t,u),c(u,f),c(u,m),c(t,g),c(t,_),c(_,k),c(_,C),c(t,w),c(t,S),c(S,T),c(S,Z),c(t,O),c(t,R),c(R,re),c(R,W)},p(U,[E]){E&1&&s!==(s=U[0].extension+"")&&oe(a,s),E&1&&d!==(d=cn(U[0].stat.size,1)+"")&&oe(m,d),E&1&&x!==(x=new Date(U[0].stat.mtime).toLocaleString()+"")&&oe(C,x),E&1&&P!==(P=new Date(U[0].stat.ctime).toLocaleString()+"")&&oe(Z,P),E&1&&te!==(te=U[0].path+"")&&oe(W,te)},i:z,o:z,d(U){U&&y(e)}}}function Gu(i,e,t){let{file:n}=e;return i.$$set=r=>{"file"in r&&t(0,n=r.file)},[n]}var l
|
||
|
|
NTEyIDUxMiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4NCgk8cmFkaWFsR3Jh
|
||
|
|
ZGllbnQgaWQ9ImxvZ28tYm90dG9tLWxlZnQiIGN4PSIwIiBjeT0iMCIgZ3JhZGllbnRUcmFuc2Zv
|
||
|
|
cm09Im1hdHJpeCgtNTkgLTIyNSAxNTA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KPC9zdmc+DQo=`,Nl=`
|
||
|
|
<!-- Generator: Adobe Illustrator 18.1.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||
|
|
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg"
|
||
|
|
xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 117.3 117.3"
|
||
|
|
enable-background="new 0 0 117.3 117.3" xml:space="preserve">
|
||
|
|
<g>
|
||
|
|
<linearGradient id="SVGID_1_" gradientUnits="userSpaceOnUse" x1="58.666" y1="117.332" x2="58.666" y2="0">
|
||
|
|
<stop offset="0" style="stop-color:#0882C8"/>
|
||
|
|
<stop offset="1" style="stop-color:#26B6DB"/>
|
||
|
|
</linearGradient>
|
||
|
|
<circle fill="url(#SVGID_1_)" cx="58.7" cy="58.7" r="58.7"/>
|
||
|
|
<g>
|
||
|
|
<circle fill="none" stroke="#FFFFFF" stroke-width="6" stroke-miterlimit="10" cx="58.7" cy="58.5" r="43.7"/>
|
||
|
|
<g>
|
||
|
|
<path fill="#FFFFFF" d="M94.7,47.8c4.7,1.6,9.8-0.9,11.4-5.6c1.6-4.7-0.9-9.8-5.6-11.4c-4.7-1.6-9.8,0.9-11.4,5.6 C87.5,41.1,90,46.2,94.7,47.8z"/>
|
||
|
|
<line fill="none" stroke="#FFFFFF" stroke-width="6" stroke-miterlimit="10" x1="97.6" y1="39.4" x2="67.5" y2="64.4"/>
|
||
|
|
</g>
|
||
|
|
<g>
|
||
|
|
<path fill="#FFFFFF" d="M77.6,91c-0.4,4.9,3.2,9.3,8.2,9.8c5,0.4,9.3-3.2,9.8-8.2c0.4-4.9-3.2-9.3-8.2-9.8 C82.4,82.4,78,86,77.6,91z"/>
|
||
|
|
<line fill="none" stroke="#FFFFFF" stroke-width="6" stroke-miterlimit="10" x1="86.5" y1="91.8" x2="67.5" y2="64.4"/>
|
||
|
|
</g>
|
||
|
|
<path fill="#FFFFFF" d="M60,69.3c2.7,4.2,8.3,5.4,12.4,2.7c4.2-2.7,5.4-8.3,2.7-12.4c-2.7-4.2-8.3-5.4-12.4-2.7 C58.5,59.5,57.3,65.1,60,69.3z"/>
|
||
|
|
<g>
|
||
|
|
<path fill="#FFFFFF" d="M21.2,61.4c-4.3-2.5-9.8-1.1-12.3,3.1c-2.5,4.3-1.1,9.8,3.1,12.3c4.3,2.5,9.8,1.1,12.3-3.1 C26.8,69.5,25.4,64,21.2,61.4z"/>
|
||
|
|
<line fill="none" stroke="#FFFFFF" stroke-width="6" stroke-miterlimit="10" x1="16.6" y1="69.1" x2="67.5" y2="64.4"/>
|
||
|
|
</g>
|
||
|
|
</g>
|
||
|
|
</g>
|
||
|
|
</svg>
|
||
|
|
`;var zt=require("obsidian");var Re=require("obsidian");var Ql=require("obsidian");var nn=require("obsidian");var $t=require("obsidian");var Al=require("obsidian");function uf(i){let e,t=[i[1],{style:"display: flex;"}],n={};for(let r=0;r<t.length;r+=1)n=xt(n,t[r]);return{c(){e=p("div"),mn(e,n)},m(r,o){v(r,e,o),i[3](e)},p(r,[o]){mn(e,n=Fi(t,[o&2&&r[1],{style:"display: flex;"}]))},i:z,o:z,d(r){r&&y(e),i[3](null)}}}function ff(i,e,t){let n=["name"],r=gn(e,n),o,{name:s}=e;Ke(()=>{let l=(0,Al.getIcon)(s);l&&o.appendChild(l)});function a(l){st[l?"unshift":"push"](()=>{o=l,t(0,o)})}return i.$$set=l=>{e=xt(xt({},e),Ni(l)),t(1,r=gn(e,n)),"name"in l&&t(2,s=l.name)},[o,r,s,a]}var fo=class extends fe{constructor(e){super(),he(this,e,ff,uf,ue,{name:2})}},Y=fo;function df(i){Ie(i,"svelte-8fgumz","details.svelte-8fgumz.svelte-8fgumz{padding:1%;border-radius:var(--radius-l)}details.svelte-8fgumz.svelte-8fgumz:hover{background-color:var(--background-modifier-hover)}summary.svelte-8fgumz.svelte-8fgumz{list-style:none;display:flex;flex-direction:row;align-items:center;gap:0.5em;height:fit-content;background-color:var(--background-secondary-alt);padding:1% 2%;border-radius:var(--radius-m)}details[open].svelte-8fgumz summary.svelte-8fgumz{border-radius:0;border-top-left-radius:var(--radius-m);border-top-right-radius:var(--radius-m)}table.svelte-8fgumz.svelte-8fgumz{width:100%;background-color:var(--background-primary);border-collapse:collapse;border-spacing:0;padding:1%;border-radius:var(--radius-l)}table.svelte-8fgumz>tr:last-child td.svelte-8fgumz:first-child{border-bottom-left-radius:var(--radius-m)}table.svelte-8fgumz>tr:last-child td.svelte-8fgumz:last-child{border-bottom-right-radius:var(--radius-m)}table.svelte-8fgumz tr td.svelte-8fgumz{padding:0.5em}tr.svelte-8fgumz.svelte-8fgumz:active,td.svelte-8fgumz.svelte-8fgumz:active{position:static;background:none;width:auto;transition:none;transform:none;border-radius:0}table.svelte-8fgumz tr td div.svelte-8fgumz{vertical-align:middle;display:inline-flex;align-items:center;gap:0.5em}table.svelte-8fgumz tr td.svelte-8fgumz:first-child{text-align:start;display:table-cell}table.svelte-8fgumz tr td.svelte-8fgumz:last-child{text-align:end}table.svelte-8fgumz tr.svelte-8fgumz:nth-child(odd){background-color:var(--background-primary-alt)}table.svelte-8fgumz tr.svelte-8fgumz:nth-child(even){background-color:var(--background-secondary)}")}var pf=i=>({}),Dl=i=>({class:"footer"}),gf=i=>({}),jl=i=>({});function mf(i){var a,l,u;let e,t,n,r=((u=(a=i[1])==null?void 0:a.name)!=null?u:(l=i[1])==null?void 0:l.deviceID)+"",o,s;return e=new Y({props:{name:"hard-drive"}}),{c(){A(e.$$.fragment),t=b(),n=p("span"),o=F(r)},m(f,d){L(e,f,d),v(f,t,d),v(f,n,d),c(n,o),s=!0},p(f,d){var m,g,_;(!s||d&2)&&r!==(r=((_=(m=f[1])==null?void 0:m.name)!=null?_:(g=f[1])==null?void 0:g.deviceID)+"")&&oe(o,r)},i(f){s||(I(e.$$.fragment,f),s=!0)},o(f){M(e.$$.fragment,f),s=!1},d(f){f&&(y(t),y(n)),N(e,f)}}}function hf(i){let e,t,n,r,o,s,a,l,u,f,d,m,g,_,k,x,C,w,S,T,P,Z,O,R,re,te,W,U,E,G,D,J,be,X,$,j,ye,ge,q,Se,ve,me,H,V,Ce,ce,Be,De,Ge,ct,$e,et,Ze,qe,je,Qe,Ye,se,Te,Ue,ke,ut,We,xe=i[1].deviceID.slice(0,7)+"",wt,B,le,Ee,ne,Xe,kt,yt,Mn,Tt,Lt,Nt,rn;return r=new Y({props:{name:"download-cloud"}}),g=new Y({props:{name:"upload-cloud"}}),Z=new Y({props:{name:"home"}}),D=new Y({props:{name:"network"}}),Se=new Y({props:{name:"milestone"}}),Ge=new Y({props:{name:"clock-9"}}),se=new Y({props:{name:"qr-code"}}),Xe=new Y({props:{name:"tag"}}),{c(){e=p("tr"),t=p("td"),n=p("div"),A(r.$$.fragment),o=b(),s=p("span"),s.textContent="Download Rate",a=b(),l=p("td"),l.innerHTML='<a href="/" style="color: inherit;">0 B/s (0 B)</a>',u=b(),f=p("tr"),d=p("td"),m=p("div"),A(g.$$.fragment),_=b(),k=p("span"),k.textContent="Upload Rate",x=b(),C=p("td"),C.innerHTML='<a href="/" style="color: inherit;">0 B/s (0 B)</a>',w=b(),S=p("tr"),T=p("td"),P=p("div"),A(Z.$$.fragment),O=b(),R=p("span"),R.textContent="Local State (Total)",re=b(),te=p("td"),te.innerHTML="<span>Files: 100, Folders: 50, Storage: ~40 MiB</span>",W=b(),U=p("tr"),E=p("td"),G=p("div"),A(D.$$.fragment),J=b(),
|
||
|
|
font-family: Inter, sans-serif;
|
||
|
|
content: "\\D7";
|
||
|
|
font-weight: 300;
|
||
|
|
};&:hover {
|
||
|
|
background-color: var(--background-modifier-hover);
|
||
|
|
color: var(--text-normal);
|
||
|
|
}}`)}function Ol(i){let e,t,n,r,o,s,a,l,u,f,d,m,g,_;return{c(){e=p("div"),t=p("div"),n=p("div"),n.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="svg-icon lucide-alert-triangle"><path d="m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z"></path><line x1="12" y1="9" x2="12" y2="13"></line><line x1="12" y1="17" x2="12.01" y2="17"></line></svg>',r=b(),o=p("div"),s=F(i[1]),a=b(),l=p("div"),u=b(),f=p("div"),d=p("p"),m=F(i[2]),h(n,"class","callout-icon"),h(o,"class","callout-title-inner"),h(l,"role","button"),h(l,"tabindex","0"),h(l,"aria-roledescription","Dismiss"),h(l,"class","close-button svelte-15h0slv"),h(t,"class","callout-title"),h(f,"class","callout-content"),h(e,"data-callout-metadata",""),h(e,"data-callout-fold",""),h(e,"data-callout","warning"),h(e,"class","callout")},m(k,x){v(k,e,x),c(e,t),c(t,n),c(t,r),c(t,o),c(o,s),c(t,a),c(t,l),c(e,u),c(e,f),c(f,d),c(d,m),g||(_=[Q(l,"keypress",i[3]),Q(l,"click",i[4])],g=!0)},p(k,x){x&2&&oe(s,k[1]),x&4&&oe(m,k[2])},d(k){k&&y(e),g=!1,we(_)}}}function Ef(i){let e,t=!i[0]&&Ol(i);return{c(){t&&t.c(),e=ot()},m(n,r){t&&t.m(n,r),v(n,e,r)},p(n,[r]){n[0]?t&&(t.d(1),t=null):t?t.p(n,r):(t=Ol(n),t.c(),t.m(e.parentNode,e))},i:z,o:z,d(n){n&&y(e),t&&t.d(n)}}}function Ff(i,e,t){let{title:n="Warning"}=e,{message:r}=e,{dismiss:o=!1}=e,s=()=>t(0,o=!o),a=()=>t(0,o=!o);return i.$$set=l=>{"title"in l&&t(1,n=l.title),"message"in l&&t(2,r=l.message),"dismiss"in l&&t(0,o=l.dismiss)},[o,n,r,s,a]}var _o=class extends fe{constructor(e){super(),he(this,e,Ff,Ef,ue,{title:1,message:2,dismiss:0},jf)}},Pl=_o;function zf(i){Ie(i,"svelte-f2narq",".left.svelte-f2narq.svelte-f2narq{float:left;width:50%}.right.svelte-f2narq.svelte-f2narq{float:right;width:50%}.folder.svelte-f2narq.svelte-f2narq,.mydevice.svelte-f2narq.svelte-f2narq,.remote.svelte-f2narq.svelte-f2narq{width:100%}.controls.svelte-f2narq.svelte-f2narq{display:flex;flex-direction:row;justify-content:flex-end;margin:1em 0}.controls.svelte-f2narq button.svelte-f2narq{gap:0.5em;margin:0 0.5em}")}function Rl(i,e,t){let n=i.slice();return n[16]=e[t],n}function Bl(i,e,t){let n=i.slice();return n[19]=e[t],n}function Gl(i){let e,t;return e=new Fl({props:{folder:i[19]}}),{c(){A(e.$$.fragment)},m(n,r){L(e,n,r),t=!0},p(n,r){let o={};r&1&&(o.folder=n[19]),e.$set(o)},i(n){t||(I(e.$$.fragment,n),t=!0)},o(n){M(e.$$.fragment,n),t=!1},d(n){N(e,n)}}}function Zl(i){let e,t;return e=new zl({props:{device:i[16]}}),{c(){A(e.$$.fragment)},m(n,r){L(e,n,r),t=!0},p(n,r){let o={};r&6&&(o.device=n[16]),e.$set(o)},i(n){t||(I(e.$$.fragment,n),t=!0)},o(n){M(e.$$.fragment,n),t=!1},d(n){N(e,n)}}}function Of(i){let e,t,n,r,o,s,a=i[0].length+"",l,u,f,d,m,g,_,k,x,C,w,S,T,P,Z,O,R,re,te,W,U,E,G,D,J,be,X,$,j,ye=i[1].filter(i[7]).length+"",ge,q,Se,ve,me,H,V,Ce,ce,Be,De,Ge,ct,$e,et,Ze,qe,je,Qe,Ye,se,Te;e=new Pl({props:{message:"The following configuration is not fully implemented yet. Some data aren't real-time and some controls are not implemented yet. It is mainly to reproduce the Syncthing GUI and then, real-time data and controls will be added."}});let Ue=Je(i[0]),ke=[];for(let B=0;B<Ue.length;B+=1)ke[B]=Gl(Bl(i,Ue,B));let ut=B=>M(ke[B],1,1,()=>{ke[B]=null});_=new Y({props:{name:"pause"}}),S=new Y({props:{name:"refresh-cw"}}),R=new Y({props:{name:"plus"}}),J=new Cn({props:{isThisDevice:!0,device:i[2]}});let We=Je(i[1].filter(i[8])),xe=[];for(let B=0;B<We.length;B+=1)xe[B]=Zl(Rl(i,We,B));let wt=B=>M(xe[B],1,1,()=>{xe[B]=null});return V=new Y({props:{name:"pause"}}),Ge=new Y({props:{name:"info"}}),qe=new Y({props:{name:"plus"}}),{c(){A(e.$$.fragment),t=b(),n=p("div"),r=p("div"),o=p("h2"),s=F("Folders ("),l=F(a),u=F(")"),f=b();for(let B=0;B<ke.length;B+=1)ke[B].c();d=b(),m=p("div"),g=p("button"),A(_.$$.fragment),k=b(),x=p("span"),x.textContent="Pause All",C=b(),w=p("button"),A(S.$$.fragment),T=b(),P=p("span"),P.textContent="Rescan All",Z=b(),O=p("button"),A(R.$$.fragment),re=b(),te=p("span"),te.textContent="Add Folder"
|
||
|
|
with Syncthing.
|
||
|
|
<br/>
|
||
|
|
See
|
||
|
|
<a href="https://docs.syncthing.net/users/ignoring.html" target="_blank">Syncthing documentation</a> for more information.`},m(t,n){v(t,e,n)},p:z,d(t){t&&y(e)}}}function td(i){let e,t,n,r,o,s,a,l,u,f,d;return r=new Kl({props:{parent:i[0],onChange:i[8]}}),{c(){e=p("div"),t=p("button"),t.textContent="Add file/folder",n=b(),A(r.$$.fragment),o=b(),s=p("button"),s.textContent="Add pattern",a=b(),l=p("input"),h(l,"type","text"),h(l,"placeholder","Enter some text..."),h(e,"class","container svelte-1yicc3x")},m(m,g){v(m,e,g),c(e,t),c(e,n),L(r,e,null),c(e,o),c(e,s),c(e,a),c(e,l),jt(l,i[2]),u=!0,f||(d=[Q(t,"click",i[7]),Q(s,"click",i[9]),Q(l,"input",i[10])],f=!0)},p(m,g){let _={};g&1&&(_.parent=m[0]),g&2&&(_.onChange=m[8]),r.$set(_),g&4&&l.value!==m[2]&&jt(l,m[2])},i(m){u||(I(r.$$.fragment,m),u=!0)},o(m){M(r.$$.fragment,m),u=!1},d(m){m&&y(e),N(r),f=!1,we(d)}}}function ta(i){let e,t,n=Je(i[3].filter(ia)),r=[];for(let s=0;s<n.length;s+=1)r[s]=na(ea(i,n,s));let o=s=>M(r[s],1,1,()=>{r[s]=null});return{c(){for(let s=0;s<r.length;s+=1)r[s].c();e=ot()},m(s,a){for(let l=0;l<r.length;l+=1)r[l]&&r[l].m(s,a);v(s,e,a),t=!0},p(s,a){if(a&40){n=Je(s[3].filter(ia));let l;for(l=0;l<n.length;l+=1){let u=ea(s,n,l);r[l]?(r[l].p(u,a),I(r[l],1)):(r[l]=na(u),r[l].c(),I(r[l],1),r[l].m(e.parentNode,e))}for(Le(),l=n.length;l<r.length;l+=1)o(l);Ne()}},i(s){if(!t){for(let a=0;a<n.length;a+=1)I(r[a]);t=!0}},o(s){r=r.filter(Boolean);for(let a=0;a<r.length;a+=1)M(r[a]);t=!1},d(s){s&&y(e),bt(r,s)}}}function nd(i){let e,t,n,r;function o(){return i[11](i[14])}return{c(){e=p("button"),e.textContent="Remove",t=b()},m(s,a){v(s,e,a),v(s,t,a),n||(r=Q(e,"click",o),n=!0)},p(s,a){i=s},d(s){s&&(y(e),y(t)),n=!1,r()}}}function na(i){let e,t;return e=new Ae({props:{name:i[14],$$slots:{control:[nd]},$$scope:{ctx:i}}}),{c(){A(e.$$.fragment)},m(n,r){L(e,n,r),t=!0},p(n,r){let o={};r&8&&(o.name=n[14]),r&131080&&(o.$$scope={dirty:r,ctx:n}),e.$set(o)},i(n){t||(I(e.$$.fragment,n),t=!0)},o(n){M(e.$$.fragment,n),t=!1},d(n){N(e,n)}}}function id(i){let e,t,n,r,o,s;e=new Ae({props:{name:"Syncthing Ignored Files",heading:!0}}),n=new Ae({props:{$$slots:{control:[td],description:[ed],name:[Kf]},$$scope:{ctx:i}}});let a=i[3].length>0&&ta(i);return{c(){A(e.$$.fragment),t=b(),A(n.$$.fragment),r=b(),a&&a.c(),o=ot()},m(l,u){L(e,l,u),v(l,t,u),L(n,l,u),v(l,r,u),a&&a.m(l,u),v(l,o,u),s=!0},p(l,[u]){let f={};u&131079&&(f.$$scope={dirty:u,ctx:l}),n.$set(f),l[3].length>0?a?(a.p(l,u),u&8&&I(a,1)):(a=ta(l),a.c(),I(a,1),a.m(o.parentNode,o)):a&&(Le(),M(a,1,1,()=>{a=null}),Ne())},i(l){s||(I(e.$$.fragment,l),I(n.$$.fragment,l),I(a),s=!0)},o(l){M(e.$$.fragment,l),M(n.$$.fragment,l),M(a),s=!1},d(l){l&&(y(t),y(r),y(o)),N(e,l),N(n,l),a&&a.d(l)}}}var ia=i=>i!=="";function rd(i,e,t){let n,{parent:r}=e,o=(0,Xn.normalizePath)(".stignore"),s="",a="";function l(){return He(this,void 0,void 0,function*(){let C="";try{C=yield r.app.vault.adapter.read(o)}catch(w){console.error("Error: ",w),new Xn.Notice("No .stignore file found.")}return C.replace(/\r|\n+$/g,"").replace(/\n+/g,`
|
||
|
|
`).split(`
|
||
|
|
`)})}function u(C){return He(this,void 0,void 0,function*(){let w=yield l();if(w.includes(C)){new Xn.Notice("This pattern is already in the .stignore file.");return}yield r.app.vault.adapter.write(o,`${C}
|
||
|
|
${w.join(`
|
||
|
|
`)}`),d.set(yield l())})}function f(C){return He(this,void 0,void 0,function*(){let w=yield l();yield r.app.vault.adapter.write(o,w.filter(S=>S!==C).join(`
|
||
|
|
`)),d.set(yield l())})}let d=Vl([]);rs(i,d,C=>t(3,n=C)),d.subscribe(C=>He(void 0,void 0,void 0,function*(){C=yield l()})),He(void 0,void 0,void 0,function*(){d.set(yield l())});let m=async()=>{console.log("selectedFile: ",s),await u(s),t(1,s="")},g=async C=>{console.log("fileSuggester: ",C),t(1,s=C)},_=async()=>{console.log("typedPattern: ",a),await u(a),t(2,a="")};function k(){a=this.value,t(2,a)}let x=async C=>f(C);return i.$$set=C=>{"parent"in C&&t(0,r=C.parent)},[r,s,a,n,u,f,d,m,g,_,k,x]}var ko=class extends fe{constructor(e){super(),he(this,e,rd,id,ue,{parent:0},Xf)}},ra=ko;function od(i){Ie(i,"svelte-13bfvu7",".banner.svelte-13bfvu7.svelte-13bfvu7{display:flex;justify-content:center;align-items:center;margin:0;padding:0}.banner.svelte-13bfvu7 a.svelte-13bfvu7{text-decoration-line:none}.banner.svelte-13bfvu7 img.svelte-13bfvu7{height:2em}.footer.svelte-13bfvu7.svelte-13bfvu7{display:flex;justify-content:space-between;width:100%}.footer.svelte-13bfvu7 button.svelte-13bfvu7{display:flex;flex-direction:row;align-items:flex-start;gap:0.5em;justify-content:space-around}")}function sd(i){let e;return{c(){e=p("p"),e.innerHTML=`This plugin allows you to sync your vault with Syncthing. It allows you
|
||
|
|
to manage the sync process from within Obsidian. You can only manage the
|
||
|
|
folder you are in. To use this plugin, you need to have Syncthing
|
||
|
|
installed on your device. You can find more information about Syncthing
|
||
|
|
here:
|
||
|
|
<a href="https://syncthing.net">https://syncthing.net</a>`,h(e,"slot","description")},m(t,n){v(t,e,n)},p:z,d(t){t&&y(e)}}}function oa(i){let e,t,n,r;return e=new Ae({props:{heading:!0,error:!0,name:"Syncthing is not found",$$slots:{description:[ld]},$$scope:{ctx:i}}}),n=new Ae({props:{name:"Retry",description:"If you want to retry connecting, after setting the API key. This might resolve the issue.",$$slots:{control:[ad]},$$scope:{ctx:i}}}),{c(){A(e.$$.fragment),t=b(),A(n.$$.fragment)},m(o,s){L(e,o,s),v(o,t,s),L(n,o,s),r=!0},i(o){r||(I(e.$$.fragment,o),I(n.$$.fragment,o),r=!0)},o(o){M(e.$$.fragment,o),M(n.$$.fragment,o),r=!1},d(o){o&&y(t),N(e,o),N(n,o)}}}function ld(i){let e,t;return{c(){e=F(`Syncthing is not installed or not found on your device. Please
|
||
|
|
install it at the following URL:
|
||
|
|
`),t=p("a"),t.textContent="https://syncthing.net/downloads",h(t,"href","https://syncthing.net/downloads"),h(t,"target","_blank")},m(n,r){v(n,e,r),v(n,t,r)},p:z,d(n){n&&(y(e),y(t))}}}function ad(i){let e;return{c(){e=p("button"),e.textContent="Connect to Syncthing via API.",h(e,"class","mod-cta")},m(t,n){v(t,e,n)},p:z,d(t){t&&y(e)}}}function cd(i){let e;return{c(){e=F("Add your Syncthing API key here for the plugin to work.")},m(t,n){v(t,e,n)},d(t){t&&y(e)}}}function ud(i){let e,t,n,r,o,s,a,l,u,f=[pd,dd],d=[];function m(g,_){return g[2]==="password"?0:1}return t=m(i,-1),n=d[t]=f[t](i),s=new Y({props:{name:"eraser"}}),{c(){e=p("button"),n.c(),r=b(),o=p("button"),A(s.$$.fragment)},m(g,_){v(g,e,_),d[t].m(e,null),v(g,r,_),v(g,o,_),L(s,o,null),a=!0,l||(u=[Q(e,"click",i[10]),Q(o,"click",i[11])],l=!0)},p(g,_){let k=t;t=m(g,_),t!==k&&(Le(),M(d[k],1,1,()=>{d[k]=null}),Ne(),n=d[t],n||(n=d[t]=f[t](g),n.c()),I(n,1),n.m(e,null))},i(g){a||(I(n),I(s.$$.fragment,g),a=!0)},o(g){M(n),M(s.$$.fragment,g),a=!1},d(g){g&&(y(e),y(r),y(o)),d[t].d(),N(s),l=!1,we(u)}}}function fd(i){let e,t,n;return{c(){e=p("button"),e.textContent="Get API key"},m(r,o){v(r,e,o),t||(n=Q(e,"click",i[5]),t=!0)},p:z,i:z,o:z,d(r){r&&y(e),t=!1,n()}}}function dd(i){let e,t;return e=new Y({props:{name:"eye-off"}}),{c(){A(e.$$.fragment)},m(n,r){L(e,n,r),t=!0},i(n){t||(I(e.$$.fragment,n),t=!0)},o(n){M(e.$$.fragment,n),t=!1},d(n){N(e,n)}}}function pd(i){let e,t;return e=new Y({props:{name:"eye"}}),{c(){A(e.$$.fragment)},m(n,r){L(e,n,r),t=!0},i(n){t||(I(e.$$.fragment,n),t=!0)},o(n){M(e.$$.fragment,n),t=!1},d(n){N(e,n)}}}function gd(i){let e,t,n,r,o,s,a,l,u,f=[fd,ud],d=[];function m(g,_){return g[0].plugin.settings.api_key?1:0}return r=m(i,-1),o=d[r]=f[r](i),{c(){e=p("input"),n=b(),o.c(),s=ot(),h(e,"type",i[2]),h(e,"name","apikey"),h(e,"id","apikey"),e.value=t=i[0].plugin.settings.api_key,h(e,"placeholder","Enter your API key here...")},m(g,_){v(g,e,_),v(g,n,_),d[r].m(g,_),v(g,s,_),a=!0,l||(u=Q(e,"change",i[9]),l=!0)},p(g,_){(!a||_&4)&&h(e,"type",g[2]),(!a||_&1&&t!==(t=g[0].plugin.settings.api_key)&&e.value!==t)&&(e.value=t);let k=r;r=m(g,_),r===k?d[r].p(g,_):(Le(),M(d[k],1,1,()=>{d[k]=null}),Ne(),o=d[r],o?o.p(g,_):(o=d[r]=f[r](g),o.c()),I(o,1),o.m(s.parentNode,s))},i(g){a||(I(o),a=!0)},o(g){M(o),a=!1},d(g){g&&(y(e),y(n),y(s)),d[r].d(g),l=!1,u()}}}function md(i){let e,t,n;return{c(){e=p("button"),e.textContent="Check API Status"},m(r,o){v(r,e,o),t||(n=Q(e,"click",i[12]),t=!0)},p:z,d(r){r&&y(e),t=!1,n()}}}function hd(i){let e,t;return e=new Ae({props:{name:"Syncthing CLI Status",$$slots:{control:[_d]},$$scope:{ctx:i}}}),{c(){A(e.$$.fragment)},m(n,r){L(e,n,r),t=!0},p(n,r){let o={};r&268435457&&(o.$$scope={dirty:r,ctx:n}),e.$set(o)},i(n){t||(I(e.$$.fragment,n),t=!0)},o(n){M(e.$$.fragment,n),t=!1},d(n){N(e,n)}}}function _d(i){let e,t,n;return{c(){e=p("button"),e.textContent="Check CLI Status"},m(r,o){v(r,e,o),t||(n=Q(e,"click",i[13]),t=!0)},p:z,d(r){r&&y(e),t=!1,n()}}}function bd(i){let e,t;return e=new Ae({props:{name:"Warning",description:"The following settings are in beta. All plugin's features may not currently be available on mobile.",error:!0}}),{c(){A(e.$$.fragment)},m(n,r){L(e,n,r),t=!0},i(n){t||(I(e.$$.fragment,n),t=!0)},o(n){M(e.$$.fragment,n),t=!1},d(n){N(e,n)}}}function yd(i){let e,t,n,r,o,s,a,l,u,f,d,m,g,_,k,x;return{c(){var C,w,S,T;e=p("div"),t=p("div"),n=p("select"),r=p("option"),r.textContent="http://",o=p("option"),o.textContent="https://",a=b(),l=p("input"),f=b(),d=p("input"),g=b(),_=p("input"),r.__value="http",jt(r,r.__value),o.__value="https",jt(o,o.__value),Oe(n,"border-radius","var(--input-radius) 0 0 var(--input-radius)"),h(l,"type","text"),h(l,"placeholder","Enter your Syncthing address here..."),l.value=u=(w=(C=i[0].plugin.settings.configuration.url)==null?void 0:C.ip_address)!=null?w:"",Oe(l,"border-radius","0"),h(d,"type","number"),h(d,"placeholder","Enter the port..."),d.value=m=(T=(S=i[0].plugin.settings.configuration.url)==null?void 0:S.port)!=null?T:"",Oe(d,"border-radius","0 var(--input-radius) var(--input-radius) 0"),Oe(t,"display","flex"),Oe(t
|
||
|
|
generator.
|
||
|
|
`),t=p("br"),n=F(`
|
||
|
|
It allows to test the plugin's conflict resolution system.`)},m(r,o){v(r,e,o),v(r,t,o),v(r,n,o)},p:z,d(r){r&&(y(e),y(t),y(n))}}}function Sd(i){let e,t;return e=new ql({props:{callback:i[23],slot:"control"}}),{c(){A(e.$$.fragment)},m(n,r){L(e,n,r),t=!0},p(n,r){let o={};r&1&&(o.callback=n[23]),e.$set(o)},i(n){t||(I(e.$$.fragment,n),t=!0)},o(n){M(e.$$.fragment,n),t=!1},d(n){N(e,n)}}}function $d(i){let e,t,n,r;return e=new Ae({props:{name:"Open Mobile app",heading:!0}}),n=new Ae({props:{name:"Open Syncthing mobile app",description:"Open the Syncthing mobile app, if not it opens the Google Play Store page.",$$slots:{control:[Td]},$$scope:{ctx:i}}}),{c(){A(e.$$.fragment),t=b(),A(n.$$.fragment)},m(o,s){L(e,o,s),v(o,t,s),L(n,o,s),r=!0},p(o,s){let a={};s&268435457&&(a.$$scope={dirty:s,ctx:o}),n.$set(a)},i(o){r||(I(e.$$.fragment,o),I(n.$$.fragment,o),r=!0)},o(o){M(e.$$.fragment,o),M(n.$$.fragment,o),r=!1},d(o){o&&y(t),N(e,o),N(n,o)}}}function Td(i){let e,t,n;return{c(){e=p("button"),e.textContent="Open Syncthing on Mobile."},m(r,o){v(r,e,o),t||(n=Q(e,"click",i[24]),t=!0)},p:z,d(r){r&&y(e),t=!1,n()}}}function Ld(i){let e,t,n,r,o,s,a,l,u,f,d,m,g,_,k;return n=new Y({props:{name:"heart"}}),a=new Y({props:{name:"github"}}),d=new Y({props:{name:"bug"}}),{c(){e=p("div"),t=p("button"),A(n.$$.fragment),r=F(`
|
||
|
|
Sponsor`),o=b(),s=p("button"),A(a.$$.fragment),l=F(`
|
||
|
|
GitHub repo`),u=b(),f=p("button"),A(d.$$.fragment),m=F(`
|
||
|
|
Report a bug`),h(t,"class","svelte-13bfvu7"),h(s,"class","svelte-13bfvu7"),h(f,"class","svelte-13bfvu7"),h(e,"slot","control"),h(e,"class","footer svelte-13bfvu7")},m(x,C){v(x,e,C),c(e,t),L(n,t,null),c(t,r),c(e,o),c(e,s),L(a,s,null),c(s,l),c(e,u),c(e,f),L(d,f,null),c(f,m),g=!0,_||(k=[Q(t,"click",i[25]),Q(s,"click",i[26]),Q(f,"click",i[27])],_=!0)},p:z,i(x){g||(I(n.$$.fragment,x),I(a.$$.fragment,x),I(d.$$.fragment,x),g=!0)},o(x){M(n.$$.fragment,x),M(a.$$.fragment,x),M(d.$$.fragment,x),g=!1},d(x){x&&y(e),N(n),N(a),N(d),_=!1,we(k)}}}function Nd(i){let e,t,n,r,o,s,a,l,u,f,d,m,g,_,k,x,C,w,S,T,P,Z,O,R,re,te,W,U,E;n=new Ae({props:{name:"Syncthing Integration for Obsidian",heading:!0,$$slots:{description:[sd]},$$scope:{ctx:i}}});let G=!i[1]&&oa(i);s=new Ae({props:{name:"Syncthing API Key",heading:!0,$$slots:{control:[gd],description:[cd]},$$scope:{ctx:i}}}),l=new Ae({props:{name:"Syncthing API Status",$$slots:{control:[md]},$$scope:{ctx:i}}});let D=Re.Platform.isDesktopApp&&hd(i),J=Re.Platform.isMobileApp&&bd(i);m=new Ae({props:{name:"Syncthing base URL",heading:!0}}),_=new Ae({props:{name:"Set the Syncthing base URL",description:"Please set your Syncthing base URL here. This address will be used to open the Syncthing GUI in your browser and to make API requests.",$$slots:{control:[yd]},$$scope:{ctx:i}}}),x=new Ae({props:{name:"Set GUI Credentials",description:"Please set your Syncthing GUI credentials here. These credentials will be used to open the Syncthing GUI in your browser.",$$slots:{control:[kd]},$$scope:{ctx:i}}}),w=new Ae({props:{name:"Open Syncthing GUI",description:"Open the Syncthing GUI in your browser.",$$slots:{control:[xd]},$$scope:{ctx:i}}}),T=new Ae({props:{name:"Syncthing Configuration",heading:!0}}),Z=new Ae({props:{name:"In construction",description:"This part is in construction.",$$slots:{control:[Cd]},$$scope:{ctx:i}}}),R=new ra({props:{parent:i[0]}});let be=Re.Platform.isDesktopApp&&Id(i),X=Re.Platform.isMobileApp&&$d(i);return U=new Ae({props:{heading:!0,$$slots:{control:[Ld]},$$scope:{ctx:i}}}),{c(){e=p("p"),e.innerHTML=`<a href="https://github.com/LBF38/obsidian-syncthing-integration" class="svelte-13bfvu7"><img src="${Ll}" alt="Syncthing's logo" class="svelte-13bfvu7"/> <img src="${Tl}" alt="Obsidian's logo" class="svelte-13bfvu7"/></a>`,t=b(),A(n.$$.fragment),r=b(),G&&G.c(),o=b(),A(s.$$.fragment),a=b(),A(l.$$.fragment),u=b(),D&&D.c(),f=b(),J&&J.c(),d=b(),A(m.$$.fragment),g=b(),A(_.$$.fragment),k=b(),A(x.$$.fragment),C=b(),A(w.$$.fragment),S=b(),A(T.$$.fragment),P=b(),A(Z.$$.fragment),O=b(),A(R.$$.fragment),re=b(),be&&be.c(),te=b(),X&&X.c(),W=b(),A(U.$$.fragment),h(e,"class","banner svelte-13bfvu7")},m($,j){v($,e,j),v($,t,j),L(n,$,j),v($,r,j),G&&G.m($,j),v($,o,j),L(s,$,j),v($,a,j),L(l,$,j),v($,u,j),D&&D.m($,j),v($,f,j),J&&J.m($,j),v($,d,j),L(m,$,j),v($,g,j),L(_,$,j),v($,k,j),L(x,$,j),v($,C,j),L(w,$,j),v($,S,j),L(T,$,j),v($,P,j),L(Z,$,j),v($,O,j),L(R,$,j),v($,re,j),be&&be.m($,j),v($,te,j),X&&X.m($,j),v($,W,j),L(U,$,j),E=!0},p($,[j]){let ye={};j&268435456&&(ye.$$scope={dirty:j,ctx:$}),n.$set(ye),$[1]?G&&(Le(),M(G,1,1,()=>{G=null}),Ne()):G?j&2&&I(G,1):(G=oa($),G.c(),I(G,1),G.m(o.parentNode,o));let ge={};j&268435461&&(ge.$$scope={dirty:j,ctx:$}),s.$set(ge);let q={};j&268435457&&(q.$$scope={dirty:j,ctx:$}),l.$set(q),Re.Platform.isDesktopApp&&D.p($,j);let Se={};j&268435473&&(Se.$$scope={dirty:j,ctx:$}),_.$set(Se);let ve={};j&268435465&&(ve.$$scope={dirty:j,ctx:$}),x.$set(ve);let me={};j&268435473&&(me.$$scope={dirty:j,ctx:$}),w.$set(me);let H={};j&268435457&&(H.$$scope={dirty:j,ctx:$}),Z.$set(H);let V={};j&1&&(V.parent=$[0]),R.$set(V),Re.Platform.isDesktopApp&&be.p($,j),Re.Platform.isMobileApp&&X.p($,j);let Ce={};j&268435456&&(Ce.$$scope={dirty:j,ctx:$}),U.$set(Ce)},i($){E||(I(n.$$.fragment,$),I(G),I(s.$$.fragment,$),I(l.$$.fragment,$),I(D),I(J),I(m.$$.fragment,$),I(_.$$.fragment,$),I(x.$$.fragment,$),I(w.$$.fragment,$),I(T.$$.fragment,$),I(Z.$$.fragment,$),I(R.$$.fragment,$),I(be),I(X),I(U.$$.fragment,$),E=!0)},o($){M(n.$$.fragment,$),M(G),M(s.$$.fragment,$),M(l.$$.fragment,$),M(D),M(J),M(m.$$
|
||
|
|
|
||
|
|
/* nosourcemap */
|