tocco-admin 3.16.47 → 3.16.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/changelog.md +7 -0
- package/dist/chunk-11211.c047320bb9aeb6a8afa8.js +1 -0
- package/dist/chunk-11281.6cca64a6b22ae66dec22.js +1 -0
- package/dist/chunk-12718.73a401c947f6e416dc96.js +1 -0
- package/dist/chunk-1387.db4ea7c5b9b4bafd0f31.js +1 -0
- package/dist/chunk-14406.193e89b3bab4a76ff64c.js +1 -0
- package/dist/{chunk-14663.51eca5c9fc96acb3d3fd.js → chunk-14663.421a08fcfef247d7bf23.js} +1 -1
- package/dist/chunk-15802.a2be5411a1917623b937.js +1 -0
- package/dist/chunk-1766.135ab067cfb193cad638.js +1 -0
- package/dist/chunk-19249.d09c10c7e5a9775ab4b4.js +1 -0
- package/dist/chunk-19592.3efeef352f175343cea0.js +1 -0
- package/dist/chunk-19822.3bc1e73e57bda3decdc5.js +1 -0
- package/dist/chunk-20047.d792862a5cea6bfdf859.js +1 -0
- package/dist/{chunk-8992.f25442915b57342ae038.js → chunk-21843.36ffd9b3a70cd48a2cc9.js} +1 -1
- package/dist/chunk-2188.f5e8e30b02d2ae9ddfc0.js +1 -0
- package/dist/{chunk-2682.cfc3b87ba3066a6b6a95.js → chunk-22030.64b8bc22892016507951.js} +1 -1
- package/dist/chunk-22284.bda827c47ee03f966640.js +1 -0
- package/dist/chunk-22354.38812eb1ede449619ddb.js +1 -0
- package/dist/chunk-22981.e78181d1033636d18f3f.js +1 -0
- package/dist/chunk-23575.c4abf260b4a67d8b2080.js +1 -0
- package/dist/chunk-24499.d1a3adb4a5690ef7b337.js +1 -0
- package/dist/chunk-2451.6c2305080b6f382a2949.js +1 -0
- package/dist/chunk-24522.ddd8bdae432cd57c7de1.js +1 -0
- package/dist/chunk-24854.06fa1b4ac5587f8ec330.js +1 -0
- package/dist/chunk-25039.1acecd0e2ec0d44298d7.js +1 -0
- package/dist/chunk-25705.7bf358fd8862526e98d9.js +1 -0
- package/dist/chunk-26335.74f8d237b4e65213f5f5.js +1 -0
- package/dist/chunk-26605.cd60bdd885abc7c18078.js +1 -0
- package/dist/chunk-2682.09ac910c9ceab98e77bc.js +1 -0
- package/dist/{chunk-27136.6cfc9a658884e7239020.js → chunk-27136.11820865bd2883ab08fc.js} +1 -1
- package/dist/chunk-27311.576c573d4457ca290eff.js +1 -0
- package/dist/chunk-28507.72bdf3fbdefe3bfa8356.js +1 -0
- package/dist/chunk-29072.189a4bab1c2f18bc7010.js +1 -0
- package/dist/chunk-29755.ba2998b8fe60f4242a51.js +1 -0
- package/dist/chunk-29848.90041f421b399b4707aa.js +1 -0
- package/dist/chunk-30470.fd8e1f081abc3ead40b0.js +1 -0
- package/dist/chunk-30897.9100b21a0b33ef44bc2d.js +1 -0
- package/dist/chunk-31255.41459bc59a226f9c90a8.js +1 -0
- package/dist/chunk-32503.9f6c51bfe378ab9b09ca.js +1 -0
- package/dist/chunk-33050.07638f00a2dc06c76e2c.js +1 -0
- package/dist/chunk-34049.d1b8ce43aebe7eb8947a.js +1 -0
- package/dist/chunk-34132.5a95f8d35fe5833f09f6.js +1 -0
- package/dist/chunk-34678.aaa34585cfca61060329.js +1 -0
- package/dist/chunk-35396.15ab865b1d9c518bb1c5.js +1 -0
- package/dist/chunk-37210.74c360042493c073221e.js +1 -0
- package/dist/chunk-38066.8ba3c6b29ec25be68960.js +1 -0
- package/dist/chunk-38223.fd731c22ae46cc61f787.js +1 -0
- package/dist/chunk-38992.6b954202ee6bfc78ded2.js +1 -0
- package/dist/chunk-39643.d74bf444dd7cc8a9d82a.js +1 -0
- package/dist/chunk-41170.2a6ada0270fb4abf2546.js +1 -0
- package/dist/chunk-42618.0a674e4ef753d6fa8da1.js +1 -0
- package/dist/chunk-42969.f187f9ba7e157c7a8004.js +1 -0
- package/dist/chunk-43481.93124e6c6275e732a451.js +1 -0
- package/dist/chunk-44417.9ddb64dacd512ee6c3d6.js +1 -0
- package/dist/chunk-45631.91ed376096079673828e.js +1 -0
- package/dist/chunk-45814.2d787e4c45ea4eed738b.js +1 -0
- package/dist/chunk-46187.64927d85fa8962de9d90.js +1 -0
- package/dist/chunk-46623.9947ca9f92b9854e4c19.js +1 -0
- package/dist/{chunk-47145.9666bf5242e5cd840334.js → chunk-47145.c210e286a9b1d68a5d4a.js} +1 -1
- package/dist/{chunk-47610.9cdb867d2d27052f5c60.js → chunk-47610.bc6611aa02eeec8db919.js} +1 -1
- package/dist/{chunk-7802.c073d9cde178c9ad0f54.js → chunk-48077.94b2bcbbf99c1b412395.js} +1 -1
- package/dist/chunk-48645.00d6e2c767722527c04b.js +1 -0
- package/dist/chunk-50603.db2d85c8277f5d4be8e6.js +1 -0
- package/dist/chunk-50681.5b2787f97b6cfa2f60a3.js +1 -0
- package/dist/chunk-51057.d3aff53d711b4dbe2a68.js +1 -0
- package/dist/chunk-51544.c7c47f31473765978095.js +99 -0
- package/dist/chunk-51776.40c741a093e66885ddbd.js +1 -0
- package/dist/chunk-5243.38ede90cafc48c03b1aa.js +1 -0
- package/dist/chunk-54855.b9137f7b280835d9a6ef.js +1 -0
- package/dist/chunk-55009.c94a27239babc4897a84.js +1 -0
- package/dist/{chunk-55208.e70a76de3f33670270e7.js → chunk-55208.af3b76b1fc6311cfd237.js} +1 -1
- package/dist/{chunk-55348.41e9f542487999e7455f.js → chunk-55348.686c175cb0e61f80a8f3.js} +1 -1
- package/dist/chunk-56470.556c2caaae71dbc1b9bd.js +1 -0
- package/dist/chunk-57217.b823974cd02852a084c8.js +1 -0
- package/dist/chunk-59899.81644b59bd81178ad0a1.js +1 -0
- package/dist/chunk-6147.af3872a1411da6fbf4ed.js +1 -0
- package/dist/chunk-61624.9df0bea262b6eb637d5c.js +1 -0
- package/dist/chunk-61777.288fa59c359172e6126d.js +1 -0
- package/dist/chunk-62575.b74e4d4776cba26445e1.js +1 -0
- package/dist/chunk-62797.d4f371619412d7768cdb.js +1 -0
- package/dist/chunk-63489.5a8dce1cb48833d5098f.js +1 -0
- package/dist/chunk-63493.3fb8d713d01a768e3b9d.js +1 -0
- package/dist/chunk-63659.1c034f19e5cb1b3bb845.js +6 -0
- package/dist/chunk-6396.8e97e330cabfd435e595.js +1 -0
- package/dist/chunk-64108.2dbbf1c6eafebb45dd0b.js +1 -0
- package/dist/chunk-6425.58c76096ff75c179bbd0.js +1 -0
- package/dist/chunk-64570.c5abfeda2d7189588444.js +1 -0
- package/dist/chunk-65201.7a20a96bc4b63cdebac4.js +1 -0
- package/dist/chunk-65402.7ab1c0dfe662f9bde6d3.js +1 -0
- package/dist/chunk-65408.38bc9ffc89865c6de993.js +1 -0
- package/dist/chunk-67744.a20db61a624bf24be4c8.js +1 -0
- package/dist/chunk-67772.5742c8d21b6a0d48b45b.js +1 -0
- package/dist/chunk-69395.5ae310358e8037e47cea.js +1 -0
- package/dist/chunk-69465.94bf8c54128357a98b12.js +1 -0
- package/dist/chunk-69640.67bd5723c8dec93c7d35.js +1 -0
- package/dist/{chunk-71306.a936c4b0e9b978916d67.js → chunk-71306.eccd63887ac7c3406abd.js} +1 -1
- package/dist/{chunk-72969.59b9bb9406979abd2ad4.js → chunk-72969.47092d634da9a6969ecf.js} +7 -7
- package/dist/chunk-74251.44b44efc01520f07e00b.js +1 -0
- package/dist/chunk-74933.ab405f32e2cff2cdd84d.js +1 -0
- package/dist/chunk-76284.254502b1d77c1de47af3.js +1 -0
- package/dist/chunk-76667.98deb701ea4b5031b79c.js +1 -0
- package/dist/chunk-77385.69a8e97aeb8a75f27884.js +1 -0
- package/dist/chunk-77801.0075955446d760439982.js +1 -0
- package/dist/chunk-77890.24784c3b08b996a228fa.js +1 -0
- package/dist/chunk-7802.59c80f4e7a6fe3aca2a1.js +1 -0
- package/dist/chunk-7813.f28415e6e0480720cab3.js +1 -0
- package/dist/chunk-79258.1b988912f1bb8efa5f13.js +1 -0
- package/dist/chunk-80569.04a73392ac26218c9fe7.js +1 -0
- package/dist/{chunk-83136.dec3b88f3927ec5b0d54.js → chunk-83136.809c2d87aac4cbf33a9c.js} +1 -1
- package/dist/chunk-83864.b63ee961a4df265a5280.js +1 -0
- package/dist/chunk-84567.f954e8bdfcf816a84898.js +1 -0
- package/dist/chunk-8485.7e12ce9ed24aeba2f5b7.js +1 -0
- package/dist/chunk-84899.0dc926df213a81bdf407.js +1 -0
- package/dist/chunk-86133.144af952341736a58372.js +1 -0
- package/dist/chunk-86275.24d26f4dd8ecff940178.js +1 -0
- package/dist/chunk-87528.a421714d48229639fa03.js +1 -0
- package/dist/{chunk-89182.b33e543dcd32234ab9b3.js → chunk-89182.3670d4924a5412a0de5f.js} +1 -1
- package/dist/chunk-8992.32a58c0540d1fa7ccaee.js +1 -0
- package/dist/chunk-90008.80de96aa57b9515e18b2.js +1 -0
- package/dist/chunk-90616.ec520e8875ef5e0517b7.js +1 -0
- package/dist/chunk-90731.035b07edeba90881e486.js +1 -0
- package/dist/chunk-90846.4d10be711987b973fdbc.js +1 -0
- package/dist/chunk-92789.a864d1fd6e4eb478c7b8.js +1 -0
- package/dist/{chunk-1766.2ce3c5eea8b4df4a5d42.js → chunk-93236.e1914e888f5ea1db182a.js} +1 -1
- package/dist/chunk-94194.2a78eae9bf6ec9dbcafb.js +1 -0
- package/dist/chunk-95409.830b15294582db6f05e9.js +1 -0
- package/dist/chunk-96332.f81441fdb08acd52a402.js +1 -0
- package/dist/chunk-96410.f3e8ccef9b74dd15e5cf.js +1 -0
- package/dist/chunk-96679.2ce8f980519d1894e256.js +1 -0
- package/dist/chunk-97359.9fea99651ccf00bfb6ab.js +1 -0
- package/dist/chunk-97536.7c308a35c1fb7335cde1.js +1 -0
- package/dist/chunk-98636.704c73c1056e301d04e6.js +1 -0
- package/dist/chunk-99359.c8b798bdd150da73d79b.js +1 -0
- package/dist/chunk-actions.85668fe88943b670e4d9.js +1 -0
- package/dist/chunk-code-editor.a9ce0b5dfe5c6224a935.js +1 -0
- package/dist/chunk-docs-actions.01fb99caf1e95cbe69bd.js +1 -0
- package/dist/chunk-phone-formatter.50199e325bcd29d91e58.js +1 -0
- package/dist/chunk-vendor-fontawesome.dd2be8558ad1a2bb14cd.js +7 -0
- package/dist/chunk-vendor-libphonenumber-js.11c5886c5f63e2afbde1.js +1 -0
- package/dist/ckeditor4/ckeditor-new.js +1 -1
- package/dist/ckeditor4/plugins/codemirror/js/codemirror.addon.merge.min.js +1 -1
- package/dist/ckeditor4/plugins/codemirror/js/codemirror.addons.min.js +1 -1
- package/dist/ckeditor4/plugins/codemirror/js/codemirror.min.js +1 -1
- package/dist/index.js +78 -13
- package/package.json +1 -1
- package/dist/chunk-10561.201de36026c275f1e9af.js +0 -8
- package/dist/chunk-11211.926d9638327e0efad40e.js +0 -1
- package/dist/chunk-11281.576243eb67d0f56d5e28.js +0 -1
- package/dist/chunk-12260.6d09de73e7fe1ae9d72a.js +0 -1
- package/dist/chunk-15802.146075f3b6e0867dfb94.js +0 -1
- package/dist/chunk-19249.8692aacecaf00d03255c.js +0 -1
- package/dist/chunk-19592.5c79e7650797b40ff348.js +0 -1
- package/dist/chunk-20047.7e292bdc185653e20047.js +0 -1
- package/dist/chunk-21843.389fa58d1988f10127a2.js +0 -1
- package/dist/chunk-22030.fe79db6fd95d0b90cbf8.js +0 -1
- package/dist/chunk-22981.3fde02827aba40775960.js +0 -1
- package/dist/chunk-24499.a631aed256959430cd61.js +0 -1
- package/dist/chunk-2451.d8a73f1ea3d309b2514e.js +0 -1
- package/dist/chunk-24522.fbf1b70126485d175367.js +0 -1
- package/dist/chunk-24854.4e7379b40a481e724d8d.js +0 -1
- package/dist/chunk-25039.6019d09735e921cbc78e.js +0 -1
- package/dist/chunk-26335.2dc6db848213a1fbf863.js +0 -1
- package/dist/chunk-26605.2f25129f5f4770c729f6.js +0 -1
- package/dist/chunk-28507.61b1b50b51c1b0c9c733.js +0 -1
- package/dist/chunk-29072.b3fdfd9815fd7e1d0ce6.js +0 -1
- package/dist/chunk-29755.6c9218bc21f6ff34c232.js +0 -1
- package/dist/chunk-30470.6a67f86d48a5db19cef4.js +0 -1
- package/dist/chunk-30897.8a660b7a96c71fd003be.js +0 -1
- package/dist/chunk-31255.005592c481ce094dd183.js +0 -1
- package/dist/chunk-31985.2d57d01b09e8351790f9.js +0 -1
- package/dist/chunk-33050.f6c41b97edc485114855.js +0 -1
- package/dist/chunk-34678.4a3d6b9878d9177f1a13.js +0 -1
- package/dist/chunk-37210.f8445182dc028e794aa9.js +0 -1
- package/dist/chunk-38223.8dc9134b95f91f7729c8.js +0 -1
- package/dist/chunk-39643.7931aace9f5317d12c9e.js +0 -1
- package/dist/chunk-41170.12580798be5b61a92bb8.js +0 -1
- package/dist/chunk-44417.df904fa45a8304efdaf9.js +0 -1
- package/dist/chunk-45631.5fd88296a8a66f3df698.js +0 -1
- package/dist/chunk-45814.10275f4079f1d0827ba7.js +0 -1
- package/dist/chunk-46187.afef3dafa925bc8ef13f.js +0 -1
- package/dist/chunk-46623.1279fca408d8eef8d565.js +0 -1
- package/dist/chunk-48077.2fb0b2742a962906b7b4.js +0 -1
- package/dist/chunk-51057.adb220a7470a2c9062d3.js +0 -1
- package/dist/chunk-5243.ee71f57c73e80f87629a.js +0 -1
- package/dist/chunk-55009.0d5da94e279cbdfe723a.js +0 -1
- package/dist/chunk-56470.982607cc9a4aa4d5ca5d.js +0 -1
- package/dist/chunk-57217.900f6c296a9f8afffa57.js +0 -1
- package/dist/chunk-59899.01d1bca17584ae227c9a.js +0 -1
- package/dist/chunk-6147.9a8a75f0197a1ecf99cd.js +0 -1
- package/dist/chunk-61777.531f6b5370cfff653af7.js +0 -1
- package/dist/chunk-62575.36e66bf2ce9d21db8e7e.js +0 -1
- package/dist/chunk-62797.768ca65582be64c0f354.js +0 -1
- package/dist/chunk-63489.06b07e0f45fd3448362a.js +0 -1
- package/dist/chunk-6396.6782db80cca3b5a9bca5.js +0 -1
- package/dist/chunk-64108.48d41ee44d4be7e5e319.js +0 -1
- package/dist/chunk-64570.f6edc0c6bf6cf77509c8.js +0 -1
- package/dist/chunk-65408.8ce27d20f7461341b72f.js +0 -1
- package/dist/chunk-66672.4d6c9d397b9c66c7df45.js +0 -1
- package/dist/chunk-67744.d9e9ab2d5681b49a4397.js +0 -1
- package/dist/chunk-67772.20f99232e9aca7a89724.js +0 -1
- package/dist/chunk-76667.3378264c896fd671408e.js +0 -1
- package/dist/chunk-77385.105a95ec12f71a39392d.js +0 -1
- package/dist/chunk-79258.3be81f3cc638458f0544.js +0 -1
- package/dist/chunk-80569.b397fa7e0bc8a6a30c74.js +0 -1
- package/dist/chunk-84567.c6459754fc12d4a43ea4.js +0 -1
- package/dist/chunk-86275.9bb476a380a6c78e366f.js +0 -1
- package/dist/chunk-90008.4e4800bb5dd8b5d8f190.js +0 -1
- package/dist/chunk-90616.2065ebaa4e700cb050cb.js +0 -1
- package/dist/chunk-90731.debf1d82ea8d120be7bd.js +0 -1
- package/dist/chunk-90846.1fa1ead8c15f4ad0f759.js +0 -1
- package/dist/chunk-92789.a651a8882173aeea9aaf.js +0 -1
- package/dist/chunk-93236.87b618124f4c2689bfcf.js +0 -1
- package/dist/chunk-94194.4acac5b27ec3980e20e9.js +0 -1
- package/dist/chunk-96332.7603317cb6651cd7ac3e.js +0 -1
- package/dist/chunk-96679.70f165a867060dea0dd4.js +0 -1
- package/dist/chunk-97359.7e1cbe178906dbe30827.js +0 -1
- package/dist/chunk-97536.39d7b0e335bb9b864cf6.js +0 -1
- package/dist/chunk-actions.26cb6ae5cbc6158e25f8.js +0 -1
- package/dist/chunk-code-editor.960c6f046a6cb72f10e2.js +0 -1
- package/dist/chunk-docs-actions.979889a1bd9083681102.js +0 -1
- package/dist/chunk-phone-formatter.426a7ad83073a3a9db88.js +0 -1
- package/dist/chunk-vendor-fontawesome.4e9b85f1cc93e25fa170.js +0 -7
- package/dist/chunk-vendor-libphonenumber-js.12d68aad9e4cc8110972.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(this.webpackChunktocco_admin=this.webpackChunktocco_admin||[]).push([[31255],{31255(e,t,n){e=n.nmd(e),ace.define("ace/mode/css_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";var r=e("../lib/oop"),o=(e("../lib/lang"),e("./text_highlight_rules").TextHighlightRules),a=t.supportType="align-content|align-items|align-self|all|animation|animation-delay|animation-direction|animation-duration|animation-fill-mode|animation-iteration-count|animation-name|animation-play-state|animation-timing-function|backface-visibility|background|background-attachment|background-blend-mode|background-clip|background-color|background-image|background-origin|background-position|background-repeat|background-size|border|border-bottom|border-bottom-color|border-bottom-left-radius|border-bottom-right-radius|border-bottom-style|border-bottom-width|border-collapse|border-color|border-image|border-image-outset|border-image-repeat|border-image-slice|border-image-source|border-image-width|border-left|border-left-color|border-left-style|border-left-width|border-radius|border-right|border-right-color|border-right-style|border-right-width|border-spacing|border-style|border-top|border-top-color|border-top-left-radius|border-top-right-radius|border-top-style|border-top-width|border-width|bottom|box-shadow|box-sizing|caption-side|clear|clip|color|column-count|column-fill|column-gap|column-rule|column-rule-color|column-rule-style|column-rule-width|column-span|column-width|columns|content|counter-increment|counter-reset|cursor|direction|display|empty-cells|filter|flex|flex-basis|flex-direction|flex-flow|flex-grow|flex-shrink|flex-wrap|float|font|font-family|font-size|font-size-adjust|font-stretch|font-style|font-variant|font-weight|hanging-punctuation|height|justify-content|left|letter-spacing|line-height|list-style|list-style-image|list-style-position|list-style-type|margin|margin-bottom|margin-left|margin-right|margin-top|max-height|max-width|max-zoom|min-height|min-width|min-zoom|nav-down|nav-index|nav-left|nav-right|nav-up|opacity|order|outline|outline-color|outline-offset|outline-style|outline-width|overflow|overflow-x|overflow-y|padding|padding-bottom|padding-left|padding-right|padding-top|page-break-after|page-break-before|page-break-inside|perspective|perspective-origin|position|quotes|resize|right|tab-size|table-layout|text-align|text-align-last|text-decoration|text-decoration-color|text-decoration-line|text-decoration-style|text-indent|text-justify|text-overflow|text-shadow|text-transform|top|transform|transform-origin|transform-style|transition|transition-delay|transition-duration|transition-property|transition-timing-function|unicode-bidi|user-select|user-zoom|vertical-align|visibility|white-space|width|word-break|word-spacing|word-wrap|z-index",i=t.supportFunction="rgb|rgba|url|attr|counter|counters",s=t.supportConstant="absolute|after-edge|after|all-scroll|all|alphabetic|always|antialiased|armenian|auto|avoid-column|avoid-page|avoid|balance|baseline|before-edge|before|below|bidi-override|block-line-height|block|bold|bolder|border-box|both|bottom|box|break-all|break-word|capitalize|caps-height|caption|center|central|char|circle|cjk-ideographic|clone|close-quote|col-resize|collapse|column|consider-shifts|contain|content-box|cover|crosshair|cubic-bezier|dashed|decimal-leading-zero|decimal|default|disabled|disc|disregard-shifts|distribute-all-lines|distribute-letter|distribute-space|distribute|dotted|double|e-resize|ease-in|ease-in-out|ease-out|ease|ellipsis|end|exclude-ruby|flex-end|flex-start|fill|fixed|georgian|glyphs|grid-height|groove|hand|hanging|hebrew|help|hidden|hiragana-iroha|hiragana|horizontal|icon|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space|ideographic|inactive|include-ruby|inherit|initial|inline-block|inline-box|inline-line-height|inline-table|inline|inset|inside|inter-ideograph|inter-word|invert|italic|justify|katakana-iroha|katakana|keep-all|last|left|lighter|line-edge|line-through|line|linear|list-item|local|loose|lower-alpha|lower-greek|lower-latin|lower-roman|lowercase|lr-tb|ltr|mathematical|max-height|max-size|medium|menu|message-box|middle|move|n-resize|ne-resize|newspaper|no-change|no-close-quote|no-drop|no-open-quote|no-repeat|none|normal|not-allowed|nowrap|nw-resize|oblique|open-quote|outset|outside|overline|padding-box|page|pointer|pre-line|pre-wrap|pre|preserve-3d|progress|relative|repeat-x|repeat-y|repeat|replaced|reset-size|ridge|right|round|row-resize|rtl|s-resize|scroll|se-resize|separate|slice|small-caps|small-caption|solid|space|square|start|static|status-bar|step-end|step-start|steps|stretch|strict|sub|super|sw-resize|table-caption|table-cell|table-column-group|table-column|table-footer-group|table-header-group|table-row-group|table-row|table|tb-rl|text-after-edge|text-before-edge|text-bottom|text-size|text-top|text|thick|thin|transparent|underline|upper-alpha|upper-latin|upper-roman|uppercase|use-script|vertical-ideographic|vertical-text|visible|w-resize|wait|whitespace|z-index|zero|zoom",l=t.supportConstantColor="aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|rebeccapurple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen",g=t.supportConstantFonts="arial|century|comic|courier|cursive|fantasy|garamond|georgia|helvetica|impact|lucida|symbol|system|tahoma|times|trebuchet|utopia|verdana|webdings|sans-serif|serif|monospace",c=t.numRe="\\-?(?:(?:[0-9]+(?:\\.[0-9]+)?)|(?:\\.[0-9]+))",u=t.pseudoElements="(\\:+)\\b(after|before|first-letter|first-line|moz-selection|selection)\\b",d=t.pseudoClasses="(:)\\b(active|checked|disabled|empty|enabled|first-child|first-of-type|focus|hover|indeterminate|invalid|last-child|last-of-type|link|not|nth-child|nth-last-child|nth-last-of-type|nth-of-type|only-child|only-of-type|required|root|target|valid|visited)\\b",p=function(){var e=this.createKeywordMapper({"support.function":i,"support.constant":s,"support.type":a,"support.constant.color":l,"support.constant.fonts":g},"text",!0);this.$rules={start:[{include:["strings","url","comments"]},{token:"paren.lparen",regex:"\\{",next:"ruleset"},{token:"paren.rparen",regex:"\\}"},{token:"string",regex:"@(?!viewport)",next:"media"},{token:"keyword",regex:"#[a-z0-9-_]+"},{token:"keyword",regex:"%"},{token:"variable",regex:"\\.[a-z0-9-_]+"},{token:"string",regex:":[a-z0-9-_]+"},{token:"constant.numeric",regex:c},{token:"constant",regex:"[a-z0-9-_]+"},{caseInsensitive:!0}],media:[{include:["strings","url","comments"]},{token:"paren.lparen",regex:"\\{",next:"start"},{token:"paren.rparen",regex:"\\}",next:"start"},{token:"string",regex:";",next:"start"},{token:"keyword",regex:"(?:media|supports|document|charset|import|namespace|media|supports|document|page|font|keyframes|viewport|counter-style|font-feature-values|swash|ornaments|annotation|stylistic|styleset|character-variant)"}],comments:[{token:"comment",regex:"\\/\\*",push:[{token:"comment",regex:"\\*\\/",next:"pop"},{defaultToken:"comment"}]}],ruleset:[{regex:"-(webkit|ms|moz|o)-",token:"text"},{token:"punctuation.operator",regex:"[:;]"},{token:"paren.rparen",regex:"\\}",next:"start"},{include:["strings","url","comments"]},{token:["constant.numeric","keyword"],regex:"("+c+")(ch|cm|deg|em|ex|fr|gd|grad|Hz|in|kHz|mm|ms|pc|pt|px|rad|rem|s|turn|vh|vmax|vmin|vm|vw|%)"},{token:"constant.numeric",regex:c},{token:"constant.numeric",regex:"#[a-f0-9]{6}"},{token:"constant.numeric",regex:"#[a-f0-9]{3}"},{token:["punctuation","entity.other.attribute-name.pseudo-element.css"],regex:u},{token:["punctuation","entity.other.attribute-name.pseudo-class.css"],regex:d},{include:"url"},{token:e,regex:"\\-?[a-zA-Z_][a-zA-Z0-9_\\-]*"},{token:"paren.lparen",regex:"\\{"},{caseInsensitive:!0}],url:[{token:"support.function",regex:"(?:url(:?-prefix)?|domain|regexp)\\(",push:[{token:"support.function",regex:"\\)",next:"pop"},{defaultToken:"string"}]}],strings:[{token:"string.start",regex:"'",push:[{token:"string.end",regex:"'|$",next:"pop"},{include:"escapes"},{token:"constant.language.escape",regex:/\\$/,consumeLineEnd:!0},{defaultToken:"string"}]},{token:"string.start",regex:'"',push:[{token:"string.end",regex:'"|$',next:"pop"},{include:"escapes"},{token:"constant.language.escape",regex:/\\$/,consumeLineEnd:!0},{defaultToken:"string"}]}],escapes:[{token:"constant.language.escape",regex:/\\([a-fA-F\d]{1,6}|[^a-fA-F\d])/}]},this.normalizeRules()};r.inherits(p,o),t.CssHighlightRules=p})),ace.define("ace/mode/jsdoc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";var r=e("../lib/oop"),o=e("./text_highlight_rules").TextHighlightRules,a=function(){this.$rules={start:[{token:["comment.doc.tag","comment.doc.text","lparen.doc"],regex:"(@(?:param|member|typedef|property|namespace|var|const|callback))(\\s*)({)",push:[{token:"lparen.doc",regex:"{",push:[{include:"doc-syntax"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"}]},{token:["rparen.doc","text.doc","variable.parameter.doc","lparen.doc","variable.parameter.doc","rparen.doc"],regex:/(})(\s*)(?:([\w=:\/\.]+)|(?:(\[)([\w=:\/\.\-\'\" ]+)(\])))/,next:"pop"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"},{include:"doc-syntax"},{defaultToken:"text.doc"}]},{token:["comment.doc.tag","text.doc","lparen.doc"],regex:"(@(?:returns?|yields|type|this|suppress|public|protected|private|package|modifies|implements|external|exception|throws|enum|define|extends))(\\s*)({)",push:[{token:"lparen.doc",regex:"{",push:[{include:"doc-syntax"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"}]},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"},{include:"doc-syntax"},{defaultToken:"text.doc"}]},{token:["comment.doc.tag","text.doc","variable.parameter.doc"],regex:'(@(?:alias|memberof|instance|module|name|lends|namespace|external|this|template|requires|param|implements|function|extends|typedef|mixes|constructor|var|memberof\\!|event|listens|exports|class|constructs|interface|emits|fires|throws|const|callback|borrows|augments))(\\s+)(\\w[\\w#.:/~"\\-]*)?'},{token:["comment.doc.tag","text.doc","variable.parameter.doc"],regex:"(@method)(\\s+)(\\w[\\w.\\(\\)]*)"},{token:"comment.doc.tag",regex:"@access\\s+(?:private|public|protected)"},{token:"comment.doc.tag",regex:"@kind\\s+(?:class|constant|event|external|file|function|member|mixin|module|namespace|typedef)"},{token:"comment.doc.tag",regex:"@\\w+(?=\\s|$)"},a.getTagRule(),{defaultToken:"comment.doc.body",caseInsensitive:!0}],"doc-syntax":[{token:"operator.doc",regex:/[|:]/},{token:"paren.doc",regex:/[\[\]]/}]},this.normalizeRules()};r.inherits(a,o),a.getTagRule=function(e){return{token:"comment.doc.tag.storage.type",regex:"\\b(?:TODO|FIXME|XXX|HACK)\\b"}},a.getStartRule=function(e){return{token:"comment.doc",regex:/\/\*\*(?!\/)/,next:e}},a.getEndRule=function(e){return{token:"comment.doc",regex:"\\*\\/",next:e}},t.JsDocCommentHighlightRules=a})),ace.define("ace/mode/javascript_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/jsdoc_comment_highlight_rules","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";var r=e("../lib/oop"),o=e("./jsdoc_comment_highlight_rules").JsDocCommentHighlightRules,a=e("./text_highlight_rules").TextHighlightRules,i="[a-zA-Z\\$_¡-][a-zA-Z\\d\\$_¡-]*",s=function(e){var t={"variable.language":"Array|Boolean|Date|Function|Iterator|Number|Object|RegExp|String|Proxy|Symbol|Namespace|QName|XML|XMLList|ArrayBuffer|Float32Array|Float64Array|Int16Array|Int32Array|Int8Array|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray|Error|EvalError|InternalError|RangeError|ReferenceError|StopIteration|SyntaxError|TypeError|URIError|decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|eval|isFinite|isNaN|parseFloat|parseInt|JSON|Math|this|arguments|prototype|window|document",keyword:"const|yield|import|get|set|async|await|break|case|catch|continue|default|delete|do|else|finally|for|if|in|of|instanceof|new|return|switch|throw|try|typeof|let|var|while|with|debugger|__parent__|__count__|escape|unescape|with|__proto__|class|enum|extends|super|export|implements|private|public|interface|package|protected|static|constructor","storage.type":"const|let|var|function","constant.language":"null|Infinity|NaN|undefined","support.function":"alert","constant.language.boolean":"true|false"},n=this.createKeywordMapper(t,"identifier"),r="\\\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|u{[0-9a-fA-F]{1,6}}|[0-2][0-7]{0,2}|3[0-7][0-7]?|[4-7][0-7]?|.)",a="(function)(\\s*)(\\*?)",s={token:["identifier","text","paren.lparen"],regex:"(\\b(?!"+Object.values(t).join("|")+"\\b)"+i+")(\\s*)(\\()"};this.$rules={no_regex:[o.getStartRule("doc-start"),g("no_regex"),s,{token:"string",regex:"'(?=.)",next:"qstring"},{token:"string",regex:'"(?=.)',next:"qqstring"},{token:"constant.numeric",regex:/0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/},{token:"constant.numeric",regex:/(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/},{token:["entity.name.function","text","keyword.operator","text","storage.type","text","storage.type","text","paren.lparen"],regex:"("+i+")(\\s*)(=)(\\s*)"+a+"(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","text","storage.type","text","text","entity.name.function","text","paren.lparen"],regex:"(function)(?:(?:(\\s*)(\\*)(\\s*))|(\\s+))("+i+")(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","punctuation.operator","text","storage.type","text","storage.type","text","paren.lparen"],regex:"("+i+")(\\s*)(:)(\\s*)"+a+"(\\s*)(\\()",next:"function_arguments"},{token:["text","text","storage.type","text","storage.type","text","paren.lparen"],regex:"(:)(\\s*)"+a+"(\\s*)(\\()",next:"function_arguments"},{token:"keyword",regex:"from(?=\\s*('|\"))"},{token:"keyword",regex:"(?:case|do|else|finally|in|instanceof|return|throw|try|typeof|yield|void)\\b",next:"start"},{token:"support.constant",regex:/that\b/},{token:["storage.type","punctuation.operator","support.function.firebug"],regex:/(console)(\.)(warn|info|log|error|debug|time|trace|timeEnd|assert)\b/},{token:n,regex:i},{token:"punctuation.operator",regex:/[.](?![.])/,next:"property"},{token:"storage.type",regex:/=>/,next:"start"},{token:"keyword.operator",regex:/--|\+\+|\.{3}|===|==|=|!=|!==|<+=?|>+=?|!|&&|\|\||\?:|[!$%&*+\-~\/^]=?/,next:"start"},{token:"punctuation.operator",regex:/[?:,;.]/,next:"start"},{token:"paren.lparen",regex:/[\[({]/,next:"start"},{token:"paren.rparen",regex:/[\])}]/},{token:"comment",regex:/^#!.*$/}],property:[{token:"text",regex:"\\s+"},{token:"keyword.operator",regex:/=/},{token:["storage.type","text","storage.type","text","paren.lparen"],regex:a+"(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","text","storage.type","text","text","entity.name.function","text","paren.lparen"],regex:"(function)(?:(?:(\\s*)(\\*)(\\s*))|(\\s+))(\\w+)(\\s*)(\\()",next:"function_arguments"},{token:"punctuation.operator",regex:/[.](?![.])/},{token:"support.function",regex:"prototype"},{token:"support.function",regex:/(s(?:h(?:ift|ow(?:Mod(?:elessDialog|alDialog)|Help))|croll(?:X|By(?:Pages|Lines)?|Y|To)?|t(?:op|rike)|i(?:n|zeToContent|debar|gnText)|ort|u(?:p|b(?:str(?:ing)?)?)|pli(?:ce|t)|e(?:nd|t(?:Re(?:sizable|questHeader)|M(?:i(?:nutes|lliseconds)|onth)|Seconds|Ho(?:tKeys|urs)|Year|Cursor|Time(?:out)?|Interval|ZOptions|Date|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Date|FullYear)|FullYear|Active)|arch)|qrt|lice|avePreferences|mall)|h(?:ome|andleEvent)|navigate|c(?:har(?:CodeAt|At)|o(?:s|n(?:cat|textual|firm)|mpile)|eil|lear(?:Timeout|Interval)?|a(?:ptureEvents|ll)|reate(?:StyleSheet|Popup|EventObject))|t(?:o(?:GMTString|S(?:tring|ource)|U(?:TCString|pperCase)|Lo(?:caleString|werCase))|est|a(?:n|int(?:Enabled)?))|i(?:s(?:NaN|Finite)|ndexOf|talics)|d(?:isableExternalCapture|ump|etachEvent)|u(?:n(?:shift|taint|escape|watch)|pdateCommands)|j(?:oin|avaEnabled)|p(?:o(?:p|w)|ush|lugins.refresh|a(?:ddings|rse(?:Int|Float)?)|r(?:int|ompt|eference))|e(?:scape|nableExternalCapture|val|lementFromPoint|x(?:p|ec(?:Script|Command)?))|valueOf|UTC|queryCommand(?:State|Indeterm|Enabled|Value)|f(?:i(?:nd|lter|le(?:ModifiedDate|Size|CreatedDate|UpdatedDate)|xed)|o(?:nt(?:size|color)|rward|rEach)|loor|romCharCode)|watch|l(?:ink|o(?:ad|g)|astIndexOf)|a(?:sin|nchor|cos|t(?:tachEvent|ob|an(?:2)?)|pply|lert|b(?:s|ort))|r(?:ou(?:nd|teEvents)|e(?:size(?:By|To)|calc|turnValue|place|verse|l(?:oad|ease(?:Capture|Events)))|andom)|g(?:o|et(?:ResponseHeader|M(?:i(?:nutes|lliseconds)|onth)|Se(?:conds|lection)|Hours|Year|Time(?:zoneOffset)?|Da(?:y|te)|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Da(?:y|te)|FullYear)|FullYear|A(?:ttention|llResponseHeaders)))|m(?:in|ove(?:B(?:y|elow)|To(?:Absolute)?|Above)|ergeAttributes|a(?:tch|rgins|x))|b(?:toa|ig|o(?:ld|rderWidths)|link|ack))\b(?=\()/},{token:"support.function.dom",regex:/(s(?:ub(?:stringData|mit)|plitText|e(?:t(?:NamedItem|Attribute(?:Node)?)|lect))|has(?:ChildNodes|Feature)|namedItem|c(?:l(?:ick|o(?:se|neNode))|reate(?:C(?:omment|DATASection|aption)|T(?:Head|extNode|Foot)|DocumentFragment|ProcessingInstruction|E(?:ntityReference|lement)|Attribute))|tabIndex|i(?:nsert(?:Row|Before|Cell|Data)|tem)|open|delete(?:Row|C(?:ell|aption)|T(?:Head|Foot)|Data)|focus|write(?:ln)?|a(?:dd|ppend(?:Child|Data))|re(?:set|place(?:Child|Data)|move(?:NamedItem|Child|Attribute(?:Node)?)?)|get(?:NamedItem|Element(?:sBy(?:Name|TagName|ClassName)|ById)|Attribute(?:Node)?)|blur)\b(?=\()/},{token:"support.constant",regex:/(s(?:ystemLanguage|cr(?:ipts|ollbars|een(?:X|Y|Top|Left))|t(?:yle(?:Sheets)?|atus(?:Text|bar)?)|ibling(?:Below|Above)|ource|uffixes|e(?:curity(?:Policy)?|l(?:ection|f)))|h(?:istory|ost(?:name)?|as(?:h|Focus))|y|X(?:MLDocument|SLDocument)|n(?:ext|ame(?:space(?:s|URI)|Prop))|M(?:IN_VALUE|AX_VALUE)|c(?:haracterSet|o(?:n(?:structor|trollers)|okieEnabled|lorDepth|mp(?:onents|lete))|urrent|puClass|l(?:i(?:p(?:boardData)?|entInformation)|osed|asses)|alle(?:e|r)|rypto)|t(?:o(?:olbar|p)|ext(?:Transform|Indent|Decoration|Align)|ags)|SQRT(?:1_2|2)|i(?:n(?:ner(?:Height|Width)|put)|ds|gnoreCase)|zIndex|o(?:scpu|n(?:readystatechange|Line)|uter(?:Height|Width)|p(?:sProfile|ener)|ffscreenBuffering)|NEGATIVE_INFINITY|d(?:i(?:splay|alog(?:Height|Top|Width|Left|Arguments)|rectories)|e(?:scription|fault(?:Status|Ch(?:ecked|arset)|View)))|u(?:ser(?:Profile|Language|Agent)|n(?:iqueID|defined)|pdateInterval)|_content|p(?:ixelDepth|ort|ersonalbar|kcs11|l(?:ugins|atform)|a(?:thname|dding(?:Right|Bottom|Top|Left)|rent(?:Window|Layer)?|ge(?:X(?:Offset)?|Y(?:Offset)?))|r(?:o(?:to(?:col|type)|duct(?:Sub)?|mpter)|e(?:vious|fix)))|e(?:n(?:coding|abledPlugin)|x(?:ternal|pando)|mbeds)|v(?:isibility|endor(?:Sub)?|Linkcolor)|URLUnencoded|P(?:I|OSITIVE_INFINITY)|f(?:ilename|o(?:nt(?:Size|Family|Weight)|rmName)|rame(?:s|Element)|gColor)|E|whiteSpace|l(?:i(?:stStyleType|n(?:eHeight|kColor))|o(?:ca(?:tion(?:bar)?|lName)|wsrc)|e(?:ngth|ft(?:Context)?)|a(?:st(?:M(?:odified|atch)|Index|Paren)|yer(?:s|X)|nguage))|a(?:pp(?:MinorVersion|Name|Co(?:deName|re)|Version)|vail(?:Height|Top|Width|Left)|ll|r(?:ity|guments)|Linkcolor|bove)|r(?:ight(?:Context)?|e(?:sponse(?:XML|Text)|adyState))|global|x|m(?:imeTypes|ultiline|enubar|argin(?:Right|Bottom|Top|Left))|L(?:N(?:10|2)|OG(?:10E|2E))|b(?:o(?:ttom|rder(?:Width|RightWidth|BottomWidth|Style|Color|TopWidth|LeftWidth))|ufferDepth|elow|ackground(?:Color|Image)))\b/},{token:"identifier",regex:i},{regex:"",token:"empty",next:"no_regex"}],start:[o.getStartRule("doc-start"),g("start"),{token:"string.regexp",regex:"\\/",next:"regex"},{token:"text",regex:"\\s+|^$",next:"start"},{token:"empty",regex:"",next:"no_regex"}],regex:[{token:"regexp.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"string.regexp",regex:"/[sxngimy]*",next:"no_regex"},{token:"invalid",regex:/\{\d+\b,?\d*\}[+*]|[+*$^?][+*]|[$^][?]|\?{3,}/},{token:"constant.language.escape",regex:/\(\?[:=!]|\)|\{\d+\b,?\d*\}|[+*]\?|[()$^+*?.]/},{token:"constant.language.delimiter",regex:/\|/},{token:"constant.language.escape",regex:/\[\^?/,next:"regex_character_class"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp"}],regex_character_class:[{token:"regexp.charclass.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"constant.language.escape",regex:"]",next:"regex"},{token:"constant.language.escape",regex:"-"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp.charachterclass"}],default_parameter:[{token:"string",regex:"'(?=.)",push:[{token:"string",regex:"'|$",next:"pop"},{include:"qstring"}]},{token:"string",regex:'"(?=.)',push:[{token:"string",regex:'"|$',next:"pop"},{include:"qqstring"}]},{token:"constant.language",regex:"null|Infinity|NaN|undefined"},{token:"constant.numeric",regex:/0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/},{token:"constant.numeric",regex:/(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/},{token:"punctuation.operator",regex:",",next:"function_arguments"},{token:"text",regex:"\\s+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],function_arguments:[g("function_arguments"),{token:"variable.parameter",regex:i},{token:"punctuation.operator",regex:","},{token:"text",regex:"\\s+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],qqstring:[{token:"constant.language.escape",regex:r},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:'"|$',next:"no_regex"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:r},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:"'|$",next:"no_regex"},{defaultToken:"string"}]},e&&e.noES6||(this.$rules.no_regex.unshift({regex:"[{}]",onMatch:function(e,t,n){if(this.next="{"==e?this.nextState:"","{"==e&&n.length)n.unshift("start",t);else if("}"==e&&n.length&&(n.shift(),this.next=n.shift(),-1!=this.next.indexOf("string")||-1!=this.next.indexOf("jsx")))return"paren.quasi.end";return"{"==e?"paren.lparen":"paren.rparen"},nextState:"start"},{token:"string.quasi.start",regex:/`/,push:[{token:"constant.language.escape",regex:r},{token:"paren.quasi.start",regex:/\${/,push:"start"},{token:"string.quasi.end",regex:/`/,next:"pop"},{defaultToken:"string.quasi"}]},{token:["variable.parameter","text"],regex:"("+i+")(\\s*)(?=\\=>)"},{token:"paren.lparen",regex:"(\\()(?=[^\\(]+\\s*=>)",next:"function_arguments"},{token:"variable.language",regex:"(?:(?:(?:Weak)?(?:Set|Map))|Promise)\\b"}),this.$rules.function_arguments.unshift({token:"keyword.operator",regex:"=",next:"default_parameter"},{token:"keyword.operator",regex:"\\.{3}"}),this.$rules.property.unshift({token:"support.function",regex:"(findIndex|repeat|startsWith|endsWith|includes|isSafeInteger|trunc|cbrt|log2|log10|sign|then|catch|finally|resolve|reject|race|any|all|allSettled|keys|entries|isInteger)\\b(?=\\()"},{token:"constant.language",regex:"(?:MAX_SAFE_INTEGER|MIN_SAFE_INTEGER|EPSILON)\\b"}),e&&0==e.jsx||l.call(this)),this.embedRules(o,"doc-",[o.getEndRule("no_regex")]),this.normalizeRules()};function l(){var e=i.replace("\\d","\\d\\-"),t={onMatch:function(e,t,n){var r="/"==e.charAt(1)?2:1;return 1==r?(t!=this.nextState?n.unshift(this.next,this.nextState,0):n.unshift(this.next),n[2]++):2==r&&t==this.nextState&&(n[1]--,(!n[1]||n[1]<0)&&(n.shift(),n.shift())),[{type:"meta.tag.punctuation."+(1==r?"":"end-")+"tag-open.xml",value:e.slice(0,r)},{type:"meta.tag.tag-name.xml",value:e.substr(r)}]},regex:"</?(?:"+e+"|(?=>))",next:"jsxAttributes",nextState:"jsx"};this.$rules.start.unshift(t);var n={regex:"{",token:"paren.quasi.start",push:"start"};this.$rules.jsx=[n,t,{include:"reference"},{defaultToken:"string.xml"}],this.$rules.jsxAttributes=[{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",onMatch:function(e,t,n){return t==n[0]&&n.shift(),2==e.length&&(n[0]==this.nextState&&n[1]--,(!n[1]||n[1]<0)&&n.splice(0,2)),this.next=n[0]||"start",[{type:this.token,value:e}]},nextState:"jsx"},n,g("jsxAttributes"),{token:"entity.other.attribute-name.xml",regex:e},{token:"keyword.operator.attribute-equals.xml",regex:"="},{token:"text.tag-whitespace.xml",regex:"\\s+"},{token:"string.attribute-value.xml",regex:"'",stateName:"jsx_attr_q",push:[{token:"string.attribute-value.xml",regex:"'",next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},{token:"string.attribute-value.xml",regex:'"',stateName:"jsx_attr_qq",push:[{token:"string.attribute-value.xml",regex:'"',next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},t],this.$rules.reference=[{token:"constant.language.escape.reference.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}]}function g(e){return[{token:"comment",regex:/\/\*/,next:[o.getTagRule(),{token:"comment",regex:"\\*\\/",next:e||"pop"},{defaultToken:"comment",caseInsensitive:!0}]},{token:"comment",regex:"\\/\\/",next:[o.getTagRule(),{token:"comment",regex:"$|^",next:e||"pop"},{defaultToken:"comment",caseInsensitive:!0}]}]}r.inherits(s,a),t.JavaScriptHighlightRules=s})),ace.define("ace/mode/xml_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";var r=e("../lib/oop"),o=e("./text_highlight_rules").TextHighlightRules,a=function(e){var t="[_:a-zA-ZÀ-][-_:.a-zA-Z0-9À-]*";this.$rules={start:[{token:"string.cdata.xml",regex:"<\\!\\[CDATA\\[",next:"cdata"},{token:["punctuation.instruction.xml","keyword.instruction.xml"],regex:"(<\\?)("+t+")",next:"processing_instruction"},{token:"comment.start.xml",regex:"<\\!--",next:"comment"},{token:["xml-pe.doctype.xml","xml-pe.doctype.xml"],regex:"(<\\!)(DOCTYPE)(?=[\\s])",next:"doctype",caseInsensitive:!0},{include:"tag"},{token:"text.end-tag-open.xml",regex:"</"},{token:"text.tag-open.xml",regex:"<"},{include:"reference"},{defaultToken:"text.xml"}],processing_instruction:[{token:"entity.other.attribute-name.decl-attribute-name.xml",regex:t},{token:"keyword.operator.decl-attribute-equals.xml",regex:"="},{include:"whitespace"},{include:"string"},{token:"punctuation.xml-decl.xml",regex:"\\?>",next:"start"}],doctype:[{include:"whitespace"},{include:"string"},{token:"xml-pe.doctype.xml",regex:">",next:"start"},{token:"xml-pe.xml",regex:"[-_a-zA-Z0-9:]+"},{token:"punctuation.int-subset",regex:"\\[",push:"int_subset"}],int_subset:[{token:"text.xml",regex:"\\s+"},{token:"punctuation.int-subset.xml",regex:"]",next:"pop"},{token:["punctuation.markup-decl.xml","keyword.markup-decl.xml"],regex:"(<\\!)("+t+")",push:[{token:"text",regex:"\\s+"},{token:"punctuation.markup-decl.xml",regex:">",next:"pop"},{include:"string"}]}],cdata:[{token:"string.cdata.xml",regex:"\\]\\]>",next:"start"},{token:"text.xml",regex:"\\s+"},{token:"text.xml",regex:"(?:[^\\]]|\\](?!\\]>))+"}],comment:[{token:"comment.end.xml",regex:"--\x3e",next:"start"},{defaultToken:"comment.xml"}],reference:[{token:"constant.language.escape.reference.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}],attr_reference:[{token:"constant.language.escape.reference.attribute-value.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}],tag:[{token:["meta.tag.punctuation.tag-open.xml","meta.tag.punctuation.end-tag-open.xml","meta.tag.tag-name.xml"],regex:"(?:(<)|(</))((?:"+t+":)?"+t+")",next:[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:"start"}]}],tag_whitespace:[{token:"text.tag-whitespace.xml",regex:"\\s+"}],whitespace:[{token:"text.whitespace.xml",regex:"\\s+"}],string:[{token:"string.xml",regex:"'",push:[{token:"string.xml",regex:"'",next:"pop"},{defaultToken:"string.xml"}]},{token:"string.xml",regex:'"',push:[{token:"string.xml",regex:'"',next:"pop"},{defaultToken:"string.xml"}]}],attributes:[{token:"entity.other.attribute-name.xml",regex:t},{token:"keyword.operator.attribute-equals.xml",regex:"="},{include:"tag_whitespace"},{include:"attribute_value"}],attribute_value:[{token:"string.attribute-value.xml",regex:"'",push:[{token:"string.attribute-value.xml",regex:"'",next:"pop"},{include:"attr_reference"},{defaultToken:"string.attribute-value.xml"}]},{token:"string.attribute-value.xml",regex:'"',push:[{token:"string.attribute-value.xml",regex:'"',next:"pop"},{include:"attr_reference"},{defaultToken:"string.attribute-value.xml"}]}]},this.constructor===a&&this.normalizeRules()};(function(){this.embedTagRules=function(e,t,n){this.$rules.tag.unshift({token:["meta.tag.punctuation.tag-open.xml","meta.tag."+n+".tag-name.xml"],regex:"(<)("+n+"(?=\\s|>|$))",next:[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:t+"start"}]}),this.$rules[n+"-end"]=[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:"start",onMatch:function(e,t,n){return n.splice(0),this.token}}],this.embedRules(e,t,[{token:["meta.tag.punctuation.end-tag-open.xml","meta.tag."+n+".tag-name.xml"],regex:"(</)("+n+"(?=\\s|>|$))",next:n+"-end"},{token:"string.cdata.xml",regex:"<\\!\\[CDATA\\["},{token:"string.cdata.xml",regex:"\\]\\]>"}])}}).call(o.prototype),r.inherits(a,o),t.XmlHighlightRules=a})),ace.define("ace/mode/html_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/css_highlight_rules","ace/mode/javascript_highlight_rules","ace/mode/xml_highlight_rules"],(function(e,t,n){"use strict";var r=e("../lib/oop"),o=e("../lib/lang"),a=e("./css_highlight_rules").CssHighlightRules,i=e("./javascript_highlight_rules").JavaScriptHighlightRules,s=e("./xml_highlight_rules").XmlHighlightRules,l=o.createMap({a:"anchor",button:"form",form:"form",img:"image",input:"form",label:"form",option:"form",script:"script",select:"form",textarea:"form",style:"style",table:"table",tbody:"table",td:"table",tfoot:"table",th:"table",tr:"table"}),g=function(){s.call(this),this.addRules({attributes:[{include:"tag_whitespace"},{token:"entity.other.attribute-name.xml",regex:"[-_a-zA-Z0-9:.]+"},{token:"keyword.operator.attribute-equals.xml",regex:"=",push:[{include:"tag_whitespace"},{token:"string.unquoted.attribute-value.html",regex:"[^<>='\"`\\s]+",next:"pop"},{token:"empty",regex:"",next:"pop"}]},{include:"attribute_value"}],tag:[{token:function(e,t){var n=l[t];return["meta.tag.punctuation."+("<"==e?"":"end-")+"tag-open.xml","meta.tag"+(n?"."+n:"")+".tag-name.xml"]},regex:"(</?)([-_a-zA-Z0-9:.]+)",next:"tag_stuff"}],tag_stuff:[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:"start"}]}),this.embedTagRules(a,"css-","style"),this.embedTagRules(new i({jsx:!1}).getRules(),"js-","script"),this.constructor===g&&this.normalizeRules()};r.inherits(g,s),t.HtmlHighlightRules=g})),ace.define("ace/mode/ftl_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/html_highlight_rules","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";var r=e("../lib/oop"),o=e("./html_highlight_rules").HtmlHighlightRules,a=e("./text_highlight_rules").TextHighlightRules,i=function(){this.$rules={start:[{token:"constant.character.entity",regex:/&[^;]+;/},{token:"support.function",regex:"\\?(\\?|substring|cap_first|uncap_first|capitalize|chop_linebreak|date|time|datetime|ends_with|html|groups|index_of|j_string|js_string|json_string|last_index_of|length|lower_case|left_pad|right_pad|contains|matches|number|replace|rtf|url|split|starts_with|string|trim|upper_case|word_list|xhtml|xmlc|round|floor|ceilingiso_[a-z_]+first|last|seq_contains|seq_index_of|seq_last_index_of|reverse|size|sort|sort_by|chunkkeys|valueschildren|parent|root|ancestors|node_name|node_type|node_namespacebyte|double|float|int|long|short|number_to_date|number_to_time|number_to_datetime|eval|has_content|interpret|is_[a-z_]+|namespacenew)"},{token:"support.function.deprecated",regex:"\\?(default|exists|if_exists|web_safe)"},{token:"language.variable",regex:"\\.(?:data_model|error|globals|lang|locale|locals|main|namespace|node|current_node|now|output_encoding|template_name|url_escaping_charset|vars|version)"},{token:"constant.language",regex:"\\b(true|false)\\b"},{token:"keyword.operator",regex:"\\b(?:gt|gte|lt|lte|as|in|using)\\b"},{token:"entity.other.attribute-name",regex:"encoding|parse|locale|number_format|date_format|time_format|datetime_format|time_zone|url_escaping_charset|classic_compatible|strip_whitespace|strip_text|strict_syntax|ns_prefixes|attributes"},{token:"string",regex:/['"]/,next:"qstring"},{token:function(e){return e.match("^[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?$")?"constant.numeric":"variable"},regex:/[\w.+\-]+/},{token:"keyword.operator",regex:"!|\\.|\\$|%|&|\\*|\\-\\-|\\-|\\+\\+|\\+|~|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|&&|\\|\\||\\?\\:|\\*=|%=|\\+=|\\-=|&=|\\^="},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]"},{token:"text",regex:"\\s+"}],qstring:[{token:"constant.character.escape",regex:'\\\\[nrtvef\\\\"$]'},{token:"string",regex:/['"]/,next:"start"},{defaultToken:"string"}]}};r.inherits(i,a);var s=function(){o.call(this);var e=[{token:"comment",regex:"<#--",next:"ftl-dcomment"},{token:"string.interpolated",regex:"\\${",push:"ftl-start"},{token:"keyword.function",regex:"</?#(assign|attempt|break|case|compress|default|elseif|else|escape|fallback|function|flush|ftl|global|if|import|include|list|local|lt|macro|nested|noescape|noparse|nt|recover|recurse|return|rt|setting|stop|switch|t|visit)",push:"ftl-start"},{token:"keyword.other",regex:"</?@[a-zA-Z\\.]+",push:"ftl-start"}];for(var t in this.$rules)this.$rules[t].unshift.apply(this.$rules[t],e);this.embedRules(i,"ftl-",[{token:"keyword",regex:"/?>",next:"pop"},{token:"string.interpolated",regex:"}",next:"pop"}],["start"]),this.addRules({"ftl-dcomment":[{token:"comment",regex:"--\x3e",next:"pop"},{defaultToken:"comment"}]}),this.normalizeRules()};r.inherits(s,o),t.FtlHighlightRules=s})),ace.define("ace/mode/ftl",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/ftl_highlight_rules"],(function(e,t,n){"use strict";var r=e("../lib/oop"),o=e("./text").Mode,a=e("./ftl_highlight_rules").FtlHighlightRules,i=function(){this.HighlightRules=a,this.$behaviour=this.$defaultBehaviour};r.inherits(i,o),function(){this.$id="ace/mode/ftl"}.call(i.prototype),t.Mode=i})),ace.require(["ace/mode/ftl"],(function(t){e&&(e.exports=t)}))}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(this.webpackChunktocco_admin=this.webpackChunktocco_admin||[]).push([[31985],{30980(t,r,e){var n=e(39344),o=e(94033);function i(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}i.prototype=n(o.prototype),i.prototype.constructor=i,t.exports=i},56017(t,r,e){var n=e(39344),o=e(94033);function i(t,r){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!r,this.__index__=0,this.__values__=void 0}i.prototype=n(o.prototype),i.prototype.constructor=i,t.exports=i},94033(t){t.exports=function(){}},68882(t){t.exports=function(t){return t}},91596(t){var r=Math.max;t.exports=function(t,e,n,o){for(var i=-1,a=t.length,s=n.length,u=-1,p=e.length,c=r(a-s,0),v=Array(p+c),f=!o;++u<p;)v[u]=e[u];for(;++i<s;)(f||i<a)&&(v[n[i]]=t[i]);for(;c--;)v[u++]=t[i++];return v}},53320(t){var r=Math.max;t.exports=function(t,e,n,o){for(var i=-1,a=t.length,s=-1,u=n.length,p=-1,c=e.length,v=r(a-u,0),f=Array(v+c),_=!o;++i<v;)f[i]=t[i];for(var h=i;++p<c;)f[h+p]=e[p];for(;++s<u;)(_||i<a)&&(f[h+n[s]]=t[i++]);return f}},58523(t){t.exports=function(t,r){for(var e=t.length,n=0;e--;)t[e]===r&&++n;return n}},11842(t,r,e){var n=e(82819),o=e(9325);t.exports=function(t,r,e){var i=1&r,a=n(t);return function r(){return(this&&this!==o&&this instanceof r?a:t).apply(i?e:this,arguments)}}},82819(t,r,e){var n=e(39344),o=e(23805);t.exports=function(t){return function(){var r=arguments;switch(r.length){case 0:return new t;case 1:return new t(r[0]);case 2:return new t(r[0],r[1]);case 3:return new t(r[0],r[1],r[2]);case 4:return new t(r[0],r[1],r[2],r[3]);case 5:return new t(r[0],r[1],r[2],r[3],r[4]);case 6:return new t(r[0],r[1],r[2],r[3],r[4],r[5]);case 7:return new t(r[0],r[1],r[2],r[3],r[4],r[5],r[6])}var e=n(t.prototype),i=t.apply(e,r);return o(i)?i:e}}},77078(t,r,e){var n=e(91033),o=e(82819),i=e(37471),a=e(18073),s=e(11287),u=e(36306),p=e(9325);t.exports=function(t,r,e){var c=o(t);return function o(){for(var v=arguments.length,f=Array(v),_=v,h=s(o);_--;)f[_]=arguments[_];var l=v<3&&f[0]!==h&&f[v-1]!==h?[]:u(f,h);return(v-=l.length)<e?a(t,r,i,o.placeholder,void 0,f,l,void 0,void 0,e-v):n(this&&this!==p&&this instanceof o?c:t,this,f)}}},66929(t,r,e){var n=e(56017),o=e(38816),i=e(37381),a=e(62284),s=e(56449),u=e(85087);t.exports=function(t){return o((function(r){var e=r.length,o=e,p=n.prototype.thru;for(t&&r.reverse();o--;){var c=r[o];if("function"!=typeof c)throw new TypeError("Expected a function");if(p&&!v&&"wrapper"==a(c))var v=new n([],!0)}for(o=v?o:e;++o<e;){c=r[o];var f=a(c),_="wrapper"==f?i(c):void 0;v=_&&u(_[0])&&424==_[1]&&!_[4].length&&1==_[9]?v[a(_[0])].apply(v,_[3]):1==c.length&&u(c)?v[f]():v.thru(c)}return function(){var t=arguments,n=t[0];if(v&&1==t.length&&s(n))return v.plant(n).value();for(var o=0,i=e?r[o].apply(this,t):n;++o<e;)i=r[o].call(this,i);return i}}))}},37471(t,r,e){var n=e(91596),o=e(53320),i=e(58523),a=e(82819),s=e(18073),u=e(11287),p=e(68294),c=e(36306),v=e(9325);t.exports=function t(r,e,f,_,h,l,d,x,g,y){var w=128&e,m=1&e,$=2&e,F=24&e,M=512&e,b=$?void 0:a(r);return function k(){for(var A=arguments.length,E=Array(A),O=A;O--;)E[O]=arguments[O];if(F)var T=u(k),j=i(E,T);if(_&&(E=n(E,_,h,F)),l&&(E=o(E,l,d,F)),A-=j,F&&A<y){var C=c(E,T);return s(r,e,t,k.placeholder,f,E,C,x,g,y-A)}var N=m?f:this,P=$?N[r]:r;return A=E.length,x?E=p(E,x):M&&A>1&&E.reverse(),w&&g<A&&(E.length=g),this&&this!==v&&this instanceof k&&(P=b||a(P)),P.apply(N,E)}}},24168(t,r,e){var n=e(91033),o=e(82819),i=e(9325);t.exports=function(t,r,e,a){var s=1&r,u=o(t);return function r(){for(var o=-1,p=arguments.length,c=-1,v=a.length,f=Array(v+p),_=this&&this!==i&&this instanceof r?u:t;++c<v;)f[c]=a[c];for(;p--;)f[c++]=arguments[++o];return n(_,s?e:this,f)}}},18073(t,r,e){var n=e(85087),o=e(54641),i=e(70981);t.exports=function(t,r,e,a,s,u,p,c,v,f){var _=8&r;r|=_?32:64,4&(r&=~(_?64:32))||(r&=-4);var h=[t,r,s,_?u:void 0,_?p:void 0,_?void 0:u,_?void 0:p,c,v,f],l=e.apply(void 0,h);return n(t)&&o(l,h),l.placeholder=a,i(l,t,r)}},66977(t,r,e){var n=e(68882),o=e(11842),i=e(77078),a=e(37471),s=e(24168),u=e(37381),p=e(3209),c=e(54641),v=e(70981),f=e(61489),_=Math.max;t.exports=function(t,r,e,h,l,d,x,g){var y=2&r;if(!y&&"function"!=typeof t)throw new TypeError("Expected a function");var w=h?h.length:0;if(w||(r&=-97,h=l=void 0),x=void 0===x?x:_(f(x),0),g=void 0===g?g:f(g),w-=l?l.length:0,64&r){var m=h,$=l;h=l=void 0}var F=y?void 0:u(t),M=[t,r,e,h,l,m,$,d,x,g];if(F&&p(M,F),t=M[0],r=M[1],e=M[2],h=M[3],l=M[4],!(g=M[9]=void 0===M[9]?y?0:t.length:_(M[9]-w,0))&&24&r&&(r&=-25),r&&1!=r)b=8==r||16==r?i(t,r,g):32!=r&&33!=r||l.length?a.apply(void 0,M):s(t,r,e,h);else var b=o(t,r,e);return v((F?n:c)(b,M),t,r)}},37381(t){t.exports=function(){}},62284(t,r,e){var n=e(84629),o=Object.prototype.hasOwnProperty;t.exports=function(t){for(var r=t.name+"",e=n[r],i=o.call(n,r)?e.length:0;i--;){var a=e[i],s=a.func;if(null==s||s==t)return a.name}return r}},11287(t){t.exports=function(){}},85087(t,r,e){var n=e(30980),o=e(37381),i=e(62284),a=e(53758);t.exports=function(t){var r=i(t),e=a[r];if("function"!=typeof e||!(r in n.prototype))return!1;if(t===e)return!0;var s=o(e);return!!s&&t===s[0]}},3209(t){t.exports=function(t){return t}},84629(t){t.exports={}},68294(t,r,e){var n=e(23007),o=e(30361),i=Math.min;t.exports=function(t,r){for(var e=t.length,a=i(r.length,e),s=n(t);a--;){var u=r[a];t[a]=o(u,e)?s[u]:void 0}return t}},36306(t){t.exports=function(){return[]}},54641(t){t.exports=function(t){return t}},70981(t){t.exports=function(t){return t}},80257(t,r,e){var n=e(30980),o=e(56017),i=e(23007);t.exports=function(t){if(t instanceof n)return t.clone();var r=new o(t.__wrapped__,t.__chain__);return r.__actions__=i(t.__actions__),r.__index__=t.__index__,r.__values__=t.__values__,r}},49747(t,r,e){var n=e(66977);function o(t,r,e){var i=n(t,8,void 0,void 0,void 0,void 0,void 0,r=e?void 0:r);return i.placeholder=o.placeholder,i}o.placeholder={},t.exports=o},49870(t,r,e){var n=e(66929)();t.exports=n},53758(t,r,e){var n=e(30980),o=e(56017),i=e(94033),a=e(56449),s=e(40346),u=e(80257),p=Object.prototype.hasOwnProperty;function c(t){if(s(t)&&!a(t)&&!(t instanceof n)){if(t instanceof o)return t;if(p.call(t,"__wrapped__"))return u(t)}return new o(t)}c.prototype=i.prototype,c.prototype.constructor=c,t.exports=c},5896(t,r,e){"use strict";e.d(r,{x:()=>i});var n=e(51819),o=e(29407);function i(t,r){const e=(0,o.a)(t,r?.in);if(isNaN(+e))throw new RangeError("Invalid time value");const i=r?.format??"extended",a=r?.representation??"complete";let s="",u="";const p="extended"===i?"-":"",c="extended"===i?":":"";if("time"!==a){const t=(0,n.F)(e.getDate(),2),r=(0,n.F)(e.getMonth()+1,2);s=`${(0,n.F)(e.getFullYear(),4)}${p}${r}${p}${t}`}if("date"!==a){const t=e.getTimezoneOffset();if(0!==t){const r=Math.abs(t);u=`${t<0?"+":"-"}${(0,n.F)(Math.trunc(r/60),2)}:${(0,n.F)(r%60,2)}`}else u="Z";s=`${s}${""===s?"":"T"}${[(0,n.F)(e.getHours(),2),(0,n.F)(e.getMinutes(),2),(0,n.F)(e.getSeconds(),2)].join(c)}${u}`}return s}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(this.webpackChunktocco_admin=this.webpackChunktocco_admin||[]).push([[33050],{34296(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>Fa});var r=n(14644),a=n(71468),i=n(17276),o=n(4883),c=n.n(o),s=n(50766),l=n(64467),u=n(58156),p=n.n(u),d=n(87046),f=n(21433),y=n(23076),m=n(94488),v=n(66789),h=n(35693),b=n(74848);function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){(0,l.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var A=function(e){var t=e.setCurrentViewTitle,n=e.currentViewInfo,r=e.baseRoute,a=(0,d.tz)(),i=(0,s.zy)(),c=(0,s.Zp)();if((0,o.useEffect)((function(){return n&&t(a.formatMessage({id:"client.actions.".concat(n.actionId,".title")})),function(){t(null)}}),[n,t,a]),!n)return null;var l=m.A.fromQueryString(i.search),u=p()(i,"state.selection",l.selection),y=p()(i,"state.definition.properties",l.actionProperties),g=function(e){var t,n=f.A.getPathInfo(i.pathname).key&&null!=e&&null!==(t=e.flags)&&void 0!==t&&t.selectionDeleted?"../../":"../";c(n)};return(0,b.jsx)(h.A,x(x({appId:n.actionId},l),{},{selection:u,actionProperties:y,navigationStrategy:(0,v.Ay)(c,r),onSuccess:g,onError:g,onCancel:g}))},w=function(e,t){return 0===Object.keys(y.A.difference(e,t)).length};const j=c().memo(A,w);var O={setCurrentViewTitle:i.Hp};const T=(0,a.Ng)((function(e,t){return{currentViewInfo:e.entities.path.currentViewInfos[t.location.pathname],baseRoute:e.input.baseRoute}}),O)(j);var k=n(97699),E=n(6730),P=n(29255),N=n(74978),R=n(27948),C=n(6440),D=n(62325),S=n(88131),I=n(5544),L=n(81845),V=n(59899),J=n(86275),F=n(46306),K=n(43141),M=n(88208),q=n(144),B=n(38978),U=n(15115),_=n(7946),z=n(73905),H=n(60436),Q=function(e,t){return t.reduce((function(e,t){return e.some((function(e){return e.id===t.id}))?e:[].concat((0,H.A)(e),[t])}),e)},W=n(66590),Z={"entity-template-create":(0,o.lazy)((function(){return Promise.all([n.e(12260),n.e(89182),n.e(66672),n.e(59899),n.e(86275),n.e(25039),n.e(27136),n.e(71306),n.e(47610),n.e(54236)]).then(n.bind(n,15646))}))};const G=W.A.actionFactory(Z);var Y=n(52668),$=n(11341);var X,ee=n(83927);const te=function(e){var t=e.currentViewInfo,n=e.chooseDocument,r=e.dispatchEmittedAction,a=e.setPendingChanges,i=e.setEntity,c=e.unloadView,l=e.isLoadingTemplateValues,u=e.activeTemplateDefaultValues,f=e.setEntityTemplateSidepanelCollapsed,y=e.entityTemplateSidepanelCollapsed,m=e.updateEntityTemplate,h=e.activeEntityTemplate,g=e.entity,x=e.showPendingChangesModal,A=e.baseRoute,w=e.treeData,j=e.isTreeVisible,O=e.isTreeLoading,T=e.rootEntityName,k=e.treeCreateMode,E=e.setTreeCreateMode,P=e.setSkeletonNode,N=e.createTreeRelationship,R=e.refreshTree,C=(0,d.tz)(),D=function(e){return C.formatMessage({id:e})},S=(0,s.zy)(),H=(0,s.Zp)(),W=p()(S,"state.defaultValues",[]),Z=(0,o.useState)(!1),te=(0,I.A)(Z,2),ne=te[0],re=te[1];if((0,o.useEffect)((function(){return function(){a(!1),c(),E(null),P(null)}}),[a,c,E,P]),(0,K.A)({when:ne,message:D("client.admin.entities.confirmTouchedFormLeave"),showPendingChangesModal:x}),!t)return null;var ae=t.model,ie=t.reverseRelation,oe=t.parentKey,ce=ae.name,se=(null==k?void 0:k.entityName)||T,le=(0,z.qI)(S.pathname,T,k,O,w,j),ue=p()(ae,"paths.".concat(ie,".multi"),!1),pe=Q(Q(ie&&oe?[{id:ie,value:ue?[oe]:oe}]:[],u||[]),W),de=(0,b.jsx)(ee.mT,{children:(0,b.jsx)(M.A,{required:[!l],loadingText:D("client.admin.entities.create.entityTemplateLoading"),children:(0,b.jsx)(J.Ay,{entityName:ce,formName:ce,mode:"create",defaultValues:pe,emitAction:function(e){r(e)},navigationStrategy:(0,v.Ay)(H,A),chooseDocument:n,onEntityCreated:function(e){var t=e.id,n=e.followUp;if((0,L.flushSync)((function(){re(!1)})),k&&se){N(se,t,k.parentKey,(function(){H("/e/".concat(se,"/").concat(t,"/detail"),{search:null!=n&&n.action?"?action=".concat(null==n?void 0:n.action):""})}))}else T&&R({mode:"create",location:S}),H({pathname:"../".concat(t,"/detail"),search:null!=n&&n.action?"?action=".concat(null==n?void 0:n.action):""})},onTouchedChange:function(e){var t=e.touched;re(t),a(t)},onFormValuesChange:function(e){var t=e.entity;i(t)},listApp:F.Ay,docsApp:V.default,actionAppComponent:G,customActions:{"entity-template-update":function(e,t,n,r,a,i,o){m(h,g,i,o)}},modifyFormDefinition:function(e){return function(e,t,n){var r={id:"entity-template-create",appId:"entity-template-create",label:t.formatMessage({id:"client.admin.entities.action.createEntityTemplate.label"}),componentType:"action",children:[],actionType:"custom",useLabel:"yes",buttonType:"regular",canExecuteOnPendingChanges:!0},a=$.A.addAction(e,r,["save"]),i={id:"entity-template-update",label:t.formatMessage({id:"client.admin.entities.action.updateEntityTemplate.label"}),componentType:"action",children:[],actionType:"custom",useLabel:"yes",buttonType:"regular",canExecuteOnPendingChanges:!0};return n?$.A.addAction(a,i,["save","entity-template-create"]):a}(e,C,h)}},(null==k?void 0:k.parentKey)||"default")})});return le?de:(0,b.jsxs)(q.A,{sidepanelPosition:"left",scrollBehaviour:"inline",setSidepanelCollapsed:f,sidepanelCollapsed:y,children:[(0,b.jsxs)(B.A,{children:[X||(X=(0,b.jsx)(U.A,{})),(0,b.jsx)(ee.kt,{children:(0,b.jsx)(Y.A,{entityName:ce,navigationStrategy:(0,v.Ay)(H,A)})})]}),(0,b.jsx)(_.A,{children:de})]})};var ne={chooseDocument:P.A.actions.chooseDocument,dispatchEmittedAction:E.A.dispatchEmittedAction,setPendingChanges:R.p1,setEntity:C.W_,unloadView:C.LY,setEntityTemplateSidepanelCollapsed:function(e){return(0,N.bM)({"admin.create.entityTemplateSidepanelCollapsed":e})},updateEntityTemplate:C.vB,showPendingChangesModal:R.jV,setTreeCreateMode:S.i8,setSkeletonNode:S.C6,createTreeRelationship:S.vU,refreshTree:S.uS};const re=(0,a.Ng)((function(e,t){var n,r,a,i,o;return{currentViewInfo:e.entities.path.currentViewInfos[t.location.pathname],activeTemplateDefaultValues:e.entities.entityTemplate.activeTemplateDefaultValues,isLoadingTemplateValues:(0,D.v)(e),entityTemplateSidepanelCollapsed:p()(e.preferences.userPreferences,"admin.create.entityTemplateSidepanelCollapsed",!1),activeEntityTemplate:e.entities.entityTemplate.activeEntityTemplate,entity:e.entities.entityTemplate.entity,baseRoute:e.input.baseRoute,treeData:null===(n=e.entities.treeNavigation)||void 0===n?void 0:n.treeData,isTreeVisible:null===(r=e.entities.treeNavigation)||void 0===r?void 0:r.isVisible,isTreeLoading:null===(a=e.entities.treeNavigation)||void 0===a?void 0:a.isLoading,rootEntityName:null===(i=e.entities.treeNavigation)||void 0===i?void 0:i.rootEntityName,treeCreateMode:null===(o=e.entities.treeNavigation)||void 0===o?void 0:o.treeCreateMode}}),ne)(te);var ae="navigation/SAVE_INTERACTION",ie=function(e,t){return{type:ae,payload:{modelName:e,entityId:t}}},oe=n(40676),ce=n(77008),se=n(25212),le=n(10467),ue=n(54756),pe=n.n(ue),de=n(93750),fe=n(23409),ye=n(56375);function me(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ve(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?me(Object(n),!0).forEach((function(t){(0,l.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):me(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const he=function(e){var t=e.entityName,n=e.entityKey,r=e.showActions,a=e.noLeftPadding,i=e.openResource,c=e.initialLocation,s=e.sortable,l=e.navigationStrategy,u=e.relationName,p=(0,o.useState)(null),d=(0,I.A)(p,2),f=d[0],y=d[1],m=(0,o.useCallback)((0,le.A)(pe().mark((function e(){return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:de.A.simpleRequest("entities/2.0/"+t+"/"+n+"/entitydocs/folder").then((function(e){y(e.body.key)}));case 1:case"end":return e.stop()}}),e)}))),[t,n]);(0,o.useEffect)((function(){m()}),[m]);return f&&(0,b.jsx)(V.default,ve(ve(ve({routerType:"hash",initialLocation:c,noLeftPadding:a,sortable:s,searchFormType:"none",rootNodes:[{key:f,entityName:"Folder"}],embedded:!0,showActions:r},!1===r?{selectionStyle:"none"}:{}),i?{openResource:i}:{}),{},{scrollBehaviour:"inline",navigationStrategy:ve(ve({},l),{},{ListLink:function(e){var t=e.entityName,n=e.entityKeys,r=e.children;return(0,fe.PE)(t)?(0,b.jsx)(ye.Ay.Span,{children:r}):(0,b.jsx)(l.ListLink,{entityName:t,entityKeys:n,children:r})}}),relationName:u}))};const be=function(e){var t=e.currentViewInfo,n=e.initialLocation,r=e.navigationStrategy;return(0,b.jsx)(he,{noLeftPadding:!1,entityName:t.parentModel.name,entityKey:t.parentKey,showActions:!0,initialLocation:n,navigationStrategy:r})};function ge(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ge(Object(n),!0).forEach((function(t){(0,l.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ge(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Ae=function(e){var t=e.currentViewInfo,n=e.emitAction,r=e.searchFormCollapsed,a=e.saveUserPreferences,i=e.baseRoute,c=e.saveInteraction,l=null==t?void 0:t.model.name;(0,o.useEffect)((function(){l&&c(l)}),[l,c]);var u=(0,s.ok)(),p=(0,I.A)(u,1)[0],d=(0,s.zy)(),f=(0,s.Zp)();if(!t)return null;var y=d.hash?d.hash.substring(1):null,m=(0,v.Ay)(f,i);if("Resource"===l)return(0,b.jsx)(be,{currentViewInfo:t,initialLocation:y,navigationStrategy:m});var g=p.get("searchfilter"),x=g?[g]:[];return g&&se.A.removeFromQuery("searchfilter"),(0,b.jsx)(F.Ay,xe(xe({emitAction:n,limit:25,id:"".concat(l,"_list"),entityName:l,formName:p.get("formName")||l,onRowClick:function(e){var t=e.id;f("../".concat(t))}},t.reverseRelation&&{parent:{key:t.parentKey,reverseRelationName:t.reverseRelation,model:t.parentModel.name}}),{},{showLink:!0,showNumbering:!0,navigationStrategy:m,searchFormPosition:"left",searchFormType:"admin",scrollBehaviour:"inline",store:ce.A.viewInfoSelector(d.pathname).store,onStoreCreate:function(e){ce.A.persistViewInfo(d.pathname,{store:e},t.level)},actionAppComponent:h.A,tql:p.get("tql"),tempFilter:p.get("tempFilter"),initialSearchFilters:x,searchFormCollapsed:r,onSearchFormCollapsedChange:function(e){var t=e.collapsed;a({"admin.list.searchFormCollapsed":t})},detailApp:J.Ay,customActions:{history:function(e,t,n,r,a,i,o){m.navigateToPath({pathname:(0,oe.O)(t),inNewTab:!0})}}}))};var we={emitAction:function(e){return E.A.dispatchEmittedAction(e)},saveUserPreferences:N.bM,saveInteraction:ie};const je=(0,a.Ng)((function(e,t){return{currentViewInfo:e.entities.path.currentViewInfos[t.location.pathname],searchFormCollapsed:p()(e.preferences.userPreferences,"admin.list.searchFormCollapsed",!1),baseRoute:e.input.baseRoute}}),we)(Ae);var Oe,Te,ke,Ee=n(53986),Pe=n(46830),Ne=n(111),Re=n(65834),Ce=n(69556),De=n(57528),Se=n(51510),Ie=n(47616),Le=n(26166),Ve=Se.Ay.div.withConfig({displayName:"StyledEntityDetailAppWrapper"})(Oe||(Oe=(0,De.A)(["\n margin: 0;\n background-color: ",";\n padding: 0 0 0 ",";\n height: calc(100dvh - 92px); /* ~92px: height of header (40px) + breadcrumbs */\n overflow: hidden;\n"])),Ie.A.color("paper"),Le.A.space(0)),Je=(0,Se.Ay)(Ve).withConfig({displayName:"StyledEntityDetailAppLoadingWrapper"})(Te||(Te=(0,De.A)(["\n display: flex;\n align-items: center;\n justify-content: center;\n"])));function Fe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ke(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fe(Object(n),!0).forEach((function(t){(0,l.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Me=function(e){var t,n=e.currentViewInfo,r=e.chooseDocument,a=e.emitAction,i=e.propagateRefresh,c=e.invalidateLastBreadcrumb,l=e.setPendingChanges,u=e.showPendingChangesModal,p=e.baseRoute,f=e.saveInteraction,y=e.loadTreeData,m=e.refreshTree,g=(0,d.tz)(),x=(0,s.zy)(),A=(0,s.Zp)(),w=(0,s.ok)(),j=(0,I.A)(w,1)[0],O=j.get("action"),T=j.get("formName"),k=(0,o.useState)(!1),E=(0,I.A)(k,2),P=E[0],N=E[1];(0,o.useEffect)((function(){return function(){return l(!1)}}),[l]),(0,K.A)({when:P,message:(t="client.admin.entities.confirmTouchedFormLeave",g.formatMessage({id:t})),showPendingChangesModal:u});var R=null==n?void 0:n.model.name,C=null==n?void 0:n.key,D=!n||n.pathname!==x.pathname;if((0,o.useEffect)((function(){!D&&R&&C&&y(R,C,!1,x.pathname)}),[D,R,C,y,x.pathname]),(0,o.useEffect)((function(){D||f(R,C)}),[D,C,R,f]),D)return ke||(ke=(0,b.jsx)(Je,{children:(0,b.jsx)(Ce.A,{size:"1.8rem"})}));var S=Ke(Ke({},(0,v.Ay)(A,p)),{},{navigateToCreateRelative:function(e,t){A(e?"../".concat(e,"/create"):"../../create",{state:t})}});return(0,b.jsx)(Ve,{children:(0,b.jsx)(J.Ay,{entityName:R,entityId:C,formName:T||R,mode:"update",emitAction:a,onTouchedChange:function(e){var t=e.touched;N(t),l(t)},navigationStrategy:S,chooseDocument:r,onEntityDeleted:function(){m({mode:"delete",entityName:R,entityKey:C}),A("../../")},onEntityUpdated:function(){c(x),m({mode:"update",entityName:R,entityKey:C})},onRefresh:function(){i(x),m({mode:"update",entityName:R,entityKey:C})},actionAppComponent:h.A,onSubGridRowClick:function(e){var t=e.id,n=e.relationName;A("../".concat(n,"/").concat(t))},listApp:F.Ay,docsApp:V.default,initialAction:O,customActions:{history:function(e,t,n,r,a,i,o){S.navigateToPath({pathname:(0,oe.K)(t),inNewTab:!0})}}})})};var qe={chooseDocument:P.A.actions.chooseDocument,emitAction:function(e){return E.A.dispatchEmittedAction(e)},propagateRefresh:i.XE,invalidateLastBreadcrumb:i.pU,setPendingChanges:R.p1,showPendingChangesModal:R.jV,saveInteraction:ie,loadTreeData:S.nP,refreshTree:S.uS};const Be=(0,a.Ng)((function(e,t){return{currentViewInfo:e.entities.path.currentViewInfos[t.location.pathname],baseRoute:e.input.baseRoute}}),qe)(Me);var Ue="tocco/admin/entities/favoriteRelations/LOAD_FAVORITE_RELATIONS",_e="tocco/admin/entities/favoriteRelations/SET_FAVORITE_RELATIONS",ze="tocco/admin/entities/favoriteRelations/TOGGLE_FAVORITE_RELATION",He=function(e,t){return{type:_e,payload:{entityName:e,favoriteRelations:t}}},Qe={},We=function(e,t){var n=function(e){var t;return(null===(t=e.entities)||void 0===t?void 0:t.favoriteRelations)||{}}(e);return n[t]||{}},Ze=function(e,t){var n=e.entities.path.relations;return(null==n?void 0:n.length)>0?function(e,t,n){return(0,H.A)(e).sort((function(e,r){var a="favoriteRelations.".concat(t,".").concat(e.relationName),i="favoriteRelations.".concat(t,".").concat(r.relationName),o=Object.prototype.hasOwnProperty.call(n,a),c=Object.prototype.hasOwnProperty.call(n,i);return o&&!c?-1:!o&&c?1:o&&c?Number(n[a])-Number(n[i]):0}))}(n,t,We(e,t)):n},Ge=n(64116);const Ye=function(e){var t=e.currentViewInfo,n=e.selectedRelation,r=e.sortable,a=(0,s.Zp)();return(0,b.jsx)(he,{entityName:t.model.name,entityKey:t.key,showActions:!1,noLeftPadding:!0,openResource:function(e){a("../".concat(n.relationName,"/list#").concat(e))},sortable:r,relationName:n.relationName})};var $e=function(e){var t=e.selectedRelation,n=e.currentViewInfo,r=e.emitAction,a=e.baseRoute,i="".concat(t.reverseRelationName).concat(t.relationName),o=(0,s.zy)(),c=(0,s.Zp)();return(0,b.jsx)(F.Ay,{id:"preview"+t.reverseRelationName+t.targetEntity,entityName:t.targetEntity,formName:t.targetEntity,parent:{key:n.key,reverseRelationName:t.reverseRelationName,model:n.model.name,relationName:t.relationName},showLink:!0,navigationStrategy:(0,v.Ay)(c,a),onRowClick:function(e){var n=e.id;c("../".concat(t.relationName,"/").concat(n))},onNavigateToCreate:function(){c("../".concat(t.relationName,"/create"))},searchFormType:"fulltext",selectionStyle:"none",store:ce.A.viewInfoSelector(o.pathname)["store-".concat(i)],onStoreCreate:function(e){ce.A.persistViewInfo(n.pathname,(0,l.A)({},"store-".concat(i),e),n.level)},showActions:!1,limit:15,emitAction:r,scrollBehaviour:"inline",detailApp:J.Ay,actionAppComponent:h.A},t.reverseRelationName+t.targetEntity)};const Xe=c().memo($e);var et,tt,nt,rt,at,it,ot,ct,st,lt,ut,pt,dt,ft,yt,mt,vt,ht,bt,gt=n(15564),xt=n(93564),At=n(57488),wt=n(24076),jt=n(17819),Ot=n(33150),Tt=n(5016),kt=n(46937),Et=(0,Se.Ay)(Ge.A).withConfig({displayName:"StyledFavoriteIndicator"})(et||(et=(0,De.A)(["\n display: ",";\n margin-left: ",";\n\n &,\n "," {\n color: ",";\n }\n"])),(function(e){return e.$isFavorite?"block":"none"}),Le.A.space(-1),xt.i,At.t7.color("textLight")),Pt=Se.Ay.div.withConfig({displayName:"StyledRelationsViewWrapper"})(tt||(tt=(0,De.A)(["\n display: ",";\n height: 100%;\n flex-direction: column;\n border-radius: ",";\n overflow: clip;\n"])),(function(e){return e.isRightPaneCollapsed?"none":"flex"}),At.t7.radii("large")),Nt=Se.Ay.div.withConfig({displayName:"StyledPlaceHolder"})(nt||(nt=(0,De.A)(["\n display: ",";\n flex: 1;\n height: 100%;\n background: ",";\n padding-top: calc("," + 1.625px);\n align-items: flex-start;\n border-top-left-radius: ",";\n border-bottom-left-radius: ",";\n box-sizing: border-box;\n\n &:hover {\n cursor: pointer;\n }\n"])),(function(e){return e.isRightPaneCollapsed?"flex":"none"}),Ie.A.color("paper"),At.t7.space("actionBarPadding"),At.t7.radii("large"),At.t7.radii("large")),Rt=Se.Ay.div.withConfig({displayName:"StyledToggleCollapse"})(rt||(rt=(0,De.A)(["\n display: flex;\n background-color: ",";\n padding: "," "," "," ",";\n"])),Ie.A.color("paper"),Le.A.space(-.1),Le.A.space(-.5),Le.A.space(-.5),Le.A.space(-.1)),Ct=(0,Se.Ay)(wt.A).withConfig({displayName:"StyledToggleCollapseButton"})(at||(at=(0,De.A)(["\n margin-left: auto;\n\n &:hover,\n ",":hover & {\n background-color: transparent;\n color: ",";\n }\n"])),Nt,Ie.A.color("secondaryLight")),Dt=Se.Ay.div.withConfig({displayName:"StyledPreviewBox"})(it||(it=(0,De.A)(["\n background-color: ",";\n padding: ",";\n margin-top: 4px;\n display: flex;\n flex-direction: column;\n flex: 1;\n border-radius: 0 0 "," ",";\n\n "," {\n padding-bottom: 0;\n }\n"])),Ie.A.color("paper"),Le.A.space(-.5),At.t7.radii("large"),At.t7.radii("large"),jt.Ny),St=Se.Ay.div.withConfig({displayName:"StyledRelationBoxes"})(ot||(ot=(0,De.A)(["\n background-color: ",";\n padding: 0 "," "," ",";\n display: grid;\n grid-template-columns: ",";\n gap: ",";\n overflow-y: auto;\n place-content: flex-start;\n flex-shrink: 0;\n min-height: 175px;\n max-height: 40%;\n"])),Ie.A.color("paper"),Le.A.space(-1),Le.A.space(-1),Le.A.space(-1),(function(e){return e.count>3?"repeat(auto-fit, minmax(160px, 1fr))":"repeat(3, 220px)"}),Le.A.space(-1)),It=(0,Se.Ay)(gt.A).withConfig({displayName:"StyledPreviewLink"})(ct||(ct=(0,De.A)(["\n padding: ",";\n border-radius: ",";\n\n &:hover {\n background-color: #e6e6e6;\n }\n"])),Le.A.space(-2),At.t7.radii("small")),Lt=Se.Ay.div.withConfig({displayName:"StyledPreviewLinkWrapper"})(st||(st=(0,De.A)(["\n display: flex;\n align-items: baseline;\n gap: ",";\n"])),Le.A.space(-1)),Vt=Se.Ay.span.withConfig({displayName:"StyledFavoriteIcon"})(lt||(lt=(0,De.A)(["\n display: ",";\n color: ",";\n margin-left: ",";\n\n ",":hover path {\n color: ",";\n }\n"])),(function(e){return e.isFavorite?"block":"none"}),At.t7.color("textLighter"),Le.A.space(-.75),xt.i,At.t7.color("hoverInteractiveIcon")),Jt=Se.Ay.div.withConfig({displayName:"StyledRelationLinks"})(ut||(ut=(0,De.A)(["\n display: none;\n gap: ",";\n align-items: center;\n margin-left: auto;\n\n * {\n color: ",";\n padding-left: ",";\n }\n"])),Le.A.space(-1.5),Ie.A.color("text"),Le.A.space(-4.5)),Ft=(0,Se.Ay)(Ot.A).withConfig({displayName:"StyledRelationBox"})(pt||(pt=(0,De.A)(["\n border-radius: ",";\n padding: "," ",";\n margin-right: 0;\n background-color: ",";\n height: fit-content;\n transition: background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1);\n\n ","\n\n &:hover {\n "," {\n display: flex;\n }\n\n "," {\n display: none;\n }\n }\n\n &&& {\n * {\n color: ",";\n box-sizing: initial;\n }\n }\n ",";\n\n /* allow hover styles only on non-touch devices */\n ","\n"])),Ie.A.radii("button"),Le.A.space(-2),Le.A.space(-.25),(function(e){return e.selected&&At.t7.color("secondary")}),(function(e){return e.highlight&&(0,Se.AH)(dt||(dt=(0,De.A)(["\n background-color: ",";\n\n && {\n * {\n color: ",";\n }\n }\n "])),At.t7.color("secondaryLighter"),At.t7.color("paper"))}),Vt,Et,(function(e){return e.selected&&Ie.A.color("paper")}),(function(e){return e.selected&&(0,Se.AH)(ft||(ft=(0,De.A)(["\n "," {\n display: flex;\n }\n\n "," {\n display: none;\n }\n "])),Jt,Et)}),!kt.A.isPrimaryTouchDevice()&&(0,Se.AH)(yt||(yt=(0,De.A)(["\n &:hover "," {\n display: flex;\n }\n\n && {\n &:hover {\n background-color: ",";\n\n * {\n color: ",";\n }\n cursor: pointer;\n }\n }\n\n ",":hover * {\n color: ",";\n }\n "])),Jt,Ie.A.color("secondaryLight"),Ie.A.color("paper"),gt.A,Ie.A.color("hoverInteractiveIcon"))),Kt=(0,Se.Ay)(Tt.oY).withConfig({displayName:"StyledRelationLabel"})(mt||(mt=(0,De.A)(["\n && {\n max-width: 130px;\n }\n"]))),Mt=(Se.Ay.div.withConfig({displayName:"StyledLinksWrapper"})(vt||(vt=(0,De.A)(["\n display: flex;\n align-items: center;\n margin-left: auto;\n padding-left: ",";\n"])),Le.A.space(-1)),{toggleFavorite:function(e,t,n){return{type:ze,payload:{entityName:e,relationName:t,isFavorite:n}}}});const qt=(0,a.Ng)((function(e,t){var n=function(e,t,n){var r=We(e,t),a="favoriteRelations.".concat(t,".").concat(n);return Object.prototype.hasOwnProperty.call(r,a)}(e,t.entityName,t.relation.relationName);return{isFavorite:n}}),Mt)((function(e){var t,n,r=e.relation,a=e.relationsInfo,i=e.selectRelation,c=e.selectedRelation,l=e.entityName,u=e.isFavorite,p=e.toggleFavorite,f=r.relationName,y=r.targetEntity,m=r.relationDisplay,v=(0,s.ok)(),h=(0,I.A)(v,2),g=(h[0],h[1]),x=(0,o.useState)(!1),A=(0,I.A)(x,2),w=A[0],j=A[1],O=(0,d.tz)(),T=function(e){return O.formatMessage({id:e})},k=function(e){return e.stopPropagation()},E="../".concat(f),P="../".concat(f,"/create");return(0,b.jsxs)(Ft,{selected:(null==c?void 0:c.relationName)===f,onClick:function(){i(r),g({relation:f},{replace:!0}),function(e,t){Qe[e]=t}(l,f)},"data-cy":"box-relation-box-".concat(y),withoutBackground:!0,highlight:w,children:[(0,b.jsx)(Kt,{title:m.label,children:m.label}),(null===(n=a[f])||void 0===n?void 0:n.count)>0?(0,b.jsxs)("span",{children:[" (",a[f].count,")"]}):null,(0,b.jsx)(Et,{$isFavorite:u,icon:"thumbtack-angle"}),(0,b.jsxs)(Jt,{children:[(0,b.jsx)(Vt,{$isFavorite:u,selected:(null==c?void 0:c.relationName)===f,onClick:function(e){e.stopPropagation(),p(l,f,!u),j(!0),setTimeout((function(){return j(!1)}),800)},children:(0,b.jsx)(Ge.A,{icon:u?"thumbtack-angle-slash":"thumbtack-angle"})}),(0,b.jsx)(gt.A,{"aria-label":T("client.admin.entities.relationsView.relationLinkView"),to:E,onClick:k,children:ht||(ht=(0,b.jsx)(Ge.A,{icon:"arrow-right"}))}),(null===(t=a[f])||void 0===t?void 0:t.createPermission)&&"Resource"!==y&&(0,b.jsx)(gt.A,{"aria-label":T("client.admin.entities.relationsView.relationLinkCreate"),to:P,onClick:k,children:bt||(bt=(0,b.jsx)(Ge.A,{icon:"plus"}))})]})]})}));var Bt,Ut,_t;function zt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Ht=function(e){var t=e.currentViewInfo,n=e.relations,r=e.relationsInfo,a=e.emitAction,i=e.isRightPaneCollapsed,c=e.toggleCollapse,u=e.selectedRelation,p=e.selectRelation,f=e.baseRoute,y=e.loadFavoriteRelations,m=e.entityName,v=(0,s.ok)(),h=(0,I.A)(v,1)[0].get("relation"),g=(0,d.tz)(),x=function(e){return g.formatMessage({id:e})},A=(0,o.useCallback)((function(){if((null==n?void 0:n.length)>0)if(h)p(n.find((function(e){return e.relationName===h})));else{var e=Qe[m];p(e?n.find((function(t){return t.relationName===e})):n[0])}}),[n,m,h,p]);if((0,o.useEffect)(A,[A]),(0,o.useEffect)((function(){u||A()}),[u,A]),(0,o.useEffect)((function(){m&&y(m)}),[m,y]),!n||0===n.length||!t)return null;var w,j,O=u?"Resource"===u.targetEntity?Ye:Xe:function(){return Bt||(Bt=(0,b.jsx)(b.Fragment,{}))},T=n.map((function(t){return(0,b.jsx)(qt,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zt(Object(n),!0).forEach((function(t){(0,l.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({relation:t,entityName:m},e),"relation-".concat(t.relationName))}));return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)(Pt,{isRightPaneCollapsed:i,children:[(0,b.jsx)(Rt,{children:(0,b.jsx)(Ct,{icon:"chevron-right",onClick:c})}),(0,b.jsx)(St,{"data-cy":"box-relation-boxes",count:n.length,children:T}),u&&(0,b.jsxs)(Dt,{"data-cy":"box-relation-preview",children:[(0,b.jsxs)(Lt,{children:[(0,b.jsx)(ye.Ay.H4,{children:u.relationDisplay.label}),(0,b.jsxs)("div",{children:[(0,b.jsx)(It,{"aria-label":x("client.admin.entities.relationsView.relationLinkView"),to:"../".concat(u.relationName),children:Ut||(Ut=(0,b.jsx)(Ge.A,{icon:"arrow-right"}))}),(w=u.relationName,(null===(j=r[w])||void 0===j?void 0:j.createPermission)&&"Resource"!==u.targetEntity&&(0,b.jsx)(It,{"aria-label":x("client.admin.entities.relationsView.relationLinkCreate"),to:"../".concat(u.relationName,"/create"),children:_t||(_t=(0,b.jsx)(Ge.A,{icon:"plus"}))}))]})]}),(0,b.jsx)(O,{selectedRelation:u,currentViewInfo:t,emitAction:a,sortable:!0,baseRoute:f})]})]}),(0,b.jsx)(Nt,{onClick:c,isRightPaneCollapsed:i,children:(0,b.jsx)(Ct,{icon:"chevron-left",isRightPaneCollapsed:i})})]})};const Qt=c().memo(Ht);var Wt={emitAction:function(e){return E.A.dispatchEmittedAction(e)},loadFavoriteRelations:function(e){return{type:Ue,payload:{entityName:e}}},selectRelation:i.DD},Zt=function(e,t){return 0===Object.keys(y.A.difference(e,t)).length};const Gt=(0,a.Ng)((function(e,t){var n=e.entities.path.currentViewInfos[t.location.pathname],r=p()(n,"model.name");return{currentViewInfo:n,relations:Ze(e,r),relationsInfo:e.entities.path.relationsInfo,selectedRelation:e.entities.path.selectedRelation,baseRoute:e.input.baseRoute,entityName:r}}),Wt)(c().memo(Qt,Zt));var Yt=n(37972);const $t=function(e){var t=e.relationViewCollapsed,n=e.saveUserPreferences,r=e.treeData,a=e.isTreeVisible,i=e.isCurrentEntityTreeEnabled,o=e.hasTreeEnabledRelation,c=e.rootEntityName,l=(0,s.zy)(),u=(0,Ne.e)(t,(function(e){n({"admin.detail.relationViewCollapsed":e})})),p=u.isCollapsed,d=u.toggleCollapse,f=(0,Re.l)().width,y=r&&a,m=(0,z.P9)(l.pathname,c)&&y,v=(i||o)&&y&&c||m;return(0,b.jsxs)(Yt.Zq,{isRightPaneCollapsed:p,children:[(0,b.jsx)(Yt.PE,{isRightPaneCollapsed:p,windowWidth:f,hasTree:v,children:(0,b.jsx)(k.A.ErrorBoundary,{children:(0,b.jsx)(Be,{location:l})})}),(0,b.jsx)(Yt.U7,{isRightPaneCollapsed:p,hasTree:v,children:(0,b.jsx)(k.A.ErrorBoundary,{children:(0,b.jsx)(Gt,{location:l,isRightPaneCollapsed:p,toggleCollapse:d})})})]})};var Xt=["ConnectedComponent"];function en(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function tn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?en(Object(n),!0).forEach((function(t){(0,l.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):en(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var nn={saveUserPreferences:N.bM},rn=(0,a.Ng)((function(e,t){var n,r,a,i,o=t.pathname,c=o?e.entities.path.currentViewInfos[o]:null,s=null==c||null===(n=c.model)||void 0===n?void 0:n.name,l=null===(r=e.entities.treeNavigation)||void 0===r?void 0:r.treeData,u=null===(a=e.entities.treeNavigation)||void 0===a?void 0:a.rootEntityName;return{relationViewCollapsed:p()(e.preferences.userPreferences,"admin.detail.relationViewCollapsed",!1),treeData:l,isTreeVisible:null===(i=e.entities.treeNavigation)||void 0===i?void 0:i.isVisible,isCurrentEntityTreeEnabled:!!s&&(0,Pe.uj)(e)(s),hasTreeEnabledRelation:!!u&&(0,Pe.x4)(e)(u,o),rootEntityName:u}}),nn)($t),an=function(e){var t=e.ConnectedComponent,n=(0,Ee.A)(e,Xt),r=(0,s.zy)();return(0,b.jsx)(t,tn(tn({},n),{},{pathname:r.pathname}))};const on=function(e){return(0,b.jsx)(an,tn(tn({},e),{},{ConnectedComponent:rn}))};var cn,sn,ln;const un=function(){var e=(0,s.zy)();return(0,b.jsx)(k.A.ErrorBoundary,{children:(0,b.jsxs)(s.BV,{children:[cn||(cn=(0,b.jsx)(s.qh,{exact:!0,path:"/",element:(0,b.jsx)(s.C5,{to:"detail",replace:!0})})),sn||(sn=(0,b.jsx)(s.qh,{path:"detail",element:(0,b.jsx)(on,{})})),(0,b.jsx)(s.qh,{path:"edit",element:(0,b.jsx)(Be,{location:e})}),(0,b.jsx)(s.qh,{path:"relations",element:(0,b.jsx)(Gt,{location:e})}),(0,b.jsx)(s.qh,{path:"action/:actionId",element:(0,b.jsx)(T,{location:e})}),ln||(ln=(0,b.jsx)(s.qh,{path:":relation/*",element:(0,b.jsx)(fn,{})}))]})})};var pn,dn;const fn=function(){var e=(0,s.zy)();return(0,b.jsx)(k.A.ErrorBoundary,{children:(0,b.jsxs)(s.BV,{children:[pn||(pn=(0,b.jsx)(s.qh,{exact:!0,path:"/",element:(0,b.jsx)(s.C5,{to:"list",replace:!0})})),(0,b.jsx)(s.qh,{path:"action/:id",element:(0,b.jsx)(T,{location:e})}),(0,b.jsx)(s.qh,{path:"list",element:(0,b.jsx)(je,{location:e})}),(0,b.jsx)(s.qh,{path:"create",element:(0,b.jsx)(re,{location:e})}),dn||(dn=(0,b.jsx)(s.qh,{path:":key/*",element:(0,b.jsx)(un,{})}))]})})};var yn=n(56660);const mn=function(e){var t=e.currentViewInfo,n="client.admin.entity.errorView.",r="detail"===t.type?"detailTitle":"defaultTitle",a="listDescription";return"detail"===t.type?a="detailDescription":"list"===t.type&&t.error.relationName&&(a="relationDescription"),(0,b.jsx)(yn.A,{title:(0,b.jsx)(d.sA,{id:n+r}),message:(0,b.jsx)(d.sA,{id:n+a,values:t.error})})};const vn=(0,a.Ng)((function(e,t){return{currentViewInfo:e.entities.path.currentViewInfos[t.location.pathname]}}))(mn);var hn,bn,gn,xn=Se.Ay.div.withConfig({displayName:"StyledContent"})(hn||(hn=(0,De.A)(["\n overflow: hidden;\n flex: 1;\n"])));const An=function(e){var t=e.loadCurrentRoute,n=e.currentViewInfo,r=(0,s.zy)(),a=r.pathname,i=r.state;return(0,o.useEffect)((function(){t(a,i)}),[a,i,t]),null!=n&&n.error?(0,b.jsx)(vn,{location:r}):(0,b.jsx)(xn,{children:(0,b.jsxs)(s.BV,{children:[(0,b.jsx)(s.qh,{path:"action/:actionId",element:(0,b.jsx)(T,{location:r})}),bn||(bn=(0,b.jsx)(s.qh,{path:":entity/*",element:(0,b.jsx)(fn,{})})),gn||(gn=(0,b.jsx)(s.qh,{exact:!0,path:"/",element:(0,b.jsx)(s.C5,{to:"/dashboard",replace:!0})}))]})})};var wn={loadCurrentRoute:i.j_};const jn=(0,a.Ng)((function(e,t){return{currentViewInfo:e.entities.path.currentViewInfos[t.location.pathname]}}),wn)(An);var On=n(69917),Tn=n(98671);function kn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function En(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kn(Object(n),!0).forEach((function(t){(0,l.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Pn=(0,l.A)((0,l.A)((0,l.A)((0,l.A)({},C.J9,(function(e,t){var n=t.payload,r=n.entityName,a=n.entityTemplates;return En(En({},e),{},{entityTemplates:En(En({},e.entityTemplates),{},(0,l.A)({},r,a))})})),C.Hw,Tn.A.singleTransferReducer("activeEntityTemplate")),C.AS,Tn.A.singleTransferReducer("activeTemplateDefaultValues")),C.D4,Tn.A.singleTransferReducer("entity")),Nn={entityTemplates:{},activeEntityTemplate:null,activeTemplateDefaultValues:null,entity:null};const Rn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Nn,t=arguments.length>1?arguments[1]:void 0,n=Pn[t.type];return n?n(e,t):e};var Cn,Dn,Sn,In=n(80445),Ln=n(6192),Vn=n(73082),Jn=function(e){return Object.keys(e.paths).map((function(t){return{id:t,value:function(e){var t=e.type,n=e.value;return"entity"===t?n.key:"entity-list"===t&&Array.isArray(n)?n.map((function(e){return e.key})):n}(e.paths[t])}}))},Fn=function(e){return e.split("/").slice(-1)[0]};function Kn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Mn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kn(Object(n),!0).forEach((function(t){(0,l.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var qn=pe().mark(Hn),Bn=pe().mark(Gn),Un=pe().mark(Xn),_n=function(e){return e.entities.entityTemplate.entityTemplates},zn=function(e){return e.app.messages};function Hn(){return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,On.Q7)([(0,On.p8)(C.dD,Qn),(0,On.p8)(C.Hw,Wn),(0,On.p8)(C.p6,Zn),(0,On.p8)(C.w4,Gn),(0,On.p8)(C.W4,Yn),(0,On.p8)(C.V7,$n),(0,On.p8)(C.bV,er)]);case 1:case"end":return e.stop()}}),qn)}function Qn(e){var t=e.payload;return pe().mark((function e(){var n,r;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.entityName,e.next=1,(0,On.yJ)(C.rk(n));case 1:return e.next=2,(0,On.T1)(de.A.fetchAllEntities,"Entity_template",{where:'base_model=="'.concat(n,'" and (relUser.pk==:currentUser or not exists(relUser))'),sorting:[{field:"sorting",order:"asc"},{field:"label",order:"asc"}],paths:["label","description","base_model","unique_id"]},{method:"GET"});case 2:return r=e.sent,e.next=3,(0,On.yJ)(C.rk(n,r));case 3:case"end":return e.stop()}}),e)}))()}function Wn(e){var t=e.payload.activeEntityTemplate;return pe().mark((function e(){var n,r;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,On.yJ)(C.Kg(null));case 1:if(!t){e.next=2;break}return n=t.paths.base_model.value,r=t.paths.unique_id.value,e.next=2,(0,On.yJ)(C.hT(n,r));case 2:case"end":return e.stop()}}),e)}))()}function Zn(e){var t=e.payload;return pe().mark((function e(){var n,r,a,i,o,c;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.entityName,r=t.templateId,e.prev=1,e.next=2,(0,On.T1)(de.A.requestSaga,"entities/2.0/templates/".concat(n,"/").concat(encodeURIComponent(r)),{method:"GET"});case 2:return a=e.sent,i=a.body,o=Jn(i),e.next=3,(0,On.yJ)(C.Kg(o));case 3:e.next=6;break;case 4:return e.prev=4,c=e.catch(1),Vn.A.logError("Failed to fetch template values",c),e.next=5,(0,On.yJ)(Ln.A.toaster({type:"error",title:"client.admin.entities.action.chooseEntityTemplate.label",body:"client.admin.entities.action.chooseEntityTemplate.error"}));case 5:return e.next=6,(0,On.T1)(Gn);case 6:case"end":return e.stop()}}),e,null,[[1,4]])}))()}function Gn(){return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,On.yJ)(C.GY(null));case 1:return e.next=2,(0,On.yJ)(C.W_(null));case 2:case"end":return e.stop()}}),Bn)}function Yn(e){var t=e.payload;return pe().mark((function e(){var n,r,a,i,o,c,s,l,u,p,d,f,y,m;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.entityName,r=t.label,a=t.entity,i=t.onSuccess,o=t.onError,e.next=1,(0,On.Lt)(zn);case 1:return c=e.sent,e.prev=2,s={method:"POST",body:{label:r,entity:a}},e.next=3,(0,On.T1)(de.A.requestSaga,"entities/2.0/templates/".concat(n),s);case 3:if(l=e.sent,u=l.headers.get("location"),Yn){e.next=5;break}return e.next=4,(0,On.T1)(o,{title:c["client.admin.entities.action.createEntityTemplate.label"],message:c["client.admin.entities.action.createEntityTemplate.error"]});case 4:return e.abrupt("return");case 5:return e.next=6,(0,On.yJ)(C.Fv(n));case 6:return e.next=7,(0,On.s)(C.J9);case 7:return e.next=8,(0,On.s)(C.J9);case 8:return e.next=9,(0,On.Lt)(_n);case 9:return p=e.sent,d=p[n],f=Fn(u),y=d.find((function(e){return e.key===f})),e.next=10,(0,On.yJ)(C.GY(y));case 10:return e.next=11,(0,On.T1)(i,{title:c["client.admin.entities.action.createEntityTemplate.label"],message:c["client.admin.entities.action.createEntityTemplate.success"]});case 11:e.next=13;break;case 12:return e.prev=12,m=e.catch(2),Vn.A.logError("Failed to create template",m),e.next=13,(0,On.T1)(o,{title:c["client.admin.entities.action.createEntityTemplate.label"],message:c["client.admin.entities.action.createEntityTemplate.error"]});case 13:case"end":return e.stop()}}),e,null,[[2,12]])}))()}function $n(e){var t=e.payload;return pe().mark((function e(){var n,r,a,i;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.entityName,r=t.templateKey,a=t.navigationStrategy,e.next=1,(0,On.T1)(In.Ix);case 1:return i=e.sent,e.next=2,(0,On.yJ)(Ln.A.modal("entity-template-delete","client.admin.entities.action.deleteEntityTemplate.title",null,(function(e){var t=e.close;return(0,b.jsx)(h.A,{appId:"delete",selection:{entityName:"Entity_template",ids:[r],type:"ID"},navigationStrategy:a,onSuccess:function(){i.put(!0),t()},onCancel:function(){i.put(!1),t()}})}),!0));case 2:return e.next=3,(0,On.s)(i);case 3:if(!e.sent){e.next=5;break}return e.next=4,(0,On.yJ)(C.Fv(n));case 4:return e.next=5,(0,On.T1)(Gn);case 5:case"end":return e.stop()}}),e)}))()}function Xn(e){var t,n,r;return pe().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=1,(0,On.T1)(In.Ix);case 1:return t=a.sent,n=function(){return t.put(!0)},r=function(){return t.put(!1)},a.next=2,(0,On.yJ)(Ln.A.confirm(Cn||(Cn=(0,b.jsx)(d.sA,{id:"client.admin.entities.action.updateEntityTemplate.confirmTitle"})),(0,b.jsx)(d.sA,{id:"client.admin.entities.action.updateEntityTemplate.question",values:{label:e}}),Dn||(Dn=(0,b.jsx)(d.sA,{id:"client.common.ok"})),Sn||(Sn=(0,b.jsx)(d.sA,{id:"client.common.cancel"})),n,r));case 2:return a.next=3,(0,On.s)(t);case 3:return a.abrupt("return",a.sent);case 4:case"end":return a.stop()}}),Un)}function er(e){var t=e.payload;return pe().mark((function e(){var n,r,a,i,o,c,s,l,u,p;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.activeEntityTemplate,r=t.entity,a=t.onSuccess,i=t.onError,e.next=1,(0,On.Lt)(zn);case 1:if(o=e.sent,!n){e.next=10;break}return c=n.paths.base_model.value,s=n.paths.unique_id.value,l=n.paths.label.value,e.next=2,(0,On.T1)(Xn,l);case 2:if(!e.sent){e.next=9;break}return e.prev=3,u={method:"PATCH",body:Mn({},r)},e.next=4,(0,On.T1)(de.A.requestSaga,"entities/2.0/templates/".concat(c,"/").concat(s),u);case 4:if(200!==e.sent.status){e.next=6;break}return e.next=5,(0,On.T1)(a,{title:o["client.admin.entities.action.updateEntityTemplate.label"],message:o["client.admin.entities.action.updateEntityTemplate.success"]});case 5:e.next=7;break;case 6:return e.next=7,(0,On.T1)(i,{title:o["client.admin.entities.action.updateEntityTemplate.label"],message:o["client.admin.entities.action.updateEntityTemplate.error"]});case 7:e.next=9;break;case 8:return e.prev=8,p=e.catch(3),Vn.A.logError("Failed to update template values",p),e.next=9,(0,On.T1)(i,{title:o["client.admin.entities.action.updateEntityTemplate.label"],message:o["client.admin.entities.action.updateEntityTemplate.error"]});case 9:e.next=11;break;case 10:return e.next=11,(0,On.T1)(i,{title:o["client.admin.entities.action.updateEntityTemplate.label"],message:o["client.admin.entities.action.updateEntityTemplate.noActiveTemplateError"]});case 11:case"end":return e.stop()}}),e,null,[[3,8]])}))()}function tr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function nr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tr(Object(n),!0).forEach((function(t){(0,l.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var rr=(0,l.A)({},_e,(function(e,t){var n=t.payload,r=n.entityName,a=n.favoriteRelations;return nr(nr({},e),{},(0,l.A)({},r,a))})),ar={};var ir=n(82284),or=pe().mark(dr);function cr(e){var t=function(e,t){if("object"!=(0,ir.A)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=(0,ir.A)(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==(0,ir.A)(t)?t:t+""}function sr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function lr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sr(Object(n),!0).forEach((function(t){(0,l.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ur(e){var t=e.payload.entityName;return pe().mark((function e(){var n;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=1,(0,On.T1)(de.A.fetchUserPreferences,"favoriteRelations.".concat(t,".*"));case 1:return n=e.sent,e.next=2,(0,On.yJ)(He(t,n));case 2:e.next=5;break;case 3:return e.prev=3,e.catch(0),e.next=4,(0,On.yJ)(Ln.A.toaster({type:"error",title:"client.admin.entities.action.favoriteRelations.error.load.header",body:"client.admin.entities.action.favoriteRelations.error.load.body"}));case 4:return e.next=5,(0,On.yJ)(He(t,{}));case 5:case"end":return e.stop()}}),e,null,[[0,3]])}))()}function pr(e){var t=e.payload,n=t.entityName,r=t.relationName,a=t.isFavorite;return pe().mark((function e(){var t,i,o,c,s,u;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=1,(0,On.Lt)((function(e){return We(e,n)}));case 1:if(t=e.sent,o="favoriteRelations.".concat(n,".").concat(r),!a){e.next=3;break}return c=Date.now(),i=lr(lr({},t),{},(0,l.A)({},o,c)),s=(0,l.A)({},o,c),e.next=2,(0,On.T1)(de.A.savePreferences,s,"/nice2/ui/settings/favoriteRelations");case 2:e.next=4;break;case 3:return t[o],u=(0,Ee.A)(t,[o].map(cr)),i=u,e.next=4,(0,On.T1)(de.A.deleteUserPreferences,o);case 4:return e.next=5,(0,On.yJ)(He(n,i));case 5:e.next=7;break;case 6:return e.prev=6,e.catch(0),e.next=7,(0,On.yJ)(Ln.A.toaster({type:"error",title:"client.admin.entities.action.favoriteRelations.error.toggle.header",body:"client.admin.entities.action.favoriteRelations.error.toggle.body"}));case 7:case"end":return e.stop()}}),e,null,[[0,6]])}))()}function dr(){return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,On.Q7)([(0,On.p8)(Ue,ur),(0,On.p8)(ze,pr)]);case 1:case"end":return e.stop()}}),or)}var fr=pe().mark(mr),yr=pe().mark(hr);function mr(){return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,On.Q7)([(0,On.jP)(ae,vr)]);case 1:case"end":return e.stop()}}),fr)}function vr(e){var t=e.payload,n=t.modelName,r=t.entityId;return pe().mark((function e(){return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,On.Zy)(hr,n,r);case 1:case"end":return e.stop()}}),e)}))()}function hr(e,t){return pe().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=1,(0,On.T1)(de.A.requestSaga,"/client/interaction/save",{method:"POST",body:{type:t?"DETAIL":"LIST",context:{modelName:e,entityId:t}}});case 1:case"end":return n.stop()}}),yr)}function br(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?br(Object(n),!0).forEach((function(t){(0,l.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):br(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var xr=(0,l.A)((0,l.A)((0,l.A)((0,l.A)((0,l.A)((0,l.A)((0,l.A)((0,l.A)((0,l.A)({},i.UP,(function(e){return gr(gr({},e),{},{currentViewInfos:{},breadcrumbsInfo:[]})})),i.iq,(function(e,t){var n=t.payload,r=n.location,a=n.currentViewInfo;return gr(gr({},e),{},{currentViewInfos:gr(gr({},e.currentViewInfos),{},(0,l.A)({},r,gr(gr({},e.currentViewInfos[r]),a)))})})),i.f2,Tn.A.singleTransferReducer("breadcrumbsInfo")),i.EC,(function(e,t){var n=t.payload,r=n.path,a=n.breadcrumbsInfo;return gr(gr({},e),{},{breadcrumbsInfo:e.breadcrumbsInfo.map((function(e){return e.path===r?gr(gr({},e),a):e}))})})),i.VQ,Tn.A.singleTransferReducer("relations")),i.yX,Tn.A.singleTransferReducer("relationsInfo")),i.An,Tn.A.singleTransferReducer("relationsInfoEntity")),i.iL,Tn.A.singleTransferReducer("currentViewTitle")),i.gU,Tn.A.singleTransferReducer("selectedRelation")),Ar={currentViewInfos:{},breadcrumbsInfo:[],relations:null,relationsInfo:{},relationsInfoEntity:null,selectedRelation:null};const wr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ar,t=arguments.length>1?arguments[1]:void 0,n=xr[t.type];return n?n(e,t):e};var jr=n(90179),Or=n.n(jr),Tr=n(44383),kr=n.n(Tr),Er=n(71086),Pr=n.n(Er),Nr=n(25544);function Rr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Cr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rr(Object(n),!0).forEach((function(t){(0,l.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Dr=pe().mark(qr),Sr=pe().mark(Ur),Ir=pe().mark(zr),Lr=pe().mark(Zr),Vr=pe().mark($r),Jr=pe().mark(Xr),Fr=pe().mark(ea),Kr=["entity-create-event","entity-delete-event"],Mr=function(e){return e.entities.path};function qr(){return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,On.Q7)([(0,On.p8)(i.vb,Br),(0,On.p8)(i.Ss,Gr),(0,On.p8)(i.BN,Yr),(0,On.p8)(Nr.A.REMOTE_EVENT,ta)]);case 1:case"end":return e.stop()}}),Dr)}function Br(e){var t=e.payload,n=t.pathname,r=t.state;return pe().mark((function e(){var t,a;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,On.T1)(f.A.loadRouteInfo,n,r);case 1:if(t=e.sent,!n.startsWith("/e/")){e.next=2;break}return e.next=2,(0,On.yJ)((0,S.$d)());case 2:if(!(t.length>0)){e.next=6;break}return e.next=3,(0,On.T1)(Ur,n,t);case 3:if("detail"!==(a=e.sent).type||a.error){e.next=4;break}return e.next=4,(0,On.T1)(Zr,a.model,a.key);case 4:return e.next=5,(0,On.T1)(zr,t);case 5:return e.next=6,(0,On.T1)(ce.A.clearPersistedViews,a.level+1);case 6:case"end":return e.stop()}}),e)}))()}function Ur(e,t){var n;return pe().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=1,(0,On.T1)(Qr,e,t);case 1:return n=r.sent,r.next=2,(0,On.yJ)(i.he(e,n));case 2:return r.abrupt("return",n);case 3:case"end":return r.stop()}}),Sr)}function _r(e){var t=e.map((function(e){return Cr(Cr({},e),{},{path:e.path?"e/".concat(e.path):""})}));return sessionStorage.setItem("entityModelBreadcrumbsInfo",JSON.stringify(t)),t}function zr(e){var t;return pe().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=1,(0,On.T1)(Wr,e);case 1:return t=n.sent,n.next=2,(0,On.yJ)(i.fQ(t));case 2:return n.next=3,(0,On.T1)(_r,t);case 3:return n.abrupt("return",t);case 4:case"end":return n.stop()}}),Ir)}var Hr,Qr=function(e,t){var n=t[t.length-1],r=n.parent;return Cr(Cr({},Or()(n,["parent"])),{},{pathname:e,level:t.length-1},r&&n.relationName&&{parentKey:r.key,reverseRelation:r.model.paths[n.relationName].reverseRelationName,parentModel:r.model})},Wr=function(e){var t="";return e.map((function(e){return e.error?{type:"error"}:"action"===e.type?null:(t=(t?t+"/":"")+(e.key?e.key:e.relationName||e.model.name),{type:e.type,display:e.display||e.model.label,path:t+"/"+e.type})})).filter((function(e){return e}))};function Zr(e,t){var n,r;return pe().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return n=Pr()(e.paths,(function(e){return e.relationDisplay&&e.relationDisplay.show})),r=Object.keys(n).map((function(e){return kr()(n[e],["relationName","reverseRelationName","targetEntity","relationDisplay.label","relationDisplay.order"])})).sort((function(e,t){return e.relationDisplay.order>t.relationDisplay.order?1:-1})),a.next=1,(0,On.yJ)(i.DD(null));case 1:return a.next=2,(0,On.yJ)(i.Ux(r));case 2:return a.next=3,(0,On.T1)(ea,e.name,t);case 3:case"end":return a.stop()}}),Lr)}function Gr(e){var t=e.payload.location;return pe().mark((function e(){var n,r,a,o;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.pathname,e.next=1,(0,On.Lt)(Mr);case 1:if(r=e.sent,a=r.currentViewInfos,"detail"!==(o=a[n]).type||o.error){e.next=3;break}return e.next=2,(0,On.cH)(ea,o.model.name,o.key);case 2:return e.next=3,(0,On.yJ)(i.DD(null));case 3:case"end":return e.stop()}}),e)}))()}function Yr(e){var t=e.payload.location;return pe().mark((function e(){var n,r,a,o,c,s,l,u;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.pathname,e.next=1,(0,On.T1)(f.A.getPathInfo,n);case 1:if(null==(r=e.sent)||!r.entity||null==r||!r.key){e.next=10;break}return e.prev=2,e.next=3,(0,On.T1)(Xr,r);case 3:if(!(a=e.sent)){e.next=8;break}return o=a.entityName,c=a.key,e.next=4,(0,On.T1)(de.A.invalidateDisplay,o,c);case 4:return e.next=5,(0,On.T1)(de.A.fetchDisplay,o,c);case 5:return s=e.sent,e.next=6,(0,On.yJ)(i.he(n,{display:s}));case 6:return e.next=7,(0,On.T1)($r,n);case 7:return l=e.sent,e.next=8,(0,On.yJ)(i.oi(l,{display:s}));case 8:e.next=10;break;case 9:e.prev=9,u=e.catch(2),Vn.A.logError("breadcrumbs invalidation failed",u);case 10:case"end":return e.stop()}}),e,null,[[2,9]])}))()}function $r(e){var t;return pe().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=1,(0,On.T1)(f.A.getPathInfo,e);case 1:if(null!==(t=n.sent)&&t.entity){n.next=2;break}return n.abrupt("return","");case 2:return n.abrupt("return",[t.entity,t.key].concat((0,H.A)(t.relation||[]),[t.view]).filter(Boolean).join("/"));case 3:case"end":return n.stop()}}),Vr)}function Xr(e){var t,n,r,a,i,o,c,s,l;return pe().wrap((function(u){for(;;)switch(u.prev=u.next){case 0:if(e&&e.entity&&e.key&&"action"!==e.view){u.next=1;break}return u.abrupt("return",null);case 1:return u.next=2,(0,On.T1)(de.A.fetchModel,e.entity);case 2:if(t=u.sent,e.relation){u.next=3;break}return u.abrupt("return",{entityName:t.name,key:e.key});case 3:if(!((n=e.relation||[]).length<2)){u.next=4;break}return u.abrupt("return",null);case 4:r=t,a=null,i=0;case 5:if(!(i<n.length)){u.next=9;break}if(o=[n[i],n[i+1]],c=o[0],s=o[1],(l=r.paths[c])&&s){u.next=6;break}return u.abrupt("return",null);case 6:return u.next=7,(0,On.T1)(de.A.fetchModel,l.targetEntity);case 7:r=u.sent,a={entityName:r.name,key:s};case 8:i+=2,u.next=5;break;case 9:return u.abrupt("return",a);case 10:case"end":return u.stop()}}),Jr)}function ea(e,t){var n,r,a;return pe().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=1,(0,On.yJ)(i.F1(e,t));case 1:return n="client/entities/".concat(e,"/").concat(t,"/relations"),o.next=2,(0,On.T1)(de.A.requestSaga,n);case 2:return r=o.sent,a=r.body.relations,o.next=3,(0,On.yJ)(i.aY(a));case 3:case"end":return o.stop()}}),Fr)}function ta(e){var t=e.payload.event;return pe().mark((function e(n){var r,a,i,o;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Kr.includes(null==t?void 0:t.type)){e.next=1;break}return e.abrupt("return");case 1:return e.next=2,(0,On.Lt)(Mr);case 2:if(r=e.sent,a=r.relationsInfoEntity,i=r.relations,null!=a&&a.model&&null!=a&&a.key){e.next=3;break}return e.abrupt("return");case 3:if(o=(i||[]).map((function(e){return e.targetEntity})),null===(n=t.payload)||void 0===n||null===(n=n.entities)||void 0===n?void 0:n.some((function(e){return o.includes(e.entityName)}))){e.next=4;break}return e.abrupt("return");case 4:return e.next=5,(0,On.T1)(ea,a.model,a.key);case 5:case"end":return e.stop()}}),e)}))()}function na(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ra(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?na(Object(n),!0).forEach((function(t){(0,l.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):na(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var aa={treeStructureConfigs:[],treeData:null,isLoading:!1,isVisible:!1,isCollapsed:!1,rootEntityKey:null,rootEntityName:null,activeSidepanel:"template",skeletonNode:null,treeCreateMode:null,expandedKeys:[],treeLoadedForEntityKey:null,lastTreeFetchRootCount:null},ia=(Hr={},(0,l.A)((0,l.A)((0,l.A)((0,l.A)((0,l.A)((0,l.A)((0,l.A)((0,l.A)((0,l.A)((0,l.A)(Hr,S.ul,Tn.A.singleTransferReducer("treeStructureConfigs")),S.Dr,Tn.A.singleTransferReducer("treeData")),S.oB,Tn.A.singleTransferReducer("isLoading")),S.hq,Tn.A.singleTransferReducer("isVisible")),S.EA,Tn.A.singleTransferReducer("isCollapsed")),S.kq,Tn.A.singleTransferReducer("activeSidepanel")),S.AD,Tn.A.singleTransferReducer("skeletonNode")),S.bl,Tn.A.singleTransferReducer("treeCreateMode")),S.az,Tn.A.singleTransferReducer("expandedKeys")),S.Wz,Tn.A.singleTransferReducer("treeLoadedForEntityKey")),(0,l.A)((0,l.A)((0,l.A)(Hr,S.Z7,Tn.A.singleTransferReducer("lastTreeFetchRootCount")),S.Yp,(function(e){return ra(ra({},e),{},{treeData:null,isLoading:!1,rootEntityKey:null,rootEntityName:null,expandedKeys:[],treeLoadedForEntityKey:null,lastTreeFetchRootCount:null})})),S.at,(function(e,t){var n=t.payload,r=n.rootEntityKey,a=n.rootEntityName;return ra(ra({},e),{},{rootEntityKey:r,rootEntityName:a})})));var oa=n(14369),ca=pe().mark(Aa),sa=pe().mark(wa),la=pe().mark(ja),ua=pe().mark(Na),pa=pe().mark(Ra),da=pe().mark(Ca),fa=pe().mark(Da),ya=pe().mark(Sa),ma=["entity-create-event","entity-update-event","entity-delete-event"],va=function(e){var t;return null===(t=e.entities)||void 0===t||null===(t=t.treeNavigation)||void 0===t?void 0:t.treeData},ha=function(e){var t;return null===(t=e.entities)||void 0===t||null===(t=t.treeNavigation)||void 0===t?void 0:t.rootEntityKey},ba=function(e){var t;return null===(t=e.entities)||void 0===t||null===(t=t.treeNavigation)||void 0===t?void 0:t.rootEntityName},ga=function(e){var t;return null===(t=e.entities)||void 0===t||null===(t=t.treeNavigation)||void 0===t?void 0:t.treeLoadedForEntityKey},xa=function(e){var t,n;return null!==(t=null===(n=e.entities)||void 0===n||null===(n=n.treeNavigation)||void 0===n?void 0:n.expandedKeys)&&void 0!==t?t:[]};function Aa(){return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,On.Q7)([(0,On.p8)(S.h$,Ia),(0,On.p8)(S.IR,wa),(0,On.p8)(S.RU,La),(0,On.p8)(S.Hx,Va),(0,On.p8)(Nr.A.REMOTE_EVENT,Ja)]);case 1:case"end":return e.stop()}}),ca)}function wa(){var e,t,n,r,a;return pe().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=1,(0,On.Lt)(Pe.UN);case 1:if(!(i.sent.length>0)){i.next=2;break}return i.abrupt("return");case 2:return i.prev=2,i.next=3,(0,On.T1)(de.A.requestSaga,"client/treeStructureConfigs",{method:"GET"});case 3:return n=i.sent,r=null!==(e=null===(t=n.body)||void 0===t?void 0:t.configs)&&void 0!==e?e:[],i.next=4,(0,On.yJ)(S.P4(r));case 4:i.next=6;break;case 5:return i.prev=5,a=i.catch(2),Vn.A.logError("Error loading tree structure configs",a),i.next=6,(0,On.yJ)(S.P4([]));case 6:case"end":return i.stop()}}),sa,null,[[2,5]])}function ja(){return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,On.Lt)(Pe.UN);case 1:if(0!==e.sent.length){e.next=2;break}return e.next=2,(0,On.T1)(wa);case 2:case"end":return e.stop()}}),la)}var Oa=function(e,t){var n=function(e){var r;return{key:e.key,display:t[e.key]||e.key,level:e.level,children:null===(r=e.children)||void 0===r?void 0:r.map(n)}};return n(e)},Ta=function(e){var t,n=[e.key];return null===(t=e.children)||void 0===t||t.forEach((function(e){return n.push.apply(n,(0,H.A)(Ta(e)))})),n},ka=function(e,t){var n,r;return!!e&&(e.key===t||null!==(n=null===(r=e.children)||void 0===r?void 0:r.some((function(e){return ka(e,t)})))&&void 0!==n&&n)},Ea=function(e,t){var n;return null!==(n=null==e?void 0:e.some((function(e){return ka(e,t)})))&&void 0!==n&&n},Pa=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return t&&!n.includes(t)?t:e.map((function(e){return e.key})).find((function(e){return!n.includes(e)}))};function Na(){return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,On.yJ)(S.C6(null));case 1:return e.next=2,(0,On.yJ)(S.i8(null));case 2:case"end":return e.stop()}}),ua)}function Ra(){return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,On.yJ)(S.DK(null));case 1:return e.next=2,(0,On.yJ)(S.Lw(!1));case 2:return e.next=3,(0,On.yJ)(S.QD(null,null));case 3:return e.next=4,(0,On.yJ)(S.r1(!1));case 4:return e.next=5,(0,On.yJ)(S.xU(null));case 5:return e.next=6,(0,On.yJ)(S.hg(null));case 6:case"end":return e.stop()}}),pa)}function Ca(){var e,t,n;return pe().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=1,(0,On.Lt)(ba);case 1:return e=r.sent,r.next=2,(0,On.Lt)(ha);case 2:return t=r.sent,r.next=3,(0,On.Lt)(va);case 3:if(n=r.sent,e&&t&&n){r.next=4;break}return r.abrupt("return",null);case 4:return r.abrupt("return",{rootEntityName:e,rootEntityKey:t,currentTreeData:n});case 5:case"end":return r.stop()}}),da)}function Da(e,t){return pe().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(t){n.next=2;break}return n.next=1,(0,On.T1)(Ra);case 1:return n.abrupt("return");case 2:return n.next=3,(0,On.T1)(Ia,{type:S.h$,payload:{entityName:e,entityKey:t,forceRefresh:!0}});case 3:case"end":return n.stop()}}),fa)}function Sa(e){var t,n,r,a;return pe().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(e){i.next=1;break}return i.abrupt("return",!1);case 1:if(n=null===(t=f.A.getPathInfo(e))||void 0===t?void 0:t.entity){i.next=2;break}return i.abrupt("return",!1);case 2:return i.next=3,(0,On.Lt)(Pe.Tw,n);case 3:if(r=i.sent,(a=(0,z.mQ)(e,n))&&(0,oa.u)(e,null==r?void 0:r.treeEnabledRelations)){i.next=4;break}return i.abrupt("return",!1);case 4:return i.next=5,(0,On.T1)(Ia,S.nP(n,a));case 5:return i.abrupt("return",!0);case 6:case"end":return i.stop()}}),ya)}function Ia(e){var t=e.payload,n=t.entityName,r=t.entityKey,a=t.forceRefresh,i=void 0!==a&&a,o=t.pathname;return pe().mark((function e(){var t,a,c,s,u,p,d,f,y,m,v,h,b,g,x,A,w,j,O;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,On.T1)(ja);case 1:return e.next=2,(0,On.Lt)(va);case 2:return t=e.sent,e.next=3,(0,On.Lt)(ha);case 3:return a=e.sent,e.next=4,(0,On.Lt)(ga);case 4:return c=e.sent,e.next=5,(0,On.Lt)(Pe.Tw,n);case 5:if(s=e.sent){e.next=10;break}if(!(j=!t)){e.next=7;break}return e.next=6,(0,On.T1)(Sa,o);case 6:j=e.sent;case 7:if(!j){e.next=8;break}return e.abrupt("return");case 8:return e.next=9,(0,On.yJ)(S.Lw(null!=t&&null!=a));case 9:return e.abrupt("return");case 10:if(i||!t||!a||c!==r){e.next=12;break}return e.next=11,(0,On.yJ)(S.Lw(!0));case 11:return e.abrupt("return");case 12:if(e.prev=12,t){e.next=13;break}return e.next=13,(0,On.yJ)(S.r1(!0));case 13:return u=s.treeEndpoint.replace("{key}",r),e.next=14,(0,On.T1)(de.A.requestSaga,u,{method:"GET"});case 14:if(p=e.sent,T=p.body,k=void 0,0!==(d=T?"object"===(0,ir.A)(T)&&"trees"in T&&Array.isArray(T.trees)?null!==(k=T.trees)&&void 0!==k?k:[]:[T]:[]).length){e.next=16;break}return e.next=15,(0,On.T1)(Ra);case 15:return e.abrupt("return");case 16:if(f=d.length>1,y=null!=t&&1===t.length,!(!i&&!f&&y&&Ea(t,r))){e.next=19;break}return e.next=17,(0,On.yJ)(S.xU(r));case 17:return e.next=18,(0,On.yJ)(S.Lw(!0));case 18:return e.abrupt("return");case 19:if(!t){e.next=20;break}return e.next=20,(0,On.yJ)(S.r1(!0));case 20:return m=d.some((function(e){return e.children&&e.children.length>0})),v=d.flatMap((function(e){return Ta(e)})),e.next=21,(0,On.T1)(de.A.fetchDisplays,(0,l.A)({},n,v));case 21:if(h=e.sent,b=(0,z.CB)(d.map((function(e){return Oa(e,h[n]||{})})),r),g=(0,oa.B)(b),x=g,!i||!t){e.next=23;break}return e.next=22,(0,On.Lt)(xa);case 22:A=e.sent,w=(0,oa.B)(t),x=g.filter((function(e){return A.includes(e)||!w.includes(e)}));case 23:return e.next=24,(0,On.yJ)(S.QD(b[0].key,n));case 24:return e.next=25,(0,On.yJ)(S.DK(b));case 25:return e.next=26,(0,On.yJ)(S.xU(r));case 26:return e.next=27,(0,On.yJ)(S.hg(d.length));case 27:return e.next=28,(0,On.yJ)(S.wA(x));case 28:return e.next=29,(0,On.yJ)(S.Lw(!0));case 29:return e.next=30,(0,On.yJ)(S.Zr(!m));case 30:return e.next=31,(0,On.yJ)(S.r1(!1));case 31:e.next=33;break;case 32:return e.prev=32,O=e.catch(12),Vn.A.logError("Error loading tree data",O),e.next=33,(0,On.T1)(Ra);case 33:case"end":return e.stop()}var T,k}),e,null,[[12,32]])}))()}function La(e){var t=e.payload,n=t.entityName,r=t.newEntityKey,a=t.parentKey,i=t.onSuccess;return pe().mark((function e(){var t,o;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,On.T1)(ja);case 1:return e.next=2,(0,On.Lt)(Pe.Tw,n);case 2:if(t=e.sent){e.next=4;break}return e.next=3,(0,On.T1)(Na);case 3:return e.abrupt("return");case 4:return e.prev=4,e.next=5,(0,On.T1)(de.A.requestSaga,"entities/2.0/".concat(t.relationshipModel),{method:"POST",body:{model:t.relationshipModel,paths:(0,l.A)((0,l.A)({},t.relationshipChildField,{key:r}),t.relationshipParentField,{key:a})}});case 5:return e.next=6,(0,On.yJ)(Ln.A.toaster({type:"success",title:t.nodeCreatedTranslationKey}));case 6:return e.next=7,(0,On.T1)(Na);case 7:return e.next=8,(0,On.yJ)(S.DK(null));case 8:return e.next=9,(0,On.yJ)(S.xU(null));case 9:return e.next=10,(0,On.yJ)(S.hg(null));case 10:return e.next=11,(0,On.yJ)(S.nP(n,r));case 11:if(!i){e.next=12;break}return e.next=12,(0,On.T1)(i);case 12:e.next=14;break;case 13:return e.prev=13,o=e.catch(4),Vn.A.logError("Error creating tree relationship",o),e.next=14,(0,On.T1)(Na);case 14:case"end":return e.stop()}}),e,null,[[4,13]])}))()}function Va(e){var t=e.payload,n=t.mode,r=t.entityName,a=t.entityKey,i=t.location;return pe().mark((function e(){var t,o,c,s,l,u,p,d,y,m,v,h,b;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("create"!==n){e.next=8;break}return e.next=1,(0,On.Lt)(ba);case 1:return c=e.sent,e.next=2,(0,On.Lt)(ha);case 2:if(s=e.sent,c&&s){e.next=3;break}return e.abrupt("return");case 3:return e.next=4,(0,On.Lt)(Pe.Tw,c);case 4:if(l=e.sent,(u=null===(t=f.A.getPathInfo(null==i?void 0:i.pathname))||void 0===t||null===(t=t.relation)||void 0===t?void 0:t[0])&&null!=l&&null!==(o=l.treeEnabledRelations)&&void 0!==o&&o.includes(u)){e.next=5;break}return e.abrupt("return");case 5:return e.next=6,(0,On.Lt)(ga);case 6:return p=e.sent,e.next=7,(0,On.T1)(Da,c,null!=p?p:s);case 7:case 12:return e.abrupt("return");case 8:return e.next=9,(0,On.T1)(Ca);case 9:if(d=e.sent){e.next=10;break}return e.abrupt("return");case 10:if(y=d.rootEntityName,m=d.rootEntityKey,v=d.currentTreeData,r===y&&a&&Ea(v,a)){e.next=13;break}if("update"!==n||!r||r===y){e.next=12;break}return e.next=11,(0,On.Lt)(ga);case 11:return h=e.sent,e.next=12,(0,On.T1)(Da,y,null!=h?h:m);case 13:return b=Pa(v,a,"delete"===n?[a]:[]),e.next=14,(0,On.T1)(Da,y,b);case 14:case"end":return e.stop()}}),e)}))()}function Ja(e){var t=e.payload.event;return pe().mark((function e(n,r,a){var i,o,c,s,l,u,p;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(ma.includes(null==t?void 0:t.type)){e.next=1;break}return e.abrupt("return");case 1:return e.next=2,(0,On.T1)(Ca);case 2:if(i=e.sent){e.next=3;break}return e.abrupt("return");case 3:return o=i.rootEntityName,c=i.currentTreeData,e.next=4,(0,On.Lt)(Pe.Tw,o);case 4:if(s=e.sent,l=[o,null==s?void 0:s.relationshipModel].filter(Boolean),null===(n=t.payload)||void 0===n||null===(n=n.entities)||void 0===n?void 0:n.some((function(e){return l.includes(e.entityName)}))){e.next=5;break}return e.abrupt("return");case 5:return e.next=6,(0,On.Lt)(ga);case 6:return u=e.sent,p="entity-delete-event"===t.type?(null!==(r=null===(a=t.payload)||void 0===a?void 0:a.entities)&&void 0!==r?r:[]).filter((function(e){return e.entityName===o})).map((function(e){return e.key})):[],e.next=7,(0,On.T1)(Da,o,Pa(c,u,p));case 7:case"end":return e.stop()}}),e)}))()}const Fa={container:jn,reducers:{entities:(0,r.HY)({path:wr,entityTemplate:Rn,favoriteRelations:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ar,t=arguments.length>1?arguments[1]:void 0,n=rr[t.type];return n?n(e,t):e},treeNavigation:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:aa,t=arguments.length>1?arguments[1]:void 0,n=ia[t.type];return n?n(e,t):e}})},sagas:[qr,Hn,mr,dr,Aa]}},27185(e,t,n){var r=n(38859),a=n(15325),i=n(29905),o=n(34932),c=n(27301),s=n(19219),l=Math.min;e.exports=function(e,t,n){for(var u=n?i:a,p=e[0].length,d=e.length,f=d,y=Array(d),m=1/0,v=[];f--;){var h=e[f];f&&t&&(h=o(h,c(t))),m=l(h.length,m),y[f]=!n&&(t||p>=120&&h.length>=120)?new r(f&&h):void 0}h=e[0];var b=-1,g=y[0];e:for(;++b<p&&v.length<m;){var x=h[b],A=t?t(x):x;if(x=n||0!==x?x:0,!(g?s(g,A):u(v,A,n))){for(f=d;--f;){var w=y[f];if(!(w?s(w,A):u(e[f],A,n)))continue e}g&&g.push(A),v.push(x)}}return v}},80741(e,t,n){var r=n(83693);e.exports=function(e){return r(e)?e:[]}},5287(e,t,n){var r=n(34932),a=n(27185),i=n(69302),o=n(80741),c=i((function(e){var t=r(e,o);return t.length&&t[0]===e[0]?a(t):[]}));e.exports=c}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(this.webpackChunktocco_admin=this.webpackChunktocco_admin||[]).push([[34678],{34678(e,t,n){e=n.nmd(e),ace.define("ace/ext/diff/scroll_diff_decorator",["require","exports","module","ace/layer/decorators"],(function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},i(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},s=function(e){function t(t,n,i){var r=e.call(this,t,n)||this;return r.colors.dark.delete="rgba(255, 18, 18, 1)",r.colors.dark.insert="rgba(18, 136, 18, 1)",r.colors.light.delete="rgb(255,51,51)",r.colors.light.insert="rgb(32,133,72)",r.$zones=[],r.$forInlineDiff=i,r}return r(t,e),t.prototype.addZone=function(e,t,n){this.$zones.push({startRow:e,endRow:t,type:n})},t.prototype.setSessions=function(e,t){this.sessionA=e,this.sessionB=t},t.prototype.$updateDecorators=function(t){if("function"==typeof this.canvas.getContext&&(e.prototype.$updateDecorators.call(this,t),this.$zones.length>0)){var n=!0===this.renderer.theme.isDark?this.colors.dark:this.colors.light,i=this.canvas.getContext("2d");this.$setDiffDecorators(i,n)}},t.prototype.$transformPosition=function(e,t){return"delete"==t?this.sessionA.documentToScreenRow(e,0):this.sessionB.documentToScreenRow(e,0)},t.prototype.$setDiffDecorators=function(e,t){var n,i,r=this;var s=this.$zones;if(s){var a=[];[s.filter((function(e){return"delete"===e.type})),s.filter((function(e){return"insert"===e.type}))].forEach((function(e){e.forEach((function(e,n){var i=r.$transformPosition(e.startRow,e.type)*r.lineHeight,o=r.$transformPosition(e.endRow,e.type)*r.lineHeight+r.lineHeight,s=Math.round(r.heightRatio*i),u=Math.round(r.heightRatio*o),l=Math.round((s+u)/2),h=u-l;h<r.halfMinDecorationHeight&&(h=r.halfMinDecorationHeight);var d=a[a.length-1];n>0&&d&&d.type===e.type&&l-h<d.to+1&&(l=a[a.length-1].to+1+h),l-h<0&&(l=h),l+h>r.canvasHeight&&(l=r.canvasHeight-h),a.push({type:e.type,from:l-h,to:l+h,color:t[e.type]||null})}))})),a=a.sort((function(e,t){return e.from===t.from?e.to-t.to:e.from-t.from}));try{for(var u=o(a),l=u.next();!l.done;l=u.next()){var h=l.value;e.fillStyle=h.color||null;var d=h.from,c=h.to-d;this.$forInlineDiff?e.fillRect(this.oneZoneWidth,d,2*this.oneZoneWidth,c):"delete"==h.type?e.fillRect(this.oneZoneWidth,d,this.oneZoneWidth,c):e.fillRect(2*this.oneZoneWidth,d,this.oneZoneWidth,c)}}catch(e){n={error:e}}finally{try{l&&!l.done&&(i=u.return)&&i.call(u)}finally{if(n)throw n.error}}}},t.prototype.setZoneWidth=function(){this.oneZoneWidth=Math.round(this.canvasWidth/3)},t}(e("../../layer/decorators").Decorator);t.ScrollDiffDecorator=s})),ace.define("ace/ext/diff/styles-css.js",["require","exports","module"],(function(e,t,n){t.cssText='\n/*\n * Line Markers\n */\n.ace_diff {\n position: absolute;\n z-index: 0;\n}\n.ace_diff.inline {\n z-index: 20;\n}\n/*\n * Light Colors \n */\n.ace_diff.insert {\n background-color: #EFFFF1;\n}\n.ace_diff.delete {\n background-color: #FFF1F1;\n}\n.ace_diff.aligned_diff {\n background: rgba(206, 194, 191, 0.26);\n background: repeating-linear-gradient(\n 45deg,\n rgba(122, 111, 108, 0.26),\n rgba(122, 111, 108, 0.26) 5px,\n rgba(0, 0, 0, 0) 5px,\n rgba(0, 0, 0, 0) 10px \n );\n}\n\n.ace_diff.insert.inline {\n background-color: rgb(74 251 74 / 18%); \n}\n.ace_diff.delete.inline {\n background-color: rgb(251 74 74 / 15%);\n}\n\n.ace_diff.delete.inline.empty {\n background-color: rgba(255, 128, 79, 0.7);\n width: 2px !important;\n}\n\n.ace_diff.insert.inline.empty {\n background-color: rgba(49, 230, 96, 0.7);\n width: 2px !important;\n}\n\n.ace_diff-active-line {\n border-bottom: 1px solid;\n border-top: 1px solid;\n background: transparent;\n position: absolute;\n box-sizing: border-box;\n border-color: #9191ac;\n}\n\n.ace_dark .ace_diff-active-line {\n background: transparent;\n border-color: #75777a;\n}\n \n\n/* gutter changes */\n.ace_mini-diff_gutter-enabled > .ace_gutter-cell,\n.ace_mini-diff_gutter-enabled > .ace_gutter-cell_svg-icons {\n padding-right: 13px;\n}\n\n.ace_mini-diff_gutter_other > .ace_gutter-cell,\n.ace_mini-diff_gutter_other > .ace_gutter-cell_svg-icons {\n display: none;\n}\n\n.ace_mini-diff_gutter_other {\n pointer-events: none;\n}\n\n\n.ace_mini-diff_gutter-enabled > .mini-diff-added {\n background-color: #EFFFF1;\n border-left: 3px solid #2BB534;\n padding-left: 16px;\n display: block;\n}\n\n.ace_mini-diff_gutter-enabled > .mini-diff-deleted {\n background-color: #FFF1F1;\n border-left: 3px solid #EA7158;\n padding-left: 16px;\n display: block;\n}\n\n\n.ace_mini-diff_gutter-enabled > .mini-diff-added:after {\n position: absolute;\n right: 2px;\n content: "+";\n background-color: inherit;\n}\n\n.ace_mini-diff_gutter-enabled > .mini-diff-deleted:after {\n position: absolute;\n right: 2px;\n content: "-";\n background-color: inherit;\n}\n.ace_fade-fold-widgets:hover > .ace_folding-enabled > .mini-diff-added:after,\n.ace_fade-fold-widgets:hover > .ace_folding-enabled > .mini-diff-deleted:after {\n display: none;\n}\n\n.ace_diff_other .ace_selection {\n filter: drop-shadow(1px 2px 3px darkgray);\n}\n\n.ace_hidden_marker-layer .ace_bracket,\n.ace_hidden_marker-layer .ace_error_bracket {\n display: none;\n}\n\n\n\n/*\n * Dark Colors \n */\n\n.ace_dark .ace_diff.insert {\n background-color: #212E25;\n}\n.ace_dark .ace_diff.delete {\n background-color: #3F2222;\n}\n\n.ace_dark .ace_mini-diff_gutter-enabled > .mini-diff-added {\n background-color: #212E25;\n border-left-color:#00802F;\n}\n\n.ace_dark .ace_mini-diff_gutter-enabled > .mini-diff-deleted {\n background-color: #3F2222;\n border-left-color: #9C3838;\n}\n\n'})),ace.define("ace/ext/diff/gutter_decorator",["require","exports","module","ace/lib/dom"],(function(e,t,n){var i=e("../../lib/dom"),r=function(){function e(e,t){this.gutterClass="ace_mini-diff_gutter-enabled",this.gutterCellsClasses={add:"mini-diff-added",delete:"mini-diff-deleted"},this.editor=e,this.type=t,this.chunks=[],this.attachToEditor()}return e.prototype.attachToEditor=function(){this.renderGutters=this.renderGutters.bind(this),i.addCssClass(this.editor.renderer.$gutterLayer.element,this.gutterClass),this.editor.renderer.$gutterLayer.on("afterRender",this.renderGutters)},e.prototype.renderGutters=function(e,t){var n=this,i=this.editor.renderer.$gutterLayer.$lines.cells;i.forEach((function(e){e.element.classList.remove(Object.values(n.gutterCellsClasses))}));var r=-1===this.type?"old":"new",o=-1===this.type?this.gutterCellsClasses.delete:this.gutterCellsClasses.add;this.chunks.forEach((function(e){var t=e[r].start.row,n=e[r].end.row-1;i.forEach((function(e){e.row>=t&&e.row<=n&&e.element.classList.add(o)}))}))},e.prototype.setDecorations=function(e){this.chunks=e,this.renderGutters()},e.prototype.dispose=function(){i.removeCssClass(this.editor.renderer.$gutterLayer.element,this.gutterClass),this.editor.renderer.$gutterLayer.off("afterRender",this.renderGutters)},e}();t.MinimalGutterDiffDecorator=r})),ace.define("ace/ext/diff/base_diff_view",["require","exports","module","ace/lib/oop","ace/range","ace/lib/dom","ace/config","ace/line_widgets","ace/ext/diff/scroll_diff_decorator","ace/ext/diff/styles-css.js","ace/editor","ace/virtual_renderer","ace/undomanager","ace/layer/decorators","ace/theme/textmate","ace/multi_select","ace/edit_session","ace/ext/diff/gutter_decorator"],(function(e,t,n){"use strict";var i=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,r,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(i=o.next()).done;)s.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return s},r=(e("../../lib/oop"),e("../../range").Range),o=e("../../lib/dom"),s=e("../../config"),a=e("../../line_widgets").LineWidgets,u=e("./scroll_diff_decorator").ScrollDiffDecorator,l=e("./styles-css.js").cssText,h=e("../../editor").Editor,d=e("../../virtual_renderer").VirtualRenderer,c=e("../../undomanager").UndoManager,f=e("../../layer/decorators").Decorator;e("../../theme/textmate"),e("../../multi_select");var g=e("../../edit_session").EditSession,m=e("./gutter_decorator").MinimalGutterDiffDecorator,p={compute:function(e,t,n){return[]}};o.importCssString(l,"diffview.css",!1);var v=function(){function e(e,t){this.onChangeTheme=this.onChangeTheme.bind(this),this.onInput=this.onInput.bind(this),this.onChangeFold=this.onChangeFold.bind(this),this.realign=this.realign.bind(this),this.onSelect=this.onSelect.bind(this),this.onChangeWrapLimit=this.onChangeWrapLimit.bind(this),this.realignPending=!1,this.diffSession,this.chunks,this.inlineDiffEditor=e||!1,this.currentDiffIndex=0,this.diffProvider=p,t&&(this.container=t),this.$ignoreTrimWhitespace=!1,this.$maxDiffs=5e3,this.$maxComputationTimeMs=150,this.$syncSelections=!1,this.$foldUnchangedOnInput=!1,this.markerB=new b(this,1),this.markerA=new b(this,-1)}return e.prototype.$setupModels=function(e){e.diffProvider&&this.setProvider(e.diffProvider),this.showSideA=null==e.inline||"a"===e.inline;var t={scrollPastEnd:.5,highlightActiveLine:!1,highlightGutterLine:!1,animatedScroll:!0,customScrollbar:!0,vScrollBarAlwaysVisible:!0,fadeFoldWidgets:!0,showFoldWidgets:!0,selectionStyle:"text"};if(this.savedOptionsA=e.editorA&&e.editorA.getOptions(t),this.savedOptionsB=e.editorB&&e.editorB.getOptions(t),this.inlineDiffEditor&&"a"!==e.inline||(this.editorA=e.editorA||this.$setupModel(e.sessionA,e.valueA),this.container&&this.container.appendChild(this.editorA.container),this.editorA.setOptions(t)),this.inlineDiffEditor&&"b"!==e.inline||(this.editorB=e.editorB||this.$setupModel(e.sessionB,e.valueB),this.container&&this.container.appendChild(this.editorB.container),this.editorB.setOptions(t)),this.inlineDiffEditor){this.activeEditor=this.showSideA?this.editorA:this.editorB,this.otherSession=this.showSideA?this.sessionB:this.sessionA;var n=this.activeEditor.getOptions();n.readOnly=!0,delete n.mode,this.otherEditor=new h(new d(null),void 0,n),this.showSideA?this.editorB=this.otherEditor:this.editorA=this.otherEditor}this.setDiffSession({sessionA:e.sessionA||(e.editorA?e.editorA.session:new g(e.valueA||"")),sessionB:e.sessionB||(e.editorB?e.editorB.session:new g(e.valueB||"")),chunks:[]}),this.otherEditor&&this.activeEditor&&this.otherSession.setOption("wrap",this.activeEditor.getOption("wrap")),this.setupScrollbars()},e.prototype.addGutterDecorators=function(){this.gutterDecoratorA||(this.gutterDecoratorA=new m(this.editorA,-1)),this.gutterDecoratorB||(this.gutterDecoratorB=new m(this.editorB,1))},e.prototype.$setupModel=function(e,t){var n=new h(new d,e);return n.session.setUndoManager(new c),null!=t&&n.setValue(t,-1),n},e.prototype.foldUnchanged=function(){for(var e=this.chunks,t="-".repeat(120),n={old:new r(0,0,0,0),new:new r(0,0,0,0)},i=!1,o=0;o<e.length+1;o++){var s=e[o]||{old:new r(this.sessionA.getLength(),0,this.sessionA.getLength(),0),new:new r(this.sessionB.getLength(),0,this.sessionB.getLength(),0)},a=s.new.start.row-n.new.end.row-5;if(a>2){var u=n.old.end.row+2,l=this.sessionA.addFold(t,new r(u,0,u+a,Number.MAX_VALUE));u=n.new.end.row+2;var h=this.sessionB.addFold(t,new r(u,0,u+a,Number.MAX_VALUE));(l||h)&&(i=!0),h&&l&&(l.other=h,h.other=l)}n=s}return i},e.prototype.unfoldUnchanged=function(){for(var e=this.sessionA.getAllFolds(),t=e.length-1;t>=0;t--){var n=e[t];120==n.placeholder.length&&this.sessionA.removeFold(n)}},e.prototype.toggleFoldUnchanged=function(){this.foldUnchanged()||this.unfoldUnchanged()},e.prototype.setDiffSession=function(e){this.diffSession&&(this.$detachSessionsEventHandlers(),this.clearSelectionMarkers()),this.diffSession=e,this.sessionA=this.sessionB=null,this.diffSession&&(this.chunks=this.diffSession.chunks||[],this.editorA&&this.editorA.setSession(e.sessionA),this.editorB&&this.editorB.setSession(e.sessionB),this.sessionA=this.diffSession.sessionA,this.sessionB=this.diffSession.sessionB,this.$attachSessionsEventHandlers(),this.initSelectionMarkers()),this.otherSession=this.showSideA?this.sessionB:this.sessionA},e.prototype.$attachSessionsEventHandlers=function(){},e.prototype.$detachSessionsEventHandlers=function(){},e.prototype.getDiffSession=function(){return this.diffSession},e.prototype.setTheme=function(e){this.editorA&&this.editorA.setTheme(e),this.editorB&&this.editorB.setTheme(e)},e.prototype.getTheme=function(){return(this.editorA||this.editorB).getTheme()},e.prototype.onChangeTheme=function(e){var t=e&&e.theme||this.getTheme();this.editorA&&this.editorA.getTheme()!==t&&this.editorA.setTheme(t),this.editorB&&this.editorB.getTheme()!==t&&this.editorB.setTheme(t)},e.prototype.resize=function(e){this.editorA&&this.editorA.resize(e),this.editorB&&this.editorB.resize(e)},e.prototype.scheduleOnInput=function(){var e=this;this.$onInputTimer||(this.$onInputTimer=setTimeout((function(){e.$onInputTimer=null,e.onInput()})))},e.prototype.onInput=function(){var e=this;this.$onInputTimer&&clearTimeout(this.$onInputTimer);var t=this.sessionA.doc.getAllLines(),n=this.sessionB.doc.getAllLines();this.selectionRangeA=null,this.selectionRangeB=null;var i=this.$diffLines(t,n);this.diffSession.chunks=this.chunks=i,this.gutterDecoratorA&&this.gutterDecoratorA.setDecorations(i),this.gutterDecoratorB&&this.gutterDecoratorB.setDecorations(i),this.chunks&&this.chunks.length>this.$maxDiffs||(this.align(),this.editorA&&this.editorA.renderer.updateBackMarkers(),this.editorB&&this.editorB.renderer.updateBackMarkers(),setTimeout((function(){e.updateScrollBarDecorators()}),0),this.$foldUnchangedOnInput&&this.foldUnchanged())},e.prototype.setupScrollbars=function(){var e=this,t=function(t){setTimeout((function(){e.$setScrollBarDecorators(t),e.updateScrollBarDecorators()}),0)};this.inlineDiffEditor?t(this.activeEditor.renderer):(t(this.editorA.renderer),t(this.editorB.renderer))},e.prototype.$setScrollBarDecorators=function(e){e.$scrollDecorator&&e.$scrollDecorator.destroy(),e.$scrollDecorator=new u(e.scrollBarV,e,this.inlineDiffEditor),e.$scrollDecorator.setSessions(this.sessionA,this.sessionB),e.scrollBarV.setVisible(!0),e.scrollBarV.element.style.bottom=e.scrollBarH.getHeight()+"px"},e.prototype.$resetDecorators=function(e){e.$scrollDecorator&&e.$scrollDecorator.destroy(),e.$scrollDecorator=new f(e.scrollBarV,e)},e.prototype.updateScrollBarDecorators=function(){var e=this;if(this.inlineDiffEditor){if(!this.activeEditor)return;this.activeEditor.renderer.$scrollDecorator.$zones=[]}else{if(!this.editorA||!this.editorB)return;this.editorA.renderer.$scrollDecorator.$zones=[],this.editorB.renderer.$scrollDecorator.$zones=[]}var t=function(e,t){e&&"function"==typeof e.renderer.$scrollDecorator.addZone&&(t.old.start.row!=t.old.end.row&&e.renderer.$scrollDecorator.addZone(t.old.start.row,t.old.end.row-1,"delete"),t.new.start.row!=t.new.end.row&&e.renderer.$scrollDecorator.addZone(t.new.start.row,t.new.end.row-1,"insert"))};this.inlineDiffEditor?(this.chunks&&this.chunks.forEach((function(n){t(e.activeEditor,n)})),this.activeEditor.renderer.$scrollDecorator.$updateDecorators(this.activeEditor.renderer.layerConfig)):(this.chunks&&this.chunks.forEach((function(n){t(e.editorA,n),t(e.editorB,n)})),this.editorA.renderer.$scrollDecorator.$updateDecorators(this.editorA.renderer.layerConfig),this.editorB.renderer.$scrollDecorator.$updateDecorators(this.editorB.renderer.layerConfig))},e.prototype.$diffLines=function(e,t){return this.diffProvider.compute(e,t,{ignoreTrimWhitespace:this.$ignoreTrimWhitespace,maxComputationTimeMs:this.$maxComputationTimeMs})},e.prototype.setProvider=function(e){this.diffProvider=e},e.prototype.$addWidget=function(e,t){var n=e.lineWidgets[t.row];n&&(t.rowsAbove+=n.rowsAbove>t.rowsAbove?n.rowsAbove:t.rowsAbove,t.rowCount+=n.rowCount),e.lineWidgets[t.row]=t,e.widgetManager.lineWidgets[t.row]=t,e.$resetRowCache(t.row);var i=e.getFoldAt(t.row,0);i&&e.widgetManager.updateOnFold({data:i,action:"add"},e)},e.prototype.$initWidgets=function(e){var t=e.session;t.widgetManager||(t.widgetManager=new a(t),t.widgetManager.attach(e)),e.session.lineWidgets=[],e.session.widgetManager.lineWidgets=[],e.session.$resetRowCache(0)},e.prototype.$screenRow=function(e,t){var n=t.documentToScreenPosition(e).row,i=e.row-t.getLength()+1;return i>0&&(n+=i),n},e.prototype.align=function(){},e.prototype.onChangeWrapLimit=function(e,t){},e.prototype.onSelect=function(e,t){this.searchHighlight(t),this.syncSelect(t)},e.prototype.syncSelect=function(e){if(!this.$updatingSelection){var t=e.session===this.sessionA,n=e.getRange(),i=t?this.selectionRangeA:this.selectionRangeB;if(!i||!n.isEqual(i)){t?this.selectionRangeA=n:this.selectionRangeB=n,this.$updatingSelection=!0;var r=this.transformRange(n,t);this.$syncSelections&&(t?this.editorB:this.editorA).session.selection.setSelectionRange(r),this.$updatingSelection=!1,t?(this.selectionRangeA=n,this.selectionRangeB=r):(this.selectionRangeA=r,this.selectionRangeB=n),this.updateSelectionMarker(this.syncSelectionMarkerA,this.sessionA,this.selectionRangeA),this.updateSelectionMarker(this.syncSelectionMarkerB,this.sessionB,this.selectionRangeB)}}},e.prototype.updateSelectionMarker=function(e,t,n){e.setRange(n),t._signal("changeFrontMarker")},e.prototype.onChangeFold=function(e,t){var n=e.data;if(!this.$syncingFold&&n&&e.action){this.scheduleRealign();var i=t===this.sessionA,r=i?this.sessionB:this.sessionA;if("remove"===e.action&&(n.other?(n.other.other=null,r.removeFold(n.other)):n.lineWidget&&(r.widgetManager.addLineWidget(n.lineWidget),n.lineWidget=null,r.$editor&&r.$editor.renderer.updateBackMarkers())),"add"===e.action){var o=this.transformRange(n.range,i);if(o.isEmpty()){var s=o.start.row+1;r.lineWidgets[s]&&(n.lineWidget=r.lineWidgets[s],r.widgetManager.removeLineWidget(n.lineWidget),r.$editor&&r.$editor.renderer.updateBackMarkers())}else this.$syncingFold=!0,n.other=r.addFold(n.placeholder,o),n.other&&(n.other.other=n),this.$syncingFold=!1}}},e.prototype.scheduleRealign=function(){this.realignPending||(this.realignPending=!0,this.editorA.renderer.on("beforeRender",this.realign),this.editorB.renderer.on("beforeRender",this.realign))},e.prototype.realign=function(){this.realignPending=!0,this.editorA.renderer.off("beforeRender",this.realign),this.editorB.renderer.off("beforeRender",this.realign),this.align(),this.realignPending=!1},e.prototype.detach=function(){this.editorA&&this.editorB&&(this.savedOptionsA&&this.editorA.setOptions(this.savedOptionsA),this.savedOptionsB&&this.editorB.setOptions(this.savedOptionsB),this.editorA.renderer.off("beforeRender",this.realign),this.editorB.renderer.off("beforeRender",this.realign),this.$detachEventHandlers(),this.$removeLineWidgets(this.sessionA),this.$removeLineWidgets(this.sessionB),this.gutterDecoratorA&&this.gutterDecoratorA.dispose(),this.gutterDecoratorB&&this.gutterDecoratorB.dispose(),this.sessionA.selection.clearSelection(),this.sessionB.selection.clearSelection(),this.savedOptionsA&&this.savedOptionsA.customScrollbar&&this.$resetDecorators(this.editorA.renderer),this.savedOptionsB&&this.savedOptionsB.customScrollbar&&this.$resetDecorators(this.editorB.renderer))},e.prototype.$removeLineWidgets=function(e){e.lineWidgets=[],e.widgetManager.lineWidgets=[],e._signal("changeFold",{data:{start:{row:0}}})},e.prototype.$detachEventHandlers=function(){},e.prototype.destroy=function(){this.detach(),this.editorA&&this.editorA.destroy(),this.editorB&&this.editorB.destroy(),this.editorA=this.editorB=null},e.prototype.gotoNext=function(e){var t=this.activeEditor||this.editorA;this.inlineDiffEditor&&(t=this.editorA);var n=t==this.editorA,i=t.selection.lead.row,o=this.findChunkIndex(this.chunks,i,n),s=this.chunks[o+e]||this.chunks[o],a=t.session.getScrollTop();if(s){var u=s[n?"old":"new"],l=Math.max(u.start.row,u.end.row-1);t.selection.setRange(new r(l,0,l,0))}t.renderer.scrollSelectionIntoView(t.selection.lead,t.selection.anchor,.5),t.renderer.animateScrolling(a)},e.prototype.firstDiffSelected=function(){return this.currentDiffIndex<=1},e.prototype.lastDiffSelected=function(){return this.currentDiffIndex>this.chunks.length-1},e.prototype.transformRange=function(e,t){return r.fromPoints(this.transformPosition(e.start,t),this.transformPosition(e.end,t))},e.prototype.transformPosition=function(e,t){var n=this.findChunkIndex(this.chunks,e.row,t),r=this.chunks[n],o=this.sessionB.doc.clonePos,s=o(e),a=i(t?["old","new"]:["new","old"],2),u=a[0],l=a[1],h=0,d=!1;if(r)if(r[u].end.row<=e.row)s.row-=r[u].end.row-r[l].end.row;else if(r.charChanges)for(var c=0;c<r.charChanges.length;c++){var f=r.charChanges[c],g=f[u],m=f[l];if(!(g.end.row<e.row)){if(g.start.row>e.row)break;if(g.isMultiLine()&&g.contains(e.row,e.column)){s.row=m.start.row+e.row-g.start.row;var p=m.end.row;0===m.end.column&&p--,s.row>p&&(s.row=p,s.column=(t?this.sessionB:this.sessionA).getLine(p).length,d=!0),s.row=Math.min(s.row,p)}else{if(s.row=m.start.row,g.start.column>e.column)break;d=!0,!g.isEmpty()&&g.contains(e.row,e.column)?(s.column=m.start.column,h=e.column-g.start.column,h=Math.min(h,m.end.column-m.start.column)):(s=o(m.end),h=e.column-g.end.column)}}}else r[u].start.row<=e.row&&(s.row+=r[l].start.row-r[u].start.row,s.row>=r[l].end.row&&(s.row=r[l].end.row-1,s.column=(t?this.sessionB:this.sessionA).getLine(s.row).length));if(!d){var v=i(t?[this.sessionA,this.sessionB]:[this.sessionB,this.sessionA],2),y=v[0],w=v[1];h-=this.$getDeltaIndent(y,w,e.row,s.row)}return s.column+=h,s},e.prototype.$getDeltaIndent=function(e,t,n,i){return this.$getIndent(e,n)-this.$getIndent(t,i)},e.prototype.$getIndent=function(e,t){return e.getLine(t).match(/^\s*/)[0].length},e.prototype.printDiffs=function(){this.chunks.forEach((function(e){console.log(e.toString())}))},e.prototype.findChunkIndex=function(e,t,n){for(var i=0;i<e.length;i++){var r=e[i],o=n?r.old:r.new;if(!(o.end.row<t)&&o.start.row>t)break}return this.currentDiffIndex=i,i-1},e.prototype.searchHighlight=function(e){if(!this.$syncSelections&&!this.inlineDiffEditor){var t=e.session,n=t===this.sessionA?this.sessionB:this.sessionA;n.highlight(t.$searchHighlight.regExp),n._signal("changeBackMarker")}},e.prototype.initSelectionMarkers=function(){this.syncSelectionMarkerA=new E,this.syncSelectionMarkerB=new E,this.sessionA.addDynamicMarker(this.syncSelectionMarkerA,!0),this.sessionB.addDynamicMarker(this.syncSelectionMarkerB,!0)},e.prototype.clearSelectionMarkers=function(){this.sessionA.removeMarker(this.syncSelectionMarkerA.id),this.sessionB.removeMarker(this.syncSelectionMarkerB.id)},e}();s.defineOptions(v.prototype,"DiffView",{showOtherLineNumbers:{set:function(e){this.gutterLayer&&(this.gutterLayer.$renderer=e?null:y,this.editorA.renderer.updateFull())},initialValue:!0},folding:{set:function(e){if(this.editorA.setOption("showFoldWidgets",e),this.editorB.setOption("showFoldWidgets",e),!e){var t=[],n=[];this.chunks&&this.chunks.forEach((function(e){t.push(e.old.start,e.old.end),n.push(e.new.start,e.new.end)})),this.sessionA.unfold(t),this.sessionB.unfold(n)}}},syncSelections:{set:function(e){}},ignoreTrimWhitespace:{set:function(e){this.scheduleOnInput()}},wrap:{set:function(e){this.sessionA.setOption("wrap",e),this.sessionB.setOption("wrap",e)}},maxDiffs:{value:5e3},theme:{set:function(e){this.setTheme(e)},get:function(){return this.editorA.getTheme()}}});var y={getText:function(e){return""},getWidth:function(){return 0}};t.BaseDiffView=v;var w=function e(t,n,i){this.old=t,this.new=n,this.charChanges=i&&i.map((function(t){return new e(new r(t.originalStartLineNumber,t.originalStartColumn,t.originalEndLineNumber,t.originalEndColumn),new r(t.modifiedStartLineNumber,t.modifiedStartColumn,t.modifiedEndLineNumber,t.modifiedEndColumn))}))},b=function(){function e(e,t){this.id,this.diffView=e,this.type=t}return e.prototype.update=function(e,t,n,i){var o,s,a,u=this.diffView;-1===this.type?(o="old",s="delete",a="insert"):(o="new",s="insert",a="delete");var l=u.$ignoreTrimWhitespace,h=u.chunks;if(n.lineWidgets&&!u.inlineDiffEditor)for(var d=i.firstRow;d<=i.lastRow;d++){var c=n.lineWidgets[d];if(c&&!c.hidden){var f=n.documentToScreenRow(d,0);if(c.rowsAbove>0){var g=new r(f-c.rowsAbove,0,f-1,Number.MAX_VALUE);t.drawFullLineMarker(e,g,"ace_diff aligned_diff",i)}var m=f+c.rowCount-(c.rowsAbove||0);g=new r(f+1,0,m,Number.MAX_VALUE);t.drawFullLineMarker(e,g,"ace_diff aligned_diff",i)}}h.forEach((function(u){var h=u[o].start.row,d=u[o].end.row;if(!(d<i.firstRow||h>i.lastRow)){var c=new r(h,0,d-1,1<<30);if(h!==d&&(c=c.toScreenRange(n),t.drawFullLineMarker(e,c,"ace_diff "+s,i)),u.charChanges)for(var f=0;f<u.charChanges.length;f++){var g=u.charChanges[f][o];if(0==g.end.column&&g.end.row>g.start.row&&g.end.row==u[o].end.row&&(g.end.row--,g.end.column=Number.MAX_VALUE),l)for(var m=g.start.row;m<=g.end.row;m++){var p=void 0,v=void 0,y=n.getLine(m).match(/^\s*/)[0].length,w=n.getLine(m).length;p=m===g.start.row?g.start.column:y,v=m===g.end.row?g.end.column:w;var b=new r(m,p,m,v),E=b.toScreenRange(n);if(y!==p||w!==v){var L="inline "+s;b.isEmpty()&&0!==p&&(L="inline "+a+" empty"),t.drawSingleLineMarker(e,E,"ace_diff "+L,i)}}else{var x=new r(g.start.row,g.start.column,g.end.row,g.end.column);E=x.toScreenRange(n),L="inline "+s;x.isEmpty()&&0!==g.start.column&&(L="inline empty "+a),E.isMultiLine()?t.drawTextMarker(e,E,"ace_diff "+L,i):t.drawSingleLineMarker(e,E,"ace_diff "+L,i)}}}}))},e}(),E=function(){function e(){this.id,this.type="fullLine",this.clazz="ace_diff-active-line"}return e.prototype.update=function(e,t,n,i){},e.prototype.setRange=function(e){var t=e.clone();t.end.column++,this.range=t},e}();t.DiffChunk=w,t.DiffHighlight=b})),ace.define("ace/ext/diff/inline_diff_view",["require","exports","module","ace/ext/diff/base_diff_view","ace/virtual_renderer","ace/config"],(function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},i(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=e("./base_diff_view").BaseDiffView,s=e("../../virtual_renderer").VirtualRenderer,a=e("../../config"),u=function(e){function t(t,n){var i=this;return(t=t||{}).inline=t.inline||"a",(i=e.call(this,!0,n)||this).init(t),i}return r(t,e),t.prototype.init=function(e){this.onSelect=this.onSelect.bind(this),this.onAfterRender=this.onAfterRender.bind(this),this.$setupModels(e),this.onChangeTheme(),a.resetOptions(this),a._signal("diffView",this);var t=this.activeEditor.renderer.$padding;this.addGutterDecorators(),this.otherEditor.renderer.setPadding(t),this.textLayer=this.otherEditor.renderer.$textLayer,this.markerLayer=this.otherEditor.renderer.$markerBack,this.gutterLayer=this.otherEditor.renderer.$gutterLayer,this.cursorLayer=this.otherEditor.renderer.$cursorLayer,this.otherEditor.renderer.$updateCachedSize=function(){};var n=this.activeEditor.renderer.$textLayer.element;n.parentNode.insertBefore(this.textLayer.element,n);var i=this.activeEditor.renderer.$markerBack.element;i.parentNode.insertBefore(this.markerLayer.element,i.nextSibling);var r=this.activeEditor.renderer.$gutterLayer.element;r.parentNode.insertBefore(this.gutterLayer.element,r.nextSibling),r.style.position="absolute",this.gutterLayer.element.style.position="absolute",this.gutterLayer.element.style.width="100%",this.gutterLayer.element.classList.add("ace_mini-diff_gutter_other"),this.gutterLayer.$updateGutterWidth=function(){},this.initMouse(),this.initTextInput(),this.initTextLayer(),this.initRenderer(),this.$attachEventHandlers(),this.selectEditor(this.activeEditor)},t.prototype.initRenderer=function(e){var t=this;e?delete this.activeEditor.renderer.$getLongestLine:this.editorA.renderer.$getLongestLine=this.editorB.renderer.$getLongestLine=function(){var e=s.prototype.$getLongestLine;return Math.max(e.call(t.editorA.renderer),e.call(t.editorB.renderer))}},t.prototype.initTextLayer=function(){var e=this.textLayer.$renderLine,t=this;this.otherEditor.renderer.$textLayer.$renderLine=function(i,r,o){(function(e,t){var i=0,r=e.length-1,o=-1;for(;i<r;){var s=Math.floor((i+r)/2),a=e[s][n].start.row;if(a<t)o=s,i=s+1;else{if(!(a>t)){o=s;break}r=s-1}}e[o+1]&&e[o+1][n].start.row<=t&&o++;var u=e[o]&&e[o][n];if(u&&u.end.row>t)return!0;return!1})(t.chunks,r)&&e.call(this,i,r,o)};var n=this.showSideA?"new":"old"},t.prototype.initTextInput=function(e){e?(this.otherEditor.textInput=this.othertextInput,this.otherEditor.container=this.otherEditorContainer):(this.othertextInput=this.otherEditor.textInput,this.otherEditor.textInput=this.activeEditor.textInput,this.otherEditorContainer=this.otherEditor.container,this.otherEditor.container=this.activeEditor.container)},t.prototype.selectEditor=function(e){e==this.activeEditor?(this.otherEditor.selection.clearSelection(),this.activeEditor.textInput.setHost(this.activeEditor),this.activeEditor.setStyle("ace_diff_other",!1),this.cursorLayer.element.remove(),this.activeEditor.renderer.$cursorLayer.element.style.display="block",this.showSideA&&(this.sessionA.removeMarker(this.syncSelectionMarkerA.id),this.sessionA.addDynamicMarker(this.syncSelectionMarkerA,!0)),this.markerLayer.element.classList.add("ace_hidden_marker-layer"),this.activeEditor.renderer.$markerBack.element.classList.remove("ace_hidden_marker-layer"),this.removeBracketHighlight(this.otherEditor)):(this.activeEditor.selection.clearSelection(),this.activeEditor.textInput.setHost(this.otherEditor),this.activeEditor.setStyle("ace_diff_other"),this.activeEditor.renderer.$cursorLayer.element.parentNode.appendChild(this.cursorLayer.element),this.activeEditor.renderer.$cursorLayer.element.style.display="none",this.activeEditor.$isFocused&&this.otherEditor.onFocus(),this.showSideA&&this.sessionA.removeMarker(this.syncSelectionMarkerA.id),this.markerLayer.element.classList.remove("ace_hidden_marker-layer"),this.activeEditor.renderer.$markerBack.element.classList.add("ace_hidden_marker-layer"),this.removeBracketHighlight(this.activeEditor))},t.prototype.removeBracketHighlight=function(e){var t=e.session;t.$bracketHighlight&&(t.$bracketHighlight.markerIds.forEach((function(e){t.removeMarker(e)})),t.$bracketHighlight=null)},t.prototype.initMouse=function(){var e=this;this.otherEditor.renderer.$loop=this.activeEditor.renderer.$loop,this.otherEditor.renderer.scroller={getBoundingClientRect:function(){return e.activeEditor.renderer.scroller.getBoundingClientRect()},style:this.activeEditor.renderer.scroller.style};var t=function(t){if(t.domEvent){var n=t.editor.renderer.pixelToScreenCoordinates(t.clientX,t.clientY),i=e.activeEditor.session,r=e.otherEditor.session,o=i.screenToDocumentPosition(n.row,n.column,n.offsetX),s=r.screenToDocumentPosition(n.row,n.column,n.offsetX),a=i.documentToScreenPosition(o),u=r.documentToScreenPosition(s);t.editor==e.activeEditor&&(u.row==n.row&&a.row!=n.row?("mousedown"==t.type&&e.selectEditor(e.otherEditor),t.propagationStopped=!0,t.defaultPrevented=!0,e.otherEditor.$mouseHandler.onMouseEvent(t.type,t.domEvent)):"mousedown"==t.type&&e.selectEditor(e.activeEditor))}},n=["mousedown","click","mouseup","dblclick","tripleclick","quadclick"];n.forEach((function(n){e.activeEditor.on(n,t,!0),e.activeEditor.on("gutter"+n,t,!0)}));var i=function(t){e.activeEditor.onFocus(t)},r=function(t){e.activeEditor.onBlur(t)};this.otherEditor.on("focus",i),this.otherEditor.on("blur",r),this.onMouseDetach=function(){n.forEach((function(n){e.activeEditor.off(n,t,!0),e.activeEditor.off("gutter"+n,t,!0)})),e.otherEditor.off("focus",i),e.otherEditor.off("blur",r)}},t.prototype.align=function(){var e=this;this.$initWidgets(e.editorA),this.$initWidgets(e.editorB),e.chunks.forEach((function(t){var n=e.$screenRow(t.old.end,e.sessionA)-e.$screenRow(t.old.start,e.sessionA),i=e.$screenRow(t.new.end,e.sessionB)-e.$screenRow(t.new.start,e.sessionB);e.$addWidget(e.sessionA,{rowCount:i,rowsAbove:0===t.old.end.row?i:0,row:0===t.old.end.row?0:t.old.end.row-1}),e.$addWidget(e.sessionB,{rowCount:n,rowsAbove:n,row:t.new.start.row})})),e.sessionA._emit("changeFold",{data:{start:{row:0}}}),e.sessionB._emit("changeFold",{data:{start:{row:0}}})},t.prototype.onChangeWrapLimit=function(e,t){this.otherSession.setOption("wrap",t.getOption("wrap")),this.otherSession.adjustWrapLimit(t.$wrapLimit),this.scheduleRealign(),this.activeEditor.renderer.updateFull()},t.prototype.$attachSessionsEventHandlers=function(){this.$attachSessionEventHandlers(this.editorA,this.markerA),this.$attachSessionEventHandlers(this.editorB,this.markerB);var e=this.activeEditor.session;e.on("changeWrapLimit",this.onChangeWrapLimit),e.on("changeWrapMode",this.onChangeWrapLimit)},t.prototype.$attachSessionEventHandlers=function(e,t){e.session.on("changeFold",this.onChangeFold),e.session.addDynamicMarker(t),e.selection.on("changeCursor",this.onSelect),e.selection.on("changeSelection",this.onSelect)},t.prototype.$detachSessionsEventHandlers=function(){this.$detachSessionHandlers(this.editorA,this.markerA),this.$detachSessionHandlers(this.editorB,this.markerB),this.otherSession.bgTokenizer.lines.fill(void 0);var e=this.activeEditor.session;e.off("changeWrapLimit",this.onChangeWrapLimit),e.off("changeWrapMode",this.onChangeWrapLimit)},t.prototype.$detachSessionHandlers=function(e,t){e.session.removeMarker(t.id),e.selection.off("changeCursor",this.onSelect),e.selection.off("changeSelection",this.onSelect),e.session.off("changeFold",this.onChangeFold)},t.prototype.$attachEventHandlers=function(){this.activeEditor.on("input",this.onInput),this.activeEditor.renderer.on("afterRender",this.onAfterRender),this.otherSession.on("change",this.onInput)},t.prototype.$detachEventHandlers=function(){this.$detachSessionsEventHandlers(),this.activeEditor.off("input",this.onInput),this.activeEditor.renderer.off("afterRender",this.onAfterRender),this.otherSession.off("change",this.onInput),this.textLayer.element.textContent="",this.textLayer.element.remove(),this.gutterLayer.element.textContent="",this.gutterLayer.element.remove(),this.markerLayer.element.textContent="",this.markerLayer.element.remove(),this.onMouseDetach(),this.selectEditor(this.activeEditor),this.clearSelectionMarkers(),this.otherEditor.setSession(null),this.otherEditor.renderer.$loop=null,this.initTextInput(!0),this.initRenderer(!0),this.otherEditor.destroy()},t.prototype.onAfterRender=function(e,t){var n=t.layerConfig,i=this.otherSession,r=this.otherEditor.renderer;i.$scrollTop=t.scrollTop,i.$scrollLeft=t.scrollLeft,["characterWidth","lineHeight","scrollTop","scrollLeft","scrollMargin","$padding","$size","layerConfig","$horizScroll","$vScroll"].forEach((function(e){r[e]=t[e]})),r.$computeLayerConfig();var o=r.layerConfig;this.gutterLayer.update(o),o.firstRowScreen=n.firstRowScreen,r.$cursorLayer.config=o,r.$cursorLayer.update(o),(e&r.CHANGE_LINES||e&r.CHANGE_FULL||e&r.CHANGE_SCROLL||e&r.CHANGE_TEXT)&&this.textLayer.update(o),this.markerLayer.setMarkers(this.otherSession.getMarkers()),this.markerLayer.update(o)},t.prototype.detach=function(){e.prototype.detach.call(this),this.otherEditor&&this.otherEditor.destroy()},t}(o);t.InlineDiffView=u})),ace.define("ace/ext/diff/split_diff_view",["require","exports","module","ace/ext/diff/base_diff_view","ace/config"],(function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},i(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=e("./base_diff_view").BaseDiffView,s=e("../../config"),a=function(e){function t(t){var n=this;return t=t||{},(n=e.call(this)||this).init(t),n}return r(t,e),t.prototype.init=function(e){this.onChangeTheme=this.onChangeTheme.bind(this),this.onMouseWheel=this.onMouseWheel.bind(this),this.onScroll=this.onScroll.bind(this),this.$setupModels(e),this.addGutterDecorators(),this.onChangeTheme(),s.resetOptions(this),s._signal("diffView",this),this.$attachEventHandlers()},t.prototype.onChangeWrapLimit=function(){this.scheduleRealign()},t.prototype.align=function(){var e=this;this.$initWidgets(e.editorA),this.$initWidgets(e.editorB),e.chunks.forEach((function(t){var n,i;(n=e.$screenRow(t.old.start,e.sessionA))<(i=e.$screenRow(t.new.start,e.sessionB))?e.$addWidget(e.sessionA,{rowCount:i-n,rowsAbove:0===t.old.start.row?i-n:0,row:0===t.old.start.row?0:t.old.start.row-1}):n>i&&e.$addWidget(e.sessionB,{rowCount:n-i,rowsAbove:0===t.new.start.row?n-i:0,row:0===t.new.start.row?0:t.new.start.row-1}),(n=e.$screenRow(t.old.end,e.sessionA))<(i=e.$screenRow(t.new.end,e.sessionB))?e.$addWidget(e.sessionA,{rowCount:i-n,rowsAbove:0===t.old.end.row?i-n:0,row:0===t.old.end.row?0:t.old.end.row-1}):n>i&&e.$addWidget(e.sessionB,{rowCount:n-i,rowsAbove:0===t.new.end.row?n-i:0,row:0===t.new.end.row?0:t.new.end.row-1})})),e.sessionA._emit("changeFold",{data:{start:{row:0}}}),e.sessionB._emit("changeFold",{data:{start:{row:0}}})},t.prototype.onScroll=function(e,t){this.syncScroll(this.sessionA===t?this.editorA.renderer:this.editorB.renderer)},t.prototype.syncScroll=function(e){if(0!=this.$syncScroll){var t=this.editorA.renderer,n=this.editorB.renderer,i=e==t;if(!t.$scrollAnimation||!n.$scrollAnimation){var r=Date.now();if(!(this.scrollSetBy!=e&&r-this.scrollSetAt<500)){var o=i?t:n;if(this.scrollSetBy!=e){if(i&&this.scrollA==o.session.getScrollTop())return;if(!i&&this.scrollB==o.session.getScrollTop())return}var s=i?n:t,a=o.session.getScrollTop();this.$syncScroll=!1,i?(this.scrollA=o.session.getScrollTop(),this.scrollB=a):(this.scrollA=a,this.scrollB=o.session.getScrollTop()),this.scrollSetBy=e,s.session.setScrollTop(a),this.$syncScroll=!0,this.scrollSetAt=r}}}},t.prototype.onMouseWheel=function(e){if(!e.getAccelKey()){e.getShiftKey()&&e.wheelY&&!e.wheelX&&(e.wheelX=e.wheelY,e.wheelY=0);var t=e.editor;if(!t.renderer.isScrollableBy(e.wheelX*e.speed,e.wheelY*e.speed)){var n=t==this.editorA?this.editorB:this.editorA;return n.renderer.isScrollableBy(e.wheelX*e.speed,e.wheelY*e.speed)&&n.renderer.scrollBy(e.wheelX*e.speed,e.wheelY*e.speed),e.stop()}}},t.prototype.$attachSessionsEventHandlers=function(){this.$attachSessionEventHandlers(this.editorA,this.markerA),this.$attachSessionEventHandlers(this.editorB,this.markerB)},t.prototype.$attachSessionEventHandlers=function(e,t){e.session.on("changeScrollTop",this.onScroll),e.session.on("changeFold",this.onChangeFold),e.session.addDynamicMarker(t),e.selection.on("changeCursor",this.onSelect),e.selection.on("changeSelection",this.onSelect),e.session.on("changeWrapLimit",this.onChangeWrapLimit),e.session.on("changeWrapMode",this.onChangeWrapLimit)},t.prototype.$detachSessionsEventHandlers=function(){this.$detachSessionHandlers(this.editorA,this.markerA),this.$detachSessionHandlers(this.editorB,this.markerB)},t.prototype.$detachSessionHandlers=function(e,t){e.session.off("changeScrollTop",this.onScroll),e.session.off("changeFold",this.onChangeFold),e.session.removeMarker(t.id),e.selection.off("changeCursor",this.onSelect),e.selection.off("changeSelection",this.onSelect),e.session.off("changeWrapLimit",this.onChangeWrapLimit),e.session.off("changeWrapMode",this.onChangeWrapLimit)},t.prototype.$attachEventHandlers=function(){this.editorA.renderer.on("themeChange",this.onChangeTheme),this.editorB.renderer.on("themeChange",this.onChangeTheme),this.editorA.on("mousewheel",this.onMouseWheel),this.editorB.on("mousewheel",this.onMouseWheel),this.editorA.on("input",this.onInput),this.editorB.on("input",this.onInput)},t.prototype.$detachEventHandlers=function(){this.$detachSessionsEventHandlers(),this.clearSelectionMarkers(),this.editorA.renderer.off("themeChange",this.onChangeTheme),this.editorB.renderer.off("themeChange",this.onChangeTheme),this.$detachEditorEventHandlers(this.editorA),this.$detachEditorEventHandlers(this.editorB)},t.prototype.$detachEditorEventHandlers=function(e){e.off("mousewheel",this.onMouseWheel),e.off("input",this.onInput)},t}(o);t.SplitDiffView=a})),ace.define("ace/ext/diff/providers/default",["require","exports","module","ace/range","ace/ext/diff/base_diff_view"],(function(e,t,n){"use strict";var i,r,o,s,a,u,l,h=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},i(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),d=this&&this.__generator||function(e,t){var n,i,r,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(u){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(o=0)),o;)try{if(n=1,i&&(r=2&a[0]?i.return:a[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,a[1])).done)return r;switch(i=0,r&&(a=[2&a[0],r.value]),a[0]){case 0:case 1:r=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,i=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(r=o.trys,(r=r.length>0&&r[r.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]<r[3])){o.label=a[1];break}if(6===a[0]&&o.label<r[1]){o.label=r[1],r=a;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(a);break}r[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],i=0}finally{n=r=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,u])}}},c=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};function f(e,t){return function(n,i){return t(e(n),e(i))}}var g=function(e,t){return e-t};var m=function(e){function t(n){var i=e.call(this,n||"An unexpected bug occurred.")||this;return Object.setPrototypeOf(i,t.prototype),i}return h(t,e),t}(Error);function p(e){e()}var v=function(){function e(e,t){if(this.start=e,this.endExclusive=t,e>t)throw new m("Invalid range: ".concat(this.toString()))}return e.fromTo=function(t,n){return new e(t,n)},e.addRange=function(t,n){for(var i=0;i<n.length&&n[i].endExclusive<t.start;)i++;for(var r=i;r<n.length&&n[r].start<=t.endExclusive;)r++;if(i===r)n.splice(i,0,t);else{var o=Math.min(t.start,n[i].start),s=Math.max(t.endExclusive,n[r-1].endExclusive);n.splice(i,r-i,new e(o,s))}},e.tryCreate=function(t,n){if(!(t>n))return new e(t,n)},e.ofLength=function(t){return new e(0,t)},e.ofStartAndLength=function(t,n){return new e(t,t+n)},e.emptyAt=function(t){return new e(t,t)},Object.defineProperty(e.prototype,"isEmpty",{get:function(){return this.start===this.endExclusive},enumerable:!1,configurable:!0}),e.prototype.delta=function(t){return new e(this.start+t,this.endExclusive+t)},e.prototype.deltaStart=function(t){return new e(this.start+t,this.endExclusive)},e.prototype.deltaEnd=function(t){return new e(this.start,this.endExclusive+t)},Object.defineProperty(e.prototype,"length",{get:function(){return this.endExclusive-this.start},enumerable:!1,configurable:!0}),e.prototype.toString=function(){return"[".concat(this.start,", ").concat(this.endExclusive,")")},e.prototype.equals=function(e){return this.start===e.start&&this.endExclusive===e.endExclusive},e.prototype.containsRange=function(e){return this.start<=e.start&&e.endExclusive<=this.endExclusive},e.prototype.contains=function(e){return this.start<=e&&e<this.endExclusive},e.prototype.join=function(t){return new e(Math.min(this.start,t.start),Math.max(this.endExclusive,t.endExclusive))},e.prototype.intersect=function(t){var n=Math.max(this.start,t.start),i=Math.min(this.endExclusive,t.endExclusive);if(n<=i)return new e(n,i)},e.prototype.intersectionLength=function(e){var t=Math.max(this.start,e.start),n=Math.min(this.endExclusive,e.endExclusive);return Math.max(0,n-t)},e.prototype.intersects=function(e){return Math.max(this.start,e.start)<Math.min(this.endExclusive,e.endExclusive)},e.prototype.intersectsOrTouches=function(e){return Math.max(this.start,e.start)<=Math.min(this.endExclusive,e.endExclusive)},e.prototype.isBefore=function(e){return this.endExclusive<=e.start},e.prototype.isAfter=function(e){return this.start>=e.endExclusive},e.prototype.slice=function(e){return e.slice(this.start,this.endExclusive)},e.prototype.substring=function(e){return e.substring(this.start,this.endExclusive)},e.prototype.clip=function(e){if(this.isEmpty)throw new m("Invalid clipping range: ".concat(this.toString()));return Math.max(this.start,Math.min(this.endExclusive-1,e))},e.prototype.clipCyclic=function(e){if(this.isEmpty)throw new m("Invalid clipping range: ".concat(this.toString()));return e<this.start?this.endExclusive-(this.start-e)%this.length:e>=this.endExclusive?this.start+(e-this.start)%this.length:e},e.prototype.map=function(e){for(var t=[],n=this.start;n<this.endExclusive;n++)t.push(e(n));return t},e.prototype.forEach=function(e){for(var t=this.start;t<this.endExclusive;t++)e(t)},e}(),y=function(){function e(e,t){this.lineNumber=e,this.column=t}return e.prototype.equals=function(t){return e.equals(this,t)},e.equals=function(e,t){return!e&&!t||!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column},e.prototype.isBefore=function(t){return e.isBefore(this,t)},e.isBefore=function(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<t.column},e.prototype.isBeforeOrEqual=function(t){return e.isBeforeOrEqual(this,t)},e.isBeforeOrEqual=function(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<=t.column},e}(),w=function(){function e(e,t,n,i){e>n||e===n&&t>i?(this.startLineNumber=n,this.startColumn=i,this.endLineNumber=e,this.endColumn=t):(this.startLineNumber=e,this.startColumn=t,this.endLineNumber=n,this.endColumn=i)}return e.prototype.isEmpty=function(){return e.isEmpty(this)},e.isEmpty=function(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn},e.prototype.containsPosition=function(t){return e.containsPosition(this,t)},e.containsPosition=function(e,t){return!(t.lineNumber<e.startLineNumber||t.lineNumber>e.endLineNumber)&&(!(t.lineNumber===e.startLineNumber&&t.column<e.startColumn)&&!(t.lineNumber===e.endLineNumber&&t.column>e.endColumn))},e.prototype.containsRange=function(t){return e.containsRange(this,t)},e.containsRange=function(e,t){return!(t.startLineNumber<e.startLineNumber||t.endLineNumber<e.startLineNumber)&&(!(t.startLineNumber>e.endLineNumber||t.endLineNumber>e.endLineNumber)&&(!(t.startLineNumber===e.startLineNumber&&t.startColumn<e.startColumn)&&!(t.endLineNumber===e.endLineNumber&&t.endColumn>e.endColumn)))},e.prototype.strictContainsRange=function(t){return e.strictContainsRange(this,t)},e.strictContainsRange=function(e,t){return!(t.startLineNumber<e.startLineNumber||t.endLineNumber<e.startLineNumber)&&(!(t.startLineNumber>e.endLineNumber||t.endLineNumber>e.endLineNumber)&&(!(t.startLineNumber===e.startLineNumber&&t.startColumn<=e.startColumn)&&!(t.endLineNumber===e.endLineNumber&&t.endColumn>=e.endColumn)))},e.prototype.plusRange=function(t){return e.plusRange(this,t)},e.plusRange=function(t,n){var i,r,o,s;return n.startLineNumber<t.startLineNumber?(i=n.startLineNumber,r=n.startColumn):n.startLineNumber===t.startLineNumber?(i=n.startLineNumber,r=Math.min(n.startColumn,t.startColumn)):(i=t.startLineNumber,r=t.startColumn),n.endLineNumber>t.endLineNumber?(o=n.endLineNumber,s=n.endColumn):n.endLineNumber===t.endLineNumber?(o=n.endLineNumber,s=Math.max(n.endColumn,t.endColumn)):(o=t.endLineNumber,s=t.endColumn),new e(i,r,o,s)},e.prototype.intersectRanges=function(t){return e.intersectRanges(this,t)},e.intersectRanges=function(t,n){var i=t.startLineNumber,r=t.startColumn,o=t.endLineNumber,s=t.endColumn,a=n.startLineNumber,u=n.startColumn,l=n.endLineNumber,h=n.endColumn;return i<a?(i=a,r=u):i===a&&(r=Math.max(r,u)),o>l?(o=l,s=h):o===l&&(s=Math.min(s,h)),i>o||i===o&&r>s?null:new e(i,r,o,s)},e.prototype.equalsRange=function(t){return e.equalsRange(this,t)},e.equalsRange=function(e,t){return!e&&!t||!!e&&!!t&&e.startLineNumber===t.startLineNumber&&e.startColumn===t.startColumn&&e.endLineNumber===t.endLineNumber&&e.endColumn===t.endColumn},e.prototype.getEndPosition=function(){return e.getEndPosition(this)},e.getEndPosition=function(e){return new y(e.endLineNumber,e.endColumn)},e.prototype.getStartPosition=function(){return e.getStartPosition(this)},e.getStartPosition=function(e){return new y(e.startLineNumber,e.startColumn)},e.prototype.collapseToStart=function(){return e.collapseToStart(this)},e.collapseToStart=function(t){return new e(t.startLineNumber,t.startColumn,t.startLineNumber,t.startColumn)},e.prototype.collapseToEnd=function(){return e.collapseToEnd(this)},e.collapseToEnd=function(t){return new e(t.endLineNumber,t.endColumn,t.endLineNumber,t.endColumn)},e.fromPositions=function(t,n){return void 0===n&&(n=t),new e(t.lineNumber,t.column,n.lineNumber,n.column)},e}();function b(e,t){var n=E(e,t);return-1===n?void 0:e[n]}function E(e,t,n,i){void 0===n&&(n=0),void 0===i&&(i=e.length);for(var r=n,o=i;r<o;){var s=Math.floor((r+o)/2);t(e[s])?r=s+1:o=s}return r-1}function L(e,t,n,i){void 0===n&&(n=0),void 0===i&&(i=e.length);for(var r=n,o=i;r<o;){var s=Math.floor((r+o)/2);t(e[s])?o=s:r=s+1}return r}var x=function(){function e(e){this._array=e,this._findLastMonotonousLastIdx=0}return e.prototype.findLastMonotonous=function(e){var t,n;if(o.assertInvariants){if(this._prevFindLastPredicate)try{for(var i=c(this._array),r=i.next();!r.done;r=i.next()){var s=r.value;if(this._prevFindLastPredicate(s)&&!e(s))throw new Error("MonotonousArray: current predicate must be weaker than (or equal to) the previous predicate.")}}catch(e){t={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}this._prevFindLastPredicate=e}var a=E(this._array,e,this._findLastMonotonousLastIdx);return this._findLastMonotonousLastIdx=a+1,-1===a?void 0:this._array[a]},e}();(o=x).assertInvariants=!1;var R=function(){function e(e,t){if(e>t)throw new m("startLineNumber ".concat(e," cannot be after endLineNumberExclusive ").concat(t));this.startLineNumber=e,this.endLineNumberExclusive=t}return e.fromRangeInclusive=function(t){return new e(t.startLineNumber,t.endLineNumber+1)},e.join=function(t){if(0===t.length)throw new m("lineRanges cannot be empty");for(var n=t[0].startLineNumber,i=t[0].endLineNumberExclusive,r=1;r<t.length;r++)n=Math.min(n,t[r].startLineNumber),i=Math.max(i,t[r].endLineNumberExclusive);return new e(n,i)},e.ofLength=function(t,n){return new e(t,t+n)},Object.defineProperty(e.prototype,"isEmpty",{get:function(){return this.startLineNumber===this.endLineNumberExclusive},enumerable:!1,configurable:!0}),e.prototype.delta=function(t){return new e(this.startLineNumber+t,this.endLineNumberExclusive+t)},Object.defineProperty(e.prototype,"length",{get:function(){return this.endLineNumberExclusive-this.startLineNumber},enumerable:!1,configurable:!0}),e.prototype.join=function(t){return new e(Math.min(this.startLineNumber,t.startLineNumber),Math.max(this.endLineNumberExclusive,t.endLineNumberExclusive))},e.prototype.intersect=function(t){var n=Math.max(this.startLineNumber,t.startLineNumber),i=Math.min(this.endLineNumberExclusive,t.endLineNumberExclusive);if(n<=i)return new e(n,i)},e.prototype.overlapOrTouch=function(e){return this.startLineNumber<=e.endLineNumberExclusive&&e.startLineNumber<=this.endLineNumberExclusive},e.prototype.toInclusiveRange=function(){return this.isEmpty?null:new w(this.startLineNumber,1,this.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER)},e.prototype.toOffsetRange=function(){return new v(this.startLineNumber-1,this.endLineNumberExclusive-1)},e}(),N=function(){function e(e){void 0===e&&(e=[]),this._normalizedRanges=e}return Object.defineProperty(e.prototype,"ranges",{get:function(){return this._normalizedRanges},enumerable:!1,configurable:!0}),e.prototype.addRange=function(e){if(0!==e.length){var t=L(this._normalizedRanges,(function(t){return t.endLineNumberExclusive>=e.startLineNumber})),n=E(this._normalizedRanges,(function(t){return t.startLineNumber<=e.endLineNumberExclusive}))+1;if(t===n)this._normalizedRanges.splice(t,0,e);else if(t===n-1){var i=this._normalizedRanges[t];this._normalizedRanges[t]=i.join(e)}else{i=this._normalizedRanges[t].join(this._normalizedRanges[n-1]).join(e);this._normalizedRanges.splice(t,n-t,i)}}},e.prototype.contains=function(e){var t=b(this._normalizedRanges,(function(t){return t.startLineNumber<=e}));return!!t&&t.endLineNumberExclusive>e},e.prototype.subtractFrom=function(t){var n=L(this._normalizedRanges,(function(e){return e.endLineNumberExclusive>=t.startLineNumber})),i=E(this._normalizedRanges,(function(e){return e.startLineNumber<=t.endLineNumberExclusive}))+1;if(n===i)return new e([t]);for(var r=[],o=t.startLineNumber,s=n;s<i;s++){var a=this._normalizedRanges[s];a.startLineNumber>o&&r.push(new R(o,a.startLineNumber)),o=a.endLineNumberExclusive}return o<t.endLineNumberExclusive&&r.push(new R(o,t.endLineNumberExclusive)),new e(r)},e.prototype.getIntersection=function(t){for(var n=[],i=0,r=0;i<this._normalizedRanges.length&&r<t._normalizedRanges.length;){var o=this._normalizedRanges[i],s=t._normalizedRanges[r],a=o.intersect(s);a&&!a.isEmpty&&n.push(a),o.endLineNumberExclusive<s.endLineNumberExclusive?i++:r++}return new e(n)},e.prototype.getWithDelta=function(t){return new e(this._normalizedRanges.map((function(e){return e.delta(t)})))},e}(),S=function(){function e(e,t){this.lineCount=e,this.columnCount=t}return e.prototype.toLineRange=function(){return R.ofLength(1,this.lineCount)},e.prototype.addToPosition=function(e){return 0===this.lineCount?new y(e.lineNumber,e.column+this.columnCount):new y(e.lineNumber+this.lineCount,this.columnCount+1)},e}();(s=S).zero=new s(0,0);var _=function(e){function t(t){return e.call(this,(function(e){return t[e-1]}),t.length)||this}return h(t,e),t}(function(){function e(e,t){!function(e,t){if(void 0===t&&(t="unexpected state"),!e)throw new m("Assertion Failed: ".concat(t))}(t>=1),this._getLineContent=e,this._lineCount=t}return e.prototype.getValueOfRange=function(e){if(e.startLineNumber===e.endLineNumber)return this._getLineContent(e.startLineNumber).substring(e.startColumn-1,e.endColumn-1);for(var t=this._getLineContent(e.startLineNumber).substring(e.startColumn-1),n=e.startLineNumber+1;n<e.endLineNumber;n++)t+="\n"+this._getLineContent(n);return t+="\n"+this._getLineContent(e.endLineNumber).substring(0,e.endColumn-1)},e.prototype.getLineLength=function(e){return this._getLineContent(e).length},Object.defineProperty(e.prototype,"length",{get:function(){var e=this._getLineContent(this._lineCount);return new S(this._lineCount-1,e.length)},enumerable:!1,configurable:!0}),e}()),A=function(e,t,n){this.changes=e,this.moves=t,this.hitTimeout=n},C=function(e,t){this.lineRangeMapping=e,this.changes=t},B=function(){function e(e,t){this.original=e,this.modified=t}return e.prototype.join=function(t){return new e(this.original.join(t.original),this.modified.join(t.modified))},Object.defineProperty(e.prototype,"changedLineCount",{get:function(){return Math.max(this.original.length,this.modified.length)},enumerable:!1,configurable:!0}),e.prototype.toRangeMapping=function(){var e=this.original.toInclusiveRange(),t=this.modified.toInclusiveRange();if(e&&t)return new q(e,t);if(1===this.original.startLineNumber||1===this.modified.startLineNumber){if(1!==this.modified.startLineNumber||1!==this.original.startLineNumber)throw new m("not a valid diff");return new q(new w(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new w(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1))}return new q(new w(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),new w(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER))},e.prototype.toRangeMapping2=function(e,t){if(M(this.original.endLineNumberExclusive,e)&&M(this.modified.endLineNumberExclusive,t))return new q(new w(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new w(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1));if(!this.original.isEmpty&&!this.modified.isEmpty)return new q(w.fromPositions(new y(this.original.startLineNumber,1),$(new y(this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),e)),w.fromPositions(new y(this.modified.startLineNumber,1),$(new y(this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),t)));if(this.original.startLineNumber>1&&this.modified.startLineNumber>1)return new q(w.fromPositions($(new y(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER),e),$(new y(this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),e)),w.fromPositions($(new y(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER),t),$(new y(this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),t)));throw new m},e}();function $(e,t){if(e.lineNumber<1)return new y(1,1);if(e.lineNumber>t.length)return new y(t.length,t[t.length-1].length+1);var n=t[e.lineNumber-1];return e.column>n.length+1?new y(e.lineNumber,n.length+1):e}function M(e,t){return e>=1&&e<=t.length}var k=function(e){function t(t,n,i){var r=e.call(this,t,n)||this;return r.innerChanges=i,r}return h(t,e),t.fromRangeMappings=function(e){return new t(R.join(e.map((function(e){return R.fromRangeInclusive(e.originalRange)}))),R.join(e.map((function(e){return R.fromRangeInclusive(e.modifiedRange)}))),e)},t.prototype.flip=function(){var e;return new t(this.modified,this.original,null===(e=this.innerChanges)||void 0===e?void 0:e.map((function(e){return e.flip()})))},t.prototype.withInnerChangesFromLineRanges=function(){return new t(this.original,this.modified,[this.toRangeMapping()])},t}(B),q=function(){function e(e,t){this.originalRange=e,this.modifiedRange=t}return e.join=function(e){if(0===e.length)throw new m("Cannot join an empty list of range mappings");for(var t=e[0],n=1;n<e.length;n++)t=t.join(e[n]);return t},e.assertSorted=function(e){for(var t=1;t<e.length;t++){var n=e[t-1],i=e[t];if(!n.originalRange.getEndPosition().isBeforeOrEqual(i.originalRange.getStartPosition())||!n.modifiedRange.getEndPosition().isBeforeOrEqual(i.modifiedRange.getStartPosition()))throw new m("Range mappings must be sorted")}},e.prototype.flip=function(){return new e(this.modifiedRange,this.originalRange)},e.prototype.join=function(t){return new e(this.originalRange.plusRange(t.originalRange),this.modifiedRange.plusRange(t.modifiedRange))},e}();function D(e,t,n,i){var r,o;void 0===i&&(i=!1);var s=[];try{for(var a=c(function(e,t){var n,i,r,o,s,a,u,l;return d(this,(function(h){switch(h.label){case 0:h.trys.push([0,8,9,10]),r=c(e),o=r.next(),h.label=1;case 1:return o.done?[3,7]:(s=o.value,void 0!==i&&t(i,s)?(n.push(s),[3,5]):[3,2]);case 2:return n?[4,n]:[3,4];case 3:h.sent(),h.label=4;case 4:n=[s],h.label=5;case 5:i=s,h.label=6;case 6:return o=r.next(),[3,1];case 7:return[3,10];case 8:return a=h.sent(),u={error:a},[3,10];case 9:try{o&&!o.done&&(l=r.return)&&l.call(r)}finally{if(u)throw u.error}return[7];case 10:return n?[4,n]:[3,12];case 11:h.sent(),h.label=12;case 12:return[2]}}))}(e.map((function(e){return function(e,t,n){var i=0,r=0;1===e.modifiedRange.endColumn&&1===e.originalRange.endColumn&&e.originalRange.startLineNumber+i<=e.originalRange.endLineNumber&&e.modifiedRange.startLineNumber+i<=e.modifiedRange.endLineNumber&&(r=-1);e.modifiedRange.startColumn-1>=n.getLineLength(e.modifiedRange.startLineNumber)&&e.originalRange.startColumn-1>=t.getLineLength(e.originalRange.startLineNumber)&&e.originalRange.startLineNumber<=e.originalRange.endLineNumber+r&&e.modifiedRange.startLineNumber<=e.modifiedRange.endLineNumber+r&&(i=1);var o=new R(e.originalRange.startLineNumber+i,e.originalRange.endLineNumber+1+r),s=new R(e.modifiedRange.startLineNumber+i,e.modifiedRange.endLineNumber+1+r);return new k(o,s,[e])}(e,t,n)})),(function(e,t){return e.original.overlapOrTouch(t.original)||e.modified.overlapOrTouch(t.modified)}))),u=a.next();!u.done;u=a.next()){var l=u.value,h=l[0],f=l[l.length-1];s.push(new k(h.original.join(f.original),h.modified.join(f.modified),l.map((function(e){return e.innerChanges[0]}))))}}catch(e){r={error:e}}finally{try{u&&!u.done&&(o=a.return)&&o.call(a)}finally{if(r)throw r.error}}return p((function(){if(!i&&s.length>0){if(s[0].modified.startLineNumber!==s[0].original.startLineNumber)return!1;if(n.length.lineCount-s[s.length-1].modified.endLineNumberExclusive!=t.length.lineCount-s[s.length-1].original.endLineNumberExclusive)return!1}return function(e,t){for(var n=0;n<e.length-1;){if(!t(e[n],e[n+1]))return!1;n++}return!0}(s,(function(e,t){return t.original.startLineNumber-e.original.endLineNumberExclusive==t.modified.startLineNumber-e.modified.endLineNumberExclusive&&e.original.endLineNumberExclusive<t.original.startLineNumber&&e.modified.endLineNumberExclusive<t.modified.startLineNumber}))})),s}var T=function(){function e(e,t){this.diffs=e,this.hitTimeout=t}return e.trivial=function(t,n){return new e([new O(v.ofLength(t.length),v.ofLength(n.length))],!1)},e.trivialTimedOut=function(t,n){return new e([new O(v.ofLength(t.length),v.ofLength(n.length))],!0)},e}(),O=function(){function e(e,t){this.seq1Range=e,this.seq2Range=t}return e.invert=function(t,n){var i=[];return function(e,t){for(var n=0;n<=e.length;n++)t(0===n?void 0:e[n-1],n===e.length?void 0:e[n])}(t,(function(t,r){i.push(e.fromOffsetPairs(t?t.getEndExclusives():I.zero,r?r.getStarts():new I(n,(t?t.seq2Range.endExclusive-t.seq1Range.endExclusive:0)+n)))})),i},e.fromOffsetPairs=function(t,n){return new e(new v(t.offset1,n.offset1),new v(t.offset2,n.offset2))},e.assertSorted=function(e){var t,n,i=void 0;try{for(var r=c(e),o=r.next();!o.done;o=r.next()){var s=o.value;if(i&&!(i.seq1Range.endExclusive<=s.seq1Range.start&&i.seq2Range.endExclusive<=s.seq2Range.start))throw new m("Sequence diffs must be sorted");i=s}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}},e.prototype.swap=function(){return new e(this.seq2Range,this.seq1Range)},e.prototype.join=function(t){return new e(this.seq1Range.join(t.seq1Range),this.seq2Range.join(t.seq2Range))},e.prototype.delta=function(t){return 0===t?this:new e(this.seq1Range.delta(t),this.seq2Range.delta(t))},e.prototype.deltaStart=function(t){return 0===t?this:new e(this.seq1Range.deltaStart(t),this.seq2Range.deltaStart(t))},e.prototype.deltaEnd=function(t){return 0===t?this:new e(this.seq1Range.deltaEnd(t),this.seq2Range.deltaEnd(t))},e.prototype.intersect=function(t){var n=this.seq1Range.intersect(t.seq1Range),i=this.seq2Range.intersect(t.seq2Range);if(n&&i)return new e(n,i)},e.prototype.getStarts=function(){return new I(this.seq1Range.start,this.seq2Range.start)},e.prototype.getEndExclusives=function(){return new I(this.seq1Range.endExclusive,this.seq2Range.endExclusive)},e}(),I=function(){function e(e,t){this.offset1=e,this.offset2=t}return e.prototype.delta=function(e){return 0===e?this:new a(this.offset1+e,this.offset2+e)},e.prototype.equals=function(e){return this.offset1===e.offset1&&this.offset2===e.offset2},e}();(a=I).zero=new a(0,0),a.max=new a(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER);var W=function(){function e(){}return e.prototype.isValid=function(){return!0},e}();(u=W).instance=new u;var P=function(){function e(e){if(this.timeout=e,this.startTime=Date.now(),this.valid=!0,e<=0)throw new m("timeout must be positive")}return e.prototype.isValid=function(){return!(Date.now()-this.startTime<this.timeout)&&this.valid&&(this.valid=!1),this.valid},e.prototype.disable=function(){this.timeout=Number.MAX_SAFE_INTEGER,this.isValid=function(){return!0},this.valid=!0},e}(),F=function(){function e(e,t){this.width=e,this.height=t,this.array=[],this.array=new Array(e*t)}return e.prototype.get=function(e,t){return this.array[e+t*this.width]},e.prototype.set=function(e,t,n){this.array[e+t*this.width]=n},e}();function j(e){return 32===e||9===e}var H=function(){function e(e,t,n){this.range=e,this.lines=t,this.source=n,this.histogram=[];for(var i=0,r=e.startLineNumber-1;r<e.endLineNumberExclusive-1;r++){for(var o=t[r],s=0;s<o.length;s++){i++;var a=o[s],u=l.getKey(a);this.histogram[u]=(this.histogram[u]||0)+1}i++;var h=l.getKey("\n");this.histogram[h]=(this.histogram[h]||0)+1}this.totalCount=i}return e.getKey=function(e){var t=this.chrKeys.get(e);return void 0===t&&(t=this.chrKeys.size,this.chrKeys.set(e,t)),t},e.prototype.computeSimilarity=function(e){for(var t,n,i=0,r=Math.max(this.histogram.length,e.histogram.length),o=0;o<r;o++)i+=Math.abs((null!==(t=this.histogram[o])&&void 0!==t?t:0)-(null!==(n=e.histogram[o])&&void 0!==n?n:0));return 1-i/(this.totalCount+e.totalCount)},e}();(l=H).chrKeys=new Map;var z=function(){function e(){}return e.prototype.compute=function(e,t,n,i){if(void 0===n&&(n=W.instance),0===e.length||0===t.length)return T.trivial(e,t);for(var r=new F(e.length,t.length),o=new F(e.length,t.length),s=new F(e.length,t.length),a=0;a<e.length;a++)for(var u=0;u<t.length;u++){if(!n.isValid())return T.trivialTimedOut(e,t);var l=0===a?0:r.get(a-1,u),h=0===u?0:r.get(a,u-1),d=void 0;e.getElement(a)===t.getElement(u)?(d=0===a||0===u?0:r.get(a-1,u-1),a>0&&u>0&&3===o.get(a-1,u-1)&&(d+=s.get(a-1,u-1)),d+=i?i(a,u):1):d=-1;var c=Math.max(l,h,d);if(c===d){var f=a>0&&u>0?s.get(a-1,u-1):0;s.set(a,u,f+1),o.set(a,u,3)}else c===l?(s.set(a,u,0),o.set(a,u,1)):c===h&&(s.set(a,u,0),o.set(a,u,2));r.set(a,u,c)}var g=[],m=e.length,p=t.length;function y(e,t){e+1===m&&t+1===p||g.push(new O(new v(e+1,m),new v(t+1,p))),m=e,p=t}for(var w=e.length-1,b=t.length-1;w>=0&&b>=0;)3===o.get(w,b)?(y(w,b),w--,b--):1===o.get(w,b)?w--:b--;return y(-1,-1),g.reverse(),new T(g,!1)},e}(),V=function(){function e(){}return e.prototype.compute=function(e,t,n){if(void 0===n&&(n=W.instance),0===e.length||0===t.length)return T.trivial(e,t);var i=e,r=t;function o(e,t){for(;e<i.length&&t<r.length&&i.getElement(e)===r.getElement(t);)e++,t++;return e}var s=0,a=new X;a.set(0,o(0,0));var u=new U;u.set(0,0===a.get(0)?null:new G(null,0,0,a.get(0)));var l=0;e:for(;;){if(s++,!n.isValid())return T.trivialTimedOut(i,r);var h=-Math.min(s,r.length+s%2),d=Math.min(s,i.length+s%2);for(l=h;l<=d;l+=2){var c=l===d?-1:a.get(l+1),f=l===h?-1:a.get(l-1)+1,g=Math.min(Math.max(c,f),i.length),m=g-l;if(!(g>i.length||m>r.length)){var p=o(g,m);a.set(l,p);var y=g===c?u.get(l+1):u.get(l-1);if(u.set(l,p!==g?new G(y,g,m,p-g):y),a.get(l)===i.length&&a.get(l)-l===r.length)break e}}}for(var w=u.get(l),b=[],E=i.length,L=r.length;;){var x=w?w.x+w.length:0,R=w?w.y+w.length:0;if(x===E&&R===L||b.push(new O(new v(x,E),new v(R,L))),!w)break;E=w.x,L=w.y,w=w.prev}return b.reverse(),new T(b,!1)},e}(),G=function(e,t,n,i){this.prev=e,this.x=t,this.y=n,this.length=i},X=function(){function e(){this.positiveArr=new Int32Array(10),this.negativeArr=new Int32Array(10)}return e.prototype.get=function(e){return e<0?(e=-e-1,this.negativeArr[e]):this.positiveArr[e]},e.prototype.set=function(e,t){if(e<0){if((e=-e-1)>=this.negativeArr.length){var n=this.negativeArr;this.negativeArr=new Int32Array(2*n.length),this.negativeArr.set(n)}this.negativeArr[e]=t}else{if(e>=this.positiveArr.length){n=this.positiveArr;this.positiveArr=new Int32Array(2*n.length),this.positiveArr.set(n)}this.positiveArr[e]=t}},e}(),U=function(){function e(){this.positiveArr=[],this.negativeArr=[]}return e.prototype.get=function(e){return e<0?(e=-e-1,this.negativeArr[e]):this.positiveArr[e]},e.prototype.set=function(e,t){e<0?(e=-e-1,this.negativeArr[e]=t):this.positiveArr[e]=t},e}(),Z=function(){function e(){this.map=new Map}return e.prototype.add=function(e,t){var n=this.map.get(e);n||(n=new Set,this.map.set(e,n)),n.add(t)},e.prototype.forEach=function(e,t){var n=this.map.get(e);n&&n.forEach(t)},e.prototype.get=function(e){var t=this.map.get(e);return t||new Set},e}(),K=function(){function e(e,t,n){this.lines=e,this.range=t,this.considerWhitespaceChanges=n,this.elements=[],this.firstElementOffsetByLineIdx=[],this.lineStartOffsets=[],this.trimmedWsLengthsByLineIdx=[],this.firstElementOffsetByLineIdx.push(0);for(var i=this.range.startLineNumber;i<=this.range.endLineNumber;i++){var r=e[i-1],o=0;i===this.range.startLineNumber&&this.range.startColumn>1&&(o=this.range.startColumn-1,r=r.substring(o)),this.lineStartOffsets.push(o);var s=0;if(!n){var a=r.trimStart();s=r.length-a.length,r=a.trimEnd()}this.trimmedWsLengthsByLineIdx.push(s);for(var u=i===this.range.endLineNumber?Math.min(this.range.endColumn-1-o-s,r.length):r.length,l=0;l<u;l++)this.elements.push(r.charCodeAt(l));i<this.range.endLineNumber&&(this.elements.push("\n".charCodeAt(0)),this.firstElementOffsetByLineIdx.push(this.elements.length))}}return e.prototype.toString=function(){return'Slice: "'.concat(this.text,'"')},Object.defineProperty(e.prototype,"text",{get:function(){return this.getText(new v(0,this.length))},enumerable:!1,configurable:!0}),e.prototype.getText=function(e){return this.elements.slice(e.start,e.endExclusive).map((function(e){return String.fromCharCode(e)})).join("")},e.prototype.getElement=function(e){return this.elements[e]},Object.defineProperty(e.prototype,"length",{get:function(){return this.elements.length},enumerable:!1,configurable:!0}),e.prototype.getBoundaryScore=function(e){var t=te(e>0?this.elements[e-1]:-1),n=te(e<this.elements.length?this.elements[e]:-1);if(7===t&&8===n)return 0;if(8===t)return 150;var i=0;return t!==n&&(i+=10,0===t&&1===n&&(i+=1)),i+=ee(t),i+=ee(n)},e.prototype.translateOffset=function(e,t){void 0===t&&(t="right");var n=E(this.firstElementOffsetByLineIdx,(function(t){return t<=e})),i=e-this.firstElementOffsetByLineIdx[n];return new y(this.range.startLineNumber+n,1+this.lineStartOffsets[n]+i+(0===i&&"left"===t?0:this.trimmedWsLengthsByLineIdx[n]))},e.prototype.translateRange=function(e){var t=this.translateOffset(e.start,"right"),n=this.translateOffset(e.endExclusive,"left");return n.isBefore(t)?w.fromPositions(n,n):w.fromPositions(t,n)},e.prototype.findWordContaining=function(e){if(!(e<0||e>=this.elements.length)&&Y(this.elements[e])){for(var t=e;t>0&&Y(this.elements[t-1]);)t--;for(var n=e;n<this.elements.length&&Y(this.elements[n]);)n++;return new v(t,n)}},e.prototype.findSubWordContaining=function(e){if(!(e<0||e>=this.elements.length)&&Y(this.elements[e])){for(var t=e;t>0&&Y(this.elements[t-1])&&!J(this.elements[t]);)t--;for(var n=e;n<this.elements.length&&Y(this.elements[n])&&!J(this.elements[n]);)n++;return new v(t,n)}},e.prototype.countLinesIn=function(e){return this.translateOffset(e.endExclusive).lineNumber-this.translateOffset(e.start).lineNumber},e.prototype.isStronglyEqual=function(e,t){return this.elements[e]===this.elements[t]},e.prototype.extendToFullLines=function(e){var t,n,i,r,o=null!==(t=b(this.firstElementOffsetByLineIdx,(function(t){return t<=e.start})))&&void 0!==t?t:0,s=null!==(i=this.firstElementOffsetByLineIdx,n=(r=L(i,(function(t){return e.endExclusive<=t})))===i.length?void 0:i[r])&&void 0!==n?n:this.elements.length;return new v(o,s)},e}();function Y(e){return e>=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57}function J(e){return e>=65&&e<=90}var Q=((r={})[0]=0,r[1]=0,r[2]=0,r[3]=10,r[4]=2,r[5]=30,r[6]=3,r[7]=10,r[8]=10,r);function ee(e){return Q[e]}function te(e){return 10===e?8:13===e?7:j(e)?6:e>=97&&e<=122?0:e>=65&&e<=90?1:e>=48&&e<=57?2:-1===e?3:44===e||59===e?5:4}function ne(e,t,n,i,r,o){var s=function(e,t,n,i){var r,o,s,a,u=[],l=e.filter((function(e){return e.modified.isEmpty&&e.original.length>=3})).map((function(e){return new H(e.original,t,e)})),h=new Set(e.filter((function(e){return e.original.isEmpty&&e.modified.length>=3})).map((function(e){return new H(e.modified,n,e)}))),d=new Set;try{for(var f=c(l),g=f.next();!g.done;g=f.next()){var m=g.value,p=-1,v=void 0;try{for(var y=(s=void 0,c(h)),w=y.next();!w.done;w=y.next()){var b=w.value,E=m.computeSimilarity(b);E>p&&(p=E,v=b)}}catch(e){s={error:e}}finally{try{w&&!w.done&&(a=y.return)&&a.call(y)}finally{if(s)throw s.error}}if(p>.9&&v&&(h.delete(v),u.push(new B(m.range,v.range)),d.add(m.source),d.add(v.source)),!i.isValid())return{moves:u,excludedChanges:d}}}catch(e){r={error:e}}finally{try{g&&!g.done&&(o=f.return)&&o.call(f)}finally{if(r)throw r.error}}return{moves:u,excludedChanges:d}}(e,t,n,o),a=s.moves,u=s.excludedChanges;if(!o.isValid())return[];var l=function(e,t,n,i,r,o){var s,a,u,l,h,d,m,p,v=[],y=new Z;try{for(var w=c(e),E=w.next();!E.done;E=w.next())for(var L=(M=E.value).original.startLineNumber;L<M.original.endLineNumberExclusive-2;L++){var S="".concat(t[L-1],":").concat(t[L+1-1],":").concat(t[L+2-1]);y.add(S,{range:new R(L,L+3)})}}catch(e){s={error:e}}finally{try{E&&!E.done&&(a=w.return)&&a.call(w)}finally{if(s)throw s.error}}var _=[];e.sort(f((function(e){return e.modified.startLineNumber}),g));var A=function(e){for(var t=[],i=function(e){var i="".concat(n[e-1],":").concat(n[e+1-1],":").concat(n[e+2-1]),r=new R(e,e+3),o=[];y.forEach(i,(function(e){var n,i,s=e.range;try{for(var a=(n=void 0,c(t)),u=a.next();!u.done;u=a.next()){var l=u.value;if(l.originalLineRange.endLineNumberExclusive+1===s.endLineNumberExclusive&&l.modifiedLineRange.endLineNumberExclusive+1===r.endLineNumberExclusive)return l.originalLineRange=new R(l.originalLineRange.startLineNumber,s.endLineNumberExclusive),l.modifiedLineRange=new R(l.modifiedLineRange.startLineNumber,r.endLineNumberExclusive),void o.push(l)}}catch(e){n={error:e}}finally{try{u&&!u.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}var h={modifiedLineRange:r,originalLineRange:s};_.push(h),o.push(h)})),t=o},r=e.modified.startLineNumber;r<e.modified.endLineNumberExclusive-2;r++)i(r);if(!o.isValid())return{value:[]}};try{for(var C=c(e),$=C.next();!$.done;$=C.next()){var M,k=A(M=$.value);if("object"==typeof k)return k.value}}catch(e){u={error:e}}finally{try{$&&!$.done&&(l=C.return)&&l.call(C)}finally{if(u)throw u.error}}_.sort((q=f((function(e){return e.modifiedLineRange.length}),g),function(e,t){return-q(e,t)}));var q;var D=new N,T=new N;try{for(var O=c(_),I=O.next();!I.done;I=O.next()){var W=I.value,P=W.modifiedLineRange.startLineNumber-W.originalLineRange.startLineNumber,F=D.subtractFrom(W.modifiedLineRange),j=T.subtractFrom(W.originalLineRange).getWithDelta(P),H=F.getIntersection(j);try{for(var z=(m=void 0,c(H.ranges)),V=z.next();!V.done;V=z.next()){var G=V.value;if(!(G.length<3)){var X=G,U=G.delta(-P);v.push(new B(U,X)),D.addRange(X),T.addRange(U)}}}catch(e){m={error:e}}finally{try{V&&!V.done&&(p=z.return)&&p.call(z)}finally{if(m)throw m.error}}}}catch(e){h={error:e}}finally{try{I&&!I.done&&(d=O.return)&&d.call(O)}finally{if(h)throw h.error}}v.sort(f((function(e){return e.original.startLineNumber}),g));var K=new x(e),Y=function(t){var n=v[t],s=K.findLastMonotonous((function(e){return e.original.startLineNumber<=n.original.startLineNumber})),a=b(e,(function(e){return e.modified.startLineNumber<=n.modified.startLineNumber})),u=Math.max(n.original.startLineNumber-s.original.startLineNumber,n.modified.startLineNumber-a.modified.startLineNumber),l=K.findLastMonotonous((function(e){return e.original.startLineNumber<n.original.endLineNumberExclusive})),h=b(e,(function(e){return e.modified.startLineNumber<n.modified.endLineNumberExclusive})),d=Math.max(l.original.endLineNumberExclusive-n.original.endLineNumberExclusive,h.modified.endLineNumberExclusive-n.modified.endLineNumberExclusive),c=void 0;for(c=0;c<u;c++){var f=n.original.startLineNumber-c-1,g=n.modified.startLineNumber-c-1;if(f>i.length||g>r.length)break;if(D.contains(g)||T.contains(f))break;if(!ie(i[f-1],r[g-1],o))break}c>0&&(T.addRange(new R(n.original.startLineNumber-c,n.original.startLineNumber)),D.addRange(new R(n.modified.startLineNumber-c,n.modified.startLineNumber)));var m=void 0;for(m=0;m<d;m++){f=n.original.endLineNumberExclusive+m,g=n.modified.endLineNumberExclusive+m;if(f>i.length||g>r.length)break;if(D.contains(g)||T.contains(f))break;if(!ie(i[f-1],r[g-1],o))break}m>0&&(T.addRange(new R(n.original.endLineNumberExclusive,n.original.endLineNumberExclusive+m)),D.addRange(new R(n.modified.endLineNumberExclusive,n.modified.endLineNumberExclusive+m))),(c>0||m>0)&&(v[t]=new B(new R(n.original.startLineNumber-c,n.original.endLineNumberExclusive+m),new R(n.modified.startLineNumber-c,n.modified.endLineNumberExclusive+m)))};for(L=0;L<v.length;L++)Y(L);return v}(e.filter((function(e){return!u.has(e)})),i,r,t,n,o);return function(e,t){var n,i;try{for(var r=c(t),o=r.next();!o.done;o=r.next()){var s=o.value;e.push(s)}}catch(e){n={error:e}}finally{try{o&&!o.done&&(i=r.return)&&i.call(r)}finally{if(n)throw n.error}}}(a,l),a=(a=function(e){if(0===e.length)return e;e.sort(f((function(e){return e.original.startLineNumber}),g));for(var t=[e[0]],n=1;n<e.length;n++){var i=t[t.length-1],r=e[n],o=r.original.startLineNumber-i.original.endLineNumberExclusive,s=r.modified.startLineNumber-i.modified.endLineNumberExclusive;o>=0&&s>=0&&o+s<=2?t[t.length-1]=i.join(r):t.push(r)}return t}(a)).filter((function(e){var n=e.original.toOffsetRange().slice(t).map((function(e){return e.trim()}));return n.join("\n").length>=15&&function(e,t){var n,i,r=0;try{for(var o=c(e),s=o.next();!s.done;s=o.next()){t(s.value)&&r++}}catch(e){n={error:e}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return r}(n,(function(e){return e.length>=2}))>=2})),a=function(e,t){var n=new x(e);return t=t.filter((function(t){return(n.findLastMonotonous((function(e){return e.original.startLineNumber<t.original.endLineNumberExclusive}))||new B(new R(1,1),new R(1,1)))!==b(e,(function(e){return e.modified.startLineNumber<t.modified.endLineNumberExclusive}))})),t}(e,a),a}function ie(e,t,n){var i,r;if(e.trim()===t.trim())return!0;if(e.length>300&&t.length>300)return!1;var o=(new V).compute(new K([e],new w(1,1,1,e.length),!1),new K([t],new w(1,1,1,t.length),!1),n),s=0,a=O.invert(o.diffs,e.length);try{for(var u=c(a),l=u.next();!l.done;l=u.next()){l.value.seq1Range.forEach((function(t){j(e.charCodeAt(t))||s++}))}}catch(e){i={error:e}}finally{try{l&&!l.done&&(r=u.return)&&r.call(u)}finally{if(i)throw i.error}}var h=function(t){for(var n=0,i=0;i<e.length;i++)j(t.charCodeAt(i))||n++;return n}(e.length>t.length?e:t);return s/h>.6&&h>10}function re(e,t,n){var i=n;return i=oe(e,t,i),i=function(e,t,n){if(!e.getBoundaryScore||!t.getBoundaryScore)return n;for(var i=0;i<n.length;i++){var r=i>0?n[i-1]:void 0,o=n[i],s=i+1<n.length?n[i+1]:void 0,a=new v(r?r.seq1Range.endExclusive+1:0,s?s.seq1Range.start-1:e.length),u=new v(r?r.seq2Range.endExclusive+1:0,s?s.seq2Range.start-1:t.length);o.seq1Range.isEmpty?n[i]=se(o,e,t,a,u):o.seq2Range.isEmpty&&(n[i]=se(o.swap(),t,e,u,a).swap())}return n}(e,t,i=oe(e,t,i)),i}function oe(e,t,n){if(0===n.length)return n;var i=[];i.push(n[0]);for(var r=1;r<n.length;r++){var o=i[i.length-1];if((l=n[r]).seq1Range.isEmpty||l.seq2Range.isEmpty){var s=l.seq1Range.start-o.seq1Range.endExclusive,a=void 0;for(a=1;a<=s&&(e.getElement(l.seq1Range.start-a)===e.getElement(l.seq1Range.endExclusive-a)&&t.getElement(l.seq2Range.start-a)===t.getElement(l.seq2Range.endExclusive-a));a++);if(--a===s){i[i.length-1]=new O(new v(o.seq1Range.start,l.seq1Range.endExclusive-s),new v(o.seq2Range.start,l.seq2Range.endExclusive-s));continue}l=l.delta(-a)}i.push(l)}var u=[];for(r=0;r<i.length-1;r++){var l,h=i[r+1];if((l=i[r]).seq1Range.isEmpty||l.seq2Range.isEmpty){s=h.seq1Range.start-l.seq1Range.endExclusive,a=void 0;for(a=0;a<s&&(e.isStronglyEqual(l.seq1Range.start+a,l.seq1Range.endExclusive+a)&&t.isStronglyEqual(l.seq2Range.start+a,l.seq2Range.endExclusive+a));a++);if(a===s){i[r+1]=new O(new v(l.seq1Range.start+s,h.seq1Range.endExclusive),new v(l.seq2Range.start+s,h.seq2Range.endExclusive));continue}a>0&&(l=l.delta(a))}u.push(l)}return i.length>0&&u.push(i[i.length-1]),u}function se(e,t,n,i,r){for(var o=1;e.seq1Range.start-o>=i.start&&e.seq2Range.start-o>=r.start&&n.isStronglyEqual(e.seq2Range.start-o,e.seq2Range.endExclusive-o)&&o<100;)o++;o--;for(var s=0;e.seq1Range.start+s<i.endExclusive&&e.seq2Range.endExclusive+s<r.endExclusive&&n.isStronglyEqual(e.seq2Range.start+s,e.seq2Range.endExclusive+s)&&s<100;)s++;if(0===o&&0===s)return e;for(var a=0,u=-1,l=-o;l<=s;l++){var h=e.seq2Range.start+l,d=e.seq2Range.endExclusive+l,c=e.seq1Range.start+l,f=t.getBoundaryScore(c)+n.getBoundaryScore(h)+n.getBoundaryScore(d);f>u&&(u=f,a=l)}return e.delta(a)}function ae(e,t,n,i,r){void 0===r&&(r=!1);var o=O.invert(n,e.length),s=[],a=new I(0,0);function u(n,u){if(!(n.offset1<a.offset1||n.offset2<a.offset2)){var l=i(e,n.offset1),h=i(t,n.offset2);if(l&&h){for(var d=new O(l,h),c=d.intersect(u),f=c.seq1Range.length,g=c.seq2Range.length;o.length>0;){var m=o[0];if(!(m.seq1Range.intersects(d.seq1Range)||m.seq2Range.intersects(d.seq2Range)))break;var p=i(e,m.seq1Range.start),v=i(t,m.seq2Range.start),y=new O(p,v),w=y.intersect(m);if(f+=w.seq1Range.length,g+=w.seq2Range.length,!((d=d.join(y)).seq1Range.endExclusive>=m.seq1Range.endExclusive))break;o.shift()}(r&&f+g<d.seq1Range.length+d.seq2Range.length||f+g<2*(d.seq1Range.length+d.seq2Range.length)/3)&&s.push(d),a=d.getEndExclusives()}}}for(;o.length>0;){var l=o.shift();l.seq1Range.isEmpty||(u(l.getStarts(),l),u(l.getEndExclusives().delta(-1),l))}var h=function(e,t){var n=[];for(;e.length>0||t.length>0;){var i=e[0],r=t[0],o=void 0;o=i&&(!r||i.seq1Range.start<r.seq1Range.start)?e.shift():t.shift(),n.length>0&&n[n.length-1].seq1Range.endExclusive>=o.seq1Range.start?n[n.length-1]=n[n.length-1].join(o):n.push(o)}return n}(n,s);return h}var ue=function(){function e(e,t){this.trimmedHash=e,this.lines=t}return e.prototype.getElement=function(e){return this.trimmedHash[e]},Object.defineProperty(e.prototype,"length",{get:function(){return this.trimmedHash.length},enumerable:!1,configurable:!0}),e.prototype.getBoundaryScore=function(e){return 1e3-((0===e?0:le(this.lines[e-1]))+(e===this.lines.length?0:le(this.lines[e])))},e.prototype.getText=function(e){return this.lines.slice(e.start,e.endExclusive).join("\n")},e.prototype.isStronglyEqual=function(e,t){return this.lines[e]===this.lines[t]},e}();function le(e){for(var t=0;t<e.length&&(32===e.charCodeAt(t)||9===e.charCodeAt(t));)t++;return t}var he=function(){function e(){this.dynamicProgrammingDiffing=new z,this.myersDiffingAlgorithm=new V}return e.prototype.computeDiff=function(e,t,n){var i,r,o=this;if(e.length<=1&&function(e,t,n){if(void 0===n&&(n=function(e,t){return e===t}),e===t)return!0;if(!e||!t)return!1;if(e.length!==t.length)return!1;for(var i=0,r=e.length;i<r;i++)if(!n(e[i],t[i]))return!1;return!0}(e,t,(function(e,t){return e===t})))return new A([],[],!1);if(1===e.length&&0===e[0].length||1===t.length&&0===t[0].length)return new A([new k(new R(1,e.length+1),new R(1,t.length+1),[new q(new w(1,1,e.length,e[e.length-1].length+1),new w(1,1,t.length,t[t.length-1].length+1))])],[],!1);var s=0===n.maxComputationTimeMs?W.instance:new P(n.maxComputationTimeMs),a=!n.ignoreTrimWhitespace,u=new Map;function l(e){var t=u.get(e);return void 0===t&&(t=u.size,u.set(e,t)),t}var h=e.map((function(e){return l(e.trim())})),d=t.map((function(e){return l(e.trim())})),f=new ue(h,e),g=new ue(d,t),m=f.length+g.length<1700?o.dynamicProgrammingDiffing.compute(f,g,s,(function(n,i){return e[n]===t[i]?0===t[i].length?.1:1+Math.log(1+t[i].length):.99})):o.myersDiffingAlgorithm.compute(f,g,s),y=m.diffs,b=m.hitTimeout;y=re(f,g,y),y=function(e,t,n){var i=n;if(0===i.length)return i;var r,o=0;do{r=!1;for(var s=[i[0]],a=function(t){var n,o,a,u=i[t],l=s[s.length-1];n=l,o=u,a=new v(l.seq1Range.endExclusive,u.seq1Range.start),e.getText(a).replace(/\s/g,"").length<=4&&(n.seq1Range.length+n.seq2Range.length>5||o.seq1Range.length+o.seq2Range.length>5)?(r=!0,s[s.length-1]=s[s.length-1].join(u)):s.push(u)},u=1;u<i.length;u++)a(u);i=s}while(o++<10&&r);return i}(f,0,y);var E=[],L=function(i){var r,u;if(a)for(var l=0;l<i;l++){var h=x+l,d=N+l;if(e[h]!==t[d]){var f=o.refineDiff(e,t,new O(new v(h,h+1),new v(d,d+1)),s,a,n);try{for(var g=(r=void 0,c(f.mappings)),m=g.next();!m.done;m=g.next()){var p=m.value;E.push(p)}}catch(e){r={error:e}}finally{try{m&&!m.done&&(u=g.return)&&u.call(g)}finally{if(r)throw r.error}}f.hitTimeout&&(b=!0)}}},x=0,N=0,S=function(i){var r,o;p((function(){return i.seq1Range.start-x==i.seq2Range.start-N}));var u=i.seq1Range.start-x;L(u),x=i.seq1Range.endExclusive,N=i.seq2Range.endExclusive;var l=C.refineDiff(e,t,i,s,a,n);l.hitTimeout&&(b=!0);try{for(var h=(r=void 0,c(l.mappings)),d=h.next();!d.done;d=h.next()){var f=d.value;E.push(f)}}catch(e){r={error:e}}finally{try{d&&!d.done&&(o=h.return)&&o.call(h)}finally{if(r)throw r.error}}},C=this;try{for(var B=c(y),$=B.next();!$.done;$=B.next()){S($.value)}}catch(e){i={error:e}}finally{try{$&&!$.done&&(r=B.return)&&r.call(B)}finally{if(i)throw i.error}}L(e.length-x);var M=D(E,new _(e),new _(t)),T=[];return n.computeMoves&&(T=this.computeMoves(M,e,t,h,d,s,a,n)),p((function(){var n,i,r,o;function s(e,t){if(e.lineNumber<1||e.lineNumber>t.length)return!1;var n=t[e.lineNumber-1];return!(e.column<1||e.column>n.length+1)}function a(e,t){return!(e.startLineNumber<1||e.startLineNumber>t.length+1)&&!(e.endLineNumberExclusive<1||e.endLineNumberExclusive>t.length+1)}try{for(var u=c(M),l=u.next();!l.done;l=u.next()){var h=l.value;if(!h.innerChanges)return!1;try{for(var d=(r=void 0,c(h.innerChanges)),f=d.next();!f.done;f=d.next()){var g=f.value;if(!(s(g.modifiedRange.getStartPosition(),t)&&s(g.modifiedRange.getEndPosition(),t)&&s(g.originalRange.getStartPosition(),e)&&s(g.originalRange.getEndPosition(),e)))return!1}}catch(e){r={error:e}}finally{try{f&&!f.done&&(o=d.return)&&o.call(d)}finally{if(r)throw r.error}}if(!a(h.modified,t)||!a(h.original,e))return!1}}catch(e){n={error:e}}finally{try{l&&!l.done&&(i=u.return)&&i.call(u)}finally{if(n)throw n.error}}return!0})),new A(M,T,b)},e.prototype.computeMoves=function(e,t,n,i,r,o,s,a){var u=this;return ne(e,t,n,i,r,o).map((function(e){var i=D(u.refineDiff(t,n,new O(e.original.toOffsetRange(),e.modified.toOffsetRange()),o,s,a).mappings,new _(t),new _(n),!0);return new C(e,i)}))},e.prototype.refineDiff=function(e,t,n,i,r,o){var s,a=new B(new R((s=n).seq1Range.start+1,s.seq1Range.endExclusive+1),new R(s.seq2Range.start+1,s.seq2Range.endExclusive+1)).toRangeMapping2(e,t),u=new K(e,a.originalRange,r),l=new K(t,a.modifiedRange,r),h=u.length+l.length<500?this.dynamicProgrammingDiffing.compute(u,l,i):this.myersDiffingAlgorithm.compute(u,l,i),d=h.diffs;return d=re(u,l,d),d=ae(u,l,d,(function(e,t){return e.findWordContaining(t)})),o.extendToSubwords&&(d=ae(u,l,d,(function(e,t){return e.findSubWordContaining(t)}),!0)),d=function(e,t,n){var i,r,o=[];try{for(var s=c(n),a=s.next();!a.done;a=s.next()){var u=a.value,l=o[o.length-1];l&&(u.seq1Range.start-l.seq1Range.endExclusive<=2||u.seq2Range.start-l.seq2Range.endExclusive<=2)?o[o.length-1]=new O(l.seq1Range.join(u.seq1Range),l.seq2Range.join(u.seq2Range)):o.push(u)}}catch(e){i={error:e}}finally{try{a&&!a.done&&(r=s.return)&&r.call(s)}finally{if(i)throw i.error}}return o}(0,0,d),d=function(e,t,n){var i=n;if(0===i.length)return i;var r,o=0;do{r=!1;for(var s=[i[0]],a=function(n){var o=i[n],a=s[s.length-1];!function(n,i){var r=new v(a.seq1Range.endExclusive,o.seq1Range.start);if(e.countLinesIn(r)>5||r.length>500)return!1;var s=e.getText(r).trim();if(s.length>20||s.split(/\r\n|\r|\n/).length>1)return!1;var u=e.countLinesIn(n.seq1Range),l=n.seq1Range.length,h=t.countLinesIn(n.seq2Range),d=n.seq2Range.length,c=e.countLinesIn(i.seq1Range),f=i.seq1Range.length,g=t.countLinesIn(i.seq2Range),m=i.seq2Range.length;function p(e){return Math.min(e,130)}return Math.pow(Math.pow(p(40*u+l),1.5)+Math.pow(p(40*h+d),1.5),1.5)+Math.pow(Math.pow(p(40*c+f),1.5)+Math.pow(p(40*g+m),1.5),1.5)>1.3*Math.pow(Math.pow(130,1.5),1.5)}(a,o)?s.push(o):(r=!0,s[s.length-1]=s[s.length-1].join(o))},u=1;u<i.length;u++)a(u);i=s}while(o++<10&&r);var l=[];return function(e,t){for(var n=0;n<e.length;n++)t(0===n?void 0:e[n-1],e[n],n+1===e.length?void 0:e[n+1])}(i,(function(t,n,i){var r=n;function o(e){return e.length>0&&e.trim().length<=3&&n.seq1Range.length+n.seq2Range.length>100}var s=e.extendToFullLines(n.seq1Range),a=e.getText(new v(s.start,n.seq1Range.start));o(a)&&(r=r.deltaStart(-a.length));var u=e.getText(new v(n.seq1Range.endExclusive,s.endExclusive));o(u)&&(r=r.deltaEnd(u.length));var h=O.fromOffsetPairs(t?t.getEndExclusives():I.zero,i?i.getStarts():I.max),d=r.intersect(h);l.length>0&&d.getStarts().equals(l[l.length-1].getEndExclusives())?l[l.length-1]=l[l.length-1].join(d):l.push(d)})),l}(u,l,d),{mappings:d.map((function(e){return new q(u.translateRange(e.seq1Range),l.translateRange(e.seq2Range))})),hitTimeout:h.hitTimeout}},e}();function de(e,t,n){var i=(new he).computeDiff(e,t,n);return null==i?void 0:i.changes.map((function(e){var t=e.innerChanges;return{origStart:e.original.startLineNumber-1,origEnd:e.original.endLineNumberExclusive-1,editStart:e.modified.startLineNumber-1,editEnd:e.modified.endLineNumberExclusive-1,charChanges:null==t?void 0:t.map((function(e){return{originalStartLineNumber:e.originalRange.startLineNumber-1,originalStartColumn:e.originalRange.startColumn-1,originalEndLineNumber:e.originalRange.endLineNumber-1,originalEndColumn:e.originalRange.endColumn-1,modifiedStartLineNumber:e.modifiedRange.startLineNumber-1,modifiedStartColumn:e.modifiedRange.startColumn-1,modifiedEndLineNumber:e.modifiedRange.endLineNumber-1,modifiedEndColumn:e.modifiedRange.endColumn-1}}))}}))}t.computeDiff=de;var ce=e("../../../range").Range,fe=e("../base_diff_view").DiffChunk,ge=function(){function e(){}return e.prototype.compute=function(e,t,n){return n||(n={}),n.maxComputationTimeMs||(n.maxComputationTimeMs=500),(de(e,t,n)||[]).map((function(e){return new fe(new ce(e.origStart,0,e.origEnd,0),new ce(e.editStart,0,e.editEnd,0),e.charChanges)}))},e}();t.DiffProvider=ge})),ace.define("ace/ext/diff",["require","exports","module","ace/ext/diff/inline_diff_view","ace/ext/diff/split_diff_view","ace/ext/diff/providers/default"],(function(e,t,n){var i=e("./diff/inline_diff_view").InlineDiffView,r=e("./diff/split_diff_view").SplitDiffView,o=e("./diff/providers/default").DiffProvider;t.InlineDiffView=i,t.SplitDiffView=r,t.DiffProvider=o,t.createDiffView=function(e,t){var n;return(e=e||{}).diffProvider=e.diffProvider||new o,n=e.inline?new i(e):new r(e),t&&n.setOptions(t),n}})),ace.require(["ace/ext/diff"],(function(t){e&&(e.exports=t)}))}}]);
|