@szjy/workflow 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +7 -0
- package/dist/index.mjs +14 -14
- package/dist/index.umd.js +5 -5
- package/dist/style.css +1 -1
- package/package.json +2 -1
package/dist/index.umd.js
CHANGED
@@ -4049,7 +4049,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
4049
4049
|
}
|
4050
4050
|
`;function JK(e){return e&&e.getRootNode&&e.getRootNode()}function ENe(e){return R$()?JK(e)instanceof ShadowRoot:!1}function kNe(e){return ENe(e)?JK(e):null}var $Ne=function(){var t=HK(),n=t.prefixCls,r=t.csp,i=d.getCurrentInstance(),o=SNe;n&&(o=o.replace(/anticon/g,n.value)),d.nextTick(function(){if(R$()){var a=i.vnode.el,s=kNe(a);xNe(o,"@ant-design-vue-icons",{prepend:!0,csp:r.value,attachTo:s})}})},TNe=["icon","primaryColor","secondaryColor"];function RNe(e,t){if(e==null)return{};var n=PNe(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function PNe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function A6(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){ONe(e,i,n[i])})}return e}function ONe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var W2=d.reactive({primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1});function jNe(e){var t=e.primaryColor,n=e.secondaryColor;W2.primaryColor=t,W2.secondaryColor=n||ZK(t),W2.calculated=!!n}function MNe(){return A6({},W2)}var dm=function(t,n){var r=A6({},t,n.attrs),i=r.icon,o=r.primaryColor,a=r.secondaryColor,s=RNe(r,TNe),l=W2;if(o&&(l={primaryColor:o,secondaryColor:a||ZK(o)}),_Ne(YK(i),"icon should be icon definiton, but got ".concat(i)),!YK(i))return null;var c=i;return c&&typeof c.icon=="function"&&(c=A6({},c,{icon:c.icon(l.primaryColor,l.secondaryColor)})),j$(c.icon,"svg-".concat(c.name),A6({},s,{"data-icon":c.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"}))};dm.props={icon:Object,primaryColor:String,secondaryColor:String,focusable:String},dm.inheritAttrs=!1,dm.displayName="IconBase",dm.getTwoToneColors=MNe,dm.setTwoToneColors=jNe;const M$=dm;function ANe(e,t){return LNe(e)||INe(e,t)||DNe(e,t)||NNe()}function NNe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
4051
4051
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function DNe(e,t){if(e){if(typeof e=="string")return QK(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return QK(e,t)}}function QK(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function INe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,a,s;try{for(n=n.call(e);!(i=(a=n.next()).done)&&(r.push(a.value),!(t&&r.length===t));i=!0);}catch(l){o=!0,s=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw s}}return r}}function LNe(e){if(Array.isArray(e))return e}function eY(e){var t=XK(e),n=ANe(t,2),r=n[0],i=n[1];return M$.setTwoToneColors({primaryColor:r,secondaryColor:i})}function BNe(){var e=M$.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var FNe=d.defineComponent({name:"InsertStyles",setup:function(){return $Ne(),function(){return null}}}),zNe=["class","icon","spin","rotate","tabindex","twoToneColor","onClick"];function VNe(e,t){return qNe(e)||WNe(e,t)||UNe(e,t)||HNe()}function HNe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
4052
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function UNe(e,t){if(e){if(typeof e=="string")return tY(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tY(e,t)}}function tY(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function WNe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,a,s;try{for(n=n.call(e);!(i=(a=n.next()).done)&&(r.push(a.value),!(t&&r.length===t));i=!0);}catch(l){o=!0,s=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw s}}return r}}function qNe(e){if(Array.isArray(e))return e}function nY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){q2(e,i,n[i])})}return e}function q2(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function GNe(e,t){if(e==null)return{};var n=KNe(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function KNe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}eY(hNe.primary);var fm=function(t,n){var r,i=nY({},t,n.attrs),o=i.class,a=i.icon,s=i.spin,l=i.rotate,c=i.tabindex,u=i.twoToneColor,f=i.onClick,h=GNe(i,zNe),p=HK(),m=p.prefixCls,b=p.rootClassName,v=(r={},q2(r,b.value,!!b.value),q2(r,m.value,!0),q2(r,"".concat(m.value,"-").concat(a.name),!!a.name),q2(r,"".concat(m.value,"-spin"),!!s||a.name==="loading"),r),g=c;g===void 0&&f&&(g=-1);var x=l?{msTransform:"rotate(".concat(l,"deg)"),transform:"rotate(".concat(l,"deg)")}:void 0,w=XK(u),y=VNe(w,2),C=y[0],_=y[1];return d.createVNode("span",nY({role:"img","aria-label":a.name},h,{onClick:f,class:[v,o],tabindex:g}),[d.createVNode(M$,{icon:a,primaryColor:C,secondaryColor:_,style:x},null),d.createVNode(FNe,null,null)])};fm.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:[String,Array]},fm.displayName="AntdIcon",fm.inheritAttrs=!1,fm.getTwoToneColor=BNe,fm.setTwoToneColor=eY;const fo=fm;var YNe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M952 474H829.8C812.5 327.6 696.4 211.5 550 194.2V72c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v122.2C327.6 211.5 211.5 327.6 194.2 474H72c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h122.2C211.5 696.4 327.6 812.5 474 829.8V952c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V829.8C696.4 812.5 812.5 696.4 829.8 550H952c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zM512 756c-134.8 0-244-109.2-244-244s109.2-244 244-244 244 109.2 244 244-109.2 244-244 244z"}},{tag:"path",attrs:{d:"M512 392c-32.1 0-62.1 12.4-84.8 35.2-22.7 22.7-35.2 52.7-35.2 84.8s12.5 62.1 35.2 84.8C449.9 619.4 480 632 512 632s62.1-12.5 84.8-35.2C619.4 574.1 632 544 632 512s-12.5-62.1-35.2-84.8A118.57 118.57 0 00512 392z"}}]},name:"aim",theme:"outlined"};const ZNe=YNe;function rY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){XNe(e,i,n[i])})}return e}function XNe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var A$=function(t,n){var r=rY({},t,n.attrs);return d.createVNode(fo,rY({},r,{icon:ZNe}),null)};A$.displayName="AimOutlined",A$.inheritAttrs=!1;const JNe=A$;var QNe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M855 160.1l-189.2 23.5c-6.6.8-9.3 8.8-4.7 13.5l54.7 54.7-153.5 153.5a8.03 8.03 0 000 11.3l45.1 45.1c3.1 3.1 8.2 3.1 11.3 0l153.6-153.6 54.7 54.7a7.94 7.94 0 0013.5-4.7L863.9 169a7.9 7.9 0 00-8.9-8.9zM416.6 562.3a8.03 8.03 0 00-11.3 0L251.8 715.9l-54.7-54.7a7.94 7.94 0 00-13.5 4.7L160.1 855c-.6 5.2 3.7 9.5 8.9 8.9l189.2-23.5c6.6-.8 9.3-8.8 4.7-13.5l-54.7-54.7 153.6-153.6c3.1-3.1 3.1-8.2 0-11.3l-45.2-45z"}}]},name:"arrows-alt",theme:"outlined"};const eDe=QNe;function iY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){tDe(e,i,n[i])})}return e}function tDe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var N$=function(t,n){var r=iY({},t,n.attrs);return d.createVNode(fo,iY({},r,{icon:eDe}),null)};N$.displayName="ArrowsAltOutlined",N$.inheritAttrs=!1;const pu=N$;var nDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M296 250c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zm184 144H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm-48 458H208V148h560v320c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h264c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm440-88H728v-36.6c46.3-13.8 80-56.6 80-107.4 0-61.9-50.1-112-112-112s-112 50.1-112 112c0 50.7 33.7 93.6 80 107.4V764H520c-8.8 0-16 7.2-16 16v152c0 8.8 7.2 16 16 16h352c8.8 0 16-7.2 16-16V780c0-8.8-7.2-16-16-16zM646 620c0-27.6 22.4-50 50-50s50 22.4 50 50-22.4 50-50 50-50-22.4-50-50zm180 266H566v-60h260v60z"}}]},name:"audit",theme:"outlined"};const rDe=nDe;function oY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){iDe(e,i,n[i])})}return e}function iDe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var D$=function(t,n){var r=oY({},t,n.attrs);return d.createVNode(fo,oY({},r,{icon:rDe}),null)};D$.displayName="AuditOutlined",D$.inheritAttrs=!1;const G2=D$;var oDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"};const aDe=oDe;function aY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){sDe(e,i,n[i])})}return e}function sDe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var I$=function(t,n){var r=aY({},t,n.attrs);return d.createVNode(fo,aY({},r,{icon:aDe}),null)};I$.displayName="ClockCircleOutlined",I$.inheritAttrs=!1;const lDe=I$;var cDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M180 176h-60c-4.4 0-8 3.6-8 8v656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V184c0-4.4-3.6-8-8-8zm724 0h-60c-4.4 0-8 3.6-8 8v656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V184c0-4.4-3.6-8-8-8zM785.3 504.3L657.7 403.6a7.23 7.23 0 00-11.7 5.7V476H378v-62.8c0-6-7-9.4-11.7-5.7L238.7 508.3a7.14 7.14 0 000 11.3l127.5 100.8c4.7 3.7 11.7.4 11.7-5.7V548h268v62.8c0 6 7 9.4 11.7 5.7l127.5-100.8c3.8-2.9 3.8-8.5.2-11.4z"}}]},name:"column-width",theme:"outlined"};const uDe=cDe;function sY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){dDe(e,i,n[i])})}return e}function dDe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var L$=function(t,n){var r=sY({},t,n.attrs);return d.createVNode(fo,sY({},r,{icon:uDe}),null)};L$.displayName="ColumnWidthOutlined",L$.inheritAttrs=!1;const fDe=L$;var hDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"};const pDe=hDe;function lY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){mDe(e,i,n[i])})}return e}function mDe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var B$=function(t,n){var r=lY({},t,n.attrs);return d.createVNode(fo,lY({},r,{icon:pDe}),null)};B$.displayName="EditOutlined",B$.inheritAttrs=!1;const gDe=B$;var vDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z"}}]},name:"file-text",theme:"outlined"};const bDe=vDe;function cY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){yDe(e,i,n[i])})}return e}function yDe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var F$=function(t,n){var r=cY({},t,n.attrs);return d.createVNode(fo,cY({},r,{icon:bDe}),null)};F$.displayName="FileTextOutlined",F$.inheritAttrs=!1;const N6=F$;var xDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880.1 154H143.9c-24.5 0-39.8 26.7-27.5 48L349 597.4V838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V597.4L907.7 202c12.2-21.3-3.1-48-27.6-48zM603.4 798H420.6V642h182.9v156zm9.6-236.6l-9.5 16.6h-183l-9.5-16.6L212.7 226h598.6L613 561.4z"}}]},name:"filter",theme:"outlined"};const wDe=xDe;function uY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){CDe(e,i,n[i])})}return e}function CDe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var z$=function(t,n){var r=uY({},t,n.attrs);return d.createVNode(fo,uY({},r,{icon:wDe}),null)};z$.displayName="FilterOutlined",z$.inheritAttrs=!1;const _De=z$;var SDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 512h-56c-4.4 0-8 3.6-8 8v320H184V184h320c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V520c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M355.9 534.9L354 653.8c-.1 8.9 7.1 16.2 16 16.2h.4l118-2.9c2-.1 4-.9 5.4-2.3l415.9-415c3.1-3.1 3.1-8.2 0-11.3L785.4 114.3c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-415.8 415a8.3 8.3 0 00-2.3 5.6zm63.5 23.6L779.7 199l45.2 45.1-360.5 359.7-45.7 1.1.7-46.4z"}}]},name:"form",theme:"outlined"};const EDe=SDe;function dY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){kDe(e,i,n[i])})}return e}function kDe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var V$=function(t,n){var r=dY({},t,n.attrs);return d.createVNode(fo,dY({},r,{icon:EDe}),null)};V$.displayName="FormOutlined",V$.inheritAttrs=!1;const $De=V$;var TDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M841 370c3-3.3 2.7-8.3-.6-11.3a8.24 8.24 0 00-5.3-2.1h-72.6c-2.4 0-4.6 1-6.1 2.8L633.5 504.6a7.96 7.96 0 01-13.4-1.9l-63.5-141.3a7.9 7.9 0 00-7.3-4.7H380.7l.9-4.7 8-42.3c10.5-55.4 38-81.4 85.8-81.4 18.6 0 35.5 1.7 48.8 4.7l14.1-66.8c-22.6-4.7-35.2-6.1-54.9-6.1-103.3 0-156.4 44.3-175.9 147.3l-9.4 49.4h-97.6c-3.8 0-7.1 2.7-7.8 6.4L181.9 415a8.07 8.07 0 007.8 9.7H284l-89 429.9a8.07 8.07 0 007.8 9.7H269c3.8 0 7.1-2.7 7.8-6.4l89.7-433.1h135.8l68.2 139.1c1.4 2.9 1 6.4-1.2 8.8l-180.6 203c-2.9 3.3-2.6 8.4.7 11.3 1.5 1.3 3.4 2 5.3 2h72.7c2.4 0 4.6-1 6.1-2.8l123.7-146.7c2.8-3.4 7.9-3.8 11.3-1 .9.8 1.6 1.7 2.1 2.8L676.4 784c1.3 2.8 4.1 4.7 7.3 4.7h64.6a8.02 8.02 0 007.2-11.5l-95.2-198.9c-1.4-2.9-.9-6.4 1.3-8.8L841 370z"}}]},name:"function",theme:"outlined"};const RDe=TDe;function fY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){PDe(e,i,n[i])})}return e}function PDe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var H$=function(t,n){var r=fY({},t,n.attrs);return d.createVNode(fo,fY({},r,{icon:RDe}),null)};H$.displayName="FunctionOutlined",H$.inheritAttrs=!1;const ODe=H$;var jDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"};const MDe=jDe;function hY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){ADe(e,i,n[i])})}return e}function ADe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var U$=function(t,n){var r=hY({},t,n.attrs);return d.createVNode(fo,hY({},r,{icon:MDe}),null)};U$.displayName="InfoCircleOutlined",U$.inheritAttrs=!1;const NDe=U$;var DDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z"}}]},name:"lock",theme:"outlined"};const IDe=DDe;function pY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){LDe(e,i,n[i])})}return e}function LDe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var W$=function(t,n){var r=pY({},t,n.attrs);return d.createVNode(fo,pY({},r,{icon:IDe}),null)};W$.displayName="LockOutlined",W$.inheritAttrs=!1;const BDe=W$;var FDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z"}}]},name:"menu",theme:"outlined"};const zDe=FDe;function mY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){VDe(e,i,n[i])})}return e}function VDe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var q$=function(t,n){var r=mY({},t,n.attrs);return d.createVNode(fo,mY({},r,{icon:zDe}),null)};q$.displayName="MenuOutlined",q$.inheritAttrs=!1;const HDe=q$;var UDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM142.4 642.1L298.7 519a8.84 8.84 0 000-13.9L142.4 381.9c-5.8-4.6-14.4-.5-14.4 6.9v246.3a8.9 8.9 0 0014.4 7z"}}]},name:"menu-unfold",theme:"outlined"};const WDe=UDe;function gY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){qDe(e,i,n[i])})}return e}function qDe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var G$=function(t,n){var r=gY({},t,n.attrs);return d.createVNode(fo,gY({},r,{icon:WDe}),null)};G$.displayName="MenuUnfoldOutlined",G$.inheritAttrs=!1;const GDe=G$;var KDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M719.4 499.1l-296.1-215A15.9 15.9 0 00398 297v430c0 13.1 14.8 20.5 25.3 12.9l296.1-215a15.9 15.9 0 000-25.8zm-257.6 134V390.9L628.5 512 461.8 633.1z"}}]},name:"play-circle",theme:"outlined"};const YDe=KDe;function vY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){ZDe(e,i,n[i])})}return e}function ZDe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var K$=function(t,n){var r=vY({},t,n.attrs);return d.createVNode(fo,vY({},r,{icon:YDe}),null)};K$.displayName="PlayCircleOutlined",K$.inheritAttrs=!1;const XDe=K$;var JDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};const QDe=JDe;function bY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){eIe(e,i,n[i])})}return e}function eIe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Y$=function(t,n){var r=bY({},t,n.attrs);return d.createVNode(fo,bY({},r,{icon:QDe}),null)};Y$.displayName="PlusOutlined",Y$.inheritAttrs=!1;const D6=Y$;var tIe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656zM492 400h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H492c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm0 144h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H492c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm0 144h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H492c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zM340 368a40 40 0 1080 0 40 40 0 10-80 0zm0 144a40 40 0 1080 0 40 40 0 10-80 0zm0 144a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"profile",theme:"outlined"};const nIe=tIe;function yY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){rIe(e,i,n[i])})}return e}function rIe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Z$=function(t,n){var r=yY({},t,n.attrs);return d.createVNode(fo,yY({},r,{icon:nIe}),null)};Z$.displayName="ProfileOutlined",Z$.inheritAttrs=!1;const iIe=Z$;var oIe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M788 705.9V192c0-8.8-7.2-16-16-16H602v-68.8c0-6-7-9.4-11.7-5.7L462.7 202.3a7.14 7.14 0 000 11.3l127.5 100.8c4.7 3.7 11.7.4 11.7-5.7V240h114v465.9c-44.2 15-76 56.9-76 106.1 0 61.8 50.2 112 112 112s112-50.2 112-112c.1-49.2-31.7-91-75.9-106.1zM752 860a48.01 48.01 0 010-96 48.01 48.01 0 010 96zM384 212c0-61.8-50.2-112-112-112s-112 50.2-112 112c0 49.2 31.8 91 76 106.1V706c-44.2 15-76 56.9-76 106.1 0 61.8 50.2 112 112 112s112-50.2 112-112c0-49.2-31.8-91-76-106.1V318.1c44.2-15.1 76-56.9 76-106.1zm-160 0a48.01 48.01 0 0196 0 48.01 48.01 0 01-96 0zm96 600a48.01 48.01 0 01-96 0 48.01 48.01 0 0196 0z"}}]},name:"pull-request",theme:"outlined"};const aIe=oIe;function xY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){sIe(e,i,n[i])})}return e}function sIe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var X$=function(t,n){var r=xY({},t,n.attrs);return d.createVNode(fo,xY({},r,{icon:aIe}),null)};X$.displayName="PullRequestOutlined",X$.inheritAttrs=!1;const lIe=X$;var cIe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M881.7 187.4l-45.1-45.1a8.03 8.03 0 00-11.3 0L667.8 299.9l-54.7-54.7a7.94 7.94 0 00-13.5 4.7L576.1 439c-.6 5.2 3.7 9.5 8.9 8.9l189.2-23.5c6.6-.8 9.3-8.8 4.7-13.5l-54.7-54.7 157.6-157.6c3-3 3-8.1-.1-11.2zM439 576.1l-189.2 23.5c-6.6.8-9.3 8.9-4.7 13.5l54.7 54.7-157.5 157.5a8.03 8.03 0 000 11.3l45.1 45.1c3.1 3.1 8.2 3.1 11.3 0l157.6-157.6 54.7 54.7a7.94 7.94 0 0013.5-4.7L447.9 585a7.9 7.9 0 00-8.9-8.9z"}}]},name:"shrink",theme:"outlined"};const uIe=cIe;function wY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){dIe(e,i,n[i])})}return e}function dIe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var J$=function(t,n){var r=wY({},t,n.attrs);return d.createVNode(fo,wY({},r,{icon:uIe}),null)};J$.displayName="ShrinkOutlined",J$.inheritAttrs=!1;const K2=J$;var fIe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M625.9 115c-5.9 0-11.9 1.6-17.4 5.3L254 352H90c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h164l354.5 231.7c5.5 3.6 11.6 5.3 17.4 5.3 16.7 0 32.1-13.3 32.1-32.1V147.1c0-18.8-15.4-32.1-32.1-32.1zM586 803L293.4 611.7l-18-11.7H146V424h129.4l17.9-11.7L586 221v582zm348-327H806c-8.8 0-16 7.2-16 16v40c0 8.8 7.2 16 16 16h128c8.8 0 16-7.2 16-16v-40c0-8.8-7.2-16-16-16zm-41.9 261.8l-110.3-63.7a15.9 15.9 0 00-21.7 5.9l-19.9 34.5c-4.4 7.6-1.8 17.4 5.8 21.8L856.3 800a15.9 15.9 0 0021.7-5.9l19.9-34.5c4.4-7.6 1.7-17.4-5.8-21.8zM760 344a15.9 15.9 0 0021.7 5.9L892 286.2c7.6-4.4 10.2-14.2 5.8-21.8L878 230a15.9 15.9 0 00-21.7-5.9L746 287.8a15.99 15.99 0 00-5.8 21.8L760 344z"}}]},name:"sound",theme:"outlined"};const hIe=fIe;function CY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){pIe(e,i,n[i])})}return e}function pIe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Q$=function(t,n){var r=CY({},t,n.attrs);return d.createVNode(fo,CY({},r,{icon:hIe}),null)};Q$.displayName="SoundOutlined",Q$.inheritAttrs=!1;const mIe=Q$;var gIe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"}}]},name:"user",theme:"outlined"};const vIe=gIe;function _Y(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){bIe(e,i,n[i])})}return e}function bIe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var eT=function(t,n){var r=_Y({},t,n.attrs);return d.createVNode(fo,_Y({},r,{icon:vIe}),null)};eT.displayName="UserOutlined",eT.inheritAttrs=!1;const yIe=eT;var xIe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M892 772h-80v-80c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v80h-80c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h80v80c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-80h80c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM373.5 498.4c-.9-8.7-1.4-17.5-1.4-26.4 0-15.9 1.5-31.4 4.3-46.5.7-3.6-1.2-7.3-4.5-8.8-13.6-6.1-26.1-14.5-36.9-25.1a127.54 127.54 0 01-38.7-95.4c.9-32.1 13.8-62.6 36.3-85.6 24.7-25.3 57.9-39.1 93.2-38.7 31.9.3 62.7 12.6 86 34.4 7.9 7.4 14.7 15.6 20.4 24.4 2 3.1 5.9 4.4 9.3 3.2 17.6-6.1 36.2-10.4 55.3-12.4 5.6-.6 8.8-6.6 6.3-11.6-32.5-64.3-98.9-108.7-175.7-109.9-110.8-1.7-203.2 89.2-203.2 200 0 62.8 28.9 118.8 74.2 155.5-31.8 14.7-61.1 35-86.5 60.4-54.8 54.7-85.8 126.9-87.8 204a8 8 0 008 8.2h56.1c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5 29.4-29.4 65.4-49.8 104.7-59.7 3.8-1.1 6.4-4.8 5.9-8.8zM824 472c0-109.4-87.9-198.3-196.9-200C516.3 270.3 424 361.2 424 472c0 62.8 29 118.8 74.2 155.5a300.95 300.95 0 00-86.4 60.4C357 742.6 326 814.8 324 891.8a8 8 0 008 8.2h56c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5C505.8 695.7 563 672 624 672c110.4 0 200-89.5 200-200zm-109.5 90.5C690.3 586.7 658.2 600 624 600s-66.3-13.3-90.5-37.5a127.26 127.26 0 01-37.5-91.8c.3-32.8 13.4-64.5 36.3-88 24-24.6 56.1-38.3 90.4-38.7 33.9-.3 66.8 12.9 91 36.6 24.8 24.3 38.4 56.8 38.4 91.4-.1 34.2-13.4 66.3-37.6 90.5z"}}]},name:"usergroup-add",theme:"outlined"};const wIe=xIe;function SY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){CIe(e,i,n[i])})}return e}function CIe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var tT=function(t,n){var r=SY({},t,n.attrs);return d.createVNode(fo,SY({},r,{icon:wIe}),null)};tT.displayName="UsergroupAddOutlined",tT.inheritAttrs=!1;const EY=tT,_Ie=d.defineComponent({name:"CollapseTitle",props:{title:{type:String,default:""}}}),SIe={class:"collapse-title"},EIe={class:"title-content"};function kIe(e,t,n,r,i,o){return d.openBlock(),d.createElementBlock("div",SIe,[d.renderSlot(e.$slots,"default",{},void 0,!0),d.createElementVNode("span",EIe,d.toDisplayString(e.title),1)])}const Mo=va(_Ie,[["render",kIe],["__scopeId","data-v-753d5a4c"]]),ka=va(d.defineComponent({__name:"HasEdit",setup(e){return(t,n)=>(d.openBlock(),d.createBlock(d.unref(gDe),{class:"edit-icon"}))}}),[["__scopeId","data-v-51b8052f"]]),I6={TOOLBAR_PREFIX:"TOOLBAR_PREFIX",USER_CHOOSER_SUFFIX:"USER_CHOOSER_SUFFIX"},$Ie=Object.values(I6),nT={},kY=e=>`SLOT_${e}`,TIe=()=>{const{proxy:e}=d.getCurrentInstance(),{$slots:t}=e;for(const n in t)if($Ie.indexOf(n)>-1){const r=kY(n);d.provide(r,t[n]),nT[n]=!0}d.provide("slotsRegistry",nT)},RIe=e=>nT[e],$Y=e=>RIe(e)?d.inject(kY(e)):null,PIe={class:"user-selector-container"},OIe={class:"user-type-options"},jIe=va(d.defineComponent({__name:"UserSelector",props:{user:{type:Object,required:!0},label:{type:String,default:"配置"},dialogTitle:{type:String,default:"人员选择"}},emits:["update:user","on-ok"],setup(e,{emit:t}){const n=y=>{o.value.userId=y},r=d.ref(d.markRaw($Y(I6.USER_CHOOSER_SUFFIX))),i=e,o=d.ref({...i.user}),a=d.ref(i.label),s=d.computed(()=>xK(o.value.userIdType)),l=t,c=y=>{l("update:user",y)},u=d.ref(!1),f=()=>{u.value=!0},h=d.ref(!1),p=d.ref(600),m=d.ref(600),b=d.computed(()=>({width:`${p.value}px`,height:`${m.value}px`})),v=d.ref(d.markRaw(pu));function g(){h.value=!h.value,h.value?(p.value=window.innerWidth,m.value=window.innerHeight,v.value=K2):(p.value=600,m.value=600,v.value=pu)}d.computed(()=>"");const x=()=>{c(o.value),l("on-ok",o.value),u.value=!1},w=()=>d.createVNode("div",{class:"json-dialog-title-container"},[d.createVNode("span",null,[i.dialogTitle]),d.createVNode("span",null,[d.createVNode(v.value,{onClick:g,class:"edit-icon"},null)])]);return(y,C)=>{const _=d.resolveComponent("n-radio"),S=d.resolveComponent("n-radio-group"),E=d.resolveComponent("n-form-item"),$=d.resolveComponent("n-input"),k=d.resolveComponent("n-select"),P=d.resolveComponent("n-form"),T=d.resolveComponent("n-button"),j=d.resolveComponent("n-modal");return d.openBlock(),d.createElementBlock(d.Fragment,null,[d.createVNode(j,{show:u.value,"onUpdate:show":C[5]||(C[5]=M=>u.value=M),"mask-closable":!1,preset:"dialog",title:w,"show-icon":!1,style:d.normalizeStyle(b.value)},{action:d.withCtx(()=>[d.createVNode(T,{size:"small",type:"info",onClick:x},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(y.$t("panel.confirm")),1)]),_:1})]),default:d.withCtx(()=>[d.createElementVNode("div",PIe,[d.createVNode(P,{model:o.value,"label-placement":"left","label-width":"auto","require-mark-placement":"right-hanging",size:"small",style:{maxWidth:"640px",marginTop:"10px"}},{default:d.withCtx(()=>[d.createVNode(E,{label:"用户类型",path:"userIdType"},{default:d.withCtx(()=>[d.createElementVNode("div",OIe,[d.createVNode(S,{value:o.value.userIdType,"onUpdate:value":C[0]||(C[0]=M=>o.value.userIdType=M),name:"modeSelect",style:{"margin-bottom":"10px"}},{default:d.withCtx(()=>[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(d.unref(yK),M=>(d.openBlock(),d.createBlock(_,{key:M.value,value:M.value,label:M.label},null,8,["value","label"]))),128))]),_:1},8,["value"])])]),_:1}),o.value.userIdType===d.unref(Zi).USER_ID?(d.openBlock(),d.createBlock(E,{key:0,label:"用户 id",path:"userId"},{default:d.withCtx(()=>[d.createVNode($,{value:o.value.userId,"onUpdate:value":C[1]||(C[1]=M=>o.value.userId=M),placeholder:"请输入用户 id",onKeydown:C[2]||(C[2]=d.withKeys(d.withModifiers(()=>{},["prevent"]),["enter"]))},{suffix:d.withCtx(()=>[(d.openBlock(),d.createBlock(d.resolveDynamicComponent(r.value),{userId:o.value.userId,onChange:n},null,40,["userId"]))]),default:d.withCtx(()=>[d.createTextVNode(" > ")]),_:1},8,["value"])]),_:1})):d.createCommentVNode("",!0),o.value.userIdType===d.unref(Zi).GET_SINGLE_USER||o.value.userIdType===d.unref(Zi).GET_MULTI_USERS?(d.openBlock(),d.createBlock(E,{key:1,label:"节点 ID",path:"outputTaskDefKey"},{default:d.withCtx(()=>[d.createVNode(k,{value:o.value.outputTaskDefKey,"onUpdate:value":C[3]||(C[3]=M=>o.value.outputTaskDefKey=M),placeholder:"请选择节点",options:s.value,onKeydown:C[4]||(C[4]=d.withKeys(d.withModifiers(()=>{},["prevent"]),["enter"]))},null,8,["value","options"])]),_:1})):d.createCommentVNode("",!0)]),_:1},8,["model"])])]),_:1},8,["show","style"]),d.createVNode(T,{type:"info",onClick:f},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(a.value),1)]),_:1})],64)}}}),[["__scopeId","data-v-197cda9f"]]);function MIe(e){return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(i){i(n)}),(r=e.get("*"))&&r.slice().map(function(i){i(t,n)})}}}const af=MIe();function Go(e){const t=e,n=()=>{af.off("element-update",t)};return d.onMounted(()=>{t(),af.off("element-update",t),af.on("element-update",t)}),d.onBeforeUnmount(()=>n()),[t,n]}const Y2=d.defineComponent({__name:"UserConfigProperty",props:{label:{type:String,default:"获取用户的配置"},getUserValue:{type:Function,default:GAe},updateUserValue:{type:Function,default:KAe}},setup(e){const t=e,n=d.ref({...hu,outputTaskDefKey:""}),r=Zt(Ut),i=()=>{n.value=t.getUserValue(r.activeElement)},o=a=>{t.updateUserValue(r.activeElement,a)};return Go(i),(a,s)=>{const l=d.resolveComponent("n-descriptions-item"),c=d.resolveComponent("n-descriptions"),u=d.resolveComponent("n-collapse-item");return d.openBlock(),d.createBlock(u,null,d.createSlots({header:d.withCtx(()=>[d.createVNode(Mo,{title:t.label},{default:d.withCtx(()=>[d.createVNode(d.unref(G2))]),_:1},8,["title"])]),default:d.withCtx(()=>[d.createElementVNode("div",null,[d.createVNode(jIe,{user:n.value,"onUpdate:user":s[0]||(s[0]=f=>n.value=f),onOnOk:o},null,8,["user"]),d.createVNode(c,{"label-placement":"left",column:1,bordered:"",size:"small",style:{"margin-top":"10px"}},{default:d.withCtx(()=>[d.createVNode(l,null,{label:d.withCtx(()=>[d.createTextVNode(" 类型 ")]),default:d.withCtx(()=>[d.createTextVNode(" "+d.toDisplayString(n.value.userIdType),1)]),_:1}),n.value.userIdType===d.unref(Zi).USER_ID?(d.openBlock(),d.createBlock(l,{key:0},{label:d.withCtx(()=>[d.createTextVNode(" 用户 ID ")]),default:d.withCtx(()=>[d.createTextVNode(" "+d.toDisplayString(n.value.userId),1)]),_:1})):d.createCommentVNode("",!0),n.value.userIdType===d.unref(Zi).GET_SINGLE_USER||n.value.userIdType===d.unref(Zi).GET_MULTI_USERS?(d.openBlock(),d.createBlock(l,{key:1},{label:d.withCtx(()=>[d.createTextVNode(" 节点 ID ")]),default:d.withCtx(()=>[d.createTextVNode(" "+d.toDisplayString(n.value.outputTaskDefKey),1)]),_:1})):d.createCommentVNode("",!0)]),_:1})])]),_:2},[n.value.userId?{name:"header-extra",fn:d.withCtx(()=>[d.createVNode(ka)]),key:"0"}:void 0]),1024)}}}),AIe=d.defineComponent({__name:"property",setup(e){return(t,n)=>(d.openBlock(),d.createBlock(Y2,{label:"获取公司的配置"}))}}),NIe="data:image/svg+xml,%3csvg%20t='1710141728893'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='12073'%20width='30'%20height='30'%3e%3cpath%20d='M352.256%20550.4c-65.792%200-119.296-53.504-119.296-119.296s53.504-119.296%20119.296-119.296c65.792%200%20119.296%2053.504%20119.296%20119.296S418.048%20550.4%20352.256%20550.4z%20m0-177.408c-32%200-57.856%2026.112-57.856%2057.856s26.112%2057.856%2057.856%2057.856%2057.856-26.112%2057.856-57.856-25.856-57.856-57.856-57.856z'%20fill='%23040000'%20p-id='12074'%3e%3c/path%3e%3cpath%20d='M506.368%20704.512c-16.896%200-30.72-13.824-30.72-30.72%200-68.096-55.296-123.392-123.392-123.392s-123.392%2055.296-123.392%20123.392c0%2016.896-13.824%2030.72-30.72%2030.72s-30.72-13.824-30.72-30.72c0-101.888%2082.944-184.832%20184.832-184.832%20101.888%200%20184.832%2082.944%20184.832%20184.832%200%2016.896-13.824%2030.72-30.72%2030.72zM820.48%20403.712h-209.664c-16.896%200-30.72-13.824-30.72-30.72s13.824-30.72%2030.72-30.72h209.664c16.896%200%2030.72%2013.824%2030.72%2030.72s-13.824%2030.72-30.72%2030.72zM820.48%20539.392h-209.664c-16.896%200-30.72-13.824-30.72-30.72s13.824-30.72%2030.72-30.72h209.664c16.896%200%2030.72%2013.824%2030.72%2030.72s-13.824%2030.72-30.72%2030.72zM820.48%20675.072h-209.664c-16.896%200-30.72-13.824-30.72-30.72s13.824-30.72%2030.72-30.72h209.664c16.896%200%2030.72%2013.824%2030.72%2030.72s-13.824%2030.72-30.72%2030.72z'%20fill='%23040000'%20p-id='12075'%3e%3c/path%3e%3cpath%20d='M883.456%20872.448H147.456c-56.576%200-102.4-45.824-102.4-102.4V252.16c0-56.576%2045.824-102.4%20102.4-102.4h736c56.576%200%20102.4%2045.824%20102.4%20102.4v517.888c0%2056.32-45.824%20102.4-102.4%20102.4zM147.456%20211.2c-22.528%200-40.96%2018.432-40.96%2040.96v517.888c0%2022.528%2018.432%2040.96%2040.96%2040.96h736c22.528%200%2040.96-18.432%2040.96-40.96V252.16c0-22.528-18.432-40.96-40.96-40.96H147.456z'%20fill='%23060001'%20p-id='12076'%3e%3c/path%3e%3c/svg%3e",DIe=(e,t)=>n=>{const r=t.createShape({type:"bpmn:ServiceTask"}),i=r.businessObject;i.set("name","获取人员信息"),i.set("activiti:delegateExpression","${getSingleUserTaskService}"),ps(r,{name:Sa,value:V2}),MK(r,hu),e.start(n,r,void 0)},IIe=(e,t)=>{const n=DIe(e,t);return{"get-user-info":{group:"customnode",title:"获取人员信息",imageUrl:NIe,action:{click:n,dragstart:n}}}},LIe=d.defineComponent({__name:"property",setup(e){return(t,n)=>(d.openBlock(),d.createBlock(Y2,{label:"获取用户信息的配置"}))}}),BIe="data:image/svg+xml,%3csvg%20t='1710224897811'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='17482'%20width='30'%20height='30'%3e%3cpath%20d='M216.945519%20232.260831l84.678588%200%200%20208.009498-84.678588%200%200-208.009498Z'%20fill='%232c2c2c'%20p-id='17483'%3e%3c/path%3e%3cpath%20d='M384.134309%20204.3829l84.678588%200%200%20264.548188-84.678588%200%200-264.548188Z'%20fill='%232c2c2c'%20p-id='17484'%3e%3c/path%3e%3cpath%20d='M148.4014%20190.361559c0-22.933315%2018.655895-41.589211%2041.589211-41.589211l641.889279%200c22.933315%200%2041.589211%2018.655895%2041.589211%2041.589211l0%2097.355305L644.231115%20287.716864l83.334987-83.333964-83.289961%200L518.86178%20329.796238l139.395794%20139.395794%2083.290985%200-96.795557-96.795557%20313.39571-0.001023L958.148711%20190.361559c0-69.623707-56.644091-126.267798-126.268822-126.267798L189.99061%2064.09376c-69.62473%200-126.267798%2056.644091-126.267798%20126.267798l0%20459.4389%2084.678588%200L148.4014%20190.361559z'%20fill='%232c2c2c'%20p-id='17485'%3e%3c/path%3e%3cpath%20d='M873.468077%20457.07404l0%20375.176798c0%2022.932292-18.654872%2041.589211-41.589211%2041.589211L189.99061%20873.840048c-22.932292%200-41.589211-18.655895-41.589211-41.589211l0-13.008268%20669.937079%200%200-84.678588L789.985734%20734.563982%20789.985734%20497.195829%20231.188918%20497.195829l0%20237.368152-167.466106-0.083911%200%2097.770767c0%2069.62473%2056.644091%20126.268822%20126.267798%20126.268822l641.889279%200c69.62473%200%20126.268822-56.644091%20126.268822-126.268822L958.148711%20457.07404%20873.468077%20457.07404zM637.041366%20581.87544l68.264756%200%200%20152.688541-68.264756%200L637.041366%20581.87544zM468.812897%20581.87544l83.548858%200%200%20152.688541-83.548858%200L468.812897%20581.87544zM315.868529%20581.87544l68.26578%200%200%20152.688541-68.26578%200L315.868529%20581.87544z'%20fill='%232c2c2c'%20p-id='17486'%3e%3c/path%3e%3c/svg%3e",rT="org",TY=e=>{const{orgVariableType:t}=e,n={orgVariableType:t};switch(t){case As.ORG_ID:n.orgId=e.orgId;break;case As.GET_ORG_TASK_OUTPUT:n.getOrgTaskDefKey=e.getOrgTaskDefKey;break}return{name:rT,type:"expression",value:JSON.stringify(n)}},L6=(e,t)=>{cm(e,TY(t))},FIe=e=>{const n=P0(e).find(i=>i.name===rT)||{};return JSON.parse(n.expression||"{}")},zIe=(e,t)=>{const n=d.toRaw(P0(e)),r=n.findIndex(i=>i.name===rT);r!==-1&&um(e,n[r],TY(t))},VIe=(e,t)=>n=>{const r=t.createShape({type:"bpmn:ServiceTask"}),i=r.businessObject;i.set("name","获取监理公司"),i.set("activiti:delegateExpression","${getSupervisoryOrgOfOrg}"),ps(r,{name:Sa,value:p$}),L6(r,{orgVariableType:As.GET_ORG_TASK_OUTPUT,getOrgTaskDefKey:""}),e.start(n,r,void 0)},HIe=(e,t)=>{const n=VIe(e,t);return{"get-supervisory-org":{group:"customnode",title:"获取监理公司",imageUrl:BIe,action:{click:n,dragstart:n}}}},UIe={class:"org-title-selector-container"},WIe={class:"org-type-options"},qIe={class:"job-title-type-options"},GIe=d.defineComponent({__name:"OrgTitleSelector",props:{org:{type:Object,required:!0},jobTitle:{type:Object,required:!1,default:()=>({titleListType:rf.TITLE_NAME_LIST,titleNameList:[]})},label:{type:String,default:"配置"},dialogTitle:{type:String,default:"公司职务选择"},disableTitle:{type:Boolean,default:!1}},emits:["update:org","update:jobTitle","on-ok"],setup(e,{emit:t}){const n=e,r=d.ref({...n.org}),i=d.ref(n.disableTitle),o=d.ref({...n.jobTitle}),a=d.ref(n.label),s=d.computed(()=>OAe(r.value.orgVariableType)),l=t,c=(y,C)=>{l("update:org",d.toRaw(y)),l("update:jobTitle",d.toRaw(C))},u=d.ref(!1),f=()=>{u.value=!0},h=d.ref(!1),p=d.ref(600),m=d.ref(600),b=d.computed(()=>({width:`${p.value}px`,height:`${m.value}px`})),v=d.ref(d.markRaw(pu));function g(){h.value=!h.value,h.value?(p.value=window.innerWidth,m.value=window.innerHeight,v.value=K2):(p.value=600,m.value=600,v.value=pu)}const x=()=>{c(r.value,o.value),l("on-ok",r.value,o.value),u.value=!1},w=()=>d.createVNode("div",{class:"json-dialog-title-container"},[d.createVNode("span",null,[n.dialogTitle]),d.createVNode("span",null,[d.createVNode(v.value,{onClick:g,class:"edit-icon"},null)])]);return(y,C)=>{const _=d.resolveComponent("n-radio"),S=d.resolveComponent("n-radio-group"),E=d.resolveComponent("n-form-item"),$=d.resolveComponent("n-input"),k=d.resolveComponent("n-select"),P=d.resolveComponent("n-dynamic-input"),T=d.resolveComponent("n-form"),j=d.resolveComponent("n-button"),M=d.resolveComponent("n-modal");return d.openBlock(),d.createElementBlock(d.Fragment,null,[d.createVNode(M,{show:u.value,"onUpdate:show":C[8]||(C[8]=B=>u.value=B),"mask-closable":!1,preset:"dialog",title:w,"show-icon":!1,style:d.normalizeStyle(b.value)},{action:d.withCtx(()=>[d.createVNode(j,{size:"small",type:"info",onClick:x},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(y.$t("panel.confirm")),1)]),_:1})]),default:d.withCtx(()=>[d.createElementVNode("div",UIe,[d.createVNode(T,{"label-placement":"left","label-width":"auto","require-mark-placement":"right-hanging",size:"small",style:{maxWidth:"640px",marginTop:"10px"}},{default:d.withCtx(()=>[d.createVNode(E,{label:"获取机构方式"},{default:d.withCtx(()=>[d.createElementVNode("div",WIe,[d.createVNode(S,{value:r.value.orgVariableType,"onUpdate:value":C[0]||(C[0]=B=>r.value.orgVariableType=B),name:"orgSelect",style:{"margin-bottom":"10px"}},{default:d.withCtx(()=>[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(d.unref(RAe),B=>(d.openBlock(),d.createBlock(_,{key:B.value,value:B.value,label:B.label},null,8,["value","label"]))),128))]),_:1},8,["value"])])]),_:1}),r.value.orgVariableType===d.unref(As).ORG_ID?(d.openBlock(),d.createBlock(E,{key:0,label:"机构 id"},{default:d.withCtx(()=>[d.createVNode($,{value:r.value.orgId,"onUpdate:value":C[1]||(C[1]=B=>r.value.orgId=B),placeholder:"请输入机构 id",onKeydown:C[2]||(C[2]=d.withKeys(d.withModifiers(()=>{},["prevent"]),["enter"]))},null,8,["value"])]),_:1})):d.createCommentVNode("",!0),r.value.orgVariableType===d.unref(As).GET_ORG_TASK_OUTPUT?(d.openBlock(),d.createBlock(E,{key:1,label:"节点 ID"},{default:d.withCtx(()=>[d.createVNode(k,{value:r.value.getOrgTaskDefKey,"onUpdate:value":C[3]||(C[3]=B=>r.value.getOrgTaskDefKey=B),placeholder:"请选择节点",options:s.value,onKeydown:C[4]||(C[4]=d.withKeys(d.withModifiers(()=>{},["prevent"]),["enter"]))},null,8,["value","options"])]),_:1})):d.createCommentVNode("",!0),i.value?d.createCommentVNode("",!0):(d.openBlock(),d.createBlock(E,{key:2,label:"获取职称方式"},{default:d.withCtx(()=>[d.createElementVNode("div",qIe,[d.createVNode(S,{value:o.value.titleListType,"onUpdate:value":C[5]||(C[5]=B=>o.value.titleListType=B),name:"jobTitleSelect",style:{"margin-bottom":"10px"}},{default:d.withCtx(()=>[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(d.unref(PAe),B=>(d.openBlock(),d.createBlock(_,{key:B.value,value:B.value,label:B.label},null,8,["value","label"]))),128))]),_:1},8,["value"])])]),_:1})),!i.value&&o.value.titleListType===d.unref(rf).TITLE_NAME_LIST?(d.openBlock(),d.createBlock(E,{key:3,label:"职称名列表"},{default:d.withCtx(()=>[d.createVNode(P,{value:o.value.titleNameList,"onUpdate:value":C[6]||(C[6]=B=>o.value.titleNameList=B),placeholder:"请输入值",min:1,onKeydown:C[7]||(C[7]=d.withKeys(d.withModifiers(()=>{},["prevent"]),["enter"]))},null,8,["value"])]),_:1})):d.createCommentVNode("",!0)]),_:1})])]),_:1},8,["show","style"]),d.createVNode(j,{type:"info",onClick:f},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(a.value),1)]),_:1})],64)}}}),iT="titleList",RY=e=>{const{titleListType:t,titleNameList:n}=e,r={titleListType:t};switch(t){case rf.TITLE_NAME_LIST:r.titleNameList=n;break}return{name:iT,type:"expression",value:JSON.stringify(r)}},PY=(e,t)=>{cm(e,RY(t))},KIe=e=>{const n=P0(e).find(i=>i.name===iT)||{};return JSON.parse(n.expression||"{}")},YIe=(e,t)=>{const n=d.toRaw(P0(e)),r=n.findIndex(i=>i.name===iT);r!==-1&&um(e,n[r],RY(t))},B6=d.defineComponent({__name:"OrgTitleConfigProperty",props:{label:{type:String,default:"获取人员的配置"},disableTitle:{type:Boolean,default:!1}},setup(e){const t=e,n=d.ref({titleListType:"TITLE_NAME_LIST",titleNameList:[]}),r=d.ref({orgVariableType:"ID",orgId:"",getOrgTaskDefKey:""}),i=d.ref(t.disableTitle),o=Zt(Ut),a=()=>{r.value=FIe(o.activeElement),i.value||(n.value=KIe(o.activeElement))},s=(l,c)=>{zIe(o.activeElement,l),i.value||YIe(o.activeElement,c)};return Go(a),(l,c)=>{var p;const u=d.resolveComponent("n-descriptions-item"),f=d.resolveComponent("n-descriptions"),h=d.resolveComponent("n-collapse-item");return d.openBlock(),d.createBlock(h,null,d.createSlots({header:d.withCtx(()=>[d.createVNode(Mo,{title:t.label},{default:d.withCtx(()=>[d.createVNode(d.unref(G2))]),_:1},8,["title"])]),default:d.withCtx(()=>[d.createElementVNode("div",null,[d.createVNode(GIe,{disableTitle:i.value,label:"配置",org:r.value,"onUpdate:org":c[0]||(c[0]=m=>r.value=m),jobTitle:n.value,"onUpdate:jobTitle":c[1]||(c[1]=m=>n.value=m),onOnOk:s},null,8,["disableTitle","org","jobTitle"]),d.createVNode(f,{"label-placement":"left",column:1,bordered:"",size:"small",style:{"margin-top":"10px"}},{default:d.withCtx(()=>[d.createVNode(u,null,{label:d.withCtx(()=>[d.createTextVNode(" 机构类型 ")]),default:d.withCtx(()=>[d.createTextVNode(" "+d.toDisplayString(r.value.orgVariableType),1)]),_:1}),r.value.orgVariableType===d.unref(As).ORG_ID?(d.openBlock(),d.createBlock(u,{key:0},{label:d.withCtx(()=>[d.createTextVNode(" 机构 ID ")]),default:d.withCtx(()=>[d.createTextVNode(" "+d.toDisplayString(r.value.orgId),1)]),_:1})):d.createCommentVNode("",!0),r.value.orgVariableType===d.unref(As).GET_ORG_TASK_OUTPUT?(d.openBlock(),d.createBlock(u,{key:1},{label:d.withCtx(()=>[d.createTextVNode(" 流程节点 ID ")]),default:d.withCtx(()=>[d.createTextVNode(" "+d.toDisplayString(r.value.getOrgTaskDefKey),1)]),_:1})):d.createCommentVNode("",!0),i.value?d.createCommentVNode("",!0):(d.openBlock(),d.createBlock(u,{key:2},{label:d.withCtx(()=>[d.createTextVNode(" 职称类型 ")]),default:d.withCtx(()=>[d.createTextVNode(" "+d.toDisplayString(n.value.titleListType),1)]),_:1})),!i.value&&n.value.titleListType===d.unref(rf).TITLE_NAME_LIST?(d.openBlock(),d.createBlock(u,{key:3},{label:d.withCtx(()=>[d.createTextVNode(" 职称名 ")]),default:d.withCtx(()=>[d.createTextVNode(" "+d.toDisplayString(n.value.titleNameList.join(",")),1)]),_:1})):d.createCommentVNode("",!0)]),_:1})])]),_:2},[r.value.orgId||(p=n.value.titleNameList)!=null&&p.length||r.value.getOrgTaskDefKey?{name:"header-extra",fn:d.withCtx(()=>[d.createVNode(ka)]),key:"0"}:void 0]),1024)}}}),ZIe=d.defineComponent({__name:"property",setup(e){return(t,n)=>(d.openBlock(),d.createBlock(B6,{label:"获取监理公司的配置",disableTitle:!0}))}}),XIe="data:image/svg+xml,%3csvg%20t='1711350794276'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='6567'%20width='30'%20height='30'%3e%3cpath%20d='M0%200h1024v1024H0V0z%20m56.888889%2056.888889v910.222222h910.222222V56.888889H56.888889z'%20fill='%232c2c2c'%20p-id='6568'%3e%3c/path%3e%3cpath%20d='M210.488889%20329.955556h96.711111c-11.377778-34.133333-22.755556-62.577778-39.822222-85.333334l68.266666-11.377778c11.377778%2028.444444%2022.755556%2056.888889%2034.133334%2096.711112h79.644444v62.577777H318.577778v79.644445h119.466666c0%20176.355556-5.688889%20290.133333-11.377777%20329.955555-5.688889%2039.822222-34.133333%2062.577778-91.022223%2062.577778h-28.444444l-17.066667-56.888889c11.377778%200%2022.755556%205.688889%2034.133334%205.688889%2022.755556%200%2039.822222-11.377778%2045.511111-34.133333%205.688889-22.755556%205.688889-102.4%205.688889-238.933334h-56.888889c-5.688889%20153.6-28.444444%20261.688889-73.955556%20335.644445l-51.2-39.822222c39.822222-68.266667%2062.577778-176.355556%2062.577778-324.266667V392.533333h-45.511111V329.955556z%20m335.644444%2039.822222c-17.066667%2045.511111-45.511111%2091.022222-73.955555%20125.155555l-39.822222-51.2c39.822222-51.2%2073.955556-119.466667%20102.4-210.488889l62.577777%2011.377778c-5.688889%2022.755556-11.377778%2039.822222-22.755555%2056.888889h233.244444v62.577778H546.133333z%20m238.933334%2073.955555c0%20130.844444-5.688889%20210.488889-11.377778%20238.933334s-34.133333%2039.822222-73.955556%2039.822222h-5.688889l-17.066666-56.888889h28.444444c5.688889%200%2011.377778-5.688889%2011.377778-17.066667V523.377778l-51.2%2017.066666v221.866667h-62.577778V563.2l-51.2%2017.066667v176.355555c0%2028.444444%2011.377778%2045.511111%2028.444445%2045.511111h130.844444c17.066667%200%2022.755556-5.688889%2034.133333-11.377777%205.688889-5.688889%2011.377778-34.133333%2017.066667-73.955556l56.888889%2017.066667c-5.688889%2056.888889-17.066667%2091.022222-34.133333%20108.088889-11.377778%2011.377778-34.133333%2017.066667-62.577778%2017.066666H563.2c-45.511111%200-68.266667-28.444444-68.266667-91.022222v-170.666667l-39.822222%2022.755556v-56.888889l51.2-17.066667V449.422222h56.888889v68.266667l51.2-17.066667V398.222222h62.577778v85.333334l108.088889-39.822223z'%20fill='%232c2c2c'%20p-id='6569'%3e%3c/path%3e%3c/svg%3e",JIe=(e,t)=>n=>{const r=t.createShape({type:"bpmn:ServiceTask"}),i=r.businessObject;i.set("name","获取施工单位"),i.set("activiti:delegateExpression","${getConstructionOrgOfOrg}"),ps(r,{name:Sa,value:m$}),L6(r,{orgVariableType:As.GET_ORG_TASK_OUTPUT,getOrgTaskDefKey:""}),e.start(n,r,void 0)},QIe=(e,t)=>{const n=JIe(e,t);return{"get-construction-org":{group:"customnode",title:"获取施工单位",imageUrl:XIe,action:{click:n,dragstart:n}}}},eLe=d.defineComponent({__name:"property",setup(e){return(t,n)=>(d.openBlock(),d.createBlock(B6,{label:"获取施工单位的配置",disableTitle:!0}))}}),tLe="data:image/svg+xml,%3csvg%20t='1710141822502'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='14425'%20width='30'%20height='30'%3e%3cpath%20d='M689.814588%20266.300235a175.887059%20175.887059%200%201%200-351.894588%200%20175.887059%20175.887059%200%200%200%20351.894588%200z%20m60.235294%200a236.122353%20236.122353%200%201%201-472.365176%200%20236.122353%20236.122353%200%200%201%20472.365176%200zM873.411765%20916.178824v-76.920471a210.823529%20210.823529%200%200%200-210.82353-210.823529H361.411765a210.823529%20210.823529%200%200%200-210.82353%20210.823529v76.980706h722.82353zM361.411765%20568.259765h301.17647a271.058824%20271.058824%200%200%201%20271.058824%20271.058823v107.098353a30.117647%2030.117647%200%200%201-30.117647%2030.117647H120.470588a30.117647%2030.117647%200%200%201-30.117647-30.117647v-107.098353a271.058824%20271.058824%200%200%201%20271.058824-271.058823z'%20fill='%232c2c2c'%20p-id='14426'%3e%3c/path%3e%3c/svg%3e",nLe=(e,t)=>n=>{const r=t.createShape({type:"bpmn:ServiceTask"}),i=r.businessObject;i.set("name","获取单人员"),i.set("activiti:delegateExpression","${getSingleUserFromTitleTaskService}"),ps(r,{name:Sa,value:f$}),PY(r,{titleListType:rf.TITLE_NAME_LIST,titleNameList:[]}),L6(r,{orgVariableType:As.ORG_ID,orgId:""}),e.start(n,r,void 0)},rLe=(e,t)=>{const n=nLe(e,t);return{"get-single-user":{group:"customnode",title:"获取单个人员",imageUrl:tLe,action:{click:n,dragstart:n}}}},iLe=d.defineComponent({__name:"property",setup(e){return(t,n)=>(d.openBlock(),d.createBlock(B6,{label:"获取单人员的配置"}))}}),oLe="data:image/svg+xml,%3csvg%20t='1709800140877'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='4222'%20width='30'%20height='30'%3e%3cpath%20d='M414.71%20509.2C301%20509.2%20208.47%20416.68%20208.47%20303S301%2096.73%20414.71%2096.73%20620.94%20189.24%20620.94%20303s-92.51%20206.2-206.23%20206.2z%20m0-352.47c-80.64%200-146.24%2065.6-146.24%20146.23s65.6%20146.24%20146.24%20146.24S560.94%20383.6%20560.94%20303s-65.6-146.27-146.23-146.27zM734.71%20924.17h-640a30%2030%200%200%201-29.6-34.9c15.49-93.64%2058.18-179.2%20120.19-240.9%2031.28-31.13%2066.5-55.45%20104.68-72.28a307%20307%200%200%201%20249.46%200c38.18%2016.83%2073.4%2041.15%20104.68%2072.28%2062%2061.7%20104.69%20147.26%20120.19%20240.9a30%2030%200%200%201-29.6%2034.9z%20m-603.12-60h566.24C660%20714.72%20545.28%20609.61%20414.71%20609.61S169.44%20714.72%20131.59%20864.17zM711%20478.22a30%2030%200%200%201-17-54.71%20146.29%20146.29%200%200%200-13.26-249.22%2030%2030%200%200%201%2028.58-52.76A206.3%20206.3%200%200%201%20728%20472.93a30%2030%200%200%201-17%205.29zM931.12%20924.17h-75.79a30%2030%200%200%201%200-60h39.1C867%20751%20801.12%20660.72%20717.34%20624a30%2030%200%200%201%2024.07-55c56.25%2024.63%20106.42%2068.36%20145.07%20126.46%2036.74%2055.22%2062.41%20122.21%2074.24%20193.73a30%2030%200%200%201-29.6%2034.9z'%20p-id='4223'%3e%3c/path%3e%3c/svg%3e",aLe=(e,t)=>n=>{const r=t.createShape({type:"bpmn:ServiceTask"}),i=r.businessObject;i.set("name","获取多人员"),i.set("activiti:delegateExpression","${getMultipleUsersTaskService}"),ps(r,{name:Sa,value:h$}),PY(r,{titleListType:rf.TITLE_NAME_LIST,titleNameList:[]}),L6(r,{orgVariableType:As.ORG_ID,orgId:""}),e.start(n,r,void 0)},sLe=(e,t)=>{const n=aLe(e,t);return{"get-multi-user":{group:"customnode",title:"获取多个人员",imageUrl:oLe,action:{click:n,dragstart:n}}}},lLe=d.defineComponent({__name:"property",setup(e){return(t,n)=>(d.openBlock(),d.createBlock(B6,{label:"获取多人员的配置"}))}}),cLe="data:image/svg+xml,%3csvg%20t='1709801148292'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='5252'%20width='30'%20height='30'%3e%3cpath%20d='M515.09%20955.46H217.17c-67.25%200-121.97-55.66-121.97-124.07V192.41c0-68.41%2054.71-124.07%20121.97-124.07h573.89c67.25%200%20121.97%2055.66%20121.97%20124.07v212.12c0%2022.95-18.29%2041.56-40.85%2041.56s-40.85-18.61-40.85-41.56V192.41c0-22.58-18.06-40.95-40.26-40.95h-573.9c-22.2%200-40.26%2018.37-40.26%2040.95v638.98c0%2022.58%2018.06%2040.95%2040.26%2040.95h297.92c22.56%200%2040.85%2018.61%2040.85%2041.56s-18.28%2041.56-40.85%2041.56z'%20p-id='5253'%3e%3c/path%3e%3cpath%20d='M708.2%20368.58c0.06-0.16%200.11-0.32%200.17-0.47%200.82-2.08%201.48-4.24%201.92-6.49%200.02-0.12%200.03-0.24%200.06-0.36%200.42-2.23%200.66-4.52%200.66-6.87%200-2.35-0.24-4.64-0.66-6.87-0.02-0.12-0.03-0.24-0.06-0.36-0.44-2.25-1.1-4.41-1.92-6.49-0.06-0.16-0.11-0.32-0.17-0.47-0.88-2.13-1.95-4.15-3.19-6.06-0.09-0.14-0.16-0.28-0.25-0.41-1.38-2.07-2.95-4-4.7-5.75l-93.09-93.09c-14.59-14.59-38.24-14.59-52.83%200-14.59%2014.59-14.59%2038.24%200%2052.83l29.32%2029.32H334.58c-20.63%200-37.36%2016.73-37.36%2037.36s16.73%2037.36%2037.36%2037.36h339.07c2.35%200%204.64-0.24%206.87-0.66%200.12-0.02%200.24-0.03%200.36-0.06%202.25-0.44%204.41-1.1%206.49-1.92%200.16-0.06%200.32-0.11%200.47-0.17%202.13-0.88%204.15-1.95%206.06-3.19%200.13-0.09%200.27-0.16%200.41-0.25%204.13-2.75%207.69-6.31%2010.44-10.44%200.09-0.13%200.16-0.27%200.25-0.41%201.25-1.93%202.32-3.96%203.2-6.08zM630.39%20928.98c-8.23%200-18.01-1.74-27.23-7.74-7.32-4.76-19.9-17.07-21.87-40.15l-0.16-1.9%203.77-96.01c-0.2-8.44%202.63-16.08%204.46-21l1.24-3.33%20162.95-245.66c12.53-17.5%2039.04-28.06%2065.41-14.4l3%201.78%2084.68%2056.89c19.06%2013.62%2030.01%2042.17%2012.77%2068.24L764.77%20859.45a61.198%2061.198%200%200%201-23.64%2020.94l-89.75%2044.87-1.91%200.66c-2.28%200.79-9.68%203.06-19.08%203.06z%20m15.88-142.93l-2.9%2074.54%2070.3-35.15%20148.17-224.09-64.39-43.25-151.18%20227.95z'%20p-id='5254'%3e%3c/path%3e%3c/svg%3e";function OY(e,t){const n=`${Ot}:${t}`,r=hm(e);return t==="loopCardinality"||t==="completionCondition"?jY(e,t):r==null?void 0:r.get(n)}function uLe(e){const t=hm(e),n={};for(const r of l$){const i=`${Ot}:${r}`,o=r==="loopCardinality"||r==="completionCondition";t&&(n[r]=o?jY(e,r):t.get(i))}return n}function Z2(e,t,n){var a,s;const r=Zt(Ut),i=hm(e);if(t==="loopCardinality"||t==="completionCondition"){const{moddleElement:l,properties:c}=pLe(e,t,n);(a=r.modeling)==null||a.updateModdleProperties(e,l,c)}else(s=r.modeling)==null||s.updateModdleProperties(e,i,{[`${Ot}:${t}`]:n})}function dLe(e){const t=hm(e);return!!t&&Q(t,`${Ot}:Collectable`)}function hm(e){return rt(e).loopCharacteristics}function fLe(e,t){const n=hm(e);return n&&n.get(t)}function hLe(e){return e&&e.get("body")}function jY(e,t){const n=fLe(e,t);return hLe(n)}function pLe(e,t,n){const r=hm(e),i={};if(!n)return i[t]=void 0,{moddleElement:r,properties:i};const o=r.get(t);return o?{moddleElement:o,properties:{body:n}}:(i[t]=zAe(r,n),{moddleElement:r,properties:i})}function mLe(e){const t=Zt(Ut),{scriptFormat:n,value:r,resource:i}=e;return t.moddle.create(`${Ot}:Script`,{scriptFormat:n,value:r,resource:i})}function gLe(e){return e.get("resource")?"external":e.get("value")?"inline":"none"}function vLe(e){return typeof e>"u"}function MY(e=""){try{JSON.parse(e)}catch{return!1}return!0}function AY(e,t){const n=F6(e);return Zh(n,`${Ot}:${t}`)}function X2(e,t,n){const r=Zt(Ut),i=F6(e),o=r.moddle.create(`${Ot}:${n}`,{});_Le(e,o,t),dK(e,i,o)}function NY(e,t,n,r){$6(e,F6(e),n),X2(e,t,r)}function bLe(e,t){$6(e,F6(e),t)}function yLe(e){return Q(e,"bpmn:UserTask")}function xLe(e){return zn(e,SAe)?!0:Q(e,"bpmn:Participant")?!!e.businessObject.processRef:!1}function wLe(e,t){if(zn(e,[`${Ot}:${t}`])){if(e.get(`${Ot}:class`))return"class";if(e.get(`${Ot}:expression`))return"expression";if(e.get(`${Ot}:delegateExpression`))return"delegateExpression";if(e.get("script"))return"script"}return""}function F6(e){const t=rt(e);return(t==null?void 0:t.get("processRef"))||t}function CLe(e,t){return t==="TaskListener"?[{label:"Create",value:"create"},{label:"Assignment",value:"assignment"},{label:"Complete",value:"complete"},{label:"Delete",value:"delete"}]:Q(e,"bpmn:SequenceFlow")?[{label:"Take",value:"take"}]:[{label:"Start",value:"start"},{label:"End",value:"end"}]}function DY(e,t){return t==="TaskListener"?"create":Q(e,"bpmn:SequenceFlow")?"take":"start"}function _Le(e,t,n){var f;const r=Zt(Ut),{event:i,class:o,expression:a,delegateExpression:s,script:l,fields:c}=n,u=(h,p)=>{var m;return(m=r.modeling)==null?void 0:m.updateModdleProperties(e,t,{[`${Ot}:${h}`]:p})};if(i&&u("event",i),!vLe(o)&&u("class",o),a&&u("expression",a),s&&u("delegateExpression",s),l){const h=mLe(l);(f=r.modeling)==null||f.updateModdleProperties(e,t,{script:h})}HAe(e,t),c&&c.forEach(h=>{VAe(e,t,h)})}const SLe=/^(\${)?([a-zA-Z_$][\w.$]*)(?:\(([\s\S]*)\))?(}\s*)?$/,mu="jsonstring";function z6(e=""){e=e.trim();const t=SLe.exec(e);if(!t)return{isVar:!1,isFunction:!1,varName:e,args:[]};const n=t[1]!==void 0&&t[4]!==void 0,r=t[2],i=t[3]||"",o=[];if(i){let s="",l="";for(let u=0;u<i.length;u++){const f=i[u];f===","&&l!==mu?(o.push({content:s.trim(),type:oT(s.trim())}),s="",l=""):(s+=f,f==="{"?l=mu:l!==mu&&s.trim().startsWith("'")&&s.trim().endsWith("'")||l!==mu&&s.trim().startsWith('"')&&s.trim().endsWith('"')?l="string":l!==mu&&f===" "&&(l=oT(s.trim())))}const c=s.trim();c!==""&&o.push({content:c,type:l!==mu?oT(c):mu})}const a=o.length>0||e.endsWith(")");return{isVar:n,isFunction:a,varName:r,args:o}}const ELe=[{label:"字符串",value:"string"},{label:"数字",value:"number"},{label:"布尔值"},{label:"变量",value:"var"},{label:"JSON串",value:mu}];function oT(e){return e.startsWith("'")&&e.endsWith("'")?"string":/^\d+(\.\d+)?$/.test(e)?"number":e==="true"||e==="false"?"boolean":"var"}function V6(e,t){const n=new RegExp(`^${t}+|${t}+$`,"g");return e.replace(n,"")}function IY(e){return e.replace(/\\"/g,'"')}const aT=e=>({content:(e==null?void 0:e.type)===mu?IY(V6(V6(e.content,"'"),'"')):e==null?void 0:e.content,type:e==null?void 0:e.type}),sT=(e,t,n,r)=>{X2(e,{event:t,type:"delegateExpression",delegateExpression:n,fields:r},"TaskListener")},kLe=(e,t,n,r)=>{const i=AY(e,"TaskListener"),o=i.findIndex(a=>a.event===t);NY(e,{event:t,type:"delegateExpression",delegateExpression:n,fields:r},i[o],"TaskListener")},LY=e=>{const t=e.businessObject;if(!t.loopCharacteristics){const r=Zt(Ut).moddle.create("bpmn:MultiInstanceLoopCharacteristics",{isSequential:!1});t.loopCharacteristics=r}},H6={minApprovedCount:1,maxRejectedCount:0},$Le=e=>"${counterTaskService.getCounterTaskCandidates(execution,'"+JSON.stringify(e)+"')}",TLe=e=>"${counterTaskService.counterTaskCompleted(execution, '"+JSON.stringify(e)+"')}",RLe=e=>{sT(e,"create","${checkCounterSignAssigneeListener}"),LY(e),lT(e,hu),Z2(e,"elementVariable","counterSignAssignee"),cT(e,H6,!1)},PLe=e=>{sT(e,"create","${checkCounterReceiveAssigneeListener}"),LY(e),lT(e,hu),Z2(e,"elementVariable","counterReceiveAssignee"),cT(e,H6,!1)},OLe=e=>{const t=OY(e,"collection"),r=z6(t).args,i=aT(r[1]);return JSON.parse(i.content||"{}")},lT=(e,t)=>{Z2(e,"collection",$Le(t))},jLe=e=>{const t=OY(e,"completionCondition"),r=z6(t).args;if(r.length>=2){const i=aT(r[1]);return JSON.parse(i.content||"{}")}else return H6},cT=(e,t,n=!0)=>{Z2(e,"completionCondition",TLe(t));const r=[{name:"counterTaskCompleteCondition",type:"expression",value:JSON.stringify(t)}],i="${counterTaskCompleteListener}";n?kLe(e,"complete",i,r):sT(e,"complete",i,r)},MLe=(e,t)=>n=>{const r=t.createShape({type:"bpmn:UserTask"}),i=r.businessObject;i.set("name","创建会签节点"),i.set("activiti:assignee","${counterSignAssignee}"),ps(r,{name:Sa,value:g$}),RLe(r),e.start(n,r,void 0)},ALe=(e,t)=>{const n=MLe(e,t);return{"counter-sign-user":{group:"customnode",title:"会签节点",imageUrl:cLe,action:{click:n,dragstart:n}}}},NLe={class:"user-selector-container"},DLe={class:"user-type-options"},ILe=va(d.defineComponent({__name:"CounterSignSelector",props:{user:{type:Object,required:!0},condition:{type:Object,required:!0},label:{type:String,default:"配置"},dialogTitle:{type:String,default:"会签配置"}},emits:["update:user","update:condition","on-ok"],setup(e,{emit:t}){const n=e,r=d.ref({...n.user}),i=d.ref({...n.condition}),o=d.ref(n.label),a=d.computed(()=>xK(r.value.userIdType)),s=t,l=(w,y)=>{s("update:user",w),s("update:condition",y)},c=d.ref(!1),u=()=>{c.value=!0},f=d.ref(!1),h=d.ref(600),p=d.ref(600),m=d.computed(()=>({width:`${h.value}px`,height:`${p.value}px`})),b=d.ref(d.markRaw(pu));function v(){f.value=!f.value,f.value?(h.value=window.innerWidth,p.value=window.innerHeight,b.value=K2):(h.value=600,p.value=600,b.value=pu)}d.computed(()=>"");const g=()=>{l(r.value,i.value),s("on-ok",r.value,i.value),c.value=!1},x=()=>d.createVNode("div",{class:"json-dialog-title-container"},[d.createVNode("span",null,[n.dialogTitle]),d.createVNode("span",null,[d.createVNode(b.value,{onClick:v,class:"edit-icon"},null)])]);return(w,y)=>{const C=d.resolveComponent("n-radio"),_=d.resolveComponent("n-radio-group"),S=d.resolveComponent("n-form-item"),E=d.resolveComponent("n-input"),$=d.resolveComponent("n-select"),k=d.resolveComponent("n-input-number"),P=d.resolveComponent("n-form"),T=d.resolveComponent("n-button"),j=d.resolveComponent("n-modal");return d.openBlock(),d.createElementBlock(d.Fragment,null,[d.createVNode(j,{show:c.value,"onUpdate:show":y[7]||(y[7]=M=>c.value=M),"mask-closable":!1,preset:"dialog",title:x,"show-icon":!1,style:d.normalizeStyle(m.value)},{action:d.withCtx(()=>[d.createVNode(T,{size:"small",type:"info",onClick:g},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(w.$t("panel.confirm")),1)]),_:1})]),default:d.withCtx(()=>[d.createElementVNode("div",NLe,[d.createVNode(P,{model:r.value,"label-placement":"left","label-width":"auto","require-mark-placement":"right-hanging",size:"small",style:{maxWidth:"640px",marginTop:"10px"}},{default:d.withCtx(()=>[d.createVNode(S,{label:"用户类型",path:"userIdType"},{default:d.withCtx(()=>[d.createElementVNode("div",DLe,[d.createVNode(_,{value:r.value.userIdType,"onUpdate:value":y[0]||(y[0]=M=>r.value.userIdType=M),name:"modeSelect",style:{"margin-bottom":"10px"}},{default:d.withCtx(()=>[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(d.unref(yK),M=>(d.openBlock(),d.createBlock(C,{key:M.value,value:M.value,label:M.label},null,8,["value","label"]))),128))]),_:1},8,["value"])])]),_:1}),r.value.userIdType===d.unref(Zi).USER_ID?(d.openBlock(),d.createBlock(S,{key:0,label:"用户 id",path:"userId"},{default:d.withCtx(()=>[d.createVNode(E,{value:r.value.userId,"onUpdate:value":y[1]||(y[1]=M=>r.value.userId=M),type:"textarea",placeholder:"请输入用户 id",autosize:{minRows:2},onKeydown:y[2]||(y[2]=d.withKeys(d.withModifiers(()=>{},["prevent"]),["enter"]))},null,8,["value"])]),_:1})):d.createCommentVNode("",!0),r.value.userIdType===d.unref(Zi).GET_SINGLE_USER||r.value.userIdType===d.unref(Zi).GET_MULTI_USERS?(d.openBlock(),d.createBlock(S,{key:1,label:"节点 ID",path:"outputTaskDefKey"},{default:d.withCtx(()=>[d.createVNode($,{value:r.value.outputTaskDefKey,"onUpdate:value":y[3]||(y[3]=M=>r.value.outputTaskDefKey=M),placeholder:"请选择节点",options:a.value,onKeydown:y[4]||(y[4]=d.withKeys(d.withModifiers(()=>{},["prevent"]),["enter"]))},null,8,["value","options"])]),_:1})):d.createCommentVNode("",!0),d.createVNode(S,{label:"最小通过人数"},{default:d.withCtx(()=>[d.createVNode(k,{value:i.value.minApprovedCount,"onUpdate:value":y[5]||(y[5]=M=>i.value.minApprovedCount=M),placeholder:"请输入数值,最小值不能小于 1",min:1},null,8,["value"])]),_:1}),d.createVNode(S,{label:"最多拒绝人数"},{default:d.withCtx(()=>[d.createVNode(k,{value:i.value.maxRejectedCount,"onUpdate:value":y[6]||(y[6]=M=>i.value.maxRejectedCount=M),placeholder:"请输入数值",min:0},null,8,["value"])]),_:1})]),_:1},8,["model"])])]),_:1},8,["show","style"]),d.createVNode(T,{type:"info",onClick:u},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(o.value),1)]),_:1})],64)}}}),[["__scopeId","data-v-b07447e8"]]),BY=d.defineComponent({__name:"CounterSignProperty",props:{label:{type:String,default:"获取用户的配置"}},setup(e){const t=e,n=d.ref({...hu,outputTaskDefKey:""}),r=d.ref(H6),i=Zt(Ut),o=()=>{n.value=OLe(i.activeElement),r.value=jLe(i.activeElement)},a=(s,l)=>{lT(i.activeElement,s),cT(i.activeElement,l,!0)};return Go(o),(s,l)=>{const c=d.resolveComponent("n-descriptions-item"),u=d.resolveComponent("n-descriptions"),f=d.resolveComponent("n-collapse-item");return d.openBlock(),d.createBlock(f,null,d.createSlots({header:d.withCtx(()=>[d.createVNode(Mo,{title:t.label},{default:d.withCtx(()=>[d.createVNode(d.unref(G2))]),_:1},8,["title"])]),default:d.withCtx(()=>[d.createElementVNode("div",null,[d.createVNode(ILe,{user:n.value,"onUpdate:user":l[0]||(l[0]=h=>n.value=h),condition:r.value,"onUpdate:condition":l[1]||(l[1]=h=>r.value=h),onOnOk:a},null,8,["user","condition"]),d.createVNode(u,{"label-placement":"left",column:1,bordered:"",size:"small",style:{"margin-top":"10px"}},{default:d.withCtx(()=>[d.createVNode(c,null,{label:d.withCtx(()=>[d.createTextVNode(" 类型 ")]),default:d.withCtx(()=>[d.createTextVNode(" "+d.toDisplayString(n.value.userIdType),1)]),_:1}),n.value.userIdType===d.unref(Zi).USER_ID?(d.openBlock(),d.createBlock(c,{key:0},{label:d.withCtx(()=>[d.createTextVNode(" 用户 ID ")]),default:d.withCtx(()=>[d.createTextVNode(" "+d.toDisplayString(n.value.userId),1)]),_:1})):d.createCommentVNode("",!0),n.value.userIdType===d.unref(Zi).GET_SINGLE_USER||n.value.userIdType===d.unref(Zi).GET_MULTI_USERS?(d.openBlock(),d.createBlock(c,{key:1},{label:d.withCtx(()=>[d.createTextVNode(" 节点 ID ")]),default:d.withCtx(()=>[d.createTextVNode(" "+d.toDisplayString(n.value.outputTaskDefKey),1)]),_:1})):d.createCommentVNode("",!0),d.createVNode(c,null,{label:d.withCtx(()=>[d.createTextVNode(" 最少通过次数 ")]),default:d.withCtx(()=>[d.createTextVNode(" "+d.toDisplayString(r.value.minApprovedCount),1)]),_:1}),d.createVNode(c,null,{label:d.withCtx(()=>[d.createTextVNode(" 最多拒绝次数 ")]),default:d.withCtx(()=>[d.createTextVNode(" "+d.toDisplayString(r.value.maxRejectedCount),1)]),_:1})]),_:1})])]),_:2},[n.value.userId?{name:"header-extra",fn:d.withCtx(()=>[d.createVNode(ka)]),key:"0"}:void 0]),1024)}}}),LLe=d.defineComponent({__name:"property",setup(e){return(t,n)=>(d.openBlock(),d.createBlock(BY,{label:"会签配置"}))}}),BLe="data:image/svg+xml,%3csvg%20t='1709868403061'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2300'%20width='30'%20height='30'%3e%3cpath%20d='M921.6%20916.992v61.44H139.6224v-61.44H921.6zM530.6368%2051.2a251.392%20251.392%200%200%201%20117.9648%20473.344l-10.5984%205.2736%2016.0768%2079.9232h223.2832l81.4592%20279.296H102.4l81.408-279.296h223.3344l16.0256-79.9232-10.3936-5.1712a251.7504%20251.7504%200%200%201-132.3008-198.0416L279.552%20314.368l-0.256-11.776A251.392%20251.392%200%200%201%20530.6368%2051.2z%20m0%2055.808a195.3792%20195.3792%200%200%200-195.5328%20194.8672l0.256%2010.4448a195.584%20195.584%200%200%200%20129.1776%20174.2848l22.6816%208.1408L452.9664%20665.6H225.6896l-48.7936%20167.5776h707.4304L835.4816%20665.6H608.256l-34.1504-170.9056%2022.6816-8.1408a195.584%20195.584%200%200%200-66.1504-379.4944z'%20fill='%232c2c2c'%20p-id='2301'%3e%3c/path%3e%3c/svg%3e";function FLe(e){const t=rt(e),n={};for(const r of s$){const i=`${Ot}:${r}`;n[r]=t.get(i)}return n}function uT(e,t,n){var o;const r=Zt(Ut),i=rt(e);(o=r.modeling)==null||o.updateModdleProperties(e,i,{[`${Ot}:${t}`]:n})}const pm=(e,t,n,r)=>{X2(e,{event:t,type:"delegateExpression",delegateExpression:n,fields:r},"TaskListener")},zLe=e=>{pm(e,"create","${checkSignAssigneeListener}"),pm(e,"complete","${completeSignApproveListener}")},VLe=e=>{pm(e,"create","${checkReceiveAssigneeListener}"),pm(e,"complete","${completeSignApproveListener}")},HLe=e=>{pm(e,"create","${checkReformAssigneeListener}"),pm(e,"complete","${completeSubmitListener}")},dT=e=>{const n=e.businessObject.get("activiti:assignee");return n?JSON.parse(n||"{}"):hu},fT=(e,t)=>{uT(e,"assignee",JSON.stringify(t))},ULe=(e,t)=>n=>{const r=t.createShape({type:"bpmn:UserTask"}),i=r.businessObject;i.set("name","创建审批节点"),i.set("activiti:assignee",JSON.stringify(hu)),ps(r,{name:Sa,value:v$}),zLe(r),e.start(n,r,void 0)},WLe=(e,t)=>{const n=ULe(e,t);return{"approval-user":{group:"customnode",title:"审批节点",imageUrl:BLe,action:{click:n,dragstart:n}}}},qLe=d.defineComponent({__name:"property",setup(e){return(t,n)=>(d.openBlock(),d.createBlock(Y2,{label:"审批配置",getUserValue:d.unref(dT),updateUserValue:d.unref(fT)},null,8,["getUserValue","updateUserValue"]))}}),GLe="data:image/svg+xml,%3csvg%20t='1711350298534'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='5302'%20width='30'%20height='30'%3e%3cpath%20d='M768%2064V0H256v64H64v896h896V64zM320%2064h384v64H320z%20m576%20832H128V128h128v64h512V128h128z'%20fill='%23333333'%20p-id='5303'%3e%3c/path%3e%3cpath%20d='M450.56%20597.12L342.4%20489.6l-44.8%2044.8%20147.84%20148.48%20342.4-273.92-39.68-49.92-297.6%20238.08z'%20fill='%23333333'%20p-id='5304'%3e%3c/path%3e%3c/svg%3e",KLe=(e,t)=>n=>{const r=t.createShape({type:"bpmn:UserTask"}),i=r.businessObject;i.set("name","创建签收节点"),i.set("activiti:assignee",JSON.stringify(hu)),ps(r,{name:Sa,value:mK}),VLe(r),e.start(n,r,void 0)},YLe=(e,t)=>{const n=KLe(e,t);return{"sign-receipt-user":{group:"customnode",title:"签收节点",imageUrl:GLe,action:{click:n,dragstart:n}}}},ZLe=d.defineComponent({__name:"property",setup(e){return(t,n)=>(d.openBlock(),d.createBlock(Y2,{label:"签收配置",getUserValue:d.unref(dT),updateUserValue:d.unref(fT)},null,8,["getUserValue","updateUserValue"]))}}),XLe="data:image/svg+xml,%3csvg%20t='1711354185141'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='7753'%20width='30'%20height='30'%3e%3cpath%20d='M930.909091%201024H93.090909a93.090909%2093.090909%200%200%201-93.090909-93.090909V93.090909a93.090909%2093.090909%200%200%201%2093.090909-93.090909h837.818182a93.090909%2093.090909%200%200%201%2093.090909%2093.090909v837.818182a93.090909%2093.090909%200%200%201-93.090909%2093.090909zM116.363636%2069.818182a46.545455%2046.545455%200%200%200-46.545454%2046.545454v791.272728a46.545455%2046.545455%200%200%200%2046.545454%2046.545454h791.272728a46.545455%2046.545455%200%200%200%2046.545454-46.545454v-791.272728a46.545455%2046.545455%200%200%200-46.545454-46.545454z'%20fill='%232c2c2c'%20p-id='7754'%3e%3c/path%3e%3cpath%20d='M724.293818%20582.050909l-65.815273-65.815273a23.272727%2023.272727%200%200%201%2032.907637-32.907636l49.384727%2049.338182%20115.153455-115.153455a23.319273%2023.319273%200%200%201%2033.093818%2032.861091l-131.816727%20131.677091a23.272727%2023.272727%200%200%201-32.907637%200z'%20fill='%232c2c2c'%20p-id='7755'%3e%3c/path%3e%3cpath%20d='M724.293818%20787.409455l-65.815273-65.815273a23.272727%2023.272727%200%200%201%2032.907637-32.907637l49.384727%2049.338182%20115.153455-115.153454a23.319273%2023.319273%200%200%201%2033.093818%2032.861091l-131.816727%20131.677091a23.272727%2023.272727%200%200%201-32.907637%200z'%20fill='%232c2c2c'%20p-id='7756'%3e%3c/path%3e%3cpath%20d='M724.293818%20376.738909L658.478545%20310.923636a23.272727%2023.272727%200%200%201%2032.907637-32.907636l49.384727%2049.338182%20115.153455-115.153455a23.319273%2023.319273%200%200%201%2033.093818%2032.861091l-131.816727%20131.677091a23.272727%2023.272727%200%200%201-32.907637%200z'%20fill='%232c2c2c'%20p-id='7757'%3e%3c/path%3e%3cpath%20d='M370.036364%20530.385455a172.218182%20172.218182%200%200%201-172.218182-172.218182%20172.218182%20172.218182%200%200%201%20172.218182-172.218182%20172.218182%20172.218182%200%200%201%20172.218181%20172.218182%20172.218182%20172.218182%200%200%201-172.218181%20172.218182z%20m0-288.349091a116.363636%20116.363636%200%200%200-116.363637%20116.363636%20116.363636%20116.363636%200%200%200%20116.363637%20116.363636%20116.363636%20116.363636%200%200%200%20116.363636-116.363636%20116.363636%20116.363636%200%200%200-116.363636-116.363636z'%20fill='%232c2c2c'%20p-id='7758'%3e%3c/path%3e%3cpath%20d='M198.749091%20814.312727H139.589818a378.088727%20378.088727%200%200%201%2075.264-206.848A202.845091%20202.845091%200%200%201%20372.363636%20523.170909a202.798545%20202.798545%200%200%201%20157.416728%2084.247273%20378.088727%20378.088727%200%200%201%2075.264%20206.801454h-59.159273a337.361455%20337.361455%200%200%200-55.482182-161.652363%20148.107636%20148.107636%200%200%200-118.085818-70.795637%20148.014545%20148.014545%200%200%200-118.085818%2070.795637%20337.594182%20337.594182%200%200%200-55.528728%20161.652363z'%20fill='%232c2c2c'%20p-id='7759'%3e%3c/path%3e%3c/svg%3e",JLe=(e,t)=>n=>{const r=t.createShape({type:"bpmn:UserTask"}),i=r.businessObject;i.set("name","创建多人签收节点"),i.set("activiti:assignee","${counterReceiveAssignee}"),ps(r,{name:Sa,value:pK}),PLe(r),e.start(n,r,void 0)},QLe=(e,t)=>{const n=JLe(e,t);return{"multi-sign-receipt-user":{group:"customnode",title:"多人签收节点",imageUrl:XLe,action:{click:n,dragstart:n}}}},eBe=d.defineComponent({__name:"property",setup(e){return(t,n)=>(d.openBlock(),d.createBlock(BY,{label:"多人签收配置"}))}}),tBe="data:image/svg+xml,%3csvg%20t='1709879234957'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='4570'%20width='30'%20height='30'%3e%3cpath%20d='M1016.904408%20870.092348a150.623161%20150.623161%200%200%200-124.661452-148.304141V505.497194a25.565779%2025.565779%200%200%200%200-2.205897v-1.018107a25.452656%2025.452656%200%200%200-25.452656-25.452655H520.577619V303.459668%20302.328438a150.623161%20150.623161%200%201%200-51.866857%200v174.60522H154.68155a25.452656%2025.452656%200%200%200-25.452656%2025.452655v0.961545a25.565779%2025.565779%200%200%200%200%202.205897v216.291013a150.623161%20150.623161%200%201%200%2051.866857%200V511.605831h659.280348v210.182376a150.623161%20150.623161%200%201%200%20176.471747%20148.304141zM494.61591%20252.554356a98.699743%2098.699743%200%201%201%200-197.399487%2098.699743%2098.699743%200%200%201%200%20197.399487z%20m-339.425307%20518.838249a98.699743%2098.699743%200%201%201%200%20197.399487%2098.699743%2098.699743%200%200%201%200-197.399487z%20m809.790387%2098.699743a98.699743%2098.699743%200%201%201-197.342925%200%2098.699743%2098.699743%200%200%201%20197.399486%200z'%20p-id='4571'%20fill='%232c2c2c'%3e%3c/path%3e%3c/svg%3e",nBe=(e,t)=>n=>{const r=t.createShape({type:"bpmn:ExclusiveGateway"});ps(r,{name:Sa,value:vK}),e.start(n,r,void 0)},rBe=(e,t)=>{const n=nBe(e,t);return{"leave-gateway":{group:"customnode",title:"条件节点",imageUrl:tBe,action:{click:n,dragstart:n}}}},FY=d.defineComponent({__name:"ConditionValueCreator",props:{expr:{type:Object,required:!0},label:{type:String,default:"配置"}},emits:["update:expr"],setup(e,{emit:t}){const n=e,r=d.ref({...AAe,...n.expr}),i=IAe(),o=d.computed(()=>{var c;switch(((c=i.find(u=>u.value===r.value.taskDefKey))==null?void 0:c.type)||""){case sm:return NAe;case V2:return DAe;default:return[]}}),a=t,s=l=>{a("update:expr",l)};return d.watch(r.value,(l,c)=>{l.taskDefKey!==(c==null?void 0:c.taskDefKey)&&(l.taskOutputKey=""),s(d.toRaw(l))},{immediate:!0}),(l,c)=>{const u=d.resolveComponent("n-select"),f=d.resolveComponent("n-input"),h=d.resolveComponent("n-dynamic-input"),p=d.resolveComponent("n-flex");return d.openBlock(),d.createBlock(p,{wrap:!1},{default:d.withCtx(()=>[d.createVNode(u,{value:r.value.conditionValueType,"onUpdate:value":c[0]||(c[0]=m=>r.value.conditionValueType=m),placeholder:"值类型",options:d.unref(_K),onKeydown:c[1]||(c[1]=d.withKeys(d.withModifiers(()=>{},["prevent"]),["enter"]))},null,8,["value","options"]),r.value.conditionValueType===d.unref(Ea).STRING?(d.openBlock(),d.createBlock(f,{key:0,value:r.value.stringValue,"onUpdate:value":c[2]||(c[2]=m=>r.value.stringValue=m),placeholder:"请输入",onKeydown:c[3]||(c[3]=d.withKeys(d.withModifiers(()=>{},["prevent"]),["enter"]))},null,8,["value"])):d.createCommentVNode("",!0),r.value.conditionValueType===d.unref(Ea).NUMBER?(d.openBlock(),d.createBlock(f,{key:1,value:r.value.numberValue,"onUpdate:value":c[4]||(c[4]=m=>r.value.numberValue=m),placeholder:"请输入",onKeydown:c[5]||(c[5]=d.withKeys(d.withModifiers(()=>{},["prevent"]),["enter"]))},null,8,["value"])):d.createCommentVNode("",!0),r.value.conditionValueType===d.unref(Ea).STRING_LIST?(d.openBlock(),d.createBlock(h,{key:2,value:r.value.stringValueList,"onUpdate:value":c[6]||(c[6]=m=>r.value.stringValueList=m),placeholder:"请输入值",min:1},null,8,["value"])):d.createCommentVNode("",!0),r.value.conditionValueType===d.unref(Ea).TASK_OUTPUT?(d.openBlock(),d.createBlock(u,{key:3,style:{width:"128px"},value:r.value.taskDefKey,"onUpdate:value":c[7]||(c[7]=m=>r.value.taskDefKey=m),options:d.unref(i),placeholder:"请选择节点"},null,8,["value","options"])):d.createCommentVNode("",!0),r.value.conditionValueType===d.unref(Ea).TASK_OUTPUT?(d.openBlock(),d.createBlock(u,{key:4,style:{width:"128px"},value:r.value.taskOutputKey,"onUpdate:value":c[8]||(c[8]=m=>r.value.taskOutputKey=m),options:o.value,placeholder:"请选择属性"},null,8,["value","options"])):d.createCommentVNode("",!0)]),_:1})}}}),iBe={class:"user-selector-container"},oBe=d.createElementVNode("p",null,"左值",-1),aBe=d.createElementVNode("p",null,"操作",-1),sBe=d.createElementVNode("p",null,"右值",-1),lBe=d.defineComponent({__name:"GatewayConditionSelector",props:{condition:{type:Object,required:!0},label:{type:String,default:"配置"},dialogTitle:{type:String,default:"条件配置"}},emits:["update:condition","on-ok"],setup(e,{emit:t}){const n=e,{condition:r,label:i}=d.toRefs(n),o=t,a=w=>{o("update:condition",w)},s=d.ref(!1),l=()=>{s.value=!0},c=d.ref(!1),u=d.ref(1e3),f=d.ref(600),h=d.computed(()=>({width:`${u.value}px`,height:`${f.value}px`})),p=d.ref(d.markRaw(pu));function m(){c.value=!c.value,c.value?(u.value=window.innerWidth,f.value=window.innerHeight,p.value=K2):(u.value=1e3,f.value=600,p.value=pu)}const b=d.computed(()=>{const w=T0(v$).map(R0),y=T0(g$).map(R0);return w.concat(y)}),v=d.computed(()=>kK(r.value)),g=()=>{a(r.value),o("on-ok",r.value),s.value=!1},x=()=>d.createVNode("div",{class:"json-dialog-title-container"},[d.createVNode("span",null,[n.dialogTitle]),d.createVNode("span",null,[d.createVNode(p.value,{onClick:m,class:"edit-icon"},null)])]);return(w,y)=>{const C=d.resolveComponent("n-gi"),_=d.resolveComponent("n-select"),S=d.resolveComponent("n-grid"),E=d.resolveComponent("n-flex"),$=d.resolveComponent("n-tab-pane"),k=d.resolveComponent("n-form-item"),P=d.resolveComponent("n-switch"),T=d.resolveComponent("n-tabs"),j=d.resolveComponent("n-alert"),M=d.resolveComponent("n-form"),B=d.resolveComponent("n-button"),V=d.resolveComponent("n-modal");return d.openBlock(),d.createElementBlock(d.Fragment,null,[d.createVNode(V,{class:"gateway-condition-selector-modal",show:s.value,"onUpdate:show":y[8]||(y[8]=R=>s.value=R),"mask-closable":!1,preset:"dialog",title:x,"show-icon":!1,style:d.normalizeStyle(h.value)},{action:d.withCtx(()=>[d.createVNode(B,{size:"small",type:"info",onClick:g},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(w.$t("panel.confirm")),1)]),_:1})]),default:d.withCtx(()=>[d.createElementVNode("div",iBe,[d.createVNode(M,{"label-placement":"left","label-width":"auto","require-mark-placement":"right-hanging",size:"small",style:{marginTop:"10px"}},{default:d.withCtx(()=>[d.createVNode(T,{type:"line",animated:"",value:d.unref(r).conditionType,"onUpdate:value":y[7]||(y[7]=R=>d.unref(r).conditionType=R)},{default:d.withCtx(()=>[d.createVNode($,{name:d.unref(T6)[0].value,tab:d.unref(T6)[0].label},{default:d.withCtx(()=>[d.createVNode(S,{"x-gap":"12",cols:24},{default:d.withCtx(()=>[d.createVNode(C,{span:10},{default:d.withCtx(()=>[oBe,d.createVNode(FY,{expr:d.unref(r).operatorCondition.left,"onUpdate:expr":y[0]||(y[0]=R=>d.unref(r).operatorCondition.left=R)},null,8,["expr"])]),_:1}),d.createVNode(C,{span:4},{default:d.withCtx(()=>[aBe,d.createVNode(_,{value:d.unref(r).operatorCondition.operator,"onUpdate:value":y[1]||(y[1]=R=>d.unref(r).operatorCondition.operator=R),placeholder:"请选择操作类型",options:d.unref(CK),onKeydown:y[2]||(y[2]=d.withKeys(d.withModifiers(()=>{},["prevent"]),["enter"]))},null,8,["value","options"])]),_:1}),d.createVNode(C,{span:10},{default:d.withCtx(()=>[sBe,d.createVNode(FY,{expr:d.unref(r).operatorCondition.right,"onUpdate:expr":y[3]||(y[3]=R=>d.unref(r).operatorCondition.right=R)},null,8,["expr"])]),_:1})]),_:1}),d.createVNode(E,{wrap:!1})]),_:1},8,["name","tab"]),d.createVNode($,{name:d.unref(T6)[1].value,tab:d.unref(T6)[1].label},{default:d.withCtx(()=>[d.createVNode(k,{label:"节点 ID"},{default:d.withCtx(()=>[d.createVNode(_,{value:d.unref(r).approveCondition.approveTaskDefKey,"onUpdate:value":y[4]||(y[4]=R=>d.unref(r).approveCondition.approveTaskDefKey=R),placeholder:"请选择审批节点",options:b.value,onKeydown:y[5]||(y[5]=d.withKeys(d.withModifiers(()=>{},["prevent"]),["enter"]))},null,8,["value","options"])]),_:1}),d.createVNode(k,{label:"是否审批通过"},{default:d.withCtx(()=>[d.createVNode(P,{round:!1,value:d.unref(r).approveCondition.targetApproveStatus,"onUpdate:value":y[6]||(y[6]=R=>d.unref(r).approveCondition.targetApproveStatus=R)},null,8,["value"])]),_:1})]),_:1},8,["name","tab"])]),_:1},8,["value"]),d.createVNode(j,{class:"preview-alert",title:"结果预览",type:"info"},{default:d.withCtx(()=>[d.createElementVNode("span",null,d.toDisplayString(v.value),1)]),_:1})]),_:1})])]),_:1},8,["show","style"]),d.createVNode(B,{type:"info",onClick:l},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(d.unref(i)),1)]),_:1})],64)}}}),cBe=["bpmn:Activity","bpmn:ExclusiveGateway","bpmn:InclusiveGateway","bpmn:ComplexGateway"],zY=[{label:"无条件( None )",value:"none"},{label:"默认路径( Default )",value:"default"},{label:"条件表达式( Expression )",value:"expression"},{label:"条件脚本( Script )",value:"script"}];function uBe(e){return zn(e,cBe)}function VY(e){return Q(e,"bpmn:Event")&&!!b$(e,"bpmn:ConditionalEventDefinition")}function dBe(e){return Q(e,"bpmn:StartEvent")}function fBe(e){return Q(e,"bpmn:SequenceFlow")&&uBe(e==null?void 0:e.source)||VY(e)}function hBe(e){if(pc(e))return pc(e).get("variableName")}function pBe(e,t){var i;const n=Zt(Ut),r=pc(e);r&&((i=n.modeling)==null||i.updateModdleProperties(e,r,{variableName:t||""}))}function mBe(e){if(pc(e))return pc(e).get("variableEvents")}function gBe(e,t){var i;const n=Zt(Ut),r=pc(e);r&&((i=n.modeling)==null||i.updateModdleProperties(e,r,{variableEvents:t||""}))}function vBe(e){var n,r;const t=gu(e);return t?t.get("language")===void 0?"expression":"script":((r=(n=e.source)==null?void 0:n.businessObject)==null?void 0:r.default)===e.businessObject?"default":"none"}function bBe(e,t){if(!t||t==="none"||t==="default")return hT(e),TBe(e,t==="default");const n={language:t==="script"?"":void 0},r=Q(e,"bpmn:SequenceFlow")?rt(e):pc(e),i=$0("bpmn:FormalExpression",n,r);hT(e,i)}function HY(e){const t=gu(e);if(t)return t.get("body")}function UY(e,t){const n=Q(e,"bpmn:SequenceFlow")?rt(e):pc(e),r=$0("bpmn:FormalExpression",{body:t},n);hT(e,r)}function yBe(e){const t=gu(e);return console.log(t),t.get("body")!==void 0?"inline":t.get(`${Ot}:resource`)!==void 0?"external":"none"}function xBe(e,t){var i;const n=Zt(Ut);let r;(!t||t==="none")&&(r={body:void 0,[`${Ot}:resource`]:void 0}),t==="inline"&&(r={body:"",[`${Ot}:resource`]:void 0}),t==="external"&&(r={body:void 0,[`${Ot}:resource`]:""}),(i=n.modeling)==null||i.updateModdleProperties(e,gu(e),r)}function wBe(e){var t;return(t=gu(e))==null?void 0:t.get("language")}function CBe(e,t){var r;(r=Zt(Ut).modeling)==null||r.updateModdleProperties(e,gu(e),{language:t})}function _Be(e){var t;return(t=gu(e))==null?void 0:t.get("body")}function SBe(e,t){var r;(r=Zt(Ut).modeling)==null||r.updateModdleProperties(e,gu(e),{body:t})}function EBe(e){var t;return(t=gu(e))==null?void 0:t.get(`${Ot}:resource`)}function kBe(e,t){var r;(r=Zt(Ut).modeling)==null||r.updateModdleProperties(e,gu(e),{[`${Ot}:resource`]:t})}function $Be(e){return Q(e,"bpmn:SequenceFlow")?zY:zY.filter(t=>t.value!=="default")}function pc(e){return Q(e,"bpmn:Event")?b$(e,"bpmn:ConditionalEventDefinition"):!1}function gu(e){const t=rt(e);if(Q(t,"bpmn:SequenceFlow"))return t.get("conditionExpression");if(pc(t))return pc(t).get("condition")}function hT(e,t){var r,i;const n=Zt(Ut);Q(e,"bpmn:SequenceFlow")?(r=n.modeling)==null||r.updateProperties(e,{conditionExpression:t}):(i=n.modeling)==null||i.updateModdleProperties(e,pc(e),{condition:t})}function TBe(e,t){var r;(r=Zt(Ut).modeling)==null||r.updateProperties(e.source,{default:t?e:void 0})}const pT={conditionType:"OPERATOR",operatorCondition:{operator:"EQ",left:{},right:{}},approveCondition:{}},WY=e=>{const{conditionValueType:t}=e,n={conditionValueType:t};switch(t){case"EMPTY":case"CREATOR":break;case"NUMBER":n.numberValue=e.numberValue;break;case"STRING":n.stringValue=e.stringValue;break;case"STRING_LIST":n.stringValueList=e.stringValueList;break;case"TASK_OUTPUT":n.taskDefKey=e.taskDefKey,n.taskOutputKey=e.taskOutputKey;break}return n},RBe=e=>{const{left:t,right:n,operator:r}=e;return{operator:r,left:WY(t||{}),right:WY(n||{})}},PBe=e=>{const{conditionType:t,operatorCondition:n,approveCondition:r}=e,i={conditionType:t};switch(t){case lm.APPROVE:i.approveCondition=r;break;case lm.OPERATOR:i.operatorCondition=RBe(n);break}return i},OBe=e=>"${conditionService.isConditionMet(execution, '"+JSON.stringify(PBe(e))+"')}",qY=e=>{const t=HY(e),r=z6(t).args;if(r.length>=2){const i=aT(r[1]),o=JSON.parse(i.content||"{}");return{...pT,...o}}else return{...pT}},GY=(e,t)=>{UY(e,OBe(t))},jBe=d.defineComponent({__name:"GatewayLineProperty",props:{label:{type:String,default:"获取用户的配置"},getConditionValue:{type:Function,default:qY},updateConditionValue:{type:Function,default:GY}},setup(e){const t=e,n=d.ref(pT),r=d.computed(()=>kK(n.value)),i=Zt(Ut),o=()=>{n.value=t.getConditionValue(i.activeElement)},a=s=>{t.updateConditionValue(i.activeElement,s)};return Go(o),(s,l)=>{const c=d.resolveComponent("n-descriptions-item"),u=d.resolveComponent("n-descriptions"),f=d.resolveComponent("n-collapse-item");return d.openBlock(),d.createBlock(f,null,d.createSlots({header:d.withCtx(()=>[d.createVNode(Mo,{title:t.label},{default:d.withCtx(()=>[d.createVNode(d.unref(G2))]),_:1},8,["title"])]),default:d.withCtx(()=>[d.createElementVNode("div",null,[d.createVNode(lBe,{condition:n.value,"onUpdate:condition":l[0]||(l[0]=h=>n.value=h),onOnOk:a},null,8,["condition"]),d.createVNode(u,{"label-placement":"left",column:1,bordered:"",size:"small",style:{"margin-top":"10px"}},{default:d.withCtx(()=>[d.createVNode(c,null,{label:d.withCtx(()=>[d.createTextVNode(" 类型 ")]),default:d.withCtx(()=>[d.createTextVNode(" "+d.toDisplayString(n.value.conditionType),1)]),_:1}),d.createVNode(c,null,{label:d.withCtx(()=>[d.createTextVNode(" 条件描述 ")]),default:d.withCtx(()=>[d.createTextVNode(" "+d.toDisplayString(r.value),1)]),_:1})]),_:1})])]),_:2},[n.value.approveCondition||n.value.operatorCondition?{name:"header-extra",fn:d.withCtx(()=>[d.createVNode(ka)]),key:"0"}:void 0]),1024)}}}),MBe=d.defineComponent({__name:"property",setup(e){return(t,n)=>(d.openBlock(),d.createBlock(jBe,{label:"条件配置",getConditionValue:d.unref(qY),updateConditionValue:d.unref(GY)},null,8,["getConditionValue","updateConditionValue"]))}}),ABe="data:image/svg+xml,%3csvg%20t='1710226575946'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='24504'%20width='30'%20height='30'%3e%3cpath%20d='M512%20128a383.146667%20383.146667%200%200%201%20134.997333%2024.405333l-50.474666%2050.858667a320%20320%200%201%200%20225.109333%20227.626667l50.944-51.328C887.722667%20420.864%20896%20465.493333%20896%20512a384%20384%200%201%201-384-384z%20m386.56-13.994667l6.229333%205.802667a117.888%20117.888%200%200%201%200.341334%20166.4l-268.970667%20271.104a64%2064%200%200%201-27.818667%2016.426667l-179.712%2051.584a21.333333%2021.333333%200%200%201-26.368-26.410667l51.626667-180.053333a64%2064%200%200%201%2016.085333-27.392l269.184-271.36a116.906667%20116.906667%200%200%201%20159.402667-6.101334z%20m-113.962667%2051.2l-269.226666%20271.36-30.378667%20105.984%20105.728-30.293333%20268.970667-271.146667c19.498667-19.669333%2020.736-50.602667%203.754666-71.68l-4.053333-4.565333a52.906667%2052.906667%200%200%200-74.794667%200.341333z'%20fill='%232c2c2c'%20p-id='24505'%3e%3c/path%3e%3c/svg%3e",mT="workflowStatus",KY=e=>({name:mT,type:"expression",value:e}),NBe=(e,t)=>{cm(e,KY(t))},DBe=e=>(P0(e).find(i=>i.name===mT)||{}).expression||H2.COMPLETED,IBe=(e,t)=>{const n=d.toRaw(P0(e)),r=n.findIndex(i=>i.name===mT);r!==-1&&um(e,n[r],KY(t))},LBe=(e,t)=>n=>{const r=t.createShape({type:"bpmn:ServiceTask"}),i=r.businessObject;i.set("name","设置工作流状态"),i.set("activiti:delegateExpression","${setWorkflowStatus}"),ps(r,{name:Sa,value:bK}),NBe(r,H2.COMPLETED),e.start(n,r,void 0)},BBe=(e,t)=>{const n=LBe(e,t);return{"set-workflow-status":{group:"customnode",title:"设置工作流状态",imageUrl:ABe,action:{click:n,dragstart:n}}}},FBe=d.defineComponent({name:"EditItem",props:{label:{type:String,default:""},textAlign:{type:String,default:"right",validator:e=>["left","center","right"].includes(e)},labelWidth:{type:Number,default:80}},computed:{labelStyle(){return{width:`${this.labelWidth}px`,textAlign:this.textAlign}}}}),zBe={class:"edit-item"},VBe={class:"edit-item_content"};function HBe(e,t,n,r,i,o){return d.openBlock(),d.createElementBlock("div",zBe,[d.createElementVNode("div",{class:"edit-item_label",style:d.normalizeStyle(e.labelStyle)},d.toDisplayString(e.label)+":",5),d.createElementVNode("div",VBe,[d.renderSlot(e.$slots,"default")])])}const ci=va(FBe,[["render",HBe]]),UBe=d.defineComponent({__name:"WorkflowStatusProperty",props:{label:{type:String,default:"设置工作流状态"}},setup(e){const t=e,n=d.ref(""),r=Zt(Ut),i=()=>{n.value=DBe(r.activeElement)},o=a=>{IBe(r.activeElement,a)};return Go(i),(a,s)=>{const l=d.resolveComponent("n-select"),c=d.resolveComponent("n-collapse-item");return d.openBlock(),d.createBlock(c,null,{"header-extra":d.withCtx(()=>[d.createVNode(ka)]),header:d.withCtx(()=>[d.createVNode(Mo,{title:t.label},{default:d.withCtx(()=>[d.createVNode(d.unref(G2))]),_:1},8,["title"])]),default:d.withCtx(()=>[d.createElementVNode("div",null,[d.createVNode(ci,{key:"status",label:"工作流状态","label-width":120},{default:d.withCtx(()=>[d.createVNode(l,{value:n.value,"onUpdate:value":[s[0]||(s[0]=u=>n.value=u),o],options:d.unref(LAe)},null,8,["value","options"])]),_:1})])]),_:1})}}}),WBe=d.defineComponent({__name:"property",setup(e){return(t,n)=>(d.openBlock(),d.createBlock(UBe,{label:"工作流状态的配置",disableTitle:!0}))}}),qBe="data:image/svg+xml,%3csvg%20t='1711077139435'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='6912'%20width='30'%20height='30'%3e%3cpath%20d='M816%20816m-32%200a32%2032%200%201%200%2064%200%2032%2032%200%201%200-64%200Z'%20fill='%232c2c2c'%20p-id='6913'%3e%3c/path%3e%3cpath%20d='M512%20968a456%20456%200%201%201%20395.76-229.36%2032%2032%200%200%201-55.52-32%20392%20392%200%201%200-145.44%20145.44%2032%2032%200%200%201%2032%2055.52A456%20456%200%200%201%20512%20968z'%20fill='%232c2c2c'%20p-id='6914'%3e%3c/path%3e%3cpath%20d='M576%20672H448a96%2096%200%200%201-96-96V448a96%2096%200%200%201%2096-96h128a96%2096%200%200%201%2096%2096v128a96%2096%200%200%201-96%2096zM448%20416a32%2032%200%200%200-32%2032v128a32%2032%200%200%200%2032%2032h128a32%2032%200%200%200%2032-32V448a32%2032%200%200%200-32-32H448z'%20fill='%232c2c2c'%20p-id='6915'%3e%3c/path%3e%3c/svg%3e",GBe=(e,t,n,r)=>{X2(e,{event:t,type:"delegateExpression",delegateExpression:n,fields:r},"ExecutionListener")},KBe=e=>{GBe(e,"start","${workflowCompleteListener}")},YBe=(e,t)=>n=>{const r=t.createShape({type:"bpmn:EndEvent"});r.businessObject.set("name","结束节点"),ps(r,{name:Sa,value:TAe}),KBe(r),e.start(n,r,void 0)},ZBe=(e,t)=>{const n=YBe(e,t);return{"leave-end":{group:"customnode",title:"结束节点",imageUrl:qBe,action:{click:n,dragstart:n}}}},XBe="data:image/svg+xml,%3csvg%20t='1711096750865'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='8155'%20width='30'%20height='30'%3e%3cpath%20d='M953.274192%20628.793006l-21.366633-21.325701c-5.910617-5.880941-15.507182-5.880941-21.391193%200l-32.075533%2031.949666%2042.75885%2042.652426%2032.075533-31.949666C959.186855%20644.23879%20959.186855%20634.704646%20953.274192%20628.793006zM728.751602%20788.699949l-14.251585%2056.841589%2056.979736-14.21884L728.751602%20788.699949zM739.51576%20778.022773l42.72815%2042.621726%20128.300085-127.927601-42.756803-42.652426L739.51576%20778.022773zM839.594083%20865.172645c0%2038.442544-27.164686%2052.501748-65.626673%2052.501748L157.075455%20917.674393c-16.229636%200.966001-52.501748-33.390481-52.501748-52.501748L104.573707%20156.403143c1.426489-19.86135%2034.018791-52.501748%2052.501748-52.501748l616.891955%200c30.474059-0.665149%2065.626673%2031.57002%2065.626673%2052.501748L839.594083%20589.540004c0%2010.377348%2039.375799%2010.377348%2039.375799%200L878.969882%20169.528068c0-53.803393-47.801702-105.002472-101.634772-105.002472L162.815179%2064.525596c-53.827953%200-97.617271%2043.767829-97.617271%2097.571223l0%20697.383174c0%2053.80237%2043.789319%2097.570199%2097.617271%2097.570199l614.519931%200c53.834092%200%20101.634772-38.075177%20101.634772-91.877547C878.969882%20846.096171%20839.594083%20846.096171%20839.594083%20865.172645zM252.739235%20240.400209c-5.16565-5.158487-12.421914-8.162914-19.723204-8.162914-7.30129%200-14.557554%203.004427-19.718087%208.162914-5.164626%205.16258-8.172123%2012.413727-8.172123%2019.713994%200%207.297197%203.007497%2014.549368%208.172123%2019.711947%205.160533%205.15951%2012.416797%208.162914%2019.718087%208.162914%207.30129%200%2014.557554-3.003404%2019.723204-8.162914%205.164626-5.16258%208.170077-12.413727%208.170077-19.711947C260.909311%20252.813936%20257.903861%20245.562788%20252.739235%20240.400209zM629.588115%20235.154741%20288.328801%20235.154741c-15.683191%200-15.244192%2038.895869%200.440022%2038.895869l340.819293%200.479931C645.457548%20274.531564%20645.457548%20235.154741%20629.588115%20235.154741zM252.739235%20342.627475c-5.16565-5.158487-12.421914-8.162914-19.723204-8.162914-7.30129%200-14.557554%203.004427-19.718087%208.162914-5.164626%205.16258-8.172123%2012.413727-8.172123%2019.712971%200%207.299243%203.007497%2014.550391%208.172123%2019.712971%205.160533%205.15951%2012.416797%208.163937%2019.718087%208.163937%207.30129%200%2014.557554-3.004427%2019.723204-8.163937%205.164626-5.16258%208.170077-12.413727%208.170077-19.712971C260.909311%20355.041202%20257.903861%20347.789031%20252.739235%20342.627475zM629.588115%20340.158237%20288.328801%20340.158237c-15.868409%200-15.868409%2039.375799%200%2039.375799l341.259314%200C645.457548%20379.534036%20645.457548%20340.158237%20629.588115%20340.158237zM252.739235%20444.853717c-5.16565-5.158487-12.421914-8.162914-19.723204-8.162914-7.30129%200-14.557554%203.004427-19.718087%208.162914-5.164626%205.16258-8.172123%2012.413727-8.172123%2019.712971%200%207.299243%203.007497%2014.550391%208.172123%2019.713994%205.160533%205.16258%2012.416797%208.162914%2019.718087%208.162914%207.30129%200%2014.557554-3.000334%2019.723204-8.162914%205.164626-5.163603%208.170077-12.415774%208.170077-19.713994C260.909311%20457.267445%20257.903861%20450.016297%20252.739235%20444.853717zM233.016031%20538.88737c-7.30129%200-14.557554%203.004427-19.718087%208.167007-5.164626%205.158487-8.172123%2012.413727-8.172123%2019.712971s3.007497%2014.552437%208.172123%2019.708877c5.160533%205.163603%2012.416797%208.167007%2019.718087%208.167007%207.30129%200%2014.557554-3.003404%2019.723204-8.167007%205.164626-5.15644%208.170077-12.409634%208.170077-19.708877s-3.00545-14.554484-8.170077-19.712971C247.573585%20541.891797%20240.317321%20538.88737%20233.016031%20538.88737zM629.588115%20445.160709%20288.328801%20445.160709c-15.683191%200-15.244192%2038.895869%200.440022%2038.895869l340.819293%200.479931C645.457548%20484.537532%20645.457548%20445.160709%20629.588115%20445.160709zM629.588115%20550.164205%20288.328801%20550.164205c-15.868409%200-15.868409%2039.375799%200%2039.375799l341.259314%200C645.457548%20589.540004%20645.457548%20550.164205%20629.588115%20550.164205z'%20fill='%232c2c2c'%20p-id='8156'%3e%3c/path%3e%3c/svg%3e",JBe=(e,t)=>n=>{const r=t.createShape({type:"bpmn:UserTask"}),i=r.businessObject;i.set("name","创建整改节点"),i.set("activiti:assignee",JSON.stringify(hu)),ps(r,{name:Sa,value:gK}),HLe(r),e.start(n,r,void 0)},QBe=(e,t)=>{const n=JBe(e,t);return{"reform-user":{group:"customnode",title:"整改节点",imageUrl:XBe,action:{click:n,dragstart:n}}}},eFe=d.defineComponent({__name:"property",setup(e){const t=d.ref("整改配置");return(n,r)=>(d.openBlock(),d.createBlock(Y2,{label:t.value,getUserValue:d.unref(dT),updateUserValue:d.unref(fT)},null,8,["label","getUserValue","updateUserValue"]))}}),tFe=(e,t)=>({...ZAe(e,t),...HIe(e,t),...QIe(e,t),...IIe(e,t),...rLe(e,t),...sLe(e,t),...ALe(e,t),...WLe(e,t),...YLe(e,t),...QLe(e,t),...QBe(e,t),...rBe(e,t),...BBe(e,t),...ZBe(e,t)}),nFe=e=>e?!!c$(e).find(r=>r.name===Sa):!1,YY=e=>{if(!e)return!1;const n=c$(e).find(r=>r.name===Sa);return n?n.value:""},rFe=e=>{const t=e.businessObject;let n=YY(e);const r=[];if(Q(t,"bpmn:SequenceFlow")){const o=t.sourceRef;Q(o,"bpmn:ExclusiveGateway")&&(n=YY(o))}switch(n){case sm:r.push(AIe);break;case p$:r.push(ZIe);break;case m$:r.push(eLe);break;case V2:r.push(LIe);break;case f$:r.push(iLe);break;case h$:r.push(lLe);break;case g$:r.push(LLe);break;case v$:r.push(qLe);break;case mK:r.push(ZLe);break;case pK:r.push(eBe);break;case gK:r.push(eFe);break;case vK:Q(t,"bpmn:SequenceFlow")&&r.push(MBe);break;case bK:r.push(WBe);break;default:n&&console.error(`未知的业务类型${n},无法获取右侧属性面板`);break}return{isBizCustom:!!n,propComponents:r}};Hs.createPinia();const Zt=Hs.defineStore("modeler",()=>{const e=d.shallowRef(void 0),t=d.shallowRef(void 0),n=d.shallowRef(void 0),r=d.shallowRef(void 0),i=d.ref(void 0),o=d.shallowRef(void 0),a=d.ref(void 0);return{modeler:t,moddle:n,modeling:e,canvas:r,elementRegistry:i,activeElement:o,activeElementId:a,setModeler:c=>{t.value=c,c?(e.value=c.get("modeling"),n.value=c.get("moddle"),r.value=c.get("canvas"),i.value=c.get("elementRegistry")):e.value=n.value=r.value=i.value=void 0},setElement:c=>{const u=nFe(c);o.value=d.toRaw(c),a.value=c==null?void 0:c.id}}});function iFe(e){if(!zn(e,["bpmn:Collaboration","bpmn:DataAssociation","bpmn:Association"])){if(Q(e,"bpmn:TextAnnotation"))return e.businessObject.text;if(Q(e,"bpmn:Group")){const t=rt(e),n=t==null?void 0:t.categoryValueRef;return n==null?void 0:n.value}return e==null?void 0:e.businessObject.name}}function oFe(e,t){var i,o,a,s;const n=Zt(Ut),r=(i=n.modeler)==null?void 0:i.get("bpmnFactory");if(!zn(e,["bpmn:Collaboration","bpmn:DataAssociation","bpmn:Association"])){if(Q(e,"bpmn:TextAnnotation"))return(o=n.modeling)==null?void 0:o.updateModdleProperties(e,e.businessObject,{text:t});if(Q(e,"bpmn:Group")){const l=rt(e);return l.categoryValueRef||sFe(l,canvas==null?void 0:canvas.getRootElement(),r),(a=n.modeling)==null?void 0:a.updateLabel(e,t)}(s=n.modeling)==null||s.updateModdleProperties(e,e.businessObject,{name:t})}}function aFe(e,t){const n=t.create("bpmn:CategoryValue"),r=t.create("bpmn:Category",{categoryValue:[n]});return ao(e.get("rootElements"),r),rt(r).$parent=e,rt(n).$parent=r,n}function sFe(e,t,n){const r=rt(t).$parent;e.categoryValueRef=aFe(r,n)}const lFe=/\s/,cFe=/^([a-z][\w-.]*:)?[a-z_][\w-.]*$/i,uFe=/^[a-z_][\w-.]*$/i;function dFe(e){return lFe.test(e)}function fFe(e,t){const n=e.$model.ids.assigned(t),r=n&&n!==e;return t?r?"ID 必须是唯一的":hFe(t):"ID 不能为空."}function hFe(e){if(dFe(e))return"ID 不能包含空格";if(!uFe.test(e))return cFe.test(e)?"ID 不能包含前缀":"ID 必须符合 BPMN 规范"}function ZY(e,t){var o;const n=fFe(e.businessObject,t),r=e9();if(n&&n.length)return r.warning(n);(o=Zt(Ut).modeling)==null||o.updateProperties(e,{id:t})}function pFe(e){return!!e.businessObject.isExecutable}function mFe(e,t){var r;(r=Zt(Ut).modeling)==null||r.updateProperties(e,{isExecutable:t})}function gFe(e){return e.businessObject.get(`${Ot}:versionTag`)}function vFe(e,t){var r;(r=Zt(Ut).modeling)==null||r.updateProperties(e,{[`${Ot}:versionTag`]:t})}const bFe=d.defineComponent({__name:"ElementGenerations",setup(e){const t=e9(),n=d.ref(""),r=d.ref(""),i=d.ref(""),o=d.ref(!0),a=d.ref(!1),s=Zt(Ut);function l(p){a.value=!!s.activeElement&&s.activeElement.type==="bpmn:Process",n.value=s.activeElementId,r.value=iFe(s.activeElement)||"",a.value&&(o.value=pFe(s.activeElement),i.value=gFe(s.activeElement)||"")}function c(p){oFe(s.activeElement,p)}function u(p){ZY(s.activeElement,p)}function f(p){/((\d|([1-9](\d*))).){2}(\d|([1-9](\d*)))/.test(p)?vFe(s.activeElement,p):t.error("版本号必须符合语义化版本2.0.0 要点")}function h(p){mFe(s.activeElement,p)}return Go(l),(p,m)=>{const b=d.resolveComponent("n-input"),v=d.resolveComponent("n-switch"),g=d.resolveComponent("n-collapse-item");return d.openBlock(),d.createBlock(g,{name:"base-info"},d.createSlots({header:d.withCtx(()=>[d.createVNode(Mo,{title:p.$t("panel.general")},{default:d.withCtx(()=>[d.createVNode(d.unref(NDe))]),_:1},8,["title"])]),default:d.withCtx(()=>[d.createVNode(ci,{label:p.$t("panel.id")},{default:d.withCtx(()=>[d.createVNode(b,{value:n.value,"onUpdate:value":m[0]||(m[0]=x=>n.value=x),maxlength:"32",onChange:u},null,8,["value"])]),_:1},8,["label"]),d.createVNode(ci,{label:p.$t("panel.name")},{default:d.withCtx(()=>[d.createVNode(b,{value:r.value,"onUpdate:value":m[1]||(m[1]=x=>r.value=x),maxlength:"20",onChange:c},null,8,["value"])]),_:1},8,["label"]),a.value?(d.openBlock(),d.createElementBlock(d.Fragment,{key:0},[d.createVNode(ci,{key:"version",label:p.$t("panel.version")},{default:d.withCtx(()=>[d.createVNode(b,{value:i.value,"onUpdate:value":m[2]||(m[2]=x=>i.value=x),maxlength:"20",onChange:f},null,8,["value"])]),_:1},8,["label"]),d.createVNode(ci,{key:"executable",label:p.$t("panel.executable")},{default:d.withCtx(()=>[d.createVNode(v,{value:o.value,"onUpdate:value":[m[3]||(m[3]=x=>o.value=x),h]},null,8,["value"])]),_:1},8,["label"])],64)):d.createCommentVNode("",!0)]),_:2},[r.value||i.value||o.value?{name:"header-extra",fn:d.withCtx(()=>[d.createVNode(ka)]),key:"0"}:void 0]),1024)}}});function gT(e){const t=e==null?void 0:e.businessObject,n=t&&JY(t.get("documentation"));return n&&n.text}function yFe(e,t){var a,s,l,c;const n=Zt(Ut),r=(a=n.modeler)==null?void 0:a.get("bpmnFactory"),i=e.businessObject,o=JY(i&&i.get("documentation"));if(o)return t?(s=n.modeling)==null?void 0:s.updateModdleProperties(e,o,{text:t}):(l=n.modeling)==null?void 0:l.updateModdleProperties(e,i,{documentation:Mv(i.get("documentation"),o)});if(t){const u=r==null?void 0:r.create("bpmn:Documentation",{text:t});return(c=n.modeling)==null?void 0:c.updateModdleProperties(e,i,{documentation:[...i.get("documentation"),u]})}}const XY="text/plain";function JY(e){return e.find(function(t){return(t.textFormat||XY)===XY})}const xFe=d.defineComponent({__name:"ElementDocumentations",setup(e){const t=d.ref(""),n=Zt(Ut),{activeElementId:r}=Hs.storeToRefs(n);d.watch(()=>r,()=>{t.value=gT(n.activeElement)||""},{immediate:!0}),d.onMounted(()=>{t.value=gT(n.activeElement)||"",af.on("element-update",()=>{t.value=gT(n.activeElement)||""})});const i=o=>{yFe(n.activeElement,o)};return(o,a)=>{const s=d.resolveComponent("n-input"),l=d.resolveComponent("n-collapse-item");return d.openBlock(),d.createBlock(l,{name:"element-documentations"},d.createSlots({header:d.withCtx(()=>[d.createVNode(Mo,{title:o.$t("panel.documentationSettings")},{default:d.withCtx(()=>[d.createVNode(d.unref(N6))]),_:1},8,["title"])]),default:d.withCtx(()=>[d.createVNode(ci,{label:o.$t("panel.documentationBody")},{default:d.withCtx(()=>[d.createVNode(s,{value:t.value,"onUpdate:value":a[0]||(a[0]=c=>t.value=c),type:"textarea",onChange:i},null,8,["value"])]),_:1},8,["label"])]),_:2},[t.value?{name:"header-extra",fn:d.withCtx(()=>[d.createVNode(ka)]),key:"0"}:void 0]),1024)}}});function Qr(e){return Array.isArray(e)}function Ti(e){return e!==null&&typeof e=="object"&&(e.constructor===void 0||e.constructor.name==="Object")}function QY(e){return e&&typeof e=="object"?e.op==="add":!1}function eZ(e){return e&&typeof e=="object"?e.op==="remove":!1}function vT(e){return e&&typeof e=="object"?e.op==="replace":!1}function bT(e){return e&&typeof e=="object"?e.op==="copy":!1}function mm(e){return e&&typeof e=="object"?e.op==="move":!1}function wFe(e,t){return JSON.stringify(e)===JSON.stringify(t)}function CFe(e,t){return e===t}function tZ(e){return e.slice(0,e.length-1)}function _Fe(e){return e[e.length-1]}function SFe(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:CFe;if(e.length<t.length)return!1;for(let r=0;r<t.length;r++)if(!n(e[r],t[r]))return!1;return!0}function nZ(e){return typeof e=="object"&&e!==null}function yT(e){if(Qr(e)){const t=e.slice();return Object.getOwnPropertySymbols(e).forEach(n=>{t[n]=e[n]}),t}else if(Ti(e)){const t={...e};return Object.getOwnPropertySymbols(e).forEach(n=>{t[n]=e[n]}),t}else return e}function xT(e,t,n){if(e[t]===n)return e;{const r=yT(e);return r[t]=n,r}}function Ht(e,t){let n=e,r=0;for(;r<t.length;)Ti(n)?n=n[t[r]]:Qr(n)?n=n[parseInt(t[r])]:n=void 0,r++;return n}function mc(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(t.length===0)return n;const i=t[0],o=mc(e?e[i]:void 0,t.slice(1),n,r);if(Ti(e)||Qr(e))return xT(e,i,o);if(r){const a=EFe.test(i)?[]:{};return a[i]=o,a}else throw new Error("Path does not exist")}const EFe=/^\d+$/;function rZ(e,t,n){if(t.length===0)return n(e);if(!nZ(e))throw new Error("Path doesn't exist");const r=t[0],i=rZ(e[r],t.slice(1),n);return xT(e,r,i)}function wT(e,t){if(t.length===0)return e;if(!nZ(e))throw new Error("Path does not exist");if(t.length===1){const i=t[0];if(i in e){const o=yT(e);return Qr(o)&&o.splice(parseInt(i),1),Ti(o)&&delete o[i],o}else return e}const n=t[0],r=wT(e[n],t.slice(1));return xT(e,n,r)}function CT(e,t,n){const r=t.slice(0,t.length-1),i=t[t.length-1];return rZ(e,r,o=>{if(!Array.isArray(o))throw new TypeError("Array expected at path "+JSON.stringify(r));const a=yT(o);return a.splice(parseInt(i),0,n),a})}function Ml(e,t){return e===void 0?!1:t.length===0?!0:e===null?!1:Ml(e[t[0]],t.slice(1))}function gc(e){const t=e.split("/");return t.shift(),t.map(n=>n.replace(/~1/g,"/").replace(/~0/g,"~"))}function Mt(e){return e.map(iZ).join("")}function iZ(e){return"/"+String(e).replace(/~/g,"~0").replace(/\//g,"~1")}function oZ(e,t){return e+iZ(t)}function U6(e,t){return e.startsWith(t)&&(e.length===t.length||e[t.length]==="/")}function vc(e,t,n){let r=e;for(let i=0;i<t.length;i++){MFe(t[i]);let o=t[i];if(n&&n.before){const l=n.before(r,o);if(l!==void 0){if(l.document!==void 0&&(r=l.document),l.json!==void 0)throw new Error('Deprecation warning: returned object property ".json" has been renamed to ".document"');l.operation!==void 0&&(o=l.operation)}}const a=r,s=vu(r,o.path);if(o.op==="add")r=TFe(r,s,o.value);else if(o.op==="remove")r=$Fe(r,s);else if(o.op==="replace")r=kFe(r,s,o.value);else if(o.op==="copy")r=RFe(r,s,_T(o.from));else if(o.op==="move")r=PFe(r,s,_T(o.from));else if(o.op==="test")OFe(r,s,o.value);else throw new Error("Unknown JSONPatch operation "+JSON.stringify(o));if(n&&n.after){const l=n.after(r,o,a);l!==void 0&&(r=l)}}return r}function kFe(e,t,n){return mc(e,t,n)}function $Fe(e,t){return wT(e,t)}function TFe(e,t,n){return J2(e,t)?CT(e,t,n):mc(e,t,n)}function RFe(e,t,n){const r=Ht(e,n);if(J2(e,t))return CT(e,t,r);{const i=Ht(e,n);return mc(e,t,i)}}function PFe(e,t,n){const r=Ht(e,n),i=wT(e,n);return J2(i,t)?CT(i,t,r):mc(i,t,r)}function OFe(e,t,n){if(n===void 0)throw new Error(`Test failed: no value provided (path: "${Mt(t)}")`);if(!Ml(e,t))throw new Error(`Test failed: path not found (path: "${Mt(t)}")`);const r=Ht(e,t);if(!wFe(r,n))throw new Error(`Test failed, value differs (path: "${Mt(t)}")`)}function J2(e,t){if(t.length===0)return!1;const n=Ht(e,tZ(t));return Array.isArray(n)}function jFe(e,t){if(_Fe(t)!=="-")return t;const n=tZ(t),r=Ht(e,n);return n.concat(r.length)}function MFe(e){if(!["add","remove","replace","copy","move","test"].includes(e.op))throw new Error("Unknown JSONPatch op "+JSON.stringify(e.op));if(typeof e.path!="string")throw new Error('Required property "path" missing or not a string in operation '+JSON.stringify(e));if((e.op==="copy"||e.op==="move")&&typeof e.from!="string")throw new Error('Required property "from" missing or not a string in operation '+JSON.stringify(e))}function vu(e,t){return jFe(e,gc(t))}function _T(e){return gc(e)}function aZ(e,t,n){let r=[];return vc(e,t,{before:(o,a)=>{let s;const l=vu(o,a.path);if(a.op==="add")s=cZ(o,l);else if(a.op==="remove")s=lZ(o,l);else if(a.op==="replace")s=sZ(o,l);else if(a.op==="copy")s=AFe(o,l);else if(a.op==="move")s=NFe(o,l,_T(a.from));else if(a.op==="test")s=[];else throw new Error("Unknown JSONPatch operation "+JSON.stringify(a));let c;if(n&&n.before){const u=n.before(o,a,s);if(u&&u.revertOperations&&(s=u.revertOperations),u&&u.document&&(c=u.document),u&&u.json)throw new Error('Deprecation warning: returned object property ".json" has been renamed to ".document"')}if(r=s.concat(r),c!==void 0)return{document:c}}}),r}function sZ(e,t){return[{op:"replace",path:Mt(t),value:Ht(e,t)}]}function lZ(e,t){return[{op:"add",path:Mt(t),value:Ht(e,t)}]}function cZ(e,t){return J2(e,t)||!Ml(e,t)?[{op:"remove",path:Mt(t)}]:sZ(e,t)}function AFe(e,t){return cZ(e,t)}function NFe(e,t,n){if(t.length<n.length&&SFe(n,t))return[{op:"replace",path:Mt(t),value:e}];const r={op:"move",from:Mt(t),path:Mt(n)};return!J2(e,t)&&Ml(e,t)?[r,...lZ(e,t)]:[r]}var W6={},uZ={b:"\b",f:"\f",n:`
|
4052
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function UNe(e,t){if(e){if(typeof e=="string")return tY(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tY(e,t)}}function tY(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function WNe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,a,s;try{for(n=n.call(e);!(i=(a=n.next()).done)&&(r.push(a.value),!(t&&r.length===t));i=!0);}catch(l){o=!0,s=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw s}}return r}}function qNe(e){if(Array.isArray(e))return e}function nY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){q2(e,i,n[i])})}return e}function q2(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function GNe(e,t){if(e==null)return{};var n=KNe(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function KNe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}eY(hNe.primary);var fm=function(t,n){var r,i=nY({},t,n.attrs),o=i.class,a=i.icon,s=i.spin,l=i.rotate,c=i.tabindex,u=i.twoToneColor,f=i.onClick,h=GNe(i,zNe),p=HK(),m=p.prefixCls,b=p.rootClassName,v=(r={},q2(r,b.value,!!b.value),q2(r,m.value,!0),q2(r,"".concat(m.value,"-").concat(a.name),!!a.name),q2(r,"".concat(m.value,"-spin"),!!s||a.name==="loading"),r),g=c;g===void 0&&f&&(g=-1);var x=l?{msTransform:"rotate(".concat(l,"deg)"),transform:"rotate(".concat(l,"deg)")}:void 0,w=XK(u),y=VNe(w,2),C=y[0],_=y[1];return d.createVNode("span",nY({role:"img","aria-label":a.name},h,{onClick:f,class:[v,o],tabindex:g}),[d.createVNode(M$,{icon:a,primaryColor:C,secondaryColor:_,style:x},null),d.createVNode(FNe,null,null)])};fm.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:[String,Array]},fm.displayName="AntdIcon",fm.inheritAttrs=!1,fm.getTwoToneColor=BNe,fm.setTwoToneColor=eY;const fo=fm;var YNe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M952 474H829.8C812.5 327.6 696.4 211.5 550 194.2V72c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v122.2C327.6 211.5 211.5 327.6 194.2 474H72c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h122.2C211.5 696.4 327.6 812.5 474 829.8V952c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V829.8C696.4 812.5 812.5 696.4 829.8 550H952c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zM512 756c-134.8 0-244-109.2-244-244s109.2-244 244-244 244 109.2 244 244-109.2 244-244 244z"}},{tag:"path",attrs:{d:"M512 392c-32.1 0-62.1 12.4-84.8 35.2-22.7 22.7-35.2 52.7-35.2 84.8s12.5 62.1 35.2 84.8C449.9 619.4 480 632 512 632s62.1-12.5 84.8-35.2C619.4 574.1 632 544 632 512s-12.5-62.1-35.2-84.8A118.57 118.57 0 00512 392z"}}]},name:"aim",theme:"outlined"};const ZNe=YNe;function rY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){XNe(e,i,n[i])})}return e}function XNe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var A$=function(t,n){var r=rY({},t,n.attrs);return d.createVNode(fo,rY({},r,{icon:ZNe}),null)};A$.displayName="AimOutlined",A$.inheritAttrs=!1;const JNe=A$;var QNe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M855 160.1l-189.2 23.5c-6.6.8-9.3 8.8-4.7 13.5l54.7 54.7-153.5 153.5a8.03 8.03 0 000 11.3l45.1 45.1c3.1 3.1 8.2 3.1 11.3 0l153.6-153.6 54.7 54.7a7.94 7.94 0 0013.5-4.7L863.9 169a7.9 7.9 0 00-8.9-8.9zM416.6 562.3a8.03 8.03 0 00-11.3 0L251.8 715.9l-54.7-54.7a7.94 7.94 0 00-13.5 4.7L160.1 855c-.6 5.2 3.7 9.5 8.9 8.9l189.2-23.5c6.6-.8 9.3-8.8 4.7-13.5l-54.7-54.7 153.6-153.6c3.1-3.1 3.1-8.2 0-11.3l-45.2-45z"}}]},name:"arrows-alt",theme:"outlined"};const eDe=QNe;function iY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){tDe(e,i,n[i])})}return e}function tDe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var N$=function(t,n){var r=iY({},t,n.attrs);return d.createVNode(fo,iY({},r,{icon:eDe}),null)};N$.displayName="ArrowsAltOutlined",N$.inheritAttrs=!1;const pu=N$;var nDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M296 250c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zm184 144H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm-48 458H208V148h560v320c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h264c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm440-88H728v-36.6c46.3-13.8 80-56.6 80-107.4 0-61.9-50.1-112-112-112s-112 50.1-112 112c0 50.7 33.7 93.6 80 107.4V764H520c-8.8 0-16 7.2-16 16v152c0 8.8 7.2 16 16 16h352c8.8 0 16-7.2 16-16V780c0-8.8-7.2-16-16-16zM646 620c0-27.6 22.4-50 50-50s50 22.4 50 50-22.4 50-50 50-50-22.4-50-50zm180 266H566v-60h260v60z"}}]},name:"audit",theme:"outlined"};const rDe=nDe;function oY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){iDe(e,i,n[i])})}return e}function iDe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var D$=function(t,n){var r=oY({},t,n.attrs);return d.createVNode(fo,oY({},r,{icon:rDe}),null)};D$.displayName="AuditOutlined",D$.inheritAttrs=!1;const G2=D$;var oDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"};const aDe=oDe;function aY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){sDe(e,i,n[i])})}return e}function sDe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var I$=function(t,n){var r=aY({},t,n.attrs);return d.createVNode(fo,aY({},r,{icon:aDe}),null)};I$.displayName="ClockCircleOutlined",I$.inheritAttrs=!1;const lDe=I$;var cDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M180 176h-60c-4.4 0-8 3.6-8 8v656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V184c0-4.4-3.6-8-8-8zm724 0h-60c-4.4 0-8 3.6-8 8v656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V184c0-4.4-3.6-8-8-8zM785.3 504.3L657.7 403.6a7.23 7.23 0 00-11.7 5.7V476H378v-62.8c0-6-7-9.4-11.7-5.7L238.7 508.3a7.14 7.14 0 000 11.3l127.5 100.8c4.7 3.7 11.7.4 11.7-5.7V548h268v62.8c0 6 7 9.4 11.7 5.7l127.5-100.8c3.8-2.9 3.8-8.5.2-11.4z"}}]},name:"column-width",theme:"outlined"};const uDe=cDe;function sY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){dDe(e,i,n[i])})}return e}function dDe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var L$=function(t,n){var r=sY({},t,n.attrs);return d.createVNode(fo,sY({},r,{icon:uDe}),null)};L$.displayName="ColumnWidthOutlined",L$.inheritAttrs=!1;const fDe=L$;var hDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"};const pDe=hDe;function lY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){mDe(e,i,n[i])})}return e}function mDe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var B$=function(t,n){var r=lY({},t,n.attrs);return d.createVNode(fo,lY({},r,{icon:pDe}),null)};B$.displayName="EditOutlined",B$.inheritAttrs=!1;const gDe=B$;var vDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z"}}]},name:"file-text",theme:"outlined"};const bDe=vDe;function cY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){yDe(e,i,n[i])})}return e}function yDe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var F$=function(t,n){var r=cY({},t,n.attrs);return d.createVNode(fo,cY({},r,{icon:bDe}),null)};F$.displayName="FileTextOutlined",F$.inheritAttrs=!1;const N6=F$;var xDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880.1 154H143.9c-24.5 0-39.8 26.7-27.5 48L349 597.4V838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V597.4L907.7 202c12.2-21.3-3.1-48-27.6-48zM603.4 798H420.6V642h182.9v156zm9.6-236.6l-9.5 16.6h-183l-9.5-16.6L212.7 226h598.6L613 561.4z"}}]},name:"filter",theme:"outlined"};const wDe=xDe;function uY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){CDe(e,i,n[i])})}return e}function CDe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var z$=function(t,n){var r=uY({},t,n.attrs);return d.createVNode(fo,uY({},r,{icon:wDe}),null)};z$.displayName="FilterOutlined",z$.inheritAttrs=!1;const _De=z$;var SDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 512h-56c-4.4 0-8 3.6-8 8v320H184V184h320c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V520c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M355.9 534.9L354 653.8c-.1 8.9 7.1 16.2 16 16.2h.4l118-2.9c2-.1 4-.9 5.4-2.3l415.9-415c3.1-3.1 3.1-8.2 0-11.3L785.4 114.3c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-415.8 415a8.3 8.3 0 00-2.3 5.6zm63.5 23.6L779.7 199l45.2 45.1-360.5 359.7-45.7 1.1.7-46.4z"}}]},name:"form",theme:"outlined"};const EDe=SDe;function dY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){kDe(e,i,n[i])})}return e}function kDe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var V$=function(t,n){var r=dY({},t,n.attrs);return d.createVNode(fo,dY({},r,{icon:EDe}),null)};V$.displayName="FormOutlined",V$.inheritAttrs=!1;const $De=V$;var TDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M841 370c3-3.3 2.7-8.3-.6-11.3a8.24 8.24 0 00-5.3-2.1h-72.6c-2.4 0-4.6 1-6.1 2.8L633.5 504.6a7.96 7.96 0 01-13.4-1.9l-63.5-141.3a7.9 7.9 0 00-7.3-4.7H380.7l.9-4.7 8-42.3c10.5-55.4 38-81.4 85.8-81.4 18.6 0 35.5 1.7 48.8 4.7l14.1-66.8c-22.6-4.7-35.2-6.1-54.9-6.1-103.3 0-156.4 44.3-175.9 147.3l-9.4 49.4h-97.6c-3.8 0-7.1 2.7-7.8 6.4L181.9 415a8.07 8.07 0 007.8 9.7H284l-89 429.9a8.07 8.07 0 007.8 9.7H269c3.8 0 7.1-2.7 7.8-6.4l89.7-433.1h135.8l68.2 139.1c1.4 2.9 1 6.4-1.2 8.8l-180.6 203c-2.9 3.3-2.6 8.4.7 11.3 1.5 1.3 3.4 2 5.3 2h72.7c2.4 0 4.6-1 6.1-2.8l123.7-146.7c2.8-3.4 7.9-3.8 11.3-1 .9.8 1.6 1.7 2.1 2.8L676.4 784c1.3 2.8 4.1 4.7 7.3 4.7h64.6a8.02 8.02 0 007.2-11.5l-95.2-198.9c-1.4-2.9-.9-6.4 1.3-8.8L841 370z"}}]},name:"function",theme:"outlined"};const RDe=TDe;function fY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){PDe(e,i,n[i])})}return e}function PDe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var H$=function(t,n){var r=fY({},t,n.attrs);return d.createVNode(fo,fY({},r,{icon:RDe}),null)};H$.displayName="FunctionOutlined",H$.inheritAttrs=!1;const ODe=H$;var jDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"};const MDe=jDe;function hY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){ADe(e,i,n[i])})}return e}function ADe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var U$=function(t,n){var r=hY({},t,n.attrs);return d.createVNode(fo,hY({},r,{icon:MDe}),null)};U$.displayName="InfoCircleOutlined",U$.inheritAttrs=!1;const NDe=U$;var DDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z"}}]},name:"lock",theme:"outlined"};const IDe=DDe;function pY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){LDe(e,i,n[i])})}return e}function LDe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var W$=function(t,n){var r=pY({},t,n.attrs);return d.createVNode(fo,pY({},r,{icon:IDe}),null)};W$.displayName="LockOutlined",W$.inheritAttrs=!1;const BDe=W$;var FDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z"}}]},name:"menu",theme:"outlined"};const zDe=FDe;function mY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){VDe(e,i,n[i])})}return e}function VDe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var q$=function(t,n){var r=mY({},t,n.attrs);return d.createVNode(fo,mY({},r,{icon:zDe}),null)};q$.displayName="MenuOutlined",q$.inheritAttrs=!1;const HDe=q$;var UDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM142.4 642.1L298.7 519a8.84 8.84 0 000-13.9L142.4 381.9c-5.8-4.6-14.4-.5-14.4 6.9v246.3a8.9 8.9 0 0014.4 7z"}}]},name:"menu-unfold",theme:"outlined"};const WDe=UDe;function gY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){qDe(e,i,n[i])})}return e}function qDe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var G$=function(t,n){var r=gY({},t,n.attrs);return d.createVNode(fo,gY({},r,{icon:WDe}),null)};G$.displayName="MenuUnfoldOutlined",G$.inheritAttrs=!1;const GDe=G$;var KDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M719.4 499.1l-296.1-215A15.9 15.9 0 00398 297v430c0 13.1 14.8 20.5 25.3 12.9l296.1-215a15.9 15.9 0 000-25.8zm-257.6 134V390.9L628.5 512 461.8 633.1z"}}]},name:"play-circle",theme:"outlined"};const YDe=KDe;function vY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){ZDe(e,i,n[i])})}return e}function ZDe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var K$=function(t,n){var r=vY({},t,n.attrs);return d.createVNode(fo,vY({},r,{icon:YDe}),null)};K$.displayName="PlayCircleOutlined",K$.inheritAttrs=!1;const XDe=K$;var JDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};const QDe=JDe;function bY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){eIe(e,i,n[i])})}return e}function eIe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Y$=function(t,n){var r=bY({},t,n.attrs);return d.createVNode(fo,bY({},r,{icon:QDe}),null)};Y$.displayName="PlusOutlined",Y$.inheritAttrs=!1;const D6=Y$;var tIe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656zM492 400h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H492c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm0 144h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H492c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm0 144h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H492c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zM340 368a40 40 0 1080 0 40 40 0 10-80 0zm0 144a40 40 0 1080 0 40 40 0 10-80 0zm0 144a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"profile",theme:"outlined"};const nIe=tIe;function yY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){rIe(e,i,n[i])})}return e}function rIe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Z$=function(t,n){var r=yY({},t,n.attrs);return d.createVNode(fo,yY({},r,{icon:nIe}),null)};Z$.displayName="ProfileOutlined",Z$.inheritAttrs=!1;const iIe=Z$;var oIe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M788 705.9V192c0-8.8-7.2-16-16-16H602v-68.8c0-6-7-9.4-11.7-5.7L462.7 202.3a7.14 7.14 0 000 11.3l127.5 100.8c4.7 3.7 11.7.4 11.7-5.7V240h114v465.9c-44.2 15-76 56.9-76 106.1 0 61.8 50.2 112 112 112s112-50.2 112-112c.1-49.2-31.7-91-75.9-106.1zM752 860a48.01 48.01 0 010-96 48.01 48.01 0 010 96zM384 212c0-61.8-50.2-112-112-112s-112 50.2-112 112c0 49.2 31.8 91 76 106.1V706c-44.2 15-76 56.9-76 106.1 0 61.8 50.2 112 112 112s112-50.2 112-112c0-49.2-31.8-91-76-106.1V318.1c44.2-15.1 76-56.9 76-106.1zm-160 0a48.01 48.01 0 0196 0 48.01 48.01 0 01-96 0zm96 600a48.01 48.01 0 01-96 0 48.01 48.01 0 0196 0z"}}]},name:"pull-request",theme:"outlined"};const aIe=oIe;function xY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){sIe(e,i,n[i])})}return e}function sIe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var X$=function(t,n){var r=xY({},t,n.attrs);return d.createVNode(fo,xY({},r,{icon:aIe}),null)};X$.displayName="PullRequestOutlined",X$.inheritAttrs=!1;const lIe=X$;var cIe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M881.7 187.4l-45.1-45.1a8.03 8.03 0 00-11.3 0L667.8 299.9l-54.7-54.7a7.94 7.94 0 00-13.5 4.7L576.1 439c-.6 5.2 3.7 9.5 8.9 8.9l189.2-23.5c6.6-.8 9.3-8.8 4.7-13.5l-54.7-54.7 157.6-157.6c3-3 3-8.1-.1-11.2zM439 576.1l-189.2 23.5c-6.6.8-9.3 8.9-4.7 13.5l54.7 54.7-157.5 157.5a8.03 8.03 0 000 11.3l45.1 45.1c3.1 3.1 8.2 3.1 11.3 0l157.6-157.6 54.7 54.7a7.94 7.94 0 0013.5-4.7L447.9 585a7.9 7.9 0 00-8.9-8.9z"}}]},name:"shrink",theme:"outlined"};const uIe=cIe;function wY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){dIe(e,i,n[i])})}return e}function dIe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var J$=function(t,n){var r=wY({},t,n.attrs);return d.createVNode(fo,wY({},r,{icon:uIe}),null)};J$.displayName="ShrinkOutlined",J$.inheritAttrs=!1;const K2=J$;var fIe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M625.9 115c-5.9 0-11.9 1.6-17.4 5.3L254 352H90c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h164l354.5 231.7c5.5 3.6 11.6 5.3 17.4 5.3 16.7 0 32.1-13.3 32.1-32.1V147.1c0-18.8-15.4-32.1-32.1-32.1zM586 803L293.4 611.7l-18-11.7H146V424h129.4l17.9-11.7L586 221v582zm348-327H806c-8.8 0-16 7.2-16 16v40c0 8.8 7.2 16 16 16h128c8.8 0 16-7.2 16-16v-40c0-8.8-7.2-16-16-16zm-41.9 261.8l-110.3-63.7a15.9 15.9 0 00-21.7 5.9l-19.9 34.5c-4.4 7.6-1.8 17.4 5.8 21.8L856.3 800a15.9 15.9 0 0021.7-5.9l19.9-34.5c4.4-7.6 1.7-17.4-5.8-21.8zM760 344a15.9 15.9 0 0021.7 5.9L892 286.2c7.6-4.4 10.2-14.2 5.8-21.8L878 230a15.9 15.9 0 00-21.7-5.9L746 287.8a15.99 15.99 0 00-5.8 21.8L760 344z"}}]},name:"sound",theme:"outlined"};const hIe=fIe;function CY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){pIe(e,i,n[i])})}return e}function pIe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Q$=function(t,n){var r=CY({},t,n.attrs);return d.createVNode(fo,CY({},r,{icon:hIe}),null)};Q$.displayName="SoundOutlined",Q$.inheritAttrs=!1;const mIe=Q$;var gIe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"}}]},name:"user",theme:"outlined"};const vIe=gIe;function _Y(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){bIe(e,i,n[i])})}return e}function bIe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var eT=function(t,n){var r=_Y({},t,n.attrs);return d.createVNode(fo,_Y({},r,{icon:vIe}),null)};eT.displayName="UserOutlined",eT.inheritAttrs=!1;const yIe=eT;var xIe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M892 772h-80v-80c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v80h-80c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h80v80c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-80h80c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM373.5 498.4c-.9-8.7-1.4-17.5-1.4-26.4 0-15.9 1.5-31.4 4.3-46.5.7-3.6-1.2-7.3-4.5-8.8-13.6-6.1-26.1-14.5-36.9-25.1a127.54 127.54 0 01-38.7-95.4c.9-32.1 13.8-62.6 36.3-85.6 24.7-25.3 57.9-39.1 93.2-38.7 31.9.3 62.7 12.6 86 34.4 7.9 7.4 14.7 15.6 20.4 24.4 2 3.1 5.9 4.4 9.3 3.2 17.6-6.1 36.2-10.4 55.3-12.4 5.6-.6 8.8-6.6 6.3-11.6-32.5-64.3-98.9-108.7-175.7-109.9-110.8-1.7-203.2 89.2-203.2 200 0 62.8 28.9 118.8 74.2 155.5-31.8 14.7-61.1 35-86.5 60.4-54.8 54.7-85.8 126.9-87.8 204a8 8 0 008 8.2h56.1c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5 29.4-29.4 65.4-49.8 104.7-59.7 3.8-1.1 6.4-4.8 5.9-8.8zM824 472c0-109.4-87.9-198.3-196.9-200C516.3 270.3 424 361.2 424 472c0 62.8 29 118.8 74.2 155.5a300.95 300.95 0 00-86.4 60.4C357 742.6 326 814.8 324 891.8a8 8 0 008 8.2h56c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5C505.8 695.7 563 672 624 672c110.4 0 200-89.5 200-200zm-109.5 90.5C690.3 586.7 658.2 600 624 600s-66.3-13.3-90.5-37.5a127.26 127.26 0 01-37.5-91.8c.3-32.8 13.4-64.5 36.3-88 24-24.6 56.1-38.3 90.4-38.7 33.9-.3 66.8 12.9 91 36.6 24.8 24.3 38.4 56.8 38.4 91.4-.1 34.2-13.4 66.3-37.6 90.5z"}}]},name:"usergroup-add",theme:"outlined"};const wIe=xIe;function SY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){CIe(e,i,n[i])})}return e}function CIe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var tT=function(t,n){var r=SY({},t,n.attrs);return d.createVNode(fo,SY({},r,{icon:wIe}),null)};tT.displayName="UsergroupAddOutlined",tT.inheritAttrs=!1;const EY=tT,_Ie=d.defineComponent({name:"CollapseTitle",props:{title:{type:String,default:""}}}),SIe={class:"collapse-title"},EIe={class:"title-content"};function kIe(e,t,n,r,i,o){return d.openBlock(),d.createElementBlock("div",SIe,[d.renderSlot(e.$slots,"default",{},void 0,!0),d.createElementVNode("span",EIe,d.toDisplayString(e.title),1)])}const Mo=va(_Ie,[["render",kIe],["__scopeId","data-v-98e2b0c6"]]),ka=va(d.defineComponent({__name:"HasEdit",setup(e){return(t,n)=>(d.openBlock(),d.createBlock(d.unref(gDe),{class:"edit-icon"}))}}),[["__scopeId","data-v-3c62969a"]]),I6={TOOLBAR_PREFIX:"TOOLBAR_PREFIX",USER_CHOOSER_SUFFIX:"USER_CHOOSER_SUFFIX"},$Ie=Object.values(I6),nT={},kY=e=>`SLOT_${e}`,TIe=()=>{const{proxy:e}=d.getCurrentInstance(),{$slots:t}=e;for(const n in t)if($Ie.indexOf(n)>-1){const r=kY(n);d.provide(r,t[n]),nT[n]=!0}d.provide("slotsRegistry",nT)},RIe=e=>nT[e],$Y=e=>RIe(e)?d.inject(kY(e)):null,PIe={class:"user-selector-container"},OIe={class:"user-type-options"},jIe=va(d.defineComponent({__name:"UserSelector",props:{user:{type:Object,required:!0},label:{type:String,default:"配置"},dialogTitle:{type:String,default:"人员选择"}},emits:["update:user","on-ok"],setup(e,{emit:t}){const n=y=>{o.value.userId=y},r=d.ref(d.markRaw($Y(I6.USER_CHOOSER_SUFFIX))),i=e,o=d.ref({...i.user}),a=d.ref(i.label),s=d.computed(()=>xK(o.value.userIdType)),l=t,c=y=>{l("update:user",y)},u=d.ref(!1),f=()=>{u.value=!0},h=d.ref(!1),p=d.ref(600),m=d.ref(600),b=d.computed(()=>({width:`${p.value}px`,height:`${m.value}px`})),v=d.ref(d.markRaw(pu));function g(){h.value=!h.value,h.value?(p.value=window.innerWidth,m.value=window.innerHeight,v.value=K2):(p.value=600,m.value=600,v.value=pu)}d.computed(()=>"");const x=()=>{c(o.value),l("on-ok",o.value),u.value=!1},w=()=>d.createVNode("div",{class:"json-dialog-title-container"},[d.createVNode("span",null,[i.dialogTitle]),d.createVNode("span",null,[d.createVNode(v.value,{onClick:g,class:"edit-icon"},null)])]);return(y,C)=>{const _=d.resolveComponent("n-radio"),S=d.resolveComponent("n-radio-group"),E=d.resolveComponent("n-form-item"),$=d.resolveComponent("n-input"),k=d.resolveComponent("n-select"),P=d.resolveComponent("n-form"),T=d.resolveComponent("n-button"),j=d.resolveComponent("n-modal");return d.openBlock(),d.createElementBlock(d.Fragment,null,[d.createVNode(j,{show:u.value,"onUpdate:show":C[5]||(C[5]=M=>u.value=M),"mask-closable":!1,preset:"dialog",title:w,"show-icon":!1,style:d.normalizeStyle(b.value)},{action:d.withCtx(()=>[d.createVNode(T,{size:"small",type:"info",onClick:x},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(y.$t("panel.confirm")),1)]),_:1})]),default:d.withCtx(()=>[d.createElementVNode("div",PIe,[d.createVNode(P,{model:o.value,"label-placement":"left","label-width":"auto","require-mark-placement":"right-hanging",size:"small",style:{maxWidth:"640px",marginTop:"10px"}},{default:d.withCtx(()=>[d.createVNode(E,{label:"用户类型",path:"userIdType"},{default:d.withCtx(()=>[d.createElementVNode("div",OIe,[d.createVNode(S,{value:o.value.userIdType,"onUpdate:value":C[0]||(C[0]=M=>o.value.userIdType=M),name:"modeSelect",style:{"margin-bottom":"10px"}},{default:d.withCtx(()=>[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(d.unref(yK),M=>(d.openBlock(),d.createBlock(_,{key:M.value,value:M.value,label:M.label},null,8,["value","label"]))),128))]),_:1},8,["value"])])]),_:1}),o.value.userIdType===d.unref(Zi).USER_ID?(d.openBlock(),d.createBlock(E,{key:0,label:"用户 id",path:"userId"},{default:d.withCtx(()=>[d.createVNode($,{value:o.value.userId,"onUpdate:value":C[1]||(C[1]=M=>o.value.userId=M),placeholder:"请输入用户 id",onKeydown:C[2]||(C[2]=d.withKeys(d.withModifiers(()=>{},["prevent"]),["enter"]))},{suffix:d.withCtx(()=>[(d.openBlock(),d.createBlock(d.resolveDynamicComponent(r.value),{userId:o.value.userId,onChange:n},null,40,["userId"]))]),default:d.withCtx(()=>[d.createTextVNode(" > ")]),_:1},8,["value"])]),_:1})):d.createCommentVNode("",!0),o.value.userIdType===d.unref(Zi).GET_SINGLE_USER||o.value.userIdType===d.unref(Zi).GET_MULTI_USERS?(d.openBlock(),d.createBlock(E,{key:1,label:"节点 ID",path:"outputTaskDefKey"},{default:d.withCtx(()=>[d.createVNode(k,{value:o.value.outputTaskDefKey,"onUpdate:value":C[3]||(C[3]=M=>o.value.outputTaskDefKey=M),placeholder:"请选择节点",options:s.value,onKeydown:C[4]||(C[4]=d.withKeys(d.withModifiers(()=>{},["prevent"]),["enter"]))},null,8,["value","options"])]),_:1})):d.createCommentVNode("",!0)]),_:1},8,["model"])])]),_:1},8,["show","style"]),d.createVNode(T,{type:"info",onClick:f},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(a.value),1)]),_:1})],64)}}}),[["__scopeId","data-v-82f0f919"]]);function MIe(e){return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(i){i(n)}),(r=e.get("*"))&&r.slice().map(function(i){i(t,n)})}}}const af=MIe();function Go(e){const t=e,n=()=>{af.off("element-update",t)};return d.onMounted(()=>{t(),af.off("element-update",t),af.on("element-update",t)}),d.onBeforeUnmount(()=>n()),[t,n]}const Y2=d.defineComponent({__name:"UserConfigProperty",props:{label:{type:String,default:"获取用户的配置"},getUserValue:{type:Function,default:GAe},updateUserValue:{type:Function,default:KAe}},setup(e){const t=e,n=d.ref({...hu,outputTaskDefKey:""}),r=Zt(Ut),i=()=>{n.value=t.getUserValue(r.activeElement)},o=a=>{t.updateUserValue(r.activeElement,a)};return Go(i),(a,s)=>{const l=d.resolveComponent("n-descriptions-item"),c=d.resolveComponent("n-descriptions"),u=d.resolveComponent("n-collapse-item");return d.openBlock(),d.createBlock(u,null,d.createSlots({header:d.withCtx(()=>[d.createVNode(Mo,{title:t.label},{default:d.withCtx(()=>[d.createVNode(d.unref(G2))]),_:1},8,["title"])]),default:d.withCtx(()=>[d.createElementVNode("div",null,[d.createVNode(jIe,{user:n.value,"onUpdate:user":s[0]||(s[0]=f=>n.value=f),onOnOk:o},null,8,["user"]),d.createVNode(c,{"label-placement":"left",column:1,bordered:"",size:"small",style:{"margin-top":"10px"}},{default:d.withCtx(()=>[d.createVNode(l,null,{label:d.withCtx(()=>[d.createTextVNode(" 类型 ")]),default:d.withCtx(()=>[d.createTextVNode(" "+d.toDisplayString(n.value.userIdType),1)]),_:1}),n.value.userIdType===d.unref(Zi).USER_ID?(d.openBlock(),d.createBlock(l,{key:0},{label:d.withCtx(()=>[d.createTextVNode(" 用户 ID ")]),default:d.withCtx(()=>[d.createTextVNode(" "+d.toDisplayString(n.value.userId),1)]),_:1})):d.createCommentVNode("",!0),n.value.userIdType===d.unref(Zi).GET_SINGLE_USER||n.value.userIdType===d.unref(Zi).GET_MULTI_USERS?(d.openBlock(),d.createBlock(l,{key:1},{label:d.withCtx(()=>[d.createTextVNode(" 节点 ID ")]),default:d.withCtx(()=>[d.createTextVNode(" "+d.toDisplayString(n.value.outputTaskDefKey),1)]),_:1})):d.createCommentVNode("",!0)]),_:1})])]),_:2},[n.value.userId?{name:"header-extra",fn:d.withCtx(()=>[d.createVNode(ka)]),key:"0"}:void 0]),1024)}}}),AIe=d.defineComponent({__name:"property",setup(e){return(t,n)=>(d.openBlock(),d.createBlock(Y2,{label:"获取公司的配置"}))}}),NIe="data:image/svg+xml,%3csvg%20t='1710141728893'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='12073'%20width='30'%20height='30'%3e%3cpath%20d='M352.256%20550.4c-65.792%200-119.296-53.504-119.296-119.296s53.504-119.296%20119.296-119.296c65.792%200%20119.296%2053.504%20119.296%20119.296S418.048%20550.4%20352.256%20550.4z%20m0-177.408c-32%200-57.856%2026.112-57.856%2057.856s26.112%2057.856%2057.856%2057.856%2057.856-26.112%2057.856-57.856-25.856-57.856-57.856-57.856z'%20fill='%23040000'%20p-id='12074'%3e%3c/path%3e%3cpath%20d='M506.368%20704.512c-16.896%200-30.72-13.824-30.72-30.72%200-68.096-55.296-123.392-123.392-123.392s-123.392%2055.296-123.392%20123.392c0%2016.896-13.824%2030.72-30.72%2030.72s-30.72-13.824-30.72-30.72c0-101.888%2082.944-184.832%20184.832-184.832%20101.888%200%20184.832%2082.944%20184.832%20184.832%200%2016.896-13.824%2030.72-30.72%2030.72zM820.48%20403.712h-209.664c-16.896%200-30.72-13.824-30.72-30.72s13.824-30.72%2030.72-30.72h209.664c16.896%200%2030.72%2013.824%2030.72%2030.72s-13.824%2030.72-30.72%2030.72zM820.48%20539.392h-209.664c-16.896%200-30.72-13.824-30.72-30.72s13.824-30.72%2030.72-30.72h209.664c16.896%200%2030.72%2013.824%2030.72%2030.72s-13.824%2030.72-30.72%2030.72zM820.48%20675.072h-209.664c-16.896%200-30.72-13.824-30.72-30.72s13.824-30.72%2030.72-30.72h209.664c16.896%200%2030.72%2013.824%2030.72%2030.72s-13.824%2030.72-30.72%2030.72z'%20fill='%23040000'%20p-id='12075'%3e%3c/path%3e%3cpath%20d='M883.456%20872.448H147.456c-56.576%200-102.4-45.824-102.4-102.4V252.16c0-56.576%2045.824-102.4%20102.4-102.4h736c56.576%200%20102.4%2045.824%20102.4%20102.4v517.888c0%2056.32-45.824%20102.4-102.4%20102.4zM147.456%20211.2c-22.528%200-40.96%2018.432-40.96%2040.96v517.888c0%2022.528%2018.432%2040.96%2040.96%2040.96h736c22.528%200%2040.96-18.432%2040.96-40.96V252.16c0-22.528-18.432-40.96-40.96-40.96H147.456z'%20fill='%23060001'%20p-id='12076'%3e%3c/path%3e%3c/svg%3e",DIe=(e,t)=>n=>{const r=t.createShape({type:"bpmn:ServiceTask"}),i=r.businessObject;i.set("name","获取人员信息"),i.set("activiti:delegateExpression","${getSingleUserTaskService}"),ps(r,{name:Sa,value:V2}),MK(r,hu),e.start(n,r,void 0)},IIe=(e,t)=>{const n=DIe(e,t);return{"get-user-info":{group:"customnode",title:"获取人员信息",imageUrl:NIe,action:{click:n,dragstart:n}}}},LIe=d.defineComponent({__name:"property",setup(e){return(t,n)=>(d.openBlock(),d.createBlock(Y2,{label:"获取用户信息的配置"}))}}),BIe="data:image/svg+xml,%3csvg%20t='1710224897811'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='17482'%20width='30'%20height='30'%3e%3cpath%20d='M216.945519%20232.260831l84.678588%200%200%20208.009498-84.678588%200%200-208.009498Z'%20fill='%232c2c2c'%20p-id='17483'%3e%3c/path%3e%3cpath%20d='M384.134309%20204.3829l84.678588%200%200%20264.548188-84.678588%200%200-264.548188Z'%20fill='%232c2c2c'%20p-id='17484'%3e%3c/path%3e%3cpath%20d='M148.4014%20190.361559c0-22.933315%2018.655895-41.589211%2041.589211-41.589211l641.889279%200c22.933315%200%2041.589211%2018.655895%2041.589211%2041.589211l0%2097.355305L644.231115%20287.716864l83.334987-83.333964-83.289961%200L518.86178%20329.796238l139.395794%20139.395794%2083.290985%200-96.795557-96.795557%20313.39571-0.001023L958.148711%20190.361559c0-69.623707-56.644091-126.267798-126.268822-126.267798L189.99061%2064.09376c-69.62473%200-126.267798%2056.644091-126.267798%20126.267798l0%20459.4389%2084.678588%200L148.4014%20190.361559z'%20fill='%232c2c2c'%20p-id='17485'%3e%3c/path%3e%3cpath%20d='M873.468077%20457.07404l0%20375.176798c0%2022.932292-18.654872%2041.589211-41.589211%2041.589211L189.99061%20873.840048c-22.932292%200-41.589211-18.655895-41.589211-41.589211l0-13.008268%20669.937079%200%200-84.678588L789.985734%20734.563982%20789.985734%20497.195829%20231.188918%20497.195829l0%20237.368152-167.466106-0.083911%200%2097.770767c0%2069.62473%2056.644091%20126.268822%20126.267798%20126.268822l641.889279%200c69.62473%200%20126.268822-56.644091%20126.268822-126.268822L958.148711%20457.07404%20873.468077%20457.07404zM637.041366%20581.87544l68.264756%200%200%20152.688541-68.264756%200L637.041366%20581.87544zM468.812897%20581.87544l83.548858%200%200%20152.688541-83.548858%200L468.812897%20581.87544zM315.868529%20581.87544l68.26578%200%200%20152.688541-68.26578%200L315.868529%20581.87544z'%20fill='%232c2c2c'%20p-id='17486'%3e%3c/path%3e%3c/svg%3e",rT="org",TY=e=>{const{orgVariableType:t}=e,n={orgVariableType:t};switch(t){case As.ORG_ID:n.orgId=e.orgId;break;case As.GET_ORG_TASK_OUTPUT:n.getOrgTaskDefKey=e.getOrgTaskDefKey;break}return{name:rT,type:"expression",value:JSON.stringify(n)}},L6=(e,t)=>{cm(e,TY(t))},FIe=e=>{const n=P0(e).find(i=>i.name===rT)||{};return JSON.parse(n.expression||"{}")},zIe=(e,t)=>{const n=d.toRaw(P0(e)),r=n.findIndex(i=>i.name===rT);r!==-1&&um(e,n[r],TY(t))},VIe=(e,t)=>n=>{const r=t.createShape({type:"bpmn:ServiceTask"}),i=r.businessObject;i.set("name","获取监理公司"),i.set("activiti:delegateExpression","${getSupervisoryOrgOfOrg}"),ps(r,{name:Sa,value:p$}),L6(r,{orgVariableType:As.GET_ORG_TASK_OUTPUT,getOrgTaskDefKey:""}),e.start(n,r,void 0)},HIe=(e,t)=>{const n=VIe(e,t);return{"get-supervisory-org":{group:"customnode",title:"获取监理公司",imageUrl:BIe,action:{click:n,dragstart:n}}}},UIe={class:"org-title-selector-container"},WIe={class:"org-type-options"},qIe={class:"job-title-type-options"},GIe=d.defineComponent({__name:"OrgTitleSelector",props:{org:{type:Object,required:!0},jobTitle:{type:Object,required:!1,default:()=>({titleListType:rf.TITLE_NAME_LIST,titleNameList:[]})},label:{type:String,default:"配置"},dialogTitle:{type:String,default:"公司职务选择"},disableTitle:{type:Boolean,default:!1}},emits:["update:org","update:jobTitle","on-ok"],setup(e,{emit:t}){const n=e,r=d.ref({...n.org}),i=d.ref(n.disableTitle),o=d.ref({...n.jobTitle}),a=d.ref(n.label),s=d.computed(()=>OAe(r.value.orgVariableType)),l=t,c=(y,C)=>{l("update:org",d.toRaw(y)),l("update:jobTitle",d.toRaw(C))},u=d.ref(!1),f=()=>{u.value=!0},h=d.ref(!1),p=d.ref(600),m=d.ref(600),b=d.computed(()=>({width:`${p.value}px`,height:`${m.value}px`})),v=d.ref(d.markRaw(pu));function g(){h.value=!h.value,h.value?(p.value=window.innerWidth,m.value=window.innerHeight,v.value=K2):(p.value=600,m.value=600,v.value=pu)}const x=()=>{c(r.value,o.value),l("on-ok",r.value,o.value),u.value=!1},w=()=>d.createVNode("div",{class:"json-dialog-title-container"},[d.createVNode("span",null,[n.dialogTitle]),d.createVNode("span",null,[d.createVNode(v.value,{onClick:g,class:"edit-icon"},null)])]);return(y,C)=>{const _=d.resolveComponent("n-radio"),S=d.resolveComponent("n-radio-group"),E=d.resolveComponent("n-form-item"),$=d.resolveComponent("n-input"),k=d.resolveComponent("n-select"),P=d.resolveComponent("n-dynamic-input"),T=d.resolveComponent("n-form"),j=d.resolveComponent("n-button"),M=d.resolveComponent("n-modal");return d.openBlock(),d.createElementBlock(d.Fragment,null,[d.createVNode(M,{show:u.value,"onUpdate:show":C[8]||(C[8]=B=>u.value=B),"mask-closable":!1,preset:"dialog",title:w,"show-icon":!1,style:d.normalizeStyle(b.value)},{action:d.withCtx(()=>[d.createVNode(j,{size:"small",type:"info",onClick:x},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(y.$t("panel.confirm")),1)]),_:1})]),default:d.withCtx(()=>[d.createElementVNode("div",UIe,[d.createVNode(T,{"label-placement":"left","label-width":"auto","require-mark-placement":"right-hanging",size:"small",style:{maxWidth:"640px",marginTop:"10px"}},{default:d.withCtx(()=>[d.createVNode(E,{label:"获取机构方式"},{default:d.withCtx(()=>[d.createElementVNode("div",WIe,[d.createVNode(S,{value:r.value.orgVariableType,"onUpdate:value":C[0]||(C[0]=B=>r.value.orgVariableType=B),name:"orgSelect",style:{"margin-bottom":"10px"}},{default:d.withCtx(()=>[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(d.unref(RAe),B=>(d.openBlock(),d.createBlock(_,{key:B.value,value:B.value,label:B.label},null,8,["value","label"]))),128))]),_:1},8,["value"])])]),_:1}),r.value.orgVariableType===d.unref(As).ORG_ID?(d.openBlock(),d.createBlock(E,{key:0,label:"机构 id"},{default:d.withCtx(()=>[d.createVNode($,{value:r.value.orgId,"onUpdate:value":C[1]||(C[1]=B=>r.value.orgId=B),placeholder:"请输入机构 id",onKeydown:C[2]||(C[2]=d.withKeys(d.withModifiers(()=>{},["prevent"]),["enter"]))},null,8,["value"])]),_:1})):d.createCommentVNode("",!0),r.value.orgVariableType===d.unref(As).GET_ORG_TASK_OUTPUT?(d.openBlock(),d.createBlock(E,{key:1,label:"节点 ID"},{default:d.withCtx(()=>[d.createVNode(k,{value:r.value.getOrgTaskDefKey,"onUpdate:value":C[3]||(C[3]=B=>r.value.getOrgTaskDefKey=B),placeholder:"请选择节点",options:s.value,onKeydown:C[4]||(C[4]=d.withKeys(d.withModifiers(()=>{},["prevent"]),["enter"]))},null,8,["value","options"])]),_:1})):d.createCommentVNode("",!0),i.value?d.createCommentVNode("",!0):(d.openBlock(),d.createBlock(E,{key:2,label:"获取职称方式"},{default:d.withCtx(()=>[d.createElementVNode("div",qIe,[d.createVNode(S,{value:o.value.titleListType,"onUpdate:value":C[5]||(C[5]=B=>o.value.titleListType=B),name:"jobTitleSelect",style:{"margin-bottom":"10px"}},{default:d.withCtx(()=>[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(d.unref(PAe),B=>(d.openBlock(),d.createBlock(_,{key:B.value,value:B.value,label:B.label},null,8,["value","label"]))),128))]),_:1},8,["value"])])]),_:1})),!i.value&&o.value.titleListType===d.unref(rf).TITLE_NAME_LIST?(d.openBlock(),d.createBlock(E,{key:3,label:"职称名列表"},{default:d.withCtx(()=>[d.createVNode(P,{value:o.value.titleNameList,"onUpdate:value":C[6]||(C[6]=B=>o.value.titleNameList=B),placeholder:"请输入值",min:1,onKeydown:C[7]||(C[7]=d.withKeys(d.withModifiers(()=>{},["prevent"]),["enter"]))},null,8,["value"])]),_:1})):d.createCommentVNode("",!0)]),_:1})])]),_:1},8,["show","style"]),d.createVNode(j,{type:"info",onClick:f},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(a.value),1)]),_:1})],64)}}}),iT="titleList",RY=e=>{const{titleListType:t,titleNameList:n}=e,r={titleListType:t};switch(t){case rf.TITLE_NAME_LIST:r.titleNameList=n;break}return{name:iT,type:"expression",value:JSON.stringify(r)}},PY=(e,t)=>{cm(e,RY(t))},KIe=e=>{const n=P0(e).find(i=>i.name===iT)||{};return JSON.parse(n.expression||"{}")},YIe=(e,t)=>{const n=d.toRaw(P0(e)),r=n.findIndex(i=>i.name===iT);r!==-1&&um(e,n[r],RY(t))},B6=d.defineComponent({__name:"OrgTitleConfigProperty",props:{label:{type:String,default:"获取人员的配置"},disableTitle:{type:Boolean,default:!1}},setup(e){const t=e,n=d.ref({titleListType:"TITLE_NAME_LIST",titleNameList:[]}),r=d.ref({orgVariableType:"ID",orgId:"",getOrgTaskDefKey:""}),i=d.ref(t.disableTitle),o=Zt(Ut),a=()=>{r.value=FIe(o.activeElement),i.value||(n.value=KIe(o.activeElement))},s=(l,c)=>{zIe(o.activeElement,l),i.value||YIe(o.activeElement,c)};return Go(a),(l,c)=>{var p;const u=d.resolveComponent("n-descriptions-item"),f=d.resolveComponent("n-descriptions"),h=d.resolveComponent("n-collapse-item");return d.openBlock(),d.createBlock(h,null,d.createSlots({header:d.withCtx(()=>[d.createVNode(Mo,{title:t.label},{default:d.withCtx(()=>[d.createVNode(d.unref(G2))]),_:1},8,["title"])]),default:d.withCtx(()=>[d.createElementVNode("div",null,[d.createVNode(GIe,{disableTitle:i.value,label:"配置",org:r.value,"onUpdate:org":c[0]||(c[0]=m=>r.value=m),jobTitle:n.value,"onUpdate:jobTitle":c[1]||(c[1]=m=>n.value=m),onOnOk:s},null,8,["disableTitle","org","jobTitle"]),d.createVNode(f,{"label-placement":"left",column:1,bordered:"",size:"small",style:{"margin-top":"10px"}},{default:d.withCtx(()=>[d.createVNode(u,null,{label:d.withCtx(()=>[d.createTextVNode(" 机构类型 ")]),default:d.withCtx(()=>[d.createTextVNode(" "+d.toDisplayString(r.value.orgVariableType),1)]),_:1}),r.value.orgVariableType===d.unref(As).ORG_ID?(d.openBlock(),d.createBlock(u,{key:0},{label:d.withCtx(()=>[d.createTextVNode(" 机构 ID ")]),default:d.withCtx(()=>[d.createTextVNode(" "+d.toDisplayString(r.value.orgId),1)]),_:1})):d.createCommentVNode("",!0),r.value.orgVariableType===d.unref(As).GET_ORG_TASK_OUTPUT?(d.openBlock(),d.createBlock(u,{key:1},{label:d.withCtx(()=>[d.createTextVNode(" 流程节点 ID ")]),default:d.withCtx(()=>[d.createTextVNode(" "+d.toDisplayString(r.value.getOrgTaskDefKey),1)]),_:1})):d.createCommentVNode("",!0),i.value?d.createCommentVNode("",!0):(d.openBlock(),d.createBlock(u,{key:2},{label:d.withCtx(()=>[d.createTextVNode(" 职称类型 ")]),default:d.withCtx(()=>[d.createTextVNode(" "+d.toDisplayString(n.value.titleListType),1)]),_:1})),!i.value&&n.value.titleListType===d.unref(rf).TITLE_NAME_LIST?(d.openBlock(),d.createBlock(u,{key:3},{label:d.withCtx(()=>[d.createTextVNode(" 职称名 ")]),default:d.withCtx(()=>[d.createTextVNode(" "+d.toDisplayString(n.value.titleNameList.join(",")),1)]),_:1})):d.createCommentVNode("",!0)]),_:1})])]),_:2},[r.value.orgId||(p=n.value.titleNameList)!=null&&p.length||r.value.getOrgTaskDefKey?{name:"header-extra",fn:d.withCtx(()=>[d.createVNode(ka)]),key:"0"}:void 0]),1024)}}}),ZIe=d.defineComponent({__name:"property",setup(e){return(t,n)=>(d.openBlock(),d.createBlock(B6,{label:"获取监理公司的配置",disableTitle:!0}))}}),XIe="data:image/svg+xml,%3csvg%20t='1711350794276'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='6567'%20width='30'%20height='30'%3e%3cpath%20d='M0%200h1024v1024H0V0z%20m56.888889%2056.888889v910.222222h910.222222V56.888889H56.888889z'%20fill='%232c2c2c'%20p-id='6568'%3e%3c/path%3e%3cpath%20d='M210.488889%20329.955556h96.711111c-11.377778-34.133333-22.755556-62.577778-39.822222-85.333334l68.266666-11.377778c11.377778%2028.444444%2022.755556%2056.888889%2034.133334%2096.711112h79.644444v62.577777H318.577778v79.644445h119.466666c0%20176.355556-5.688889%20290.133333-11.377777%20329.955555-5.688889%2039.822222-34.133333%2062.577778-91.022223%2062.577778h-28.444444l-17.066667-56.888889c11.377778%200%2022.755556%205.688889%2034.133334%205.688889%2022.755556%200%2039.822222-11.377778%2045.511111-34.133333%205.688889-22.755556%205.688889-102.4%205.688889-238.933334h-56.888889c-5.688889%20153.6-28.444444%20261.688889-73.955556%20335.644445l-51.2-39.822222c39.822222-68.266667%2062.577778-176.355556%2062.577778-324.266667V392.533333h-45.511111V329.955556z%20m335.644444%2039.822222c-17.066667%2045.511111-45.511111%2091.022222-73.955555%20125.155555l-39.822222-51.2c39.822222-51.2%2073.955556-119.466667%20102.4-210.488889l62.577777%2011.377778c-5.688889%2022.755556-11.377778%2039.822222-22.755555%2056.888889h233.244444v62.577778H546.133333z%20m238.933334%2073.955555c0%20130.844444-5.688889%20210.488889-11.377778%20238.933334s-34.133333%2039.822222-73.955556%2039.822222h-5.688889l-17.066666-56.888889h28.444444c5.688889%200%2011.377778-5.688889%2011.377778-17.066667V523.377778l-51.2%2017.066666v221.866667h-62.577778V563.2l-51.2%2017.066667v176.355555c0%2028.444444%2011.377778%2045.511111%2028.444445%2045.511111h130.844444c17.066667%200%2022.755556-5.688889%2034.133333-11.377777%205.688889-5.688889%2011.377778-34.133333%2017.066667-73.955556l56.888889%2017.066667c-5.688889%2056.888889-17.066667%2091.022222-34.133333%20108.088889-11.377778%2011.377778-34.133333%2017.066667-62.577778%2017.066666H563.2c-45.511111%200-68.266667-28.444444-68.266667-91.022222v-170.666667l-39.822222%2022.755556v-56.888889l51.2-17.066667V449.422222h56.888889v68.266667l51.2-17.066667V398.222222h62.577778v85.333334l108.088889-39.822223z'%20fill='%232c2c2c'%20p-id='6569'%3e%3c/path%3e%3c/svg%3e",JIe=(e,t)=>n=>{const r=t.createShape({type:"bpmn:ServiceTask"}),i=r.businessObject;i.set("name","获取施工单位"),i.set("activiti:delegateExpression","${getConstructionOrgOfOrg}"),ps(r,{name:Sa,value:m$}),L6(r,{orgVariableType:As.GET_ORG_TASK_OUTPUT,getOrgTaskDefKey:""}),e.start(n,r,void 0)},QIe=(e,t)=>{const n=JIe(e,t);return{"get-construction-org":{group:"customnode",title:"获取施工单位",imageUrl:XIe,action:{click:n,dragstart:n}}}},eLe=d.defineComponent({__name:"property",setup(e){return(t,n)=>(d.openBlock(),d.createBlock(B6,{label:"获取施工单位的配置",disableTitle:!0}))}}),tLe="data:image/svg+xml,%3csvg%20t='1710141822502'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='14425'%20width='30'%20height='30'%3e%3cpath%20d='M689.814588%20266.300235a175.887059%20175.887059%200%201%200-351.894588%200%20175.887059%20175.887059%200%200%200%20351.894588%200z%20m60.235294%200a236.122353%20236.122353%200%201%201-472.365176%200%20236.122353%20236.122353%200%200%201%20472.365176%200zM873.411765%20916.178824v-76.920471a210.823529%20210.823529%200%200%200-210.82353-210.823529H361.411765a210.823529%20210.823529%200%200%200-210.82353%20210.823529v76.980706h722.82353zM361.411765%20568.259765h301.17647a271.058824%20271.058824%200%200%201%20271.058824%20271.058823v107.098353a30.117647%2030.117647%200%200%201-30.117647%2030.117647H120.470588a30.117647%2030.117647%200%200%201-30.117647-30.117647v-107.098353a271.058824%20271.058824%200%200%201%20271.058824-271.058823z'%20fill='%232c2c2c'%20p-id='14426'%3e%3c/path%3e%3c/svg%3e",nLe=(e,t)=>n=>{const r=t.createShape({type:"bpmn:ServiceTask"}),i=r.businessObject;i.set("name","获取单人员"),i.set("activiti:delegateExpression","${getSingleUserFromTitleTaskService}"),ps(r,{name:Sa,value:f$}),PY(r,{titleListType:rf.TITLE_NAME_LIST,titleNameList:[]}),L6(r,{orgVariableType:As.ORG_ID,orgId:""}),e.start(n,r,void 0)},rLe=(e,t)=>{const n=nLe(e,t);return{"get-single-user":{group:"customnode",title:"获取单个人员",imageUrl:tLe,action:{click:n,dragstart:n}}}},iLe=d.defineComponent({__name:"property",setup(e){return(t,n)=>(d.openBlock(),d.createBlock(B6,{label:"获取单人员的配置"}))}}),oLe="data:image/svg+xml,%3csvg%20t='1709800140877'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='4222'%20width='30'%20height='30'%3e%3cpath%20d='M414.71%20509.2C301%20509.2%20208.47%20416.68%20208.47%20303S301%2096.73%20414.71%2096.73%20620.94%20189.24%20620.94%20303s-92.51%20206.2-206.23%20206.2z%20m0-352.47c-80.64%200-146.24%2065.6-146.24%20146.23s65.6%20146.24%20146.24%20146.24S560.94%20383.6%20560.94%20303s-65.6-146.27-146.23-146.27zM734.71%20924.17h-640a30%2030%200%200%201-29.6-34.9c15.49-93.64%2058.18-179.2%20120.19-240.9%2031.28-31.13%2066.5-55.45%20104.68-72.28a307%20307%200%200%201%20249.46%200c38.18%2016.83%2073.4%2041.15%20104.68%2072.28%2062%2061.7%20104.69%20147.26%20120.19%20240.9a30%2030%200%200%201-29.6%2034.9z%20m-603.12-60h566.24C660%20714.72%20545.28%20609.61%20414.71%20609.61S169.44%20714.72%20131.59%20864.17zM711%20478.22a30%2030%200%200%201-17-54.71%20146.29%20146.29%200%200%200-13.26-249.22%2030%2030%200%200%201%2028.58-52.76A206.3%20206.3%200%200%201%20728%20472.93a30%2030%200%200%201-17%205.29zM931.12%20924.17h-75.79a30%2030%200%200%201%200-60h39.1C867%20751%20801.12%20660.72%20717.34%20624a30%2030%200%200%201%2024.07-55c56.25%2024.63%20106.42%2068.36%20145.07%20126.46%2036.74%2055.22%2062.41%20122.21%2074.24%20193.73a30%2030%200%200%201-29.6%2034.9z'%20p-id='4223'%3e%3c/path%3e%3c/svg%3e",aLe=(e,t)=>n=>{const r=t.createShape({type:"bpmn:ServiceTask"}),i=r.businessObject;i.set("name","获取多人员"),i.set("activiti:delegateExpression","${getMultipleUsersTaskService}"),ps(r,{name:Sa,value:h$}),PY(r,{titleListType:rf.TITLE_NAME_LIST,titleNameList:[]}),L6(r,{orgVariableType:As.ORG_ID,orgId:""}),e.start(n,r,void 0)},sLe=(e,t)=>{const n=aLe(e,t);return{"get-multi-user":{group:"customnode",title:"获取多个人员",imageUrl:oLe,action:{click:n,dragstart:n}}}},lLe=d.defineComponent({__name:"property",setup(e){return(t,n)=>(d.openBlock(),d.createBlock(B6,{label:"获取多人员的配置"}))}}),cLe="data:image/svg+xml,%3csvg%20t='1709801148292'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='5252'%20width='30'%20height='30'%3e%3cpath%20d='M515.09%20955.46H217.17c-67.25%200-121.97-55.66-121.97-124.07V192.41c0-68.41%2054.71-124.07%20121.97-124.07h573.89c67.25%200%20121.97%2055.66%20121.97%20124.07v212.12c0%2022.95-18.29%2041.56-40.85%2041.56s-40.85-18.61-40.85-41.56V192.41c0-22.58-18.06-40.95-40.26-40.95h-573.9c-22.2%200-40.26%2018.37-40.26%2040.95v638.98c0%2022.58%2018.06%2040.95%2040.26%2040.95h297.92c22.56%200%2040.85%2018.61%2040.85%2041.56s-18.28%2041.56-40.85%2041.56z'%20p-id='5253'%3e%3c/path%3e%3cpath%20d='M708.2%20368.58c0.06-0.16%200.11-0.32%200.17-0.47%200.82-2.08%201.48-4.24%201.92-6.49%200.02-0.12%200.03-0.24%200.06-0.36%200.42-2.23%200.66-4.52%200.66-6.87%200-2.35-0.24-4.64-0.66-6.87-0.02-0.12-0.03-0.24-0.06-0.36-0.44-2.25-1.1-4.41-1.92-6.49-0.06-0.16-0.11-0.32-0.17-0.47-0.88-2.13-1.95-4.15-3.19-6.06-0.09-0.14-0.16-0.28-0.25-0.41-1.38-2.07-2.95-4-4.7-5.75l-93.09-93.09c-14.59-14.59-38.24-14.59-52.83%200-14.59%2014.59-14.59%2038.24%200%2052.83l29.32%2029.32H334.58c-20.63%200-37.36%2016.73-37.36%2037.36s16.73%2037.36%2037.36%2037.36h339.07c2.35%200%204.64-0.24%206.87-0.66%200.12-0.02%200.24-0.03%200.36-0.06%202.25-0.44%204.41-1.1%206.49-1.92%200.16-0.06%200.32-0.11%200.47-0.17%202.13-0.88%204.15-1.95%206.06-3.19%200.13-0.09%200.27-0.16%200.41-0.25%204.13-2.75%207.69-6.31%2010.44-10.44%200.09-0.13%200.16-0.27%200.25-0.41%201.25-1.93%202.32-3.96%203.2-6.08zM630.39%20928.98c-8.23%200-18.01-1.74-27.23-7.74-7.32-4.76-19.9-17.07-21.87-40.15l-0.16-1.9%203.77-96.01c-0.2-8.44%202.63-16.08%204.46-21l1.24-3.33%20162.95-245.66c12.53-17.5%2039.04-28.06%2065.41-14.4l3%201.78%2084.68%2056.89c19.06%2013.62%2030.01%2042.17%2012.77%2068.24L764.77%20859.45a61.198%2061.198%200%200%201-23.64%2020.94l-89.75%2044.87-1.91%200.66c-2.28%200.79-9.68%203.06-19.08%203.06z%20m15.88-142.93l-2.9%2074.54%2070.3-35.15%20148.17-224.09-64.39-43.25-151.18%20227.95z'%20p-id='5254'%3e%3c/path%3e%3c/svg%3e";function OY(e,t){const n=`${Ot}:${t}`,r=hm(e);return t==="loopCardinality"||t==="completionCondition"?jY(e,t):r==null?void 0:r.get(n)}function uLe(e){const t=hm(e),n={};for(const r of l$){const i=`${Ot}:${r}`,o=r==="loopCardinality"||r==="completionCondition";t&&(n[r]=o?jY(e,r):t.get(i))}return n}function Z2(e,t,n){var a,s;const r=Zt(Ut),i=hm(e);if(t==="loopCardinality"||t==="completionCondition"){const{moddleElement:l,properties:c}=pLe(e,t,n);(a=r.modeling)==null||a.updateModdleProperties(e,l,c)}else(s=r.modeling)==null||s.updateModdleProperties(e,i,{[`${Ot}:${t}`]:n})}function dLe(e){const t=hm(e);return!!t&&Q(t,`${Ot}:Collectable`)}function hm(e){return rt(e).loopCharacteristics}function fLe(e,t){const n=hm(e);return n&&n.get(t)}function hLe(e){return e&&e.get("body")}function jY(e,t){const n=fLe(e,t);return hLe(n)}function pLe(e,t,n){const r=hm(e),i={};if(!n)return i[t]=void 0,{moddleElement:r,properties:i};const o=r.get(t);return o?{moddleElement:o,properties:{body:n}}:(i[t]=zAe(r,n),{moddleElement:r,properties:i})}function mLe(e){const t=Zt(Ut),{scriptFormat:n,value:r,resource:i}=e;return t.moddle.create(`${Ot}:Script`,{scriptFormat:n,value:r,resource:i})}function gLe(e){return e.get("resource")?"external":e.get("value")?"inline":"none"}function vLe(e){return typeof e>"u"}function MY(e=""){try{JSON.parse(e)}catch{return!1}return!0}function AY(e,t){const n=F6(e);return Zh(n,`${Ot}:${t}`)}function X2(e,t,n){const r=Zt(Ut),i=F6(e),o=r.moddle.create(`${Ot}:${n}`,{});_Le(e,o,t),dK(e,i,o)}function NY(e,t,n,r){$6(e,F6(e),n),X2(e,t,r)}function bLe(e,t){$6(e,F6(e),t)}function yLe(e){return Q(e,"bpmn:UserTask")}function xLe(e){return zn(e,SAe)?!0:Q(e,"bpmn:Participant")?!!e.businessObject.processRef:!1}function wLe(e,t){if(zn(e,[`${Ot}:${t}`])){if(e.get(`${Ot}:class`))return"class";if(e.get(`${Ot}:expression`))return"expression";if(e.get(`${Ot}:delegateExpression`))return"delegateExpression";if(e.get("script"))return"script"}return""}function F6(e){const t=rt(e);return(t==null?void 0:t.get("processRef"))||t}function CLe(e,t){return t==="TaskListener"?[{label:"Create",value:"create"},{label:"Assignment",value:"assignment"},{label:"Complete",value:"complete"},{label:"Delete",value:"delete"}]:Q(e,"bpmn:SequenceFlow")?[{label:"Take",value:"take"}]:[{label:"Start",value:"start"},{label:"End",value:"end"}]}function DY(e,t){return t==="TaskListener"?"create":Q(e,"bpmn:SequenceFlow")?"take":"start"}function _Le(e,t,n){var f;const r=Zt(Ut),{event:i,class:o,expression:a,delegateExpression:s,script:l,fields:c}=n,u=(h,p)=>{var m;return(m=r.modeling)==null?void 0:m.updateModdleProperties(e,t,{[`${Ot}:${h}`]:p})};if(i&&u("event",i),!vLe(o)&&u("class",o),a&&u("expression",a),s&&u("delegateExpression",s),l){const h=mLe(l);(f=r.modeling)==null||f.updateModdleProperties(e,t,{script:h})}HAe(e,t),c&&c.forEach(h=>{VAe(e,t,h)})}const SLe=/^(\${)?([a-zA-Z_$][\w.$]*)(?:\(([\s\S]*)\))?(}\s*)?$/,mu="jsonstring";function z6(e=""){e=e.trim();const t=SLe.exec(e);if(!t)return{isVar:!1,isFunction:!1,varName:e,args:[]};const n=t[1]!==void 0&&t[4]!==void 0,r=t[2],i=t[3]||"",o=[];if(i){let s="",l="";for(let u=0;u<i.length;u++){const f=i[u];f===","&&l!==mu?(o.push({content:s.trim(),type:oT(s.trim())}),s="",l=""):(s+=f,f==="{"?l=mu:l!==mu&&s.trim().startsWith("'")&&s.trim().endsWith("'")||l!==mu&&s.trim().startsWith('"')&&s.trim().endsWith('"')?l="string":l!==mu&&f===" "&&(l=oT(s.trim())))}const c=s.trim();c!==""&&o.push({content:c,type:l!==mu?oT(c):mu})}const a=o.length>0||e.endsWith(")");return{isVar:n,isFunction:a,varName:r,args:o}}const ELe=[{label:"字符串",value:"string"},{label:"数字",value:"number"},{label:"布尔值"},{label:"变量",value:"var"},{label:"JSON串",value:mu}];function oT(e){return e.startsWith("'")&&e.endsWith("'")?"string":/^\d+(\.\d+)?$/.test(e)?"number":e==="true"||e==="false"?"boolean":"var"}function V6(e,t){const n=new RegExp(`^${t}+|${t}+$`,"g");return e.replace(n,"")}function IY(e){return e.replace(/\\"/g,'"')}const aT=e=>({content:(e==null?void 0:e.type)===mu?IY(V6(V6(e.content,"'"),'"')):e==null?void 0:e.content,type:e==null?void 0:e.type}),sT=(e,t,n,r)=>{X2(e,{event:t,type:"delegateExpression",delegateExpression:n,fields:r},"TaskListener")},kLe=(e,t,n,r)=>{const i=AY(e,"TaskListener"),o=i.findIndex(a=>a.event===t);NY(e,{event:t,type:"delegateExpression",delegateExpression:n,fields:r},i[o],"TaskListener")},LY=e=>{const t=e.businessObject;if(!t.loopCharacteristics){const r=Zt(Ut).moddle.create("bpmn:MultiInstanceLoopCharacteristics",{isSequential:!1});t.loopCharacteristics=r}},H6={minApprovedCount:1,maxRejectedCount:0},$Le=e=>"${counterTaskService.getCounterTaskCandidates(execution,'"+JSON.stringify(e)+"')}",TLe=e=>"${counterTaskService.counterTaskCompleted(execution, '"+JSON.stringify(e)+"')}",RLe=e=>{sT(e,"create","${checkCounterSignAssigneeListener}"),LY(e),lT(e,hu),Z2(e,"elementVariable","counterSignAssignee"),cT(e,H6,!1)},PLe=e=>{sT(e,"create","${checkCounterReceiveAssigneeListener}"),LY(e),lT(e,hu),Z2(e,"elementVariable","counterReceiveAssignee"),cT(e,H6,!1)},OLe=e=>{const t=OY(e,"collection"),r=z6(t).args,i=aT(r[1]);return JSON.parse(i.content||"{}")},lT=(e,t)=>{Z2(e,"collection",$Le(t))},jLe=e=>{const t=OY(e,"completionCondition"),r=z6(t).args;if(r.length>=2){const i=aT(r[1]);return JSON.parse(i.content||"{}")}else return H6},cT=(e,t,n=!0)=>{Z2(e,"completionCondition",TLe(t));const r=[{name:"counterTaskCompleteCondition",type:"expression",value:JSON.stringify(t)}],i="${counterTaskCompleteListener}";n?kLe(e,"complete",i,r):sT(e,"complete",i,r)},MLe=(e,t)=>n=>{const r=t.createShape({type:"bpmn:UserTask"}),i=r.businessObject;i.set("name","创建会签节点"),i.set("activiti:assignee","${counterSignAssignee}"),ps(r,{name:Sa,value:g$}),RLe(r),e.start(n,r,void 0)},ALe=(e,t)=>{const n=MLe(e,t);return{"counter-sign-user":{group:"customnode",title:"会签节点",imageUrl:cLe,action:{click:n,dragstart:n}}}},NLe={class:"user-selector-container"},DLe={class:"user-type-options"},ILe=va(d.defineComponent({__name:"CounterSignSelector",props:{user:{type:Object,required:!0},condition:{type:Object,required:!0},label:{type:String,default:"配置"},dialogTitle:{type:String,default:"会签配置"}},emits:["update:user","update:condition","on-ok"],setup(e,{emit:t}){const n=e,r=d.ref({...n.user}),i=d.ref({...n.condition}),o=d.ref(n.label),a=d.computed(()=>xK(r.value.userIdType)),s=t,l=(w,y)=>{s("update:user",w),s("update:condition",y)},c=d.ref(!1),u=()=>{c.value=!0},f=d.ref(!1),h=d.ref(600),p=d.ref(600),m=d.computed(()=>({width:`${h.value}px`,height:`${p.value}px`})),b=d.ref(d.markRaw(pu));function v(){f.value=!f.value,f.value?(h.value=window.innerWidth,p.value=window.innerHeight,b.value=K2):(h.value=600,p.value=600,b.value=pu)}d.computed(()=>"");const g=()=>{l(r.value,i.value),s("on-ok",r.value,i.value),c.value=!1},x=()=>d.createVNode("div",{class:"json-dialog-title-container"},[d.createVNode("span",null,[n.dialogTitle]),d.createVNode("span",null,[d.createVNode(b.value,{onClick:v,class:"edit-icon"},null)])]);return(w,y)=>{const C=d.resolveComponent("n-radio"),_=d.resolveComponent("n-radio-group"),S=d.resolveComponent("n-form-item"),E=d.resolveComponent("n-input"),$=d.resolveComponent("n-select"),k=d.resolveComponent("n-input-number"),P=d.resolveComponent("n-form"),T=d.resolveComponent("n-button"),j=d.resolveComponent("n-modal");return d.openBlock(),d.createElementBlock(d.Fragment,null,[d.createVNode(j,{show:c.value,"onUpdate:show":y[7]||(y[7]=M=>c.value=M),"mask-closable":!1,preset:"dialog",title:x,"show-icon":!1,style:d.normalizeStyle(m.value)},{action:d.withCtx(()=>[d.createVNode(T,{size:"small",type:"info",onClick:g},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(w.$t("panel.confirm")),1)]),_:1})]),default:d.withCtx(()=>[d.createElementVNode("div",NLe,[d.createVNode(P,{model:r.value,"label-placement":"left","label-width":"auto","require-mark-placement":"right-hanging",size:"small",style:{maxWidth:"640px",marginTop:"10px"}},{default:d.withCtx(()=>[d.createVNode(S,{label:"用户类型",path:"userIdType"},{default:d.withCtx(()=>[d.createElementVNode("div",DLe,[d.createVNode(_,{value:r.value.userIdType,"onUpdate:value":y[0]||(y[0]=M=>r.value.userIdType=M),name:"modeSelect",style:{"margin-bottom":"10px"}},{default:d.withCtx(()=>[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(d.unref(yK),M=>(d.openBlock(),d.createBlock(C,{key:M.value,value:M.value,label:M.label},null,8,["value","label"]))),128))]),_:1},8,["value"])])]),_:1}),r.value.userIdType===d.unref(Zi).USER_ID?(d.openBlock(),d.createBlock(S,{key:0,label:"用户 id",path:"userId"},{default:d.withCtx(()=>[d.createVNode(E,{value:r.value.userId,"onUpdate:value":y[1]||(y[1]=M=>r.value.userId=M),type:"textarea",placeholder:"请输入用户 id",autosize:{minRows:2},onKeydown:y[2]||(y[2]=d.withKeys(d.withModifiers(()=>{},["prevent"]),["enter"]))},null,8,["value"])]),_:1})):d.createCommentVNode("",!0),r.value.userIdType===d.unref(Zi).GET_SINGLE_USER||r.value.userIdType===d.unref(Zi).GET_MULTI_USERS?(d.openBlock(),d.createBlock(S,{key:1,label:"节点 ID",path:"outputTaskDefKey"},{default:d.withCtx(()=>[d.createVNode($,{value:r.value.outputTaskDefKey,"onUpdate:value":y[3]||(y[3]=M=>r.value.outputTaskDefKey=M),placeholder:"请选择节点",options:a.value,onKeydown:y[4]||(y[4]=d.withKeys(d.withModifiers(()=>{},["prevent"]),["enter"]))},null,8,["value","options"])]),_:1})):d.createCommentVNode("",!0),d.createVNode(S,{label:"最小通过人数"},{default:d.withCtx(()=>[d.createVNode(k,{value:i.value.minApprovedCount,"onUpdate:value":y[5]||(y[5]=M=>i.value.minApprovedCount=M),placeholder:"请输入数值,最小值不能小于 1",min:1},null,8,["value"])]),_:1}),d.createVNode(S,{label:"最多拒绝人数"},{default:d.withCtx(()=>[d.createVNode(k,{value:i.value.maxRejectedCount,"onUpdate:value":y[6]||(y[6]=M=>i.value.maxRejectedCount=M),placeholder:"请输入数值",min:0},null,8,["value"])]),_:1})]),_:1},8,["model"])])]),_:1},8,["show","style"]),d.createVNode(T,{type:"info",onClick:u},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(o.value),1)]),_:1})],64)}}}),[["__scopeId","data-v-9f4d9f86"]]),BY=d.defineComponent({__name:"CounterSignProperty",props:{label:{type:String,default:"获取用户的配置"}},setup(e){const t=e,n=d.ref({...hu,outputTaskDefKey:""}),r=d.ref(H6),i=Zt(Ut),o=()=>{n.value=OLe(i.activeElement),r.value=jLe(i.activeElement)},a=(s,l)=>{lT(i.activeElement,s),cT(i.activeElement,l,!0)};return Go(o),(s,l)=>{const c=d.resolveComponent("n-descriptions-item"),u=d.resolveComponent("n-descriptions"),f=d.resolveComponent("n-collapse-item");return d.openBlock(),d.createBlock(f,null,d.createSlots({header:d.withCtx(()=>[d.createVNode(Mo,{title:t.label},{default:d.withCtx(()=>[d.createVNode(d.unref(G2))]),_:1},8,["title"])]),default:d.withCtx(()=>[d.createElementVNode("div",null,[d.createVNode(ILe,{user:n.value,"onUpdate:user":l[0]||(l[0]=h=>n.value=h),condition:r.value,"onUpdate:condition":l[1]||(l[1]=h=>r.value=h),onOnOk:a},null,8,["user","condition"]),d.createVNode(u,{"label-placement":"left",column:1,bordered:"",size:"small",style:{"margin-top":"10px"}},{default:d.withCtx(()=>[d.createVNode(c,null,{label:d.withCtx(()=>[d.createTextVNode(" 类型 ")]),default:d.withCtx(()=>[d.createTextVNode(" "+d.toDisplayString(n.value.userIdType),1)]),_:1}),n.value.userIdType===d.unref(Zi).USER_ID?(d.openBlock(),d.createBlock(c,{key:0},{label:d.withCtx(()=>[d.createTextVNode(" 用户 ID ")]),default:d.withCtx(()=>[d.createTextVNode(" "+d.toDisplayString(n.value.userId),1)]),_:1})):d.createCommentVNode("",!0),n.value.userIdType===d.unref(Zi).GET_SINGLE_USER||n.value.userIdType===d.unref(Zi).GET_MULTI_USERS?(d.openBlock(),d.createBlock(c,{key:1},{label:d.withCtx(()=>[d.createTextVNode(" 节点 ID ")]),default:d.withCtx(()=>[d.createTextVNode(" "+d.toDisplayString(n.value.outputTaskDefKey),1)]),_:1})):d.createCommentVNode("",!0),d.createVNode(c,null,{label:d.withCtx(()=>[d.createTextVNode(" 最少通过次数 ")]),default:d.withCtx(()=>[d.createTextVNode(" "+d.toDisplayString(r.value.minApprovedCount),1)]),_:1}),d.createVNode(c,null,{label:d.withCtx(()=>[d.createTextVNode(" 最多拒绝次数 ")]),default:d.withCtx(()=>[d.createTextVNode(" "+d.toDisplayString(r.value.maxRejectedCount),1)]),_:1})]),_:1})])]),_:2},[n.value.userId?{name:"header-extra",fn:d.withCtx(()=>[d.createVNode(ka)]),key:"0"}:void 0]),1024)}}}),LLe=d.defineComponent({__name:"property",setup(e){return(t,n)=>(d.openBlock(),d.createBlock(BY,{label:"会签配置"}))}}),BLe="data:image/svg+xml,%3csvg%20t='1709868403061'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2300'%20width='30'%20height='30'%3e%3cpath%20d='M921.6%20916.992v61.44H139.6224v-61.44H921.6zM530.6368%2051.2a251.392%20251.392%200%200%201%20117.9648%20473.344l-10.5984%205.2736%2016.0768%2079.9232h223.2832l81.4592%20279.296H102.4l81.408-279.296h223.3344l16.0256-79.9232-10.3936-5.1712a251.7504%20251.7504%200%200%201-132.3008-198.0416L279.552%20314.368l-0.256-11.776A251.392%20251.392%200%200%201%20530.6368%2051.2z%20m0%2055.808a195.3792%20195.3792%200%200%200-195.5328%20194.8672l0.256%2010.4448a195.584%20195.584%200%200%200%20129.1776%20174.2848l22.6816%208.1408L452.9664%20665.6H225.6896l-48.7936%20167.5776h707.4304L835.4816%20665.6H608.256l-34.1504-170.9056%2022.6816-8.1408a195.584%20195.584%200%200%200-66.1504-379.4944z'%20fill='%232c2c2c'%20p-id='2301'%3e%3c/path%3e%3c/svg%3e";function FLe(e){const t=rt(e),n={};for(const r of s$){const i=`${Ot}:${r}`;n[r]=t.get(i)}return n}function uT(e,t,n){var o;const r=Zt(Ut),i=rt(e);(o=r.modeling)==null||o.updateModdleProperties(e,i,{[`${Ot}:${t}`]:n})}const pm=(e,t,n,r)=>{X2(e,{event:t,type:"delegateExpression",delegateExpression:n,fields:r},"TaskListener")},zLe=e=>{pm(e,"create","${checkSignAssigneeListener}"),pm(e,"complete","${completeSignApproveListener}")},VLe=e=>{pm(e,"create","${checkReceiveAssigneeListener}"),pm(e,"complete","${completeSignApproveListener}")},HLe=e=>{pm(e,"create","${checkReformAssigneeListener}"),pm(e,"complete","${completeSubmitListener}")},dT=e=>{const n=e.businessObject.get("activiti:assignee");return n?JSON.parse(n||"{}"):hu},fT=(e,t)=>{uT(e,"assignee",JSON.stringify(t))},ULe=(e,t)=>n=>{const r=t.createShape({type:"bpmn:UserTask"}),i=r.businessObject;i.set("name","创建审批节点"),i.set("activiti:assignee",JSON.stringify(hu)),ps(r,{name:Sa,value:v$}),zLe(r),e.start(n,r,void 0)},WLe=(e,t)=>{const n=ULe(e,t);return{"approval-user":{group:"customnode",title:"审批节点",imageUrl:BLe,action:{click:n,dragstart:n}}}},qLe=d.defineComponent({__name:"property",setup(e){return(t,n)=>(d.openBlock(),d.createBlock(Y2,{label:"审批配置",getUserValue:d.unref(dT),updateUserValue:d.unref(fT)},null,8,["getUserValue","updateUserValue"]))}}),GLe="data:image/svg+xml,%3csvg%20t='1711350298534'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='5302'%20width='30'%20height='30'%3e%3cpath%20d='M768%2064V0H256v64H64v896h896V64zM320%2064h384v64H320z%20m576%20832H128V128h128v64h512V128h128z'%20fill='%23333333'%20p-id='5303'%3e%3c/path%3e%3cpath%20d='M450.56%20597.12L342.4%20489.6l-44.8%2044.8%20147.84%20148.48%20342.4-273.92-39.68-49.92-297.6%20238.08z'%20fill='%23333333'%20p-id='5304'%3e%3c/path%3e%3c/svg%3e",KLe=(e,t)=>n=>{const r=t.createShape({type:"bpmn:UserTask"}),i=r.businessObject;i.set("name","创建签收节点"),i.set("activiti:assignee",JSON.stringify(hu)),ps(r,{name:Sa,value:mK}),VLe(r),e.start(n,r,void 0)},YLe=(e,t)=>{const n=KLe(e,t);return{"sign-receipt-user":{group:"customnode",title:"签收节点",imageUrl:GLe,action:{click:n,dragstart:n}}}},ZLe=d.defineComponent({__name:"property",setup(e){return(t,n)=>(d.openBlock(),d.createBlock(Y2,{label:"签收配置",getUserValue:d.unref(dT),updateUserValue:d.unref(fT)},null,8,["getUserValue","updateUserValue"]))}}),XLe="data:image/svg+xml,%3csvg%20t='1711354185141'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='7753'%20width='30'%20height='30'%3e%3cpath%20d='M930.909091%201024H93.090909a93.090909%2093.090909%200%200%201-93.090909-93.090909V93.090909a93.090909%2093.090909%200%200%201%2093.090909-93.090909h837.818182a93.090909%2093.090909%200%200%201%2093.090909%2093.090909v837.818182a93.090909%2093.090909%200%200%201-93.090909%2093.090909zM116.363636%2069.818182a46.545455%2046.545455%200%200%200-46.545454%2046.545454v791.272728a46.545455%2046.545455%200%200%200%2046.545454%2046.545454h791.272728a46.545455%2046.545455%200%200%200%2046.545454-46.545454v-791.272728a46.545455%2046.545455%200%200%200-46.545454-46.545454z'%20fill='%232c2c2c'%20p-id='7754'%3e%3c/path%3e%3cpath%20d='M724.293818%20582.050909l-65.815273-65.815273a23.272727%2023.272727%200%200%201%2032.907637-32.907636l49.384727%2049.338182%20115.153455-115.153455a23.319273%2023.319273%200%200%201%2033.093818%2032.861091l-131.816727%20131.677091a23.272727%2023.272727%200%200%201-32.907637%200z'%20fill='%232c2c2c'%20p-id='7755'%3e%3c/path%3e%3cpath%20d='M724.293818%20787.409455l-65.815273-65.815273a23.272727%2023.272727%200%200%201%2032.907637-32.907637l49.384727%2049.338182%20115.153455-115.153454a23.319273%2023.319273%200%200%201%2033.093818%2032.861091l-131.816727%20131.677091a23.272727%2023.272727%200%200%201-32.907637%200z'%20fill='%232c2c2c'%20p-id='7756'%3e%3c/path%3e%3cpath%20d='M724.293818%20376.738909L658.478545%20310.923636a23.272727%2023.272727%200%200%201%2032.907637-32.907636l49.384727%2049.338182%20115.153455-115.153455a23.319273%2023.319273%200%200%201%2033.093818%2032.861091l-131.816727%20131.677091a23.272727%2023.272727%200%200%201-32.907637%200z'%20fill='%232c2c2c'%20p-id='7757'%3e%3c/path%3e%3cpath%20d='M370.036364%20530.385455a172.218182%20172.218182%200%200%201-172.218182-172.218182%20172.218182%20172.218182%200%200%201%20172.218182-172.218182%20172.218182%20172.218182%200%200%201%20172.218181%20172.218182%20172.218182%20172.218182%200%200%201-172.218181%20172.218182z%20m0-288.349091a116.363636%20116.363636%200%200%200-116.363637%20116.363636%20116.363636%20116.363636%200%200%200%20116.363637%20116.363636%20116.363636%20116.363636%200%200%200%20116.363636-116.363636%20116.363636%20116.363636%200%200%200-116.363636-116.363636z'%20fill='%232c2c2c'%20p-id='7758'%3e%3c/path%3e%3cpath%20d='M198.749091%20814.312727H139.589818a378.088727%20378.088727%200%200%201%2075.264-206.848A202.845091%20202.845091%200%200%201%20372.363636%20523.170909a202.798545%20202.798545%200%200%201%20157.416728%2084.247273%20378.088727%20378.088727%200%200%201%2075.264%20206.801454h-59.159273a337.361455%20337.361455%200%200%200-55.482182-161.652363%20148.107636%20148.107636%200%200%200-118.085818-70.795637%20148.014545%20148.014545%200%200%200-118.085818%2070.795637%20337.594182%20337.594182%200%200%200-55.528728%20161.652363z'%20fill='%232c2c2c'%20p-id='7759'%3e%3c/path%3e%3c/svg%3e",JLe=(e,t)=>n=>{const r=t.createShape({type:"bpmn:UserTask"}),i=r.businessObject;i.set("name","创建多人签收节点"),i.set("activiti:assignee","${counterReceiveAssignee}"),ps(r,{name:Sa,value:pK}),PLe(r),e.start(n,r,void 0)},QLe=(e,t)=>{const n=JLe(e,t);return{"multi-sign-receipt-user":{group:"customnode",title:"多人签收节点",imageUrl:XLe,action:{click:n,dragstart:n}}}},eBe=d.defineComponent({__name:"property",setup(e){return(t,n)=>(d.openBlock(),d.createBlock(BY,{label:"多人签收配置"}))}}),tBe="data:image/svg+xml,%3csvg%20t='1709879234957'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='4570'%20width='30'%20height='30'%3e%3cpath%20d='M1016.904408%20870.092348a150.623161%20150.623161%200%200%200-124.661452-148.304141V505.497194a25.565779%2025.565779%200%200%200%200-2.205897v-1.018107a25.452656%2025.452656%200%200%200-25.452656-25.452655H520.577619V303.459668%20302.328438a150.623161%20150.623161%200%201%200-51.866857%200v174.60522H154.68155a25.452656%2025.452656%200%200%200-25.452656%2025.452655v0.961545a25.565779%2025.565779%200%200%200%200%202.205897v216.291013a150.623161%20150.623161%200%201%200%2051.866857%200V511.605831h659.280348v210.182376a150.623161%20150.623161%200%201%200%20176.471747%20148.304141zM494.61591%20252.554356a98.699743%2098.699743%200%201%201%200-197.399487%2098.699743%2098.699743%200%200%201%200%20197.399487z%20m-339.425307%20518.838249a98.699743%2098.699743%200%201%201%200%20197.399487%2098.699743%2098.699743%200%200%201%200-197.399487z%20m809.790387%2098.699743a98.699743%2098.699743%200%201%201-197.342925%200%2098.699743%2098.699743%200%200%201%20197.399486%200z'%20p-id='4571'%20fill='%232c2c2c'%3e%3c/path%3e%3c/svg%3e",nBe=(e,t)=>n=>{const r=t.createShape({type:"bpmn:ExclusiveGateway"});ps(r,{name:Sa,value:vK}),e.start(n,r,void 0)},rBe=(e,t)=>{const n=nBe(e,t);return{"leave-gateway":{group:"customnode",title:"条件节点",imageUrl:tBe,action:{click:n,dragstart:n}}}},FY=d.defineComponent({__name:"ConditionValueCreator",props:{expr:{type:Object,required:!0},label:{type:String,default:"配置"}},emits:["update:expr"],setup(e,{emit:t}){const n=e,r=d.ref({...AAe,...n.expr}),i=IAe(),o=d.computed(()=>{var c;switch(((c=i.find(u=>u.value===r.value.taskDefKey))==null?void 0:c.type)||""){case sm:return NAe;case V2:return DAe;default:return[]}}),a=t,s=l=>{a("update:expr",l)};return d.watch(r.value,(l,c)=>{l.taskDefKey!==(c==null?void 0:c.taskDefKey)&&(l.taskOutputKey=""),s(d.toRaw(l))},{immediate:!0}),(l,c)=>{const u=d.resolveComponent("n-select"),f=d.resolveComponent("n-input"),h=d.resolveComponent("n-dynamic-input"),p=d.resolveComponent("n-flex");return d.openBlock(),d.createBlock(p,{wrap:!1},{default:d.withCtx(()=>[d.createVNode(u,{value:r.value.conditionValueType,"onUpdate:value":c[0]||(c[0]=m=>r.value.conditionValueType=m),placeholder:"值类型",options:d.unref(_K),onKeydown:c[1]||(c[1]=d.withKeys(d.withModifiers(()=>{},["prevent"]),["enter"]))},null,8,["value","options"]),r.value.conditionValueType===d.unref(Ea).STRING?(d.openBlock(),d.createBlock(f,{key:0,value:r.value.stringValue,"onUpdate:value":c[2]||(c[2]=m=>r.value.stringValue=m),placeholder:"请输入",onKeydown:c[3]||(c[3]=d.withKeys(d.withModifiers(()=>{},["prevent"]),["enter"]))},null,8,["value"])):d.createCommentVNode("",!0),r.value.conditionValueType===d.unref(Ea).NUMBER?(d.openBlock(),d.createBlock(f,{key:1,value:r.value.numberValue,"onUpdate:value":c[4]||(c[4]=m=>r.value.numberValue=m),placeholder:"请输入",onKeydown:c[5]||(c[5]=d.withKeys(d.withModifiers(()=>{},["prevent"]),["enter"]))},null,8,["value"])):d.createCommentVNode("",!0),r.value.conditionValueType===d.unref(Ea).STRING_LIST?(d.openBlock(),d.createBlock(h,{key:2,value:r.value.stringValueList,"onUpdate:value":c[6]||(c[6]=m=>r.value.stringValueList=m),placeholder:"请输入值",min:1},null,8,["value"])):d.createCommentVNode("",!0),r.value.conditionValueType===d.unref(Ea).TASK_OUTPUT?(d.openBlock(),d.createBlock(u,{key:3,style:{width:"128px"},value:r.value.taskDefKey,"onUpdate:value":c[7]||(c[7]=m=>r.value.taskDefKey=m),options:d.unref(i),placeholder:"请选择节点"},null,8,["value","options"])):d.createCommentVNode("",!0),r.value.conditionValueType===d.unref(Ea).TASK_OUTPUT?(d.openBlock(),d.createBlock(u,{key:4,style:{width:"128px"},value:r.value.taskOutputKey,"onUpdate:value":c[8]||(c[8]=m=>r.value.taskOutputKey=m),options:o.value,placeholder:"请选择属性"},null,8,["value","options"])):d.createCommentVNode("",!0)]),_:1})}}}),iBe={class:"user-selector-container"},oBe=d.createElementVNode("p",null,"左值",-1),aBe=d.createElementVNode("p",null,"操作",-1),sBe=d.createElementVNode("p",null,"右值",-1),lBe=d.defineComponent({__name:"GatewayConditionSelector",props:{condition:{type:Object,required:!0},label:{type:String,default:"配置"},dialogTitle:{type:String,default:"条件配置"}},emits:["update:condition","on-ok"],setup(e,{emit:t}){const n=e,{condition:r,label:i}=d.toRefs(n),o=t,a=w=>{o("update:condition",w)},s=d.ref(!1),l=()=>{s.value=!0},c=d.ref(!1),u=d.ref(1e3),f=d.ref(600),h=d.computed(()=>({width:`${u.value}px`,height:`${f.value}px`})),p=d.ref(d.markRaw(pu));function m(){c.value=!c.value,c.value?(u.value=window.innerWidth,f.value=window.innerHeight,p.value=K2):(u.value=1e3,f.value=600,p.value=pu)}const b=d.computed(()=>{const w=T0(v$).map(R0),y=T0(g$).map(R0);return w.concat(y)}),v=d.computed(()=>kK(r.value)),g=()=>{a(r.value),o("on-ok",r.value),s.value=!1},x=()=>d.createVNode("div",{class:"json-dialog-title-container"},[d.createVNode("span",null,[n.dialogTitle]),d.createVNode("span",null,[d.createVNode(p.value,{onClick:m,class:"edit-icon"},null)])]);return(w,y)=>{const C=d.resolveComponent("n-gi"),_=d.resolveComponent("n-select"),S=d.resolveComponent("n-grid"),E=d.resolveComponent("n-flex"),$=d.resolveComponent("n-tab-pane"),k=d.resolveComponent("n-form-item"),P=d.resolveComponent("n-switch"),T=d.resolveComponent("n-tabs"),j=d.resolveComponent("n-alert"),M=d.resolveComponent("n-form"),B=d.resolveComponent("n-button"),V=d.resolveComponent("n-modal");return d.openBlock(),d.createElementBlock(d.Fragment,null,[d.createVNode(V,{class:"gateway-condition-selector-modal",show:s.value,"onUpdate:show":y[8]||(y[8]=R=>s.value=R),"mask-closable":!1,preset:"dialog",title:x,"show-icon":!1,style:d.normalizeStyle(h.value)},{action:d.withCtx(()=>[d.createVNode(B,{size:"small",type:"info",onClick:g},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(w.$t("panel.confirm")),1)]),_:1})]),default:d.withCtx(()=>[d.createElementVNode("div",iBe,[d.createVNode(M,{"label-placement":"left","label-width":"auto","require-mark-placement":"right-hanging",size:"small",style:{marginTop:"10px"}},{default:d.withCtx(()=>[d.createVNode(T,{type:"line",animated:"",value:d.unref(r).conditionType,"onUpdate:value":y[7]||(y[7]=R=>d.unref(r).conditionType=R)},{default:d.withCtx(()=>[d.createVNode($,{name:d.unref(T6)[0].value,tab:d.unref(T6)[0].label},{default:d.withCtx(()=>[d.createVNode(S,{"x-gap":"12",cols:24},{default:d.withCtx(()=>[d.createVNode(C,{span:10},{default:d.withCtx(()=>[oBe,d.createVNode(FY,{expr:d.unref(r).operatorCondition.left,"onUpdate:expr":y[0]||(y[0]=R=>d.unref(r).operatorCondition.left=R)},null,8,["expr"])]),_:1}),d.createVNode(C,{span:4},{default:d.withCtx(()=>[aBe,d.createVNode(_,{value:d.unref(r).operatorCondition.operator,"onUpdate:value":y[1]||(y[1]=R=>d.unref(r).operatorCondition.operator=R),placeholder:"请选择操作类型",options:d.unref(CK),onKeydown:y[2]||(y[2]=d.withKeys(d.withModifiers(()=>{},["prevent"]),["enter"]))},null,8,["value","options"])]),_:1}),d.createVNode(C,{span:10},{default:d.withCtx(()=>[sBe,d.createVNode(FY,{expr:d.unref(r).operatorCondition.right,"onUpdate:expr":y[3]||(y[3]=R=>d.unref(r).operatorCondition.right=R)},null,8,["expr"])]),_:1})]),_:1}),d.createVNode(E,{wrap:!1})]),_:1},8,["name","tab"]),d.createVNode($,{name:d.unref(T6)[1].value,tab:d.unref(T6)[1].label},{default:d.withCtx(()=>[d.createVNode(k,{label:"节点 ID"},{default:d.withCtx(()=>[d.createVNode(_,{value:d.unref(r).approveCondition.approveTaskDefKey,"onUpdate:value":y[4]||(y[4]=R=>d.unref(r).approveCondition.approveTaskDefKey=R),placeholder:"请选择审批节点",options:b.value,onKeydown:y[5]||(y[5]=d.withKeys(d.withModifiers(()=>{},["prevent"]),["enter"]))},null,8,["value","options"])]),_:1}),d.createVNode(k,{label:"是否审批通过"},{default:d.withCtx(()=>[d.createVNode(P,{round:!1,value:d.unref(r).approveCondition.targetApproveStatus,"onUpdate:value":y[6]||(y[6]=R=>d.unref(r).approveCondition.targetApproveStatus=R)},null,8,["value"])]),_:1})]),_:1},8,["name","tab"])]),_:1},8,["value"]),d.createVNode(j,{class:"preview-alert",title:"结果预览",type:"info"},{default:d.withCtx(()=>[d.createElementVNode("span",null,d.toDisplayString(v.value),1)]),_:1})]),_:1})])]),_:1},8,["show","style"]),d.createVNode(B,{type:"info",onClick:l},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(d.unref(i)),1)]),_:1})],64)}}}),cBe=["bpmn:Activity","bpmn:ExclusiveGateway","bpmn:InclusiveGateway","bpmn:ComplexGateway"],zY=[{label:"无条件( None )",value:"none"},{label:"默认路径( Default )",value:"default"},{label:"条件表达式( Expression )",value:"expression"},{label:"条件脚本( Script )",value:"script"}];function uBe(e){return zn(e,cBe)}function VY(e){return Q(e,"bpmn:Event")&&!!b$(e,"bpmn:ConditionalEventDefinition")}function dBe(e){return Q(e,"bpmn:StartEvent")}function fBe(e){return Q(e,"bpmn:SequenceFlow")&&uBe(e==null?void 0:e.source)||VY(e)}function hBe(e){if(pc(e))return pc(e).get("variableName")}function pBe(e,t){var i;const n=Zt(Ut),r=pc(e);r&&((i=n.modeling)==null||i.updateModdleProperties(e,r,{variableName:t||""}))}function mBe(e){if(pc(e))return pc(e).get("variableEvents")}function gBe(e,t){var i;const n=Zt(Ut),r=pc(e);r&&((i=n.modeling)==null||i.updateModdleProperties(e,r,{variableEvents:t||""}))}function vBe(e){var n,r;const t=gu(e);return t?t.get("language")===void 0?"expression":"script":((r=(n=e.source)==null?void 0:n.businessObject)==null?void 0:r.default)===e.businessObject?"default":"none"}function bBe(e,t){if(!t||t==="none"||t==="default")return hT(e),TBe(e,t==="default");const n={language:t==="script"?"":void 0},r=Q(e,"bpmn:SequenceFlow")?rt(e):pc(e),i=$0("bpmn:FormalExpression",n,r);hT(e,i)}function HY(e){const t=gu(e);if(t)return t.get("body")}function UY(e,t){const n=Q(e,"bpmn:SequenceFlow")?rt(e):pc(e),r=$0("bpmn:FormalExpression",{body:t},n);hT(e,r)}function yBe(e){const t=gu(e);return console.log(t),t.get("body")!==void 0?"inline":t.get(`${Ot}:resource`)!==void 0?"external":"none"}function xBe(e,t){var i;const n=Zt(Ut);let r;(!t||t==="none")&&(r={body:void 0,[`${Ot}:resource`]:void 0}),t==="inline"&&(r={body:"",[`${Ot}:resource`]:void 0}),t==="external"&&(r={body:void 0,[`${Ot}:resource`]:""}),(i=n.modeling)==null||i.updateModdleProperties(e,gu(e),r)}function wBe(e){var t;return(t=gu(e))==null?void 0:t.get("language")}function CBe(e,t){var r;(r=Zt(Ut).modeling)==null||r.updateModdleProperties(e,gu(e),{language:t})}function _Be(e){var t;return(t=gu(e))==null?void 0:t.get("body")}function SBe(e,t){var r;(r=Zt(Ut).modeling)==null||r.updateModdleProperties(e,gu(e),{body:t})}function EBe(e){var t;return(t=gu(e))==null?void 0:t.get(`${Ot}:resource`)}function kBe(e,t){var r;(r=Zt(Ut).modeling)==null||r.updateModdleProperties(e,gu(e),{[`${Ot}:resource`]:t})}function $Be(e){return Q(e,"bpmn:SequenceFlow")?zY:zY.filter(t=>t.value!=="default")}function pc(e){return Q(e,"bpmn:Event")?b$(e,"bpmn:ConditionalEventDefinition"):!1}function gu(e){const t=rt(e);if(Q(t,"bpmn:SequenceFlow"))return t.get("conditionExpression");if(pc(t))return pc(t).get("condition")}function hT(e,t){var r,i;const n=Zt(Ut);Q(e,"bpmn:SequenceFlow")?(r=n.modeling)==null||r.updateProperties(e,{conditionExpression:t}):(i=n.modeling)==null||i.updateModdleProperties(e,pc(e),{condition:t})}function TBe(e,t){var r;(r=Zt(Ut).modeling)==null||r.updateProperties(e.source,{default:t?e:void 0})}const pT={conditionType:"OPERATOR",operatorCondition:{operator:"EQ",left:{},right:{}},approveCondition:{}},WY=e=>{const{conditionValueType:t}=e,n={conditionValueType:t};switch(t){case"EMPTY":case"CREATOR":break;case"NUMBER":n.numberValue=e.numberValue;break;case"STRING":n.stringValue=e.stringValue;break;case"STRING_LIST":n.stringValueList=e.stringValueList;break;case"TASK_OUTPUT":n.taskDefKey=e.taskDefKey,n.taskOutputKey=e.taskOutputKey;break}return n},RBe=e=>{const{left:t,right:n,operator:r}=e;return{operator:r,left:WY(t||{}),right:WY(n||{})}},PBe=e=>{const{conditionType:t,operatorCondition:n,approveCondition:r}=e,i={conditionType:t};switch(t){case lm.APPROVE:i.approveCondition=r;break;case lm.OPERATOR:i.operatorCondition=RBe(n);break}return i},OBe=e=>"${conditionService.isConditionMet(execution, '"+JSON.stringify(PBe(e))+"')}",qY=e=>{const t=HY(e),r=z6(t).args;if(r.length>=2){const i=aT(r[1]),o=JSON.parse(i.content||"{}");return{...pT,...o}}else return{...pT}},GY=(e,t)=>{UY(e,OBe(t))},jBe=d.defineComponent({__name:"GatewayLineProperty",props:{label:{type:String,default:"获取用户的配置"},getConditionValue:{type:Function,default:qY},updateConditionValue:{type:Function,default:GY}},setup(e){const t=e,n=d.ref(pT),r=d.computed(()=>kK(n.value)),i=Zt(Ut),o=()=>{n.value=t.getConditionValue(i.activeElement)},a=s=>{t.updateConditionValue(i.activeElement,s)};return Go(o),(s,l)=>{const c=d.resolveComponent("n-descriptions-item"),u=d.resolveComponent("n-descriptions"),f=d.resolveComponent("n-collapse-item");return d.openBlock(),d.createBlock(f,null,d.createSlots({header:d.withCtx(()=>[d.createVNode(Mo,{title:t.label},{default:d.withCtx(()=>[d.createVNode(d.unref(G2))]),_:1},8,["title"])]),default:d.withCtx(()=>[d.createElementVNode("div",null,[d.createVNode(lBe,{condition:n.value,"onUpdate:condition":l[0]||(l[0]=h=>n.value=h),onOnOk:a},null,8,["condition"]),d.createVNode(u,{"label-placement":"left",column:1,bordered:"",size:"small",style:{"margin-top":"10px"}},{default:d.withCtx(()=>[d.createVNode(c,null,{label:d.withCtx(()=>[d.createTextVNode(" 类型 ")]),default:d.withCtx(()=>[d.createTextVNode(" "+d.toDisplayString(n.value.conditionType),1)]),_:1}),d.createVNode(c,null,{label:d.withCtx(()=>[d.createTextVNode(" 条件描述 ")]),default:d.withCtx(()=>[d.createTextVNode(" "+d.toDisplayString(r.value),1)]),_:1})]),_:1})])]),_:2},[n.value.approveCondition||n.value.operatorCondition?{name:"header-extra",fn:d.withCtx(()=>[d.createVNode(ka)]),key:"0"}:void 0]),1024)}}}),MBe=d.defineComponent({__name:"property",setup(e){return(t,n)=>(d.openBlock(),d.createBlock(jBe,{label:"条件配置",getConditionValue:d.unref(qY),updateConditionValue:d.unref(GY)},null,8,["getConditionValue","updateConditionValue"]))}}),ABe="data:image/svg+xml,%3csvg%20t='1710226575946'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='24504'%20width='30'%20height='30'%3e%3cpath%20d='M512%20128a383.146667%20383.146667%200%200%201%20134.997333%2024.405333l-50.474666%2050.858667a320%20320%200%201%200%20225.109333%20227.626667l50.944-51.328C887.722667%20420.864%20896%20465.493333%20896%20512a384%20384%200%201%201-384-384z%20m386.56-13.994667l6.229333%205.802667a117.888%20117.888%200%200%201%200.341334%20166.4l-268.970667%20271.104a64%2064%200%200%201-27.818667%2016.426667l-179.712%2051.584a21.333333%2021.333333%200%200%201-26.368-26.410667l51.626667-180.053333a64%2064%200%200%201%2016.085333-27.392l269.184-271.36a116.906667%20116.906667%200%200%201%20159.402667-6.101334z%20m-113.962667%2051.2l-269.226666%20271.36-30.378667%20105.984%20105.728-30.293333%20268.970667-271.146667c19.498667-19.669333%2020.736-50.602667%203.754666-71.68l-4.053333-4.565333a52.906667%2052.906667%200%200%200-74.794667%200.341333z'%20fill='%232c2c2c'%20p-id='24505'%3e%3c/path%3e%3c/svg%3e",mT="workflowStatus",KY=e=>({name:mT,type:"expression",value:e}),NBe=(e,t)=>{cm(e,KY(t))},DBe=e=>(P0(e).find(i=>i.name===mT)||{}).expression||H2.COMPLETED,IBe=(e,t)=>{const n=d.toRaw(P0(e)),r=n.findIndex(i=>i.name===mT);r!==-1&&um(e,n[r],KY(t))},LBe=(e,t)=>n=>{const r=t.createShape({type:"bpmn:ServiceTask"}),i=r.businessObject;i.set("name","设置工作流状态"),i.set("activiti:delegateExpression","${setWorkflowStatus}"),ps(r,{name:Sa,value:bK}),NBe(r,H2.COMPLETED),e.start(n,r,void 0)},BBe=(e,t)=>{const n=LBe(e,t);return{"set-workflow-status":{group:"customnode",title:"设置工作流状态",imageUrl:ABe,action:{click:n,dragstart:n}}}},FBe=d.defineComponent({name:"EditItem",props:{label:{type:String,default:""},textAlign:{type:String,default:"right",validator:e=>["left","center","right"].includes(e)},labelWidth:{type:Number,default:80}},computed:{labelStyle(){return{width:`${this.labelWidth}px`,textAlign:this.textAlign}}}}),zBe={class:"edit-item"},VBe={class:"edit-item_content"};function HBe(e,t,n,r,i,o){return d.openBlock(),d.createElementBlock("div",zBe,[d.createElementVNode("div",{class:"edit-item_label",style:d.normalizeStyle(e.labelStyle)},d.toDisplayString(e.label)+":",5),d.createElementVNode("div",VBe,[d.renderSlot(e.$slots,"default")])])}const ci=va(FBe,[["render",HBe]]),UBe=d.defineComponent({__name:"WorkflowStatusProperty",props:{label:{type:String,default:"设置工作流状态"}},setup(e){const t=e,n=d.ref(""),r=Zt(Ut),i=()=>{n.value=DBe(r.activeElement)},o=a=>{IBe(r.activeElement,a)};return Go(i),(a,s)=>{const l=d.resolveComponent("n-select"),c=d.resolveComponent("n-collapse-item");return d.openBlock(),d.createBlock(c,null,{"header-extra":d.withCtx(()=>[d.createVNode(ka)]),header:d.withCtx(()=>[d.createVNode(Mo,{title:t.label},{default:d.withCtx(()=>[d.createVNode(d.unref(G2))]),_:1},8,["title"])]),default:d.withCtx(()=>[d.createElementVNode("div",null,[d.createVNode(ci,{key:"status",label:"工作流状态","label-width":120},{default:d.withCtx(()=>[d.createVNode(l,{value:n.value,"onUpdate:value":[s[0]||(s[0]=u=>n.value=u),o],options:d.unref(LAe)},null,8,["value","options"])]),_:1})])]),_:1})}}}),WBe=d.defineComponent({__name:"property",setup(e){return(t,n)=>(d.openBlock(),d.createBlock(UBe,{label:"工作流状态的配置",disableTitle:!0}))}}),qBe="data:image/svg+xml,%3csvg%20t='1711077139435'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='6912'%20width='30'%20height='30'%3e%3cpath%20d='M816%20816m-32%200a32%2032%200%201%200%2064%200%2032%2032%200%201%200-64%200Z'%20fill='%232c2c2c'%20p-id='6913'%3e%3c/path%3e%3cpath%20d='M512%20968a456%20456%200%201%201%20395.76-229.36%2032%2032%200%200%201-55.52-32%20392%20392%200%201%200-145.44%20145.44%2032%2032%200%200%201%2032%2055.52A456%20456%200%200%201%20512%20968z'%20fill='%232c2c2c'%20p-id='6914'%3e%3c/path%3e%3cpath%20d='M576%20672H448a96%2096%200%200%201-96-96V448a96%2096%200%200%201%2096-96h128a96%2096%200%200%201%2096%2096v128a96%2096%200%200%201-96%2096zM448%20416a32%2032%200%200%200-32%2032v128a32%2032%200%200%200%2032%2032h128a32%2032%200%200%200%2032-32V448a32%2032%200%200%200-32-32H448z'%20fill='%232c2c2c'%20p-id='6915'%3e%3c/path%3e%3c/svg%3e",GBe=(e,t,n,r)=>{X2(e,{event:t,type:"delegateExpression",delegateExpression:n,fields:r},"ExecutionListener")},KBe=e=>{GBe(e,"start","${workflowCompleteListener}")},YBe=(e,t)=>n=>{const r=t.createShape({type:"bpmn:EndEvent"});r.businessObject.set("name","结束节点"),ps(r,{name:Sa,value:TAe}),KBe(r),e.start(n,r,void 0)},ZBe=(e,t)=>{const n=YBe(e,t);return{"leave-end":{group:"customnode",title:"结束节点",imageUrl:qBe,action:{click:n,dragstart:n}}}},XBe="data:image/svg+xml,%3csvg%20t='1711096750865'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='8155'%20width='30'%20height='30'%3e%3cpath%20d='M953.274192%20628.793006l-21.366633-21.325701c-5.910617-5.880941-15.507182-5.880941-21.391193%200l-32.075533%2031.949666%2042.75885%2042.652426%2032.075533-31.949666C959.186855%20644.23879%20959.186855%20634.704646%20953.274192%20628.793006zM728.751602%20788.699949l-14.251585%2056.841589%2056.979736-14.21884L728.751602%20788.699949zM739.51576%20778.022773l42.72815%2042.621726%20128.300085-127.927601-42.756803-42.652426L739.51576%20778.022773zM839.594083%20865.172645c0%2038.442544-27.164686%2052.501748-65.626673%2052.501748L157.075455%20917.674393c-16.229636%200.966001-52.501748-33.390481-52.501748-52.501748L104.573707%20156.403143c1.426489-19.86135%2034.018791-52.501748%2052.501748-52.501748l616.891955%200c30.474059-0.665149%2065.626673%2031.57002%2065.626673%2052.501748L839.594083%20589.540004c0%2010.377348%2039.375799%2010.377348%2039.375799%200L878.969882%20169.528068c0-53.803393-47.801702-105.002472-101.634772-105.002472L162.815179%2064.525596c-53.827953%200-97.617271%2043.767829-97.617271%2097.571223l0%20697.383174c0%2053.80237%2043.789319%2097.570199%2097.617271%2097.570199l614.519931%200c53.834092%200%20101.634772-38.075177%20101.634772-91.877547C878.969882%20846.096171%20839.594083%20846.096171%20839.594083%20865.172645zM252.739235%20240.400209c-5.16565-5.158487-12.421914-8.162914-19.723204-8.162914-7.30129%200-14.557554%203.004427-19.718087%208.162914-5.164626%205.16258-8.172123%2012.413727-8.172123%2019.713994%200%207.297197%203.007497%2014.549368%208.172123%2019.711947%205.160533%205.15951%2012.416797%208.162914%2019.718087%208.162914%207.30129%200%2014.557554-3.003404%2019.723204-8.162914%205.164626-5.16258%208.170077-12.413727%208.170077-19.711947C260.909311%20252.813936%20257.903861%20245.562788%20252.739235%20240.400209zM629.588115%20235.154741%20288.328801%20235.154741c-15.683191%200-15.244192%2038.895869%200.440022%2038.895869l340.819293%200.479931C645.457548%20274.531564%20645.457548%20235.154741%20629.588115%20235.154741zM252.739235%20342.627475c-5.16565-5.158487-12.421914-8.162914-19.723204-8.162914-7.30129%200-14.557554%203.004427-19.718087%208.162914-5.164626%205.16258-8.172123%2012.413727-8.172123%2019.712971%200%207.299243%203.007497%2014.550391%208.172123%2019.712971%205.160533%205.15951%2012.416797%208.163937%2019.718087%208.163937%207.30129%200%2014.557554-3.004427%2019.723204-8.163937%205.164626-5.16258%208.170077-12.413727%208.170077-19.712971C260.909311%20355.041202%20257.903861%20347.789031%20252.739235%20342.627475zM629.588115%20340.158237%20288.328801%20340.158237c-15.868409%200-15.868409%2039.375799%200%2039.375799l341.259314%200C645.457548%20379.534036%20645.457548%20340.158237%20629.588115%20340.158237zM252.739235%20444.853717c-5.16565-5.158487-12.421914-8.162914-19.723204-8.162914-7.30129%200-14.557554%203.004427-19.718087%208.162914-5.164626%205.16258-8.172123%2012.413727-8.172123%2019.712971%200%207.299243%203.007497%2014.550391%208.172123%2019.713994%205.160533%205.16258%2012.416797%208.162914%2019.718087%208.162914%207.30129%200%2014.557554-3.000334%2019.723204-8.162914%205.164626-5.163603%208.170077-12.415774%208.170077-19.713994C260.909311%20457.267445%20257.903861%20450.016297%20252.739235%20444.853717zM233.016031%20538.88737c-7.30129%200-14.557554%203.004427-19.718087%208.167007-5.164626%205.158487-8.172123%2012.413727-8.172123%2019.712971s3.007497%2014.552437%208.172123%2019.708877c5.160533%205.163603%2012.416797%208.167007%2019.718087%208.167007%207.30129%200%2014.557554-3.003404%2019.723204-8.167007%205.164626-5.15644%208.170077-12.409634%208.170077-19.708877s-3.00545-14.554484-8.170077-19.712971C247.573585%20541.891797%20240.317321%20538.88737%20233.016031%20538.88737zM629.588115%20445.160709%20288.328801%20445.160709c-15.683191%200-15.244192%2038.895869%200.440022%2038.895869l340.819293%200.479931C645.457548%20484.537532%20645.457548%20445.160709%20629.588115%20445.160709zM629.588115%20550.164205%20288.328801%20550.164205c-15.868409%200-15.868409%2039.375799%200%2039.375799l341.259314%200C645.457548%20589.540004%20645.457548%20550.164205%20629.588115%20550.164205z'%20fill='%232c2c2c'%20p-id='8156'%3e%3c/path%3e%3c/svg%3e",JBe=(e,t)=>n=>{const r=t.createShape({type:"bpmn:UserTask"}),i=r.businessObject;i.set("name","创建整改节点"),i.set("activiti:assignee",JSON.stringify(hu)),ps(r,{name:Sa,value:gK}),HLe(r),e.start(n,r,void 0)},QBe=(e,t)=>{const n=JBe(e,t);return{"reform-user":{group:"customnode",title:"整改节点",imageUrl:XBe,action:{click:n,dragstart:n}}}},eFe=d.defineComponent({__name:"property",setup(e){const t=d.ref("整改配置");return(n,r)=>(d.openBlock(),d.createBlock(Y2,{label:t.value,getUserValue:d.unref(dT),updateUserValue:d.unref(fT)},null,8,["label","getUserValue","updateUserValue"]))}}),tFe=(e,t)=>({...ZAe(e,t),...HIe(e,t),...QIe(e,t),...IIe(e,t),...rLe(e,t),...sLe(e,t),...ALe(e,t),...WLe(e,t),...YLe(e,t),...QLe(e,t),...QBe(e,t),...rBe(e,t),...BBe(e,t),...ZBe(e,t)}),nFe=e=>e?!!c$(e).find(r=>r.name===Sa):!1,YY=e=>{if(!e)return!1;const n=c$(e).find(r=>r.name===Sa);return n?n.value:""},rFe=e=>{const t=e.businessObject;let n=YY(e);const r=[];if(Q(t,"bpmn:SequenceFlow")){const o=t.sourceRef;Q(o,"bpmn:ExclusiveGateway")&&(n=YY(o))}switch(n){case sm:r.push(AIe);break;case p$:r.push(ZIe);break;case m$:r.push(eLe);break;case V2:r.push(LIe);break;case f$:r.push(iLe);break;case h$:r.push(lLe);break;case g$:r.push(LLe);break;case v$:r.push(qLe);break;case mK:r.push(ZLe);break;case pK:r.push(eBe);break;case gK:r.push(eFe);break;case vK:Q(t,"bpmn:SequenceFlow")&&r.push(MBe);break;case bK:r.push(WBe);break;default:n&&console.error(`未知的业务类型${n},无法获取右侧属性面板`);break}return{isBizCustom:!!n,propComponents:r}};Hs.createPinia();const Zt=Hs.defineStore("modeler",()=>{const e=d.shallowRef(void 0),t=d.shallowRef(void 0),n=d.shallowRef(void 0),r=d.shallowRef(void 0),i=d.ref(void 0),o=d.shallowRef(void 0),a=d.ref(void 0);return{modeler:t,moddle:n,modeling:e,canvas:r,elementRegistry:i,activeElement:o,activeElementId:a,setModeler:c=>{t.value=c,c?(e.value=c.get("modeling"),n.value=c.get("moddle"),r.value=c.get("canvas"),i.value=c.get("elementRegistry")):e.value=n.value=r.value=i.value=void 0},setElement:c=>{const u=nFe(c);o.value=d.toRaw(c),a.value=c==null?void 0:c.id}}});function iFe(e){if(!zn(e,["bpmn:Collaboration","bpmn:DataAssociation","bpmn:Association"])){if(Q(e,"bpmn:TextAnnotation"))return e.businessObject.text;if(Q(e,"bpmn:Group")){const t=rt(e),n=t==null?void 0:t.categoryValueRef;return n==null?void 0:n.value}return e==null?void 0:e.businessObject.name}}function oFe(e,t){var i,o,a,s;const n=Zt(Ut),r=(i=n.modeler)==null?void 0:i.get("bpmnFactory");if(!zn(e,["bpmn:Collaboration","bpmn:DataAssociation","bpmn:Association"])){if(Q(e,"bpmn:TextAnnotation"))return(o=n.modeling)==null?void 0:o.updateModdleProperties(e,e.businessObject,{text:t});if(Q(e,"bpmn:Group")){const l=rt(e);return l.categoryValueRef||sFe(l,canvas==null?void 0:canvas.getRootElement(),r),(a=n.modeling)==null?void 0:a.updateLabel(e,t)}(s=n.modeling)==null||s.updateModdleProperties(e,e.businessObject,{name:t})}}function aFe(e,t){const n=t.create("bpmn:CategoryValue"),r=t.create("bpmn:Category",{categoryValue:[n]});return ao(e.get("rootElements"),r),rt(r).$parent=e,rt(n).$parent=r,n}function sFe(e,t,n){const r=rt(t).$parent;e.categoryValueRef=aFe(r,n)}const lFe=/\s/,cFe=/^([a-z][\w-.]*:)?[a-z_][\w-.]*$/i,uFe=/^[a-z_][\w-.]*$/i;function dFe(e){return lFe.test(e)}function fFe(e,t){const n=e.$model.ids.assigned(t),r=n&&n!==e;return t?r?"ID 必须是唯一的":hFe(t):"ID 不能为空."}function hFe(e){if(dFe(e))return"ID 不能包含空格";if(!uFe.test(e))return cFe.test(e)?"ID 不能包含前缀":"ID 必须符合 BPMN 规范"}function ZY(e,t){var o;const n=fFe(e.businessObject,t),r=e9();if(n&&n.length)return r.warning(n);(o=Zt(Ut).modeling)==null||o.updateProperties(e,{id:t})}function pFe(e){return!!e.businessObject.isExecutable}function mFe(e,t){var r;(r=Zt(Ut).modeling)==null||r.updateProperties(e,{isExecutable:t})}function gFe(e){return e.businessObject.get(`${Ot}:versionTag`)}function vFe(e,t){var r;(r=Zt(Ut).modeling)==null||r.updateProperties(e,{[`${Ot}:versionTag`]:t})}const bFe=d.defineComponent({__name:"ElementGenerations",setup(e){const t=e9(),n=d.ref(""),r=d.ref(""),i=d.ref(""),o=d.ref(!0),a=d.ref(!1),s=Zt(Ut);function l(p){a.value=!!s.activeElement&&s.activeElement.type==="bpmn:Process",n.value=s.activeElementId,r.value=iFe(s.activeElement)||"",a.value&&(o.value=pFe(s.activeElement),i.value=gFe(s.activeElement)||"")}function c(p){oFe(s.activeElement,p)}function u(p){ZY(s.activeElement,p)}function f(p){/((\d|([1-9](\d*))).){2}(\d|([1-9](\d*)))/.test(p)?vFe(s.activeElement,p):t.error("版本号必须符合语义化版本2.0.0 要点")}function h(p){mFe(s.activeElement,p)}return Go(l),(p,m)=>{const b=d.resolveComponent("n-input"),v=d.resolveComponent("n-switch"),g=d.resolveComponent("n-collapse-item");return d.openBlock(),d.createBlock(g,{name:"base-info"},d.createSlots({header:d.withCtx(()=>[d.createVNode(Mo,{title:p.$t("panel.general")},{default:d.withCtx(()=>[d.createVNode(d.unref(NDe))]),_:1},8,["title"])]),default:d.withCtx(()=>[d.createVNode(ci,{label:p.$t("panel.id")},{default:d.withCtx(()=>[d.createVNode(b,{value:n.value,"onUpdate:value":m[0]||(m[0]=x=>n.value=x),maxlength:"32",onChange:u},null,8,["value"])]),_:1},8,["label"]),d.createVNode(ci,{label:p.$t("panel.name")},{default:d.withCtx(()=>[d.createVNode(b,{value:r.value,"onUpdate:value":m[1]||(m[1]=x=>r.value=x),maxlength:"20",onChange:c},null,8,["value"])]),_:1},8,["label"]),a.value?(d.openBlock(),d.createElementBlock(d.Fragment,{key:0},[d.createVNode(ci,{key:"version",label:p.$t("panel.version")},{default:d.withCtx(()=>[d.createVNode(b,{value:i.value,"onUpdate:value":m[2]||(m[2]=x=>i.value=x),maxlength:"20",onChange:f},null,8,["value"])]),_:1},8,["label"]),d.createVNode(ci,{key:"executable",label:p.$t("panel.executable")},{default:d.withCtx(()=>[d.createVNode(v,{value:o.value,"onUpdate:value":[m[3]||(m[3]=x=>o.value=x),h]},null,8,["value"])]),_:1},8,["label"])],64)):d.createCommentVNode("",!0)]),_:2},[r.value||i.value||o.value?{name:"header-extra",fn:d.withCtx(()=>[d.createVNode(ka)]),key:"0"}:void 0]),1024)}}});function gT(e){const t=e==null?void 0:e.businessObject,n=t&&JY(t.get("documentation"));return n&&n.text}function yFe(e,t){var a,s,l,c;const n=Zt(Ut),r=(a=n.modeler)==null?void 0:a.get("bpmnFactory"),i=e.businessObject,o=JY(i&&i.get("documentation"));if(o)return t?(s=n.modeling)==null?void 0:s.updateModdleProperties(e,o,{text:t}):(l=n.modeling)==null?void 0:l.updateModdleProperties(e,i,{documentation:Mv(i.get("documentation"),o)});if(t){const u=r==null?void 0:r.create("bpmn:Documentation",{text:t});return(c=n.modeling)==null?void 0:c.updateModdleProperties(e,i,{documentation:[...i.get("documentation"),u]})}}const XY="text/plain";function JY(e){return e.find(function(t){return(t.textFormat||XY)===XY})}const xFe=d.defineComponent({__name:"ElementDocumentations",setup(e){const t=d.ref(""),n=Zt(Ut),{activeElementId:r}=Hs.storeToRefs(n);d.watch(()=>r,()=>{t.value=gT(n.activeElement)||""},{immediate:!0}),d.onMounted(()=>{t.value=gT(n.activeElement)||"",af.on("element-update",()=>{t.value=gT(n.activeElement)||""})});const i=o=>{yFe(n.activeElement,o)};return(o,a)=>{const s=d.resolveComponent("n-input"),l=d.resolveComponent("n-collapse-item");return d.openBlock(),d.createBlock(l,{name:"element-documentations"},d.createSlots({header:d.withCtx(()=>[d.createVNode(Mo,{title:o.$t("panel.documentationSettings")},{default:d.withCtx(()=>[d.createVNode(d.unref(N6))]),_:1},8,["title"])]),default:d.withCtx(()=>[d.createVNode(ci,{label:o.$t("panel.documentationBody")},{default:d.withCtx(()=>[d.createVNode(s,{value:t.value,"onUpdate:value":a[0]||(a[0]=c=>t.value=c),type:"textarea",onChange:i},null,8,["value"])]),_:1},8,["label"])]),_:2},[t.value?{name:"header-extra",fn:d.withCtx(()=>[d.createVNode(ka)]),key:"0"}:void 0]),1024)}}});function Qr(e){return Array.isArray(e)}function Ti(e){return e!==null&&typeof e=="object"&&(e.constructor===void 0||e.constructor.name==="Object")}function QY(e){return e&&typeof e=="object"?e.op==="add":!1}function eZ(e){return e&&typeof e=="object"?e.op==="remove":!1}function vT(e){return e&&typeof e=="object"?e.op==="replace":!1}function bT(e){return e&&typeof e=="object"?e.op==="copy":!1}function mm(e){return e&&typeof e=="object"?e.op==="move":!1}function wFe(e,t){return JSON.stringify(e)===JSON.stringify(t)}function CFe(e,t){return e===t}function tZ(e){return e.slice(0,e.length-1)}function _Fe(e){return e[e.length-1]}function SFe(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:CFe;if(e.length<t.length)return!1;for(let r=0;r<t.length;r++)if(!n(e[r],t[r]))return!1;return!0}function nZ(e){return typeof e=="object"&&e!==null}function yT(e){if(Qr(e)){const t=e.slice();return Object.getOwnPropertySymbols(e).forEach(n=>{t[n]=e[n]}),t}else if(Ti(e)){const t={...e};return Object.getOwnPropertySymbols(e).forEach(n=>{t[n]=e[n]}),t}else return e}function xT(e,t,n){if(e[t]===n)return e;{const r=yT(e);return r[t]=n,r}}function Ht(e,t){let n=e,r=0;for(;r<t.length;)Ti(n)?n=n[t[r]]:Qr(n)?n=n[parseInt(t[r])]:n=void 0,r++;return n}function mc(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(t.length===0)return n;const i=t[0],o=mc(e?e[i]:void 0,t.slice(1),n,r);if(Ti(e)||Qr(e))return xT(e,i,o);if(r){const a=EFe.test(i)?[]:{};return a[i]=o,a}else throw new Error("Path does not exist")}const EFe=/^\d+$/;function rZ(e,t,n){if(t.length===0)return n(e);if(!nZ(e))throw new Error("Path doesn't exist");const r=t[0],i=rZ(e[r],t.slice(1),n);return xT(e,r,i)}function wT(e,t){if(t.length===0)return e;if(!nZ(e))throw new Error("Path does not exist");if(t.length===1){const i=t[0];if(i in e){const o=yT(e);return Qr(o)&&o.splice(parseInt(i),1),Ti(o)&&delete o[i],o}else return e}const n=t[0],r=wT(e[n],t.slice(1));return xT(e,n,r)}function CT(e,t,n){const r=t.slice(0,t.length-1),i=t[t.length-1];return rZ(e,r,o=>{if(!Array.isArray(o))throw new TypeError("Array expected at path "+JSON.stringify(r));const a=yT(o);return a.splice(parseInt(i),0,n),a})}function Ml(e,t){return e===void 0?!1:t.length===0?!0:e===null?!1:Ml(e[t[0]],t.slice(1))}function gc(e){const t=e.split("/");return t.shift(),t.map(n=>n.replace(/~1/g,"/").replace(/~0/g,"~"))}function Mt(e){return e.map(iZ).join("")}function iZ(e){return"/"+String(e).replace(/~/g,"~0").replace(/\//g,"~1")}function oZ(e,t){return e+iZ(t)}function U6(e,t){return e.startsWith(t)&&(e.length===t.length||e[t.length]==="/")}function vc(e,t,n){let r=e;for(let i=0;i<t.length;i++){MFe(t[i]);let o=t[i];if(n&&n.before){const l=n.before(r,o);if(l!==void 0){if(l.document!==void 0&&(r=l.document),l.json!==void 0)throw new Error('Deprecation warning: returned object property ".json" has been renamed to ".document"');l.operation!==void 0&&(o=l.operation)}}const a=r,s=vu(r,o.path);if(o.op==="add")r=TFe(r,s,o.value);else if(o.op==="remove")r=$Fe(r,s);else if(o.op==="replace")r=kFe(r,s,o.value);else if(o.op==="copy")r=RFe(r,s,_T(o.from));else if(o.op==="move")r=PFe(r,s,_T(o.from));else if(o.op==="test")OFe(r,s,o.value);else throw new Error("Unknown JSONPatch operation "+JSON.stringify(o));if(n&&n.after){const l=n.after(r,o,a);l!==void 0&&(r=l)}}return r}function kFe(e,t,n){return mc(e,t,n)}function $Fe(e,t){return wT(e,t)}function TFe(e,t,n){return J2(e,t)?CT(e,t,n):mc(e,t,n)}function RFe(e,t,n){const r=Ht(e,n);if(J2(e,t))return CT(e,t,r);{const i=Ht(e,n);return mc(e,t,i)}}function PFe(e,t,n){const r=Ht(e,n),i=wT(e,n);return J2(i,t)?CT(i,t,r):mc(i,t,r)}function OFe(e,t,n){if(n===void 0)throw new Error(`Test failed: no value provided (path: "${Mt(t)}")`);if(!Ml(e,t))throw new Error(`Test failed: path not found (path: "${Mt(t)}")`);const r=Ht(e,t);if(!wFe(r,n))throw new Error(`Test failed, value differs (path: "${Mt(t)}")`)}function J2(e,t){if(t.length===0)return!1;const n=Ht(e,tZ(t));return Array.isArray(n)}function jFe(e,t){if(_Fe(t)!=="-")return t;const n=tZ(t),r=Ht(e,n);return n.concat(r.length)}function MFe(e){if(!["add","remove","replace","copy","move","test"].includes(e.op))throw new Error("Unknown JSONPatch op "+JSON.stringify(e.op));if(typeof e.path!="string")throw new Error('Required property "path" missing or not a string in operation '+JSON.stringify(e));if((e.op==="copy"||e.op==="move")&&typeof e.from!="string")throw new Error('Required property "from" missing or not a string in operation '+JSON.stringify(e))}function vu(e,t){return jFe(e,gc(t))}function _T(e){return gc(e)}function aZ(e,t,n){let r=[];return vc(e,t,{before:(o,a)=>{let s;const l=vu(o,a.path);if(a.op==="add")s=cZ(o,l);else if(a.op==="remove")s=lZ(o,l);else if(a.op==="replace")s=sZ(o,l);else if(a.op==="copy")s=AFe(o,l);else if(a.op==="move")s=NFe(o,l,_T(a.from));else if(a.op==="test")s=[];else throw new Error("Unknown JSONPatch operation "+JSON.stringify(a));let c;if(n&&n.before){const u=n.before(o,a,s);if(u&&u.revertOperations&&(s=u.revertOperations),u&&u.document&&(c=u.document),u&&u.json)throw new Error('Deprecation warning: returned object property ".json" has been renamed to ".document"')}if(r=s.concat(r),c!==void 0)return{document:c}}}),r}function sZ(e,t){return[{op:"replace",path:Mt(t),value:Ht(e,t)}]}function lZ(e,t){return[{op:"add",path:Mt(t),value:Ht(e,t)}]}function cZ(e,t){return J2(e,t)||!Ml(e,t)?[{op:"remove",path:Mt(t)}]:sZ(e,t)}function AFe(e,t){return cZ(e,t)}function NFe(e,t,n){if(t.length<n.length&&SFe(n,t))return[{op:"replace",path:Mt(t),value:e}];const r={op:"move",from:Mt(t),path:Mt(n)};return!J2(e,t)&&Ml(e,t)?[r,...lZ(e,t)]:[r]}var W6={},uZ={b:"\b",f:"\f",n:`
|
4053
4053
|
`,r:"\r",t:" ",'"':'"',"/":"/","\\":"\\"},DFe=97;W6.parse=function(e,t,n){var r={},i=0,o=0,a=0,s=n&&n.bigint&&typeof BigInt<"u";return{data:l("",!0),pointers:r};function l($,k){c();var P;w($,"value");var T=b();switch(T){case"t":m("rue"),P=!0;break;case"f":m("alse"),P=!1;break;case"n":m("ull"),P=null;break;case'"':P=u();break;case"[":P=h($);break;case"{":P=p($);break;default:v(),"-0123456789".indexOf(T)>=0?P=f():_()}return w($,"valueEnd"),c(),k&&a<e.length&&_(),P}function c(){e:for(;a<e.length;){switch(e[a]){case" ":o++;break;case" ":o+=4;break;case"\r":o=0;break;case`
|
4054
4054
|
`:o=0,i++;break;default:break e}a++}}function u(){for(var $="",k;k=b(),k!='"';)k=="\\"?(k=b(),k in uZ?$+=uZ[k]:k=="u"?$+=g():S()):$+=k;return $}function f(){var $="",k=!0;e[a]=="-"&&($+=b()),$+=e[a]=="0"?b():x(),e[a]=="."&&($+=b()+x(),k=!1),(e[a]=="e"||e[a]=="E")&&($+=b(),(e[a]=="+"||e[a]=="-")&&($+=b()),$+=x(),k=!1);var P=+$;return s&&k&&(P>Number.MAX_SAFE_INTEGER||P<Number.MIN_SAFE_INTEGER)?BigInt($):P}function h($){c();var k=[],P=0;if(b()=="]")return k;for(v();;){var T=$+"/"+P;k.push(l(T)),c();var j=b();if(j=="]")break;j!=","&&S(),c(),P++}return k}function p($){c();var k={};if(b()=="}")return k;for(v();;){var P=C();b()!='"'&&S();var T=u(),j=$+"/"+ST(T);y(j,"key",P),w(j,"keyEnd"),c(),b()!=":"&&S(),c(),k[T]=l(j),c();var M=b();if(M=="}")break;M!=","&&S(),c()}return k}function m($){for(var k=0;k<$.length;k++)b()!==$[k]&&S()}function b(){E();var $=e[a];return a++,o++,$}function v(){a--,o--}function g(){for(var $=4,k=0;$--;){k<<=4;var P=b().toLowerCase();P>="a"&&P<="f"?k+=P.charCodeAt()-DFe+10:P>="0"&&P<="9"?k+=+P:S()}return String.fromCharCode(k)}function x(){for(var $="";e[a]>="0"&&e[a]<="9";)$+=b();if($.length)return $;E(),_()}function w($,k){y($,k,C())}function y($,k,P){r[$]=r[$]||{},r[$][k]=P}function C(){return{line:i,column:o,pos:a}}function _(){throw new SyntaxError("Unexpected token "+e[a]+" in JSON at position "+a)}function S(){v(),_()}function E(){if(a>=e.length)throw new SyntaxError("Unexpected end of JSON input")}},W6.stringify=function(e,t,n){if(!q6(e))return;var r=0,i,o,a=typeof n=="object"?n.space:n;switch(typeof a){case"number":var s=a>10?10:a<0?0:Math.floor(a);a=s&&y(s," "),i=s,o=s;break;case"string":a=a.slice(0,10),i=0,o=0;for(var l=0;l<a.length;l++){var c=a[l];switch(c){case" ":o++;break;case" ":o+=4;break;case"\r":o=0;break;case`
|
4055
4055
|
`:o=0,r++;break;default:throw new Error("whitespace characters not allowed in JSON")}i++}break;default:a=void 0}var u="",f={},h=0,p=0,m=0,b=n&&n.es6&&typeof Map=="function";return v(e,0,""),{json:u,pointers:f};function v(C,_,S){switch(w(S,"value"),typeof C){case"number":case"bigint":case"boolean":g(""+C);break;case"string":g(G6(C));break;case"object":C===null?g("null"):typeof C.toJSON=="function"?g(G6(C.toJSON())):Array.isArray(C)?E():b?C.constructor.BYTES_PER_ELEMENT?E():C instanceof Map?k():C instanceof Set?k(!0):$():$()}w(S,"valueEnd");function E(){if(C.length){g("[");for(var P=_+1,T=0;T<C.length;T++){T&&g(","),x(P);var j=q6(C[T])?C[T]:null,M=S+"/"+T;v(j,P,M)}x(_),g("]")}else g("[]")}function $(){var P=Object.keys(C);if(P.length){g("{");for(var T=_+1,j=0;j<P.length;j++){var M=P[j],B=C[M];if(q6(B)){j&&g(",");var V=S+"/"+ST(M);x(T),w(V,"key"),g(G6(M)),w(V,"keyEnd"),g(":"),a&&g(" "),v(B,T,V)}}x(_),g("}")}else g("{}")}function k(P){if(C.size){g("{");for(var T=_+1,j=!0,M=C.entries(),B=M.next();!B.done;){var V=B.value,R=V[0],I=P?!0:V[1];if(q6(I)){j||g(","),j=!1;var G=S+"/"+ST(R);x(T),w(G,"key"),g(G6(R)),w(G,"keyEnd"),g(":"),a&&g(" "),v(I,T,G)}B=M.next()}x(_),g("}")}else g("{}")}}function g(C){p+=C.length,m+=C.length,u+=C}function x(C){if(a){for(u+=`
|
@@ -4147,12 +4147,12 @@ return query;
|
|
4147
4147
|
Wizard`),y=Ve(),U&&U.c(),C=Ve(),(_=fe("div")).innerHTML='<div class="jse-label-inner svelte-l4qqoi">Query</div>',S=Ve(),E=fe("textarea"),$=Ve(),k=fe("div"),P=fe("div"),T=fe("div"),j=fe("div"),M=fe("button"),Qe(B.$$.fragment),V=Pt(`
|
4148
4148
|
Original`),R=Ve(),Y&&Y.c(),I=Ve(),G=fe("div"),(F=fe("div")).innerHTML='<div class="jse-label-inner svelte-l4qqoi">Preview</div>',z=Ve(),L.c(),N=Ve(),q=fe("div"),oe=fe("button"),ee=Pt("Transform"),W(a,"class","jse-label svelte-l4qqoi"),W(l,"class","jse-description svelte-l4qqoi"),W(u,"class","jse-label svelte-l4qqoi"),W(h,"class","jse-path svelte-l4qqoi"),W(h,"type","text"),h.readOnly=!0,W(h,"title","Selected path"),h.value=p=kr(e[1])?"(document root)":zs(e[1]),W(g,"type","button"),W(g,"class","svelte-l4qqoi"),W(v,"class","jse-label-inner svelte-l4qqoi"),W(b,"class","jse-label svelte-l4qqoi"),W(_,"class","jse-label svelte-l4qqoi"),W(E,"class","jse-query svelte-l4qqoi"),W(E,"spellcheck","false"),E.value=e[16],W(o,"class","jse-query-contents svelte-l4qqoi"),W(M,"type","button"),W(M,"class","svelte-l4qqoi"),W(j,"class","jse-label-inner svelte-l4qqoi"),W(T,"class","jse-label svelte-l4qqoi"),W(P,"class","jse-original-data svelte-l4qqoi"),at(P,"jse-hide",!e[19]),W(F,"class","jse-label svelte-l4qqoi"),W(G,"class","jse-preview-data svelte-l4qqoi"),W(k,"class","jse-data-contents svelte-l4qqoi"),at(k,"jse-hide-original-data",!e[19]),W(i,"class","jse-main-contents svelte-l4qqoi"),W(oe,"type","button"),W(oe,"class","jse-primary svelte-l4qqoi"),oe.disabled=be=!!e[20],W(q,"class","jse-actions svelte-l4qqoi"),W(r,"class","jse-modal-contents svelte-l4qqoi")},m:function(he,de){Ze(t,he,de),ke(he,n,de),ke(he,r,de),le(r,i),le(i,o),le(o,a),le(o,s),le(o,l),l.innerHTML=ae,le(o,c),le(o,u),le(o,f),le(o,h),le(o,m),le(o,b),le(b,v),le(v,g),Ze(x,g,null),le(g,w),le(o,y),U&&U.m(o,null),le(o,C),le(o,_),le(o,S),le(o,E),le(i,$),le(i,k),le(k,P),le(P,T),le(T,j),le(j,M),Ze(B,M,null),le(M,V),le(P,R),Y&&Y.m(P,null),le(k,I),le(k,G),le(G,F),le(G,z),ue[A].m(G,null),le(r,N),le(r,q),le(q,oe),le(oe,ee),H=!0,O||(D=[ut(g,"click",e[27]),ut(E,"input",e[25]),ut(M,"click",e[28]),ut(oe,"click",e[26]),Do(fot.call(null,oe))],O=!0)},p:function(he,de){var ve={};512&de[0]&&(ve.queryLanguages=he[9]),1&de[0]&&(ve.queryLanguageId=he[0]),t.$set(ve),(!H||1&de[0])&&ae!==(ae=he[23](he[0]).description+"")&&(l.innerHTML=ae),(!H||2&de[0]&&p!==(p=kr(he[1])?"(document root)":zs(he[1]))&&h.value!==p)&&(h.value=p);var Oe={};262144&de[0]&&(Oe.data=he[18]?Al:sf),x.$set(Oe),he[18]?U?(U.p(he,de),262144&de[0]&&X(U,1)):((U=rse(he)).c(),X(U,1),U.m(o,C)):U&&(pt(),re(U,1,1,function(){U=null}),mt()),(!H||65536&de[0])&&(E.value=he[16]);var Le={};524288&de[0]&&(Le.data=he[19]?Al:sf),B.$set(Le),he[19]?Y?(Y.p(he,de),524288&de[0]&&X(Y,1)):((Y=ise(he)).c(),X(Y,1),Y.m(P,null)):Y&&(pt(),re(Y,1,1,function(){Y=null}),mt()),(!H||524288&de[0])&&at(P,"jse-hide",!he[19]);var Ge=A;(A=Ce(he))===Ge?ue[A].p(he,de):(pt(),re(ue[Ge],1,1,function(){ue[Ge]=null}),mt(),(L=ue[A])?L.p(he,de):(L=ue[A]=ye[A](he)).c(),X(L,1),L.m(G,null)),(!H||524288&de[0])&&at(k,"jse-hide-original-data",!he[19]),(!H||1048576&de[0]&&be!==(be=!!he[20]))&&(oe.disabled=be)},i:function(he){H||(X(t.$$.fragment,he),X(x.$$.fragment,he),X(U),X(B.$$.fragment,he),X(Y),X(L),H=!0)},o:function(he){re(t.$$.fragment,he),re(x.$$.fragment,he),re(U),re(B.$$.fragment,he),re(Y),re(L),H=!1},d:function(he){he&&(Ee(n),Ee(r)),Xe(t,he),Xe(x),U&&U.d(),Xe(B),Y&&Y.d(),ue[A].d(),O=!1,Zr(D)}}}function dot(e){var t,n,r,i,o;return n=new Rre({props:{$$slots:{default:[uot]},$$scope:{ctx:e}}}),{c:function(){t=fe("div"),Qe(n.$$.fragment),W(t,"class","jse-modal jse-transform svelte-l4qqoi")},m:function(a,s){ke(a,t,s),Ze(n,t,null),r=!0,i||(o=Do(Ow.call(null,t,e[22])),i=!0)},p:function(a,s){var l={};4194303&s[0]|2048&s[1]&&(l.$$scope={dirty:s,ctx:a}),n.$set(l)},i:function(a){r||(X(n.$$.fragment,a),r=!0)},o:function(a){re(n.$$.fragment,a),r=!1},d:function(a){a&&Ee(t),Xe(n),i=!1,o()}}}function fot(e){e.focus()}function hot(e,t,n){var r,i,o=ha("jsoneditor:TransformModal"),a=t.id,s=a===void 0?"transform-modal-"+ly():a,l=t.json,c=t.rootPath,u=c===void 0?[]:c,f=t.indentation,h=t.escapeControlCharacters,p=t.escapeUnicodeCharacters,m=t.parser,b=t.parseMemoizeOne,v=t.validationParser,g=t.pathParser,x=t.queryLanguages,w=t.queryLanguageId,y=t.onChangeQueryLanguage,C=t.onRenderValue,_=t.onRenderMenu,S=t.onRenderContextMenu,E=t.onClassName,$=t.onTransform,k=fa("simple-modal").close,P="".concat(s,":").concat(Mt(u)),T=yy[P]||{},j=mw.showWizard!==!1,M=mw.showOriginal!==!1,B=T.queryOptions||{},V=w===T.queryLanguageId&&T.query?T.query:F(w).createQuery(r,T.queryOptions||{}),R=T.isManual||!1,I=void 0,G={text:""};function F(A){return x.find(function(L){return L.id===A})||x[0]}var z=A3(function(A,L){if(A===void 0)return n(21,G={text:""}),void n(20,I="Error: No JSON");try{o("previewTransform",{query:L});var N=F(w).executeQuery(A,L,m);n(21,G={json:N}),n(20,I=void 0)}catch(q){n(21,G={text:""}),n(20,I=String(q))}},300);return e.$$set=function(A){"id"in A&&n(30,s=A.id),"json"in A&&n(31,l=A.json),"rootPath"in A&&n(1,u=A.rootPath),"indentation"in A&&n(2,f=A.indentation),"escapeControlCharacters"in A&&n(3,h=A.escapeControlCharacters),"escapeUnicodeCharacters"in A&&n(4,p=A.escapeUnicodeCharacters),"parser"in A&&n(5,m=A.parser),"parseMemoizeOne"in A&&n(6,b=A.parseMemoizeOne),"validationParser"in A&&n(7,v=A.validationParser),"pathParser"in A&&n(8,g=A.pathParser),"queryLanguages"in A&&n(9,x=A.queryLanguages),"queryLanguageId"in A&&n(0,w=A.queryLanguageId),"onChangeQueryLanguage"in A&&n(32,y=A.onChangeQueryLanguage),"onRenderValue"in A&&n(10,C=A.onRenderValue),"onRenderMenu"in A&&n(11,_=A.onRenderMenu),"onRenderContextMenu"in A&&n(12,S=A.onRenderContextMenu),"onClassName"in A&&n(13,E=A.onClassName),"onTransform"in A&&n(33,$=A.onTransform)},e.$$.update=function(){2&e.$$.dirty[0]|1&e.$$.dirty[1]&&n(14,r=nse(Ht(l,u))),16384&e.$$.dirty[0]&&n(17,i=r?{json:r}:{text:""}),81920&e.$$.dirty[0]&&z(r,V),98305&e.$$.dirty[0]|24&e.$$.dirty[1]&&(n(34,yy[P]={queryOptions:B,query:V,queryLanguageId:w,isManual:R},yy),o("store state in memory",P,yy[P]))},[w,u,f,h,p,m,b,v,g,x,C,_,S,E,r,B,V,i,j,M,I,G,k,F,function(A){n(15,B=A),n(16,V=F(w).createQuery(r,A)),n(35,R=!1),o("updateQueryByWizard",{queryOptions:B,query:V,isManual:R})},function(A){n(16,V=A.target.value),n(35,R=!0),o("handleChangeQuery",{query:V,isManual:R})},function(){if(r===void 0)return n(21,G={text:""}),void n(20,I="Error: No JSON");try{o("handleTransform",{query:V});var A=F(w).executeQuery(r,V,m);$([{op:"replace",path:Mt(u),value:A}]),k()}catch(L){console.error(L),n(21,G={text:""}),n(20,I=String(L))}},function(){n(18,j=!j),mw.showWizard=j},function(){n(19,M=!M),mw.showOriginal=M},function(A){o("handleChangeQueryLanguage",A),n(0,w=A),y(A);var L=F(w);n(16,V=L.createQuery(r,B)),n(35,R=!1)},s,l,y,$,yy,R]}var pot=function(e){function t(n){var r;return Qt(this,t),ln(Jt(r=an(this,t)),n,hot,dot,Pn,{id:30,json:31,rootPath:1,indentation:2,escapeControlCharacters:3,escapeUnicodeCharacters:4,parser:5,parseMemoizeOne:6,validationParser:7,pathParser:8,queryLanguages:9,queryLanguageId:0,onChangeQueryLanguage:32,onRenderValue:10,onRenderMenu:11,onRenderContextMenu:12,onClassName:13,onTransform:33},oot,[-1,-1]),r}return sn(t,cn),en(t)}(),bg={};function mot(e){En(e,"svelte-qjdk97",'.jse-modal.svelte-qjdk97.svelte-qjdk97{flex:1;display:flex;flex-direction:column;min-width:0;min-height:0;font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size, 16px);line-height:normal;background:var(--jse-modal-background, #f5f5f5);color:var(--jse-text-color, #4d4d4d)}.jse-modal.svelte-qjdk97 .svelte-select{--border:var(--jse-svelte-select-border, 1px solid #d8dbdf);--item-is-active-bg:var(--jse-item-is-active-bg, #3883fa);--border-radius:var(--jse-svelte-select-border-radius, 3px);--background:var(--jse-svelte-select-background, #fff);--padding:var(--jse-svelte-select-padding, 0 10px);--multi-select-padding:var(--jse-svelte-select-multi-select-padding, 0 10px);--font-size:var(--jse-svelte-select-font-size, var(--jse-font-size, 16px));--height:36px;--multi-item-height:28px;--multi-item-margin:2px;--multi-item-padding:2px 8px;--multi-item-border-radius:6px;--indicator-top:8px}.jse-modal.svelte-qjdk97 .jse-modal-contents.svelte-qjdk97{flex:1;display:flex;flex-direction:column;padding:20px;overflow:auto;min-width:0;min-height:0}.jse-modal.svelte-qjdk97 .jse-modal-contents .jse-actions.svelte-qjdk97{display:flex;flex-direction:row;justify-content:flex-end;padding-top:var(--jse-padding, 10px)}.jse-modal.svelte-qjdk97 .jse-modal-contents .jse-actions button.jse-primary.svelte-qjdk97{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size, 16px);padding:5px;margin:0;background:var(--jse-button-primary-background, var(--jse-theme-color, #3883fa));color:var(--jse-button-primary-color, #fff);padding:var(--jse-padding, 10px) calc(2 * var(--jse-padding, 10px));border-radius:3px}.jse-modal.svelte-qjdk97 .jse-modal-contents .jse-actions button.jse-primary.svelte-qjdk97:hover{background:var(--jse-button-primary-background-highlight, var(--jse-theme-color-highlight, #5f9dff))}.jse-modal.svelte-qjdk97 .jse-modal-contents .jse-actions button.jse-primary.svelte-qjdk97:disabled{background:var(--jse-button-primary-background-disabled, #9d9d9d)}.bg.jse-modal-bg{width:100%;height:100%;top:0;left:0;background:var(--jse-overlay-background, rgba(0, 0, 0, 0.3))}.bg.jse-modal-bg .jse-modal-window-wrap{margin:0}.bg.jse-modal-bg .jse-modal-window{max-width:90%;margin:4rem auto 2rem auto;border-radius:2px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-sort{width:400px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-transform{width:1200px;height:1200px;max-height:80%;display:flex}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-jsoneditor{width:800px;height:auto;min-height:500px;max-height:calc(100vh - 6rem);display:flex}.bg.jse-modal-bg .jse-modal-container{flex:1;display:flex;flex-direction:column;padding:0}.jse-modal.jse-sort.svelte-qjdk97 table.svelte-qjdk97{width:100%;border-collapse:collapse;border-spacing:0}.jse-modal.jse-sort.svelte-qjdk97 table th.svelte-qjdk97,.jse-modal.jse-sort.svelte-qjdk97 table td.svelte-qjdk97{text-align:left;vertical-align:middle;font-weight:normal;padding-bottom:var(--jse-padding, 10px)}.jse-modal.jse-sort.svelte-qjdk97 table th input.jse-path.svelte-qjdk97,.jse-modal.jse-sort.svelte-qjdk97 table td input.jse-path.svelte-qjdk97{width:100%;box-sizing:border-box;padding:6px 16px;border:var(--jse-input-border, 1px solid #d8dbdf);border-radius:var(--jse-input-radius, 3px);font-family:inherit;font-size:inherit;background:inherit;color:inherit;outline:none}.jse-modal.jse-sort.svelte-qjdk97 table th input.jse-path.svelte-qjdk97:read-only,.jse-modal.jse-sort.svelte-qjdk97 table td input.jse-path.svelte-qjdk97:read-only{background:var(--jse-input-background-readonly, transparent)}.jse-modal.jse-sort.svelte-qjdk97 table th.svelte-qjdk97 .svelte-select input,.jse-modal.jse-sort.svelte-qjdk97 table td.svelte-qjdk97 .svelte-select input{box-sizing:border-box}.jse-modal.jse-sort.svelte-qjdk97 .jse-space.svelte-qjdk97{height:200px}.jse-modal.jse-sort.svelte-qjdk97 .jse-space .jse-error.svelte-qjdk97{color:var(--jse-error-color, #ee5341)}')}function ose(e){var t,n,r,i,o,a,s;function l(u){e[14](u)}var c={showChevron:!0,items:e[5]};return e[1]!==void 0&&(c.value=e[1]),o=new jp({props:c}),rr.push(function(){return Tc(o,"value",l)}),{c:function(){t=fe("tr"),(n=fe("th")).textContent="Property",r=Ve(),i=fe("td"),Qe(o.$$.fragment),W(n,"class","svelte-qjdk97"),W(i,"class","svelte-qjdk97")},m:function(u,f){ke(u,t,f),le(t,n),le(t,r),le(t,i),Ze(o,i,null),s=!0},p:function(u,f){var h={};32&f&&(h.items=u[5]),!a&&2&f&&(a=!0,h.value=u[1],$c(function(){return a=!1})),o.$set(h)},i:function(u){s||(X(o.$$.fragment,u),s=!0)},o:function(u){re(o.$$.fragment,u),s=!1},d:function(u){u&&Ee(t),Xe(o)}}}function ase(e){var t,n;return{c:function(){t=fe("div"),n=Pt(e[4]),W(t,"class","jse-error svelte-qjdk97")},m:function(r,i){ke(r,t,i),le(t,n)},p:function(r,i){16&i&&mn(n,r[4])},d:function(r){r&&Ee(t)}}}function got(e){var t,n,r,i,o,a,s,l,c,u,f,h,p,m,b,v,g,x,w,y,C,_,S,E,$,k,P,T,j,M,B,V,R;r=new Tj({props:{title:e[3]?"Sort array items":"Sort object keys"}});var I=e[3]&&(e[5]&&((t=e[5])===null||t===void 0?void 0:t.length)>1||e[1]===void 0)&&ose(e);function G(A){e[15](A)}var F={showChevron:!0,clearable:!1,items:e[7]};e[2]!==void 0&&(F.value=e[2]),_=new jp({props:F}),rr.push(function(){return Tc(_,"value",G)});var z=e[4]&&ase(e);return{c:function(){var A;n=fe("div"),Qe(r.$$.fragment),i=Ve(),o=fe("div"),a=fe("table"),(s=fe("colgroup")).innerHTML='<col width="25%"/> <col width="75%"/>',l=Ve(),c=fe("tbody"),u=fe("tr"),(f=fe("th")).textContent="Path",h=Ve(),p=fe("td"),m=fe("input"),v=Ve(),I&&I.c(),g=Ve(),x=fe("tr"),(w=fe("th")).textContent="Direction",y=Ve(),C=fe("td"),Qe(_.$$.fragment),E=Ve(),$=fe("div"),z&&z.c(),k=Ve(),P=fe("div"),T=fe("button"),j=Pt("Sort"),W(f,"class","svelte-qjdk97"),W(m,"class","jse-path svelte-qjdk97"),W(m,"type","text"),m.readOnly=!0,W(m,"title","Selected path"),m.value=b=kr(e[0])?"(document root)":zs(e[0]),W(p,"class","svelte-qjdk97"),W(w,"class","svelte-qjdk97"),W(C,"class","svelte-qjdk97"),W(a,"class","svelte-qjdk97"),W($,"class","jse-space svelte-qjdk97"),W(T,"type","button"),W(T,"class","jse-primary svelte-qjdk97"),T.disabled=M=!!(e[3]&&e[5]&&((A=e[5])===null||A===void 0?void 0:A.length)>1)&&!e[1],W(P,"class","jse-actions svelte-qjdk97"),W(o,"class","jse-modal-contents svelte-qjdk97"),W(n,"class","jse-modal jse-sort svelte-qjdk97")},m:function(A,L){ke(A,n,L),Ze(r,n,null),le(n,i),le(n,o),le(o,a),le(a,s),le(a,l),le(a,c),le(c,u),le(u,f),le(u,h),le(u,p),le(p,m),le(c,v),I&&I.m(c,null),le(c,g),le(c,x),le(x,w),le(x,y),le(x,C),Ze(_,C,null),le(o,E),le(o,$),z&&z.m($,null),le(o,k),le(o,P),le(P,T),le(T,j),B=!0,V||(R=[ut(T,"click",e[8]),Do(vot.call(null,T)),Do(Ow.call(null,n,e[6]))],V=!0)},p:function(A,L){var N,q,oe=Sn(L,1)[0],ee={};8&oe&&(ee.title=A[3]?"Sort array items":"Sort object keys"),r.$set(ee),(!B||1&oe&&b!==(b=kr(A[0])?"(document root)":zs(A[0]))&&m.value!==b)&&(m.value=b),A[3]&&(A[5]&&((N=A[5])===null||N===void 0?void 0:N.length)>1||A[1]===void 0)?I?(I.p(A,oe),42&oe&&X(I,1)):((I=ose(A)).c(),X(I,1),I.m(c,g)):I&&(pt(),re(I,1,1,function(){I=null}),mt());var be={};!S&&4&oe&&(S=!0,be.value=A[2],$c(function(){return S=!1})),_.$set(be),A[4]?z?z.p(A,oe):((z=ase(A)).c(),z.m($,null)):z&&(z.d(1),z=null),(!B||42&oe&&M!==(M=!!(A[3]&&A[5]&&((q=A[5])===null||q===void 0?void 0:q.length)>1)&&!A[1]))&&(T.disabled=M)},i:function(A){B||(X(r.$$.fragment,A),X(I),X(_.$$.fragment,A),B=!0)},o:function(A){re(r.$$.fragment,A),re(I),re(_.$$.fragment,A),B=!1},d:function(A){A&&Ee(n),Xe(r),I&&I.d(),Xe(_),z&&z.d(),V=!1,Zr(R)}}}function vot(e){e.focus()}function bot(e,t,n){var r,i,o,a,s,l=ha("jsoneditor:SortModal"),c=t.id,u=t.json,f=t.rootPath,h=t.onSort,p=fa("simple-modal").close,m="".concat(c,":").concat(Mt(f)),b=Ht(u,f),v={value:1,label:"ascending"},g=[v,{value:-1,label:"descending"}],x=(r=bg[m])===null||r===void 0?void 0:r.selectedProperty,w=((i=bg[m])===null||i===void 0?void 0:i.selectedDirection)||v,y=void 0;return e.$$set=function(C){"id"in C&&n(9,c=C.id),"json"in C&&n(10,u=C.json),"rootPath"in C&&n(0,f=C.rootPath),"onSort"in C&&n(11,h=C.onSort)},e.$$.update=function(){8&e.$$.dirty&&n(13,a=o&&b!==void 0?KO(b):void 0),8192&e.$$.dirty&&n(5,s=a?a.map(fy):void 0),4102&e.$$.dirty&&(n(12,bg[m]={selectedProperty:x,selectedDirection:w},bg),l("store state in memory",m,bg[m]))},n(3,o=Array.isArray(b)),[f,x,w,o,y,s,p,g,function(){try{var C,_,S;n(4,y=void 0);var E=((C=x)===null||C===void 0?void 0:C.value)||((_=s)===null||_===void 0||(_=_[0])===null||_===void 0?void 0:_.value)||[],$=(S=w)===null||S===void 0?void 0:S.value,k=Rae(u,f,E,$);h({operations:k,rootPath:f,itemPath:E,direction:$}),p()}catch(P){n(4,y=String(P))}},c,u,h,bg,a,function(C){n(1,x=C)},function(C){n(2,w=C)}]}var yot=function(e){function t(n){var r;return Qt(this,t),ln(Jt(r=an(this,t)),n,bot,got,Pn,{id:9,json:10,rootPath:0,onSort:11},mot),r}return sn(t,cn),en(t)}();function Yl(){}function Nw(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1e3;if(e<.9*t)return e.toFixed()+" B";var n=e/t;if(n<.9*t)return n.toFixed(1)+" KB";var r=n/t;if(r<.9*t)return r.toFixed(1)+" MB";var i=r/t;return i<.9*t?i.toFixed(1)+" GB":(i/t).toFixed(1)+" TB"}function xot(e){var t,n;return t=new Pw({props:{items:e[0]}}),{c:function(){Qe(t.$$.fragment)},m:function(r,i){Ze(t,r,i),n=!0},p:function(r,i){var o={};1&Sn(i,1)[0]&&(o.items=r[0]),t.$set(o)},i:function(r){n||(X(t.$$.fragment,r),n=!0)},o:function(r){re(t.$$.fragment,r),n=!1},d:function(r){Xe(t,r)}}}function wot(e,t,n){var r,i,o=t.readOnly,a=o!==void 0&&o,s=t.onFormat,l=t.onCompact,c=t.onSort,u=t.onTransform,f=t.onToggleSearch,h=t.onUndo,p=t.onRedo,m=t.canUndo,b=t.canRedo,v=t.canFormat,g=t.canCompact,x=t.canSort,w=t.canTransform,y=t.onRenderMenu,C={type:"button",icon:OT,title:"Search (Ctrl+F)",className:"jse-search",onClick:f};return e.$$set=function(_){"readOnly"in _&&n(1,a=_.readOnly),"onFormat"in _&&n(2,s=_.onFormat),"onCompact"in _&&n(3,l=_.onCompact),"onSort"in _&&n(4,c=_.onSort),"onTransform"in _&&n(5,u=_.onTransform),"onToggleSearch"in _&&n(6,f=_.onToggleSearch),"onUndo"in _&&n(7,h=_.onUndo),"onRedo"in _&&n(8,p=_.onRedo),"canUndo"in _&&n(9,m=_.canUndo),"canRedo"in _&&n(10,b=_.canRedo),"canFormat"in _&&n(11,v=_.canFormat),"canCompact"in _&&n(12,g=_.canCompact),"canSort"in _&&n(13,x=_.canSort),"canTransform"in _&&n(14,w=_.canTransform),"onRenderMenu"in _&&n(15,y=_.onRenderMenu)},e.$$.update=function(){32702&e.$$.dirty&&n(16,i=a?[C,{type:"space"}]:[{type:"button",icon:Aj,title:"Format JSON: add proper indentation and new lines (Ctrl+I)",className:"jse-format",onClick:s,disabled:a||!v},{type:"button",icon:iit,title:"Compact JSON: remove all white spacing and new lines (Ctrl+Shift+I)",className:"jse-compact",onClick:l,disabled:a||!g},{type:"separator"},{type:"button",icon:ox,title:"Sort",className:"jse-sort",onClick:c,disabled:a||!x},{type:"button",icon:nx,title:"Transform contents (filter, sort, project)",className:"jse-transform",onClick:u,disabled:a||!w},C,{type:"separator"},{type:"button",icon:PT,title:"Undo (Ctrl+Z)",className:"jse-undo",onClick:h,disabled:!m},{type:"button",icon:RT,title:"Redo (Ctrl+Shift+Z)",className:"jse-redo",onClick:p,disabled:!b},{type:"space"}]),98304&e.$$.dirty&&n(0,r=y(i)||i)},[r,a,s,l,c,u,f,h,p,m,b,v,g,x,w,y,i]}var Cot=function(e){function t(n){var r;return Qt(this,t),ln(Jt(r=an(this,t)),n,wot,xot,Pn,{readOnly:1,onFormat:2,onCompact:3,onSort:4,onTransform:5,onToggleSearch:6,onUndo:7,onRedo:8,canUndo:9,canRedo:10,canFormat:11,canCompact:12,canSort:13,canTransform:14,onRenderMenu:15}),r}return sn(t,cn),en(t)}();function _ot(e){En(e,"svelte-hhcn0f",'.jse-status-bar.svelte-hhcn0f.svelte-hhcn0f{background:var(--jse-panel-background, #ebebeb);color:var(--jse-panel-color-readonly, #b2b2b2);font-family:var(--jse-font-family-mono, consolas, menlo, monaco, "Ubuntu Mono", "source-code-pro", monospace);font-size:var(--jse-font-size-mono, 14px);margin:0;border-top:var(--jse-panel-border, var(--jse-main-border, 1px solid #d7d7d7));border-left:var(--jse-main-border, 1px solid #d7d7d7);border-right:var(--jse-main-border, 1px solid #d7d7d7);display:flex;gap:var(--jse-padding, 10px)}.jse-status-bar.svelte-hhcn0f.svelte-hhcn0f:last-child{border-bottom:var(--jse-main-border, 1px solid #d7d7d7)}.jse-status-bar.svelte-hhcn0f .jse-status-bar-info.svelte-hhcn0f{padding:2px}')}function sse(e){var t,n,r;return{c:function(){t=fe("div"),n=Pt("Line: "),r=Pt(e[0]),W(t,"class","jse-status-bar-info svelte-hhcn0f")},m:function(i,o){ke(i,t,o),le(t,n),le(t,r)},p:function(i,o){1&o&&mn(r,i[0])},d:function(i){i&&Ee(t)}}}function lse(e){var t,n,r;return{c:function(){t=fe("div"),n=Pt("Column: "),r=Pt(e[1]),W(t,"class","jse-status-bar-info svelte-hhcn0f")},m:function(i,o){ke(i,t,o),le(t,n),le(t,r)},p:function(i,o){2&o&&mn(r,i[1])},d:function(i){i&&Ee(t)}}}function cse(e){var t,n,r,i;return{c:function(){t=fe("div"),n=Pt("Selection: "),r=Pt(e[2]),i=Pt(" characters"),W(t,"class","jse-status-bar-info svelte-hhcn0f")},m:function(o,a){ke(o,t,a),le(t,n),le(t,r),le(t,i)},p:function(o,a){4&a&&mn(r,o[2])},d:function(o){o&&Ee(t)}}}function Sot(e){var t,n,r,i=e[0]!==void 0&&sse(e),o=e[1]!==void 0&&lse(e),a=e[2]!==void 0&&e[2]>0&&cse(e);return{c:function(){t=fe("div"),i&&i.c(),n=Ve(),o&&o.c(),r=Ve(),a&&a.c(),W(t,"class","jse-status-bar svelte-hhcn0f")},m:function(s,l){ke(s,t,l),i&&i.m(t,null),le(t,n),o&&o.m(t,null),le(t,r),a&&a.m(t,null)},p:function(s,l){var c=Sn(l,1)[0];s[0]!==void 0?i?i.p(s,c):((i=sse(s)).c(),i.m(t,n)):i&&(i.d(1),i=null),s[1]!==void 0?o?o.p(s,c):((o=lse(s)).c(),o.m(t,r)):o&&(o.d(1),o=null),s[2]!==void 0&&s[2]>0?a?a.p(s,c):((a=cse(s)).c(),a.m(t,null)):a&&(a.d(1),a=null)},i:gt,o:gt,d:function(s){s&&Ee(t),i&&i.d(),o&&o.d(),a&&a.d()}}}function Eot(e,t,n){var r,i,o,a,s,l=t.editorState;return e.$$set=function(c){"editorState"in c&&n(3,l=c.editorState)},e.$$.update=function(){var c,u,f;8&e.$$.dirty&&n(4,r=(c=l)===null||c===void 0||(c=c.selection)===null||c===void 0||(c=c.main)===null||c===void 0?void 0:c.head),24&e.$$.dirty&&n(5,i=r?(u=l)===null||u===void 0||(u=u.doc)===null||u===void 0?void 0:u.lineAt(r):void 0),32&e.$$.dirty&&n(0,o=i?i.number:void 0),48&e.$$.dirty&&n(1,a=i!==void 0&&r!==void 0?r-i.from+1:void 0),8&e.$$.dirty&&n(2,s=(f=l)===null||f===void 0||(f=f.selection)===null||f===void 0||(f=f.ranges)===null||f===void 0?void 0:f.reduce(function(h,p){return h+p.to-p.from},0))},[o,a,s,l,r,i]}var kot=function(e){function t(n){var r;return Qt(this,t),ln(Jt(r=an(this,t)),n,Eot,Sot,No,{editorState:3},_ot),r}return sn(t,cn),en(t)}(),Uj=Nb.define([{tag:At.propertyName,color:"var(--internal-key-color)"},{tag:At.number,color:"var(--internal-value-color-number)"},{tag:At.bool,color:"var(--internal-value-color-boolean)"},{tag:At.string,color:"var(--internal-value-color-string)"},{tag:At.keyword,color:"var(--internal-value-color-null)"}]),$ot=DQ(Uj),Tot=Uj.style;function Rot(e){En(e,"svelte-a0poeb",'.jse-text-mode.svelte-a0poeb.svelte-a0poeb{--internal-key-color:var(--jse-key-color, #1a1a1a);--internal-value-color-number:var(--jse-value-color-number, #ee422e);--internal-value-color-boolean:var(--jse-value-color-boolean, #ff8c00);--internal-value-color-string:var(--jse-value-color-string, #008000);--internal-value-color-null:var(--jse-value-color-null, #004ed0);flex:1;box-sizing:border-box;display:flex;flex-direction:column;background:var(--jse-background-color, #fff)}.jse-text-mode.no-main-menu.svelte-a0poeb.svelte-a0poeb{border-top:var(--jse-main-border, 1px solid #d7d7d7)}.jse-text-mode.svelte-a0poeb .jse-contents.svelte-a0poeb{flex:1;display:flex;position:relative;flex-direction:column;overflow:hidden;min-width:0;min-height:0;border-left:var(--jse-main-border, 1px solid #d7d7d7);border-right:var(--jse-main-border, 1px solid #d7d7d7)}.jse-text-mode.svelte-a0poeb .jse-contents.svelte-a0poeb:last-child{border-bottom:var(--jse-main-border, 1px solid #d7d7d7)}.jse-text-mode.svelte-a0poeb .jse-contents.jse-hidden.svelte-a0poeb{visibility:hidden;position:absolute;top:0;left:0}.jse-text-mode.svelte-a0poeb .jse-contents.svelte-a0poeb .cm-editor{flex:1;overflow:hidden}.jse-text-mode.svelte-a0poeb .jse-contents.svelte-a0poeb .cm-editor .cm-scroller{font-family:var(--jse-font-family-mono, consolas, menlo, monaco, "Ubuntu Mono", "source-code-pro", monospace);font-size:var(--jse-font-size-mono, 14px);line-height:var(--jse-line-height, calc(1em + 4px));color:var(--jse-delimiter-color, rgba(0, 0, 0, 0.38))}.jse-text-mode.svelte-a0poeb .jse-contents.svelte-a0poeb .cm-editor .cm-gutters{background:var(--jse-panel-background, #ebebeb);color:var(--jse-panel-color-readonly, #b2b2b2);border-right:var(--jse-panel-border, var(--jse-main-border, 1px solid #d7d7d7))}.jse-text-mode.svelte-a0poeb .jse-contents.svelte-a0poeb .cm-editor .cm-activeLine,.jse-text-mode.svelte-a0poeb .jse-contents.svelte-a0poeb .cm-editor .cm-activeLineGutter{background:var(--jse-active-line-background-color, rgba(0, 0, 0, 0.06))}.jse-text-mode.svelte-a0poeb .jse-contents.svelte-a0poeb .cm-editor .cm-selectionBackground{background:var(--jse-selection-background-color, #d3d3d3)}.jse-text-mode.svelte-a0poeb .jse-contents.svelte-a0poeb .cm-editor .cm-searchMatch{background-color:var(--jse-search-match-color, #ffe665);outline:var(--jse-search-match-outline, 1px solid #ffd700)}.jse-text-mode.svelte-a0poeb .jse-contents.svelte-a0poeb .cm-editor .cm-searchMatch.cm-searchMatch-selected{background-color:var(--jse-search-match-active-color, #ffd700);outline:var(--jse-search-match-active-outline, 1px solid #e1be00)}.jse-text-mode.svelte-a0poeb .jse-contents.svelte-a0poeb .cm-editor .cm-selectionMatch{background-color:var(--jse-search-match-background-color, rgba(153, 255, 119, 0.5019607843))}.jse-text-mode.svelte-a0poeb .jse-contents.svelte-a0poeb .cm-editor .cm-foldPlaceholder{background:var(--jse-tag-background, rgba(0, 0, 0, 0.2));color:var(--jse-tag-color, var(--jse-text-color-inverse, #fff));border:none;padding:0 var(--jse-padding, 10px)}.jse-text-mode.svelte-a0poeb .jse-contents.svelte-a0poeb .cm-editor .cm-tooltip{font-size:var(--jse-font-size, 16px);font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);color:var(--jse-tooltip-color, var(--jse-text-color, #4d4d4d));background:var(--jse-tooltip-background, var(--jse-modal-background, #f5f5f5));border:var(--jse-tooltip-border, var(--jse-main-border, 1px solid #d7d7d7))}.jse-text-mode.svelte-a0poeb .jse-contents.svelte-a0poeb .cm-editor .cm-diagnosticAction{background:var(--jse-tooltip-action-button-color, var(--jse-text-color-inverse, #fff));background:var(--jse-tooltip-action-button-background, #4d4d4d)}.jse-text-mode.svelte-a0poeb .jse-contents.svelte-a0poeb .cm-editor .cm-panels{border-bottom:var(--jse-panel-border, var(--jse-main-border, 1px solid #d7d7d7))}.jse-text-mode.svelte-a0poeb .jse-contents.svelte-a0poeb .cm-editor .cm-search{background:var(--jse-panel-background, #ebebeb);color:var(--jse-panel-color, var(--jse-text-color, #4d4d4d));font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size, 16px)}.jse-text-mode.svelte-a0poeb .jse-contents.svelte-a0poeb .cm-editor .cm-search input{font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size-text-mode-search, 80%);color:var(--jse-input-color, var(--jse-text-color, #4d4d4d));border:var(--jse-input-border, 1px solid #d8dbdf);background:var(--jse-input-background, var(--jse-background-color, #fff));margin-right:2px}.jse-text-mode.svelte-a0poeb .jse-contents.svelte-a0poeb .cm-editor .cm-search button{font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size-text-mode-search, 80%);color:var(--jse-panel-button-color, inherit);background:var(--jse-panel-button-background, transparent);border:none;cursor:pointer;text-transform:capitalize;padding:calc(0.5 * var(--jse-padding, 10px)) var(--jse-padding, 10px);margin:0}.jse-text-mode.svelte-a0poeb .jse-contents.svelte-a0poeb .cm-editor .cm-search button:hover{color:var(--panel-button-color-highlight, var(--jse-text-color, #4d4d4d));background:var(--jse-panel-button-background-highlight, #e0e0e0)}.jse-text-mode.svelte-a0poeb .jse-contents.svelte-a0poeb .cm-editor .cm-search label{font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size-text-mode-search, 80%);padding-left:var(--jse-padding, 10px)}.jse-text-mode.svelte-a0poeb .jse-contents.svelte-a0poeb .cm-editor .cm-search label input{margin-right:2px}.jse-text-mode.svelte-a0poeb .jse-contents.svelte-a0poeb .cm-editor .cm-search button[name="close"]{width:32px;height:32px;font-size:24px;line-height:24px;padding:0;right:0;top:-4px}.jse-text-mode.svelte-a0poeb .jse-contents.svelte-a0poeb .cm-editor .cm-cursor-primary{border-color:var(--jse-text-color, #4d4d4d)}.jse-text-mode.svelte-a0poeb .jse-contents .jse-loading-space.svelte-a0poeb{flex:1}.jse-text-mode.svelte-a0poeb .jse-contents .jse-loading.svelte-a0poeb{flex:2;text-align:center;color:var(--jse-panel-color-readonly, #b2b2b2);box-sizing:border-box;font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size, 16px)}.jse-text-mode.svelte-a0poeb .jse-contents.jse-preview.svelte-a0poeb{flex:1;font-family:var(--jse-font-family-mono, consolas, menlo, monaco, "Ubuntu Mono", "source-code-pro", monospace);font-size:var(--jse-font-size-mono, 14px);color:var(--jse-panel-color-readonly, #b2b2b2);overflow:auto;white-space:pre-wrap;word-break:break-word;padding:2px}')}function Wj(e){var t=e.slice(),n=t[11].length===0;return t[98]=n,t}function use(e){var t,n;return t=new Cot({props:{readOnly:e[1],onFormat:e[17],onCompact:e[18],onSort:e[19],onTransform:e[20],onToggleSearch:e[21],onUndo:e[22],onRedo:e[23],canFormat:!e[98],canCompact:!e[98],canSort:!e[98],canTransform:!e[98],canUndo:e[12],canRedo:e[13],onRenderMenu:e[4]}}),{c:function(){Qe(t.$$.fragment)},m:function(r,i){Ze(t,r,i),n=!0},p:function(r,i){var o={};2&i[0]&&(o.readOnly=r[1]),2048&i[0]&&(o.canFormat=!r[98]),2048&i[0]&&(o.canCompact=!r[98]),2048&i[0]&&(o.canSort=!r[98]),2048&i[0]&&(o.canTransform=!r[98]),4096&i[0]&&(o.canUndo=r[12]),8192&i[0]&&(o.canRedo=r[13]),16&i[0]&&(o.onRenderMenu=r[4]),t.$set(o)},i:function(r){n||(X(t.$$.fragment,r),n=!0)},o:function(r){re(t.$$.fragment,r),n=!1},d:function(r){Xe(t,r)}}}function Pot(e){var t;return{c:function(){(t=fe("div")).innerHTML='<div class="jse-loading-space svelte-a0poeb"></div> <div class="jse-loading svelte-a0poeb">loading...</div>',W(t,"class","jse-contents svelte-a0poeb")},m:function(n,r){ke(n,t,r)},p:gt,i:gt,o:gt,d:function(n){n&&Ee(t)}}}function Oot(e){var t,n,r,i,o,a=e[97]&&dse(e),s=!e[97]&&fse(e);return{c:function(){t=fe("div"),n=Ve(),a&&a.c(),r=Ve(),s&&s.c(),i=cr(),W(t,"class","jse-contents svelte-a0poeb"),at(t,"jse-hidden",e[97])},m:function(l,c){ke(l,t,c),e[52](t),ke(l,n,c),a&&a.m(l,c),ke(l,r,c),s&&s.m(l,c),ke(l,i,c),o=!0},p:function(l,c){(!o||268438016&c[0])&&at(t,"jse-hidden",l[97]),l[97]?a?(a.p(l,c),2560&c[0]&&X(a,1)):((a=dse(l)).c(),X(a,1),a.m(r.parentNode,r)):a&&(pt(),re(a,1,1,function(){a=null}),mt()),l[97]?s&&(pt(),re(s,1,1,function(){s=null}),mt()):s?(s.p(l,c),2560&c[0]&&X(s,1)):((s=fse(l)).c(),X(s,1),s.m(i.parentNode,i))},i:function(l){o||(X(a),X(s),o=!0)},o:function(l){re(a),re(s),o=!1},d:function(l){l&&(Ee(t),Ee(n),Ee(r),Ee(i)),e[52](null),a&&a.d(l),s&&s.d(l)}}}function dse(e){var t,n,r,i,o,a=W0(e[11]||"",BO)+"";return t=new Oc({props:{icon:Jh,type:"error",message:"The JSON document is larger than ".concat(Nw(FO,1024),", ")+"and may crash your browser when loading it in text mode. Actual size: ".concat(Nw(e[11].length,1024),"."),actions:[{text:"Open anyway",title:"Open the document in text mode. This may freeze or crash your browser.",onClick:e[24]},{text:"Open in tree mode",title:"Open the document in tree mode. Tree mode can handle large documents.",onClick:e[25]},{text:"Cancel",title:"Cancel opening this large document.",onClick:e[26]}],onClose:e[5]}}),{c:function(){Qe(t.$$.fragment),n=Ve(),r=fe("div"),i=Pt(a),W(r,"class","jse-contents jse-preview svelte-a0poeb")},m:function(s,l){Ze(t,s,l),ke(s,n,l),ke(s,r,l),le(r,i),o=!0},p:function(s,l){var c={};2048&l[0]&&(c.message="The JSON document is larger than ".concat(Nw(FO,1024),", ")+"and may crash your browser when loading it in text mode. Actual size: ".concat(Nw(s[11].length,1024),".")),t.$set(c),(!o||2048&l[0])&&a!==(a=W0(s[11]||"",BO)+"")&&mn(i,a)},i:function(s){o||(X(t.$$.fragment,s),o=!0)},o:function(s){re(t.$$.fragment,s),o=!1},d:function(s){s&&(Ee(n),Ee(r)),Xe(t,s)}}}function fse(e){var t,n,r,i,o,a=!e[14]&&e[0]&&mre(e[11]),s=e[3]&&hse(e),l=e[14]&&pse(e),c=a&&mse(e);return i=new $j({props:{validationErrors:e[10],selectError:e[27]}}),{c:function(){s&&s.c(),t=Ve(),l&&l.c(),n=Ve(),c&&c.c(),r=Ve(),Qe(i.$$.fragment)},m:function(u,f){s&&s.m(u,f),ke(u,t,f),l&&l.m(u,f),ke(u,n,f),c&&c.m(u,f),ke(u,r,f),Ze(i,u,f),o=!0},p:function(u,f){u[3]?s?(s.p(u,f),8&f[0]&&X(s,1)):((s=hse(u)).c(),X(s,1),s.m(t.parentNode,t)):s&&(pt(),re(s,1,1,function(){s=null}),mt()),u[14]?l?(l.p(u,f),16384&f[0]&&X(l,1)):((l=pse(u)).c(),X(l,1),l.m(n.parentNode,n)):l&&(pt(),re(l,1,1,function(){l=null}),mt()),18433&f[0]&&(a=!u[14]&&u[0]&&mre(u[11])),a?c?(c.p(u,f),18433&f[0]&&X(c,1)):((c=mse(u)).c(),X(c,1),c.m(r.parentNode,r)):c&&(pt(),re(c,1,1,function(){c=null}),mt());var h={};1024&f[0]&&(h.validationErrors=u[10]),i.$set(h)},i:function(u){o||(X(s),X(l),X(c),X(i.$$.fragment,u),o=!0)},o:function(u){re(s),re(l),re(c),re(i.$$.fragment,u),o=!1},d:function(u){u&&(Ee(t),Ee(n),Ee(r)),s&&s.d(u),l&&l.d(u),c&&c.d(u),Xe(i,u)}}}function hse(e){var t,n;return t=new kot({props:{editorState:e[8]}}),{c:function(){Qe(t.$$.fragment)},m:function(r,i){Ze(t,r,i),n=!0},p:function(r,i){var o={};256&i[0]&&(o.editorState=r[8]),t.$set(o)},i:function(r){n||(X(t.$$.fragment,r),n=!0)},o:function(r){re(t.$$.fragment,r),n=!1},d:function(r){Xe(t,r)}}}function pse(e){var t,n;return t=new Oc({props:{type:"error",icon:Jh,message:e[14].message,actions:e[15],onClick:e[29],onClose:e[5]}}),{c:function(){Qe(t.$$.fragment)},m:function(r,i){Ze(t,r,i),n=!0},p:function(r,i){var o={};16384&i[0]&&(o.message=r[14].message),32768&i[0]&&(o.actions=r[15]),t.$set(o)},i:function(r){n||(X(t.$$.fragment,r),n=!0)},o:function(r){re(t.$$.fragment,r),n=!1},d:function(r){Xe(t,r)}}}function mse(e){var t,n;return t=new Oc({props:{type:"success",message:"Do you want to format the JSON?",actions:[{icon:Aj,text:"Format",title:"Format JSON: add proper indentation and new lines (Ctrl+I)",onClick:e[17]},{icon:ym,text:"No thanks",title:"Close this message",onClick:e[53]}],onClose:e[5]}}),{c:function(){Qe(t.$$.fragment)},m:function(r,i){Ze(t,r,i),n=!0},p:function(r,i){var o={};1&i[0]&&(o.actions=[{icon:Aj,text:"Format",title:"Format JSON: add proper indentation and new lines (Ctrl+I)",onClick:r[17]},{icon:ym,text:"No thanks",title:"Close this message",onClick:r[53]}]),t.$set(o)},i:function(r){n||(X(t.$$.fragment,r),n=!0)},o:function(r){re(t.$$.fragment,r),n=!1},d:function(r){Xe(t,r)}}}function jot(e){var t,n,r,i,o,a=e[2]&&use(Wj(e)),s=[Oot,Pot],l=[];function c(u,f){return f===0?function(h){var p=h.slice(),m=p[28](p[11],p[9]);return p[97]=m,p}(u):u}return r=function(u,f){return u[16]?1:0}(e),i=l[r]=s[r](c(e,r)),{c:function(){t=fe("div"),a&&a.c(),n=Ve(),i.c(),W(t,"class","jse-text-mode svelte-a0poeb"),at(t,"no-main-menu",!e[2])},m:function(u,f){ke(u,t,f),a&&a.m(t,null),le(t,n),l[r].m(t,null),e[54](t),o=!0},p:function(u,f){u[2]?a?(a.p(Wj(u),f),4&f[0]&&X(a,1)):((a=use(Wj(u))).c(),X(a,1),a.m(t,n)):a&&(pt(),re(a,1,1,function(){a=null}),mt()),i.p(c(u,r),f),(!o||4&f[0])&&at(t,"no-main-menu",!u[2])},i:function(u){o||(X(a),X(i),o=!0)},o:function(u){re(a),re(i),o=!1},d:function(u){u&&Ee(t),a&&a.d(),l[r].d(),e[54](null)}}}function gse(e){return{from:e.from||0,to:e.to||0,message:e.message||"",actions:e.actions,severity:e.severity}}function Mot(e,t,n){var r,i,o,a,s,l,c=t.readOnly,u=t.mainMenuBar,f=t.statusBar,h=t.askToFormat,p=t.externalContent,m=t.externalSelection,b=t.indentation,v=t.tabSize,g=t.escapeUnicodeCharacters,x=t.parser,w=t.validator,y=t.validationParser,C=t.onChange,_=t.onChangeMode,S=t.onSelect,E=t.onError,$=t.onFocus,k=t.onBlur,P=t.onRenderMenu,T=t.onSortModal,j=t.onTransformModal,M=ha("jsoneditor:TextMode"),B={key:"Mod-i",run:Y,shift:ye,preventDefault:!0},V=typeof window>"u";M("isSSR:",V);var R=!1,I=[],G=new j0,F=new j0,z=new j0,A=new j0,L=new j0,N=p,q=ZO(N,b,x),oe=g;Vl(Dn(kt().mark(function ze(){return kt().wrap(function(ct){for(;;)switch(ct.prev=ct.next){case 0:if(!V){ct.next=2;break}return ct.abrupt("return");case 2:try{s=Oe({target:o,initialText:Re(q,R)?"":r.escapeValue(q),readOnly:c,indentation:b})}catch(Ae){console.error(Ae)}case 3:case"end":return ct.stop()}},ze)}))),ll(function(){s&&(M("Destroy CodeMirror editor"),s.destroy())});var ee=!1,be=!1,H=p1(),O=p1();function D(){s&&(M("focus"),s.focus())}var ae=!1;function U(ze){M("patch",ze);var ct=x.parse(q),Ae=vc(ct,ze),Ye=aZ(ct,ze);return Te({text:x.stringify(Ae,null,b)}),{json:Ae,previousJson:ct,undo:Ye,redo:ze}}function Y(){if(M("format"),c)return!1;try{var ze=x.parse(q);return Te({text:x.stringify(ze,null,b)}),n(0,h=!0),!0}catch(ct){E(ct)}return!1}function ye(){if(M("compact"),c)return!1;try{var ze=x.parse(q);return Te({text:x.stringify(ze)}),n(0,h=!1),!0}catch(ct){E(ct)}return!1}function ue(){if(M("repair"),!c)try{Te({text:yu(q)}),n(51,Ke=UO),n(14,_t=null)}catch(ze){E(ze)}}function Ce(ze){var ct=ze.id,Ae=ze.rootPath,Ye=ze.onTransform,lt=ze.onClose;try{var jt=x.parse(q);ae=!0,j({id:ct||O,json:jt,rootPath:Ae||[],onTransform:function(Be){Ye?Ye({operations:Be,json:jt,transformedJson:vc(jt,Be)}):(M("onTransform",Be),U(Be))},onClose:function(){ae=!1,D(),lt&<()}})}catch(Be){E(Be)}}function he(ze,ct){M("setSelection",{anchor:ze,head:ct}),s&&s.dispatch(s.state.update({selection:{anchor:ze,head:ct},scrollIntoView:!0}))}function de(ze,ct){if(ct.state.selection.ranges.length===1){var Ae=ct.state.selection.ranges[0],Ye=q.slice(Ae.from,Ae.to);if(Ye==="{"||Ye==="["){var lt=W6.parse(q),jt=Object.keys(lt.pointers).find(function(Tt){var dt;return((dt=lt.pointers[Tt].value)===null||dt===void 0?void 0:dt.pos)===Ae.from}),Be=lt.pointers[jt];jt&&Be&&Be.value&&Be.valueEnd&&(M("pointer found, selecting inner contents of path:",jt,Be),he(Be.value.pos+1,Be.valueEnd.pos-1))}}}function ve(){return _Ge(yt,{delay:300})}function Oe(ze){var ct=ze.target,Ae=ze.initialText,Ye=ze.readOnly,lt=ze.indentation;M("Create CodeMirror editor",{readOnly:Ye,indentation:lt});var jt=Tr.create({doc:Ae,selection:J(m),extensions:[Rx.of([mGe,B]),G.of(ve()),jGe(),YUe(),JUe(),bUe(),fqe(),FWe(),sUe(),fUe(),Tr.allowMultipleSelections.of(!0),TWe(),DQ(UWe,{fallback:!0}),ZWe(),GKe(),rYe(),PUe(),MUe(),SUe(),ZGe(),Rx.of([].concat(Yn(ZKe),Yn(pGe),Yn(gKe),Yn(_qe),Yn(DWe),Yn(xte),Yn(wGe))),$ot,uYe({hideFirstIndent:!0}),Gt.domEventHandlers({dblclick:de}),Gt.updateListener.of(function(Be){n(8,l=Be.state),Be.docChanged?Je():Be.selectionSet&&pe()}),WGe(),oKe({top:!0}),F.of(Tr.readOnly.of(Ye)),A.of(Tr.tabSize.of(v)),z.of(Ne(lt)),L.of(Gt.theme({},{dark:Le()})),Gt.lineWrapping,fYe]});return s=new Gt({state:jt,parent:ct})}function Le(){return!!o&&getComputedStyle(o).getPropertyValue("--jse-theme").includes("dark")}function Ge(ze){var ct=ze.path,Ae=ze.message,Ye=function(lt,jt){try{var Be=W6.parse(lt),Tt=Mt(jt),dt=Be.pointers[Tt];if(dt)return{path:jt,line:dt.key?dt.key.line:dt.value?dt.value.line:0,column:dt.key?dt.key.column:dt.value?dt.value.column:0,from:dt.key?dt.key.pos:dt.value?dt.value.pos:0,to:dt.keyEnd?dt.keyEnd.pos:dt.valueEnd?dt.valueEnd.pos:0}}catch(K){console.error(K)}return{path:jt,line:0,column:0,from:0,to:0}}(r.escapeValue(q),ct);return{path:ct,line:Ye.line,column:Ye.column,from:Ye.from,to:Ye.to,message:Ae,severity:z0.warning,actions:[]}}function ne(ze,ct){var Ae=ze.line,Ye=ze.column,lt=ze.position,jt=ze.message;return{path:[],line:Ae,column:Ye,from:lt,to:lt,severity:z0.error,message:jt,actions:ct&&!c?[{name:"Auto repair",apply:function(){return ue()}}]:null}}function Te(ze){var ct=arguments.length>1&&arguments[1]!==void 0&&arguments[1],Ae=ZO(ze,b,x),Ye=!lr(ze,N),lt=N;M("setCodeMirrorContent",{isChanged:Ye,forceUpdate:ct}),s&&(Ye||ct)&&(N=ze,n(11,q=Ae),Re(q,R)||s.dispatch({changes:{from:0,to:s.state.doc.length,insert:r.escapeValue(q)}}),it(),Ye&&Wt(N,lt))}function J(ze){return Wre(ze)?wt.fromJSON(ze):void 0}function Z(){return(Z=Dn(kt().mark(function ze(){return kt().wrap(function(ct){for(;;)switch(ct.prev=ct.next){case 0:return M("refresh"),ct.next=3,_e();case 3:case"end":return ct.stop()}},ze)}))).apply(this,arguments)}function ce(){if(s){var ze=s?r.unescapeValue(s.state.doc.toString()):"",ct=ze!==q;if(M("onChangeCodeMirrorValue",{isChanged:ct}),ct){var Ae=N;n(11,q=ze),N={text:q},it(),Wt(N,Ae),eo().then(pe)}}}function _e(){return $e.apply(this,arguments)}function $e(){return($e=Dn(kt().mark(function ze(){var ct;return kt().wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:return Ae.next=2,eo();case 2:s&&(ct=Le(),M("updateTheme",{dark:ct}),s.dispatch({effects:[L.reconfigure(Gt.theme({},{dark:ct}))]}));case 3:case"end":return Ae.stop()}},ze)}))).apply(this,arguments)}function Ne(ze){return Kx.of(typeof ze=="number"?" ".repeat(ze):ze)}function it(){n(12,ee=mqe(s.state)>0),n(13,be=gqe(s.state)>0),M({canUndo:ee,canRedo:be})}ll(function(){ft()}),kj({onMount:Vl,onDestroy:ll,getWindow:function(){return rg(a)},hasFocus:function(){return ae&&document.hasFocus()||ej(a)},onFocus:$,onBlur:function(){ft(),k()}});var Je=A3(ce,300);function ft(){Je.flush()}function Wt(ze,ct){C&&C(ze,ct,{contentErrors:je(),patchResult:null})}function pe(){S(qe({type:ei.text},l.selection.toJSON()))}function Re(ze,ct){return!!ze&&ze.length>FO&&!ct}var Ke=UO,_t=null;function yt(){if(Re(q,R))return[];var ze=je();return Coe(ze)?[gse(ne(ze.parseError,ze.isRepairable))]:ant(ze)?ze.validationErrors.map(Ge).map(gse):[]}function je(){M("validate:start"),ft();var ze=et(r.escapeValue(q),w,x,y);return Coe(ze)?(n(51,Ke=ze.isRepairable?rre:"invalid"),n(14,_t=ze.parseError),n(10,I=[])):(n(51,Ke=UO),n(14,_t=null),n(10,I=(ze==null?void 0:ze.validationErrors)||[])),M("validate:end"),ze}var et=ib(ztt);function ht(){_t&&function(ze){M("select parse error",ze);var ct=ne(ze,!1);he(ct.from!=null?ct.from:0,ct.to!=null?ct.to:0),D()}(_t)}var vt={icon:Vze,text:"Show me",title:"Move to the parse error location",onClick:ht};return e.$$set=function(ze){"readOnly"in ze&&n(1,c=ze.readOnly),"mainMenuBar"in ze&&n(2,u=ze.mainMenuBar),"statusBar"in ze&&n(3,f=ze.statusBar),"askToFormat"in ze&&n(0,h=ze.askToFormat),"externalContent"in ze&&n(30,p=ze.externalContent),"externalSelection"in ze&&n(31,m=ze.externalSelection),"indentation"in ze&&n(32,b=ze.indentation),"tabSize"in ze&&n(33,v=ze.tabSize),"escapeUnicodeCharacters"in ze&&n(34,g=ze.escapeUnicodeCharacters),"parser"in ze&&n(35,x=ze.parser),"validator"in ze&&n(36,w=ze.validator),"validationParser"in ze&&n(37,y=ze.validationParser),"onChange"in ze&&n(38,C=ze.onChange),"onChangeMode"in ze&&n(39,_=ze.onChangeMode),"onSelect"in ze&&n(40,S=ze.onSelect),"onError"in ze&&n(41,E=ze.onError),"onFocus"in ze&&n(42,$=ze.onFocus),"onBlur"in ze&&n(43,k=ze.onBlur),"onRenderMenu"in ze&&n(4,P=ze.onRenderMenu),"onSortModal"in ze&&n(44,T=ze.onSortModal),"onTransformModal"in ze&&n(45,j=ze.onTransformModal)},e.$$.update=function(){8&e.$$.dirty[1]&&(r=XO({escapeControlCharacters:!1,escapeUnicodeCharacters:g})),1073741824&e.$$.dirty[0]&&Te(p),1&e.$$.dirty[1]&&function(ze){if(Wre(ze)){var ct=J(ze);!s||!ct||l&&l.selection.eq(ct)||(M("applyExternalSelection",ct),s.dispatch({selection:ct}))}}(m),32&e.$$.dirty[1]&&function(ze){M("updateLinter",ze),s&&s.dispatch({effects:G.reconfigure(ve())})}(w),2&e.$$.dirty[1]&&function(ze){s&&(M("updateIndentation",ze),s.dispatch({effects:z.reconfigure(Ne(ze))}))}(b),4&e.$$.dirty[1]&&function(ze){s&&(M("updateTabSize",ze),s.dispatch({effects:A.reconfigure(Tr.tabSize.of(ze))}))}(v),2&e.$$.dirty[0]&&function(ze){s&&(M("updateReadOnly",ze),s.dispatch({effects:[F.reconfigure(Tr.readOnly.of(ze))]}))}(c),524296&e.$$.dirty[1]&&oe!==g&&(n(50,oe=g),M("forceUpdateText",{escapeUnicodeCharacters:g}),s&&s.dispatch({changes:{from:0,to:s.state.doc.length,insert:r.escapeValue(q)}})),2&e.$$.dirty[0]|1048576&e.$$.dirty[1]&&n(15,i=Ke!==rre||c?[vt]:[{icon:rx,text:"Auto repair",title:"Automatically repair JSON",onClick:ue},vt])},[h,c,u,f,P,D,o,a,l,R,I,q,ee,be,_t,i,V,Y,ye,function(){var ze;if(!c)try{var ct=x.parse(q);ae=!0,T({id:H,json:ct,rootPath:[],onSort:(ze=Dn(kt().mark(function Ae(Ye){var lt;return kt().wrap(function(jt){for(;;)switch(jt.prev=jt.next){case 0:lt=Ye.operations,M("onSort",lt),U(lt);case 3:case"end":return jt.stop()}},Ae)})),function(Ae){return ze.apply(this,arguments)}),onClose:function(){ae=!1,D()}})}catch(Ae){E(Ae)}},function(){c||Ce({rootPath:[]})},function(){s&&(o&&o.querySelector(".cm-search")?SP(s):_P(s))},function(){c||s&&(lP(s),D())},function(){c||s&&(e8(s),D())},function(){n(9,R=!0),Te(p,!0)},function(){_(Aa.tree)},function(){ce()},function(ze){M("select validation error",ze);var ct=Ge(ze),Ae=ct.from,Ye=ct.to;Ae!==null&&Ye!==null&&(he(Ae,Ye),D())},Re,ht,p,m,b,v,g,x,w,y,C,_,S,E,$,k,T,j,U,Ce,function(){return Z.apply(this,arguments)},je,oe,Ke,function(ze){rr[ze?"unshift":"push"](function(){n(6,o=ze)})},function(){return n(0,h=!1)},function(ze){rr[ze?"unshift":"push"](function(){n(7,a=ze)})}]}Uj.style=function(e){return Tot(e||[])};var Aot=function(e){function t(n){var r;return Qt(this,t),ln(Jt(r=an(this,t)),n,Mot,jot,Pn,{readOnly:1,mainMenuBar:2,statusBar:3,askToFormat:0,externalContent:30,externalSelection:31,indentation:32,tabSize:33,escapeUnicodeCharacters:34,parser:35,validator:36,validationParser:37,onChange:38,onChangeMode:39,onSelect:40,onError:41,onFocus:42,onBlur:43,onRenderMenu:4,onSortModal:44,onTransformModal:45,focus:5,patch:46,openTransformModal:47,refresh:48,validate:49},Rot,[-1,-1,-1,-1]),r}return sn(t,cn),en(t,[{key:"focus",get:function(){return this.$$.ctx[5]}},{key:"patch",get:function(){return this.$$.ctx[46]}},{key:"openTransformModal",get:function(){return this.$$.ctx[47]}},{key:"refresh",get:function(){return this.$$.ctx[48]}},{key:"validate",get:function(){return this.$$.ctx[49]}}]),t}();function Not(e){var t,n;return t=new Pw({props:{items:e[0]}}),{c:function(){Qe(t.$$.fragment)},m:function(r,i){Ze(t,r,i),n=!0},p:function(r,i){var o={};1&Sn(i,1)[0]&&(o.items=r[0]),t.$set(o)},i:function(r){n||(X(t.$$.fragment,r),n=!0)},o:function(r){re(t.$$.fragment,r),n=!1},d:function(r){Xe(t,r)}}}function Dot(e,t,n){var r,i,o=t.json,a=t.readOnly,s=t.historyState,l=t.onSort,c=t.onTransform,u=t.onContextMenu,f=t.onUndo,h=t.onRedo,p=t.onRenderMenu;return e.$$set=function(m){"json"in m&&n(1,o=m.json),"readOnly"in m&&n(2,a=m.readOnly),"historyState"in m&&n(3,s=m.historyState),"onSort"in m&&n(4,l=m.onSort),"onTransform"in m&&n(5,c=m.onTransform),"onContextMenu"in m&&n(6,u=m.onContextMenu),"onUndo"in m&&n(7,f=m.onUndo),"onRedo"in m&&n(8,h=m.onRedo),"onRenderMenu"in m&&n(9,p=m.onRenderMenu)},e.$$.update=function(){510&e.$$.dirty&&n(10,r=a?[{type:"space"}]:[{type:"button",icon:ox,title:"Sort",className:"jse-sort",onClick:l,disabled:a||o===void 0},{type:"button",icon:nx,title:"Transform contents (filter, sort, project)",className:"jse-transform",onClick:c,disabled:a||o===void 0},{type:"button",icon:TZ,title:VO,className:"jse-contextmenu",onClick:u},{type:"separator"},{type:"button",icon:PT,title:"Undo (Ctrl+Z)",className:"jse-undo",onClick:f,disabled:!s.canUndo},{type:"button",icon:RT,title:"Redo (Ctrl+Shift+Z)",className:"jse-redo",onClick:h,disabled:!s.canRedo},{type:"space"}]),1536&e.$$.dirty&&n(0,i=p(r))},[i,o,a,s,l,c,u,f,h,p,r]}var Iot=function(e){function t(n){var r;return Qt(this,t),ln(Jt(r=an(this,t)),n,Dot,Not,Pn,{json:1,readOnly:2,historyState:3,onSort:4,onTransform:5,onContextMenu:6,onUndo:7,onRedo:8,onRenderMenu:9}),r}return sn(t,cn),en(t)}();function vse(e,t,n){var r=e.slice();return r[9]=t[n],r}function Lot(e){var t,n,r=e[9].component,i=bse(e);return{c:function(){i.c(),t=cr()},m:function(o,a){i.m(o,a),ke(o,t,a),n=!0},p:function(o,a){1&a&&Pn(r,r=o[9].component)?(pt(),re(i,1,1,gt),mt(),(i=bse(o)).c(),X(i,1),i.m(t.parentNode,t)):i.p(o,a)},i:function(o){n||(X(i),n=!0)},o:function(o){re(i),n=!1},d:function(o){o&&Ee(t),i.d(o)}}}function Bot(e){var t,n=e[9].action,r=yse(e);return{c:function(){r.c(),t=cr()},m:function(i,o){r.m(i,o),ke(i,t,o)},p:function(i,o){1&o&&Pn(n,n=i[9].action)?(r.d(1),(r=yse(i)).c(),r.m(t.parentNode,t)):r.p(i,o)},i:gt,o:gt,d:function(i){i&&Ee(t),r.d(i)}}}function bse(e){var t,n,r,i=[e[9].props],o=e[9].component;function a(s,l){var c={};if(l!==void 0&&1&l)c=Hl(i,[wp(s[9].props)]);else for(var u=0;u<i.length;u+=1)c=Fs(c,i[u]);return{props:c}}return o&&(t=Lu(o,a(e))),{c:function(){t&&Qe(t.$$.fragment),n=cr()},m:function(s,l){t&&Ze(t,s,l),ke(s,n,l),r=!0},p:function(s,l){if(1&l&&o!==(o=s[9].component)){if(t){pt();var c=t;re(c.$$.fragment,1,0,function(){Xe(c,1)}),mt()}o?(Qe((t=Lu(o,a(s,l))).$$.fragment),X(t.$$.fragment,1),Ze(t,n.parentNode,n)):t=null}else if(o){var u=1&l?Hl(i,[wp(s[9].props)]):{};t.$set(u)}},i:function(s){r||(t&&X(t.$$.fragment,s),r=!0)},o:function(s){t&&re(t.$$.fragment,s),r=!1},d:function(s){s&&Ee(n),t&&Xe(t,s)}}}function yse(e){var t,n,r,i;return{c:function(){W(t=fe("div"),"role","button"),W(t,"tabindex","-1"),W(t,"class","jse-value jse-readonly-password"),W(t,"data-type","selectable-value")},m:function(o,a){ke(o,t,a),r||(i=Do(n=e[12].call(null,t,e[9].props)),r=!0)},p:function(o,a){e=o,n&&da(n.update)&&1&a&&n.update.call(null,e[9].props)},d:function(o){o&&Ee(t),r=!1,i()}}}function xse(e){var t,n,r,i,o,a=[Bot,Lot],s=[];function l(u,f){return 1&f&&(t=null),t==null&&(t=!!_oe(u[9])),t?0:1}function c(u,f){return f===0?function(h){var p=h.slice(),m=p[9].action;return p[12]=m,p}(u):u}return n=l(e,-1),r=s[n]=a[n](c(e,n)),{c:function(){r.c(),i=cr()},m:function(u,f){s[n].m(u,f),ke(u,i,f),o=!0},p:function(u,f){var h=n;(n=l(u,f))===h?s[n].p(c(u,n),f):(pt(),re(s[h],1,1,function(){s[h]=null}),mt(),(r=s[n])?r.p(c(u,n),f):(r=s[n]=a[n](c(u,n))).c(),X(r,1),r.m(i.parentNode,i))},i:function(u){o||(X(r),o=!0)},o:function(u){re(r),o=!1},d:function(u){u&&Ee(i),s[n].d(u)}}}function Fot(e){for(var t,n,r=kn(e[0]),i=[],o=0;o<r.length;o+=1)i[o]=xse(vse(e,r,o));var a=function(s){return re(i[s],1,1,function(){i[s]=null})};return{c:function(){for(var s=0;s<i.length;s+=1)i[s].c();t=cr()},m:function(s,l){for(var c=0;c<i.length;c+=1)i[c]&&i[c].m(s,l);ke(s,t,l),n=!0},p:function(s,l){var c=Sn(l,1)[0];if(1&c){var u;for(r=kn(s[0]),u=0;u<r.length;u+=1){var f=vse(s,r,u);i[u]?(i[u].p(f,c),X(i[u],1)):(i[u]=xse(f),i[u].c(),X(i[u],1),i[u].m(t.parentNode,t))}for(pt(),u=r.length;u<i.length;u+=1)a(u);mt()}},i:function(s){if(!n){for(var l=0;l<r.length;l+=1)X(i[l]);n=!0}},o:function(s){i=i.filter(Boolean);for(var l=0;l<i.length;l+=1)re(i[l]);n=!1},d:function(s){s&&Ee(t),Qi(i,s)}}}function zot(e,t,n){var r,i,o=t.path,a=t.value,s=t.context,l=t.enforceString,c=t.selection,u=t.searchResultItems;function f(h,p){return s.onPatch(function(m,b){return m.flatMap(function(v){if(vT(v)){var g=gc(v.path);if(g.length>0){for(var x=[v],w=sr(g);w.length>0&&!Ml(b,w);)x.unshift({op:"add",path:Mt(w),value:{}}),w=sr(w);return x}}return v})}(h,s.getJson()),p)}return e.$$set=function(h){"path"in h&&n(1,o=h.path),"value"in h&&n(2,a=h.value),"context"in h&&n(3,s=h.context),"enforceString"in h&&n(4,l=h.enforceString),"selection"in h&&n(5,c=h.selection),"searchResultItems"in h&&n(6,u=h.searchResultItems)},e.$$.update=function(){40&e.$$.dirty&&n(7,r=!s.readOnly&&ur(c)&&Qa(c)),254&e.$$.dirty&&n(0,i=s.onRenderValue({path:o,value:a,readOnly:s.readOnly,enforceString:l,isEditing:r,parser:s.parser,normalization:s.normalization,selection:c,searchResultItems:u,onPatch:f,onPasteJson:s.onPasteJson,onSelect:s.onSelect,onFind:s.onFind,findNextInside:s.findNextInside,focus:s.focus}))},[i,o,a,s,l,c,u,r]}var Vot=function(e){function t(n){var r;return Qt(this,t),ln(Jt(r=an(this,t)),n,zot,Fot,Pn,{path:1,value:2,context:3,enforceString:4,selection:5,searchResultItems:6}),r}return sn(t,cn),en(t)}();function Hot(e){En(e,"svelte-1o4m3u7",'.jse-inline-value.svelte-1o4m3u7{font-family:var(--jse-font-family-mono, consolas, menlo, monaco, "Ubuntu Mono", "source-code-pro", monospace);font-size:var(--jse-font-size-mono, 14px);line-height:var(--jse-line-height, calc(1em + 4px));border:none;padding:0 calc(0.5 * var(--jse-padding, 10px));background:transparent;color:inherit;cursor:pointer}.jse-inline-value.svelte-1o4m3u7:hover{background:var(--jse-hover-background-color, rgba(0, 0, 0, 0.06))}.jse-inline-value.jse-selected.svelte-1o4m3u7{background:var(--jse-selection-background-color, #d3d3d3)}')}function Uot(e){var t,n,r,i,o,a=W0((t=e[2].stringify(e[1]))!==null&&t!==void 0?t:"",50)+"";return{c:function(){n=fe("button"),r=Pt(a),W(n,"type","button"),W(n,"class","jse-inline-value svelte-1o4m3u7"),at(n,"jse-selected",e[3])},m:function(s,l){ke(s,n,l),le(n,r),i||(o=ut(n,"dblclick",e[5]),i=!0)},p:function(s,l){var c,u=Sn(l,1)[0];6&u&&a!==(a=W0((c=s[2].stringify(s[1]))!==null&&c!==void 0?c:"",50)+"")&&mn(r,a),8&u&&at(n,"jse-selected",s[3])},i:gt,o:gt,d:function(s){s&&Ee(n),i=!1,o()}}}function Wot(e,t,n){var r=t.path,i=t.value,o=t.parser,a=t.isSelected,s=t.onEdit;return e.$$set=function(l){"path"in l&&n(0,r=l.path),"value"in l&&n(1,i=l.value),"parser"in l&&n(2,o=l.parser),"isSelected"in l&&n(3,a=l.isSelected),"onEdit"in l&&n(4,s=l.onEdit)},[r,i,o,a,s,function(){return s(r)}]}var qot=function(e){function t(n){var r;return Qt(this,t),ln(Jt(r=an(this,t)),n,Wot,Uot,Pn,{path:0,value:1,parser:2,isSelected:3,onEdit:4},Hot),r}return sn(t,cn),en(t)}();function Got(e){En(e,"svelte-2v0aqj",".jse-column-header.svelte-2v0aqj.svelte-2v0aqj{background:none;border:none;font-family:inherit;font-size:inherit;color:inherit;display:flex;gap:var(--jse-padding, 10px);padding:calc(0.5 * var(--jse-padding, 10px)) var(--jse-padding, 10px) calc(0.5 * var(--jse-padding, 10px)) calc(0.5 * var(--jse-padding, 10px));width:100%}.jse-column-header.svelte-2v0aqj.svelte-2v0aqj:hover{background:var(--jse-table-header-background-highlight, #e8e8e8)}.jse-column-header.svelte-2v0aqj.svelte-2v0aqj:not(.jse-column-header.jse-readonly){cursor:pointer}.jse-column-header.svelte-2v0aqj span.jse-column-sort-icon.svelte-2v0aqj{height:1em}")}function wse(e){var t,n,r,i;return n=new gr({props:{data:e[1]===Ul.asc?Al:$Z}}),{c:function(){t=fe("span"),Qe(n.$$.fragment),W(t,"class","jse-column-sort-icon svelte-2v0aqj"),W(t,"title",r="Currently sorted in ".concat(e[2]," order"))},m:function(o,a){ke(o,t,a),Ze(n,t,null),i=!0},p:function(o,a){var s={};2&a&&(s.data=o[1]===Ul.asc?Al:$Z),n.$set(s),(!i||4&a&&r!==(r="Currently sorted in ".concat(o[2]," order")))&&W(t,"title",r)},i:function(o){i||(X(n.$$.fragment,o),i=!0)},o:function(o){re(n.$$.fragment,o),i=!1},d:function(o){o&&Ee(t),Xe(n)}}}function Kot(e){var t,n,r,i,o,a,s,l,c=W0(e[3],50)+"",u=e[1]!==void 0&&wse(e);return{c:function(){t=fe("button"),n=fe("span"),r=Pt(c),i=Ve(),u&&u.c(),W(n,"class","jse-column-name"),W(t,"type","button"),W(t,"class","jse-column-header svelte-2v0aqj"),W(t,"title",o=e[0]?e[3]:e[3]+" (Click to sort the data by this column)"),at(t,"jse-readonly",e[0])},m:function(f,h){ke(f,t,h),le(t,n),le(n,r),le(t,i),u&&u.m(t,null),a=!0,s||(l=ut(t,"click",e[4]),s=!0)},p:function(f,h){var p=Sn(h,1)[0];(!a||8&p)&&c!==(c=W0(f[3],50)+"")&&mn(r,c),f[1]!==void 0?u?(u.p(f,p),2&p&&X(u,1)):((u=wse(f)).c(),X(u,1),u.m(t,null)):u&&(pt(),re(u,1,1,function(){u=null}),mt()),(!a||9&p&&o!==(o=f[0]?f[3]:f[3]+" (Click to sort the data by this column)"))&&W(t,"title",o),(!a||1&p)&&at(t,"jse-readonly",f[0])},i:function(f){a||(X(u),a=!0)},o:function(f){re(u),a=!1},d:function(f){f&&Ee(t),u&&u.d(),s=!1,l()}}}function Yot(e,t,n){var r,i,o,a=t.path,s=t.sortedColumn,l=t.readOnly,c=t.onSort;return e.$$set=function(u){"path"in u&&n(5,a=u.path),"sortedColumn"in u&&n(6,s=u.sortedColumn),"readOnly"in u&&n(0,l=u.readOnly),"onSort"in u&&n(7,c=u.onSort)},e.$$.update=function(){var u;32&e.$$.dirty&&n(3,r=kr(a)?"values":zs(a)),96&e.$$.dirty&&n(1,i=s&&lr(a,(u=s)===null||u===void 0?void 0:u.path)?s.sortDirection:void 0),2&e.$$.dirty&&n(2,o=i?XJe[i]:void 0)},[l,i,o,r,function(){l||c({path:a,sortDirection:i===Ul.asc?Ul.desc:Ul.asc})},a,s,c]}var Dw,Iw,Zot=function(e){function t(n){var r;return Qt(this,t),ln(Jt(r=an(this,t)),n,Yot,Kot,Pn,{path:5,sortedColumn:6,readOnly:0,onSort:7},Got),r}return sn(t,cn),en(t)}();function Cse(e,t){return Dw||(Iw=new WeakMap,Dw=new ResizeObserver(function(n){var r,i=ny(n);try{for(i.s();!(r=i.n()).done;){var o=r.value,a=Iw.get(o.target);a&&a(o.target)}}catch(s){i.e(s)}finally{i.f()}})),Iw.set(e,t),Dw.observe(e),{destroy:function(){Iw.delete(e),Dw.unobserve(e)}}}function Xot(e){var t,n;return t=new Goe({props:{items:e[2],onCloseContextMenu:e[1],tip:e[0]?"Tip: you can open this context menu via right-click or with Ctrl+Q":void 0}}),{c:function(){Qe(t.$$.fragment)},m:function(r,i){Ze(t,r,i),n=!0},p:function(r,i){var o=Sn(i,1)[0],a={};4&o&&(a.items=r[2]),2&o&&(a.onCloseContextMenu=r[1]),1&o&&(a.tip=r[0]?"Tip: you can open this context menu via right-click or with Ctrl+Q":void 0),t.$set(a)},i:function(r){n||(X(t.$$.fragment,r),n=!0)},o:function(r){re(t.$$.fragment,r),n=!1},d:function(r){Xe(t,r)}}}function Jot(e,t,n){var r,i,o,a,s,l,c,u,f,h,p=t.json,m=t.documentState,b=t.parser,v=t.showTip,g=t.onCloseContextMenu,x=t.onRenderContextMenu,w=t.onEditValue,y=t.onEditRow,C=t.onToggleEnforceString,_=t.onCut,S=t.onCopy,E=t.onPaste,$=t.onRemove,k=t.onDuplicateRow,P=t.onInsertBeforeRow,T=t.onInsertAfterRow,j=t.onRemoveRow;return e.$$set=function(M){"json"in M&&n(3,p=M.json),"documentState"in M&&n(4,m=M.documentState),"parser"in M&&n(5,b=M.parser),"showTip"in M&&n(0,v=M.showTip),"onCloseContextMenu"in M&&n(1,g=M.onCloseContextMenu),"onRenderContextMenu"in M&&n(6,x=M.onRenderContextMenu),"onEditValue"in M&&n(7,w=M.onEditValue),"onEditRow"in M&&n(8,y=M.onEditRow),"onToggleEnforceString"in M&&n(9,C=M.onToggleEnforceString),"onCut"in M&&n(10,_=M.onCut),"onCopy"in M&&n(11,S=M.onCopy),"onPaste"in M&&n(12,E=M.onPaste),"onRemove"in M&&n(13,$=M.onRemove),"onDuplicateRow"in M&&n(14,k=M.onDuplicateRow),"onInsertBeforeRow"in M&&n(15,P=M.onInsertBeforeRow),"onInsertAfterRow"in M&&n(16,T=M.onInsertAfterRow),"onRemoveRow"in M&&n(17,j=M.onRemoveRow)},e.$$.update=function(){16&e.$$.dirty&&n(24,r=m.selection),8&e.$$.dirty&&n(26,i=p!==void 0),16777216&e.$$.dirty&&n(19,o=!!r),16777224&e.$$.dirty&&n(25,a=p!==void 0&&r?Ht(p,un(r)):void 0),83886080&e.$$.dirty&&n(20,s=i&&(Wr(r)||to(r)||ur(r))),83886080&e.$$.dirty&&n(23,l=i&&r!=null&&fw(r)),41943040&e.$$.dirty&&n(21,c=l&&!Mi(a)),50331696&e.$$.dirty&&n(22,u=r!=null&&a!==void 0&&q0(a,m.enforceStringMap,Mt(un(r)),b)),16514944&e.$$.dirty&&n(18,h=[{type:"separator"},{type:"row",items:[{type:"column",items:[{type:"label",text:"Table cell:"},{type:"dropdown-button",main:{type:"button",onClick:function(){return w()},icon:vm,text:"Edit",title:"Edit the value (Double-click on the value)",disabled:!l},width:"11em",items:[{type:"button",icon:vm,text:"Edit",title:"Edit the value (Double-click on the value)",onClick:function(){return w()},disabled:!l},{type:"button",icon:u?tb:nb,text:"Enforce string",title:"Enforce keeping the value as string when it contains a numeric value",onClick:function(){return C()},disabled:!c}]},{type:"dropdown-button",main:{type:"button",onClick:function(){return _(!0)},icon:gm,text:"Cut",title:"Cut selected contents, formatted with indentation (Ctrl+X)",disabled:!s},width:"10em",items:[{type:"button",icon:gm,text:"Cut formatted",title:"Cut selected contents, formatted with indentation (Ctrl+X)",onClick:function(){return _(!0)},disabled:!s},{type:"button",icon:gm,text:"Cut compacted",title:"Cut selected contents, without indentation (Ctrl+Shift+X)",onClick:function(){return _(!1)},disabled:!s}]},{type:"dropdown-button",main:{type:"button",onClick:function(){return S(!0)},icon:cf,text:"Copy",title:"Copy selected contents, formatted with indentation (Ctrl+C)",disabled:!s},width:"12em",items:[{type:"button",icon:cf,text:"Copy formatted",title:"Copy selected contents, formatted with indentation (Ctrl+C)",onClick:function(){return S(!1)},disabled:!s},{type:"button",icon:cf,text:"Copy compacted",title:"Copy selected contents, without indentation (Ctrl+Shift+C)",onClick:function(){return S(!1)},disabled:!s}]},{type:"button",onClick:function(){return E()},icon:SZ,text:"Paste",title:"Paste clipboard contents (Ctrl+V)",disabled:!o},{type:"button",onClick:function(){return $()},icon:TT,text:"Remove",title:"Remove selected contents (Delete)",disabled:!s}]},{type:"column",items:[{type:"label",text:"Table row:"},{type:"button",onClick:function(){return y()},icon:vm,text:"Edit row",title:"Edit the current row",disabled:!s},{type:"button",onClick:function(){return k()},icon:OZ,text:"Duplicate row",title:"Duplicate the current row",disabled:!o},{type:"button",onClick:function(){return P()},icon:bm,text:"Insert before",title:"Insert a row before the current row",disabled:!o},{type:"button",onClick:function(){return T()},icon:bm,text:"Insert after",title:"Insert a row after the current row",disabled:!o},{type:"button",onClick:function(){return j()},icon:TT,text:"Remove row",title:"Remove current row",disabled:!o}]}]}]),262208&e.$$.dirty&&n(2,f=x(h))},[v,g,f,p,m,b,x,w,y,C,_,S,E,$,k,P,T,j,h,o,s,c,u,l,r,a,i]}var Qot=function(e){function t(n){var r;return Qt(this,t),ln(Jt(r=an(this,t)),n,Jot,Xot,Pn,{json:3,documentState:4,parser:5,showTip:0,onCloseContextMenu:1,onRenderContextMenu:6,onEditValue:7,onEditRow:8,onToggleEnforceString:9,onCut:10,onCopy:11,onPaste:12,onRemove:13,onDuplicateRow:14,onInsertBeforeRow:15,onInsertAfterRow:16,onRemoveRow:17}),r}return sn(t,cn),en(t)}();function eat(e){En(e,"svelte-fxr3ye",'.jse-table-mode-welcome.svelte-fxr3ye.svelte-fxr3ye{flex:1;display:flex;flex-direction:column;overflow:auto;align-items:center;border-left:var(--jse-main-border, 1px solid #d7d7d7);border-right:var(--jse-main-border, 1px solid #d7d7d7)}.jse-table-mode-welcome.svelte-fxr3ye.svelte-fxr3ye:last-child{border-bottom:var(--jse-main-border, 1px solid #d7d7d7)}.jse-table-mode-welcome.svelte-fxr3ye .jse-space.jse-before.svelte-fxr3ye{flex:1}.jse-table-mode-welcome.svelte-fxr3ye .jse-nested-arrays.svelte-fxr3ye{display:flex;flex-direction:column;gap:var(--jse-padding, 10px);max-width:300px;margin:2em var(--jse-padding, 10px);font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size, 16px)}.jse-table-mode-welcome.svelte-fxr3ye .jse-nested-arrays .jse-nested-arrays-info.svelte-fxr3ye{color:var(--jse-panel-color-readonly, #b2b2b2)}.jse-table-mode-welcome.svelte-fxr3ye .jse-nested-arrays button.jse-nested-array-action.svelte-fxr3ye{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size, 16px);padding:5px;margin:0;background:var(--jse-button-primary-background, var(--jse-theme-color, #3883fa));color:var(--jse-button-primary-color, #fff);padding:var(--jse-padding, 10px) calc(2 * var(--jse-padding, 10px));border-radius:3px;text-align:left}.jse-table-mode-welcome.svelte-fxr3ye .jse-nested-arrays button.jse-nested-array-action.svelte-fxr3ye:hover{background:var(--jse-button-primary-background-highlight, var(--jse-theme-color-highlight, #5f9dff))}.jse-table-mode-welcome.svelte-fxr3ye .jse-nested-arrays button.jse-nested-array-action.svelte-fxr3ye:disabled{background:var(--jse-button-primary-background-disabled, #9d9d9d)}.jse-table-mode-welcome.svelte-fxr3ye .jse-nested-arrays button.jse-nested-array-action .jse-nested-array-count.svelte-fxr3ye{opacity:0.5;white-space:nowrap}.jse-table-mode-welcome.svelte-fxr3ye .jse-space.jse-after.svelte-fxr3ye{flex:2}')}function _se(e,t,n){var r=e.slice();r[14]=t[n];var i=r[8](r[14]);return r[15]=i,r}function tat(e){var t,n;return{c:function(){t=Pt(e[6]),n=Pt(" cannot be opened in table mode.")},m:function(r,i){ke(r,t,i),ke(r,n,i)},p:function(r,i){64&i&&mn(t,r[6])},d:function(r){r&&(Ee(t),Ee(n))}}}function nat(e){var t;return{c:function(){t=Pt(`An object cannot be opened in table mode. You can open a nested array instead, or open the
|
4149
4149
|
document in tree mode.`)},m:function(n,r){ke(n,t,r)},p:gt,d:function(n){n&&Ee(t)}}}function rat(e){var t;return{c:function(){t=Pt("You can open the document in tree mode instead.")},m:function(n,r){ke(n,t,r)},d:function(n){n&&Ee(t)}}}function iat(e){var t,n,r;return{c:function(){t=Pt("You can open the document in tree mode instead, or paste a JSON Array using "),(n=fe("b")).textContent="Ctrl+V",r=Pt(".")},m:function(i,o){ke(i,t,o),ke(i,n,o),ke(i,r,o)},d:function(i){i&&(Ee(t),Ee(n),Ee(r))}}}function Sse(e){var t,n,r,i,o,a,s,l,c,u,f,h,p,m=zs(e[14])+"",b=e[15]+"",v=e[15]!==1?"items":"item";function g(){return e[12](e[14])}return{c:function(){t=fe("button"),n=Pt(e[7]),r=Pt(' "'),i=Pt(m),o=Pt(`"
|
4150
|
-
`),a=fe("span"),s=Pt("("),l=Pt(b),c=Ve(),u=Pt(v),f=Pt(")"),W(a,"class","jse-nested-array-count svelte-fxr3ye"),W(t,"type","button"),W(t,"class","jse-nested-array-action svelte-fxr3ye")},m:function(x,w){ke(x,t,w),le(t,n),le(t,r),le(t,i),le(t,o),le(t,a),le(a,s),le(a,l),le(a,c),le(a,u),le(a,f),h||(p=ut(t,"click",g),h=!0)},p:function(x,w){e=x,128&w&&mn(n,e[7]),8&w&&m!==(m=zs(e[14])+"")&&mn(i,m),8&w&&b!==(b=e[15]+"")&&mn(l,b),8&w&&v!==(v=e[15]!==1?"items":"item")&&mn(u,v)},d:function(x){x&&Ee(t),h=!1,p()}}}function oat(e){var t,n,r,i,o,a,s,l,c,u,f,h,p,m,b,v,g,x;function w(T,j){return T[5]?nat:tat}var y=w(e),C=y(e);function _(T,j){return T[4]&&!T[0]?iat:rat}for(var S=_(e),E=S(e),$=kn(e[3]),k=[],P=0;P<$.length;P+=1)k[P]=Sse(_se(e,$,P));return{c:function(){t=fe("div"),n=fe("div"),r=Ve(),i=fe("div"),o=fe("div"),a=Pt(e[6]),s=Ve(),l=fe("div"),C.c(),c=Ve(),E.c(),u=Ve();for(var T=0;T<k.length;T+=1)k[T].c();f=Ve(),h=fe("button"),p=Pt(e[7]),m=Pt(" in tree mode"),b=Ve(),v=fe("div"),W(n,"class","jse-space jse-before svelte-fxr3ye"),W(o,"class","jse-nested-arrays-title"),W(l,"class","jse-nested-arrays-info svelte-fxr3ye"),W(h,"type","button"),W(h,"class","jse-nested-array-action svelte-fxr3ye"),W(i,"class","jse-nested-arrays svelte-fxr3ye"),W(v,"class","jse-space jse-after svelte-fxr3ye"),W(t,"class","jse-table-mode-welcome svelte-fxr3ye")},m:function(T,j){ke(T,t,j),le(t,n),le(t,r),le(t,i),le(i,o),le(o,a),le(i,s),le(i,l),C.m(l,null),le(l,c),E.m(l,null),le(i,u);for(var M=0;M<k.length;M+=1)k[M]&&k[M].m(i,null);le(i,f),le(i,h),le(h,p),le(h,m),le(t,b),le(t,v),g||(x=ut(h,"click",e[13]),g=!0)},p:function(T,j){var M=Sn(j,1)[0];if(64&M&&mn(a,T[6]),y===(y=w(T))&&C?C.p(T,M):(C.d(1),(C=y(T))&&(C.c(),C.m(l,c))),S!==(S=_(T))&&(E.d(1),(E=S(T))&&(E.c(),E.m(l,null))),394&M){var B;for($=kn(T[3]),B=0;B<$.length;B+=1){var V=_se(T,$,B);k[B]?k[B].p(V,M):(k[B]=Sse(V),k[B].c(),k[B].m(i,f))}for(;B<k.length;B+=1)k[B].d(1);k.length=$.length}128&M&&mn(p,T[7])},i:gt,o:gt,d:function(T){T&&Ee(t),C.d(),E.d(),Qi(k,T),g=!1,x()}}}function aat(e,t,n){var r,i,o,a,s,l=t.text,c=t.json,u=t.readOnly,f=t.parser,h=t.openJSONEditorModal,p=t.onChangeMode;return e.$$set=function(m){"text"in m&&n(9,l=m.text),"json"in m&&n(10,c=m.json),"readOnly"in m&&n(0,u=m.readOnly),"parser"in m&&n(11,f=m.parser),"openJSONEditorModal"in m&&n(1,h=m.openJSONEditorModal),"onChangeMode"in m&&n(2,p=m.onChangeMode)},e.$$.update=function(){1&e.$$.dirty&&n(7,r=u?"View":"Edit"),1024&e.$$.dirty&&n(3,s=c?function(m){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2,v=[];return function g(x,w){Ti(x)&&w.length<b&&Object.keys(x).forEach(function(y){g(x[y],w.concat(y))}),Qr(x)&&v.push(w)}(m,[]),v}(c).slice(0,99).filter(function(m){return m.length>0}):[]),8&e.$$.dirty&&n(5,i=!kr(s)),1536&e.$$.dirty&&n(4,o=c===void 0&&(l===""||l===void 0)),3120&e.$$.dirty&&n(6,a=i?"Object with nested arrays":o?"An empty document":Ti(c)?"An object":Qr(c)?"An empty array":"A ".concat(GO(c,f)))},[u,h,p,s,o,i,a,r,function(m){return Ht(c,m).length},l,c,f,function(m){return h(m)},function(){return p(Aa.tree)}]}var sat=function(e){function t(n){var r;return Qt(this,t),ln(Jt(r=an(this,t)),n,aat,oat,Pn,{text:9,json:10,readOnly:0,parser:11,openJSONEditorModal:1,onChangeMode:2},eat),r}return sn(t,cn),en(t)}();function lat(e){En(e,"svelte-1nml1r3",".jse-column-header.svelte-1nml1r3{background:none;border:none;font-family:inherit;font-size:inherit;color:inherit;display:flex;gap:var(--jse-padding, 10px);padding:calc(0.5 * var(--jse-padding, 10px)) var(--jse-padding, 10px) calc(0.5 * var(--jse-padding, 10px)) calc(0.5 * var(--jse-padding, 10px));width:100%}.jse-column-header.svelte-1nml1r3:hover{background:var(--jse-table-header-background-highlight, #e8e8e8)}.jse-column-header.svelte-1nml1r3:not(.jse-column-header.jse-readonly){cursor:pointer}")}function cat(e){var t,n,r,i,o,a;return n=new gr({props:{data:tVe}}),{c:function(){t=fe("button"),Qe(n.$$.fragment),W(t,"type","button"),W(t,"class","jse-column-header svelte-1nml1r3"),W(t,"title",r="The Columns are created by sampling ".concat(e[1]," items out of ").concat(e[0],". ")+"If you're missing a column, click here to sample all of the items instead of a subset. This is slower.")},m:function(s,l){ke(s,t,l),Ze(n,t,null),i=!0,o||(a=ut(t,"click",e[3]),o=!0)},p:function(s,l){var c=Sn(l,1)[0];(!i||3&c&&r!==(r="The Columns are created by sampling ".concat(s[1]," items out of ").concat(s[0],". ")+"If you're missing a column, click here to sample all of the items instead of a subset. This is slower."))&&W(t,"title",r)},i:function(s){i||(X(n.$$.fragment,s),i=!0)},o:function(s){re(n.$$.fragment,s),i=!1},d:function(s){s&&Ee(t),Xe(n),o=!1,a()}}}function uat(e,t,n){var r=t.count,i=t.maxSampleCount,o=t.onRefresh;return e.$$set=function(a){"count"in a&&n(0,r=a.count),"maxSampleCount"in a&&n(1,i=a.maxSampleCount),"onRefresh"in a&&n(2,o=a.onRefresh)},[r,i,o,function(){return o()}]}var dat=function(e){function t(n){var r;return Qt(this,t),ln(Jt(r=an(this,t)),n,uat,cat,Pn,{count:0,maxSampleCount:1,onRefresh:2},lat),r}return sn(t,cn),en(t)}();function fat(e){En(e,"svelte-1jkzr9g",'.jse-table-mode.svelte-1jkzr9g.svelte-1jkzr9g{flex:1;display:flex;flex-direction:column;position:relative;background:var(--jse-background-color, #fff);min-width:0;min-height:0;font-family:var(--jse-font-family-mono, consolas, menlo, monaco, "Ubuntu Mono", "source-code-pro", monospace);font-size:var(--jse-font-size-mono, 14px);color:var(--jse-text-color, #4d4d4d);line-height:var(--jse-line-height, calc(1em + 4px))}.jse-table-mode.no-main-menu.svelte-1jkzr9g.svelte-1jkzr9g{border-top:var(--jse-main-border, 1px solid #d7d7d7)}.jse-table-mode.svelte-1jkzr9g .jse-hidden-input-label.svelte-1jkzr9g{position:fixed;right:0;top:0;width:0;height:0}.jse-table-mode.svelte-1jkzr9g .jse-hidden-input-label .jse-hidden-input.svelte-1jkzr9g{width:0;height:0;padding:0;border:0;outline:none}.jse-table-mode.svelte-1jkzr9g .jse-contents.svelte-1jkzr9g{flex:1;align-items:flex-start;flex-direction:column;display:flex;overflow:auto;overflow-anchor:none;border-left:var(--jse-main-border, 1px solid #d7d7d7);border-right:var(--jse-main-border, 1px solid #d7d7d7)}.jse-table-mode.svelte-1jkzr9g .jse-contents.svelte-1jkzr9g:last-child{border-bottom:var(--jse-main-border, 1px solid #d7d7d7)}.jse-table-mode.svelte-1jkzr9g .jse-contents table.jse-table-main.svelte-1jkzr9g{border-collapse:collapse;border-spacing:0}.jse-table-mode.svelte-1jkzr9g .jse-contents table.jse-table-main .jse-table-invisible-start-section td.svelte-1jkzr9g,.jse-table-mode.svelte-1jkzr9g .jse-contents table.jse-table-main .jse-table-invisible-end-section td.svelte-1jkzr9g{margin:0;padding:0}.jse-table-mode.svelte-1jkzr9g .jse-contents table.jse-table-main .jse-table-invisible-end-section td.svelte-1jkzr9g{padding-bottom:var(--jse-padding, 10px)}.jse-table-mode.svelte-1jkzr9g .jse-contents table.jse-table-main .jse-table-row.svelte-1jkzr9g:hover{background-color:var(--jse-table-row-odd-background, rgba(0, 0, 0, 0.05))}.jse-table-mode.svelte-1jkzr9g .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.svelte-1jkzr9g{padding:0 var(--jse-padding, 10px) 0 0;vertical-align:top;white-space:nowrap;height:var(--jse-line-height, calc(1em + 4px))}.jse-table-mode.svelte-1jkzr9g .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-table-cell-header.svelte-1jkzr9g,.jse-table-mode.svelte-1jkzr9g .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-table-cell-gutter.svelte-1jkzr9g{font-weight:normal;text-align:left;color:var(--jse-text-readonly, #8d8d8d);background:var(--jse-table-header-background, #f5f5f5)}.jse-table-mode.svelte-1jkzr9g .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-table-cell-header.svelte-1jkzr9g{padding:0;position:sticky;top:0}.jse-table-mode.svelte-1jkzr9g .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-table-cell-header .jse-table-root-error.svelte-1jkzr9g{padding:calc(0.5 * var(--jse-padding, 10px)) var(--jse-padding, 10px) calc(0.5 * var(--jse-padding, 10px)) calc(0.5 * var(--jse-padding, 10px))}.jse-table-mode.svelte-1jkzr9g .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-table-cell-gutter.svelte-1jkzr9g{padding:0 var(--jse-padding, 10px) 0 calc(0.5 * var(--jse-padding, 10px))}.jse-table-mode.svelte-1jkzr9g .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-selected-value.svelte-1jkzr9g>.jse-value{background:var(--jse-selection-background-color, #d3d3d3)}.jse-table-mode.svelte-1jkzr9g .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.svelte-1jkzr9g div{display:inline-flex}.jse-table-mode.svelte-1jkzr9g .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.svelte-1jkzr9g div.jse-value{overflow-wrap:normal;white-space:nowrap;vertical-align:top;display:inline-block}.jse-table-mode.svelte-1jkzr9g .jse-contents table.jse-table-main .jse-table-row .jse-table-cell .jse-context-menu-anchor.svelte-1jkzr9g{position:relative;vertical-align:top}.jse-table-mode.svelte-1jkzr9g .jse-contents.jse-contents-loading.svelte-1jkzr9g{align-items:unset}.jse-table-mode.svelte-1jkzr9g .jse-contents.jse-contents-loading .jse-loading-space.svelte-1jkzr9g{flex:1}.jse-table-mode.svelte-1jkzr9g .jse-contents.jse-contents-loading .jse-loading.svelte-1jkzr9g{flex:2;text-align:center;color:var(--jse-panel-color-readonly, #b2b2b2);box-sizing:border-box;font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size, 16px)}')}function Ese(e,t,n){var r,i=e.slice();i[123]=t[n],i[128]=n;var o=i[23].startIndex+i[128];i[124]=o;var a=i[22].rows[i[124]];i[125]=a;var s=Lj([String(i[124])],(r=i[125])===null||r===void 0?void 0:r.row);return i[126]=s,i}function kse(e,t,n){var r,i=e.slice();i[129]=t[n],i[135]=n;var o=[String(i[124])].concat(i[129]);i[130]=o;var a=Ht(i[123],i[129]);i[131]=a;var s=ur(i[11].selection)&&If(i[11].selection.path,i[130]);i[132]=s;var l=(r=i[125])===null||r===void 0?void 0:r.columns[i[135]];i[133]=l;var c=Lj(i[130],i[133]);return i[126]=c,i}function $se(e,t,n){var r=e.slice();return r[129]=t[n],r}function qj(e){var t,n=e.slice(),r=Lj([],(t=n[22])===null||t===void 0?void 0:t.root);return n[126]=r,n}function Tse(e){var t,n;return t=new Iot({props:{json:e[8],readOnly:e[0],historyState:e[20],onSort:e[41],onTransform:e[42],onUndo:e[43],onRedo:e[44],onContextMenu:e[33],onRenderMenu:e[5]}}),{c:function(){Qe(t.$$.fragment)},m:function(r,i){Ze(t,r,i),n=!0},p:function(r,i){var o={};256&i[0]&&(o.json=r[8]),1&i[0]&&(o.readOnly=r[0]),1048576&i[0]&&(o.historyState=r[20]),32&i[0]&&(o.onRenderMenu=r[5]),t.$set(o)},i:function(r){n||(X(t.$$.fragment,r),n=!0)},o:function(r){re(t.$$.fragment,r),n=!1},d:function(r){Xe(t,r)}}}function hat(e){var t;return{c:function(){(t=fe("div")).innerHTML='<div class="jse-loading-space svelte-1jkzr9g"></div> <div class="jse-loading svelte-1jkzr9g">loading...</div>',W(t,"class","jse-contents jse-contents-loading svelte-1jkzr9g")},m:function(n,r){ke(n,t,r)},p:gt,i:gt,o:gt,d:function(n){n&&Ee(t)}}}function pat(e){var t,n,r,i,o,a,s,l,c,u=[vat,gat,mat],f=[];function h(p,m){return p[25]?0:p[17]&&p[16]!==void 0&&p[16]!==""?1:2}return i=h(e),o=f[i]=u[i](e),{c:function(){t=fe("label"),n=fe("input"),r=Ve(),o.c(),a=cr(),W(n,"type","text"),n.readOnly=!0,W(n,"tabindex","-1"),W(n,"class","jse-hidden-input svelte-1jkzr9g"),W(t,"class","jse-hidden-input-label svelte-1jkzr9g")},m:function(p,m){ke(p,t,m),le(t,n),e[73](n),ke(p,r,m),f[i].m(p,m),ke(p,a,m),s=!0,l||(c=ut(n,"paste",e[38]),l=!0)},p:function(p,m){var b=i;(i=h(p))===b?f[i].p(p,m):(pt(),re(f[b],1,1,function(){f[b]=null}),mt(),(o=f[i])?o.p(p,m):(o=f[i]=u[i](p)).c(),X(o,1),o.m(a.parentNode,a))},i:function(p){s||(X(o),s=!0)},o:function(p){re(o),s=!1},d:function(p){p&&(Ee(t),Ee(r),Ee(a)),e[73](null),f[i].d(p),l=!1,c()}}}function mat(e){var t,n;return t=new sat({props:{text:e[16],json:e[8],readOnly:e[0],parser:e[2],openJSONEditorModal:e[40],onChangeMode:e[4]}}),{c:function(){Qe(t.$$.fragment)},m:function(r,i){Ze(t,r,i),n=!0},p:function(r,i){var o={};65536&i[0]&&(o.text=r[16]),256&i[0]&&(o.json=r[8]),1&i[0]&&(o.readOnly=r[0]),4&i[0]&&(o.parser=r[2]),16&i[0]&&(o.onChangeMode=r[4]),t.$set(o)},i:function(r){n||(X(t.$$.fragment,r),n=!0)},o:function(r){re(t.$$.fragment,r),n=!1},d:function(r){Xe(t,r)}}}function gat(e){var t,n,r,i;return t=new Oc({props:{type:"error",message:"The loaded JSON document is invalid and could not be repaired automatically.",actions:e[0]?[]:[{icon:lf,text:"Repair manually",title:'Open the document in "code" mode and repair it manually',onClick:e[36]}]}}),r=new Xae({props:{text:e[16],json:e[8],indentation:e[3],parser:e[2]}}),{c:function(){Qe(t.$$.fragment),n=Ve(),Qe(r.$$.fragment)},m:function(o,a){Ze(t,o,a),ke(o,n,a),Ze(r,o,a),i=!0},p:function(o,a){var s={};1&a[0]&&(s.actions=o[0]?[]:[{icon:lf,text:"Repair manually",title:'Open the document in "code" mode and repair it manually',onClick:o[36]}]),t.$set(s);var l={};65536&a[0]&&(l.text=o[16]),256&a[0]&&(l.json=o[8]),8&a[0]&&(l.indentation=o[3]),4&a[0]&&(l.parser=o[2]),r.$set(l)},i:function(o){i||(X(t.$$.fragment,o),X(r.$$.fragment,o),i=!0)},o:function(o){re(t.$$.fragment,o),re(r.$$.fragment,o),i=!1},d:function(o){o&&Ee(n),Xe(t,o),Xe(r,o)}}}function vat(e){for(var t,n,r,i,o,a,s,l,c,u,f,h,p,m,b,v,g,x,w,y,C,_,S,E,$=!kr((t=e[22])===null||t===void 0?void 0:t.root),k=$&&Rse(qj(e)),P=kn(e[10]),T=[],j=0;j<P.length;j+=1)T[j]=Ose($se(e,P,j));for(var M=function(A){return re(T[A],1,1,function(){T[A]=null})},B=e[24]&&jse(e),V=kn(e[23].visibleItems),R=[],I=0;I<V.length;I+=1)R[I]=Bse(Ese(e,V,I));var G=function(A){return re(R[A],1,1,function(){R[A]=null})},F=e[18]&&Fse(e),z=e[19]&&zse(e);return C=new $j({props:{validationErrors:e[12],selectError:e[39]}}),{c:function(){n=fe("div"),r=fe("table"),i=fe("tbody"),o=fe("tr"),a=fe("th"),k&&k.c(),s=Ve();for(var A=0;A<T.length;A+=1)T[A].c();l=Ve(),B&&B.c(),c=Ve(),u=fe("tr"),f=fe("td"),p=Ve();for(var L=0;L<R.length;L+=1)R[L].c();m=Ve(),b=fe("tr"),v=fe("td"),x=Ve(),F&&F.c(),w=Ve(),z&&z.c(),y=Ve(),Qe(C.$$.fragment),W(a,"class","jse-table-cell jse-table-cell-header svelte-1jkzr9g"),W(o,"class","jse-table-row jse-table-row-header svelte-1jkzr9g"),W(f,"colspan",h=e[10].length),W(f,"class","svelte-1jkzr9g"),Za(f,"height",e[23].startHeight+"px"),W(u,"class","jse-table-invisible-start-section"),W(v,"colspan",g=e[10].length),W(v,"class","svelte-1jkzr9g"),Za(v,"height",e[23].endHeight+"px"),W(b,"class","jse-table-invisible-end-section"),W(r,"class","jse-table-main svelte-1jkzr9g"),W(n,"class","jse-contents svelte-1jkzr9g")},m:function(A,L){ke(A,n,L),le(n,r),le(r,i),le(i,o),le(o,a),k&&k.m(a,null),le(o,s);for(var N=0;N<T.length;N+=1)T[N]&&T[N].m(o,null);le(o,l),B&&B.m(o,null),le(i,c),le(i,u),le(u,f),le(i,p);for(var q=0;q<R.length;q+=1)R[q]&&R[q].m(i,null);le(i,m),le(i,b),le(b,v),e[76](n),ke(A,x,L),F&&F.m(A,L),ke(A,w,L),z&&z.m(A,L),ke(A,y,L),Ze(C,A,L),_=!0,S||(E=[Do(Cse.call(null,n,e[45])),ut(n,"scroll",e[29])],S=!0)},p:function(A,L){var N;if(4194304&L[0]&&($=!kr((N=A[22])===null||N===void 0?void 0:N.root)),$?k?(k.p(qj(A),L),4194304&L[0]&&X(k,1)):((k=Rse(qj(A))).c(),X(k,1),k.m(a,null)):k&&(pt(),re(k,1,1,function(){k=null}),mt()),268438529&L[0]){var q;for(P=kn(A[10]),q=0;q<P.length;q+=1){var oe=$se(A,P,q);T[q]?(T[q].p(oe,L),X(T[q],1)):(T[q]=Ose(oe),T[q].c(),X(T[q],1),T[q].m(o,l))}for(pt(),q=P.length;q<T.length;q+=1)M(q);mt()}if(A[24]?B?(B.p(A,L),16777216&L[0]&&X(B,1)):((B=jse(A)).c(),X(B,1),B.m(o,null)):B&&(pt(),re(B,1,1,function(){B=null}),mt()),(!_||1024&L[0]&&h!==(h=A[10].length))&&W(f,"colspan",h),8388608&L[0]&&Za(f,"height",A[23].startHeight+"px"),165678085&L[0]|33281&L[1]){var ee;for(V=kn(A[23].visibleItems),ee=0;ee<V.length;ee+=1){var be=Ese(A,V,ee);R[ee]?(R[ee].p(be,L),X(R[ee],1)):(R[ee]=Bse(be),R[ee].c(),X(R[ee],1),R[ee].m(i,m))}for(pt(),ee=V.length;ee<R.length;ee+=1)G(ee);mt()}(!_||1024&L[0]&&g!==(g=A[10].length))&&W(v,"colspan",g),8388608&L[0]&&Za(v,"height",A[23].endHeight+"px"),A[18]?F?(F.p(A,L),262144&L[0]&&X(F,1)):((F=Fse(A)).c(),X(F,1),F.m(w.parentNode,w)):F&&(pt(),re(F,1,1,function(){F=null}),mt()),A[19]?z?(z.p(A,L),524288&L[0]&&X(z,1)):((z=zse(A)).c(),X(z,1),z.m(y.parentNode,y)):z&&(pt(),re(z,1,1,function(){z=null}),mt());var H={};4096&L[0]&&(H.validationErrors=A[12]),C.$set(H)},i:function(A){if(!_){X(k);for(var L=0;L<P.length;L+=1)X(T[L]);X(B);for(var N=0;N<V.length;N+=1)X(R[N]);X(F),X(z),X(C.$$.fragment,A),_=!0}},o:function(A){re(k),T=T.filter(Boolean);for(var L=0;L<T.length;L+=1)re(T[L]);re(B),R=R.filter(Boolean);for(var N=0;N<R.length;N+=1)re(R[N]);re(F),re(z),re(C.$$.fragment,A),_=!1},d:function(A){A&&(Ee(n),Ee(x),Ee(w),Ee(y)),k&&k.d(),Qi(T,A),B&&B.d(),Qi(R,A),e[76](null),F&&F.d(A),z&&z.d(A),Xe(C,A),S=!1,Zr(E)}}}function Rse(e){var t,n,r=e[126]&&Pse(e);return{c:function(){r&&r.c(),t=cr()},m:function(i,o){r&&r.m(i,o),ke(i,t,o),n=!0},p:function(i,o){i[126]?r?(r.p(i,o),4194304&o[0]&&X(r,1)):((r=Pse(i)).c(),X(r,1),r.m(t.parentNode,t)):r&&(pt(),re(r,1,1,function(){r=null}),mt())},i:function(i){n||(X(r),n=!0)},o:function(i){re(r),n=!1},d:function(i){i&&Ee(t),r&&r.d(i)}}}function Pse(e){var t,n,r;return n=new vg({props:{validationError:e[126],onExpand:Yl}}),{c:function(){t=fe("div"),Qe(n.$$.fragment),W(t,"class","jse-table-root-error svelte-1jkzr9g")},m:function(i,o){ke(i,t,o),Ze(n,t,null),r=!0},p:function(i,o){var a={};4194304&o[0]&&(a.validationError=i[126]),n.$set(a)},i:function(i){r||(X(n.$$.fragment,i),r=!0)},o:function(i){re(n.$$.fragment,i),r=!1},d:function(i){i&&Ee(t),Xe(n)}}}function Ose(e){var t,n,r;return n=new Zot({props:{path:e[129],sortedColumn:e[11].sortedColumn,readOnly:e[0],onSort:e[28]}}),{c:function(){t=fe("th"),Qe(n.$$.fragment),W(t,"class","jse-table-cell jse-table-cell-header svelte-1jkzr9g")},m:function(i,o){ke(i,t,o),Ze(n,t,null),r=!0},p:function(i,o){var a={};1024&o[0]&&(a.path=i[129]),2048&o[0]&&(a.sortedColumn=i[11].sortedColumn),1&o[0]&&(a.readOnly=i[0]),n.$set(a)},i:function(i){r||(X(n.$$.fragment,i),r=!0)},o:function(i){re(n.$$.fragment,i),r=!1},d:function(i){i&&Ee(t),Xe(n)}}}function jse(e){var t,n,r;return n=new dat({props:{count:Array.isArray(e[8])?e[8].length:0,maxSampleCount:e[9],onRefresh:e[74]}}),{c:function(){t=fe("th"),Qe(n.$$.fragment),W(t,"class","jse-table-cell jse-table-cell-header svelte-1jkzr9g")},m:function(i,o){ke(i,t,o),Ze(n,t,null),r=!0},p:function(i,o){var a={};256&o[0]&&(a.count=Array.isArray(i[8])?i[8].length:0),512&o[0]&&(a.maxSampleCount=i[9]),512&o[0]&&(a.onRefresh=i[74]),n.$set(a)},i:function(i){r||(X(n.$$.fragment,i),r=!0)},o:function(i){re(n.$$.fragment,i),r=!1},d:function(i){i&&Ee(t),Xe(n)}}}function Mse(e){var t,n;return t=new vg({props:{validationError:e[126],onExpand:Yl}}),{c:function(){Qe(t.$$.fragment)},m:function(r,i){Ze(t,r,i),n=!0},p:function(r,i){var o={};12582912&i[0]&&(o.validationError=r[126]),t.$set(o)},i:function(r){n||(X(t.$$.fragment,r),n=!0)},o:function(r){re(t.$$.fragment,r),n=!1},d:function(r){Xe(t,r)}}}function Ase(e){var t,n,r,i,o,a,s,l=e[124]+"",c=e[126]&&Mse(e);function u(){for(var f,h=arguments.length,p=new Array(h),m=0;m<h;m++)p[m]=arguments[m];return(f=e)[75].apply(f,[e[124]].concat(p))}return{c:function(){t=fe("th"),n=Pt(l),r=Ve(),c&&c.c(),W(t,"class","jse-table-cell jse-table-cell-gutter svelte-1jkzr9g")},m:function(f,h){ke(f,t,h),le(t,n),le(t,r),c&&c.m(t,null),o=!0,a||(s=Do(i=Cse.call(null,t,u)),a=!0)},p:function(f,h){e=f,(!o||8388608&h[0])&&l!==(l=e[124]+"")&&mn(n,l),e[126]?c?(c.p(e,h),12582912&h[0]&&X(c,1)):((c=Mse(e)).c(),X(c,1),c.m(t,null)):c&&(pt(),re(c,1,1,function(){c=null}),mt()),i&&da(i.update)&&8388608&h[0]&&i.update.call(null,u)},i:function(f){o||(X(c),o=!0)},o:function(f){re(c),o=!1},d:function(f){f&&Ee(t),c&&c.d(),a=!1,s()}}}function bat(e){var t,n;return t=new Vot({props:{path:e[130],value:e[131]!==void 0?e[131]:"",enforceString:q0(e[131],e[11].enforceStringMap,Mt(e[130]),e[21].parser),selection:e[132]?e[11].selection:null,searchResultItems:e[27],context:e[21]}}),{c:function(){Qe(t.$$.fragment)},m:function(r,i){Ze(t,r,i),n=!0},p:function(r,i){var o={};8389632&i[0]&&(o.path=r[130]),8389632&i[0]&&(o.value=r[131]!==void 0?r[131]:""),10488832&i[0]&&(o.enforceString=q0(r[131],r[11].enforceStringMap,Mt(r[130]),r[21].parser)),8391680&i[0]&&(o.selection=r[132]?r[11].selection:null),2097152&i[0]&&(o.context=r[21]),t.$set(o)},i:function(r){n||(X(t.$$.fragment,r),n=!0)},o:function(r){re(t.$$.fragment,r),n=!1},d:function(r){Xe(t,r)}}}function yat(e){var t,n;return t=new qot({props:{path:e[130],value:e[131],parser:e[2],isSelected:e[132],onEdit:e[40]}}),{c:function(){Qe(t.$$.fragment)},m:function(r,i){Ze(t,r,i),n=!0},p:function(r,i){var o={};8389632&i[0]&&(o.path=r[130]),8389632&i[0]&&(o.value=r[131]),4&i[0]&&(o.parser=r[2]),8391680&i[0]&&(o.isSelected=r[132]),t.$set(o)},i:function(r){n||(X(t.$$.fragment,r),n=!0)},o:function(r){re(t.$$.fragment,r),n=!1},d:function(r){Xe(t,r)}}}function Nse(e){var t,n,r,i;return n=new Ff({props:{selected:!0,onContextMenu:e[31]}}),{c:function(){t=fe("div"),Qe(n.$$.fragment),r=Ve(),W(t,"class","jse-context-menu-anchor svelte-1jkzr9g")},m:function(o,a){ke(o,t,a),Ze(n,t,null),ke(o,r,a),i=!0},p:gt,i:function(o){i||(X(n.$$.fragment,o),i=!0)},o:function(o){re(n.$$.fragment,o),i=!1},d:function(o){o&&(Ee(t),Ee(r)),Xe(n)}}}function Dse(e){var t,n;return t=new vg({props:{validationError:e[126],onExpand:Yl}}),{c:function(){Qe(t.$$.fragment)},m:function(r,i){Ze(t,r,i),n=!0},p:function(r,i){var o={};12583936&i[0]&&(o.validationError=r[126]),t.$set(o)},i:function(r){n||(X(t.$$.fragment,r),n=!0)},o:function(r){re(t.$$.fragment,r),n=!1},d:function(r){Xe(t,r)}}}function Ise(e){var t,n,r,i,o,a,s,l,c=!e[0]&&e[132]&&!Qa(e[11].selection),u=[yat,bat],f=[];function h(b,v){return 8389632&v[0]&&(n=null),n==null&&(n=!!Mi(b[131])),n?0:1}r=h(e,[-1,-1,-1,-1,-1]),i=f[r]=u[r](e);var p=c&&Nse(e),m=e[126]&&Dse(e);return{c:function(){t=fe("td"),i.c(),o=cr(),p&&p.c(),a=cr(),m&&m.c(),W(t,"class","jse-table-cell svelte-1jkzr9g"),W(t,"data-path",s=ig(e[130])),at(t,"jse-selected-value",e[132])},m:function(b,v){ke(b,t,v),f[r].m(t,null),le(t,o),p&&p.m(t,null),le(t,a),m&&m.m(t,null),l=!0},p:function(b,v){var g=r;(r=h(b,v))===g?f[r].p(b,v):(pt(),re(f[g],1,1,function(){f[g]=null}),mt(),(i=f[r])?i.p(b,v):(i=f[r]=u[r](b)).c(),X(i,1),i.m(t,o)),8391681&v[0]&&(c=!b[0]&&b[132]&&!Qa(b[11].selection)),c?p?(p.p(b,v),8391681&v[0]&&X(p,1)):((p=Nse(b)).c(),X(p,1),p.m(t,a)):p&&(pt(),re(p,1,1,function(){p=null}),mt()),b[126]?m?(m.p(b,v),12583936&v[0]&&X(m,1)):((m=Dse(b)).c(),X(m,1),m.m(t,null)):m&&(pt(),re(m,1,1,function(){m=null}),mt()),(!l||8389632&v[0]&&s!==(s=ig(b[130])))&&W(t,"data-path",s),(!l||8391680&v[0])&&at(t,"jse-selected-value",b[132])},i:function(b){l||(X(i),X(p),X(m),l=!0)},o:function(b){re(i),re(p),re(m),l=!1},d:function(b){b&&Ee(t),f[r].d(),p&&p.d(),m&&m.d()}}}function Lse(e){var t;return{c:function(){W(t=fe("td"),"class","jse-table-cell svelte-1jkzr9g")},m:function(n,r){ke(n,t,r)},d:function(n){n&&Ee(t)}}}function Bse(e){for(var t,n,r,i,o=e[124],a=Ase(e),s=kn(e[10]),l=[],c=0;c<s.length;c+=1)l[c]=Ise(kse(e,s,c));var u=function(h){return re(l[h],1,1,function(){l[h]=null})},f=e[24]&&Lse();return{c:function(){t=fe("tr"),a.c(),n=Ve();for(var h=0;h<l.length;h+=1)l[h].c();r=Ve(),f&&f.c(),W(t,"class","jse-table-row svelte-1jkzr9g")},m:function(h,p){ke(h,t,p),a.m(t,null),le(t,n);for(var m=0;m<l.length;m+=1)l[m]&&l[m].m(t,null);le(t,r),f&&f.m(t,null),i=!0},p:function(h,p){if(8388608&p[0]&&Pn(o,o=h[124])?(pt(),re(a,1,1,gt),mt(),(a=Ase(h)).c(),X(a,1),a.m(t,n)):a.p(h,p),148900869&p[0]|513&p[1]){var m;for(s=kn(h[10]),m=0;m<s.length;m+=1){var b=kse(h,s,m);l[m]?(l[m].p(b,p),X(l[m],1)):(l[m]=Ise(b),l[m].c(),X(l[m],1),l[m].m(t,r))}for(pt(),m=s.length;m<l.length;m+=1)u(m);mt()}h[24]?f||((f=Lse()).c(),f.m(t,null)):f&&(f.d(1),f=null)},i:function(h){if(!i){X(a);for(var p=0;p<s.length;p+=1)X(l[p]);i=!0}},o:function(h){re(a),l=l.filter(Boolean);for(var p=0;p<l.length;p+=1)re(l[p]);i=!1},d:function(h){h&&Ee(t),a.d(h),Qi(l,h),f&&f.d()}}}function Fse(e){var t,n;return t=new Oc({props:{type:"info",message:"You pasted a JSON ".concat(Array.isArray(e[18].contents)?"array":"object"," as text"),actions:[{icon:rx,text:"Paste as JSON instead",title:"Paste the text as JSON instead of a single value",onMouseDown:e[34]},{text:"Leave as is",title:"Keep the pasted content as a single value",onClick:e[35]}]}}),{c:function(){Qe(t.$$.fragment)},m:function(r,i){Ze(t,r,i),n=!0},p:function(r,i){var o={};262144&i[0]&&(o.message="You pasted a JSON ".concat(Array.isArray(r[18].contents)?"array":"object"," as text")),t.$set(o)},i:function(r){n||(X(t.$$.fragment,r),n=!0)},o:function(r){re(t.$$.fragment,r),n=!1},d:function(r){Xe(t,r)}}}function zse(e){var t,n;return t=new Oc({props:{type:"success",message:"The loaded JSON document was invalid but is successfully repaired.",actions:e[0]?[]:[{icon:rb,text:"Ok",title:"Accept the repaired document",onClick:e[7]},{icon:lf,text:"Repair manually instead",title:"Leave the document unchanged and repair it manually instead",onClick:e[36]}],onClose:e[6]}}),{c:function(){Qe(t.$$.fragment)},m:function(r,i){Ze(t,r,i),n=!0},p:function(r,i){var o={};1&i[0]&&(o.actions=r[0]?[]:[{icon:rb,text:"Ok",title:"Accept the repaired document",onClick:r[7]},{icon:lf,text:"Repair manually instead",title:"Leave the document unchanged and repair it manually instead",onClick:r[36]}]),t.$set(o)},i:function(r){n||(X(t.$$.fragment,r),n=!0)},o:function(r){re(t.$$.fragment,r),n=!1},d:function(r){Xe(t,r)}}}function xat(e){var t,n,r,i,o,a,s,l=e[1]&&Tse(e),c=[pat,hat],u=[];return r=function(f,h){return f[26]?1:0}(e),i=u[r]=c[r](e),{c:function(){t=fe("div"),l&&l.c(),n=Ve(),i.c(),W(t,"role","table"),W(t,"class","jse-table-mode svelte-1jkzr9g"),at(t,"no-main-menu",!e[1])},m:function(f,h){ke(f,t,h),l&&l.m(t,null),le(t,n),u[r].m(t,null),e[77](t),o=!0,a||(s=[ut(t,"mousedown",e[30]),ut(t,"keydown",e[37]),ut(t,"contextmenu",e[32])],a=!0)},p:function(f,h){f[1]?l?(l.p(f,h),2&h[0]&&X(l,1)):((l=Tse(f)).c(),X(l,1),l.m(t,n)):l&&(pt(),re(l,1,1,function(){l=null}),mt()),i.p(f,h),(!o||2&h[0])&&at(t,"no-main-menu",!f[1])},i:function(f){o||(X(l),X(i),o=!0)},o:function(f){re(l),re(i),o=!1},d:function(f){f&&Ee(t),l&&l.d(),u[r].d(),e[77](null),a=!1,Zr(s)}}}var Ey=18;function wat(e,t,n){var r,i,o,a,s=ha("jsoneditor:TableMode"),l=fa("simple-modal").open,c=fa("absolute-popup"),u=c.openAbsolutePopup,f=c.closeAbsolutePopup,h=loe(),p=p1(),m=p1(),b=typeof window>"u";s("isSSR:",b);var v,g,x,w,y,C,_=t.readOnly,S=t.externalContent,E=t.externalSelection,$=t.mainMenuBar,k=t.escapeControlCharacters,P=t.escapeUnicodeCharacters,T=t.flattenColumns,j=t.parser,M=t.parseMemoizeOne,B=t.validator,V=t.validationParser,R=t.indentation,I=t.onChange,G=t.onChangeMode,F=t.onSelect,z=t.onRenderValue,A=t.onRenderMenu,L=t.onRenderContextMenu,N=t.onFocus,q=t.onBlur,oe=t.onSortModal,ee=t.onTransformModal,be=t.onJSONEditorModal;kj({onMount:Vl,onDestroy:ll,getWindow:function(){return rg(g)},hasFocus:function(){return U&&document.hasFocus()||ej(g)},onFocus:function(){N&&N()},onBlur:function(){q&&q()}});var H,O=void 0,D=1e4,ae=[],U=!1,Y={},ye=600,ue=0;function Ce(ie){s("updateSelection",ie);var Ie=typeof ie=="function"?ie(de.selection)||null:ie;lr(Ie,de.selection)||(n(11,de=qe(qe({},de),{},{selection:Ie})),F(Ie))}function he(ie){de.selection&&ie!==void 0&&(Ml(ie,$p(de.selection))&&Ml(ie,un(de.selection))||(s("clearing selection: path does not exist anymore",de.selection),n(11,de=qe(qe({},de),{},{selection:null}))))}var de=cw(),ve=!1,Oe,Le=coe({onChange:function(ie){n(20,Ge=ie)}}),Ge=Le.getState();function ne(ie){var Ie=y,st=ng(ie)?ie.text!==C:!lr(Ie,ie.json);if(s("update external content",{isChanged:st}),st){var bt={json:y,text:C},St=y,dn=de,It=C,On=ve;if(ng(ie))try{n(8,y=M(ie.text)),n(16,C=ie.text),n(19,ve=!1),n(17,O=void 0)}catch(Xt){try{n(8,y=M(yu(ie.text))),n(16,C=ie.text),n(19,ve=!0),n(17,O=void 0)}catch{n(8,y=void 0),n(16,C=ie.text),n(19,ve=!1),n(17,O=C!==""?tg(C,Xt.message||String(Xt)):void 0)}}else n(8,y=ie.json),n(16,C=void 0),n(19,ve=!1),n(17,O=void 0);he(y),de.sortedColumn&&n(11,de=qe(qe({},de),{},{sortedColumn:null})),Te({previousJson:St,previousState:dn,previousText:It,previousTextIsRepaired:On}),it(bt,null)}}function Te(ie){var Ie=ie.previousJson,st=ie.previousState,bt=ie.previousText,St=ie.previousTextIsRepaired;Ie===void 0&&bt===void 0||(y!==void 0?Ie!==void 0?Le.add({undo:{patch:[{op:"replace",path:"",value:Ie}],state:Xa(st),json:void 0,text:bt,textIsRepaired:St},redo:{patch:[{op:"replace",path:"",value:y}],state:Xa(de),json:void 0,text:C,textIsRepaired:ve}}):Le.add({undo:{patch:void 0,json:void 0,text:bt,state:Xa(st),textIsRepaired:St},redo:{patch:void 0,json:y,state:Xa(de),text:C,textIsRepaired:ve}}):Ie!==void 0&&Le.add({undo:{patch:void 0,json:Ie,state:Xa(st),text:bt,textIsRepaired:St},redo:{patch:void 0,json:void 0,text:C,textIsRepaired:ve,state:Xa(de)}}))}var J=[],Z=ib(uoe);function ce(ie,Ie,st,bt){hg(function(){var St;try{St=Z(ie,Ie,st,bt)}catch(dn){St=[{path:[],message:"Failed to validate: "+dn.message,severity:z0.warning}]}lr(St,J)||(s("validationErrors changed:",St),n(12,J=St))},function(St){return s("validationErrors updated in ".concat(St," ms"))})}function _e(){return s("validate"),O?{parseError:O,isRepairable:!1}:(ce(y,B,j,V),kr(J)?null:{validationErrors:J})}function $e(ie,Ie){if(s("patch",ie,Ie),y===void 0)throw new Error("Cannot apply patch: no JSON");var st={json:y},bt=y,St=de,dn=ve,It=iie(y,ie),On=Bre(y,de,ie).json,Xt=Fit(de,ie,ae),tn=typeof Ie=="function"?Ie(On,Xt):void 0;n(8,y=tn&&tn.json!==void 0?tn.json:On);var er=tn&&tn.state!==void 0?tn.state:Xt;n(11,de=er),n(16,C=void 0),n(19,ve=!1),n(18,H=void 0),n(17,O=void 0),Le.add({undo:{patch:It,json:void 0,text:void 0,state:Xa(St),textIsRepaired:dn},redo:{patch:ie,json:void 0,state:Xa(er),text:void 0,textIsRepaired:ve}});var Rr={json:y,previousJson:bt,undo:It,redo:ie};return it(st,Rr),Rr}function Ne(ie,Ie){return _?{json:y,previousJson:y,redo:[],undo:[]}:$e(ie,Ie)}function it(ie,Ie){(ie.json!==void 0||(ie==null?void 0:ie.text)!==void 0)&&I&&(C!==void 0?I({text:C,json:void 0},ie,{contentErrors:_e(),patchResult:Ie}):y!==void 0&&I({text:void 0,json:y},ie,{contentErrors:_e(),patchResult:Ie}))}function Je(ie){s("handleFind",ie)}function ft(ie){s("pasted json as text",ie),n(18,H=ie)}function Wt(ie){var Ie=parseInt(ie[0],10),st=[String(Ie+1)].concat(Yn(ie.slice(1)));return Ml(y,st)?Xn(st,!1):Xn(ie,!1)}function pe(){s("focus"),w&&(w.focus(),w.select())}function Re(){de.selection||Ce(!Qr(y)||kr(y)||kr(ae)?null:Xn(["0"].concat(Yn(ae[0])),!1))}function Ke(ie){var Ie=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],st=Ij(ie,ae,Y,Ey),bt=st-ue,St=je(ie);if(s("scrollTo",{path:ie,top:st,scrollTop:ue,elem:St}),!x)return Promise.resolve();var dn=x.getBoundingClientRect();if(St&&!Ie){var It=St.getBoundingClientRect();if(It.bottom>dn.top&&It.top<dn.bottom)return Promise.resolve()}var On=-dn.height/4;return new Promise(St?function(Xt){h(St,{container:x,offset:On,duration:300,callback:function(){_t(ie),Xt()}})}:function(Xt){var tn;h(bt,{container:x,offset:On,duration:300,callback:(tn=Dn(kt().mark(function er(){return kt().wrap(function(Rr){for(;;)switch(Rr.prev=Rr.next){case 0:return Rr.next=2,eo();case 2:if(Ij(ie,ae,Y,Ey)===st){Rr.next=8;break}return Rr.next=6,Ke(ie,Ie);case 6:Rr.next=9;break;case 8:_t(ie);case 9:Xt();case 10:case"end":return Rr.stop()}},er)})),function(){return tn.apply(this,arguments)})})})}function _t(ie){var Ie=je(ie);if(Ie&&x){var st=x.getBoundingClientRect(),bt=Ie.getBoundingClientRect();if(bt.right>st.right){var St=bt.right-st.right;n(14,x.scrollLeft+=St,x)}if(bt.left<st.left){var dn=st.left-bt.left;n(14,x.scrollLeft-=dn,x)}}}function yt(ie){(function(Ie){if(x){var st=Kl(Ie,ae).rowIndex,bt=Ij(Ie,ae,Y,Ey),St=bt+(Y[st]||Ey),dn=x.getBoundingClientRect(),It=ue,On=ue+dn.height-18;if(St>On){var Xt=St-On;n(14,x.scrollTop+=Xt,x)}if(bt<It){var tn=It-bt;n(14,x.scrollTop-=tn,x)}}})(ie),_t(ie)}function je(ie){return x?x.querySelector('td[data-path="'.concat(ig(ie),'"]')):null}function et(ie){var Ie=ie.anchor,st=ie.left,bt=ie.top,St=ie.width,dn=ie.height,It=ie.offsetTop,On=ie.offsetLeft,Xt=ie.showTip;U=!0;var tn=u(Qot,{json:y,documentState:de,parser:j,showTip:Xt,onEditValue:vt,onEditRow:ze,onToggleEnforceString:ct,onCut:lt,onCopy:Be,onPaste:Ye,onRemove:dt,onDuplicateRow:K,onInsertBeforeRow:te,onInsertAfterRow:we,onRemoveRow:Me,onRenderContextMenu:L,onCloseContextMenu:function(){f(tn),pe()}},{left:st,top:bt,offsetTop:It,offsetLeft:On,width:St,height:dn,anchor:Ie,closeOnOuterClick:!0,onClose:function(){U=!1,pe()}})}function ht(ie){if(!_&&!Qa(de.selection)){if(ie&&(ie.stopPropagation(),ie.preventDefault()),ie&&ie.type==="contextmenu"&&ie.target!==w)et({left:ie.clientX,top:ie.clientY,width:U0,height:H0,showTip:!1});else{var Ie,st=(Ie=x)===null||Ie===void 0?void 0:Ie.querySelector(".jse-table-cell.jse-selected-value");if(st)et({anchor:st,offsetTop:2,width:U0,height:H0,showTip:!1});else{var bt,St=(bt=x)===null||bt===void 0?void 0:bt.getBoundingClientRect();St&&et({top:St.top+2,left:St.left+2,width:U0,height:H0,showTip:!1})}}return!1}}function vt(){if(!_&&de.selection){var ie=un(de.selection);Mi(Ht(y,ie))?In(ie):Ce(Xn(ie,!0))}}function ze(){!_&&de.selection&&In(un(de.selection).slice(0,1))}function ct(){if(!_&&ur(de.selection)){var ie=de.selection.path,Ie=Mt(ie),st=Ht(y,ie),bt=!q0(st,de.enforceStringMap,Ie,j),St=bt?String(st):eg(String(st),j);s("handleToggleEnforceString",{enforceString:bt,value:st,updatedValue:St}),Ne([{op:"replace",path:Ie,value:St}],function(dn,It){return{state:Lre(It,Ie,bt)}})}}function Ae(){return(Ae=Dn(kt().mark(function ie(){var Ie,st,bt,St,dn;return kt().wrap(function(It){for(;;)switch(It.prev=It.next){case 0:if(s("apply pasted json",H),H){It.next=3;break}return It.abrupt("return");case 3:bt=(st=H).path,St=st.contents,Sre(dn=((Ie=x)===null||Ie===void 0?void 0:Ie.querySelector(".jse-editable-div"))||null)&&dn.cancel(),Ne([{op:"replace",path:Mt(bt),value:St}]),setTimeout(pe);case 9:case"end":return It.stop()}},ie)}))).apply(this,arguments)}function Ye(){l(xoe,{},qe(qe({},_p),{},{styleWindow:{width:"450px"}}),{onClose:function(){return pe()}})}function lt(ie){return jt.apply(this,arguments)}function jt(){return(jt=Dn(kt().mark(function ie(Ie){return kt().wrap(function(st){for(;;)switch(st.prev=st.next){case 0:return st.next=2,qae({json:y,documentState:de,indentation:Ie?R:void 0,readOnly:_,parser:j,onPatch:Ne});case 2:case"end":return st.stop()}},ie)}))).apply(this,arguments)}function Be(){return Tt.apply(this,arguments)}function Tt(){return Tt=Dn(kt().mark(function ie(){var Ie,st=arguments;return kt().wrap(function(bt){for(;;)switch(bt.prev=bt.next){case 0:if(Ie=!(st.length>0&&st[0]!==void 0)||st[0],y!==void 0){bt.next=3;break}return bt.abrupt("return");case 3:return bt.next=5,Gae({json:y,documentState:de,indentation:Ie?R:void 0,parser:j});case 5:case"end":return bt.stop()}},ie)})),Tt.apply(this,arguments)}function dt(){Yae({json:y,text:C,documentState:de,keepSelection:!0,readOnly:_,onChange:I,onPatch:Ne})}function K(){zit({json:y,documentState:de,columns:ae,readOnly:_,onPatch:Ne})}function te(){Vit({json:y,documentState:de,columns:ae,readOnly:_,onPatch:Ne})}function we(){Hit({json:y,documentState:de,columns:ae,readOnly:_,onPatch:Ne})}function Me(){Uit({json:y,documentState:de,columns:ae,readOnly:_,onPatch:Ne})}function We(){return(We=Dn(kt().mark(function ie(Ie){return kt().wrap(function(st){for(;;)switch(st.prev=st.next){case 0:return st.next=2,Zae({char:Ie,selectInside:!1,refJsonEditor:g,json:y,selection:de.selection,readOnly:_,parser:j,onPatch:Ne,onReplaceJson:Ct,onSelect:Ce});case 2:case"end":return st.stop()}},ie)}))).apply(this,arguments)}function Ct(ie,Ie){var st=de,bt=y,St=C,dn={json:y,text:C},It=ve,On=Wl(y,de,[],Bu),Xt=typeof Ie=="function"?Ie(ie,On):void 0;n(8,y=Xt&&Xt.json!==void 0?Xt.json:ie),n(11,de=Xt&&Xt.state!==void 0?Xt.state:On),n(16,C=void 0),n(19,ve=!1),n(17,O=void 0),he(y),Te({previousJson:bt,previousState:st,previousText:St,previousTextIsRepaired:It}),it(dn,null)}function Lt(ie,Ie){s("handleChangeText");var st=de,bt=y,St=C,dn={json:y,text:C},It=ve;try{n(8,y=M(ie)),n(11,de=Wl(y,de,[],Bu)),n(16,C=void 0),n(19,ve=!1),n(17,O=void 0)}catch(Xt){try{n(8,y=M(yu(ie))),n(11,de=Wl(y,de,[],Bu)),n(16,C=ie),n(19,ve=!0),n(17,O=void 0)}catch{n(8,y=void 0),n(11,de=cw({json:y,expand:Bu})),n(16,C=ie),n(19,ve=!1),n(17,O=C!==""?tg(C,Xt.message||String(Xt)):void 0)}}if(typeof Ie=="function"){var On=Ie(y,de);n(8,y=On&&On.json?On.json:y),n(11,de=On&&On.state?On.state:de)}he(y),Te({previousJson:bt,previousState:st,previousText:St,previousTextIsRepaired:It}),it(dn,null)}function bn(ie){if(y!==void 0){var Ie=ie.id,st=ie.onTransform,bt=ie.onClose,St=ie.rootPath||[];U=!0,ee({id:Ie||m,json:y,rootPath:St||[],onTransform:function(dn){st?st({operations:dn,json:y,transformedJson:vc(y,dn)}):(s("onTransform",St,dn),Ne(dn))},onClose:function(){U=!1,pe(),bt&&bt()}})}}function In(ie){s("openJSONEditorModal",{path:ie}),U=!0,be({content:{json:Ht(y,ie)},path:ie,onPatch:Oe.onPatch,onClose:function(){U=!1,pe()}})}function Zn(ie,Ie){l(joe,{text:ie,onParse:function(st){return aw(st,function(bt){return cy(bt,j)})},onRepair:ure,onApply:Ie},qe(qe({},_p),{},{styleWindow:{width:"600px",height:"500px"},styleContent:{padding:0,height:"100%"}}),{onClose:function(){return pe()}})}function yn(){if(!_&&Le.getState().canUndo){var ie=Le.undo();if(ie){var Ie={json:y,text:C};n(8,y=ie.undo.patch?vc(y,ie.undo.patch):ie.undo.json),n(11,de=ie.undo.state),n(16,C=ie.undo.text),n(19,ve=ie.undo.textIsRepaired),n(17,O=void 0),s("undo",{item:ie,json:y}),it(Ie,ie.undo.patch&&ie.redo.patch?{json:y,previousJson:Ie.json,redo:ie.undo.patch,undo:ie.redo.patch}:null),pe(),de.selection&&Ke(un(de.selection),!1)}}}function Un(){if(!_&&Le.getState().canRedo){var ie=Le.redo();if(ie){var Ie={json:y,text:C};n(8,y=ie.redo.patch?vc(y,ie.redo.patch):ie.redo.json),n(11,de=ie.redo.state),n(16,C=ie.redo.text),n(19,ve=ie.redo.textIsRepaired),n(17,O=void 0),s("redo",{item:ie,json:y}),it(Ie,ie.undo.patch&&ie.redo.patch?{json:y,previousJson:Ie.json,redo:ie.redo.patch,undo:ie.undo.patch}:null),pe(),de.selection&&Ke(un(de.selection),!1)}}}function He(ie,Ie){n(70,Y[Ie]=ie.getBoundingClientRect().height,Y)}return e.$$set=function(ie){"readOnly"in ie&&n(0,_=ie.readOnly),"externalContent"in ie&&n(47,S=ie.externalContent),"externalSelection"in ie&&n(48,E=ie.externalSelection),"mainMenuBar"in ie&&n(1,$=ie.mainMenuBar),"escapeControlCharacters"in ie&&n(49,k=ie.escapeControlCharacters),"escapeUnicodeCharacters"in ie&&n(50,P=ie.escapeUnicodeCharacters),"flattenColumns"in ie&&n(51,T=ie.flattenColumns),"parser"in ie&&n(2,j=ie.parser),"parseMemoizeOne"in ie&&n(52,M=ie.parseMemoizeOne),"validator"in ie&&n(53,B=ie.validator),"validationParser"in ie&&n(54,V=ie.validationParser),"indentation"in ie&&n(3,R=ie.indentation),"onChange"in ie&&n(55,I=ie.onChange),"onChangeMode"in ie&&n(4,G=ie.onChangeMode),"onSelect"in ie&&n(56,F=ie.onSelect),"onRenderValue"in ie&&n(57,z=ie.onRenderValue),"onRenderMenu"in ie&&n(5,A=ie.onRenderMenu),"onRenderContextMenu"in ie&&n(58,L=ie.onRenderContextMenu),"onFocus"in ie&&n(59,N=ie.onFocus),"onBlur"in ie&&n(60,q=ie.onBlur),"onSortModal"in ie&&n(61,oe=ie.onSortModal),"onTransformModal"in ie&&n(62,ee=ie.onTransformModal),"onJSONEditorModal"in ie&&n(63,be=ie.onJSONEditorModal)},e.$$.update=function(){786432&e.$$.dirty[1]&&n(69,v=XO({escapeControlCharacters:k,escapeUnicodeCharacters:P})),65536&e.$$.dirty[1]&&ne(S),131072&e.$$.dirty[1]&&function(ie){lr(de.selection,ie)||(s("applyExternalSelection",ie),(fj(ie)||ie===null)&&Ce(ie))}(E),1792&e.$$.dirty[0]|1048576&e.$$.dirty[1]&&n(10,ae=Qr(y)?function(ie,Ie){var st,bt=new Set(Ie.map(Mt)),St=new Set(ie.map(Mt)),dn=ny(bt);try{for(dn.s();!(st=dn.n()).done;){var It=st.value;St.has(It)||bt.delete(It)}}catch(er){dn.e(er)}finally{dn.f()}var On,Xt=ny(St);try{for(Xt.s();!(On=Xt.n()).done;){var tn=On.value;bt.has(tn)||bt.add(tn)}}catch(er){Xt.e(er)}finally{Xt.f()}return Yn(bt).map(gc)}(Dit(y,T,D),ae):[]),1280&e.$$.dirty[0]&&n(25,r=y&&!kr(ae)),768&e.$$.dirty[0]&&n(24,i=Array.isArray(y)&&y.length>D),256&e.$$.dirty[0]|1792&e.$$.dirty[2]&&n(23,o=Iit(ue,ye,y,Y,Ey)),256&e.$$.dirty[0]&&x&&x.scrollTo({top:x.scrollTop,left:x.scrollLeft}),2309&e.$$.dirty[0]|67108864&e.$$.dirty[1]|128&e.$$.dirty[2]&&n(21,Oe={readOnly:_,parser:j,normalization:v,getJson:function(){return y},getDocumentState:function(){return de},findElement:je,findNextInside:Wt,focus:pe,onPatch:Ne,onSelect:Ce,onFind:Je,onPasteJson:ft,onRenderValue:z}),260&e.$$.dirty[0]|12582912&e.$$.dirty[1]&&ce(y,B,j,V),5120&e.$$.dirty[0]&&n(22,a=Lit(J,ae))},[_,$,j,R,G,A,pe,function(){if(ve&&y!==void 0){var ie=de,Ie=y,st=C,bt={json:y,text:C},St=ve;n(16,C=void 0),n(19,ve=!1),he(y),Te({previousJson:Ie,previousState:ie,previousText:st,previousTextIsRepaired:St}),it(bt,null)}return{json:y,text:C}},y,D,ae,de,J,g,x,w,C,O,H,ve,Ge,Oe,a,o,i,r,b,void 0,function(ie){if(!_){s("onSortByHeader",ie);var Ie=ie.sortDirection===Ul.desc?-1:1;Ne(Rae(y,[],ie.path,Ie),function(st,bt){return{state:qe(qe({},bt),{},{sortedColumn:ie})}})}},function(ie){n(72,ue=ie.target.scrollTop)},function(ie){var Ie=ie.target,st=_re(Ie);if(st){if(Qa(de.selection)&&gy(y,de.selection,st))return;Ce(Xn(st,!1)),ie.preventDefault()}JO(Ie,"BUTTON")||Ie.isContentEditable||pe()},et,ht,function(ie){_||et({anchor:Cre(ie.target,"BUTTON"),offsetTop:0,width:U0,height:H0,showTip:!0})},function(){return Ae.apply(this,arguments)},function(){s("clear pasted json"),n(18,H=void 0),pe()},function(){G(Aa.text)},function(ie){var Ie=Mf(ie);if(s("keydown",{combo:Ie,key:ie.key}),Ie==="Ctrl+X"&&(ie.preventDefault(),lt(!0)),Ie==="Ctrl+Shift+X"&&(ie.preventDefault(),lt(!1)),Ie==="Ctrl+C"&&(ie.preventDefault(),Be(!0)),Ie==="Ctrl+Shift+C"&&(ie.preventDefault(),Be(!1)),Ie==="Ctrl+D"&&ie.preventDefault(),Ie!=="Delete"&&Ie!=="Backspace"||(ie.preventDefault(),dt()),Ie==="Insert"&&ie.preventDefault(),Ie==="Ctrl+A"&&ie.preventDefault(),Ie==="Ctrl+Q"&&ht(ie),Ie==="ArrowLeft"&&(ie.preventDefault(),Re(),de.selection)){var st=function(Xt,tn){var er=Kl(un(tn),Xt),Rr=er.rowIndex,qr=er.columnIndex;return qr>0?Xn(Mp({rowIndex:Rr,columnIndex:qr-1},Xt),!1):tn}(ae,de.selection);Ce(st),yt(un(st))}if(Ie==="ArrowRight"&&(ie.preventDefault(),Re(),de.selection)){var bt=function(Xt,tn){var er=Kl(un(tn),Xt),Rr=er.rowIndex,qr=er.columnIndex;return qr<Xt.length-1?Xn(Mp({rowIndex:Rr,columnIndex:qr+1},Xt),!1):tn}(ae,de.selection);Ce(bt),yt(un(bt))}if(Ie==="ArrowUp"&&(ie.preventDefault(),Re(),de.selection)){var St=function(Xt,tn){var er=Kl(un(tn),Xt),Rr=er.rowIndex,qr=er.columnIndex;return Rr>0?Xn(Mp({rowIndex:Rr-1,columnIndex:qr},Xt),!1):tn}(ae,de.selection);Ce(St),yt(un(St))}if(Ie==="ArrowDown"&&(ie.preventDefault(),Re(),de.selection)){var dn=function(Xt,tn,er){var Rr=Kl(un(er),tn),qr=Rr.rowIndex,pa=Rr.columnIndex;return qr<Xt.length-1?Xn(Mp({rowIndex:qr+1,columnIndex:pa},tn),!1):er}(y,ae,de.selection);Ce(dn),yt(un(dn))}if(Ie==="Enter"&&de.selection&&ur(de.selection)){ie.preventDefault();var It=de.selection.path;Mi(Ht(y,It))?In(It):_||Ce(qe(qe({},de.selection),{},{edit:!0}))}if(Ie.replace(/^Shift\+/,"").length===1&&de.selection)return ie.preventDefault(),void function(Xt){We.apply(this,arguments)}(ie.key);if(Ie==="Ctrl+Enter"&&ur(de.selection)){var On=Ht(y,de.selection.path);iw(On)&&window.open(String(On),"_blank")}Ie==="Escape"&&de.selection&&(ie.preventDefault(),Ce(null)),Ie==="Ctrl+F"&&ie.preventDefault(),Ie==="Ctrl+H"&&ie.preventDefault(),Ie==="Ctrl+Z"&&(ie.preventDefault(),yn()),Ie==="Ctrl+Shift+Z"&&(ie.preventDefault(),Un())},function(ie){var Ie;ie.preventDefault();var st=(Ie=ie.clipboardData)===null||Ie===void 0?void 0:Ie.getData("text/plain");st!==void 0&&Kae({clipboardText:st,json:y,selection:de.selection,readOnly:_,parser:j,onPatch:Ne,onChangeText:Lt,openRepairModal:Zn})},function(ie){s("select validation error",ie),Ce(Xn(ie.path,!1)),Ke(ie.path)},In,function(){(function(ie){_||y===void 0||(U=!0,oe({id:p,json:y,rootPath:ie,onSort:function(Ie){var st=Ie.operations,bt=Ie.itemPath,St=Ie.direction;s("onSort",st,ie,bt,St),Ne(st,function(dn,It){return{state:qe(qe({},It),{},{sortedColumn:{path:bt,sortDirection:St===-1?Ul.desc:Ul.asc}})}})},onClose:function(){U=!1,pe()}}))})([])},function(){bn({rootPath:[]})},yn,Un,function(ie){n(71,ye=ie.getBoundingClientRect().height)},He,S,E,k,P,T,M,B,V,I,F,z,L,N,q,oe,ee,be,_e,$e,Ke,je,bn,v,Y,ye,ue,function(ie){rr[ie?"unshift":"push"](function(){n(15,w=ie)})},function(){return n(9,D=1/0)},function(ie,Ie){return He(Ie,ie)},function(ie){rr[ie?"unshift":"push"](function(){n(14,x=ie)})},function(ie){rr[ie?"unshift":"push"](function(){n(13,g=ie)})}]}var Cat=function(e){function t(n){var r;return Qt(this,t),ln(Jt(r=an(this,t)),n,wat,xat,Pn,{readOnly:0,externalContent:47,externalSelection:48,mainMenuBar:1,escapeControlCharacters:49,escapeUnicodeCharacters:50,flattenColumns:51,parser:2,parseMemoizeOne:52,validator:53,validationParser:54,indentation:3,onChange:55,onChangeMode:4,onSelect:56,onRenderValue:57,onRenderMenu:5,onRenderContextMenu:58,onFocus:59,onBlur:60,onSortModal:61,onTransformModal:62,onJSONEditorModal:63,validate:64,patch:65,focus:6,acceptAutoRepair:7,scrollTo:66,findElement:67,openTransformModal:68},fat,[-1,-1,-1,-1,-1]),r}return sn(t,cn),en(t,[{key:"validate",get:function(){return this.$$.ctx[64]}},{key:"patch",get:function(){return this.$$.ctx[65]}},{key:"focus",get:function(){return this.$$.ctx[6]}},{key:"acceptAutoRepair",get:function(){return this.$$.ctx[7]}},{key:"scrollTo",get:function(){return this.$$.ctx[66]}},{key:"findElement",get:function(){return this.$$.ctx[67]}},{key:"openTransformModal",get:function(){return this.$$.ctx[68]}}]),t}();function _at(e){var t,n,r={externalContent:e[0],externalSelection:e[1],readOnly:e[2],indentation:e[3],mainMenuBar:e[6],navigationBar:e[7],escapeControlCharacters:e[10],escapeUnicodeCharacters:e[11],parser:e[13],parseMemoizeOne:e[14],validator:e[15],validationParser:e[16],pathParser:e[17],onError:e[23],onChange:e[18],onChangeMode:e[19],onSelect:e[20],onRenderValue:e[21],onClassName:e[22],onFocus:e[24],onBlur:e[25],onRenderMenu:e[32],onRenderContextMenu:e[33],onSortModal:e[26],onTransformModal:e[27],onJSONEditorModal:e[28]};return t=new Hj({props:r}),e[49](t),{c:function(){Qe(t.$$.fragment)},m:function(i,o){Ze(t,i,o),n=!0},p:function(i,o){var a={};1&o[0]&&(a.externalContent=i[0]),2&o[0]&&(a.externalSelection=i[1]),4&o[0]&&(a.readOnly=i[2]),8&o[0]&&(a.indentation=i[3]),64&o[0]&&(a.mainMenuBar=i[6]),128&o[0]&&(a.navigationBar=i[7]),1024&o[0]&&(a.escapeControlCharacters=i[10]),2048&o[0]&&(a.escapeUnicodeCharacters=i[11]),8192&o[0]&&(a.parser=i[13]),16384&o[0]&&(a.parseMemoizeOne=i[14]),32768&o[0]&&(a.validator=i[15]),65536&o[0]&&(a.validationParser=i[16]),131072&o[0]&&(a.pathParser=i[17]),8388608&o[0]&&(a.onError=i[23]),262144&o[0]&&(a.onChange=i[18]),524288&o[0]&&(a.onChangeMode=i[19]),1048576&o[0]&&(a.onSelect=i[20]),2097152&o[0]&&(a.onRenderValue=i[21]),4194304&o[0]&&(a.onClassName=i[22]),16777216&o[0]&&(a.onFocus=i[24]),33554432&o[0]&&(a.onBlur=i[25]),2&o[1]&&(a.onRenderMenu=i[32]),4&o[1]&&(a.onRenderContextMenu=i[33]),67108864&o[0]&&(a.onSortModal=i[26]),134217728&o[0]&&(a.onTransformModal=i[27]),268435456&o[0]&&(a.onJSONEditorModal=i[28]),t.$set(a)},i:function(i){n||(X(t.$$.fragment,i),n=!0)},o:function(i){re(t.$$.fragment,i),n=!1},d:function(i){e[49](null),Xe(t,i)}}}function Sat(e){var t,n,r={externalContent:e[0],externalSelection:e[1],readOnly:e[2],mainMenuBar:e[6],escapeControlCharacters:e[10],escapeUnicodeCharacters:e[11],flattenColumns:e[12],parser:e[13],parseMemoizeOne:e[14],validator:e[15],validationParser:e[16],indentation:e[3],onChange:e[18],onChangeMode:e[19],onSelect:e[20],onRenderValue:e[21],onFocus:e[24],onBlur:e[25],onRenderMenu:e[32],onRenderContextMenu:e[33],onSortModal:e[26],onTransformModal:e[27],onJSONEditorModal:e[28]};return t=new Cat({props:r}),e[48](t),{c:function(){Qe(t.$$.fragment)},m:function(i,o){Ze(t,i,o),n=!0},p:function(i,o){var a={};1&o[0]&&(a.externalContent=i[0]),2&o[0]&&(a.externalSelection=i[1]),4&o[0]&&(a.readOnly=i[2]),64&o[0]&&(a.mainMenuBar=i[6]),1024&o[0]&&(a.escapeControlCharacters=i[10]),2048&o[0]&&(a.escapeUnicodeCharacters=i[11]),4096&o[0]&&(a.flattenColumns=i[12]),8192&o[0]&&(a.parser=i[13]),16384&o[0]&&(a.parseMemoizeOne=i[14]),32768&o[0]&&(a.validator=i[15]),65536&o[0]&&(a.validationParser=i[16]),8&o[0]&&(a.indentation=i[3]),262144&o[0]&&(a.onChange=i[18]),524288&o[0]&&(a.onChangeMode=i[19]),1048576&o[0]&&(a.onSelect=i[20]),2097152&o[0]&&(a.onRenderValue=i[21]),16777216&o[0]&&(a.onFocus=i[24]),33554432&o[0]&&(a.onBlur=i[25]),2&o[1]&&(a.onRenderMenu=i[32]),4&o[1]&&(a.onRenderContextMenu=i[33]),67108864&o[0]&&(a.onSortModal=i[26]),134217728&o[0]&&(a.onTransformModal=i[27]),268435456&o[0]&&(a.onJSONEditorModal=i[28]),t.$set(a)},i:function(i){n||(X(t.$$.fragment,i),n=!0)},o:function(i){re(t.$$.fragment,i),n=!1},d:function(i){e[48](null),Xe(t,i)}}}function Eat(e){var t,n,r={externalContent:e[0],externalSelection:e[1],readOnly:e[2],indentation:e[3],tabSize:e[4],mainMenuBar:e[6],statusBar:e[8],askToFormat:e[9],escapeUnicodeCharacters:e[11],parser:e[13],validator:e[15],validationParser:e[16],onChange:e[18],onSelect:e[20],onChangeMode:e[19],onError:e[23],onFocus:e[24],onBlur:e[25],onRenderMenu:e[32],onSortModal:e[26],onTransformModal:e[27]};return t=new Aot({props:r}),e[47](t),{c:function(){Qe(t.$$.fragment)},m:function(i,o){Ze(t,i,o),n=!0},p:function(i,o){var a={};1&o[0]&&(a.externalContent=i[0]),2&o[0]&&(a.externalSelection=i[1]),4&o[0]&&(a.readOnly=i[2]),8&o[0]&&(a.indentation=i[3]),16&o[0]&&(a.tabSize=i[4]),64&o[0]&&(a.mainMenuBar=i[6]),256&o[0]&&(a.statusBar=i[8]),512&o[0]&&(a.askToFormat=i[9]),2048&o[0]&&(a.escapeUnicodeCharacters=i[11]),8192&o[0]&&(a.parser=i[13]),32768&o[0]&&(a.validator=i[15]),65536&o[0]&&(a.validationParser=i[16]),262144&o[0]&&(a.onChange=i[18]),1048576&o[0]&&(a.onSelect=i[20]),524288&o[0]&&(a.onChangeMode=i[19]),8388608&o[0]&&(a.onError=i[23]),16777216&o[0]&&(a.onFocus=i[24]),33554432&o[0]&&(a.onBlur=i[25]),2&o[1]&&(a.onRenderMenu=i[32]),67108864&o[0]&&(a.onSortModal=i[26]),134217728&o[0]&&(a.onTransformModal=i[27]),t.$set(a)},i:function(i){n||(X(t.$$.fragment,i),n=!0)},o:function(i){re(t.$$.fragment,i),n=!1},d:function(i){e[47](null),Xe(t,i)}}}function kat(e){var t,n,r,i,o,a=[Eat,Sat,_at],s=[];function l(c,u){return 32&u[0]&&(t=null),t==null&&(t=!(c[5]!==Aa.text&&String(c[5])!=="code")),t?0:c[5]===Aa.table?1:2}return n=l(e,[-1,-1]),r=s[n]=a[n](e),{c:function(){r.c(),i=cr()},m:function(c,u){s[n].m(c,u),ke(c,i,u),o=!0},p:function(c,u){var f=n;(n=l(c,u))===f?s[n].p(c,u):(pt(),re(s[f],1,1,function(){s[f]=null}),mt(),(r=s[n])?r.p(c,u):(r=s[n]=a[n](c)).c(),X(r,1),r.m(i.parentNode,i))},i:function(c){o||(X(r),o=!0)},o:function(c){re(r),o=!1},d:function(c){c&&Ee(i),s[n].d(c)}}}function $at(e,t,n){var r,i,o,a,s,l,c=t.content,u=t.selection,f=t.readOnly,h=t.indentation,p=t.tabSize,m=t.mode,b=t.mainMenuBar,v=t.navigationBar,g=t.statusBar,x=t.askToFormat,w=t.escapeControlCharacters,y=t.escapeUnicodeCharacters,C=t.flattenColumns,_=t.parser,S=t.parseMemoizeOne,E=t.validator,$=t.validationParser,k=t.pathParser,P=t.insideModal,T=t.onChange,j=t.onChangeMode,M=t.onSelect,B=t.onRenderValue,V=t.onClassName,R=t.onRenderMenu,I=t.onRenderContextMenu,G=t.onError,F=t.onFocus,z=t.onBlur,A=t.onSortModal,L=t.onTransformModal,N=t.onJSONEditorModal,q={type:"separator"};function oe(){return(oe=Dn(kt().mark(function ee(){return kt().wrap(function(be){for(;;)switch(be.prev=be.next){case 0:if(!o){be.next=3;break}return be.next=3,o.refresh();case 3:case"end":return be.stop()}},ee)}))).apply(this,arguments)}return e.$$set=function(ee){"content"in ee&&n(0,c=ee.content),"selection"in ee&&n(1,u=ee.selection),"readOnly"in ee&&n(2,f=ee.readOnly),"indentation"in ee&&n(3,h=ee.indentation),"tabSize"in ee&&n(4,p=ee.tabSize),"mode"in ee&&n(5,m=ee.mode),"mainMenuBar"in ee&&n(6,b=ee.mainMenuBar),"navigationBar"in ee&&n(7,v=ee.navigationBar),"statusBar"in ee&&n(8,g=ee.statusBar),"askToFormat"in ee&&n(9,x=ee.askToFormat),"escapeControlCharacters"in ee&&n(10,w=ee.escapeControlCharacters),"escapeUnicodeCharacters"in ee&&n(11,y=ee.escapeUnicodeCharacters),"flattenColumns"in ee&&n(12,C=ee.flattenColumns),"parser"in ee&&n(13,_=ee.parser),"parseMemoizeOne"in ee&&n(14,S=ee.parseMemoizeOne),"validator"in ee&&n(15,E=ee.validator),"validationParser"in ee&&n(16,$=ee.validationParser),"pathParser"in ee&&n(17,k=ee.pathParser),"insideModal"in ee&&n(34,P=ee.insideModal),"onChange"in ee&&n(18,T=ee.onChange),"onChangeMode"in ee&&n(19,j=ee.onChangeMode),"onSelect"in ee&&n(20,M=ee.onSelect),"onRenderValue"in ee&&n(21,B=ee.onRenderValue),"onClassName"in ee&&n(22,V=ee.onClassName),"onRenderMenu"in ee&&n(35,R=ee.onRenderMenu),"onRenderContextMenu"in ee&&n(36,I=ee.onRenderContextMenu),"onError"in ee&&n(23,G=ee.onError),"onFocus"in ee&&n(24,F=ee.onFocus),"onBlur"in ee&&n(25,z=ee.onBlur),"onSortModal"in ee&&n(26,A=ee.onSortModal),"onTransformModal"in ee&&n(27,L=ee.onTransformModal),"onJSONEditorModal"in ee&&n(28,N=ee.onJSONEditorModal)},e.$$.update=function(){524320&e.$$.dirty[0]&&n(46,a=[{type:"button",text:"text",title:"Switch to text mode (current mode: ".concat(m,")"),className:"jse-group-button jse-first"+(m===Aa.text||m==="code"?" jse-selected":""),onClick:function(){return j(Aa.text)}},{type:"button",text:"tree",title:"Switch to tree mode (current mode: ".concat(m,")"),className:"jse-group-button "+(m===Aa.tree?" jse-selected":""),onClick:function(){return j(Aa.tree)}},{type:"button",text:"table",title:"Switch to table mode (current mode: ".concat(m,")"),className:"jse-group-button jse-last"+(m===Aa.table?" jse-selected":""),onClick:function(){return j(Aa.table)}}]),32&e.$$.dirty[0]|32792&e.$$.dirty[1]&&n(32,s=function(ee){var be=woe(ee[0])?a.concat(ee):a.concat(q,ee);return R(be,{mode:m,modal:P})||be}),34&e.$$.dirty[0]|40&e.$$.dirty[1]&&n(33,l=function(ee){return I(ee,{mode:m,modal:P,selection:u})||ee})},[c,u,f,h,p,m,b,v,g,x,w,y,C,_,S,E,$,k,T,j,M,B,V,G,F,z,A,L,N,r,i,o,s,l,P,R,I,function(ee){if(r)return r.patch(ee);if(i)return i.patch(ee);if(o)return o.patch(ee);throw new Error('Method patch is not available in mode "'.concat(m,'"'))},function(ee){if(r)return r.expand(ee);throw new Error('Method expand is not available in mode "'.concat(m,'"'))},function(ee){if(o)o.openTransformModal(ee);else if(r)r.openTransformModal(ee);else{if(!i)throw new Error('Method transform is not available in mode "'.concat(m,'"'));i.openTransformModal(ee)}},function(){if(o)return o.validate();if(r)return r.validate();if(i)return i.validate();throw new Error('Method validate is not available in mode "'.concat(m,'"'))},function(){return r?r.acceptAutoRepair():c},function(ee){if(r)return r.scrollTo(ee);if(i)return i.scrollTo(ee);throw new Error('Method scrollTo is not available in mode "'.concat(m,'"'))},function(ee){if(r)return r.findElement(ee);if(i)return i.findElement(ee);throw new Error('Method findElement is not available in mode "'.concat(m,'"'))},function(){o?o.focus():r?r.focus():i&&i.focus()},function(){return oe.apply(this,arguments)},a,function(ee){rr[ee?"unshift":"push"](function(){n(31,o=ee)})},function(ee){rr[ee?"unshift":"push"](function(){n(30,i=ee)})},function(ee){rr[ee?"unshift":"push"](function(){n(29,r=ee)})}]}var Vse=function(e){function t(n){var r;return Qt(this,t),ln(Jt(r=an(this,t)),n,$at,kat,No,{content:0,selection:1,readOnly:2,indentation:3,tabSize:4,mode:5,mainMenuBar:6,navigationBar:7,statusBar:8,askToFormat:9,escapeControlCharacters:10,escapeUnicodeCharacters:11,flattenColumns:12,parser:13,parseMemoizeOne:14,validator:15,validationParser:16,pathParser:17,insideModal:34,onChange:18,onChangeMode:19,onSelect:20,onRenderValue:21,onClassName:22,onRenderMenu:35,onRenderContextMenu:36,onError:23,onFocus:24,onBlur:25,onSortModal:26,onTransformModal:27,onJSONEditorModal:28,patch:37,expand:38,transform:39,validate:40,acceptAutoRepair:41,scrollTo:42,findElement:43,focus:44,refresh:45},null,[-1,-1]),r}return sn(t,cn),en(t,[{key:"patch",get:function(){return this.$$.ctx[37]}},{key:"expand",get:function(){return this.$$.ctx[38]}},{key:"transform",get:function(){return this.$$.ctx[39]}},{key:"validate",get:function(){return this.$$.ctx[40]}},{key:"acceptAutoRepair",get:function(){return this.$$.ctx[41]}},{key:"scrollTo",get:function(){return this.$$.ctx[42]}},{key:"findElement",get:function(){return this.$$.ctx[43]}},{key:"focus",get:function(){return this.$$.ctx[44]}},{key:"refresh",get:function(){return this.$$.ctx[45]}}]),t}();function Tat(e){En(e,"svelte-1m3nfgb",'.jse-modal.svelte-1m3nfgb.svelte-1m3nfgb{flex:1;display:flex;flex-direction:column;min-width:0;min-height:0;font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size, 16px);line-height:normal;background:var(--jse-modal-background, #f5f5f5);color:var(--jse-text-color, #4d4d4d)}.jse-modal.svelte-1m3nfgb .svelte-select{--border:var(--jse-svelte-select-border, 1px solid #d8dbdf);--item-is-active-bg:var(--jse-item-is-active-bg, #3883fa);--border-radius:var(--jse-svelte-select-border-radius, 3px);--background:var(--jse-svelte-select-background, #fff);--padding:var(--jse-svelte-select-padding, 0 10px);--multi-select-padding:var(--jse-svelte-select-multi-select-padding, 0 10px);--font-size:var(--jse-svelte-select-font-size, var(--jse-font-size, 16px));--height:36px;--multi-item-height:28px;--multi-item-margin:2px;--multi-item-padding:2px 8px;--multi-item-border-radius:6px;--indicator-top:8px}.jse-modal.svelte-1m3nfgb .jse-modal-contents.svelte-1m3nfgb{flex:1;display:flex;flex-direction:column;padding:20px;overflow:auto;min-width:0;min-height:0}.jse-modal.svelte-1m3nfgb .jse-modal-contents .jse-actions.svelte-1m3nfgb{display:flex;flex-direction:row;justify-content:flex-end;padding-top:var(--jse-padding, 10px)}.jse-modal.svelte-1m3nfgb .jse-modal-contents .jse-actions button.jse-primary.svelte-1m3nfgb{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size, 16px);padding:5px;margin:0;background:var(--jse-button-primary-background, var(--jse-theme-color, #3883fa));color:var(--jse-button-primary-color, #fff);padding:var(--jse-padding, 10px) calc(2 * var(--jse-padding, 10px));border-radius:3px}.jse-modal.svelte-1m3nfgb .jse-modal-contents .jse-actions button.jse-primary.svelte-1m3nfgb:hover{background:var(--jse-button-primary-background-highlight, var(--jse-theme-color-highlight, #5f9dff))}.jse-modal.svelte-1m3nfgb .jse-modal-contents .jse-actions button.jse-primary.svelte-1m3nfgb:disabled{background:var(--jse-button-primary-background-disabled, #9d9d9d)}.bg.jse-modal-bg{width:100%;height:100%;top:0;left:0;background:var(--jse-overlay-background, rgba(0, 0, 0, 0.3))}.bg.jse-modal-bg .jse-modal-window-wrap{margin:0}.bg.jse-modal-bg .jse-modal-window{max-width:90%;margin:4rem auto 2rem auto;border-radius:2px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-sort{width:400px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-transform{width:1200px;height:1200px;max-height:80%;display:flex}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-jsoneditor{width:800px;height:auto;min-height:500px;max-height:calc(100vh - 6rem);display:flex}.bg.jse-modal-bg .jse-modal-container{flex:1;display:flex;flex-direction:column;padding:0}.jse-modal.jse-jsoneditor-modal.svelte-1m3nfgb .jse-modal-contents.svelte-1m3nfgb{padding-top:0}.jse-modal.jse-jsoneditor-modal.svelte-1m3nfgb .jse-modal-contents .jse-label.svelte-1m3nfgb{font-weight:bold;display:block;box-sizing:border-box}.jse-modal.jse-jsoneditor-modal.svelte-1m3nfgb .jse-modal-contents .jse-label .jse-label-inner.svelte-1m3nfgb{margin-top:calc(2 * var(--jse-padding, 10px));margin-bottom:calc(0.5 * var(--jse-padding, 10px));box-sizing:border-box}.jse-modal.jse-jsoneditor-modal.svelte-1m3nfgb .jse-modal-contents .jse-label .jse-label-inner button.svelte-1m3nfgb{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size, 16px);padding:5px;margin:0;font-weight:bold;padding:0}.jse-modal.jse-jsoneditor-modal.svelte-1m3nfgb .jse-modal-contents .jse-modal-inline-editor.svelte-1m3nfgb{flex:1;min-height:150px;min-width:0;display:flex;--jse-theme-color:var(--jse-modal-editor-theme-color, var(--jse-modal-theme-color, #707070));--jse-theme-color-highlight:var(--jse-modal-editor-theme-color-highlight, var(--jse-modal-theme-color-highlight, #646464))}.jse-modal.jse-jsoneditor-modal.svelte-1m3nfgb .jse-actions.svelte-1m3nfgb{gap:var(--jse-padding, 10px);align-items:center}.jse-modal.jse-jsoneditor-modal.svelte-1m3nfgb .jse-actions .jse-error.svelte-1m3nfgb{flex:1;color:var(--jse-error-color, #ee5341)}.jse-modal.jse-jsoneditor-modal.svelte-1m3nfgb .jse-actions button.jse-secondary.svelte-1m3nfgb{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size, 16px);padding:5px;margin:0;background:var(--jse-button-secondary-background, #d3d3d3);color:var(--jse-button-secondary-color, var(--jse-text-color, #4d4d4d));padding:var(--jse-padding, 10px) calc(2 * var(--jse-padding, 10px));border-radius:3px}.jse-modal.jse-jsoneditor-modal.svelte-1m3nfgb .jse-actions button.jse-secondary.svelte-1m3nfgb:hover{background:var(--jse-button-secondary-background-highlight, #e1e1e1)}.jse-modal.jse-jsoneditor-modal.svelte-1m3nfgb .jse-actions button.jse-secondary.svelte-1m3nfgb:disabled{background:var(--jse-button-secondary-background-disabled, #9d9d9d)}.jse-modal.jse-jsoneditor-modal.svelte-1m3nfgb input.svelte-1m3nfgb{border:var(--jse-input-border, 1px solid #d8dbdf);outline:none;box-sizing:border-box;padding:calc(0.5 * var(--jse-padding, 10px));font-family:var(--jse-font-family-mono, consolas, menlo, monaco, "Ubuntu Mono", "source-code-pro", monospace);font-size:var(--jse-font-size-mono, 14px);color:inherit;background:var(--jse-input-background, var(--jse-background-color, #fff))}.jse-modal.jse-jsoneditor-modal.svelte-1m3nfgb input.svelte-1m3nfgb:focus{border:var(--jse-input-border-focus, 1px solid var(--jse-input-border-focus, var(--jse-theme-color, #3883fa)))}.jse-modal.jse-jsoneditor-modal.svelte-1m3nfgb input.svelte-1m3nfgb:read-only{background:var(--jse-input-background-readonly, transparent)}')}function Hse(e){var t,n;return{c:function(){t=fe("div"),n=Pt(e[22]),W(t,"class","jse-error svelte-1m3nfgb")},m:function(r,i){ke(r,t,i),le(t,n)},p:function(r,i){4194304&i[0]&&mn(n,r[22])},d:function(r){r&&Ee(t)}}}function Use(e){var t,n,r,i,o,a;return n=new gr({props:{data:Ize}}),{c:function(){t=fe("button"),Qe(n.$$.fragment),r=Pt(" Back"),W(t,"type","button"),W(t,"class","jse-secondary svelte-1m3nfgb")},m:function(s,l){ke(s,t,l),Ze(n,t,null),le(t,r),i=!0,o||(a=ut(t,"click",e[27]),o=!0)},p:gt,i:function(s){i||(X(n.$$.fragment,s),i=!0)},o:function(s){re(n.$$.fragment,s),i=!1},d:function(s){s&&Ee(t),Xe(n),o=!1,a()}}}function Rat(e){var t,n,r;return{c:function(){(t=fe("button")).textContent="Close",W(t,"type","button"),W(t,"class","jse-primary svelte-1m3nfgb")},m:function(i,o){ke(i,t,o),n||(r=[ut(t,"click",e[27]),Do(Wse.call(null,t))],n=!0)},p:gt,d:function(i){i&&Ee(t),n=!1,Zr(r)}}}function Pat(e){var t,n,r;return{c:function(){(t=fe("button")).textContent="Apply",W(t,"type","button"),W(t,"class","jse-primary svelte-1m3nfgb")},m:function(i,o){ke(i,t,o),n||(r=[ut(t,"click",e[26]),Do(Wse.call(null,t))],n=!0)},p:gt,d:function(i){i&&Ee(t),n=!1,Zr(r)}}}function Oat(e){var t,n,r,i,o,a,s,l,c,u,f,h,p,m,b,v,g,x,w;n=new Tj({props:{title:"Edit nested content "+(e[20].length>1?" (".concat(e[20].length,")"):""),onClose:e[27]}});var y={mode:e[23].mode,content:e[23].content,selection:e[23].selection,readOnly:e[0],indentation:e[1],tabSize:e[2],statusBar:e[5],askToFormat:e[6],mainMenuBar:e[3],navigationBar:e[4],escapeControlCharacters:e[7],escapeUnicodeCharacters:e[8],flattenColumns:e[9],parser:e[10],parseMemoizeOne:e[24],validator:e[11],validationParser:e[12],pathParser:e[13],insideModal:!0,onError:e[31],onChange:e[28],onChangeMode:e[30],onSelect:e[29],onRenderValue:e[14],onClassName:e[15],onFocus:Yl,onBlur:Yl,onRenderMenu:e[16],onRenderContextMenu:e[17],onSortModal:e[18],onTransformModal:e[19],onJSONEditorModal:e[32]};h=new Vse({props:y}),e[37](h);var C=e[22]&&Hse(e),_=e[20].length>1&&Use(e);function S(k,P){return k[0]?Rat:Pat}var E=S(e),$=E(e);return{c:function(){t=fe("div"),Qe(n.$$.fragment),r=Ve(),i=fe("div"),(o=fe("div")).innerHTML='<div class="jse-label-inner svelte-1m3nfgb">Path</div>',a=Ve(),s=fe("input"),l=Ve(),(c=fe("div")).innerHTML='<div class="jse-label-inner svelte-1m3nfgb">Contents</div>',u=Ve(),f=fe("div"),Qe(h.$$.fragment),p=Ve(),m=fe("div"),C&&C.c(),b=Ve(),_&&_.c(),v=Ve(),$.c(),W(o,"class","jse-label svelte-1m3nfgb"),W(s,"class","jse-path svelte-1m3nfgb"),W(s,"type","text"),s.readOnly=!0,W(s,"title","Selected path"),s.value=e[25],W(c,"class","jse-label svelte-1m3nfgb"),W(f,"class","jse-modal-inline-editor svelte-1m3nfgb"),W(m,"class","jse-actions svelte-1m3nfgb"),W(i,"class","jse-modal-contents svelte-1m3nfgb"),W(t,"class","jse-modal jse-jsoneditor-modal svelte-1m3nfgb")},m:function(k,P){ke(k,t,P),Ze(n,t,null),le(t,r),le(t,i),le(i,o),le(i,a),le(i,s),le(i,l),le(i,c),le(i,u),le(i,f),Ze(h,f,null),le(i,p),le(i,m),C&&C.m(m,null),le(m,b),_&&_.m(m,null),le(m,v),$.m(m,null),g=!0,x||(w=Do(Ow.call(null,t,e[27])),x=!0)},p:function(k,P){var T={};1048576&P[0]&&(T.title="Edit nested content "+(k[20].length>1?" (".concat(k[20].length,")"):"")),n.$set(T),(!g||33554432&P[0]&&s.value!==k[25])&&(s.value=k[25]);var j={};8388608&P[0]&&(j.mode=k[23].mode),8388608&P[0]&&(j.content=k[23].content),8388608&P[0]&&(j.selection=k[23].selection),1&P[0]&&(j.readOnly=k[0]),2&P[0]&&(j.indentation=k[1]),4&P[0]&&(j.tabSize=k[2]),32&P[0]&&(j.statusBar=k[5]),64&P[0]&&(j.askToFormat=k[6]),8&P[0]&&(j.mainMenuBar=k[3]),16&P[0]&&(j.navigationBar=k[4]),128&P[0]&&(j.escapeControlCharacters=k[7]),256&P[0]&&(j.escapeUnicodeCharacters=k[8]),512&P[0]&&(j.flattenColumns=k[9]),1024&P[0]&&(j.parser=k[10]),16777216&P[0]&&(j.parseMemoizeOne=k[24]),2048&P[0]&&(j.validator=k[11]),4096&P[0]&&(j.validationParser=k[12]),8192&P[0]&&(j.pathParser=k[13]),16384&P[0]&&(j.onRenderValue=k[14]),32768&P[0]&&(j.onClassName=k[15]),65536&P[0]&&(j.onRenderMenu=k[16]),131072&P[0]&&(j.onRenderContextMenu=k[17]),262144&P[0]&&(j.onSortModal=k[18]),524288&P[0]&&(j.onTransformModal=k[19]),h.$set(j),k[22]?C?C.p(k,P):((C=Hse(k)).c(),C.m(m,b)):C&&(C.d(1),C=null),k[20].length>1?_?(_.p(k,P),1048576&P[0]&&X(_,1)):((_=Use(k)).c(),X(_,1),_.m(m,v)):_&&(pt(),re(_,1,1,function(){_=null}),mt()),E===(E=S(k))&&$?$.p(k,P):($.d(1),($=E(k))&&($.c(),$.m(m,null)))},i:function(k){g||(X(n.$$.fragment,k),X(h.$$.fragment,k),X(_),g=!0)},o:function(k){re(n.$$.fragment,k),re(h.$$.fragment,k),re(_),g=!1},d:function(k){k&&Ee(t),Xe(n),e[37](null),Xe(h),C&&C.d(),_&&_.d(),$.d(),x=!1,w()}}}function Wse(e){e.focus()}function jat(e,t,n){var r,i,o,a,s,l=ha("jsoneditor:JSONEditorModal"),c=t.content,u=t.path,f=t.onPatch,h=t.readOnly,p=t.indentation,m=t.tabSize,b=t.mainMenuBar,v=t.navigationBar,g=t.statusBar,x=t.askToFormat,w=t.escapeControlCharacters,y=t.escapeUnicodeCharacters,C=t.flattenColumns,_=t.parser,S=t.validator,E=t.validationParser,$=t.pathParser,k=t.onRenderValue,P=t.onClassName,T=t.onRenderMenu,j=t.onRenderContextMenu,M=t.onSortModal,B=t.onTransformModal,V=fa("simple-modal").close,R={mode:F(c),content:c,selection:null,relativePath:u},I=[R],G=void 0;function F(A){return uy(A)&&Qr(A.json)?Aa.table:Aa.tree}function z(){var A,L=((A=or(I))===null||A===void 0?void 0:A.selection)||null;fj(L)&&s.scrollTo(un(L))}return e.$$set=function(A){"content"in A&&n(33,c=A.content),"path"in A&&n(34,u=A.path),"onPatch"in A&&n(35,f=A.onPatch),"readOnly"in A&&n(0,h=A.readOnly),"indentation"in A&&n(1,p=A.indentation),"tabSize"in A&&n(2,m=A.tabSize),"mainMenuBar"in A&&n(3,b=A.mainMenuBar),"navigationBar"in A&&n(4,v=A.navigationBar),"statusBar"in A&&n(5,g=A.statusBar),"askToFormat"in A&&n(6,x=A.askToFormat),"escapeControlCharacters"in A&&n(7,w=A.escapeControlCharacters),"escapeUnicodeCharacters"in A&&n(8,y=A.escapeUnicodeCharacters),"flattenColumns"in A&&n(9,C=A.flattenColumns),"parser"in A&&n(10,_=A.parser),"validator"in A&&n(11,S=A.validator),"validationParser"in A&&n(12,E=A.validationParser),"pathParser"in A&&n(13,$=A.pathParser),"onRenderValue"in A&&n(14,k=A.onRenderValue),"onClassName"in A&&n(15,P=A.onClassName),"onRenderMenu"in A&&n(16,T=A.onRenderMenu),"onRenderContextMenu"in A&&n(17,j=A.onRenderContextMenu),"onSortModal"in A&&n(18,M=A.onSortModal),"onTransformModal"in A&&n(19,B=A.onTransformModal)},e.$$.update=function(){1048576&e.$$.dirty[0]&&n(23,r=or(I)||R),1048576&e.$$.dirty[0]&&n(36,i=I.flatMap(function(A){return A.relativePath})),32&e.$$.dirty[1]&&n(25,o=kr(i)?"(document root)":zs(i)),1024&e.$$.dirty[0]&&n(24,a=ib(_.parse))},[h,p,m,b,v,g,x,w,y,C,_,S,E,$,k,P,T,j,M,B,I,s,G,r,a,o,function(){if(l("handleApply"),!h)try{n(22,G=void 0);var A=r.relativePath,L=r.content,N=[{op:"replace",path:Mt(A),value:fre(L,_).json}];if(I.length>1){var q=fre(I[I.length-2].content,_).json,oe={json:vc(q,N)},ee=qe(qe({},I[I.length-2]||R),{},{content:oe});n(20,I=[].concat(Yn(I.slice(0,I.length-2)),[ee])),eo().then(z)}else f(N),V()}catch(be){n(22,G=String(be))}},function(){l("handleClose"),I.length>1?(n(20,I=sr(I)),eo().then(z),n(22,G=void 0)):V()},function(A){l("handleChange",A);var L=qe(qe({},r),{},{content:A});n(20,I=[].concat(Yn(sr(I)),[L]))},function(A){l("handleChangeSelection",A);var L=qe(qe({},r),{},{selection:A});n(20,I=[].concat(Yn(sr(I)),[L]))},function(A){l("handleChangeMode",A);var L=qe(qe({},r),{},{mode:A});n(20,I=[].concat(Yn(sr(I)),[L]))},function(A){n(22,G=A.toString()),console.error(A)},function(A){var L=A.content,N=A.path;l("handleJSONEditorModal",{content:L,path:N});var q={mode:F(L),content:L,selection:null,relativePath:N};n(20,I=[].concat(Yn(I),[q]))},c,u,f,i,function(A){rr[A?"unshift":"push"](function(){n(21,s=A)})}]}var Mat=function(e){function t(n){var r;return Qt(this,t),ln(Jt(r=an(this,t)),n,jat,Oat,Pn,{content:33,path:34,onPatch:35,readOnly:0,indentation:1,tabSize:2,mainMenuBar:3,navigationBar:4,statusBar:5,askToFormat:6,escapeControlCharacters:7,escapeUnicodeCharacters:8,flattenColumns:9,parser:10,validator:11,validationParser:12,pathParser:13,onRenderValue:14,onClassName:15,onRenderMenu:16,onRenderContextMenu:17,onSortModal:18,onTransformModal:19},Tat,[-1,-1]),r}return sn(t,cn),en(t)}();function Aat(e,t,n){var r=fa("simple-modal");return[r.open,r.close]}var Nat=function(e){function t(n){var r;return Qt(this,t),ln(Jt(r=an(this,t)),n,Aat,null,Pn,{open:0,close:1}),r}return sn(t,cn),en(t,[{key:"open",get:function(){return this.$$.ctx[0]}},{key:"close",get:function(){return this.$$.ctx[1]}}]),t}();function Dat(e){En(e,"svelte-ybuk0j",'.jse-main.svelte-ybuk0j{width:100%;height:100%;min-width:0;min-height:150px;font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size, 16px);line-height:normal;position:relative;display:flex;flex-direction:row}')}function qse(e){var t,n,r={mode:e[1],content:e[0],selection:e[2],readOnly:e[3],indentation:e[4],tabSize:e[5],statusBar:e[8],askToFormat:e[9],mainMenuBar:e[6],navigationBar:e[7],escapeControlCharacters:e[10],escapeUnicodeCharacters:e[11],flattenColumns:e[12],parser:e[13],parseMemoizeOne:e[27],validator:e[14],validationParser:e[15],pathParser:e[16],insideModal:!1,onError:e[21],onChange:e[28],onChangeMode:e[32],onSelect:e[29],onRenderValue:e[17],onClassName:e[18],onFocus:e[30],onBlur:e[31],onRenderMenu:e[19],onRenderContextMenu:e[20],onSortModal:e[34],onTransformModal:e[33],onJSONEditorModal:e[35]};return t=new Vse({props:r}),e[62](t),{c:function(){Qe(t.$$.fragment)},m:function(i,o){Ze(t,i,o),n=!0},p:function(i,o){var a={};2&o[0]&&(a.mode=i[1]),1&o[0]&&(a.content=i[0]),4&o[0]&&(a.selection=i[2]),8&o[0]&&(a.readOnly=i[3]),16&o[0]&&(a.indentation=i[4]),32&o[0]&&(a.tabSize=i[5]),256&o[0]&&(a.statusBar=i[8]),512&o[0]&&(a.askToFormat=i[9]),64&o[0]&&(a.mainMenuBar=i[6]),128&o[0]&&(a.navigationBar=i[7]),1024&o[0]&&(a.escapeControlCharacters=i[10]),2048&o[0]&&(a.escapeUnicodeCharacters=i[11]),4096&o[0]&&(a.flattenColumns=i[12]),8192&o[0]&&(a.parser=i[13]),134217728&o[0]&&(a.parseMemoizeOne=i[27]),16384&o[0]&&(a.validator=i[14]),32768&o[0]&&(a.validationParser=i[15]),65536&o[0]&&(a.pathParser=i[16]),2097152&o[0]&&(a.onError=i[21]),131072&o[0]&&(a.onRenderValue=i[17]),262144&o[0]&&(a.onClassName=i[18]),524288&o[0]&&(a.onRenderMenu=i[19]),1048576&o[0]&&(a.onRenderContextMenu=i[20]),t.$set(a)},i:function(i){n||(X(t.$$.fragment,i),n=!0)},o:function(i){re(t.$$.fragment,i),n=!1},d:function(i){e[62](null),Xe(t,i)}}}function Iat(e){var t,n,r,i,o,a=e[22];function s(u){e[61](u)}var l={};e[25]!==void 0&&(l.open=e[25]),t=new Nat({props:l}),rr.push(function(){return Tc(t,"open",s)});var c=qse(e);return{c:function(){Qe(t.$$.fragment),r=Ve(),i=fe("div"),c.c(),W(i,"class","jse-main svelte-ybuk0j"),at(i,"jse-focus",e[23])},m:function(u,f){Ze(t,u,f),ke(u,r,f),ke(u,i,f),c.m(i,null),o=!0},p:function(u,f){var h={};!n&&33554432&f[0]&&(n=!0,h.open=u[25],$c(function(){return n=!1})),t.$set(h),4194304&f[0]&&Pn(a,a=u[22])?(pt(),re(c,1,1,gt),mt(),(c=qse(u)).c(),X(c,1),c.m(i,null)):c.p(u,f),(!o||8388608&f[0])&&at(i,"jse-focus",u[23])},i:function(u){o||(X(t.$$.fragment,u),X(c),o=!0)},o:function(u){re(t.$$.fragment,u),re(c),o=!1},d:function(u){u&&(Ee(r),Ee(i)),Xe(t,u),c.d(u)}}}function Lat(e){var t,n;return t=new Qne({props:{closeOnEsc:!1,$$slots:{default:[Iat]},$$scope:{ctx:e}}}),{c:function(){Qe(t.$$.fragment)},m:function(r,i){Ze(t,r,i),n=!0},p:function(r,i){var o={};201326591&i[0]|8&i[2]&&(o.$$scope={dirty:i,ctx:r}),t.$set(o)},i:function(r){n||(X(t.$$.fragment,r),n=!0)},o:function(r){re(t.$$.fragment,r),n=!1},d:function(r){Xe(t,r)}}}function Bat(e){for(var t,n,r,i=[{show:(t=e[26])===null||t===void 0?void 0:t.component},ZJe,{closeOnEsc:!1}],o={$$slots:{default:[Lat]},$$scope:{ctx:e}},a=0;a<i.length;a+=1)o=Fs(o,i[a]);return(n=new Qne({props:o})).$on("close",e[36]),{c:function(){Qe(n.$$.fragment)},m:function(s,l){Ze(n,s,l),r=!0},p:function(s,l){var c,u=67108864&l[0]?Hl(i,[{show:(c=s[26])===null||c===void 0?void 0:c.component},i[1],i[2]]):{};201326591&l[0]|8&l[2]&&(u.$$scope={dirty:l,ctx:s}),n.$set(u)},i:function(s){r||(X(n.$$.fragment,s),r=!0)},o:function(s){re(n.$$.fragment,s),r=!1},d:function(s){Xe(n,s)}}}function Fat(e){var t,n;return t=new Rre({props:{$$slots:{default:[Bat]},$$scope:{ctx:e}}}),{c:function(){Qe(t.$$.fragment)},m:function(r,i){Ze(t,r,i),n=!0},p:function(r,i){var o={};268435455&i[0]|8&i[2]&&(o.$$scope={dirty:i,ctx:r}),t.$set(o)},i:function(r){n||(X(t.$$.fragment,r),n=!0)},o:function(r){re(t.$$.fragment,r),n=!1},d:function(r){Xe(t,r)}}}function zat(e,t,n){var r,i,o,a=ha("jsoneditor:JSONEditor"),s=t.content,l=s===void 0?{text:""}:s,c=t.selection,u=c===void 0?null:c,f=t.readOnly,h=f!==void 0&&f,p=t.indentation,m=p===void 0?2:p,b=t.tabSize,v=b===void 0?4:b,g=t.mode,x=g===void 0?Aa.tree:g,w=t.mainMenuBar,y=w===void 0||w,C=t.navigationBar,_=C===void 0||C,S=t.statusBar,E=S===void 0||S,$=t.askToFormat,k=$===void 0||$,P=t.escapeControlCharacters,T=P!==void 0&&P,j=t.escapeUnicodeCharacters,M=j!==void 0&&j,B=t.flattenColumns,V=B===void 0||B,R=t.parser,I=R===void 0?JSON:R,G=t.validator,F=G===void 0?null:G,z=t.validationParser,A=z===void 0?JSON:z,L=t.pathParser,N=L===void 0?{parse:EQe,stringify:zs}:L,q=t.queryLanguages,oe=q===void 0?[TQe]:q,ee=t.queryLanguageId,be=ee===void 0?oe[0].id:ee,H=t.onChangeQueryLanguage,O=H===void 0?Yl:H,D=t.onChange,ae=D===void 0?null:D,U=t.onSelect,Y=U===void 0?Yl:U,ye=t.onRenderValue,ue=ye===void 0?Pet:ye,Ce=t.onClassName,he=Ce===void 0?function(){}:Ce,de=t.onRenderMenu,ve=de===void 0?Yl:de,Oe=t.onRenderContextMenu,Le=Oe===void 0?Yl:Oe,Ge=t.onChangeMode,ne=Ge===void 0?Yl:Ge,Te=t.onError,J=Te===void 0?function(Be){console.error(Be),alert(Be.toString())}:Te,Z=t.onFocus,ce=Z===void 0?Yl:Z,_e=t.onBlur,$e=_e===void 0?Yl:_e,Ne=ly(),it=!1,Je=null,ft=I;function Wt(){return(Wt=Dn(kt().mark(function Be(Tt){var dt;return kt().wrap(function(K){for(;;)switch(K.prev=K.next){case 0:if(a("set"),!(dt=YO(Tt))){K.next=4;break}throw new Error(dt);case 4:n(22,Ne=ly()),n(0,l=Tt);case 6:case"end":return K.stop()}},Be)}))).apply(this,arguments)}function pe(){return(pe=Dn(kt().mark(function Be(Tt){var dt;return kt().wrap(function(K){for(;;)switch(K.prev=K.next){case 0:if(a("update"),!(dt=YO(Tt))){K.next=4;break}throw new Error(dt);case 4:return n(0,l=Tt),K.next=7,eo();case 7:case"end":return K.stop()}},Be)}))).apply(this,arguments)}function Re(){return(Re=Dn(kt().mark(function Be(Tt){var dt;return kt().wrap(function(K){for(;;)switch(K.prev=K.next){case 0:if(!ng(l)){K.next=8;break}K.prev=1,n(0,l={json:I.parse(l.text),text:void 0}),K.next=8;break;case 5:throw K.prev=5,K.t0=K.catch(1),new Error("Cannot apply patch: current document contains invalid JSON");case 8:return dt=i.patch(Tt),K.next=11,eo();case 11:return K.abrupt("return",dt);case 12:case"end":return K.stop()}},Be,null,[[1,5]])}))).apply(this,arguments)}function Ke(){return(Ke=Dn(kt().mark(function Be(Tt){return kt().wrap(function(dt){for(;;)switch(dt.prev=dt.next){case 0:return n(2,u=Tt),dt.next=3,eo();case 3:case"end":return dt.stop()}},Be)}))).apply(this,arguments)}function _t(){return(_t=Dn(kt().mark(function Be(Tt){return kt().wrap(function(dt){for(;;)switch(dt.prev=dt.next){case 0:return i.expand(Tt),dt.next=3,eo();case 3:case"end":return dt.stop()}},Be)}))).apply(this,arguments)}function yt(){return yt=Dn(kt().mark(function Be(){var Tt;return kt().wrap(function(dt){for(;;)switch(dt.prev=dt.next){case 0:return Tt=i.acceptAutoRepair(),dt.next=3,eo();case 3:return dt.abrupt("return",Tt);case 4:case"end":return dt.stop()}},Be)})),yt.apply(this,arguments)}function je(){return(je=Dn(kt().mark(function Be(Tt){return kt().wrap(function(dt){for(;;)switch(dt.prev=dt.next){case 0:return dt.next=2,i.scrollTo(Tt);case 2:case"end":return dt.stop()}},Be)}))).apply(this,arguments)}function et(){return ht.apply(this,arguments)}function ht(){return(ht=Dn(kt().mark(function Be(){return kt().wrap(function(Tt){for(;;)switch(Tt.prev=Tt.next){case 0:return i.focus(),Tt.next=3,eo();case 3:case"end":return Tt.stop()}},Be)}))).apply(this,arguments)}function vt(){return(vt=Dn(kt().mark(function Be(){return kt().wrap(function(Tt){for(;;)switch(Tt.prev=Tt.next){case 0:return Tt.next=2,i.refresh();case 2:case"end":return Tt.stop()}},Be)}))).apply(this,arguments)}function ze(){return(ze=Dn(kt().mark(function Be(Tt){return kt().wrap(function(dt){for(;;)switch(dt.prev=dt.next){case 0:return this.$set(Tt),dt.next=3,eo();case 3:case"end":return dt.stop()}},Be,this)}))).apply(this,arguments)}function ct(){return(ct=Dn(kt().mark(function Be(){return kt().wrap(function(Tt){for(;;)switch(Tt.prev=Tt.next){case 0:return this.$destroy(),Tt.next=3,eo();case 3:case"end":return Tt.stop()}},Be,this)}))).apply(this,arguments)}function Ae(){return(Ae=Dn(kt().mark(function Be(Tt){return kt().wrap(function(dt){for(;;)switch(dt.prev=dt.next){case 0:if(x!==Tt){dt.next=2;break}return dt.abrupt("return");case 2:return n(1,x=Tt),dt.next=5,eo();case 5:return dt.next=7,et();case 7:ne(Tt);case 8:case"end":return dt.stop()}},Be)}))).apply(this,arguments)}function Ye(Be){a("handleChangeQueryLanguage",Be),n(37,be=Be),O(Be)}function lt(Be){var Tt=Be.id,dt=Be.json,K=Be.rootPath,te=Be.onTransform,we=Be.onClose;h||o(pot,{id:Tt,json:dt,rootPath:K,indentation:m,escapeControlCharacters:T,escapeUnicodeCharacters:M,parser:I,parseMemoizeOne:r,validationParser:A,pathParser:N,queryLanguages:oe,queryLanguageId:be,onChangeQueryLanguage:Ye,onRenderValue:ue,onRenderMenu:ve,onRenderContextMenu:Le,onClassName:he,onTransform:te},YJe,{onClose:we})}function jt(Be){var Tt=Be.id,dt=Be.json,K=Be.rootPath,te=Be.onSort,we=Be.onClose;h||o(yot,{id:Tt,json:dt,rootPath:K,onSort:te},KJe,{onClose:we})}return e.$$set=function(Be){"content"in Be&&n(0,l=Be.content),"selection"in Be&&n(2,u=Be.selection),"readOnly"in Be&&n(3,h=Be.readOnly),"indentation"in Be&&n(4,m=Be.indentation),"tabSize"in Be&&n(5,v=Be.tabSize),"mode"in Be&&n(1,x=Be.mode),"mainMenuBar"in Be&&n(6,y=Be.mainMenuBar),"navigationBar"in Be&&n(7,_=Be.navigationBar),"statusBar"in Be&&n(8,E=Be.statusBar),"askToFormat"in Be&&n(9,k=Be.askToFormat),"escapeControlCharacters"in Be&&n(10,T=Be.escapeControlCharacters),"escapeUnicodeCharacters"in Be&&n(11,M=Be.escapeUnicodeCharacters),"flattenColumns"in Be&&n(12,V=Be.flattenColumns),"parser"in Be&&n(13,I=Be.parser),"validator"in Be&&n(14,F=Be.validator),"validationParser"in Be&&n(15,A=Be.validationParser),"pathParser"in Be&&n(16,N=Be.pathParser),"queryLanguages"in Be&&n(38,oe=Be.queryLanguages),"queryLanguageId"in Be&&n(37,be=Be.queryLanguageId),"onChangeQueryLanguage"in Be&&n(39,O=Be.onChangeQueryLanguage),"onChange"in Be&&n(40,ae=Be.onChange),"onSelect"in Be&&n(41,Y=Be.onSelect),"onRenderValue"in Be&&n(17,ue=Be.onRenderValue),"onClassName"in Be&&n(18,he=Be.onClassName),"onRenderMenu"in Be&&n(19,ve=Be.onRenderMenu),"onRenderContextMenu"in Be&&n(20,Le=Be.onRenderContextMenu),"onChangeMode"in Be&&n(42,ne=Be.onChangeMode),"onError"in Be&&n(21,J=Be.onError),"onFocus"in Be&&n(43,ce=Be.onFocus),"onBlur"in Be&&n(44,$e=Be.onBlur)},e.$$.update=function(){if(8193&e.$$.dirty[0]|536870912&e.$$.dirty[1]&&!cQe(I,ft)){if(a("parser changed, recreate editor"),uy(l)){var Be=ft.stringify(l.json);n(0,l={json:Be!==void 0?I.parse(Be):void 0})}n(60,ft=I),n(22,Ne=ly())}if(1&e.$$.dirty[0]){var Tt=YO(l);Tt&&console.error("Error: "+Tt)}8192&e.$$.dirty[0]&&n(27,r=ib(I.parse)),2&e.$$.dirty[0]&&(a("mode changed to",x),x==="code"&&console.warn('Deprecation warning: "code" mode is renamed to "text". Please use mode="text" instead.'))},[l,x,u,h,m,v,y,_,E,k,T,M,V,I,F,A,N,ue,he,ve,Le,J,Ne,it,i,o,Je,r,function(Be,Tt,dt){n(0,l=Be),ae&&ae(Be,Tt,dt)},function(Be){n(2,u=Be),Y(Be)},function(){n(23,it=!0),ce&&ce()},function(){n(23,it=!1),$e&&$e()},function(Be){return Ae.apply(this,arguments)},lt,jt,function(Be){var Tt=Be.content,dt=Be.path,K=Be.onPatch,te=Be.onClose;a("onJSONEditorModal",{content:Tt,path:dt}),n(26,Je={component:Jne(Mat,{content:Tt,path:dt,onPatch:K,readOnly:h,indentation:m,tabSize:v,mainMenuBar:y,navigationBar:_,statusBar:E,askToFormat:k,escapeControlCharacters:T,escapeUnicodeCharacters:M,flattenColumns:V,parser:I,validator:void 0,validationParser:A,pathParser:N,onRenderValue:ue,onClassName:he,onRenderMenu:ve,onRenderContextMenu:Le,onSortModal:jt,onTransformModal:lt}),callbacks:{onClose:te}})},function(){var Be,Tt;(Be=Je)===null||Be===void 0||(Be=Be.callbacks)===null||Be===void 0||(Tt=Be.onClose)===null||Tt===void 0||Tt.call(Be),n(26,Je=null)},be,oe,O,ae,Y,ne,ce,$e,function(){return l},function(Be){return Wt.apply(this,arguments)},function(Be){return pe.apply(this,arguments)},function(Be){return Re.apply(this,arguments)},function(Be){return Ke.apply(this,arguments)},function(Be){return _t.apply(this,arguments)},function(Be){i.transform(Be)},function(){return i.validate()},function(){return yt.apply(this,arguments)},function(Be){return je.apply(this,arguments)},function(Be){return i.findElement(Be)},et,function(){return vt.apply(this,arguments)},function(Be){return ze.apply(this,arguments)},function(){return ct.apply(this,arguments)},ft,function(Be){n(25,o=Be)},function(Be){rr[Be?"unshift":"push"](function(){n(24,i=Be)})}]}var Vat=function(e){function t(n){var r;return Qt(this,t),ln(Jt(r=an(this,t)),n,zat,Fat,Pn,{content:0,selection:2,readOnly:3,indentation:4,tabSize:5,mode:1,mainMenuBar:6,navigationBar:7,statusBar:8,askToFormat:9,escapeControlCharacters:10,escapeUnicodeCharacters:11,flattenColumns:12,parser:13,validator:14,validationParser:15,pathParser:16,queryLanguages:38,queryLanguageId:37,onChangeQueryLanguage:39,onChange:40,onSelect:41,onRenderValue:17,onClassName:18,onRenderMenu:19,onRenderContextMenu:20,onChangeMode:42,onError:21,onFocus:43,onBlur:44,get:45,set:46,update:47,patch:48,select:49,expand:50,transform:51,validate:52,acceptAutoRepair:53,scrollTo:54,findElement:55,focus:56,refresh:57,updateProps:58,destroy:59},Dat,[-1,-1,-1]),r}return sn(t,cn),en(t,[{key:"get",get:function(){return this.$$.ctx[45]}},{key:"set",get:function(){return this.$$.ctx[46]}},{key:"update",get:function(){return this.$$.ctx[47]}},{key:"patch",get:function(){return this.$$.ctx[48]}},{key:"select",get:function(){return this.$$.ctx[49]}},{key:"expand",get:function(){return this.$$.ctx[50]}},{key:"transform",get:function(){return this.$$.ctx[51]}},{key:"validate",get:function(){return this.$$.ctx[52]}},{key:"acceptAutoRepair",get:function(){return this.$$.ctx[53]}},{key:"scrollTo",get:function(){return this.$$.ctx[54]}},{key:"findElement",get:function(){return this.$$.ctx[55]}},{key:"focus",get:function(){return this.$$.ctx[56]}},{key:"refresh",get:function(){return this.$$.ctx[57]}},{key:"updateProps",get:function(){return this.$$.ctx[58]}},{key:"destroy",get:function(){return this.$$.ctx[59]}}]),t}();function Hat(e){En(e,"svelte-9wp3tj",".jse-value.jse-string.svelte-9wp3tj{color:var(--jse-value-color-string, #008000)}.jse-value.jse-object.svelte-9wp3tj,.jse-value.jse-array.svelte-9wp3tj{min-width:16px;color:var(--jse-delimiter-color, rgba(0, 0, 0, 0.38))}.jse-value.jse-number.svelte-9wp3tj{color:var(--jse-value-color-number, #ee422e)}.jse-value.jse-boolean.svelte-9wp3tj{color:var(--jse-value-color-boolean, #ff8c00)}.jse-value.jse-null.svelte-9wp3tj{color:var(--jse-value-color-null, #004ed0)}.jse-value.jse-invalid.svelte-9wp3tj{color:var(--jse-text-color, #4d4d4d)}.jse-value.jse-url.svelte-9wp3tj{color:var(--jse-value-color-url, #008000);text-decoration:underline}.jse-enum-value.svelte-9wp3tj{background:var(--jse-hover-background-color, rgba(0, 0, 0, 0.06));border:none;padding:0;font-family:inherit;font-size:inherit;cursor:pointer;outline:none}.jse-enum-value.jse-selected.svelte-9wp3tj{background:var(--jse-selection-background-color, #d3d3d3);color:inherit}.jse-enum-value.jse-value.svelte-9wp3tj:focus{color:var(--jse-text-color, #4d4d4d)}.jse-json-node.jse-selected .jse-enum-value.svelte-9wp3tj{background:transparent}")}function Gse(e,t,n){var r=e.slice();return r[13]=t[n],r}function Kse(e){var t,n,r,i=e[13].text+"";return{c:function(){t=fe("option"),n=Pt(i),t.__value=r=e[13].value,Iu(t,t.__value)},m:function(o,a){ke(o,t,a),le(t,n)},p:function(o,a){4&a&&i!==(i=o[13].text+"")&&mn(n,i),4&a&&r!==(r=o[13].value)&&(t.__value=r,Iu(t,t.__value))},d:function(o){o&&Ee(t)}}}function Uat(e){for(var t,n,r,i,o=kn(e[2]),a=[],s=0;s<o.length;s+=1)a[s]=Kse(Gse(e,o,s));return{c:function(){t=fe("select");for(var l=0;l<a.length;l+=1)a[l].c();W(t,"class",n=xi("jse-enum-value ".concat(vy(e[4],e[0])))+" svelte-9wp3tj"),e[4]===void 0&&xp(function(){return e[10].call(t)}),at(t,"jse-selected",ur(e[1]))},m:function(l,c){ke(l,t,c);for(var u=0;u<a.length;u+=1)a[u]&&a[u].m(t,null);zne(t,e[4],!0),e[11](t),r||(i=[ut(t,"change",e[10]),ut(t,"change",e[5]),ut(t,"mousedown",Wat)],r=!0)},p:function(l,c){var u=Sn(c,1)[0];if(4&u){var f;for(o=kn(l[2]),f=0;f<o.length;f+=1){var h=Gse(l,o,f);a[f]?a[f].p(h,u):(a[f]=Kse(h),a[f].c(),a[f].m(t,null))}for(;f<a.length;f+=1)a[f].d(1);a.length=o.length}17&u&&n!==(n=xi("jse-enum-value ".concat(vy(l[4],l[0])))+" svelte-9wp3tj")&&W(t,"class",n),16&u&&zne(t,l[4]),19&u&&at(t,"jse-selected",ur(l[1]))},i:gt,o:gt,d:function(l){l&&Ee(t),Qi(a,l),e[11](null),r=!1,Zr(i)}}}function Wat(e){e.stopPropagation()}function qat(e,t,n){var r,i=t.path,o=t.value,a=t.parser,s=t.readOnly,l=t.selection,c=t.onPatch,u=t.options,f=o;return e.$$set=function(h){"path"in h&&n(6,i=h.path),"value"in h&&n(7,o=h.value),"parser"in h&&n(0,a=h.parser),"readOnly"in h&&n(8,s=h.readOnly),"selection"in h&&n(1,l=h.selection),"onPatch"in h&&n(9,c=h.onPatch),"options"in h&&n(2,u=h.options)},e.$$.update=function(){128&e.$$.dirty&&n(4,f=o),2&e.$$.dirty&&function(h){h&&r&&r.focus()}(l)},[a,l,u,r,f,function(h){h.stopPropagation(),s||c([{op:"replace",path:Mt(i),value:f}])},i,o,s,c,function(){var h;h=this.querySelector(":checked"),f=h&&h.__value,n(4,f),n(7,o)},function(h){rr[h?"unshift":"push"](function(){n(3,r=h),n(2,u)})}]}(function(e){function t(n){var r;return Qt(this,t),ln(Jt(r=an(this,t)),n,qat,Uat,Pn,{path:6,value:7,parser:0,readOnly:8,selection:1,onPatch:9,options:2},Hat),r}return sn(t,cn),en(t)})();var Gat=typeof global=="object"&&global&&global.Object===Object&&global;const Yse=Gat;var Kat=typeof self=="object"&&self&&self.Object===Object&&self,Yat=Yse||Kat||Function("return this")();const Hu=Yat;var Zat=Hu.Symbol;const Uu=Zat;var Zse=Object.prototype,Xat=Zse.hasOwnProperty,Jat=Zse.toString,ky=Uu?Uu.toStringTag:void 0;function Qat(e){var t=Xat.call(e,ky),n=e[ky];try{e[ky]=void 0;var r=!0}catch{}var i=Jat.call(e);return r&&(t?e[ky]=n:delete e[ky]),i}var est=Object.prototype,tst=est.toString;function nst(e){return tst.call(e)}var rst="[object Null]",ist="[object Undefined]",Xse=Uu?Uu.toStringTag:void 0;function Ap(e){return e==null?e===void 0?ist:rst:Xse&&Xse in Object(e)?Qat(e):nst(e)}function Wu(e){return e!=null&&typeof e=="object"}var ost="[object Symbol]";function Gj(e){return typeof e=="symbol"||Wu(e)&&Ap(e)==ost}function ast(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var sst=Array.isArray;const Zl=sst;var lst=1/0,Jse=Uu?Uu.prototype:void 0,Qse=Jse?Jse.toString:void 0;function ele(e){if(typeof e=="string")return e;if(Zl(e))return ast(e,ele)+"";if(Gj(e))return Qse?Qse.call(e):"";var t=e+"";return t=="0"&&1/e==-lst?"-0":t}function qu(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function Kj(e){return e}var cst="[object AsyncFunction]",ust="[object Function]",dst="[object GeneratorFunction]",fst="[object Proxy]";function Yj(e){if(!qu(e))return!1;var t=Ap(e);return t==ust||t==dst||t==cst||t==fst}var hst=Hu["__core-js_shared__"];const Zj=hst;var tle=function(){var e=/[^.]+$/.exec(Zj&&Zj.keys&&Zj.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function pst(e){return!!tle&&tle in e}var mst=Function.prototype,gst=mst.toString;function Np(e){if(e!=null){try{return gst.call(e)}catch{}try{return e+""}catch{}}return""}var vst=/[\\^$.*+?()[\]{}|]/g,bst=/^\[object .+?Constructor\]$/,yst=Function.prototype,xst=Object.prototype,wst=yst.toString,Cst=xst.hasOwnProperty,_st=RegExp("^"+wst.call(Cst).replace(vst,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Sst(e){if(!qu(e)||pst(e))return!1;var t=Yj(e)?_st:bst;return t.test(Np(e))}function Est(e,t){return e==null?void 0:e[t]}function Dp(e,t){var n=Est(e,t);return Sst(n)?n:void 0}var kst=Dp(Hu,"WeakMap");const Xj=kst;var nle=Object.create,$st=function(){function e(){}return function(t){if(!qu(t))return{};if(nle)return nle(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();const Tst=$st;function Rst(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function rle(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var Pst=800,Ost=16,jst=Date.now;function Mst(e){var t=0,n=0;return function(){var r=jst(),i=Ost-(r-n);if(n=r,i>0){if(++t>=Pst)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Ast(e){return function(){return e}}var Nst=function(){try{var e=Dp(Object,"defineProperty");return e({},"",{}),e}catch{}}();const Lw=Nst;var Dst=Lw?function(e,t){return Lw(e,"toString",{configurable:!0,enumerable:!1,value:Ast(t),writable:!0})}:Kj,Ist=Mst(Dst);const Lst=Ist;function Bst(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var Fst=9007199254740991,zst=/^(?:0|[1-9]\d*)$/;function Jj(e,t){var n=typeof e;return t=t??Fst,!!t&&(n=="number"||n!="symbol"&&zst.test(e))&&e>-1&&e%1==0&&e<t}function Bw(e,t,n){t=="__proto__"&&Lw?Lw(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function $y(e,t){return e===t||e!==e&&t!==t}var Vst=Object.prototype,Hst=Vst.hasOwnProperty;function ile(e,t,n){var r=e[t];(!(Hst.call(e,t)&&$y(r,n))||n===void 0&&!(t in e))&&Bw(e,t,n)}function yg(e,t,n,r){var i=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var s=t[o],l=r?r(n[s],e[s],s,n,e):void 0;l===void 0&&(l=e[s]),i?Bw(n,s,l):ile(n,s,l)}return n}var ole=Math.max;function Ust(e,t,n){return t=ole(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=ole(r.length-t,0),a=Array(o);++i<o;)a[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(a),Rst(e,this,s)}}function Wst(e,t){return Lst(Ust(e,t,Kj),e+"")}var qst=9007199254740991;function Qj(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=qst}function Fw(e){return e!=null&&Qj(e.length)&&!Yj(e)}function Gst(e,t,n){if(!qu(n))return!1;var r=typeof t;return(r=="number"?Fw(n)&&Jj(t,n.length):r=="string"&&t in n)?$y(n[t],e):!1}function ale(e){return Wst(function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(o=e.length>3&&typeof o=="function"?(i--,o):void 0,a&&Gst(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),t=Object(t);++r<i;){var s=n[r];s&&e(t,s,r,o)}return t})}var Kst=Object.prototype;function eM(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Kst;return e===n}function Yst(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var Zst="[object Arguments]";function sle(e){return Wu(e)&&Ap(e)==Zst}var lle=Object.prototype,Xst=lle.hasOwnProperty,Jst=lle.propertyIsEnumerable,Qst=sle(function(){return arguments}())?sle:function(e){return Wu(e)&&Xst.call(e,"callee")&&!Jst.call(e,"callee")};const zw=Qst;function elt(){return!1}var cle=typeof ir=="object"&&ir&&!ir.nodeType&&ir,ule=cle&&typeof module=="object"&&module&&!module.nodeType&&module,tlt=ule&&ule.exports===cle,dle=tlt?Hu.Buffer:void 0,nlt=dle?dle.isBuffer:void 0,rlt=nlt||elt;const Ty=rlt;var ilt="[object Arguments]",olt="[object Array]",alt="[object Boolean]",slt="[object Date]",llt="[object Error]",clt="[object Function]",ult="[object Map]",dlt="[object Number]",flt="[object Object]",hlt="[object RegExp]",plt="[object Set]",mlt="[object String]",glt="[object WeakMap]",vlt="[object ArrayBuffer]",blt="[object DataView]",ylt="[object Float32Array]",xlt="[object Float64Array]",wlt="[object Int8Array]",Clt="[object Int16Array]",_lt="[object Int32Array]",Slt="[object Uint8Array]",Elt="[object Uint8ClampedArray]",klt="[object Uint16Array]",$lt="[object Uint32Array]",Ai={};Ai[ylt]=Ai[xlt]=Ai[wlt]=Ai[Clt]=Ai[_lt]=Ai[Slt]=Ai[Elt]=Ai[klt]=Ai[$lt]=!0,Ai[ilt]=Ai[olt]=Ai[vlt]=Ai[alt]=Ai[blt]=Ai[slt]=Ai[llt]=Ai[clt]=Ai[ult]=Ai[dlt]=Ai[flt]=Ai[hlt]=Ai[plt]=Ai[mlt]=Ai[glt]=!1;function Tlt(e){return Wu(e)&&Qj(e.length)&&!!Ai[Ap(e)]}function tM(e){return function(t){return e(t)}}var fle=typeof ir=="object"&&ir&&!ir.nodeType&&ir,Ry=fle&&typeof module=="object"&&module&&!module.nodeType&&module,Rlt=Ry&&Ry.exports===fle,nM=Rlt&&Yse.process,Plt=function(){try{var e=Ry&&Ry.require&&Ry.require("util").types;return e||nM&&nM.binding&&nM.binding("util")}catch{}}();const xg=Plt;var hle=xg&&xg.isTypedArray,Olt=hle?tM(hle):Tlt;const rM=Olt;var jlt=Object.prototype,Mlt=jlt.hasOwnProperty;function ple(e,t){var n=Zl(e),r=!n&&zw(e),i=!n&&!r&&Ty(e),o=!n&&!r&&!i&&rM(e),a=n||r||i||o,s=a?Yst(e.length,String):[],l=s.length;for(var c in e)(t||Mlt.call(e,c))&&!(a&&(c=="length"||i&&(c=="offset"||c=="parent")||o&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Jj(c,l)))&&s.push(c);return s}function mle(e,t){return function(n){return e(t(n))}}var Alt=mle(Object.keys,Object);const Nlt=Alt;var Dlt=Object.prototype,Ilt=Dlt.hasOwnProperty;function Llt(e){if(!eM(e))return Nlt(e);var t=[];for(var n in Object(e))Ilt.call(e,n)&&n!="constructor"&&t.push(n);return t}function Py(e){return Fw(e)?ple(e):Llt(e)}function Blt(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var Flt=Object.prototype,zlt=Flt.hasOwnProperty;function Vlt(e){if(!qu(e))return Blt(e);var t=eM(e),n=[];for(var r in e)r=="constructor"&&(t||!zlt.call(e,r))||n.push(r);return n}function wg(e){return Fw(e)?ple(e,!0):Vlt(e)}var Hlt=ale(function(e,t,n,r){yg(t,wg(t),e,r)});const Ult=Hlt;var Wlt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,qlt=/^\w*$/;function iM(e,t){if(Zl(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||Gj(e)?!0:qlt.test(e)||!Wlt.test(e)||t!=null&&e in Object(t)}var Glt=Dp(Object,"create");const Oy=Glt;function Klt(){this.__data__=Oy?Oy(null):{},this.size=0}function Ylt(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Zlt="__lodash_hash_undefined__",Xlt=Object.prototype,Jlt=Xlt.hasOwnProperty;function Qlt(e){var t=this.__data__;if(Oy){var n=t[e];return n===Zlt?void 0:n}return Jlt.call(t,e)?t[e]:void 0}var ect=Object.prototype,tct=ect.hasOwnProperty;function nct(e){var t=this.__data__;return Oy?t[e]!==void 0:tct.call(t,e)}var rct="__lodash_hash_undefined__";function ict(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Oy&&t===void 0?rct:t,this}function Ip(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ip.prototype.clear=Klt,Ip.prototype.delete=Ylt,Ip.prototype.get=Qlt,Ip.prototype.has=nct,Ip.prototype.set=ict;function oct(){this.__data__=[],this.size=0}function Vw(e,t){for(var n=e.length;n--;)if($y(e[n][0],t))return n;return-1}var act=Array.prototype,sct=act.splice;function lct(e){var t=this.__data__,n=Vw(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():sct.call(t,n,1),--this.size,!0}function cct(e){var t=this.__data__,n=Vw(t,e);return n<0?void 0:t[n][1]}function uct(e){return Vw(this.__data__,e)>-1}function dct(e,t){var n=this.__data__,r=Vw(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Q0(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Q0.prototype.clear=oct,Q0.prototype.delete=lct,Q0.prototype.get=cct,Q0.prototype.has=uct,Q0.prototype.set=dct;var fct=Dp(Hu,"Map");const jy=fct;function hct(){this.size=0,this.__data__={hash:new Ip,map:new(jy||Q0),string:new Ip}}function pct(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Hw(e,t){var n=e.__data__;return pct(t)?n[typeof t=="string"?"string":"hash"]:n.map}function mct(e){var t=Hw(this,e).delete(e);return this.size-=t?1:0,t}function gct(e){return Hw(this,e).get(e)}function vct(e){return Hw(this,e).has(e)}function bct(e,t){var n=Hw(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function ed(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}ed.prototype.clear=hct,ed.prototype.delete=mct,ed.prototype.get=gct,ed.prototype.has=vct,ed.prototype.set=bct;var yct="Expected a function";function oM(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(yct);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(oM.Cache||ed),n}oM.Cache=ed;var xct=500;function wct(e){var t=oM(e,function(r){return n.size===xct&&n.clear(),r}),n=t.cache;return t}var Cct=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,_ct=/\\(\\)?/g,Sct=wct(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Cct,function(n,r,i,o){t.push(i?o.replace(_ct,"$1"):r||n)}),t});const Ect=Sct;function kct(e){return e==null?"":ele(e)}function gle(e,t){return Zl(e)?e:iM(e,t)?[e]:Ect(kct(e))}var $ct=1/0;function Uw(e){if(typeof e=="string"||Gj(e))return e;var t=e+"";return t=="0"&&1/e==-$ct?"-0":t}function vle(e,t){t=gle(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Uw(t[n++])];return n&&n==r?e:void 0}function Tct(e,t,n){var r=e==null?void 0:vle(e,t);return r===void 0?n:r}function ble(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var Rct=mle(Object.getPrototypeOf,Object);const aM=Rct;var Pct="[object Object]",Oct=Function.prototype,jct=Object.prototype,yle=Oct.toString,Mct=jct.hasOwnProperty,Act=yle.call(Object);function xle(e){if(!Wu(e)||Ap(e)!=Pct)return!1;var t=aM(e);if(t===null)return!0;var n=Mct.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&yle.call(n)==Act}function Nct(){this.__data__=new Q0,this.size=0}function Dct(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Ict(e){return this.__data__.get(e)}function Lct(e){return this.__data__.has(e)}var Bct=200;function Fct(e,t){var n=this.__data__;if(n instanceof Q0){var r=n.__data__;if(!jy||r.length<Bct-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new ed(r)}return n.set(e,t),this.size=n.size,this}function jc(e){var t=this.__data__=new Q0(e);this.size=t.size}jc.prototype.clear=Nct,jc.prototype.delete=Dct,jc.prototype.get=Ict,jc.prototype.has=Lct,jc.prototype.set=Fct;function zct(e,t){return e&&yg(t,Py(t),e)}function Vct(e,t){return e&&yg(t,wg(t),e)}var wle=typeof ir=="object"&&ir&&!ir.nodeType&&ir,Cle=wle&&typeof module=="object"&&module&&!module.nodeType&&module,Hct=Cle&&Cle.exports===wle,_le=Hct?Hu.Buffer:void 0,Sle=_le?_le.allocUnsafe:void 0;function Ele(e,t){if(t)return e.slice();var n=e.length,r=Sle?Sle(n):new e.constructor(n);return e.copy(r),r}function Uct(e,t){for(var n=-1,r=e==null?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}function kle(){return[]}var Wct=Object.prototype,qct=Wct.propertyIsEnumerable,$le=Object.getOwnPropertySymbols,Gct=$le?function(e){return e==null?[]:(e=Object(e),Uct($le(e),function(t){return qct.call(e,t)}))}:kle;const sM=Gct;function Kct(e,t){return yg(e,sM(e),t)}var Yct=Object.getOwnPropertySymbols,Zct=Yct?function(e){for(var t=[];e;)ble(t,sM(e)),e=aM(e);return t}:kle;const Tle=Zct;function Xct(e,t){return yg(e,Tle(e),t)}function Rle(e,t,n){var r=t(e);return Zl(e)?r:ble(r,n(e))}function lM(e){return Rle(e,Py,sM)}function Jct(e){return Rle(e,wg,Tle)}var Qct=Dp(Hu,"DataView");const cM=Qct;var eut=Dp(Hu,"Promise");const uM=eut;var tut=Dp(Hu,"Set");const dM=tut;var Ple="[object Map]",nut="[object Object]",Ole="[object Promise]",jle="[object Set]",Mle="[object WeakMap]",Ale="[object DataView]",rut=Np(cM),iut=Np(jy),out=Np(uM),aut=Np(dM),sut=Np(Xj),Lp=Ap;(cM&&Lp(new cM(new ArrayBuffer(1)))!=Ale||jy&&Lp(new jy)!=Ple||uM&&Lp(uM.resolve())!=Ole||dM&&Lp(new dM)!=jle||Xj&&Lp(new Xj)!=Mle)&&(Lp=function(e){var t=Ap(e),n=t==nut?e.constructor:void 0,r=n?Np(n):"";if(r)switch(r){case rut:return Ale;case iut:return Ple;case out:return Ole;case aut:return jle;case sut:return Mle}return t});const My=Lp;var lut=Object.prototype,cut=lut.hasOwnProperty;function uut(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&cut.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var dut=Hu.Uint8Array;const Ww=dut;function fM(e){var t=new e.constructor(e.byteLength);return new Ww(t).set(new Ww(e)),t}function fut(e,t){var n=t?fM(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var hut=/\w*$/;function put(e){var t=new e.constructor(e.source,hut.exec(e));return t.lastIndex=e.lastIndex,t}var Nle=Uu?Uu.prototype:void 0,Dle=Nle?Nle.valueOf:void 0;function mut(e){return Dle?Object(Dle.call(e)):{}}function Ile(e,t){var n=t?fM(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var gut="[object Boolean]",vut="[object Date]",but="[object Map]",yut="[object Number]",xut="[object RegExp]",wut="[object Set]",Cut="[object String]",_ut="[object Symbol]",Sut="[object ArrayBuffer]",Eut="[object DataView]",kut="[object Float32Array]",$ut="[object Float64Array]",Tut="[object Int8Array]",Rut="[object Int16Array]",Put="[object Int32Array]",Out="[object Uint8Array]",jut="[object Uint8ClampedArray]",Mut="[object Uint16Array]",Aut="[object Uint32Array]";function Nut(e,t,n){var r=e.constructor;switch(t){case Sut:return fM(e);case gut:case vut:return new r(+e);case Eut:return fut(e,n);case kut:case $ut:case Tut:case Rut:case Put:case Out:case jut:case Mut:case Aut:return Ile(e,n);case but:return new r;case yut:case Cut:return new r(e);case xut:return put(e);case wut:return new r;case _ut:return mut(e)}}function Lle(e){return typeof e.constructor=="function"&&!eM(e)?Tst(aM(e)):{}}var Dut="[object Map]";function Iut(e){return Wu(e)&&My(e)==Dut}var Ble=xg&&xg.isMap,Lut=Ble?tM(Ble):Iut;const But=Lut;var Fut="[object Set]";function zut(e){return Wu(e)&&My(e)==Fut}var Fle=xg&&xg.isSet,Vut=Fle?tM(Fle):zut;const Hut=Vut;var Uut=1,Wut=2,qut=4,zle="[object Arguments]",Gut="[object Array]",Kut="[object Boolean]",Yut="[object Date]",Zut="[object Error]",Vle="[object Function]",Xut="[object GeneratorFunction]",Jut="[object Map]",Qut="[object Number]",Hle="[object Object]",e0t="[object RegExp]",t0t="[object Set]",n0t="[object String]",r0t="[object Symbol]",i0t="[object WeakMap]",o0t="[object ArrayBuffer]",a0t="[object DataView]",s0t="[object Float32Array]",l0t="[object Float64Array]",c0t="[object Int8Array]",u0t="[object Int16Array]",d0t="[object Int32Array]",f0t="[object Uint8Array]",h0t="[object Uint8ClampedArray]",p0t="[object Uint16Array]",m0t="[object Uint32Array]",wi={};wi[zle]=wi[Gut]=wi[o0t]=wi[a0t]=wi[Kut]=wi[Yut]=wi[s0t]=wi[l0t]=wi[c0t]=wi[u0t]=wi[d0t]=wi[Jut]=wi[Qut]=wi[Hle]=wi[e0t]=wi[t0t]=wi[n0t]=wi[r0t]=wi[f0t]=wi[h0t]=wi[p0t]=wi[m0t]=!0,wi[Zut]=wi[Vle]=wi[i0t]=!1;function qw(e,t,n,r,i,o){var a,s=t&Uut,l=t&Wut,c=t&qut;if(n&&(a=i?n(e,r,i,o):n(e)),a!==void 0)return a;if(!qu(e))return e;var u=Zl(e);if(u){if(a=uut(e),!s)return rle(e,a)}else{var f=My(e),h=f==Vle||f==Xut;if(Ty(e))return Ele(e,s);if(f==Hle||f==zle||h&&!i){if(a=l||h?{}:Lle(e),!s)return l?Xct(e,Vct(a,e)):Kct(e,zct(a,e))}else{if(!wi[f])return i?e:{};a=Nut(e,f,s)}}o||(o=new jc);var p=o.get(e);if(p)return p;o.set(e,a),Hut(e)?e.forEach(function(v){a.add(qw(v,t,n,v,e,o))}):But(e)&&e.forEach(function(v,g){a.set(g,qw(v,t,n,g,e,o))});var m=c?l?Jct:lM:l?wg:Py,b=u?void 0:m(e);return Bst(b||e,function(v,g){b&&(g=v,v=e[g]),ile(a,g,qw(v,t,n,g,e,o))}),a}var g0t=1,v0t=4;function b0t(e){return qw(e,g0t|v0t)}var y0t="__lodash_hash_undefined__";function x0t(e){return this.__data__.set(e,y0t),this}function w0t(e){return this.__data__.has(e)}function Gw(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new ed;++t<n;)this.add(e[t])}Gw.prototype.add=Gw.prototype.push=x0t,Gw.prototype.has=w0t;function C0t(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function _0t(e,t){return e.has(t)}var S0t=1,E0t=2;function Ule(e,t,n,r,i,o){var a=n&S0t,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var c=o.get(e),u=o.get(t);if(c&&u)return c==t&&u==e;var f=-1,h=!0,p=n&E0t?new Gw:void 0;for(o.set(e,t),o.set(t,e);++f<s;){var m=e[f],b=t[f];if(r)var v=a?r(b,m,f,t,e,o):r(m,b,f,e,t,o);if(v!==void 0){if(v)continue;h=!1;break}if(p){if(!C0t(t,function(g,x){if(!_0t(p,x)&&(m===g||i(m,g,n,r,o)))return p.push(x)})){h=!1;break}}else if(!(m===b||i(m,b,n,r,o))){h=!1;break}}return o.delete(e),o.delete(t),h}function k0t(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}function $0t(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var T0t=1,R0t=2,P0t="[object Boolean]",O0t="[object Date]",j0t="[object Error]",M0t="[object Map]",A0t="[object Number]",N0t="[object RegExp]",D0t="[object Set]",I0t="[object String]",L0t="[object Symbol]",B0t="[object ArrayBuffer]",F0t="[object DataView]",Wle=Uu?Uu.prototype:void 0,hM=Wle?Wle.valueOf:void 0;function z0t(e,t,n,r,i,o,a){switch(n){case F0t:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case B0t:return!(e.byteLength!=t.byteLength||!o(new Ww(e),new Ww(t)));case P0t:case O0t:case A0t:return $y(+e,+t);case j0t:return e.name==t.name&&e.message==t.message;case N0t:case I0t:return e==t+"";case M0t:var s=k0t;case D0t:var l=r&T0t;if(s||(s=$0t),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;r|=R0t,a.set(e,t);var u=Ule(s(e),s(t),r,i,o,a);return a.delete(e),u;case L0t:if(hM)return hM.call(e)==hM.call(t)}return!1}var V0t=1,H0t=Object.prototype,U0t=H0t.hasOwnProperty;function W0t(e,t,n,r,i,o){var a=n&V0t,s=lM(e),l=s.length,c=lM(t),u=c.length;if(l!=u&&!a)return!1;for(var f=l;f--;){var h=s[f];if(!(a?h in t:U0t.call(t,h)))return!1}var p=o.get(e),m=o.get(t);if(p&&m)return p==t&&m==e;var b=!0;o.set(e,t),o.set(t,e);for(var v=a;++f<l;){h=s[f];var g=e[h],x=t[h];if(r)var w=a?r(x,g,h,t,e,o):r(g,x,h,e,t,o);if(!(w===void 0?g===x||i(g,x,n,r,o):w)){b=!1;break}v||(v=h=="constructor")}if(b&&!v){var y=e.constructor,C=t.constructor;y!=C&&"constructor"in e&&"constructor"in t&&!(typeof y=="function"&&y instanceof y&&typeof C=="function"&&C instanceof C)&&(b=!1)}return o.delete(e),o.delete(t),b}var q0t=1,qle="[object Arguments]",Gle="[object Array]",Kw="[object Object]",G0t=Object.prototype,Kle=G0t.hasOwnProperty;function K0t(e,t,n,r,i,o){var a=Zl(e),s=Zl(t),l=a?Gle:My(e),c=s?Gle:My(t);l=l==qle?Kw:l,c=c==qle?Kw:c;var u=l==Kw,f=c==Kw,h=l==c;if(h&&Ty(e)){if(!Ty(t))return!1;a=!0,u=!1}if(h&&!u)return o||(o=new jc),a||rM(e)?Ule(e,t,n,r,i,o):z0t(e,t,l,n,r,i,o);if(!(n&q0t)){var p=u&&Kle.call(e,"__wrapped__"),m=f&&Kle.call(t,"__wrapped__");if(p||m){var b=p?e.value():e,v=m?t.value():t;return o||(o=new jc),i(b,v,n,r,o)}}return h?(o||(o=new jc),W0t(e,t,n,r,i,o)):!1}function pM(e,t,n,r,i){return e===t?!0:e==null||t==null||!Wu(e)&&!Wu(t)?e!==e&&t!==t:K0t(e,t,n,r,pM,i)}var Y0t=1,Z0t=2;function X0t(e,t,n,r){var i=n.length,o=i,a=!r;if(e==null)return!o;for(e=Object(e);i--;){var s=n[i];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<o;){s=n[i];var l=s[0],c=e[l],u=s[1];if(a&&s[2]){if(c===void 0&&!(l in e))return!1}else{var f=new jc;if(r)var h=r(c,u,l,e,t,f);if(!(h===void 0?pM(u,c,Y0t|Z0t,r,f):h))return!1}}return!0}function Yle(e){return e===e&&!qu(e)}function J0t(e){for(var t=Py(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Yle(i)]}return t}function Zle(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function Q0t(e){var t=J0t(e);return t.length==1&&t[0][2]?Zle(t[0][0],t[0][1]):function(n){return n===e||X0t(n,e,t)}}function edt(e,t){return e!=null&&t in Object(e)}function tdt(e,t,n){t=gle(t,e);for(var r=-1,i=t.length,o=!1;++r<i;){var a=Uw(t[r]);if(!(o=e!=null&&n(e,a)))break;e=e[a]}return o||++r!=i?o:(i=e==null?0:e.length,!!i&&Qj(i)&&Jj(a,i)&&(Zl(e)||zw(e)))}function ndt(e,t){return e!=null&&tdt(e,t,edt)}var rdt=1,idt=2;function odt(e,t){return iM(e)&&Yle(t)?Zle(Uw(e),t):function(n){var r=Tct(n,e);return r===void 0&&r===t?ndt(n,e):pM(t,r,rdt|idt)}}function adt(e){return function(t){return t==null?void 0:t[e]}}function sdt(e){return function(t){return vle(t,e)}}function ldt(e){return iM(e)?adt(Uw(e)):sdt(e)}function cdt(e){return typeof e=="function"?e:e==null?Kj:typeof e=="object"?Zl(e)?odt(e[0],e[1]):Q0t(e):ldt(e)}function udt(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++i];if(n(o[l],l,o)===!1)break}return t}}var ddt=udt();const Xle=ddt;function fdt(e,t){return e&&Xle(e,t,Py)}function mM(e,t,n){(n!==void 0&&!$y(e[t],n)||n===void 0&&!(t in e))&&Bw(e,t,n)}function hdt(e){return Wu(e)&&Fw(e)}function gM(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function pdt(e){return yg(e,wg(e))}function mdt(e,t,n,r,i,o,a){var s=gM(e,n),l=gM(t,n),c=a.get(l);if(c){mM(e,n,c);return}var u=o?o(s,l,n+"",e,t,a):void 0,f=u===void 0;if(f){var h=Zl(l),p=!h&&Ty(l),m=!h&&!p&&rM(l);u=l,h||p||m?Zl(s)?u=s:hdt(s)?u=rle(s):p?(f=!1,u=Ele(l,!0)):m?(f=!1,u=Ile(l,!0)):u=[]:xle(l)||zw(l)?(u=s,zw(s)?u=pdt(s):(!qu(s)||Yj(s))&&(u=Lle(l))):f=!1}f&&(a.set(l,u),i(u,l,r,o,a),a.delete(l)),mM(e,n,u)}function Jle(e,t,n,r,i){e!==t&&Xle(t,function(o,a){if(i||(i=new jc),qu(o))mdt(e,t,a,n,Jle,r,i);else{var s=r?r(gM(e,a),o,a+"",e,t,i):void 0;s===void 0&&(s=o),mM(e,a,s)}},wg)}var gdt=ale(function(e,t,n,r){Jle(e,t,n,r)});const vdt=gdt;function bdt(e,t){var n={};return t=cdt(t),fdt(e,function(r,i,o){Bw(n,t(r,i,o),r)}),n}const ydt=new RegExp("([\\p{Ll}\\d])(\\p{Lu})","gu"),xdt=new RegExp("(\\p{Lu})([\\p{Lu}][\\p{Ll}])","gu"),wdt=new RegExp("(\\d)(\\p{Ll})","gu"),Cdt=new RegExp("(\\p{L})(\\d)","gu"),_dt=/[^\p{L}\d]+/giu,Yw="$1\0$2",Qle="";function Sdt(e,t){let n=e.trim();n=n.replace(ydt,Yw).replace(xdt,Yw),t!=null&&t.separateNumbers&&(n=n.replace(wdt,Yw).replace(Cdt,Yw)),n=n.replace(_dt,"\0");let r=0,i=n.length;for(;n.charAt(r)==="\0";)r++;if(r===i)return[];for(;n.charAt(i-1)==="\0";)i--;return n.slice(r,i).split(/\0/g)}function Edt(e,t){const[n,r,i]=Pdt(e,t),o=kdt(t==null?void 0:t.locale),a=$dt(t==null?void 0:t.locale),s=t!=null&&t.mergeAmbiguousCharacters?Tdt(o,a):Rdt(o,a);return n+Sdt(r,t).map((l,c)=>c===0?o(l):s(l,c)).join((t==null?void 0:t.delimiter)??"")+i}function kdt(e){return e===!1?t=>t.toLowerCase():t=>t.toLocaleLowerCase(e)}function $dt(e){return e===!1?t=>t.toUpperCase():t=>t.toLocaleUpperCase(e)}function Tdt(e,t){return n=>`${t(n[0])}${e(n.slice(1))}`}function Rdt(e,t){return(n,r)=>{const i=n[0];return(r>0&&i>="0"&&i<="9"?"_"+i:t(i))+e(n.slice(1))}}function Pdt(e,t){const n=(t==null?void 0:t.prefixCharacters)??Qle,r=(t==null?void 0:t.suffixCharacters)??Qle;let i=0,o=e.length;for(;i<e.length;){const a=e.charAt(i);if(!n.includes(a))break;i++}for(;o>i;){const a=o-1,s=e.charAt(a);if(!r.includes(s))break;o=a}return[e.slice(0,i),e.slice(i,o),e.slice(o)]}const Ay=e=>/.+-.+/.test(e)?Edt(e):e;function Odt(e,t){const n=Object.create(null),r=e.split(",");for(let i=0;i<r.length;i++)n[r[i]]=!0;return t?i=>!!n[i.toLowerCase()]:i=>!!n[i]}const jdt=Odt("String,Number,Boolean,Function,Symbol,BigInt");function Mdt(e){const t=e==null?void 0:e.toString().match(/^\s*function (\w+)/);return t?t[1]:e===null?"null":""}function Adt(e,t){let n;const r=Mdt(t);if(jdt(r)){const i=typeof e;n=i===r.toLowerCase(),!n&&i==="object"&&(n=e instanceof t)}else r==="Object"?n=qu(e):r==="Array"?n=Array.isArray(e):r==="null"?n=e===null:n=e instanceof t;return{valid:n,expectedType:r}}function Ndt({prop:e,type:t,validator:n}){if(![void 0,null].includes(e)&&t){let r=!1;const i=Array.isArray(t)?t:[t],o=[];for(let a=0;a<i.length&&!r;a++){const{valid:s,expectedType:l}=Adt(e,i[a]);o.push(l||""),r=s}if(!r)throw new TypeError(`Invalid prop: type check failed, expecting [${o.join(", ")}], receiving: ${e}`)}if(n&&!n(e))throw new Error(`Invalid prop: validator check failed, receiving: ${e}`)}function Ddt(e,{mergeObject:t,mergeFunction:n}){const r=[];for(let o=e.length-1;o>=0;o--)r.push(e[o]);const i=n?(o,a)=>typeof o=="function"&&typeof a=="function"?n(a,o):void 0:void 0;return t==="deep"?vdt(...r,i):Ult(...r,i)}function Idt(e,{mergeFunction:t}){return e.reduce(t,()=>{})}function Cg(e,t={}){const{type:n,default:r,defaultIsDynamic:i=!1,required:o=!1,validator:a,camelizeObjectKeys:s=!1,mergeObjectApplyOnlyToDefault:l=!1,mergeFunctionApplyOnlyToDefault:c=!0}=t;let{mergeObject:u="deep",mergeFunction:f=!1}=t;const h=[];let p,m=!1,b=!1;const v=g=>{if(g!==void 0){Ndt({type:n,prop:g,validator:a});const x=xle(g),w=typeof g=="function";return m=x,b=w,x?(g=b0t(g),s?bdt(g,(y,C)=>Ay(C)):g):g}};for(const g of e)h.push(v(g));if(!i)h.push(v(r));else if(typeof r!="function")throw new TypeError(`Invalid option: options.default should be Function when options.defaultIsDynamic enabled, receiving: ${r}`);m||(u=!1,b||(f=!1));for(let g=0;g<h.length;g++){const x=h[g];if(x!==void 0){g===h.length-1?p=x:u?p=Ddt(l?[x,r]:h,{mergeObject:u,mergeFunction:f}):f?p=Idt(c?[x,r]:h,{mergeFunction:f}):p=x;break}}if(o&&[void 0,null].includes(p))throw new Error("Missing required prop");return i?Cg(e,{...t,default:r(p),defaultIsDynamic:!1}):p}function ece(e){const t=Array.from(Ay(e));return t[0]=t[0].toUpperCase(),t.unshift("o","n"),t.join("")}function Ldt(e,{props:t=[],camelizePropNames:n=!1}={}){const r={props:{},attrs:{},listeners:{},hooks:{},slots:{}};let i;if(Array.isArray(t))i=n?t.map(o=>Ay(o)):t;else if(n){i=[];for(const o in t)i.push(Ay(o))}else i=Object.keys(t);for(const o in e)if(o.startsWith("@")){const a=o.substring(1);if(a.startsWith("vue:"))r.hooks[ece(a.replace("vue:","vnode-"))]=e[o];else{if(a.startsWith("vnode"))throw new Error("@vnode-* hooks are no longer supported. Use the vue: prefix instead. For example, @vnode-mounted should be changed to @vue:mounted. @vnode-* hooks support has been removed in Vue 3.4.");r.listeners[ece(a)]=e[o]}}else if(o.startsWith("#")){const a=o.substring(1);a&&(r.slots[a]=e[o])}else{const a=n?Ay(o):o;i.includes(a)?r.props[a]=e[o]:r.attrs[o]=e[o]}return r}var Bdt=typeof global=="object"&&global&&global.Object===Object&&global,Fdt=typeof self=="object"&&self&&self.Object===Object&&self,tce=Bdt||Fdt||Function("return this")(),Zw=tce.Symbol,nce=Object.prototype,zdt=nce.hasOwnProperty,Vdt=nce.toString,Ny=Zw?Zw.toStringTag:void 0;function Hdt(e){var t=zdt.call(e,Ny),n=e[Ny];try{e[Ny]=void 0;var r=!0}catch{}var i=Vdt.call(e);return r&&(t?e[Ny]=n:delete e[Ny]),i}var Udt=Object.prototype,Wdt=Udt.toString;function qdt(e){return Wdt.call(e)}var Gdt="[object Null]",Kdt="[object Undefined]",rce=Zw?Zw.toStringTag:void 0;function Ydt(e){return e==null?e===void 0?Kdt:Gdt:rce&&rce in Object(e)?Hdt(e):qdt(e)}function Zdt(e){return e!=null&&typeof e=="object"}var Xdt="[object Symbol]";function Jdt(e){return typeof e=="symbol"||Zdt(e)&&Ydt(e)==Xdt}var Qdt=/\s/;function eft(e){for(var t=e.length;t--&&Qdt.test(e.charAt(t)););return t}var tft=/^\s+/;function nft(e){return e&&e.slice(0,eft(e)+1).replace(tft,"")}function vM(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var ice=NaN,rft=/^[-+]0x[0-9a-f]+$/i,ift=/^0b[01]+$/i,oft=/^0o[0-7]+$/i,aft=parseInt;function oce(e){if(typeof e=="number")return e;if(Jdt(e))return ice;if(vM(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=vM(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=nft(e);var n=ift.test(e);return n||oft.test(e)?aft(e.slice(2),n?2:8):rft.test(e)?ice:+e}var bM=function(){return tce.Date.now()},sft="Expected a function",lft=Math.max,cft=Math.min;function uft(e,t,n){var r,i,o,a,s,l,c=0,u=!1,f=!1,h=!0;if(typeof e!="function")throw new TypeError(sft);t=oce(t)||0,vM(n)&&(u=!!n.leading,f="maxWait"in n,o=f?lft(oce(n.maxWait)||0,t):o,h="trailing"in n?!!n.trailing:h);function p(_){var S=r,E=i;return r=i=void 0,c=_,a=e.apply(E,S),a}function m(_){return c=_,s=setTimeout(g,t),u?p(_):a}function b(_){var S=_-l,E=_-c,$=t-S;return f?cft($,o-E):$}function v(_){var S=_-l,E=_-c;return l===void 0||S>=t||S<0||f&&E>=o}function g(){var _=bM();if(v(_))return x(_);s=setTimeout(g,b(_))}function x(_){return s=void 0,h&&r?p(_):(r=i=void 0,a)}function w(){s!==void 0&&clearTimeout(s),c=0,r=l=i=s=void 0}function y(){return s===void 0?a:x(bM())}function C(){var _=bM(),S=v(_);if(r=arguments,i=this,l=_,S){if(s===void 0)return m(l);if(f)return clearTimeout(s),s=setTimeout(g,t),p(l)}return s===void 0&&(s=setTimeout(g,t)),a}return C.cancel=w,C.flush=y,C}const dft="JsonEditorVue",Xw="modelValue",ace="update:modelValue",Jw=["mainMenuBar","navigationBar","statusBar","askToFormat","readOnly","escapeControlCharacters","escapeUnicodeCharacters","flattenColumns"],sce=d.defineComponent({name:dft,props:{[Xw]:{},mode:{type:String},...Object.fromEntries(Jw.map(e=>[e,{type:Boolean,default:void 0}]))},emits:{[ace](e){return!0},"update:mode":function(e){return!0}},setup(e,{attrs:t,emit:n,expose:r}){var i;const o=(i=d.getCurrentInstance())==null?void 0:i.proxy,a=d.ref(),s=d.ref(!1),l=d.ref(!1),c=uft(h=>{if(l.value){l.value=!1;return}s.value=!0,n(ace,h.text===void 0?h.json:h.text)},100),u=h=>{n("update:mode",h)},f=(h,p)=>(...m)=>{h(...m),p(...m)};return r==null||r({jsonEditor:a}),d.onUnmounted(()=>{var h;(h=a.value)==null||h.destroy()}),d.onMounted(()=>{const h=Cg([e.mode,Qw.mode],{type:String}),p=Cg([e[Xw],Qw[Xw]]),m=Object.fromEntries(Array.from(Jw,v=>[v,Cg([e[v],Qw[v]])]).filter(([,v])=>v!==void 0)),b=Cg([m,t,lce,{onChange:c,onChangeMode:u,mode:h,...p!==void 0&&{content:{json:p}}}],{type:Object,mergeFunction:f});a.value=new Vat({target:o==null?void 0:o.$refs.jsonEditorRef,props:b}),d.watch(()=>e[Xw],v=>{if(s.value){s.value=!1;return}a.value&&(l.value=!0,a.value.set([void 0,""].includes(v)?{text:""}:{json:v}))},{deep:!0}),d.watch(()=>e.mode,v=>{var g;(g=a.value)==null||g.updateProps({mode:v})}),d.watch(()=>Array.from(Jw,v=>e[v]),v=>{var g;(g=a.value)==null||g.updateProps(Object.fromEntries(Array.from(v,(x,w)=>[Jw[w],x]).filter(([,x])=>x!==void 0)))}),d.watch(()=>t,v=>{var g;const x={};v.onChange&&(x.onChange=c),v.onChangeMode&&(x.onChangeMode=u),(g=a.value)==null||g.updateProps(Object.getOwnPropertyNames(x).length>0?Cg([v,x],{type:Object,mergeFunction:f}):v)},{deep:!0}),r||(r=v=>{for(const g in v)o[g]=d.unref(v[g])},r({jsonEditor:a}))}),()=>d.h("div",{ref:"jsonEditorRef"})}}),Qw={},lce={};function fft(e){return e.install=(t,n={})=>{const{props:r,attrs:i}=Ldt(n,{props:sce.props});Object.assign(Qw,r),Object.assign(lce,i),t.component(e.name,e)},e}const hft=fft(sce),pft={class:"json-editor-container"},mft={class:"json-editor-options"},gft={style:{display:"flex","align-items":"center",width:"100%"}},vft={name:"JsonEditor"},bft=d.defineComponent({...vft,props:{code:{type:String}},emits:["update:code"],setup(e,{emit:t}){const n=e,r=MY(n.code)?d.ref("standard"):d.ref("biz"),i=d.ref({json:{},useJson:!1}),o=[{label:"标准模式",value:"standard"},{label:"业务模式",value:"biz"}],a=d.ref(null),s=d.ref({variableName:"",functionArgs:[],isVar:!0,isFunction:!1});d.watch(()=>n.code,j=>{const M=MY(j);if(r.value=M?"standard":"biz",i.value.useJson=M,M)i.value.json=JSON.parse(j);else{const B=z6(j);s.value.variableName=B.varName,s.value.isVar=B.isVar,s.value.isFunction=B.isFunction,s.value.functionArgs=B.args.map(V=>{const R=V.type===mu,I=V.type;return{content:R?IY(V6(V6(V.content,"'"),'"')):V.content,type:I}})}},{immediate:!0});const l=t,c=d.ref(!1),u=()=>{c.value=!0},f=()=>({content:"",type:"string"}),h=d.ref("light"),p=d.computed(()=>h.value==="dark"?"json-editor jse-theme-dark":"json-editor"),m=d.ref("text"),b=d.ref(!1),v=d.ref(!0),g=d.ref(!1),x=d.ref(!1),w=d.ref(!1),y=d.ref(600),C=d.ref(600),_=d.computed(()=>({width:`${y.value}px`,height:`${C.value}px`})),S=d.computed(()=>{const j=r.value==="biz"?90:0;return{height:`${C.value-180-j}px`}}),E=d.ref(d.markRaw(pu));function $(){w.value=!w.value,w.value?(y.value=window.innerWidth,C.value=window.innerHeight,E.value=K2):(y.value=600,C.value=800,E.value=pu)}const k=d.computed(()=>{let j=s.value.variableName;return s.value.isFunction&&(j+="(",s.value.functionArgs.length>0&&(j+=s.value.functionArgs.map(M=>{const B=M.content;switch(M.type){case"string":case"jsonstring":return`'${B}'`;default:return B}}).join(",")),j+=")"),s.value.isVar&&(j=`\${${j}}`),j}),P=()=>{if(r.value==="standard"){const j=d.toRaw(i.value.json),M=typeof j=="string"?j:JSON.stringify(j);l("update:code",M)}else l("update:code",k.value||"");c.value=!1},T=()=>d.createVNode("div",{class:"json-dialog-title-container"},[d.createVNode("span",null,[d.createTextVNode("JSON 编辑器")]),d.createVNode("span",null,[d.createVNode(E.value,{onClick:$,class:"edit-icon"},null)])]);return(j,M)=>{const B=d.resolveComponent("n-radio-button"),V=d.resolveComponent("n-radio-group"),R=d.resolveComponent("n-input"),I=d.resolveComponent("n-form-item"),G=d.resolveComponent("n-tooltip"),F=d.resolveComponent("n-checkbox"),z=d.resolveComponent("JsonEditor",!0),A=d.resolveComponent("n-select"),L=d.resolveComponent("n-dynamic-input"),N=d.resolveComponent("n-form"),q=d.resolveComponent("n-button"),oe=d.resolveComponent("n-modal");return d.openBlock(),d.createElementBlock(d.Fragment,null,[d.createVNode(oe,{show:c.value,"onUpdate:show":M[8]||(M[8]=ee=>c.value=ee),"mask-closable":!1,preset:"dialog",title:T,"show-icon":!1,style:d.normalizeStyle(_.value)},{action:d.withCtx(()=>[d.createVNode(q,{size:"small",type:"info",onClick:P},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(j.$t("panel.confirm")),1)]),_:1})]),default:d.withCtx(()=>[d.createElementVNode("div",pft,[d.createElementVNode("div",mft,[d.createVNode(V,{value:d.unref(r),"onUpdate:value":M[0]||(M[0]=ee=>d.isRef(r)?r.value=ee:null),name:"modeSelect",style:{"margin-bottom":"10px"}},{default:d.withCtx(()=>[(d.openBlock(),d.createElementBlock(d.Fragment,null,d.renderList(o,ee=>d.createVNode(B,{key:ee.value,value:ee.value,label:ee.label},null,8,["value","label"])),64))]),_:1},8,["value"])]),d.unref(r)==="biz"?(d.openBlock(),d.createBlock(N,{key:0,ref_key:"formRef",ref:a,model:s.value,"label-placement":"left","label-width":"auto","require-mark-placement":"right-hanging",size:"small",style:{maxWidth:"640px",marginTop:"10px"}},{default:d.withCtx(()=>[d.createVNode(I,{label:"变量内容",path:"variableName"},{default:d.withCtx(()=>[d.createVNode(R,{value:s.value.variableName,"onUpdate:value":M[1]||(M[1]=ee=>s.value.variableName=ee),type:"textarea",placeholder:"请输入变量名,例如:name、person.name",autosize:{minRows:2},onKeydown:M[2]||(M[2]=d.withKeys(d.withModifiers(()=>{},["prevent"]),["enter"]))},null,8,["value"])]),_:1}),d.createVNode(I,{label:"表达式配置",path:"checkboxGroupValue"},{default:d.withCtx(()=>[d.createVNode(F,{checked:s.value.isVar,"onUpdate:checked":M[3]||(M[3]=ee=>s.value.isVar=ee)},{default:d.withCtx(()=>[d.createVNode(G,{trigger:"hover",width:"200"},{trigger:d.withCtx(()=>[d.createTextVNode(" 变量格式 ")]),default:d.withCtx(()=>[d.createTextVNode(" 勾选此项,将自动给结果添加 ${ } 包裹,例如:你填写的变量是 name,则会被自动包裹为 ${name} ")]),_:1})]),_:1},8,["checked"]),d.createVNode(F,{checked:s.value.isFunction,"onUpdate:checked":M[4]||(M[4]=ee=>s.value.isFunction=ee)},{default:d.withCtx(()=>[d.createVNode(G,{trigger:"hover",width:"200"},{trigger:d.withCtx(()=>[d.createTextVNode(" 函数格式 ")]),default:d.withCtx(()=>[d.createTextVNode(" 勾选此项,变量将视为函数,并自动添加 () 后缀,且支持入参设置,例如:你填写的变量是 name,则会被自动包裹为 name() ")]),_:1})]),_:1},8,["checked"])]),_:1}),s.value.isFunction?(d.openBlock(),d.createBlock(I,{key:0,label:"入参列表",path:"functionArgs"},{default:d.withCtx(()=>[d.createVNode(L,{value:s.value.functionArgs,"onUpdate:value":M[6]||(M[6]=ee=>s.value.functionArgs=ee),"on-create":f,"show-sort-button":""},{"create-button-default":d.withCtx(()=>[d.createTextVNode(" 新增入参 ")]),default:d.withCtx(({value:ee})=>[d.createElementVNode("div",gft,[d.createVNode(R,{value:ee.content,"onUpdate:value":be=>ee.content=be,type:"text",placeholder:"请输入变量"},{suffix:d.withCtx(()=>[d.createVNode(z,{code:ee.content,"onUpdate:code":be=>ee.content=be},null,8,["code","onUpdate:code"])]),_:2},1032,["value","onUpdate:value"]),d.createVNode(A,{value:ee.type,"onUpdate:value":be=>ee.type=be,options:d.unref(ELe),style:{width:"120px"},onKeydown:M[5]||(M[5]=d.withKeys(d.withModifiers(()=>{},["prevent"]),["enter"]))},null,8,["value","onUpdate:value","options"])])]),_:1},8,["value"])]),_:1})):d.createCommentVNode("",!0),d.createVNode(I,{label:"结果预览"},{default:d.withCtx(()=>[d.createElementVNode("span",null,d.toDisplayString(k.value),1)]),_:1})]),_:1},8,["model"])):d.createCommentVNode("",!0),d.unref(r)==="standard"?(d.openBlock(),d.createBlock(d.unref(hft),{key:1,style:d.normalizeStyle(S.value),class:d.normalizeClass(p.value),modelValue:i.value.json,"onUpdate:modelValue":M[7]||(M[7]=ee=>i.value.json=ee),mode:m.value,"read-only":b.value,"main-menu-bar":v.value,"navigation-bar":g.value,"status-bar":x.value},null,8,["style","class","modelValue","mode","read-only","main-menu-bar","navigation-bar","status-bar"])):d.createCommentVNode("",!0)])]),_:1},8,["show","style"]),d.createVNode(d.unref(fDe),{style:{cursor:"pointer"},onClick:u})],64)}}}),td=va(bft,[["__scopeId","data-v-78577855"]]),yft={class:"element-conditional"},xft=d.defineComponent({__name:"ElementConditional",setup(e){const t=d.ref(!1),n=d.ref(!1),r=d.ref(void 0),i=d.ref(void 0),o=Zt(Ut),a=()=>{t.value=VY(o.activeElement),r.value=hBe(o.activeElement),t.value&&(n.value=!dBe(o.activeElement),i.value=mBe(o.activeElement))},s=C=>{pBe(o.activeElement,C)},l=C=>{gBe(o.activeElement,C)},c=d.ref([]),u=d.ref({}),f=()=>{u.value.conditionType=vBe(o.activeElement),u.value.conditionType==="expression"&&p(),u.value.conditionType==="script"&&b()},h=C=>{bBe(o.activeElement,C)},p=()=>{u.value.expression=HY(o.activeElement)},m=C=>{UY(o.activeElement,C)},b=()=>{u.value.language=wBe(o.activeElement),u.value.scriptType=yBe(o.activeElement),u.value.body=_Be(o.activeElement),u.value.resource=EBe(o.activeElement)},v=C=>{CBe(o.activeElement,C)},g=C=>{xBe(o.activeElement,C)},x=C=>{SBe(o.activeElement,C)},w=C=>{kBe(o.activeElement,C)};return Go(()=>{a(),f(),c.value=$Be(o.activeElement)}),(C,_)=>{const S=d.resolveComponent("n-input"),E=d.resolveComponent("n-select"),$=d.resolveComponent("n-collapse-item");return d.openBlock(),d.createBlock($,{name:"element-conditional"},d.createSlots({header:d.withCtx(()=>[d.createVNode(Mo,{title:C.$t("panel.conditionalSettings")},{default:d.withCtx(()=>[d.createVNode(d.unref(_De))]),_:1},8,["title"])]),default:d.withCtx(()=>[d.createElementVNode("div",yft,[t.value?(d.openBlock(),d.createElementBlock(d.Fragment,{key:0},[d.createVNode(ci,{key:"variableName",label:C.$t("panel.variableName"),"label-width":120},{default:d.withCtx(()=>[d.createVNode(S,{value:r.value,"onUpdate:value":_[0]||(_[0]=k=>r.value=k),maxlength:"32",onChange:s},null,8,["value"])]),_:1},8,["label"]),n.value?(d.openBlock(),d.createBlock(ci,{key:"variableEvent",label:C.$t("panel.variableEvents"),"label-width":120},{default:d.withCtx(()=>[d.createVNode(S,{value:i.value,"onUpdate:value":_[1]||(_[1]=k=>i.value=k),onChange:l},null,8,["value"])]),_:1},8,["label"])):d.createCommentVNode("",!0)],64)):d.createCommentVNode("",!0),d.createVNode(ci,{key:"condition",label:C.$t("panel.conditionType"),"label-width":120},{default:d.withCtx(()=>[d.createVNode(E,{value:u.value.conditionType,"onUpdate:value":[_[2]||(_[2]=k=>u.value.conditionType=k),h],options:c.value},null,8,["value","options"])]),_:1},8,["label"]),u.value.conditionType&&u.value.conditionType==="expression"?(d.openBlock(),d.createBlock(ci,{key:"expression",label:C.$t("panel.conditionExpression"),"label-width":120},{default:d.withCtx(()=>[d.createVNode(S,{value:u.value.expression,"onUpdate:value":_[4]||(_[4]=k=>u.value.expression=k),onChange:m},{suffix:d.withCtx(()=>[d.createVNode(td,{code:u.value.expression,"onUpdate:code":_[3]||(_[3]=k=>u.value.expression=k)},null,8,["code"])]),_:1},8,["value"])]),_:1},8,["label"])):d.createCommentVNode("",!0),u.value.conditionType&&u.value.conditionType==="script"?(d.openBlock(),d.createElementBlock(d.Fragment,{key:2},[d.createVNode(ci,{key:"scriptType",label:C.$t("panel.scriptType"),"label-width":120},{default:d.withCtx(()=>[d.createVNode(E,{value:u.value.scriptType,"onUpdate:value":[_[5]||(_[5]=k=>u.value.scriptType=k),g],options:d.unref(fK)},null,8,["value","options"])]),_:1},8,["label"]),d.createVNode(ci,{key:"scriptLanguage",label:C.$t("panel.scriptLanguage"),"label-width":120},{default:d.withCtx(()=>[d.createVNode(S,{value:u.value.language,"onUpdate:value":_[6]||(_[6]=k=>u.value.language=k),onChange:v},null,8,["value"])]),_:1},8,["label"]),d.withDirectives(d.createVNode(ci,{key:"scriptBody",label:C.$t("panel.scriptBody"),"label-width":120},{default:d.withCtx(()=>[d.createVNode(S,{value:u.value.body,"onUpdate:value":_[7]||(_[7]=k=>u.value.body=k),type:"textarea",onChange:x},null,8,["value"])]),_:1},8,["label"]),[[d.vShow,u.value.scriptType==="inline"]]),d.withDirectives(d.createVNode(ci,{key:"scriptResource",label:C.$t("panel.scriptResource"),"label-width":120},{default:d.withCtx(()=>[d.createVNode(S,{value:u.value.resource,"onUpdate:value":_[8]||(_[8]=k=>u.value.resource=k),onChange:w},null,8,["value"])]),_:1},8,["label"]),[[d.vShow,u.value.scriptType==="external"]])],64)):d.createCommentVNode("",!0)])]),_:2},[u.value.conditionType!==""&&u.value.conditionType!=="none"?{name:"header-extra",fn:d.withCtx(()=>[d.createVNode(ka)]),key:"0"}:void 0]),1024)}}});function wft(e){return Cft(e,"bpmn:TimerEventDefinition")}function Cft(e,t){const r=rt(e).get("eventDefinitions")||[];return ar(r,function(i){return Q(i,t)})}function _ft(e){return!!(e.get(`${Ot}:asyncBefore`)||e.get(`${Ot}:async`))}function Sft(e){return!!e.get(`${Ot}:asyncAfter`)}function cce(e){return Sft(e)||_ft(e)}function uce(e){const t=rt(e);return Q(e,`${Ot}:AsyncCapable`)&&cce(t)||!!hce(e)}function dce(e){const t=rt(e);return Q(e,`${Ot}:JobPriorized`)&&cce(t)||Q(e,"bpmn:Process")||Q(e,"bpmn:Participant")&&t.get("processRef")||!!hce(e)}function Eft(e){return uce(e)||dce(e)}function kft(e){return fce(e).get(`${Ot}:taskPriority`)}function $ft(e,t){var i;const n=Zt(Ut),r=fce(e);(i=n.modeling)==null||i.updateModdleProperties(e,r,{[`${Ot}:taskPriority`]:t})}function Tft(e){const t=rt(e),n=Zh(t,`${Ot}:FailedJobRetryTimeCycle`)[0];return n&&n.body}function Rft(e,t){var a,s,l;const n=Zt(Ut),r=rt(e);let i=r.get("extensionElements");i||(i=$0("bpmn:ExtensionElements",{values:[]},r),(a=n.modeling)==null||a.updateModdleProperties(e,r,{extensionElements:i}));let o=Zh(r,`${Ot}:FailedJobRetryTimeCycle`)[0];o||(o=$0(`${Ot}:FailedJobRetryTimeCycle`,{},i),(s=n.modeling)==null||s.updateModdleProperties(e,i,{values:[...i.get("values"),o]})),(l=n.modeling)==null||l.updateModdleProperties(e,o,{body:t})}function Pft(e){const t=fu(e),n=t&&t.get(`${Ot}:type`);return t&&Q(t,`${Ot}:ServiceTaskLike`)&&n&&n==="external"}function fce(e){let t;return Q(e,"bpmn:Participant")?t=rt(e).get("processRef"):Pft(e)?t=fu(e):t=rt(e),t}function hce(e){return Q(e,"bpmn:Event")&&wft(e)}const Oft={class:"element-external-task"},jft=d.defineComponent({__name:"ElementJobExecution",setup(e){const t=d.ref(void 0),n=d.ref(!1),r=Zt(Ut),{activeElementId:i}=Hs.storeToRefs(r),o=()=>{n.value=uce(r.activeElement),t.value=Tft(r.activeElement)||""},a=h=>{Rft(r.activeElement,h)},s=d.ref(void 0),l=d.ref(!1),c=()=>{l.value=dce(r.activeElement),s.value=kft(r.activeElement)||""},u=h=>{$ft(r.activeElement,h)};return d.watch(()=>i,()=>{o(),c()},{immediate:!0}),Go(()=>{o(),c()}),(h,p)=>{const m=d.resolveComponent("n-input"),b=d.resolveComponent("n-collapse-item");return d.openBlock(),d.createBlock(b,{name:"element-external-task"},d.createSlots({header:d.withCtx(()=>[d.createVNode(Mo,{title:h.$t("panel.jobExecution")},{default:d.withCtx(()=>[d.createVNode(d.unref(XDe))]),_:1},8,["title"])]),default:d.withCtx(()=>[d.createElementVNode("div",Oft,[l.value?(d.openBlock(),d.createBlock(ci,{key:0,label:h.$t("panel.taskPriority"),"label-width":100},{default:d.withCtx(()=>[d.createVNode(m,{value:s.value,"onUpdate:value":p[0]||(p[0]=v=>s.value=v),maxlength:"32",onChange:u},null,8,["value"])]),_:1},8,["label"])):d.createCommentVNode("",!0),n.value?(d.openBlock(),d.createBlock(ci,{key:1,label:h.$t("panel.retryTimeCycle"),"label-width":100},{default:d.withCtx(()=>[d.createVNode(m,{value:t.value,"onUpdate:value":p[1]||(p[1]=v=>t.value=v),maxlength:"32",onChange:a},null,8,["value"])]),_:1},8,["label"])):d.createCommentVNode("",!0)])]),_:2},[t.value||s.value?{name:"header-extra",fn:d.withCtx(()=>[d.createVNode(ka)]),key:"0"}:void 0]),1024)}}});function Mft(e){return Fft(e.businessObject)}function Aft(e,t){var r;(r=Zt(Ut).modeling)==null||r.updateModdleProperties(e,e.businessObject,{[`${Ot}:asyncBefore`]:t,[`${Ot}:async`]:void 0})}function Nft(e){return zft(e.businessObject)}function Dft(e,t){var r;(r=Zt(Ut).modeling)==null||r.updateModdleProperties(e,e.businessObject,{[`${Ot}:asyncAfter`]:t})}function Ift(e){return Vft(e.businessObject)}function Lft(e,t){var r;(r=Zt(Ut).modeling)==null||r.updateModdleProperties(e,e.businessObject,{[`${Ot}:exclusive`]:t})}function Bft(e){return Q(e,`${Ot}:AsyncCapable`)}function Fft(e){return!!(e.get(`${Ot}:asyncBefore`)||e.get(`${Ot}:async`))}function zft(e){return!!e.get(`${Ot}:asyncAfter`)}function Vft(e){return!!e.get(`${Ot}:exclusive`)}const Hft=d.defineComponent({__name:"ElementAsyncContinuations",setup(e){const t=d.ref(!1),n=d.ref(!1),r=d.ref(!1),i=d.computed(()=>t.value||n.value),o=Zt(Ut),a=()=>{t.value=Mft(o.activeElement),n.value=Nft(o.activeElement),r.value=Ift(o.activeElement)},s=u=>{Aft(o.activeElement,u),a()},l=u=>{Dft(o.activeElement,u),a()},c=u=>{Lft(o.activeElement,u),a()};return Go(a),(u,f)=>{const h=d.resolveComponent("n-switch"),p=d.resolveComponent("n-collapse-item");return d.openBlock(),d.createBlock(p,{name:"element-async-continuations"},d.createSlots({header:d.withCtx(()=>[d.createVNode(Mo,{title:u.$t("panel.asyncContinuations")},{default:d.withCtx(()=>[d.createVNode(d.unref(lIe))]),_:1},8,["title"])]),default:d.withCtx(()=>[d.createVNode(ci,{label:u.$t("panel.asyncBefore"),"label-width":120},{default:d.withCtx(()=>[d.createVNode(h,{value:t.value,"onUpdate:value":[f[0]||(f[0]=m=>t.value=m),s]},null,8,["value"])]),_:1},8,["label"]),d.createVNode(ci,{label:u.$t("panel.asyncAfter"),"label-width":120},{default:d.withCtx(()=>[d.createVNode(h,{value:n.value,"onUpdate:value":[f[1]||(f[1]=m=>n.value=m),l]},null,8,["value"])]),_:1},8,["label"]),i.value?(d.openBlock(),d.createBlock(ci,{key:0,label:u.$t("panel.asyncExclusive"),"label-width":120},{default:d.withCtx(()=>[d.createVNode(h,{value:r.value,"onUpdate:value":[f[2]||(f[2]=m=>r.value=m),c]},null,8,["value"])]),_:1},8,["label"])):d.createCommentVNode("",!0)]),_:2},[n.value||t.value?{name:"header-extra",fn:d.withCtx(()=>[d.createVNode(ka)]),key:"0"}:void 0]),1024)}}}),Uft={class:"element-extension-properties"},Wft=va(d.defineComponent({__name:"ElementExtensionProperties",setup(e){const{appContext:t}=d.getCurrentInstance(),{$t:n}=t.config.globalProperties,r=d.ref([]),i=d.ref([]),o=d.ref(null),a=d.reactive({name:"",value:""}),s=d.reactive({name:{required:!0,message:"属性名称不能为空",trigger:["blur","change"]},value:{required:!0,message:"属性值不能为空",trigger:["blur","change"]}}),l=d.ref(!1),c=[{title:n("panel.index"),key:"index",render:(v,g)=>g+1,width:60},{title:"Name",key:"name",ellipsis:{tooltip:!0}},{title:"Value",key:"value",ellipsis:{tooltip:!0}},{title:n("panel.operations"),key:"operation",width:80,align:"center",render:(v,g)=>d.h(_n,{quaternary:!0,size:"small",type:"error",onClick:()=>p(g)},{default:()=>n("panel.remove")})}],u=Zt(Ut),{activeElementId:f}=Hs.storeToRefs(u);d.watch(()=>f,(v,g)=>{v!==g&&h()},{immediate:!0});async function h(){l.value=!1,await d.nextTick(),a.name="",a.value="",i.value=d.markRaw(c$(u.activeElement)),r.value=JSON.parse(JSON.stringify(i.value))}function p(v){EAe(u.activeElement,i.value[v]),h()}async function m(){var v;(v=o.value)==null||v.validate(g=>{g||(ps(u.activeElement,d.toRaw(a)),h())})}async function b(){var v;l.value=!0,await d.nextTick(),(v=o.value)==null||v.restoreValidation()}return d.onMounted(()=>{h(),af.on("element-update",h)}),(v,g)=>{const x=d.resolveComponent("n-tag"),w=d.resolveComponent("n-data-table"),y=d.resolveComponent("n-input"),C=d.resolveComponent("n-form-item"),_=d.resolveComponent("n-form"),S=d.resolveComponent("n-modal"),E=d.resolveComponent("n-collapse-item");return d.openBlock(),d.createBlock(E,{name:"element-extension-properties"},{header:d.withCtx(()=>[d.createVNode(Mo,{title:d.unref(n)("panel.extensionProperties")},{default:d.withCtx(()=>[d.createVNode(d.unref(iIe))]),_:1},8,["title"])]),"header-extra":d.withCtx(()=>[d.createVNode(x,{type:"primary",round:""},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(r.value.length),1)]),_:1})]),default:d.withCtx(()=>[d.createElementVNode("div",Uft,[d.createVNode(w,{size:"small","max-height":"20vh",columns:c,data:r.value},null,8,["data"]),d.createVNode(d.unref(_n),{type:"info",class:"inline-large-button",secondary:"",onClick:b},{default:d.withCtx(()=>[d.createVNode(d.unref(D6),{class:"button-icon"}),d.createElementVNode("span",null,d.toDisplayString(d.unref(n)("panel.addExtensionProperties")),1)]),_:1})]),d.createVNode(S,{show:l.value,"onUpdate:show":g[5]||(g[5]=$=>l.value=$),preset:"dialog",title:d.unref(n)("panel.addExtensionProperties"),style:{width:"640px"}},{action:d.withCtx(()=>[d.createVNode(d.unref(_n),{size:"small",type:"info",onClick:m},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(d.unref(n)("panel.confirm")),1)]),_:1})]),default:d.withCtx(()=>[d.createVNode(_,{ref_key:"formRef",ref:o,model:a,rules:s,"aria-modal":"true"},{default:d.withCtx(()=>[d.createVNode(C,{path:"name",label:d.unref(n)("panel.propertyName")},{default:d.withCtx(()=>[d.createVNode(y,{value:a.name,"onUpdate:value":g[0]||(g[0]=$=>a.name=$),onKeydown:g[1]||(g[1]=d.withKeys(d.withModifiers(()=>{},["prevent"]),["enter"]))},null,8,["value"])]),_:1},8,["label"]),d.createVNode(C,{path:"value",label:d.unref(n)("panel.propertyValue")},{default:d.withCtx(()=>[d.createVNode(y,{value:a.value,"onUpdate:value":g[3]||(g[3]=$=>a.value=$),onKeydown:g[4]||(g[4]=d.withKeys(d.withModifiers(()=>{},["prevent"]),["enter"]))},{suffix:d.withCtx(()=>[d.createVNode(td,{code:a.value,"onUpdate:code":g[2]||(g[2]=$=>a.value=$)},null,8,["code"])]),_:1},8,["value"])]),_:1},8,["label"])]),_:1},8,["model","rules"])]),_:1},8,["show","title"])]),_:1})}}}),[["__scopeId","data-v-572772eb"]]),qft={class:"element-field-list"};function pce(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!d.isVNode(e)}const Gft=va(d.defineComponent({__name:"FieldList",props:{fields:{default:()=>[]}},emits:["addProperty","updateProperty","removeProperty"],setup(e,{emit:t}){const{appContext:n}=d.getCurrentInstance(),{$t:r}=n.config.globalProperties,i=t;let o=-1;const a=[{value:"string",label:"String"},{value:"expression",label:"Expression"}],s=d.ref(null),l=d.ref({name:"",value:"",type:"string"}),c=d.reactive({name:{required:!0,message:"名称不能为空",trigger:["blur","change"]},type:{required:!0,message:"类型不能为空",trigger:["blur","change"]}}),u=d.ref(!1),f=[{title:r("panel.index"),key:"index",render:(v,g)=>g+1,width:60},{title:"Name",key:"name",ellipsis:{tooltip:!0}},{title:"Type",key:"type",ellipsis:{tooltip:!0}},{title:"Value",key:"value",ellipsis:{tooltip:!0}},{title:r("panel.operations"),key:"operation",width:80,align:"center",render:(v,g)=>{let x,w;return[d.createVNode(_n,{quaternary:!0,size:"small",type:"info",onClick:()=>h(g,v)},pce(x=r("panel.edit"))?x:{default:()=>[x]}),d.createVNode(_n,{quaternary:!0,size:"small",type:"error",onClick:()=>m(g)},pce(w=r("panel.remove"))?w:{default:()=>[w]})]}}],h=async(v,g)=>{o=v,g&&(l.value=JSON.parse(JSON.stringify(g))),u.value=!0,await d.nextTick(),s.value&&s.value.restoreValidation()};async function p(){var v;(v=s.value)==null||v.validate(g=>{g||(o===-1?i("addProperty",l.value):i("updateProperty",o,l.value),b())})}function m(v){i("removeProperty",v),b()}async function b(){u.value=!1,await d.nextTick(),l.value={name:"",value:"",type:"string"}}return Go(b),(v,g)=>{const x=d.resolveComponent("n-data-table"),w=d.resolveComponent("n-input"),y=d.resolveComponent("n-form-item"),C=d.resolveComponent("n-select"),_=d.resolveComponent("n-form"),S=d.resolveComponent("n-modal");return d.openBlock(),d.createElementBlock(d.Fragment,null,[d.createElementVNode("div",qft,[d.createVNode(x,{size:"small","max-height":"20vh",columns:f,data:v.fields},null,8,["data"]),d.createVNode(d.unref(_n),{type:"info",class:"inline-large-button",secondary:"",onClick:g[0]||(g[0]=E=>h(-1))},{default:d.withCtx(()=>[d.createVNode(d.unref(D6),{class:"button-icon"}),d.createElementVNode("span",null,d.toDisplayString(d.unref(r)("panel.addFieldInjectionProperties")),1)]),_:1})]),d.createVNode(S,{show:u.value,"onUpdate:show":g[8]||(g[8]=E=>u.value=E),preset:"dialog","mask-closable":!1,title:d.unref(r)("panel.addFieldInjectionProperties"),style:{width:"640px"}},{action:d.withCtx(()=>[d.createVNode(d.unref(_n),{size:"small",type:"info",onClick:p},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(d.unref(r)("panel.confirm")),1)]),_:1})]),default:d.withCtx(()=>[d.createVNode(_,{ref_key:"formRef",ref:s,model:l.value,rules:c,"aria-modal":"true"},{default:d.withCtx(()=>[d.createVNode(y,{path:"name",label:d.unref(r)("panel.fieldName")},{default:d.withCtx(()=>[d.createVNode(w,{value:l.value.name,"onUpdate:value":g[1]||(g[1]=E=>l.value.name=E),onKeydown:g[2]||(g[2]=d.withKeys(d.withModifiers(()=>{},["prevent"]),["enter"]))},null,8,["value"])]),_:1},8,["label"]),d.createVNode(y,{path:"value",label:d.unref(r)("panel.fieldType")},{default:d.withCtx(()=>[d.createVNode(C,{value:l.value.type,"onUpdate:value":g[3]||(g[3]=E=>l.value.type=E),options:a,onKeydown:g[4]||(g[4]=d.withKeys(d.withModifiers(()=>{},["prevent"]),["enter"]))},null,8,["value"])]),_:1},8,["label"]),d.createVNode(y,{path:"value",label:d.unref(r)("panel.fieldValue")},{default:d.withCtx(()=>[d.createVNode(w,{value:l.value.value,"onUpdate:value":g[6]||(g[6]=E=>l.value.value=E),onKeydown:g[7]||(g[7]=d.withKeys(d.withModifiers(()=>{},["prevent"]),["enter"]))},{suffix:d.withCtx(()=>[d.createVNode(td,{code:l.value.value,"onUpdate:code":g[5]||(g[5]=E=>l.value.value=E)},null,8,["code"])]),_:1},8,["value"])]),_:1},8,["label"])]),_:1},8,["model","rules"])]),_:1},8,["show","title"])],64)}}}),[["__scopeId","data-v-a8315dc9"]]),Kft={class:"element-listeners"};function mce(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!d.isVNode(e)}const gce=va(d.defineComponent({__name:"ElementListeners",props:{elementType:{type:String,required:!0}},setup(e){const t=e,n=d.ref(t.elementType),{appContext:r}=d.getCurrentInstance(),{$t:i}=r.config.globalProperties,o=d.computed(()=>n.value==="TaskListener"),a=d.computed(()=>o.value?i("panel.TaskListeners"):i("panel.executionListeners")),s=d.computed(()=>o.value?i("panel.addTaskListener"):i("panel.addExecutionListener")),l=d.computed(()=>o.value?JNe:mIe),c=d.ref(!1),u=d.ref([]);let f=d.markRaw([]);const h=d.ref({id:"",event:"",type:"class",class:""}),p=d.ref(null),m=d.ref({listenerType:"class",scriptType:"none"}),b=d.ref([{label:"Start",value:"start"},{label:"End",value:"end"}]);let v=-1;const g={event:{required:!0,trigger:["blur","change"],message:"事件类型不能为空"},type:{required:!0,trigger:["blur","change"],message:"监听器类型不能为空"}},x=d.computed(()=>[{title:i("panel.index"),key:"index",render:(T,j)=>j+1,width:60},{title:i("panel.eventType"),key:"event",ellipsis:{tooltip:!0}},{title:i("panel.listenerType"),key:"type",ellipsis:{tooltip:!0}},{title:i("panel.fieldCount"),key:"fields",ellipsis:{tooltip:!0},render:T=>{var j;return((j=T.fields)==null?void 0:j.length)||0}},{title:i("panel.operations"),key:"operation",width:140,align:"center",render:(T,j)=>{let M,B;return d.h("span",{},[d.createVNode(_n,{quaternary:!0,size:"small",type:"info",onClick:()=>$(j,T)},mce(M=i("panel.edit"))?M:{default:()=>[M]}),d.createVNode(_n,{quaternary:!0,size:"small",type:"error",onClick:()=>S(j)},mce(B=i("panel.remove"))?B:{default:()=>[B]})])}}]),w=T=>{m.value.listenerType=T,h.value={event:h.value.event,type:T,fields:h.value.fields,...T==="script"?{script:h.value.script||{}}:{}}},y=T=>{var j;m.value.scriptType=T,h.value.script={scriptFormat:(j=h.value.script)==null?void 0:j.scriptFormat,scriptType:T}},C=Zt(Ut),_=()=>{c.value=!1,w("class"),b.value=CLe(C.activeElement,n.value),h.value={event:DY(C.activeElement,n.value),type:"class",class:""},f=d.markRaw(AY(C.activeElement,n.value));const T=f.map(j=>({...j,...j.script?{script:{...j.script,scriptType:gLe(j.script)}}:{},type:wLe(j,n.value)||"class"}));u.value=JSON.parse(JSON.stringify(T))},S=T=>{const j=f[T];bLe(C.activeElement,j),_()},E=async()=>{await p.value.validate(),v===-1?X2(C.activeElement,h.value,n.value):NY(C.activeElement,h.value,f[v],n.value),_()},$=async(T,j)=>{const M=T===-1;!M&&!j&&console.error("error:listenerData is required when create new listener"),v=T,M?(h.value={event:DY(C.activeElement,n.value),type:"class"},m.value.listenerType="class"):(h.value=JSON.parse(JSON.stringify(j)),h.value.fields&&(h.value.fields=h.value.fields.map(OK)),m.value.listenerType=(j==null?void 0:j.type)||"class"),c.value=!0,await d.nextTick(),p.value&&p.value.restoreValidation()},k=T=>{var j;h.value.fields||(h.value.fields=[]),(j=h.value.fields)==null||j.push(T)},P=T=>{h.value.fields||(h.value.fields=[]),h.value.fields.splice(T,1)};return Go(_),(T,j)=>{const M=d.resolveComponent("n-tag"),B=d.resolveComponent("n-data-table"),V=d.resolveComponent("n-select"),R=d.resolveComponent("n-form-item"),I=d.resolveComponent("n-input"),G=d.resolveComponent("n-form"),F=d.resolveComponent("n-modal"),z=d.resolveComponent("n-collapse-item");return d.openBlock(),d.createBlock(z,{name:"element-listeners-"+n.value},{header:d.withCtx(()=>[d.createVNode(Mo,{title:a.value},{default:d.withCtx(()=>[d.createVNode(d.unref(l))]),_:1},8,["title"])]),"header-extra":d.withCtx(()=>[d.createVNode(M,{type:"primary",round:""},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(u.value.length),1)]),_:1})]),default:d.withCtx(()=>[d.createElementVNode("div",Kft,[d.createVNode(B,{size:"small","max-height":"20vh",columns:x.value,data:u.value},null,8,["columns","data"]),d.createVNode(d.unref(_n),{type:"info",class:"inline-large-button",secondary:"",onClick:j[0]||(j[0]=A=>$(-1))},{default:d.withCtx(()=>[d.createVNode(d.unref(D6),{class:"button-icon"}),d.createElementVNode("span",null,d.toDisplayString(s.value),1)]),_:1})]),d.createVNode(F,{show:c.value,"onUpdate:show":j[18]||(j[18]=A=>c.value=A),preset:"dialog","mask-closable":!1,title:s.value,style:{width:"640px"}},{action:d.withCtx(()=>[d.createVNode(d.unref(_n),{size:"small",type:"info",onClick:E},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(d.unref(i)("panel.confirm")),1)]),_:1})]),default:d.withCtx(()=>[d.createVNode(G,{ref_key:"formRef",ref:p,"label-placement":"left","label-width":"100","require-mark-placement":"right-hanging",model:h.value,rules:g,class:"need-filled","aria-modal":"true"},{default:d.withCtx(()=>[d.createVNode(R,{path:"event",label:d.unref(i)("panel.eventType")},{default:d.withCtx(()=>[d.createVNode(V,{value:h.value.event,"onUpdate:value":j[1]||(j[1]=A=>h.value.event=A),options:b.value},null,8,["value","options"])]),_:1},8,["label"]),d.createVNode(R,{path:"type",label:d.unref(i)("panel.listenerType")},{default:d.withCtx(()=>[d.createVNode(V,{value:h.value.type,"onUpdate:value":[j[2]||(j[2]=A=>h.value.type=A),w],options:d.unref(_Ae)},null,8,["value","options"])]),_:1},8,["label"]),m.value.listenerType==="class"?(d.openBlock(),d.createBlock(R,{key:0,path:"class",label:d.unref(i)("panel.javaClass")},{default:d.withCtx(()=>[d.createVNode(I,{value:h.value.class,"onUpdate:value":j[3]||(j[3]=A=>h.value.class=A),onKeydown:j[4]||(j[4]=d.withKeys(d.withModifiers(()=>{},["prevent"]),["enter"]))},null,8,["value"])]),_:1},8,["label"])):d.createCommentVNode("",!0),m.value.listenerType==="expression"?(d.openBlock(),d.createBlock(R,{key:1,path:"expression",label:d.unref(i)("panel.expression")},{default:d.withCtx(()=>[d.createVNode(I,{value:h.value.expression,"onUpdate:value":j[6]||(j[6]=A=>h.value.expression=A),onKeydown:j[7]||(j[7]=d.withKeys(d.withModifiers(()=>{},["prevent"]),["enter"]))},{suffix:d.withCtx(()=>[d.createVNode(td,{code:h.value.expression,"onUpdate:code":j[5]||(j[5]=A=>h.value.expression=A)},null,8,["code"])]),_:1},8,["value"])]),_:1},8,["label"])):d.createCommentVNode("",!0),m.value.listenerType==="delegateExpression"?(d.openBlock(),d.createBlock(R,{key:2,path:"delegateExpression",label:d.unref(i)("panel.delegateExpression")},{default:d.withCtx(()=>[d.createVNode(I,{value:h.value.delegateExpression,"onUpdate:value":j[9]||(j[9]=A=>h.value.delegateExpression=A),onKeydown:j[10]||(j[10]=d.withKeys(d.withModifiers(()=>{},["prevent"]),["enter"]))},{suffix:d.withCtx(()=>[d.createVNode(td,{code:h.value.delegateExpression,"onUpdate:code":j[8]||(j[8]=A=>h.value.delegateExpression=A)},null,8,["code"])]),_:1},8,["value"])]),_:1},8,["label"])):d.createCommentVNode("",!0),m.value.listenerType==="script"&&h.value.script?(d.openBlock(),d.createElementBlock(d.Fragment,{key:3},[d.createVNode(R,{key:"scriptFormat",path:"script.scriptFormat",label:d.unref(i)("panel.scriptFormat")},{default:d.withCtx(()=>[d.createVNode(I,{value:h.value.script.scriptFormat,"onUpdate:value":j[11]||(j[11]=A=>h.value.script.scriptFormat=A),onKeydown:j[12]||(j[12]=d.withKeys(d.withModifiers(()=>{},["prevent"]),["enter"]))},null,8,["value"])]),_:1},8,["label"]),d.createVNode(R,{key:"scriptType",path:"script.scriptType",label:d.unref(i)("panel.scriptType")},{default:d.withCtx(()=>[d.createVNode(V,{value:h.value.script.scriptType,"onUpdate:value":[j[13]||(j[13]=A=>h.value.script.scriptType=A),y],options:d.unref(fK)},null,8,["value","options"])]),_:1},8,["label"]),m.value.scriptType==="inline"?(d.openBlock(),d.createBlock(R,{key:"scriptContent",path:"script.value",label:d.unref(i)("panel.scriptBody")},{default:d.withCtx(()=>[d.createVNode(I,{value:h.value.script.value,"onUpdate:value":j[14]||(j[14]=A=>h.value.script.value=A),type:"textarea",onKeydown:j[15]||(j[15]=d.withKeys(d.withModifiers(()=>{},["prevent"]),["enter"]))},null,8,["value"])]),_:1},8,["label"])):d.createCommentVNode("",!0),m.value.scriptType==="external"?(d.openBlock(),d.createBlock(R,{key:"scriptResource",path:"script.resource",label:d.unref(i)("panel.scriptResource")},{default:d.withCtx(()=>[d.createVNode(I,{value:h.value.script.resource,"onUpdate:value":j[16]||(j[16]=A=>h.value.script.resource=A),onKeydown:j[17]||(j[17]=d.withKeys(d.withModifiers(()=>{},["prevent"]),["enter"]))},null,8,["value"])]),_:1},8,["label"])):d.createCommentVNode("",!0)],64)):d.createCommentVNode("",!0),d.createTextVNode(" ` "),d.createVNode(R,{path:"fields",label:d.unref(i)("panel.listenerFieldList")},{default:d.withCtx(()=>[d.createVNode(Gft,{fields:h.value.fields,onAddProperty:k,onRemoveProperty:P},null,8,["fields"])]),_:1},8,["label"]),d.createTextVNode("` ")]),_:1},8,["model"])]),_:1},8,["show","title"])]),_:1},8,["name"])}}}),[["__scopeId","data-v-7ebd2f9d"]]);function vce(e,t){return d.defineComponent({setup(n,{attrs:r}){return()=>d.h(e,{elementType:t,...r})}})}const Yft=vce(gce,"TaskListener"),Zft=vce(gce,"ExecutionListener");function Xft(e){return rt(e).get(`${Ot}:initiator`)}function Jft(e,t){var i;const n=Zt(Ut),r=rt(e);(i=n.modeling)==null||i.updateModdleProperties(e,r,{[`${Ot}:initiator`]:t})}function Qft(e){return Q(e,`${Ot}:Initiator`)&&!Q(e.parent,"bpmn:SubProcess")}function eht(e){return Q(e,`${Ot}:Assignable`)}const tht={class:"element-start-initiator"},nht=d.defineComponent({__name:"ElementStartInitiator",setup(e){const t=d.ref(""),n=Zt(Ut),r=()=>{t.value=Xft(n.activeElement)},i=o=>{Jft(n.activeElement,o)};return Go(r),(o,a)=>{const s=d.resolveComponent("n-input"),l=d.resolveComponent("n-collapse-item");return d.openBlock(),d.createBlock(l,{name:"element-start-initiator"},d.createSlots({header:d.withCtx(()=>[d.createVNode(Mo,{title:o.$t("panel.startInitiator")},{default:d.withCtx(()=>[d.createVNode(d.unref(yIe))]),_:1},8,["title"])]),default:d.withCtx(()=>[d.createElementVNode("div",tht,[d.createVNode(ci,{label:o.$t("panel.initiator")},{default:d.withCtx(()=>[d.createVNode(s,{value:t.value,"onUpdate:value":a[0]||(a[0]=c=>t.value=c),onChange:i},null,8,["value"])]),_:1},8,["label"])])]),_:2},[t.value?{name:"header-extra",fn:d.withCtx(()=>[d.createVNode(ka)]),key:"0"}:void 0]),1024)}}});function rht(e){return rt(e).get(`${Ot}:candidateStarterGroups`)}function iht(e,t){var i;const n=Zt(Ut),r=rt(e);(i=n.modeling)==null||i.updateModdleProperties(e,r,{[`${Ot}:candidateStarterGroups`]:t})}function oht(e){return rt(e).get(`${Ot}:candidateStarterUsers`)}function aht(e,t){var i;const n=Zt(Ut),r=rt(e);(i=n.modeling)==null||i.updateModdleProperties(e,r,{[`${Ot}:candidateStarterUsers`]:t})}function sht(e){const t=rt(e);return Q(e,"bpmn:Process")||Q(e,"bpmn:Participant")&&t.get("processRef")}const lht=d.defineComponent({__name:"ElementCandidateStarter",setup(e){const t=d.ref(""),n=d.ref(""),r=Zt(Ut),i=()=>{t.value=rht(r.activeElement),n.value=oht(r.activeElement)},o=s=>{iht(r.activeElement,s)},a=s=>{aht(r.activeElement,s)};return Go(i),(s,l)=>{const c=d.resolveComponent("n-input"),u=d.resolveComponent("n-collapse-item");return d.openBlock(),d.createBlock(u,null,d.createSlots({header:d.withCtx(()=>[d.createVNode(Mo,{title:s.$t("panel.candidateStarter")},{default:d.withCtx(()=>[d.createVNode(d.unref(EY))]),_:1},8,["title"])]),default:d.withCtx(()=>[d.createElementVNode("div",null,[d.createVNode(ci,{label:s.$t("panel.candidateStarterGroups")},{default:d.withCtx(()=>[d.createVNode(c,{value:t.value,"onUpdate:value":l[0]||(l[0]=f=>t.value=f),onChange:o,placeholder:s.$t("panel.candidateStarterGroupsPlaceholder")},null,8,["value","placeholder"])]),_:1},8,["label"]),d.createVNode(ci,{label:s.$t("panel.candidateStarterUsers")},{default:d.withCtx(()=>[d.createVNode(c,{value:n.value,"onUpdate:value":l[1]||(l[1]=f=>n.value=f),onChange:a,placeholder:s.$t("panel.candidateStarterUsersPlaceholder")},null,8,["value","placeholder"])]),_:1},8,["label"])])]),_:2},[t.value||n.value?{name:"header-extra",fn:d.withCtx(()=>[d.createVNode(ka)]),key:"0"}:void 0]),1024)}}});function cht(e){return rt(e).get(`${Ot}:formKey`)}function uht(e,t){var i;const n=Zt(Ut),r=rt(e);(i=n.modeling)==null||i.updateModdleProperties(e,r,{[`${Ot}:formKey`]:t})}function dht(e){return Q(e,"bpmn:StartEvent")&&!Q(e.parent,"bpmn:SubProcess")||Q(e,"bpmn:UserTask")}const fht=d.defineComponent({__name:"ElementFormType",setup(e){const t=d.ref(""),n=Zt(Ut),r=()=>{t.value=cht(n.activeElement)},i=o=>{uht(n.activeElement,o)};return Go(r),(o,a)=>{const s=d.resolveComponent("n-input"),l=d.resolveComponent("n-collapse-item");return d.openBlock(),d.createBlock(l,null,d.createSlots({header:d.withCtx(()=>[d.createVNode(Mo,{title:o.$t("panel.formConfig")},{default:d.withCtx(()=>[d.createVNode(d.unref($De))]),_:1},8,["title"])]),default:d.withCtx(()=>[d.createElementVNode("div",null,[d.createVNode(ci,{label:o.$t("panel.formKey")},{default:d.withCtx(()=>[d.createVNode(s,{value:t.value,"onUpdate:value":a[0]||(a[0]=c=>t.value=c),onChange:i},null,8,["value"])]),_:1},8,["label"])])]),_:2},[t.value?{name:"header-extra",fn:d.withCtx(()=>[d.createVNode(ka)]),key:"0"}:void 0]),1024)}}});var bce={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(E1,function(){var n=1e3,r=6e4,i=36e5,o="millisecond",a="second",s="minute",l="hour",c="day",u="week",f="month",h="quarter",p="year",m="date",b="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,x={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(M){var B=["th","st","nd","rd"],V=M%100;return"["+M+(B[(V-20)%10]||B[V]||B[0])+"]"}},w=function(M,B,V){var R=String(M);return!R||R.length>=B?M:""+Array(B+1-R.length).join(V)+M},y={s:w,z:function(M){var B=-M.utcOffset(),V=Math.abs(B),R=Math.floor(V/60),I=V%60;return(B<=0?"+":"-")+w(R,2,"0")+":"+w(I,2,"0")},m:function M(B,V){if(B.date()<V.date())return-M(V,B);var R=12*(V.year()-B.year())+(V.month()-B.month()),I=B.clone().add(R,f),G=V-I<0,F=B.clone().add(R+(G?-1:1),f);return+(-(R+(V-I)/(G?I-F:F-I))||0)},a:function(M){return M<0?Math.ceil(M)||0:Math.floor(M)},p:function(M){return{M:f,y:p,w:u,d:c,D:m,h:l,m:s,s:a,ms:o,Q:h}[M]||String(M||"").toLowerCase().replace(/s$/,"")},u:function(M){return M===void 0}},C="en",_={};_[C]=x;var S="$isDayjsObject",E=function(M){return M instanceof T||!(!M||!M[S])},$=function M(B,V,R){var I;if(!B)return C;if(typeof B=="string"){var G=B.toLowerCase();_[G]&&(I=G),V&&(_[G]=V,I=G);var F=B.split("-");if(!I&&F.length>1)return M(F[0])}else{var z=B.name;_[z]=B,I=z}return!R&&I&&(C=I),I||!R&&C},k=function(M,B){if(E(M))return M.clone();var V=typeof B=="object"?B:{};return V.date=M,V.args=arguments,new T(V)},P=y;P.l=$,P.i=E,P.w=function(M,B){return k(M,{locale:B.$L,utc:B.$u,x:B.$x,$offset:B.$offset})};var T=function(){function M(V){this.$L=$(V.locale,null,!0),this.parse(V),this.$x=this.$x||V.x||{},this[S]=!0}var B=M.prototype;return B.parse=function(V){this.$d=function(R){var I=R.date,G=R.utc;if(I===null)return new Date(NaN);if(P.u(I))return new Date;if(I instanceof Date)return new Date(I);if(typeof I=="string"&&!/Z$/i.test(I)){var F=I.match(v);if(F){var z=F[2]-1||0,A=(F[7]||"0").substring(0,3);return G?new Date(Date.UTC(F[1],z,F[3]||1,F[4]||0,F[5]||0,F[6]||0,A)):new Date(F[1],z,F[3]||1,F[4]||0,F[5]||0,F[6]||0,A)}}return new Date(I)}(V),this.init()},B.init=function(){var V=this.$d;this.$y=V.getFullYear(),this.$M=V.getMonth(),this.$D=V.getDate(),this.$W=V.getDay(),this.$H=V.getHours(),this.$m=V.getMinutes(),this.$s=V.getSeconds(),this.$ms=V.getMilliseconds()},B.$utils=function(){return P},B.isValid=function(){return this.$d.toString()!==b},B.isSame=function(V,R){var I=k(V);return this.startOf(R)<=I&&I<=this.endOf(R)},B.isAfter=function(V,R){return k(V)<this.startOf(R)},B.isBefore=function(V,R){return this.endOf(R)<k(V)},B.$g=function(V,R,I){return P.u(V)?this[R]:this.set(I,V)},B.unix=function(){return Math.floor(this.valueOf()/1e3)},B.valueOf=function(){return this.$d.getTime()},B.startOf=function(V,R){var I=this,G=!!P.u(R)||R,F=P.p(V),z=function(H,O){var D=P.w(I.$u?Date.UTC(I.$y,O,H):new Date(I.$y,O,H),I);return G?D:D.endOf(c)},A=function(H,O){return P.w(I.toDate()[H].apply(I.toDate("s"),(G?[0,0,0,0]:[23,59,59,999]).slice(O)),I)},L=this.$W,N=this.$M,q=this.$D,oe="set"+(this.$u?"UTC":"");switch(F){case p:return G?z(1,0):z(31,11);case f:return G?z(1,N):z(0,N+1);case u:var ee=this.$locale().weekStart||0,be=(L<ee?L+7:L)-ee;return z(G?q-be:q+(6-be),N);case c:case m:return A(oe+"Hours",0);case l:return A(oe+"Minutes",1);case s:return A(oe+"Seconds",2);case a:return A(oe+"Milliseconds",3);default:return this.clone()}},B.endOf=function(V){return this.startOf(V,!1)},B.$set=function(V,R){var I,G=P.p(V),F="set"+(this.$u?"UTC":""),z=(I={},I[c]=F+"Date",I[m]=F+"Date",I[f]=F+"Month",I[p]=F+"FullYear",I[l]=F+"Hours",I[s]=F+"Minutes",I[a]=F+"Seconds",I[o]=F+"Milliseconds",I)[G],A=G===c?this.$D+(R-this.$W):R;if(G===f||G===p){var L=this.clone().set(m,1);L.$d[z](A),L.init(),this.$d=L.set(m,Math.min(this.$D,L.daysInMonth())).$d}else z&&this.$d[z](A);return this.init(),this},B.set=function(V,R){return this.clone().$set(V,R)},B.get=function(V){return this[P.p(V)]()},B.add=function(V,R){var I,G=this;V=Number(V);var F=P.p(R),z=function(N){var q=k(G);return P.w(q.date(q.date()+Math.round(N*V)),G)};if(F===f)return this.set(f,this.$M+V);if(F===p)return this.set(p,this.$y+V);if(F===c)return z(1);if(F===u)return z(7);var A=(I={},I[s]=r,I[l]=i,I[a]=n,I)[F]||1,L=this.$d.getTime()+V*A;return P.w(L,this)},B.subtract=function(V,R){return this.add(-1*V,R)},B.format=function(V){var R=this,I=this.$locale();if(!this.isValid())return I.invalidDate||b;var G=V||"YYYY-MM-DDTHH:mm:ssZ",F=P.z(this),z=this.$H,A=this.$m,L=this.$M,N=I.weekdays,q=I.months,oe=I.meridiem,ee=function(O,D,ae,U){return O&&(O[D]||O(R,G))||ae[D].slice(0,U)},be=function(O){return P.s(z%12||12,O,"0")},H=oe||function(O,D,ae){var U=O<12?"AM":"PM";return ae?U.toLowerCase():U};return G.replace(g,function(O,D){return D||function(ae){switch(ae){case"YY":return String(R.$y).slice(-2);case"YYYY":return P.s(R.$y,4,"0");case"M":return L+1;case"MM":return P.s(L+1,2,"0");case"MMM":return ee(I.monthsShort,L,q,3);case"MMMM":return ee(q,L);case"D":return R.$D;case"DD":return P.s(R.$D,2,"0");case"d":return String(R.$W);case"dd":return ee(I.weekdaysMin,R.$W,N,2);case"ddd":return ee(I.weekdaysShort,R.$W,N,3);case"dddd":return N[R.$W];case"H":return String(z);case"HH":return P.s(z,2,"0");case"h":return be(1);case"hh":return be(2);case"a":return H(z,A,!0);case"A":return H(z,A,!1);case"m":return String(A);case"mm":return P.s(A,2,"0");case"s":return String(R.$s);case"ss":return P.s(R.$s,2,"0");case"SSS":return P.s(R.$ms,3,"0");case"Z":return F}return null}(O)||F.replace(":","")})},B.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},B.diff=function(V,R,I){var G,F=this,z=P.p(R),A=k(V),L=(A.utcOffset()-this.utcOffset())*r,N=this-A,q=function(){return P.m(F,A)};switch(z){case p:G=q()/12;break;case f:G=q();break;case h:G=q()/3;break;case u:G=(N-L)/6048e5;break;case c:G=(N-L)/864e5;break;case l:G=N/i;break;case s:G=N/r;break;case a:G=N/n;break;default:G=N}return I?G:P.a(G)},B.daysInMonth=function(){return this.endOf(f).$D},B.$locale=function(){return _[this.$L]},B.locale=function(V,R){if(!V)return this.$L;var I=this.clone(),G=$(V,R,!0);return G&&(I.$L=G),I},B.clone=function(){return P.w(this.$d,this)},B.toDate=function(){return new Date(this.valueOf())},B.toJSON=function(){return this.isValid()?this.toISOString():null},B.toISOString=function(){return this.$d.toISOString()},B.toString=function(){return this.$d.toUTCString()},M}(),j=T.prototype;return k.prototype=j,[["$ms",o],["$s",a],["$m",s],["$H",l],["$W",c],["$M",f],["$y",p],["$D",m]].forEach(function(M){j[M[1]]=function(B){return this.$g(B,M[0],M[1])}}),k.extend=function(M,B){return M.$i||(M(B,T,k),M.$i=!0),k},k.locale=$,k.isDayjs=E,k.unix=function(M){return k(1e3*M)},k.en=_[C],k.Ls=_,k.p={},k})})(bce);var hht=bce.exports;const pht=u0(hht),mht={key:0,class:"edit-item_description"},ght=d.defineComponent({__name:"ElementUserAssignment",setup(e){const t=s$.reduce((s,l)=>(s[l]="")||s,{}),n=d.ref(t),r=Zt(Ut),i=(s,l,c)=>{const u=s?pht(l).toISOString():"";uT(r.activeElement,c,u)};async function o(s,l){n.value[s]=l||"",uT(r.activeElement,s,l)}async function a(){const s=FLe(r.activeElement);n.value=s}return Go(a),(s,l)=>{const c=d.resolveComponent("n-date-picker"),u=d.resolveComponent("n-popover"),f=d.resolveComponent("n-input"),h=d.resolveComponent("n-collapse-item");return d.openBlock(),d.createBlock(h,null,d.createSlots({header:d.withCtx(()=>[d.createVNode(Mo,{title:s.$t("panel.userAssignment")},{default:d.withCtx(()=>[d.createVNode(d.unref(EY))]),_:1},8,["title"])]),default:d.withCtx(()=>[d.createElementVNode("div",null,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(d.unref(s$),p=>(d.openBlock(),d.createBlock(ci,{key:p,label:s.$t(`panel.userAssign_${p}`)},{default:d.withCtx(()=>[d.createVNode(f,{value:n.value[p],"onUpdate:value":m=>n.value[p]=m,onChange:m=>o(p,m)},{suffix:d.withCtx(()=>[p==="dueDate"||p==="followUpDate"?(d.openBlock(),d.createBlock(u,{key:0,placement:"bottom",trigger:"click"},{trigger:d.withCtx(()=>[d.createVNode(d.unref(lDe),{type:"calendar",style:{cursor:"pointer","margin-right":"5px"}})]),default:d.withCtx(()=>[d.createVNode(c,{type:"datetime",clearable:"",panel:"","onUpdate:value":(m,b)=>i(m,b,p)},null,8,["onUpdate:value"])]),_:2},1024)):d.createCommentVNode("",!0),d.createVNode(td,{code:n.value[p],"onUpdate:code":m=>n.value[p]=m},null,8,["code","onUpdate:code"])]),_:2},1032,["value","onUpdate:value","onChange"]),p==="dueDate"||p==="followUpDate"?(d.openBlock(),d.createElementBlock("div",mht,d.toDisplayString(s.$t("panel.dueDate_description",{someDate:"{someDate}"})),1)):d.createCommentVNode("",!0)]),_:2},1032,["label"]))),128))])]),_:2},[n.value.dueDate||n.value.followUpDate||n.value.assignee||n.value.candidateGroups||n.value.candidateUsers?{name:"header-extra",fn:d.withCtx(()=>[d.createVNode(ka)]),key:"0"}:void 0]),1024)}}}),vht={class:"element-field-injection"};function yce(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!d.isVNode(e)}const bht=va(d.defineComponent({__name:"ElementFieldInjection",setup(e){const{appContext:t}=d.getCurrentInstance(),{$t:n}=t.config.globalProperties,r=d.ref([]),i=d.ref([]);let o=-1;const a=[{value:"string",label:"String"},{value:"expression",label:"Expression"}],s=d.ref(null),l=d.ref({name:"",value:"",type:"string"}),c=d.reactive({name:{required:!0,message:"名称不能为空",trigger:["blur","change"]},type:{required:!0,message:"类型不能为空",trigger:["blur","change"]}}),u=d.ref(!1),f=[{title:n("panel.index"),key:"index",render:(g,x)=>x+1,width:60},{title:"Name",key:"name",ellipsis:{tooltip:!0}},{title:"Type",key:"type",ellipsis:{tooltip:!0}},{title:"Value",key:"value",ellipsis:{tooltip:!0}},{title:n("panel.operations"),key:"operation",width:80,align:"center",render:(g,x)=>{let w,y;return[d.createVNode(_n,{quaternary:!0,size:"small",type:"info",onClick:()=>v(x,g)},yce(w=n("panel.edit"))?w:{default:()=>[w]}),d.createVNode(_n,{quaternary:!0,size:"small",type:"error",onClick:()=>m(x)},yce(y=n("panel.remove"))?y:{default:()=>[y]})]}}],h=Zt(Ut);async function p(){u.value=!1,await d.nextTick(),i.value=d.markRaw(P0(h.activeElement)),r.value=JSON.parse(JSON.stringify(i.value)).map(OK)||[],l.value={name:"",value:"",type:"string"}}function m(g){UAe(h.activeElement,i.value[g]),p()}async function b(){var g;(g=s.value)==null||g.validate(x=>{x||(o===-1?cm(h.activeElement,l.value):WAe(h.activeElement,i.value[o],l.value),p())})}const v=async(g,x)=>{o=g,x&&(l.value=JSON.parse(JSON.stringify(x))),u.value=!0,await d.nextTick(),s.value&&s.value.restoreValidation()};return Go(p),(g,x)=>{const w=d.resolveComponent("n-tag"),y=d.resolveComponent("n-data-table"),C=d.resolveComponent("n-input"),_=d.resolveComponent("n-form-item"),S=d.resolveComponent("n-select"),E=d.resolveComponent("n-form"),$=d.resolveComponent("n-modal"),k=d.resolveComponent("n-collapse-item");return d.openBlock(),d.createBlock(k,{name:"element-field-injection"},{header:d.withCtx(()=>[d.createVNode(Mo,{title:d.unref(n)("panel.FieldInjectionProperties")},{default:d.withCtx(()=>[d.createVNode(d.unref(GDe))]),_:1},8,["title"])]),"header-extra":d.withCtx(()=>[d.createVNode(w,{type:"primary",round:""},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(r.value.length),1)]),_:1})]),default:d.withCtx(()=>[d.createElementVNode("div",vht,[d.createVNode(y,{size:"small","max-height":"20vh",columns:f,data:r.value},null,8,["data"]),d.createVNode(d.unref(_n),{type:"info",class:"inline-large-button",secondary:"",onClick:x[0]||(x[0]=P=>v(-1))},{default:d.withCtx(()=>[d.createVNode(d.unref(D6),{class:"button-icon"}),d.createElementVNode("span",null,d.toDisplayString(d.unref(n)("panel.addFieldInjectionProperties")),1)]),_:1})]),d.createVNode($,{show:u.value,"onUpdate:show":x[8]||(x[8]=P=>u.value=P),preset:"dialog","mask-closable":!1,title:d.unref(n)("panel.addFieldInjectionProperties"),style:{width:"640px"}},{action:d.withCtx(()=>[d.createVNode(d.unref(_n),{size:"small",type:"info",onClick:b},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(d.unref(n)("panel.confirm")),1)]),_:1})]),default:d.withCtx(()=>[d.createVNode(E,{ref_key:"formRef",ref:s,model:l.value,rules:c,"aria-modal":"true"},{default:d.withCtx(()=>[d.createVNode(_,{path:"name",label:d.unref(n)("panel.fieldName")},{default:d.withCtx(()=>[d.createVNode(C,{value:l.value.name,"onUpdate:value":x[1]||(x[1]=P=>l.value.name=P),onKeydown:x[2]||(x[2]=d.withKeys(d.withModifiers(()=>{},["prevent"]),["enter"]))},null,8,["value"])]),_:1},8,["label"]),d.createVNode(_,{path:"value",label:d.unref(n)("panel.fieldType")},{default:d.withCtx(()=>[d.createVNode(S,{value:l.value.type,"onUpdate:value":x[3]||(x[3]=P=>l.value.type=P),options:a,onKeydown:x[4]||(x[4]=d.withKeys(d.withModifiers(()=>{},["prevent"]),["enter"]))},null,8,["value"])]),_:1},8,["label"]),d.createVNode(_,{path:"value",label:d.unref(n)("panel.fieldValue")},{default:d.withCtx(()=>[d.createVNode(C,{value:l.value.value,"onUpdate:value":x[6]||(x[6]=P=>l.value.value=P),onKeydown:x[7]||(x[7]=d.withKeys(d.withModifiers(()=>{},["prevent"]),["enter"]))},{suffix:d.withCtx(()=>[d.createVNode(td,{code:l.value.value,"onUpdate:code":x[5]||(x[5]=P=>l.value.value=P)},null,8,["code"])]),_:1},8,["value"])]),_:1},8,["label"])]),_:1},8,["model","rules"])]),_:1},8,["show","title"])]),_:1})}}}),[["__scopeId","data-v-7b574fd3"]]),yht=d.defineComponent({__name:"ElementMultiInstance",setup(e){const t=l$.reduce((a,s)=>(a[s]="")||a,{}),n=d.ref(t),r=Zt(Ut);async function i(a,s){n.value[a]=s||"",Z2(r.activeElement,a,s)}async function o(){const a=uLe(r.activeElement);n.value=a}return Go(o),(a,s)=>{const l=d.resolveComponent("n-input"),c=d.resolveComponent("n-collapse-item");return d.openBlock(),d.createBlock(c,null,d.createSlots({header:d.withCtx(()=>[d.createVNode(Mo,{title:a.$t("panel.MultiInstanceConfig")},{default:d.withCtx(()=>[d.createVNode(d.unref(HDe))]),_:1},8,["title"])]),default:d.withCtx(()=>[d.createElementVNode("div",null,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(d.unref(l$),u=>(d.openBlock(),d.createBlock(ci,{key:u,label:a.$t(`panel.multiInstance_${u}`)},{default:d.withCtx(()=>[d.createVNode(l,{value:n.value[u],"onUpdate:value":f=>n.value[u]=f,onChange:f=>i(u,f)},{suffix:d.withCtx(()=>[d.createVNode(td,{code:n.value[u],"onUpdate:code":f=>n.value[u]=f},null,8,["code","onUpdate:code"])]),_:2},1032,["value","onUpdate:value","onChange"])]),_:2},1032,["label"]))),128))])]),_:2},[n.value.collection||n.value.completionCondition||n.value.elementVariable||n.value.loopCardinality?{name:"header-extra",fn:d.withCtx(()=>[d.createVNode(ka)]),key:"0"}:void 0]),1024)}}});z7.global;const xht={[`${Ot}:class`]:void 0,[`${Ot}:expression`]:void 0,[`${Ot}:delegateExpression`]:void 0,[`${Ot}:resultVariable`]:void 0},wht={[`${Ot}:decisionRef`]:void 0,[`${Ot}:decisionRefBinding`]:"latest",[`${Ot}:decisionRefVersion`]:void 0,[`${Ot}:mapDecisionResult`]:"resultList",[`${Ot}:decisionRefTenantId`]:void 0},Cht={[`${Ot}:type`]:void 0,[`${Ot}:topic`]:void 0},_ht=(e,t)=>{var s,l,c,u;const n=RK(e),r=fu(e),i=Zt(Ut);let o=xht,a=r.get("extensionElements");if(xce(t)&&(o={...o,[t]:xce(n)?r.get(`${Ot}:${n}`):""}),$K(r)&&(o={...o,...wht},t==="dmn"&&(o={...o,[`${Ot}:decisionRef`]:""})),TK(r)&&(o={...o,...Cht},t==="external"&&(o={...o,[`${Ot}:type`]:"external",[`${Ot}:topic`]:""})),y$(r)){const f=wce(r);if(f.length&&((s=i.modeling)==null||s.updateModdleProperties(e,a,{values:Mv(a.get("values"),h=>f.includes(h))})),t==="connector"){a||(a=R6("bpmn:ExtensionElements",{values:[]},r),(l=i.modeling)==null||l.updateModdleProperties(e,r,{extensionElements:a}));const h=R6(`${Ot}:Connector`,{},a);(c=i.modeling)==null||c.updateModdleProperties(e,a,{values:[...a.get("values"),h]})}}(u=i.modeling)==null||u.updateModdleProperties(e,r,o)};function Sht(e,t){if(t==="connector"){const i=Cce(e);return i&&i.get(`${Ot}:connectorId`)}const n=fu(e),r=`${Ot}:${t}`;return n&&(n==null?void 0:n.get(r))}function Eht(e){const t={};for(const n of hK){const r=Sht(e,n);kd(r)||(t[n]=r)}return t}const kht={external:"topic"};function $ht(e,t,n){var a,s;const r=Zt(Ut);if(t==="connector"){const l=Cce(e);(a=r.modeling)==null||a.updateModdleProperties(e,l,{[`${Ot}:connectorId`]:n});return}const i=fu(e),o=kht[t]||t;(s=r.modeling)==null||s.updateModdleProperties(e,i,{[`${Ot}:${o}`]:n})}function xce(e=""){return["class","expression","delegateExpression"].includes(e)}function wce(e){return Zh(e,`${Ot}:Connector`)}function Cce(e){const t=fu(e);return wce(t)[0]}const Tht=va(d.defineComponent({__name:"ElementImplementation",setup(e){const t=d.ref({implementationType:""}),n=d.ref([{value:"",label:""}]),r=Zt(Ut),i=s=>{t.value.implementationType=s,_ht(r.activeElement,s)};async function o(s,l){t.value[s]=l||"",$ht(r.activeElement,s,l)}async function a(){const s=RK(r.activeElement),l=Eht(r.activeElement);t.value={implementationType:s||"",...l}}return Go(a),(s,l)=>{const c=d.resolveComponent("n-select"),u=d.resolveComponent("n-input"),f=d.resolveComponent("n-collapse-item");return d.openBlock(),d.createBlock(f,null,d.createSlots({header:d.withCtx(()=>[d.createVNode(Mo,{title:s.$t("panel.ImplementationConfig")},{default:d.withCtx(()=>[d.createVNode(d.unref(ODe))]),_:1},8,["title"])]),default:d.withCtx(()=>[d.createElementVNode("div",null,[d.createVNode(ci,{key:"implementationType",label:s.$t("panel.implementationType"),"label-width":120},{default:d.withCtx(()=>[d.createVNode(c,{value:t.value.implementationType,"onUpdate:value":[l[0]||(l[0]=h=>t.value.implementationType=h),i],options:n.value},null,8,["value","options"])]),_:1},8,["label"]),(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(d.unref(hK).filter(h=>h===t.value.implementationType&&h!==""),h=>(d.openBlock(),d.createBlock(ci,{key:h,label:s.$t(`panel.implementation_${h}`),"label-width":120},{default:d.withCtx(()=>[d.createVNode(u,{value:t.value[h],"onUpdate:value":p=>t.value[h]=p,onChange:p=>o(h,p)},d.createSlots({_:2},[h==="expression"||h==="delegateExpression"?{name:"suffix",fn:d.withCtx(()=>[d.createVNode(td,{code:t.value[h],"onUpdate:code":p=>t.value[h]=p},null,8,["code","onUpdate:code"])]),key:"0"}:void 0]),1032,["value","onUpdate:value","onChange"])]),_:2},1032,["label"]))),128)),t.value.implementationType==="expression"?(d.openBlock(),d.createBlock(ci,{key:0,label:s.$t("panel.implementation_resultVariable"),"label-width":120},{default:d.withCtx(()=>[d.createVNode(u,{value:t.value.resultVariable,"onUpdate:value":l[1]||(l[1]=h=>t.value.resultVariable=h),onChange:l[2]||(l[2]=h=>o("resultVariable",h))},null,8,["value"])]),_:1},8,["label"])):d.createCommentVNode("",!0)])]),_:2},[t.value.implementationType!==""?{name:"header-extra",fn:d.withCtx(()=>[d.createVNode(ka)]),key:"0"}:void 0]),1024)}}}),[["__scopeId","data-v-822d0d0b"]]),_ce={EDITABLE:"EDITABLE",READ_ONLY:"READ_ONLY",HIDDEN:"HIDDEN"},_g="assigneeFieldPermissionMap",yM="othersFieldPermissionMap",Rht="createFieldPermission",Pht="taskToFieldPermissionMap",Oht=[{label:"编辑",value:_ce.EDITABLE},{label:"只读",value:_ce.READ_ONLY}],Sce=(e=[])=>{const t={};return e.forEach(n=>{const{fieldName:r,permission:i}=n;return t[r]=i}),t},Ece=e=>{const t=Sce(e[_g]),n=Sce(e[yM]);return{[_g]:t,[yM]:n}},e7=Hs.defineStore("permission",()=>{const e=d.shallowRef({}),t=s=>{e.value=s},n=d.ref({}),r=d.ref(""),i=(s="")=>{r.value=s},o=d.computed(()=>n.value[r.value]||d.toRaw(e.value));return{creationMap:e,setCreationMap:t,allNodesMap:n,curNodeId:r,setCurNodeId:i,curNodeMap:o,updateFieldPermission:(s,l,c)=>{const u=o.value[s];u[l]&&(console.log("updateFieldPermission",s,l,c,u[l]),u[l].permission=c),n.value[r.value]||(n.value[r.value]={[_g]:[],[yM]:[]}),n.value[r.value][s]=u}}}),jht=va(d.defineComponent({__name:"FormPermissionProperty",setup(e){const t=d.computed(()=>{const a=e7(Ut),{curNodeMap:s}=a;return s}),n=d.reactive({page:1,pageSize:5,showSizePicker:!0,pageSizes:[5,10,15],onChange:a=>{n.page=a},onUpdatePageSize:a=>{n.pageSize=a,n.page=1}}),r=Zt(Ut);function i(){const a=e7(Ut),{setCurNodeId:s}=a;s(r.activeElementId)}const o=d.computed(()=>{const a=e7(Ut),{updateFieldPermission:s}=a;return[{title:"序号",key:"index",render:(l,c)=>c+1,width:60},{title:"字段名",key:"fieldName",ellipsis:{tooltip:!0}},{title:"权限配置",key:"permission",align:"center",render:(l,c)=>[d.createVNode(j_,{options:Oht,value:l.permission,"on-update:value":u=>{s(_g,c,u)}},null)]}]});return Go(i),(a,s)=>{const l=d.resolveComponent("n-data-table"),c=d.resolveComponent("n-tab-pane"),u=d.resolveComponent("n-tabs"),f=d.resolveComponent("n-collapse-item");return d.openBlock(),d.createBlock(f,null,{"header-extra":d.withCtx(()=>[d.createVNode(ka)]),header:d.withCtx(()=>[d.createVNode(Mo,{title:"表单权限设置"},{default:d.withCtx(()=>[d.createVNode(d.unref(BDe))]),_:1})]),default:d.withCtx(()=>[d.createVNode(u,{class:"form-permission-tabs",type:"line",animated:""},{default:d.withCtx(()=>[d.createVNode(c,{name:d.unref(_g),tab:"当前用户"},{default:d.withCtx(()=>[d.createVNode(l,{size:"small","max-height":"30vh",columns:o.value,data:t.value[d.unref(_g)],pagination:n},null,8,["columns","data","pagination"])]),_:1},8,["name"]),d.createVNode(c,{name:"othersFieldPermissionMap",tab:"其他用户"},{default:d.withCtx(()=>[d.createTextVNode(" Hey Jude ")]),_:1})]),_:1})]),_:1})}}}),[["__scopeId","data-v-82d80a0a"]]);var Mht="Expected a function",kce=NaN,Aht="[object Symbol]",Nht=/^\s+|\s+$/g,Dht=/^[-+]0x[0-9a-f]+$/i,Iht=/^0b[01]+$/i,Lht=/^0o[0-7]+$/i,Bht=parseInt,Fht=typeof E1=="object"&&E1&&E1.Object===Object&&E1,zht=typeof self=="object"&&self&&self.Object===Object&&self,Vht=Fht||zht||Function("return this")(),Hht=Object.prototype,Uht=Hht.toString,Wht=Math.max,qht=Math.min,xM=function(){return Vht.Date.now()};function Ght(e,t,n){var r,i,o,a,s,l,c=0,u=!1,f=!1,h=!0;if(typeof e!="function")throw new TypeError(Mht);t=$ce(t)||0,wM(n)&&(u=!!n.leading,f="maxWait"in n,o=f?Wht($ce(n.maxWait)||0,t):o,h="trailing"in n?!!n.trailing:h);function p(_){var S=r,E=i;return r=i=void 0,c=_,a=e.apply(E,S),a}function m(_){return c=_,s=setTimeout(g,t),u?p(_):a}function b(_){var S=_-l,E=_-c,$=t-S;return f?qht($,o-E):$}function v(_){var S=_-l,E=_-c;return l===void 0||S>=t||S<0||f&&E>=o}function g(){var _=xM();if(v(_))return x(_);s=setTimeout(g,b(_))}function x(_){return s=void 0,h&&r?p(_):(r=i=void 0,a)}function w(){s!==void 0&&clearTimeout(s),c=0,r=l=i=s=void 0}function y(){return s===void 0?a:x(xM())}function C(){var _=xM(),S=v(_);if(r=arguments,i=this,l=_,S){if(s===void 0)return m(l);if(f)return s=setTimeout(g,t),p(l)}return s===void 0&&(s=setTimeout(g,t)),a}return C.cancel=w,C.flush=y,C}function wM(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function Kht(e){return!!e&&typeof e=="object"}function Yht(e){return typeof e=="symbol"||Kht(e)&&Uht.call(e)==Aht}function $ce(e){if(typeof e=="number")return e;if(Yht(e))return kce;if(wM(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=wM(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(Nht,"");var n=Iht.test(e);return n||Lht.test(e)?Bht(e.slice(2),n?2:8):Dht.test(e)?kce:+e}var Zht=Ght;const Xht=u0(Zht),Tce=function(e){return Object.prototype.toString.call(e)==="[object Array]"};function ko(){}ko.typeColor=function(e){let t="";switch(e){case"primary":t="#2d8cf0";break;case"success":t="#19be6b";break;case"info":t="#909399";break;case"warn":t="#ff9900";break;case"error":t="#f03f14";break;default:t="#35495E";break}return t},ko.print=function(e="default",t,n=!1){if(typeof t=="object"){Tce(t)?console.table(t):console.dir(t);return}n?console.log(`%c ${t} `,`background:${ko.typeColor(e)}; padding: 2px; border-radius: 4px; color: #fff;`):console.log(`%c ${t} `,`border: 1px solid ${ko.typeColor(e)};
|
4150
|
+
`),a=fe("span"),s=Pt("("),l=Pt(b),c=Ve(),u=Pt(v),f=Pt(")"),W(a,"class","jse-nested-array-count svelte-fxr3ye"),W(t,"type","button"),W(t,"class","jse-nested-array-action svelte-fxr3ye")},m:function(x,w){ke(x,t,w),le(t,n),le(t,r),le(t,i),le(t,o),le(t,a),le(a,s),le(a,l),le(a,c),le(a,u),le(a,f),h||(p=ut(t,"click",g),h=!0)},p:function(x,w){e=x,128&w&&mn(n,e[7]),8&w&&m!==(m=zs(e[14])+"")&&mn(i,m),8&w&&b!==(b=e[15]+"")&&mn(l,b),8&w&&v!==(v=e[15]!==1?"items":"item")&&mn(u,v)},d:function(x){x&&Ee(t),h=!1,p()}}}function oat(e){var t,n,r,i,o,a,s,l,c,u,f,h,p,m,b,v,g,x;function w(T,j){return T[5]?nat:tat}var y=w(e),C=y(e);function _(T,j){return T[4]&&!T[0]?iat:rat}for(var S=_(e),E=S(e),$=kn(e[3]),k=[],P=0;P<$.length;P+=1)k[P]=Sse(_se(e,$,P));return{c:function(){t=fe("div"),n=fe("div"),r=Ve(),i=fe("div"),o=fe("div"),a=Pt(e[6]),s=Ve(),l=fe("div"),C.c(),c=Ve(),E.c(),u=Ve();for(var T=0;T<k.length;T+=1)k[T].c();f=Ve(),h=fe("button"),p=Pt(e[7]),m=Pt(" in tree mode"),b=Ve(),v=fe("div"),W(n,"class","jse-space jse-before svelte-fxr3ye"),W(o,"class","jse-nested-arrays-title"),W(l,"class","jse-nested-arrays-info svelte-fxr3ye"),W(h,"type","button"),W(h,"class","jse-nested-array-action svelte-fxr3ye"),W(i,"class","jse-nested-arrays svelte-fxr3ye"),W(v,"class","jse-space jse-after svelte-fxr3ye"),W(t,"class","jse-table-mode-welcome svelte-fxr3ye")},m:function(T,j){ke(T,t,j),le(t,n),le(t,r),le(t,i),le(i,o),le(o,a),le(i,s),le(i,l),C.m(l,null),le(l,c),E.m(l,null),le(i,u);for(var M=0;M<k.length;M+=1)k[M]&&k[M].m(i,null);le(i,f),le(i,h),le(h,p),le(h,m),le(t,b),le(t,v),g||(x=ut(h,"click",e[13]),g=!0)},p:function(T,j){var M=Sn(j,1)[0];if(64&M&&mn(a,T[6]),y===(y=w(T))&&C?C.p(T,M):(C.d(1),(C=y(T))&&(C.c(),C.m(l,c))),S!==(S=_(T))&&(E.d(1),(E=S(T))&&(E.c(),E.m(l,null))),394&M){var B;for($=kn(T[3]),B=0;B<$.length;B+=1){var V=_se(T,$,B);k[B]?k[B].p(V,M):(k[B]=Sse(V),k[B].c(),k[B].m(i,f))}for(;B<k.length;B+=1)k[B].d(1);k.length=$.length}128&M&&mn(p,T[7])},i:gt,o:gt,d:function(T){T&&Ee(t),C.d(),E.d(),Qi(k,T),g=!1,x()}}}function aat(e,t,n){var r,i,o,a,s,l=t.text,c=t.json,u=t.readOnly,f=t.parser,h=t.openJSONEditorModal,p=t.onChangeMode;return e.$$set=function(m){"text"in m&&n(9,l=m.text),"json"in m&&n(10,c=m.json),"readOnly"in m&&n(0,u=m.readOnly),"parser"in m&&n(11,f=m.parser),"openJSONEditorModal"in m&&n(1,h=m.openJSONEditorModal),"onChangeMode"in m&&n(2,p=m.onChangeMode)},e.$$.update=function(){1&e.$$.dirty&&n(7,r=u?"View":"Edit"),1024&e.$$.dirty&&n(3,s=c?function(m){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2,v=[];return function g(x,w){Ti(x)&&w.length<b&&Object.keys(x).forEach(function(y){g(x[y],w.concat(y))}),Qr(x)&&v.push(w)}(m,[]),v}(c).slice(0,99).filter(function(m){return m.length>0}):[]),8&e.$$.dirty&&n(5,i=!kr(s)),1536&e.$$.dirty&&n(4,o=c===void 0&&(l===""||l===void 0)),3120&e.$$.dirty&&n(6,a=i?"Object with nested arrays":o?"An empty document":Ti(c)?"An object":Qr(c)?"An empty array":"A ".concat(GO(c,f)))},[u,h,p,s,o,i,a,r,function(m){return Ht(c,m).length},l,c,f,function(m){return h(m)},function(){return p(Aa.tree)}]}var sat=function(e){function t(n){var r;return Qt(this,t),ln(Jt(r=an(this,t)),n,aat,oat,Pn,{text:9,json:10,readOnly:0,parser:11,openJSONEditorModal:1,onChangeMode:2},eat),r}return sn(t,cn),en(t)}();function lat(e){En(e,"svelte-1nml1r3",".jse-column-header.svelte-1nml1r3{background:none;border:none;font-family:inherit;font-size:inherit;color:inherit;display:flex;gap:var(--jse-padding, 10px);padding:calc(0.5 * var(--jse-padding, 10px)) var(--jse-padding, 10px) calc(0.5 * var(--jse-padding, 10px)) calc(0.5 * var(--jse-padding, 10px));width:100%}.jse-column-header.svelte-1nml1r3:hover{background:var(--jse-table-header-background-highlight, #e8e8e8)}.jse-column-header.svelte-1nml1r3:not(.jse-column-header.jse-readonly){cursor:pointer}")}function cat(e){var t,n,r,i,o,a;return n=new gr({props:{data:tVe}}),{c:function(){t=fe("button"),Qe(n.$$.fragment),W(t,"type","button"),W(t,"class","jse-column-header svelte-1nml1r3"),W(t,"title",r="The Columns are created by sampling ".concat(e[1]," items out of ").concat(e[0],". ")+"If you're missing a column, click here to sample all of the items instead of a subset. This is slower.")},m:function(s,l){ke(s,t,l),Ze(n,t,null),i=!0,o||(a=ut(t,"click",e[3]),o=!0)},p:function(s,l){var c=Sn(l,1)[0];(!i||3&c&&r!==(r="The Columns are created by sampling ".concat(s[1]," items out of ").concat(s[0],". ")+"If you're missing a column, click here to sample all of the items instead of a subset. This is slower."))&&W(t,"title",r)},i:function(s){i||(X(n.$$.fragment,s),i=!0)},o:function(s){re(n.$$.fragment,s),i=!1},d:function(s){s&&Ee(t),Xe(n),o=!1,a()}}}function uat(e,t,n){var r=t.count,i=t.maxSampleCount,o=t.onRefresh;return e.$$set=function(a){"count"in a&&n(0,r=a.count),"maxSampleCount"in a&&n(1,i=a.maxSampleCount),"onRefresh"in a&&n(2,o=a.onRefresh)},[r,i,o,function(){return o()}]}var dat=function(e){function t(n){var r;return Qt(this,t),ln(Jt(r=an(this,t)),n,uat,cat,Pn,{count:0,maxSampleCount:1,onRefresh:2},lat),r}return sn(t,cn),en(t)}();function fat(e){En(e,"svelte-1jkzr9g",'.jse-table-mode.svelte-1jkzr9g.svelte-1jkzr9g{flex:1;display:flex;flex-direction:column;position:relative;background:var(--jse-background-color, #fff);min-width:0;min-height:0;font-family:var(--jse-font-family-mono, consolas, menlo, monaco, "Ubuntu Mono", "source-code-pro", monospace);font-size:var(--jse-font-size-mono, 14px);color:var(--jse-text-color, #4d4d4d);line-height:var(--jse-line-height, calc(1em + 4px))}.jse-table-mode.no-main-menu.svelte-1jkzr9g.svelte-1jkzr9g{border-top:var(--jse-main-border, 1px solid #d7d7d7)}.jse-table-mode.svelte-1jkzr9g .jse-hidden-input-label.svelte-1jkzr9g{position:fixed;right:0;top:0;width:0;height:0}.jse-table-mode.svelte-1jkzr9g .jse-hidden-input-label .jse-hidden-input.svelte-1jkzr9g{width:0;height:0;padding:0;border:0;outline:none}.jse-table-mode.svelte-1jkzr9g .jse-contents.svelte-1jkzr9g{flex:1;align-items:flex-start;flex-direction:column;display:flex;overflow:auto;overflow-anchor:none;border-left:var(--jse-main-border, 1px solid #d7d7d7);border-right:var(--jse-main-border, 1px solid #d7d7d7)}.jse-table-mode.svelte-1jkzr9g .jse-contents.svelte-1jkzr9g:last-child{border-bottom:var(--jse-main-border, 1px solid #d7d7d7)}.jse-table-mode.svelte-1jkzr9g .jse-contents table.jse-table-main.svelte-1jkzr9g{border-collapse:collapse;border-spacing:0}.jse-table-mode.svelte-1jkzr9g .jse-contents table.jse-table-main .jse-table-invisible-start-section td.svelte-1jkzr9g,.jse-table-mode.svelte-1jkzr9g .jse-contents table.jse-table-main .jse-table-invisible-end-section td.svelte-1jkzr9g{margin:0;padding:0}.jse-table-mode.svelte-1jkzr9g .jse-contents table.jse-table-main .jse-table-invisible-end-section td.svelte-1jkzr9g{padding-bottom:var(--jse-padding, 10px)}.jse-table-mode.svelte-1jkzr9g .jse-contents table.jse-table-main .jse-table-row.svelte-1jkzr9g:hover{background-color:var(--jse-table-row-odd-background, rgba(0, 0, 0, 0.05))}.jse-table-mode.svelte-1jkzr9g .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.svelte-1jkzr9g{padding:0 var(--jse-padding, 10px) 0 0;vertical-align:top;white-space:nowrap;height:var(--jse-line-height, calc(1em + 4px))}.jse-table-mode.svelte-1jkzr9g .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-table-cell-header.svelte-1jkzr9g,.jse-table-mode.svelte-1jkzr9g .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-table-cell-gutter.svelte-1jkzr9g{font-weight:normal;text-align:left;color:var(--jse-text-readonly, #8d8d8d);background:var(--jse-table-header-background, #f5f5f5)}.jse-table-mode.svelte-1jkzr9g .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-table-cell-header.svelte-1jkzr9g{padding:0;position:sticky;top:0}.jse-table-mode.svelte-1jkzr9g .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-table-cell-header .jse-table-root-error.svelte-1jkzr9g{padding:calc(0.5 * var(--jse-padding, 10px)) var(--jse-padding, 10px) calc(0.5 * var(--jse-padding, 10px)) calc(0.5 * var(--jse-padding, 10px))}.jse-table-mode.svelte-1jkzr9g .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-table-cell-gutter.svelte-1jkzr9g{padding:0 var(--jse-padding, 10px) 0 calc(0.5 * var(--jse-padding, 10px))}.jse-table-mode.svelte-1jkzr9g .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-selected-value.svelte-1jkzr9g>.jse-value{background:var(--jse-selection-background-color, #d3d3d3)}.jse-table-mode.svelte-1jkzr9g .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.svelte-1jkzr9g div{display:inline-flex}.jse-table-mode.svelte-1jkzr9g .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.svelte-1jkzr9g div.jse-value{overflow-wrap:normal;white-space:nowrap;vertical-align:top;display:inline-block}.jse-table-mode.svelte-1jkzr9g .jse-contents table.jse-table-main .jse-table-row .jse-table-cell .jse-context-menu-anchor.svelte-1jkzr9g{position:relative;vertical-align:top}.jse-table-mode.svelte-1jkzr9g .jse-contents.jse-contents-loading.svelte-1jkzr9g{align-items:unset}.jse-table-mode.svelte-1jkzr9g .jse-contents.jse-contents-loading .jse-loading-space.svelte-1jkzr9g{flex:1}.jse-table-mode.svelte-1jkzr9g .jse-contents.jse-contents-loading .jse-loading.svelte-1jkzr9g{flex:2;text-align:center;color:var(--jse-panel-color-readonly, #b2b2b2);box-sizing:border-box;font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size, 16px)}')}function Ese(e,t,n){var r,i=e.slice();i[123]=t[n],i[128]=n;var o=i[23].startIndex+i[128];i[124]=o;var a=i[22].rows[i[124]];i[125]=a;var s=Lj([String(i[124])],(r=i[125])===null||r===void 0?void 0:r.row);return i[126]=s,i}function kse(e,t,n){var r,i=e.slice();i[129]=t[n],i[135]=n;var o=[String(i[124])].concat(i[129]);i[130]=o;var a=Ht(i[123],i[129]);i[131]=a;var s=ur(i[11].selection)&&If(i[11].selection.path,i[130]);i[132]=s;var l=(r=i[125])===null||r===void 0?void 0:r.columns[i[135]];i[133]=l;var c=Lj(i[130],i[133]);return i[126]=c,i}function $se(e,t,n){var r=e.slice();return r[129]=t[n],r}function qj(e){var t,n=e.slice(),r=Lj([],(t=n[22])===null||t===void 0?void 0:t.root);return n[126]=r,n}function Tse(e){var t,n;return t=new Iot({props:{json:e[8],readOnly:e[0],historyState:e[20],onSort:e[41],onTransform:e[42],onUndo:e[43],onRedo:e[44],onContextMenu:e[33],onRenderMenu:e[5]}}),{c:function(){Qe(t.$$.fragment)},m:function(r,i){Ze(t,r,i),n=!0},p:function(r,i){var o={};256&i[0]&&(o.json=r[8]),1&i[0]&&(o.readOnly=r[0]),1048576&i[0]&&(o.historyState=r[20]),32&i[0]&&(o.onRenderMenu=r[5]),t.$set(o)},i:function(r){n||(X(t.$$.fragment,r),n=!0)},o:function(r){re(t.$$.fragment,r),n=!1},d:function(r){Xe(t,r)}}}function hat(e){var t;return{c:function(){(t=fe("div")).innerHTML='<div class="jse-loading-space svelte-1jkzr9g"></div> <div class="jse-loading svelte-1jkzr9g">loading...</div>',W(t,"class","jse-contents jse-contents-loading svelte-1jkzr9g")},m:function(n,r){ke(n,t,r)},p:gt,i:gt,o:gt,d:function(n){n&&Ee(t)}}}function pat(e){var t,n,r,i,o,a,s,l,c,u=[vat,gat,mat],f=[];function h(p,m){return p[25]?0:p[17]&&p[16]!==void 0&&p[16]!==""?1:2}return i=h(e),o=f[i]=u[i](e),{c:function(){t=fe("label"),n=fe("input"),r=Ve(),o.c(),a=cr(),W(n,"type","text"),n.readOnly=!0,W(n,"tabindex","-1"),W(n,"class","jse-hidden-input svelte-1jkzr9g"),W(t,"class","jse-hidden-input-label svelte-1jkzr9g")},m:function(p,m){ke(p,t,m),le(t,n),e[73](n),ke(p,r,m),f[i].m(p,m),ke(p,a,m),s=!0,l||(c=ut(n,"paste",e[38]),l=!0)},p:function(p,m){var b=i;(i=h(p))===b?f[i].p(p,m):(pt(),re(f[b],1,1,function(){f[b]=null}),mt(),(o=f[i])?o.p(p,m):(o=f[i]=u[i](p)).c(),X(o,1),o.m(a.parentNode,a))},i:function(p){s||(X(o),s=!0)},o:function(p){re(o),s=!1},d:function(p){p&&(Ee(t),Ee(r),Ee(a)),e[73](null),f[i].d(p),l=!1,c()}}}function mat(e){var t,n;return t=new sat({props:{text:e[16],json:e[8],readOnly:e[0],parser:e[2],openJSONEditorModal:e[40],onChangeMode:e[4]}}),{c:function(){Qe(t.$$.fragment)},m:function(r,i){Ze(t,r,i),n=!0},p:function(r,i){var o={};65536&i[0]&&(o.text=r[16]),256&i[0]&&(o.json=r[8]),1&i[0]&&(o.readOnly=r[0]),4&i[0]&&(o.parser=r[2]),16&i[0]&&(o.onChangeMode=r[4]),t.$set(o)},i:function(r){n||(X(t.$$.fragment,r),n=!0)},o:function(r){re(t.$$.fragment,r),n=!1},d:function(r){Xe(t,r)}}}function gat(e){var t,n,r,i;return t=new Oc({props:{type:"error",message:"The loaded JSON document is invalid and could not be repaired automatically.",actions:e[0]?[]:[{icon:lf,text:"Repair manually",title:'Open the document in "code" mode and repair it manually',onClick:e[36]}]}}),r=new Xae({props:{text:e[16],json:e[8],indentation:e[3],parser:e[2]}}),{c:function(){Qe(t.$$.fragment),n=Ve(),Qe(r.$$.fragment)},m:function(o,a){Ze(t,o,a),ke(o,n,a),Ze(r,o,a),i=!0},p:function(o,a){var s={};1&a[0]&&(s.actions=o[0]?[]:[{icon:lf,text:"Repair manually",title:'Open the document in "code" mode and repair it manually',onClick:o[36]}]),t.$set(s);var l={};65536&a[0]&&(l.text=o[16]),256&a[0]&&(l.json=o[8]),8&a[0]&&(l.indentation=o[3]),4&a[0]&&(l.parser=o[2]),r.$set(l)},i:function(o){i||(X(t.$$.fragment,o),X(r.$$.fragment,o),i=!0)},o:function(o){re(t.$$.fragment,o),re(r.$$.fragment,o),i=!1},d:function(o){o&&Ee(n),Xe(t,o),Xe(r,o)}}}function vat(e){for(var t,n,r,i,o,a,s,l,c,u,f,h,p,m,b,v,g,x,w,y,C,_,S,E,$=!kr((t=e[22])===null||t===void 0?void 0:t.root),k=$&&Rse(qj(e)),P=kn(e[10]),T=[],j=0;j<P.length;j+=1)T[j]=Ose($se(e,P,j));for(var M=function(A){return re(T[A],1,1,function(){T[A]=null})},B=e[24]&&jse(e),V=kn(e[23].visibleItems),R=[],I=0;I<V.length;I+=1)R[I]=Bse(Ese(e,V,I));var G=function(A){return re(R[A],1,1,function(){R[A]=null})},F=e[18]&&Fse(e),z=e[19]&&zse(e);return C=new $j({props:{validationErrors:e[12],selectError:e[39]}}),{c:function(){n=fe("div"),r=fe("table"),i=fe("tbody"),o=fe("tr"),a=fe("th"),k&&k.c(),s=Ve();for(var A=0;A<T.length;A+=1)T[A].c();l=Ve(),B&&B.c(),c=Ve(),u=fe("tr"),f=fe("td"),p=Ve();for(var L=0;L<R.length;L+=1)R[L].c();m=Ve(),b=fe("tr"),v=fe("td"),x=Ve(),F&&F.c(),w=Ve(),z&&z.c(),y=Ve(),Qe(C.$$.fragment),W(a,"class","jse-table-cell jse-table-cell-header svelte-1jkzr9g"),W(o,"class","jse-table-row jse-table-row-header svelte-1jkzr9g"),W(f,"colspan",h=e[10].length),W(f,"class","svelte-1jkzr9g"),Za(f,"height",e[23].startHeight+"px"),W(u,"class","jse-table-invisible-start-section"),W(v,"colspan",g=e[10].length),W(v,"class","svelte-1jkzr9g"),Za(v,"height",e[23].endHeight+"px"),W(b,"class","jse-table-invisible-end-section"),W(r,"class","jse-table-main svelte-1jkzr9g"),W(n,"class","jse-contents svelte-1jkzr9g")},m:function(A,L){ke(A,n,L),le(n,r),le(r,i),le(i,o),le(o,a),k&&k.m(a,null),le(o,s);for(var N=0;N<T.length;N+=1)T[N]&&T[N].m(o,null);le(o,l),B&&B.m(o,null),le(i,c),le(i,u),le(u,f),le(i,p);for(var q=0;q<R.length;q+=1)R[q]&&R[q].m(i,null);le(i,m),le(i,b),le(b,v),e[76](n),ke(A,x,L),F&&F.m(A,L),ke(A,w,L),z&&z.m(A,L),ke(A,y,L),Ze(C,A,L),_=!0,S||(E=[Do(Cse.call(null,n,e[45])),ut(n,"scroll",e[29])],S=!0)},p:function(A,L){var N;if(4194304&L[0]&&($=!kr((N=A[22])===null||N===void 0?void 0:N.root)),$?k?(k.p(qj(A),L),4194304&L[0]&&X(k,1)):((k=Rse(qj(A))).c(),X(k,1),k.m(a,null)):k&&(pt(),re(k,1,1,function(){k=null}),mt()),268438529&L[0]){var q;for(P=kn(A[10]),q=0;q<P.length;q+=1){var oe=$se(A,P,q);T[q]?(T[q].p(oe,L),X(T[q],1)):(T[q]=Ose(oe),T[q].c(),X(T[q],1),T[q].m(o,l))}for(pt(),q=P.length;q<T.length;q+=1)M(q);mt()}if(A[24]?B?(B.p(A,L),16777216&L[0]&&X(B,1)):((B=jse(A)).c(),X(B,1),B.m(o,null)):B&&(pt(),re(B,1,1,function(){B=null}),mt()),(!_||1024&L[0]&&h!==(h=A[10].length))&&W(f,"colspan",h),8388608&L[0]&&Za(f,"height",A[23].startHeight+"px"),165678085&L[0]|33281&L[1]){var ee;for(V=kn(A[23].visibleItems),ee=0;ee<V.length;ee+=1){var be=Ese(A,V,ee);R[ee]?(R[ee].p(be,L),X(R[ee],1)):(R[ee]=Bse(be),R[ee].c(),X(R[ee],1),R[ee].m(i,m))}for(pt(),ee=V.length;ee<R.length;ee+=1)G(ee);mt()}(!_||1024&L[0]&&g!==(g=A[10].length))&&W(v,"colspan",g),8388608&L[0]&&Za(v,"height",A[23].endHeight+"px"),A[18]?F?(F.p(A,L),262144&L[0]&&X(F,1)):((F=Fse(A)).c(),X(F,1),F.m(w.parentNode,w)):F&&(pt(),re(F,1,1,function(){F=null}),mt()),A[19]?z?(z.p(A,L),524288&L[0]&&X(z,1)):((z=zse(A)).c(),X(z,1),z.m(y.parentNode,y)):z&&(pt(),re(z,1,1,function(){z=null}),mt());var H={};4096&L[0]&&(H.validationErrors=A[12]),C.$set(H)},i:function(A){if(!_){X(k);for(var L=0;L<P.length;L+=1)X(T[L]);X(B);for(var N=0;N<V.length;N+=1)X(R[N]);X(F),X(z),X(C.$$.fragment,A),_=!0}},o:function(A){re(k),T=T.filter(Boolean);for(var L=0;L<T.length;L+=1)re(T[L]);re(B),R=R.filter(Boolean);for(var N=0;N<R.length;N+=1)re(R[N]);re(F),re(z),re(C.$$.fragment,A),_=!1},d:function(A){A&&(Ee(n),Ee(x),Ee(w),Ee(y)),k&&k.d(),Qi(T,A),B&&B.d(),Qi(R,A),e[76](null),F&&F.d(A),z&&z.d(A),Xe(C,A),S=!1,Zr(E)}}}function Rse(e){var t,n,r=e[126]&&Pse(e);return{c:function(){r&&r.c(),t=cr()},m:function(i,o){r&&r.m(i,o),ke(i,t,o),n=!0},p:function(i,o){i[126]?r?(r.p(i,o),4194304&o[0]&&X(r,1)):((r=Pse(i)).c(),X(r,1),r.m(t.parentNode,t)):r&&(pt(),re(r,1,1,function(){r=null}),mt())},i:function(i){n||(X(r),n=!0)},o:function(i){re(r),n=!1},d:function(i){i&&Ee(t),r&&r.d(i)}}}function Pse(e){var t,n,r;return n=new vg({props:{validationError:e[126],onExpand:Yl}}),{c:function(){t=fe("div"),Qe(n.$$.fragment),W(t,"class","jse-table-root-error svelte-1jkzr9g")},m:function(i,o){ke(i,t,o),Ze(n,t,null),r=!0},p:function(i,o){var a={};4194304&o[0]&&(a.validationError=i[126]),n.$set(a)},i:function(i){r||(X(n.$$.fragment,i),r=!0)},o:function(i){re(n.$$.fragment,i),r=!1},d:function(i){i&&Ee(t),Xe(n)}}}function Ose(e){var t,n,r;return n=new Zot({props:{path:e[129],sortedColumn:e[11].sortedColumn,readOnly:e[0],onSort:e[28]}}),{c:function(){t=fe("th"),Qe(n.$$.fragment),W(t,"class","jse-table-cell jse-table-cell-header svelte-1jkzr9g")},m:function(i,o){ke(i,t,o),Ze(n,t,null),r=!0},p:function(i,o){var a={};1024&o[0]&&(a.path=i[129]),2048&o[0]&&(a.sortedColumn=i[11].sortedColumn),1&o[0]&&(a.readOnly=i[0]),n.$set(a)},i:function(i){r||(X(n.$$.fragment,i),r=!0)},o:function(i){re(n.$$.fragment,i),r=!1},d:function(i){i&&Ee(t),Xe(n)}}}function jse(e){var t,n,r;return n=new dat({props:{count:Array.isArray(e[8])?e[8].length:0,maxSampleCount:e[9],onRefresh:e[74]}}),{c:function(){t=fe("th"),Qe(n.$$.fragment),W(t,"class","jse-table-cell jse-table-cell-header svelte-1jkzr9g")},m:function(i,o){ke(i,t,o),Ze(n,t,null),r=!0},p:function(i,o){var a={};256&o[0]&&(a.count=Array.isArray(i[8])?i[8].length:0),512&o[0]&&(a.maxSampleCount=i[9]),512&o[0]&&(a.onRefresh=i[74]),n.$set(a)},i:function(i){r||(X(n.$$.fragment,i),r=!0)},o:function(i){re(n.$$.fragment,i),r=!1},d:function(i){i&&Ee(t),Xe(n)}}}function Mse(e){var t,n;return t=new vg({props:{validationError:e[126],onExpand:Yl}}),{c:function(){Qe(t.$$.fragment)},m:function(r,i){Ze(t,r,i),n=!0},p:function(r,i){var o={};12582912&i[0]&&(o.validationError=r[126]),t.$set(o)},i:function(r){n||(X(t.$$.fragment,r),n=!0)},o:function(r){re(t.$$.fragment,r),n=!1},d:function(r){Xe(t,r)}}}function Ase(e){var t,n,r,i,o,a,s,l=e[124]+"",c=e[126]&&Mse(e);function u(){for(var f,h=arguments.length,p=new Array(h),m=0;m<h;m++)p[m]=arguments[m];return(f=e)[75].apply(f,[e[124]].concat(p))}return{c:function(){t=fe("th"),n=Pt(l),r=Ve(),c&&c.c(),W(t,"class","jse-table-cell jse-table-cell-gutter svelte-1jkzr9g")},m:function(f,h){ke(f,t,h),le(t,n),le(t,r),c&&c.m(t,null),o=!0,a||(s=Do(i=Cse.call(null,t,u)),a=!0)},p:function(f,h){e=f,(!o||8388608&h[0])&&l!==(l=e[124]+"")&&mn(n,l),e[126]?c?(c.p(e,h),12582912&h[0]&&X(c,1)):((c=Mse(e)).c(),X(c,1),c.m(t,null)):c&&(pt(),re(c,1,1,function(){c=null}),mt()),i&&da(i.update)&&8388608&h[0]&&i.update.call(null,u)},i:function(f){o||(X(c),o=!0)},o:function(f){re(c),o=!1},d:function(f){f&&Ee(t),c&&c.d(),a=!1,s()}}}function bat(e){var t,n;return t=new Vot({props:{path:e[130],value:e[131]!==void 0?e[131]:"",enforceString:q0(e[131],e[11].enforceStringMap,Mt(e[130]),e[21].parser),selection:e[132]?e[11].selection:null,searchResultItems:e[27],context:e[21]}}),{c:function(){Qe(t.$$.fragment)},m:function(r,i){Ze(t,r,i),n=!0},p:function(r,i){var o={};8389632&i[0]&&(o.path=r[130]),8389632&i[0]&&(o.value=r[131]!==void 0?r[131]:""),10488832&i[0]&&(o.enforceString=q0(r[131],r[11].enforceStringMap,Mt(r[130]),r[21].parser)),8391680&i[0]&&(o.selection=r[132]?r[11].selection:null),2097152&i[0]&&(o.context=r[21]),t.$set(o)},i:function(r){n||(X(t.$$.fragment,r),n=!0)},o:function(r){re(t.$$.fragment,r),n=!1},d:function(r){Xe(t,r)}}}function yat(e){var t,n;return t=new qot({props:{path:e[130],value:e[131],parser:e[2],isSelected:e[132],onEdit:e[40]}}),{c:function(){Qe(t.$$.fragment)},m:function(r,i){Ze(t,r,i),n=!0},p:function(r,i){var o={};8389632&i[0]&&(o.path=r[130]),8389632&i[0]&&(o.value=r[131]),4&i[0]&&(o.parser=r[2]),8391680&i[0]&&(o.isSelected=r[132]),t.$set(o)},i:function(r){n||(X(t.$$.fragment,r),n=!0)},o:function(r){re(t.$$.fragment,r),n=!1},d:function(r){Xe(t,r)}}}function Nse(e){var t,n,r,i;return n=new Ff({props:{selected:!0,onContextMenu:e[31]}}),{c:function(){t=fe("div"),Qe(n.$$.fragment),r=Ve(),W(t,"class","jse-context-menu-anchor svelte-1jkzr9g")},m:function(o,a){ke(o,t,a),Ze(n,t,null),ke(o,r,a),i=!0},p:gt,i:function(o){i||(X(n.$$.fragment,o),i=!0)},o:function(o){re(n.$$.fragment,o),i=!1},d:function(o){o&&(Ee(t),Ee(r)),Xe(n)}}}function Dse(e){var t,n;return t=new vg({props:{validationError:e[126],onExpand:Yl}}),{c:function(){Qe(t.$$.fragment)},m:function(r,i){Ze(t,r,i),n=!0},p:function(r,i){var o={};12583936&i[0]&&(o.validationError=r[126]),t.$set(o)},i:function(r){n||(X(t.$$.fragment,r),n=!0)},o:function(r){re(t.$$.fragment,r),n=!1},d:function(r){Xe(t,r)}}}function Ise(e){var t,n,r,i,o,a,s,l,c=!e[0]&&e[132]&&!Qa(e[11].selection),u=[yat,bat],f=[];function h(b,v){return 8389632&v[0]&&(n=null),n==null&&(n=!!Mi(b[131])),n?0:1}r=h(e,[-1,-1,-1,-1,-1]),i=f[r]=u[r](e);var p=c&&Nse(e),m=e[126]&&Dse(e);return{c:function(){t=fe("td"),i.c(),o=cr(),p&&p.c(),a=cr(),m&&m.c(),W(t,"class","jse-table-cell svelte-1jkzr9g"),W(t,"data-path",s=ig(e[130])),at(t,"jse-selected-value",e[132])},m:function(b,v){ke(b,t,v),f[r].m(t,null),le(t,o),p&&p.m(t,null),le(t,a),m&&m.m(t,null),l=!0},p:function(b,v){var g=r;(r=h(b,v))===g?f[r].p(b,v):(pt(),re(f[g],1,1,function(){f[g]=null}),mt(),(i=f[r])?i.p(b,v):(i=f[r]=u[r](b)).c(),X(i,1),i.m(t,o)),8391681&v[0]&&(c=!b[0]&&b[132]&&!Qa(b[11].selection)),c?p?(p.p(b,v),8391681&v[0]&&X(p,1)):((p=Nse(b)).c(),X(p,1),p.m(t,a)):p&&(pt(),re(p,1,1,function(){p=null}),mt()),b[126]?m?(m.p(b,v),12583936&v[0]&&X(m,1)):((m=Dse(b)).c(),X(m,1),m.m(t,null)):m&&(pt(),re(m,1,1,function(){m=null}),mt()),(!l||8389632&v[0]&&s!==(s=ig(b[130])))&&W(t,"data-path",s),(!l||8391680&v[0])&&at(t,"jse-selected-value",b[132])},i:function(b){l||(X(i),X(p),X(m),l=!0)},o:function(b){re(i),re(p),re(m),l=!1},d:function(b){b&&Ee(t),f[r].d(),p&&p.d(),m&&m.d()}}}function Lse(e){var t;return{c:function(){W(t=fe("td"),"class","jse-table-cell svelte-1jkzr9g")},m:function(n,r){ke(n,t,r)},d:function(n){n&&Ee(t)}}}function Bse(e){for(var t,n,r,i,o=e[124],a=Ase(e),s=kn(e[10]),l=[],c=0;c<s.length;c+=1)l[c]=Ise(kse(e,s,c));var u=function(h){return re(l[h],1,1,function(){l[h]=null})},f=e[24]&&Lse();return{c:function(){t=fe("tr"),a.c(),n=Ve();for(var h=0;h<l.length;h+=1)l[h].c();r=Ve(),f&&f.c(),W(t,"class","jse-table-row svelte-1jkzr9g")},m:function(h,p){ke(h,t,p),a.m(t,null),le(t,n);for(var m=0;m<l.length;m+=1)l[m]&&l[m].m(t,null);le(t,r),f&&f.m(t,null),i=!0},p:function(h,p){if(8388608&p[0]&&Pn(o,o=h[124])?(pt(),re(a,1,1,gt),mt(),(a=Ase(h)).c(),X(a,1),a.m(t,n)):a.p(h,p),148900869&p[0]|513&p[1]){var m;for(s=kn(h[10]),m=0;m<s.length;m+=1){var b=kse(h,s,m);l[m]?(l[m].p(b,p),X(l[m],1)):(l[m]=Ise(b),l[m].c(),X(l[m],1),l[m].m(t,r))}for(pt(),m=s.length;m<l.length;m+=1)u(m);mt()}h[24]?f||((f=Lse()).c(),f.m(t,null)):f&&(f.d(1),f=null)},i:function(h){if(!i){X(a);for(var p=0;p<s.length;p+=1)X(l[p]);i=!0}},o:function(h){re(a),l=l.filter(Boolean);for(var p=0;p<l.length;p+=1)re(l[p]);i=!1},d:function(h){h&&Ee(t),a.d(h),Qi(l,h),f&&f.d()}}}function Fse(e){var t,n;return t=new Oc({props:{type:"info",message:"You pasted a JSON ".concat(Array.isArray(e[18].contents)?"array":"object"," as text"),actions:[{icon:rx,text:"Paste as JSON instead",title:"Paste the text as JSON instead of a single value",onMouseDown:e[34]},{text:"Leave as is",title:"Keep the pasted content as a single value",onClick:e[35]}]}}),{c:function(){Qe(t.$$.fragment)},m:function(r,i){Ze(t,r,i),n=!0},p:function(r,i){var o={};262144&i[0]&&(o.message="You pasted a JSON ".concat(Array.isArray(r[18].contents)?"array":"object"," as text")),t.$set(o)},i:function(r){n||(X(t.$$.fragment,r),n=!0)},o:function(r){re(t.$$.fragment,r),n=!1},d:function(r){Xe(t,r)}}}function zse(e){var t,n;return t=new Oc({props:{type:"success",message:"The loaded JSON document was invalid but is successfully repaired.",actions:e[0]?[]:[{icon:rb,text:"Ok",title:"Accept the repaired document",onClick:e[7]},{icon:lf,text:"Repair manually instead",title:"Leave the document unchanged and repair it manually instead",onClick:e[36]}],onClose:e[6]}}),{c:function(){Qe(t.$$.fragment)},m:function(r,i){Ze(t,r,i),n=!0},p:function(r,i){var o={};1&i[0]&&(o.actions=r[0]?[]:[{icon:rb,text:"Ok",title:"Accept the repaired document",onClick:r[7]},{icon:lf,text:"Repair manually instead",title:"Leave the document unchanged and repair it manually instead",onClick:r[36]}]),t.$set(o)},i:function(r){n||(X(t.$$.fragment,r),n=!0)},o:function(r){re(t.$$.fragment,r),n=!1},d:function(r){Xe(t,r)}}}function xat(e){var t,n,r,i,o,a,s,l=e[1]&&Tse(e),c=[pat,hat],u=[];return r=function(f,h){return f[26]?1:0}(e),i=u[r]=c[r](e),{c:function(){t=fe("div"),l&&l.c(),n=Ve(),i.c(),W(t,"role","table"),W(t,"class","jse-table-mode svelte-1jkzr9g"),at(t,"no-main-menu",!e[1])},m:function(f,h){ke(f,t,h),l&&l.m(t,null),le(t,n),u[r].m(t,null),e[77](t),o=!0,a||(s=[ut(t,"mousedown",e[30]),ut(t,"keydown",e[37]),ut(t,"contextmenu",e[32])],a=!0)},p:function(f,h){f[1]?l?(l.p(f,h),2&h[0]&&X(l,1)):((l=Tse(f)).c(),X(l,1),l.m(t,n)):l&&(pt(),re(l,1,1,function(){l=null}),mt()),i.p(f,h),(!o||2&h[0])&&at(t,"no-main-menu",!f[1])},i:function(f){o||(X(l),X(i),o=!0)},o:function(f){re(l),re(i),o=!1},d:function(f){f&&Ee(t),l&&l.d(),u[r].d(),e[77](null),a=!1,Zr(s)}}}var Ey=18;function wat(e,t,n){var r,i,o,a,s=ha("jsoneditor:TableMode"),l=fa("simple-modal").open,c=fa("absolute-popup"),u=c.openAbsolutePopup,f=c.closeAbsolutePopup,h=loe(),p=p1(),m=p1(),b=typeof window>"u";s("isSSR:",b);var v,g,x,w,y,C,_=t.readOnly,S=t.externalContent,E=t.externalSelection,$=t.mainMenuBar,k=t.escapeControlCharacters,P=t.escapeUnicodeCharacters,T=t.flattenColumns,j=t.parser,M=t.parseMemoizeOne,B=t.validator,V=t.validationParser,R=t.indentation,I=t.onChange,G=t.onChangeMode,F=t.onSelect,z=t.onRenderValue,A=t.onRenderMenu,L=t.onRenderContextMenu,N=t.onFocus,q=t.onBlur,oe=t.onSortModal,ee=t.onTransformModal,be=t.onJSONEditorModal;kj({onMount:Vl,onDestroy:ll,getWindow:function(){return rg(g)},hasFocus:function(){return U&&document.hasFocus()||ej(g)},onFocus:function(){N&&N()},onBlur:function(){q&&q()}});var H,O=void 0,D=1e4,ae=[],U=!1,Y={},ye=600,ue=0;function Ce(ie){s("updateSelection",ie);var Ie=typeof ie=="function"?ie(de.selection)||null:ie;lr(Ie,de.selection)||(n(11,de=qe(qe({},de),{},{selection:Ie})),F(Ie))}function he(ie){de.selection&&ie!==void 0&&(Ml(ie,$p(de.selection))&&Ml(ie,un(de.selection))||(s("clearing selection: path does not exist anymore",de.selection),n(11,de=qe(qe({},de),{},{selection:null}))))}var de=cw(),ve=!1,Oe,Le=coe({onChange:function(ie){n(20,Ge=ie)}}),Ge=Le.getState();function ne(ie){var Ie=y,st=ng(ie)?ie.text!==C:!lr(Ie,ie.json);if(s("update external content",{isChanged:st}),st){var bt={json:y,text:C},St=y,dn=de,It=C,On=ve;if(ng(ie))try{n(8,y=M(ie.text)),n(16,C=ie.text),n(19,ve=!1),n(17,O=void 0)}catch(Xt){try{n(8,y=M(yu(ie.text))),n(16,C=ie.text),n(19,ve=!0),n(17,O=void 0)}catch{n(8,y=void 0),n(16,C=ie.text),n(19,ve=!1),n(17,O=C!==""?tg(C,Xt.message||String(Xt)):void 0)}}else n(8,y=ie.json),n(16,C=void 0),n(19,ve=!1),n(17,O=void 0);he(y),de.sortedColumn&&n(11,de=qe(qe({},de),{},{sortedColumn:null})),Te({previousJson:St,previousState:dn,previousText:It,previousTextIsRepaired:On}),it(bt,null)}}function Te(ie){var Ie=ie.previousJson,st=ie.previousState,bt=ie.previousText,St=ie.previousTextIsRepaired;Ie===void 0&&bt===void 0||(y!==void 0?Ie!==void 0?Le.add({undo:{patch:[{op:"replace",path:"",value:Ie}],state:Xa(st),json:void 0,text:bt,textIsRepaired:St},redo:{patch:[{op:"replace",path:"",value:y}],state:Xa(de),json:void 0,text:C,textIsRepaired:ve}}):Le.add({undo:{patch:void 0,json:void 0,text:bt,state:Xa(st),textIsRepaired:St},redo:{patch:void 0,json:y,state:Xa(de),text:C,textIsRepaired:ve}}):Ie!==void 0&&Le.add({undo:{patch:void 0,json:Ie,state:Xa(st),text:bt,textIsRepaired:St},redo:{patch:void 0,json:void 0,text:C,textIsRepaired:ve,state:Xa(de)}}))}var J=[],Z=ib(uoe);function ce(ie,Ie,st,bt){hg(function(){var St;try{St=Z(ie,Ie,st,bt)}catch(dn){St=[{path:[],message:"Failed to validate: "+dn.message,severity:z0.warning}]}lr(St,J)||(s("validationErrors changed:",St),n(12,J=St))},function(St){return s("validationErrors updated in ".concat(St," ms"))})}function _e(){return s("validate"),O?{parseError:O,isRepairable:!1}:(ce(y,B,j,V),kr(J)?null:{validationErrors:J})}function $e(ie,Ie){if(s("patch",ie,Ie),y===void 0)throw new Error("Cannot apply patch: no JSON");var st={json:y},bt=y,St=de,dn=ve,It=iie(y,ie),On=Bre(y,de,ie).json,Xt=Fit(de,ie,ae),tn=typeof Ie=="function"?Ie(On,Xt):void 0;n(8,y=tn&&tn.json!==void 0?tn.json:On);var er=tn&&tn.state!==void 0?tn.state:Xt;n(11,de=er),n(16,C=void 0),n(19,ve=!1),n(18,H=void 0),n(17,O=void 0),Le.add({undo:{patch:It,json:void 0,text:void 0,state:Xa(St),textIsRepaired:dn},redo:{patch:ie,json:void 0,state:Xa(er),text:void 0,textIsRepaired:ve}});var Rr={json:y,previousJson:bt,undo:It,redo:ie};return it(st,Rr),Rr}function Ne(ie,Ie){return _?{json:y,previousJson:y,redo:[],undo:[]}:$e(ie,Ie)}function it(ie,Ie){(ie.json!==void 0||(ie==null?void 0:ie.text)!==void 0)&&I&&(C!==void 0?I({text:C,json:void 0},ie,{contentErrors:_e(),patchResult:Ie}):y!==void 0&&I({text:void 0,json:y},ie,{contentErrors:_e(),patchResult:Ie}))}function Je(ie){s("handleFind",ie)}function ft(ie){s("pasted json as text",ie),n(18,H=ie)}function Wt(ie){var Ie=parseInt(ie[0],10),st=[String(Ie+1)].concat(Yn(ie.slice(1)));return Ml(y,st)?Xn(st,!1):Xn(ie,!1)}function pe(){s("focus"),w&&(w.focus(),w.select())}function Re(){de.selection||Ce(!Qr(y)||kr(y)||kr(ae)?null:Xn(["0"].concat(Yn(ae[0])),!1))}function Ke(ie){var Ie=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],st=Ij(ie,ae,Y,Ey),bt=st-ue,St=je(ie);if(s("scrollTo",{path:ie,top:st,scrollTop:ue,elem:St}),!x)return Promise.resolve();var dn=x.getBoundingClientRect();if(St&&!Ie){var It=St.getBoundingClientRect();if(It.bottom>dn.top&&It.top<dn.bottom)return Promise.resolve()}var On=-dn.height/4;return new Promise(St?function(Xt){h(St,{container:x,offset:On,duration:300,callback:function(){_t(ie),Xt()}})}:function(Xt){var tn;h(bt,{container:x,offset:On,duration:300,callback:(tn=Dn(kt().mark(function er(){return kt().wrap(function(Rr){for(;;)switch(Rr.prev=Rr.next){case 0:return Rr.next=2,eo();case 2:if(Ij(ie,ae,Y,Ey)===st){Rr.next=8;break}return Rr.next=6,Ke(ie,Ie);case 6:Rr.next=9;break;case 8:_t(ie);case 9:Xt();case 10:case"end":return Rr.stop()}},er)})),function(){return tn.apply(this,arguments)})})})}function _t(ie){var Ie=je(ie);if(Ie&&x){var st=x.getBoundingClientRect(),bt=Ie.getBoundingClientRect();if(bt.right>st.right){var St=bt.right-st.right;n(14,x.scrollLeft+=St,x)}if(bt.left<st.left){var dn=st.left-bt.left;n(14,x.scrollLeft-=dn,x)}}}function yt(ie){(function(Ie){if(x){var st=Kl(Ie,ae).rowIndex,bt=Ij(Ie,ae,Y,Ey),St=bt+(Y[st]||Ey),dn=x.getBoundingClientRect(),It=ue,On=ue+dn.height-18;if(St>On){var Xt=St-On;n(14,x.scrollTop+=Xt,x)}if(bt<It){var tn=It-bt;n(14,x.scrollTop-=tn,x)}}})(ie),_t(ie)}function je(ie){return x?x.querySelector('td[data-path="'.concat(ig(ie),'"]')):null}function et(ie){var Ie=ie.anchor,st=ie.left,bt=ie.top,St=ie.width,dn=ie.height,It=ie.offsetTop,On=ie.offsetLeft,Xt=ie.showTip;U=!0;var tn=u(Qot,{json:y,documentState:de,parser:j,showTip:Xt,onEditValue:vt,onEditRow:ze,onToggleEnforceString:ct,onCut:lt,onCopy:Be,onPaste:Ye,onRemove:dt,onDuplicateRow:K,onInsertBeforeRow:te,onInsertAfterRow:we,onRemoveRow:Me,onRenderContextMenu:L,onCloseContextMenu:function(){f(tn),pe()}},{left:st,top:bt,offsetTop:It,offsetLeft:On,width:St,height:dn,anchor:Ie,closeOnOuterClick:!0,onClose:function(){U=!1,pe()}})}function ht(ie){if(!_&&!Qa(de.selection)){if(ie&&(ie.stopPropagation(),ie.preventDefault()),ie&&ie.type==="contextmenu"&&ie.target!==w)et({left:ie.clientX,top:ie.clientY,width:U0,height:H0,showTip:!1});else{var Ie,st=(Ie=x)===null||Ie===void 0?void 0:Ie.querySelector(".jse-table-cell.jse-selected-value");if(st)et({anchor:st,offsetTop:2,width:U0,height:H0,showTip:!1});else{var bt,St=(bt=x)===null||bt===void 0?void 0:bt.getBoundingClientRect();St&&et({top:St.top+2,left:St.left+2,width:U0,height:H0,showTip:!1})}}return!1}}function vt(){if(!_&&de.selection){var ie=un(de.selection);Mi(Ht(y,ie))?In(ie):Ce(Xn(ie,!0))}}function ze(){!_&&de.selection&&In(un(de.selection).slice(0,1))}function ct(){if(!_&&ur(de.selection)){var ie=de.selection.path,Ie=Mt(ie),st=Ht(y,ie),bt=!q0(st,de.enforceStringMap,Ie,j),St=bt?String(st):eg(String(st),j);s("handleToggleEnforceString",{enforceString:bt,value:st,updatedValue:St}),Ne([{op:"replace",path:Ie,value:St}],function(dn,It){return{state:Lre(It,Ie,bt)}})}}function Ae(){return(Ae=Dn(kt().mark(function ie(){var Ie,st,bt,St,dn;return kt().wrap(function(It){for(;;)switch(It.prev=It.next){case 0:if(s("apply pasted json",H),H){It.next=3;break}return It.abrupt("return");case 3:bt=(st=H).path,St=st.contents,Sre(dn=((Ie=x)===null||Ie===void 0?void 0:Ie.querySelector(".jse-editable-div"))||null)&&dn.cancel(),Ne([{op:"replace",path:Mt(bt),value:St}]),setTimeout(pe);case 9:case"end":return It.stop()}},ie)}))).apply(this,arguments)}function Ye(){l(xoe,{},qe(qe({},_p),{},{styleWindow:{width:"450px"}}),{onClose:function(){return pe()}})}function lt(ie){return jt.apply(this,arguments)}function jt(){return(jt=Dn(kt().mark(function ie(Ie){return kt().wrap(function(st){for(;;)switch(st.prev=st.next){case 0:return st.next=2,qae({json:y,documentState:de,indentation:Ie?R:void 0,readOnly:_,parser:j,onPatch:Ne});case 2:case"end":return st.stop()}},ie)}))).apply(this,arguments)}function Be(){return Tt.apply(this,arguments)}function Tt(){return Tt=Dn(kt().mark(function ie(){var Ie,st=arguments;return kt().wrap(function(bt){for(;;)switch(bt.prev=bt.next){case 0:if(Ie=!(st.length>0&&st[0]!==void 0)||st[0],y!==void 0){bt.next=3;break}return bt.abrupt("return");case 3:return bt.next=5,Gae({json:y,documentState:de,indentation:Ie?R:void 0,parser:j});case 5:case"end":return bt.stop()}},ie)})),Tt.apply(this,arguments)}function dt(){Yae({json:y,text:C,documentState:de,keepSelection:!0,readOnly:_,onChange:I,onPatch:Ne})}function K(){zit({json:y,documentState:de,columns:ae,readOnly:_,onPatch:Ne})}function te(){Vit({json:y,documentState:de,columns:ae,readOnly:_,onPatch:Ne})}function we(){Hit({json:y,documentState:de,columns:ae,readOnly:_,onPatch:Ne})}function Me(){Uit({json:y,documentState:de,columns:ae,readOnly:_,onPatch:Ne})}function We(){return(We=Dn(kt().mark(function ie(Ie){return kt().wrap(function(st){for(;;)switch(st.prev=st.next){case 0:return st.next=2,Zae({char:Ie,selectInside:!1,refJsonEditor:g,json:y,selection:de.selection,readOnly:_,parser:j,onPatch:Ne,onReplaceJson:Ct,onSelect:Ce});case 2:case"end":return st.stop()}},ie)}))).apply(this,arguments)}function Ct(ie,Ie){var st=de,bt=y,St=C,dn={json:y,text:C},It=ve,On=Wl(y,de,[],Bu),Xt=typeof Ie=="function"?Ie(ie,On):void 0;n(8,y=Xt&&Xt.json!==void 0?Xt.json:ie),n(11,de=Xt&&Xt.state!==void 0?Xt.state:On),n(16,C=void 0),n(19,ve=!1),n(17,O=void 0),he(y),Te({previousJson:bt,previousState:st,previousText:St,previousTextIsRepaired:It}),it(dn,null)}function Lt(ie,Ie){s("handleChangeText");var st=de,bt=y,St=C,dn={json:y,text:C},It=ve;try{n(8,y=M(ie)),n(11,de=Wl(y,de,[],Bu)),n(16,C=void 0),n(19,ve=!1),n(17,O=void 0)}catch(Xt){try{n(8,y=M(yu(ie))),n(11,de=Wl(y,de,[],Bu)),n(16,C=ie),n(19,ve=!0),n(17,O=void 0)}catch{n(8,y=void 0),n(11,de=cw({json:y,expand:Bu})),n(16,C=ie),n(19,ve=!1),n(17,O=C!==""?tg(C,Xt.message||String(Xt)):void 0)}}if(typeof Ie=="function"){var On=Ie(y,de);n(8,y=On&&On.json?On.json:y),n(11,de=On&&On.state?On.state:de)}he(y),Te({previousJson:bt,previousState:st,previousText:St,previousTextIsRepaired:It}),it(dn,null)}function bn(ie){if(y!==void 0){var Ie=ie.id,st=ie.onTransform,bt=ie.onClose,St=ie.rootPath||[];U=!0,ee({id:Ie||m,json:y,rootPath:St||[],onTransform:function(dn){st?st({operations:dn,json:y,transformedJson:vc(y,dn)}):(s("onTransform",St,dn),Ne(dn))},onClose:function(){U=!1,pe(),bt&&bt()}})}}function In(ie){s("openJSONEditorModal",{path:ie}),U=!0,be({content:{json:Ht(y,ie)},path:ie,onPatch:Oe.onPatch,onClose:function(){U=!1,pe()}})}function Zn(ie,Ie){l(joe,{text:ie,onParse:function(st){return aw(st,function(bt){return cy(bt,j)})},onRepair:ure,onApply:Ie},qe(qe({},_p),{},{styleWindow:{width:"600px",height:"500px"},styleContent:{padding:0,height:"100%"}}),{onClose:function(){return pe()}})}function yn(){if(!_&&Le.getState().canUndo){var ie=Le.undo();if(ie){var Ie={json:y,text:C};n(8,y=ie.undo.patch?vc(y,ie.undo.patch):ie.undo.json),n(11,de=ie.undo.state),n(16,C=ie.undo.text),n(19,ve=ie.undo.textIsRepaired),n(17,O=void 0),s("undo",{item:ie,json:y}),it(Ie,ie.undo.patch&&ie.redo.patch?{json:y,previousJson:Ie.json,redo:ie.undo.patch,undo:ie.redo.patch}:null),pe(),de.selection&&Ke(un(de.selection),!1)}}}function Un(){if(!_&&Le.getState().canRedo){var ie=Le.redo();if(ie){var Ie={json:y,text:C};n(8,y=ie.redo.patch?vc(y,ie.redo.patch):ie.redo.json),n(11,de=ie.redo.state),n(16,C=ie.redo.text),n(19,ve=ie.redo.textIsRepaired),n(17,O=void 0),s("redo",{item:ie,json:y}),it(Ie,ie.undo.patch&&ie.redo.patch?{json:y,previousJson:Ie.json,redo:ie.redo.patch,undo:ie.undo.patch}:null),pe(),de.selection&&Ke(un(de.selection),!1)}}}function He(ie,Ie){n(70,Y[Ie]=ie.getBoundingClientRect().height,Y)}return e.$$set=function(ie){"readOnly"in ie&&n(0,_=ie.readOnly),"externalContent"in ie&&n(47,S=ie.externalContent),"externalSelection"in ie&&n(48,E=ie.externalSelection),"mainMenuBar"in ie&&n(1,$=ie.mainMenuBar),"escapeControlCharacters"in ie&&n(49,k=ie.escapeControlCharacters),"escapeUnicodeCharacters"in ie&&n(50,P=ie.escapeUnicodeCharacters),"flattenColumns"in ie&&n(51,T=ie.flattenColumns),"parser"in ie&&n(2,j=ie.parser),"parseMemoizeOne"in ie&&n(52,M=ie.parseMemoizeOne),"validator"in ie&&n(53,B=ie.validator),"validationParser"in ie&&n(54,V=ie.validationParser),"indentation"in ie&&n(3,R=ie.indentation),"onChange"in ie&&n(55,I=ie.onChange),"onChangeMode"in ie&&n(4,G=ie.onChangeMode),"onSelect"in ie&&n(56,F=ie.onSelect),"onRenderValue"in ie&&n(57,z=ie.onRenderValue),"onRenderMenu"in ie&&n(5,A=ie.onRenderMenu),"onRenderContextMenu"in ie&&n(58,L=ie.onRenderContextMenu),"onFocus"in ie&&n(59,N=ie.onFocus),"onBlur"in ie&&n(60,q=ie.onBlur),"onSortModal"in ie&&n(61,oe=ie.onSortModal),"onTransformModal"in ie&&n(62,ee=ie.onTransformModal),"onJSONEditorModal"in ie&&n(63,be=ie.onJSONEditorModal)},e.$$.update=function(){786432&e.$$.dirty[1]&&n(69,v=XO({escapeControlCharacters:k,escapeUnicodeCharacters:P})),65536&e.$$.dirty[1]&&ne(S),131072&e.$$.dirty[1]&&function(ie){lr(de.selection,ie)||(s("applyExternalSelection",ie),(fj(ie)||ie===null)&&Ce(ie))}(E),1792&e.$$.dirty[0]|1048576&e.$$.dirty[1]&&n(10,ae=Qr(y)?function(ie,Ie){var st,bt=new Set(Ie.map(Mt)),St=new Set(ie.map(Mt)),dn=ny(bt);try{for(dn.s();!(st=dn.n()).done;){var It=st.value;St.has(It)||bt.delete(It)}}catch(er){dn.e(er)}finally{dn.f()}var On,Xt=ny(St);try{for(Xt.s();!(On=Xt.n()).done;){var tn=On.value;bt.has(tn)||bt.add(tn)}}catch(er){Xt.e(er)}finally{Xt.f()}return Yn(bt).map(gc)}(Dit(y,T,D),ae):[]),1280&e.$$.dirty[0]&&n(25,r=y&&!kr(ae)),768&e.$$.dirty[0]&&n(24,i=Array.isArray(y)&&y.length>D),256&e.$$.dirty[0]|1792&e.$$.dirty[2]&&n(23,o=Iit(ue,ye,y,Y,Ey)),256&e.$$.dirty[0]&&x&&x.scrollTo({top:x.scrollTop,left:x.scrollLeft}),2309&e.$$.dirty[0]|67108864&e.$$.dirty[1]|128&e.$$.dirty[2]&&n(21,Oe={readOnly:_,parser:j,normalization:v,getJson:function(){return y},getDocumentState:function(){return de},findElement:je,findNextInside:Wt,focus:pe,onPatch:Ne,onSelect:Ce,onFind:Je,onPasteJson:ft,onRenderValue:z}),260&e.$$.dirty[0]|12582912&e.$$.dirty[1]&&ce(y,B,j,V),5120&e.$$.dirty[0]&&n(22,a=Lit(J,ae))},[_,$,j,R,G,A,pe,function(){if(ve&&y!==void 0){var ie=de,Ie=y,st=C,bt={json:y,text:C},St=ve;n(16,C=void 0),n(19,ve=!1),he(y),Te({previousJson:Ie,previousState:ie,previousText:st,previousTextIsRepaired:St}),it(bt,null)}return{json:y,text:C}},y,D,ae,de,J,g,x,w,C,O,H,ve,Ge,Oe,a,o,i,r,b,void 0,function(ie){if(!_){s("onSortByHeader",ie);var Ie=ie.sortDirection===Ul.desc?-1:1;Ne(Rae(y,[],ie.path,Ie),function(st,bt){return{state:qe(qe({},bt),{},{sortedColumn:ie})}})}},function(ie){n(72,ue=ie.target.scrollTop)},function(ie){var Ie=ie.target,st=_re(Ie);if(st){if(Qa(de.selection)&&gy(y,de.selection,st))return;Ce(Xn(st,!1)),ie.preventDefault()}JO(Ie,"BUTTON")||Ie.isContentEditable||pe()},et,ht,function(ie){_||et({anchor:Cre(ie.target,"BUTTON"),offsetTop:0,width:U0,height:H0,showTip:!0})},function(){return Ae.apply(this,arguments)},function(){s("clear pasted json"),n(18,H=void 0),pe()},function(){G(Aa.text)},function(ie){var Ie=Mf(ie);if(s("keydown",{combo:Ie,key:ie.key}),Ie==="Ctrl+X"&&(ie.preventDefault(),lt(!0)),Ie==="Ctrl+Shift+X"&&(ie.preventDefault(),lt(!1)),Ie==="Ctrl+C"&&(ie.preventDefault(),Be(!0)),Ie==="Ctrl+Shift+C"&&(ie.preventDefault(),Be(!1)),Ie==="Ctrl+D"&&ie.preventDefault(),Ie!=="Delete"&&Ie!=="Backspace"||(ie.preventDefault(),dt()),Ie==="Insert"&&ie.preventDefault(),Ie==="Ctrl+A"&&ie.preventDefault(),Ie==="Ctrl+Q"&&ht(ie),Ie==="ArrowLeft"&&(ie.preventDefault(),Re(),de.selection)){var st=function(Xt,tn){var er=Kl(un(tn),Xt),Rr=er.rowIndex,qr=er.columnIndex;return qr>0?Xn(Mp({rowIndex:Rr,columnIndex:qr-1},Xt),!1):tn}(ae,de.selection);Ce(st),yt(un(st))}if(Ie==="ArrowRight"&&(ie.preventDefault(),Re(),de.selection)){var bt=function(Xt,tn){var er=Kl(un(tn),Xt),Rr=er.rowIndex,qr=er.columnIndex;return qr<Xt.length-1?Xn(Mp({rowIndex:Rr,columnIndex:qr+1},Xt),!1):tn}(ae,de.selection);Ce(bt),yt(un(bt))}if(Ie==="ArrowUp"&&(ie.preventDefault(),Re(),de.selection)){var St=function(Xt,tn){var er=Kl(un(tn),Xt),Rr=er.rowIndex,qr=er.columnIndex;return Rr>0?Xn(Mp({rowIndex:Rr-1,columnIndex:qr},Xt),!1):tn}(ae,de.selection);Ce(St),yt(un(St))}if(Ie==="ArrowDown"&&(ie.preventDefault(),Re(),de.selection)){var dn=function(Xt,tn,er){var Rr=Kl(un(er),tn),qr=Rr.rowIndex,pa=Rr.columnIndex;return qr<Xt.length-1?Xn(Mp({rowIndex:qr+1,columnIndex:pa},tn),!1):er}(y,ae,de.selection);Ce(dn),yt(un(dn))}if(Ie==="Enter"&&de.selection&&ur(de.selection)){ie.preventDefault();var It=de.selection.path;Mi(Ht(y,It))?In(It):_||Ce(qe(qe({},de.selection),{},{edit:!0}))}if(Ie.replace(/^Shift\+/,"").length===1&&de.selection)return ie.preventDefault(),void function(Xt){We.apply(this,arguments)}(ie.key);if(Ie==="Ctrl+Enter"&&ur(de.selection)){var On=Ht(y,de.selection.path);iw(On)&&window.open(String(On),"_blank")}Ie==="Escape"&&de.selection&&(ie.preventDefault(),Ce(null)),Ie==="Ctrl+F"&&ie.preventDefault(),Ie==="Ctrl+H"&&ie.preventDefault(),Ie==="Ctrl+Z"&&(ie.preventDefault(),yn()),Ie==="Ctrl+Shift+Z"&&(ie.preventDefault(),Un())},function(ie){var Ie;ie.preventDefault();var st=(Ie=ie.clipboardData)===null||Ie===void 0?void 0:Ie.getData("text/plain");st!==void 0&&Kae({clipboardText:st,json:y,selection:de.selection,readOnly:_,parser:j,onPatch:Ne,onChangeText:Lt,openRepairModal:Zn})},function(ie){s("select validation error",ie),Ce(Xn(ie.path,!1)),Ke(ie.path)},In,function(){(function(ie){_||y===void 0||(U=!0,oe({id:p,json:y,rootPath:ie,onSort:function(Ie){var st=Ie.operations,bt=Ie.itemPath,St=Ie.direction;s("onSort",st,ie,bt,St),Ne(st,function(dn,It){return{state:qe(qe({},It),{},{sortedColumn:{path:bt,sortDirection:St===-1?Ul.desc:Ul.asc}})}})},onClose:function(){U=!1,pe()}}))})([])},function(){bn({rootPath:[]})},yn,Un,function(ie){n(71,ye=ie.getBoundingClientRect().height)},He,S,E,k,P,T,M,B,V,I,F,z,L,N,q,oe,ee,be,_e,$e,Ke,je,bn,v,Y,ye,ue,function(ie){rr[ie?"unshift":"push"](function(){n(15,w=ie)})},function(){return n(9,D=1/0)},function(ie,Ie){return He(Ie,ie)},function(ie){rr[ie?"unshift":"push"](function(){n(14,x=ie)})},function(ie){rr[ie?"unshift":"push"](function(){n(13,g=ie)})}]}var Cat=function(e){function t(n){var r;return Qt(this,t),ln(Jt(r=an(this,t)),n,wat,xat,Pn,{readOnly:0,externalContent:47,externalSelection:48,mainMenuBar:1,escapeControlCharacters:49,escapeUnicodeCharacters:50,flattenColumns:51,parser:2,parseMemoizeOne:52,validator:53,validationParser:54,indentation:3,onChange:55,onChangeMode:4,onSelect:56,onRenderValue:57,onRenderMenu:5,onRenderContextMenu:58,onFocus:59,onBlur:60,onSortModal:61,onTransformModal:62,onJSONEditorModal:63,validate:64,patch:65,focus:6,acceptAutoRepair:7,scrollTo:66,findElement:67,openTransformModal:68},fat,[-1,-1,-1,-1,-1]),r}return sn(t,cn),en(t,[{key:"validate",get:function(){return this.$$.ctx[64]}},{key:"patch",get:function(){return this.$$.ctx[65]}},{key:"focus",get:function(){return this.$$.ctx[6]}},{key:"acceptAutoRepair",get:function(){return this.$$.ctx[7]}},{key:"scrollTo",get:function(){return this.$$.ctx[66]}},{key:"findElement",get:function(){return this.$$.ctx[67]}},{key:"openTransformModal",get:function(){return this.$$.ctx[68]}}]),t}();function _at(e){var t,n,r={externalContent:e[0],externalSelection:e[1],readOnly:e[2],indentation:e[3],mainMenuBar:e[6],navigationBar:e[7],escapeControlCharacters:e[10],escapeUnicodeCharacters:e[11],parser:e[13],parseMemoizeOne:e[14],validator:e[15],validationParser:e[16],pathParser:e[17],onError:e[23],onChange:e[18],onChangeMode:e[19],onSelect:e[20],onRenderValue:e[21],onClassName:e[22],onFocus:e[24],onBlur:e[25],onRenderMenu:e[32],onRenderContextMenu:e[33],onSortModal:e[26],onTransformModal:e[27],onJSONEditorModal:e[28]};return t=new Hj({props:r}),e[49](t),{c:function(){Qe(t.$$.fragment)},m:function(i,o){Ze(t,i,o),n=!0},p:function(i,o){var a={};1&o[0]&&(a.externalContent=i[0]),2&o[0]&&(a.externalSelection=i[1]),4&o[0]&&(a.readOnly=i[2]),8&o[0]&&(a.indentation=i[3]),64&o[0]&&(a.mainMenuBar=i[6]),128&o[0]&&(a.navigationBar=i[7]),1024&o[0]&&(a.escapeControlCharacters=i[10]),2048&o[0]&&(a.escapeUnicodeCharacters=i[11]),8192&o[0]&&(a.parser=i[13]),16384&o[0]&&(a.parseMemoizeOne=i[14]),32768&o[0]&&(a.validator=i[15]),65536&o[0]&&(a.validationParser=i[16]),131072&o[0]&&(a.pathParser=i[17]),8388608&o[0]&&(a.onError=i[23]),262144&o[0]&&(a.onChange=i[18]),524288&o[0]&&(a.onChangeMode=i[19]),1048576&o[0]&&(a.onSelect=i[20]),2097152&o[0]&&(a.onRenderValue=i[21]),4194304&o[0]&&(a.onClassName=i[22]),16777216&o[0]&&(a.onFocus=i[24]),33554432&o[0]&&(a.onBlur=i[25]),2&o[1]&&(a.onRenderMenu=i[32]),4&o[1]&&(a.onRenderContextMenu=i[33]),67108864&o[0]&&(a.onSortModal=i[26]),134217728&o[0]&&(a.onTransformModal=i[27]),268435456&o[0]&&(a.onJSONEditorModal=i[28]),t.$set(a)},i:function(i){n||(X(t.$$.fragment,i),n=!0)},o:function(i){re(t.$$.fragment,i),n=!1},d:function(i){e[49](null),Xe(t,i)}}}function Sat(e){var t,n,r={externalContent:e[0],externalSelection:e[1],readOnly:e[2],mainMenuBar:e[6],escapeControlCharacters:e[10],escapeUnicodeCharacters:e[11],flattenColumns:e[12],parser:e[13],parseMemoizeOne:e[14],validator:e[15],validationParser:e[16],indentation:e[3],onChange:e[18],onChangeMode:e[19],onSelect:e[20],onRenderValue:e[21],onFocus:e[24],onBlur:e[25],onRenderMenu:e[32],onRenderContextMenu:e[33],onSortModal:e[26],onTransformModal:e[27],onJSONEditorModal:e[28]};return t=new Cat({props:r}),e[48](t),{c:function(){Qe(t.$$.fragment)},m:function(i,o){Ze(t,i,o),n=!0},p:function(i,o){var a={};1&o[0]&&(a.externalContent=i[0]),2&o[0]&&(a.externalSelection=i[1]),4&o[0]&&(a.readOnly=i[2]),64&o[0]&&(a.mainMenuBar=i[6]),1024&o[0]&&(a.escapeControlCharacters=i[10]),2048&o[0]&&(a.escapeUnicodeCharacters=i[11]),4096&o[0]&&(a.flattenColumns=i[12]),8192&o[0]&&(a.parser=i[13]),16384&o[0]&&(a.parseMemoizeOne=i[14]),32768&o[0]&&(a.validator=i[15]),65536&o[0]&&(a.validationParser=i[16]),8&o[0]&&(a.indentation=i[3]),262144&o[0]&&(a.onChange=i[18]),524288&o[0]&&(a.onChangeMode=i[19]),1048576&o[0]&&(a.onSelect=i[20]),2097152&o[0]&&(a.onRenderValue=i[21]),16777216&o[0]&&(a.onFocus=i[24]),33554432&o[0]&&(a.onBlur=i[25]),2&o[1]&&(a.onRenderMenu=i[32]),4&o[1]&&(a.onRenderContextMenu=i[33]),67108864&o[0]&&(a.onSortModal=i[26]),134217728&o[0]&&(a.onTransformModal=i[27]),268435456&o[0]&&(a.onJSONEditorModal=i[28]),t.$set(a)},i:function(i){n||(X(t.$$.fragment,i),n=!0)},o:function(i){re(t.$$.fragment,i),n=!1},d:function(i){e[48](null),Xe(t,i)}}}function Eat(e){var t,n,r={externalContent:e[0],externalSelection:e[1],readOnly:e[2],indentation:e[3],tabSize:e[4],mainMenuBar:e[6],statusBar:e[8],askToFormat:e[9],escapeUnicodeCharacters:e[11],parser:e[13],validator:e[15],validationParser:e[16],onChange:e[18],onSelect:e[20],onChangeMode:e[19],onError:e[23],onFocus:e[24],onBlur:e[25],onRenderMenu:e[32],onSortModal:e[26],onTransformModal:e[27]};return t=new Aot({props:r}),e[47](t),{c:function(){Qe(t.$$.fragment)},m:function(i,o){Ze(t,i,o),n=!0},p:function(i,o){var a={};1&o[0]&&(a.externalContent=i[0]),2&o[0]&&(a.externalSelection=i[1]),4&o[0]&&(a.readOnly=i[2]),8&o[0]&&(a.indentation=i[3]),16&o[0]&&(a.tabSize=i[4]),64&o[0]&&(a.mainMenuBar=i[6]),256&o[0]&&(a.statusBar=i[8]),512&o[0]&&(a.askToFormat=i[9]),2048&o[0]&&(a.escapeUnicodeCharacters=i[11]),8192&o[0]&&(a.parser=i[13]),32768&o[0]&&(a.validator=i[15]),65536&o[0]&&(a.validationParser=i[16]),262144&o[0]&&(a.onChange=i[18]),1048576&o[0]&&(a.onSelect=i[20]),524288&o[0]&&(a.onChangeMode=i[19]),8388608&o[0]&&(a.onError=i[23]),16777216&o[0]&&(a.onFocus=i[24]),33554432&o[0]&&(a.onBlur=i[25]),2&o[1]&&(a.onRenderMenu=i[32]),67108864&o[0]&&(a.onSortModal=i[26]),134217728&o[0]&&(a.onTransformModal=i[27]),t.$set(a)},i:function(i){n||(X(t.$$.fragment,i),n=!0)},o:function(i){re(t.$$.fragment,i),n=!1},d:function(i){e[47](null),Xe(t,i)}}}function kat(e){var t,n,r,i,o,a=[Eat,Sat,_at],s=[];function l(c,u){return 32&u[0]&&(t=null),t==null&&(t=!(c[5]!==Aa.text&&String(c[5])!=="code")),t?0:c[5]===Aa.table?1:2}return n=l(e,[-1,-1]),r=s[n]=a[n](e),{c:function(){r.c(),i=cr()},m:function(c,u){s[n].m(c,u),ke(c,i,u),o=!0},p:function(c,u){var f=n;(n=l(c,u))===f?s[n].p(c,u):(pt(),re(s[f],1,1,function(){s[f]=null}),mt(),(r=s[n])?r.p(c,u):(r=s[n]=a[n](c)).c(),X(r,1),r.m(i.parentNode,i))},i:function(c){o||(X(r),o=!0)},o:function(c){re(r),o=!1},d:function(c){c&&Ee(i),s[n].d(c)}}}function $at(e,t,n){var r,i,o,a,s,l,c=t.content,u=t.selection,f=t.readOnly,h=t.indentation,p=t.tabSize,m=t.mode,b=t.mainMenuBar,v=t.navigationBar,g=t.statusBar,x=t.askToFormat,w=t.escapeControlCharacters,y=t.escapeUnicodeCharacters,C=t.flattenColumns,_=t.parser,S=t.parseMemoizeOne,E=t.validator,$=t.validationParser,k=t.pathParser,P=t.insideModal,T=t.onChange,j=t.onChangeMode,M=t.onSelect,B=t.onRenderValue,V=t.onClassName,R=t.onRenderMenu,I=t.onRenderContextMenu,G=t.onError,F=t.onFocus,z=t.onBlur,A=t.onSortModal,L=t.onTransformModal,N=t.onJSONEditorModal,q={type:"separator"};function oe(){return(oe=Dn(kt().mark(function ee(){return kt().wrap(function(be){for(;;)switch(be.prev=be.next){case 0:if(!o){be.next=3;break}return be.next=3,o.refresh();case 3:case"end":return be.stop()}},ee)}))).apply(this,arguments)}return e.$$set=function(ee){"content"in ee&&n(0,c=ee.content),"selection"in ee&&n(1,u=ee.selection),"readOnly"in ee&&n(2,f=ee.readOnly),"indentation"in ee&&n(3,h=ee.indentation),"tabSize"in ee&&n(4,p=ee.tabSize),"mode"in ee&&n(5,m=ee.mode),"mainMenuBar"in ee&&n(6,b=ee.mainMenuBar),"navigationBar"in ee&&n(7,v=ee.navigationBar),"statusBar"in ee&&n(8,g=ee.statusBar),"askToFormat"in ee&&n(9,x=ee.askToFormat),"escapeControlCharacters"in ee&&n(10,w=ee.escapeControlCharacters),"escapeUnicodeCharacters"in ee&&n(11,y=ee.escapeUnicodeCharacters),"flattenColumns"in ee&&n(12,C=ee.flattenColumns),"parser"in ee&&n(13,_=ee.parser),"parseMemoizeOne"in ee&&n(14,S=ee.parseMemoizeOne),"validator"in ee&&n(15,E=ee.validator),"validationParser"in ee&&n(16,$=ee.validationParser),"pathParser"in ee&&n(17,k=ee.pathParser),"insideModal"in ee&&n(34,P=ee.insideModal),"onChange"in ee&&n(18,T=ee.onChange),"onChangeMode"in ee&&n(19,j=ee.onChangeMode),"onSelect"in ee&&n(20,M=ee.onSelect),"onRenderValue"in ee&&n(21,B=ee.onRenderValue),"onClassName"in ee&&n(22,V=ee.onClassName),"onRenderMenu"in ee&&n(35,R=ee.onRenderMenu),"onRenderContextMenu"in ee&&n(36,I=ee.onRenderContextMenu),"onError"in ee&&n(23,G=ee.onError),"onFocus"in ee&&n(24,F=ee.onFocus),"onBlur"in ee&&n(25,z=ee.onBlur),"onSortModal"in ee&&n(26,A=ee.onSortModal),"onTransformModal"in ee&&n(27,L=ee.onTransformModal),"onJSONEditorModal"in ee&&n(28,N=ee.onJSONEditorModal)},e.$$.update=function(){524320&e.$$.dirty[0]&&n(46,a=[{type:"button",text:"text",title:"Switch to text mode (current mode: ".concat(m,")"),className:"jse-group-button jse-first"+(m===Aa.text||m==="code"?" jse-selected":""),onClick:function(){return j(Aa.text)}},{type:"button",text:"tree",title:"Switch to tree mode (current mode: ".concat(m,")"),className:"jse-group-button "+(m===Aa.tree?" jse-selected":""),onClick:function(){return j(Aa.tree)}},{type:"button",text:"table",title:"Switch to table mode (current mode: ".concat(m,")"),className:"jse-group-button jse-last"+(m===Aa.table?" jse-selected":""),onClick:function(){return j(Aa.table)}}]),32&e.$$.dirty[0]|32792&e.$$.dirty[1]&&n(32,s=function(ee){var be=woe(ee[0])?a.concat(ee):a.concat(q,ee);return R(be,{mode:m,modal:P})||be}),34&e.$$.dirty[0]|40&e.$$.dirty[1]&&n(33,l=function(ee){return I(ee,{mode:m,modal:P,selection:u})||ee})},[c,u,f,h,p,m,b,v,g,x,w,y,C,_,S,E,$,k,T,j,M,B,V,G,F,z,A,L,N,r,i,o,s,l,P,R,I,function(ee){if(r)return r.patch(ee);if(i)return i.patch(ee);if(o)return o.patch(ee);throw new Error('Method patch is not available in mode "'.concat(m,'"'))},function(ee){if(r)return r.expand(ee);throw new Error('Method expand is not available in mode "'.concat(m,'"'))},function(ee){if(o)o.openTransformModal(ee);else if(r)r.openTransformModal(ee);else{if(!i)throw new Error('Method transform is not available in mode "'.concat(m,'"'));i.openTransformModal(ee)}},function(){if(o)return o.validate();if(r)return r.validate();if(i)return i.validate();throw new Error('Method validate is not available in mode "'.concat(m,'"'))},function(){return r?r.acceptAutoRepair():c},function(ee){if(r)return r.scrollTo(ee);if(i)return i.scrollTo(ee);throw new Error('Method scrollTo is not available in mode "'.concat(m,'"'))},function(ee){if(r)return r.findElement(ee);if(i)return i.findElement(ee);throw new Error('Method findElement is not available in mode "'.concat(m,'"'))},function(){o?o.focus():r?r.focus():i&&i.focus()},function(){return oe.apply(this,arguments)},a,function(ee){rr[ee?"unshift":"push"](function(){n(31,o=ee)})},function(ee){rr[ee?"unshift":"push"](function(){n(30,i=ee)})},function(ee){rr[ee?"unshift":"push"](function(){n(29,r=ee)})}]}var Vse=function(e){function t(n){var r;return Qt(this,t),ln(Jt(r=an(this,t)),n,$at,kat,No,{content:0,selection:1,readOnly:2,indentation:3,tabSize:4,mode:5,mainMenuBar:6,navigationBar:7,statusBar:8,askToFormat:9,escapeControlCharacters:10,escapeUnicodeCharacters:11,flattenColumns:12,parser:13,parseMemoizeOne:14,validator:15,validationParser:16,pathParser:17,insideModal:34,onChange:18,onChangeMode:19,onSelect:20,onRenderValue:21,onClassName:22,onRenderMenu:35,onRenderContextMenu:36,onError:23,onFocus:24,onBlur:25,onSortModal:26,onTransformModal:27,onJSONEditorModal:28,patch:37,expand:38,transform:39,validate:40,acceptAutoRepair:41,scrollTo:42,findElement:43,focus:44,refresh:45},null,[-1,-1]),r}return sn(t,cn),en(t,[{key:"patch",get:function(){return this.$$.ctx[37]}},{key:"expand",get:function(){return this.$$.ctx[38]}},{key:"transform",get:function(){return this.$$.ctx[39]}},{key:"validate",get:function(){return this.$$.ctx[40]}},{key:"acceptAutoRepair",get:function(){return this.$$.ctx[41]}},{key:"scrollTo",get:function(){return this.$$.ctx[42]}},{key:"findElement",get:function(){return this.$$.ctx[43]}},{key:"focus",get:function(){return this.$$.ctx[44]}},{key:"refresh",get:function(){return this.$$.ctx[45]}}]),t}();function Tat(e){En(e,"svelte-1m3nfgb",'.jse-modal.svelte-1m3nfgb.svelte-1m3nfgb{flex:1;display:flex;flex-direction:column;min-width:0;min-height:0;font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size, 16px);line-height:normal;background:var(--jse-modal-background, #f5f5f5);color:var(--jse-text-color, #4d4d4d)}.jse-modal.svelte-1m3nfgb .svelte-select{--border:var(--jse-svelte-select-border, 1px solid #d8dbdf);--item-is-active-bg:var(--jse-item-is-active-bg, #3883fa);--border-radius:var(--jse-svelte-select-border-radius, 3px);--background:var(--jse-svelte-select-background, #fff);--padding:var(--jse-svelte-select-padding, 0 10px);--multi-select-padding:var(--jse-svelte-select-multi-select-padding, 0 10px);--font-size:var(--jse-svelte-select-font-size, var(--jse-font-size, 16px));--height:36px;--multi-item-height:28px;--multi-item-margin:2px;--multi-item-padding:2px 8px;--multi-item-border-radius:6px;--indicator-top:8px}.jse-modal.svelte-1m3nfgb .jse-modal-contents.svelte-1m3nfgb{flex:1;display:flex;flex-direction:column;padding:20px;overflow:auto;min-width:0;min-height:0}.jse-modal.svelte-1m3nfgb .jse-modal-contents .jse-actions.svelte-1m3nfgb{display:flex;flex-direction:row;justify-content:flex-end;padding-top:var(--jse-padding, 10px)}.jse-modal.svelte-1m3nfgb .jse-modal-contents .jse-actions button.jse-primary.svelte-1m3nfgb{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size, 16px);padding:5px;margin:0;background:var(--jse-button-primary-background, var(--jse-theme-color, #3883fa));color:var(--jse-button-primary-color, #fff);padding:var(--jse-padding, 10px) calc(2 * var(--jse-padding, 10px));border-radius:3px}.jse-modal.svelte-1m3nfgb .jse-modal-contents .jse-actions button.jse-primary.svelte-1m3nfgb:hover{background:var(--jse-button-primary-background-highlight, var(--jse-theme-color-highlight, #5f9dff))}.jse-modal.svelte-1m3nfgb .jse-modal-contents .jse-actions button.jse-primary.svelte-1m3nfgb:disabled{background:var(--jse-button-primary-background-disabled, #9d9d9d)}.bg.jse-modal-bg{width:100%;height:100%;top:0;left:0;background:var(--jse-overlay-background, rgba(0, 0, 0, 0.3))}.bg.jse-modal-bg .jse-modal-window-wrap{margin:0}.bg.jse-modal-bg .jse-modal-window{max-width:90%;margin:4rem auto 2rem auto;border-radius:2px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-sort{width:400px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-transform{width:1200px;height:1200px;max-height:80%;display:flex}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-jsoneditor{width:800px;height:auto;min-height:500px;max-height:calc(100vh - 6rem);display:flex}.bg.jse-modal-bg .jse-modal-container{flex:1;display:flex;flex-direction:column;padding:0}.jse-modal.jse-jsoneditor-modal.svelte-1m3nfgb .jse-modal-contents.svelte-1m3nfgb{padding-top:0}.jse-modal.jse-jsoneditor-modal.svelte-1m3nfgb .jse-modal-contents .jse-label.svelte-1m3nfgb{font-weight:bold;display:block;box-sizing:border-box}.jse-modal.jse-jsoneditor-modal.svelte-1m3nfgb .jse-modal-contents .jse-label .jse-label-inner.svelte-1m3nfgb{margin-top:calc(2 * var(--jse-padding, 10px));margin-bottom:calc(0.5 * var(--jse-padding, 10px));box-sizing:border-box}.jse-modal.jse-jsoneditor-modal.svelte-1m3nfgb .jse-modal-contents .jse-label .jse-label-inner button.svelte-1m3nfgb{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size, 16px);padding:5px;margin:0;font-weight:bold;padding:0}.jse-modal.jse-jsoneditor-modal.svelte-1m3nfgb .jse-modal-contents .jse-modal-inline-editor.svelte-1m3nfgb{flex:1;min-height:150px;min-width:0;display:flex;--jse-theme-color:var(--jse-modal-editor-theme-color, var(--jse-modal-theme-color, #707070));--jse-theme-color-highlight:var(--jse-modal-editor-theme-color-highlight, var(--jse-modal-theme-color-highlight, #646464))}.jse-modal.jse-jsoneditor-modal.svelte-1m3nfgb .jse-actions.svelte-1m3nfgb{gap:var(--jse-padding, 10px);align-items:center}.jse-modal.jse-jsoneditor-modal.svelte-1m3nfgb .jse-actions .jse-error.svelte-1m3nfgb{flex:1;color:var(--jse-error-color, #ee5341)}.jse-modal.jse-jsoneditor-modal.svelte-1m3nfgb .jse-actions button.jse-secondary.svelte-1m3nfgb{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size, 16px);padding:5px;margin:0;background:var(--jse-button-secondary-background, #d3d3d3);color:var(--jse-button-secondary-color, var(--jse-text-color, #4d4d4d));padding:var(--jse-padding, 10px) calc(2 * var(--jse-padding, 10px));border-radius:3px}.jse-modal.jse-jsoneditor-modal.svelte-1m3nfgb .jse-actions button.jse-secondary.svelte-1m3nfgb:hover{background:var(--jse-button-secondary-background-highlight, #e1e1e1)}.jse-modal.jse-jsoneditor-modal.svelte-1m3nfgb .jse-actions button.jse-secondary.svelte-1m3nfgb:disabled{background:var(--jse-button-secondary-background-disabled, #9d9d9d)}.jse-modal.jse-jsoneditor-modal.svelte-1m3nfgb input.svelte-1m3nfgb{border:var(--jse-input-border, 1px solid #d8dbdf);outline:none;box-sizing:border-box;padding:calc(0.5 * var(--jse-padding, 10px));font-family:var(--jse-font-family-mono, consolas, menlo, monaco, "Ubuntu Mono", "source-code-pro", monospace);font-size:var(--jse-font-size-mono, 14px);color:inherit;background:var(--jse-input-background, var(--jse-background-color, #fff))}.jse-modal.jse-jsoneditor-modal.svelte-1m3nfgb input.svelte-1m3nfgb:focus{border:var(--jse-input-border-focus, 1px solid var(--jse-input-border-focus, var(--jse-theme-color, #3883fa)))}.jse-modal.jse-jsoneditor-modal.svelte-1m3nfgb input.svelte-1m3nfgb:read-only{background:var(--jse-input-background-readonly, transparent)}')}function Hse(e){var t,n;return{c:function(){t=fe("div"),n=Pt(e[22]),W(t,"class","jse-error svelte-1m3nfgb")},m:function(r,i){ke(r,t,i),le(t,n)},p:function(r,i){4194304&i[0]&&mn(n,r[22])},d:function(r){r&&Ee(t)}}}function Use(e){var t,n,r,i,o,a;return n=new gr({props:{data:Ize}}),{c:function(){t=fe("button"),Qe(n.$$.fragment),r=Pt(" Back"),W(t,"type","button"),W(t,"class","jse-secondary svelte-1m3nfgb")},m:function(s,l){ke(s,t,l),Ze(n,t,null),le(t,r),i=!0,o||(a=ut(t,"click",e[27]),o=!0)},p:gt,i:function(s){i||(X(n.$$.fragment,s),i=!0)},o:function(s){re(n.$$.fragment,s),i=!1},d:function(s){s&&Ee(t),Xe(n),o=!1,a()}}}function Rat(e){var t,n,r;return{c:function(){(t=fe("button")).textContent="Close",W(t,"type","button"),W(t,"class","jse-primary svelte-1m3nfgb")},m:function(i,o){ke(i,t,o),n||(r=[ut(t,"click",e[27]),Do(Wse.call(null,t))],n=!0)},p:gt,d:function(i){i&&Ee(t),n=!1,Zr(r)}}}function Pat(e){var t,n,r;return{c:function(){(t=fe("button")).textContent="Apply",W(t,"type","button"),W(t,"class","jse-primary svelte-1m3nfgb")},m:function(i,o){ke(i,t,o),n||(r=[ut(t,"click",e[26]),Do(Wse.call(null,t))],n=!0)},p:gt,d:function(i){i&&Ee(t),n=!1,Zr(r)}}}function Oat(e){var t,n,r,i,o,a,s,l,c,u,f,h,p,m,b,v,g,x,w;n=new Tj({props:{title:"Edit nested content "+(e[20].length>1?" (".concat(e[20].length,")"):""),onClose:e[27]}});var y={mode:e[23].mode,content:e[23].content,selection:e[23].selection,readOnly:e[0],indentation:e[1],tabSize:e[2],statusBar:e[5],askToFormat:e[6],mainMenuBar:e[3],navigationBar:e[4],escapeControlCharacters:e[7],escapeUnicodeCharacters:e[8],flattenColumns:e[9],parser:e[10],parseMemoizeOne:e[24],validator:e[11],validationParser:e[12],pathParser:e[13],insideModal:!0,onError:e[31],onChange:e[28],onChangeMode:e[30],onSelect:e[29],onRenderValue:e[14],onClassName:e[15],onFocus:Yl,onBlur:Yl,onRenderMenu:e[16],onRenderContextMenu:e[17],onSortModal:e[18],onTransformModal:e[19],onJSONEditorModal:e[32]};h=new Vse({props:y}),e[37](h);var C=e[22]&&Hse(e),_=e[20].length>1&&Use(e);function S(k,P){return k[0]?Rat:Pat}var E=S(e),$=E(e);return{c:function(){t=fe("div"),Qe(n.$$.fragment),r=Ve(),i=fe("div"),(o=fe("div")).innerHTML='<div class="jse-label-inner svelte-1m3nfgb">Path</div>',a=Ve(),s=fe("input"),l=Ve(),(c=fe("div")).innerHTML='<div class="jse-label-inner svelte-1m3nfgb">Contents</div>',u=Ve(),f=fe("div"),Qe(h.$$.fragment),p=Ve(),m=fe("div"),C&&C.c(),b=Ve(),_&&_.c(),v=Ve(),$.c(),W(o,"class","jse-label svelte-1m3nfgb"),W(s,"class","jse-path svelte-1m3nfgb"),W(s,"type","text"),s.readOnly=!0,W(s,"title","Selected path"),s.value=e[25],W(c,"class","jse-label svelte-1m3nfgb"),W(f,"class","jse-modal-inline-editor svelte-1m3nfgb"),W(m,"class","jse-actions svelte-1m3nfgb"),W(i,"class","jse-modal-contents svelte-1m3nfgb"),W(t,"class","jse-modal jse-jsoneditor-modal svelte-1m3nfgb")},m:function(k,P){ke(k,t,P),Ze(n,t,null),le(t,r),le(t,i),le(i,o),le(i,a),le(i,s),le(i,l),le(i,c),le(i,u),le(i,f),Ze(h,f,null),le(i,p),le(i,m),C&&C.m(m,null),le(m,b),_&&_.m(m,null),le(m,v),$.m(m,null),g=!0,x||(w=Do(Ow.call(null,t,e[27])),x=!0)},p:function(k,P){var T={};1048576&P[0]&&(T.title="Edit nested content "+(k[20].length>1?" (".concat(k[20].length,")"):"")),n.$set(T),(!g||33554432&P[0]&&s.value!==k[25])&&(s.value=k[25]);var j={};8388608&P[0]&&(j.mode=k[23].mode),8388608&P[0]&&(j.content=k[23].content),8388608&P[0]&&(j.selection=k[23].selection),1&P[0]&&(j.readOnly=k[0]),2&P[0]&&(j.indentation=k[1]),4&P[0]&&(j.tabSize=k[2]),32&P[0]&&(j.statusBar=k[5]),64&P[0]&&(j.askToFormat=k[6]),8&P[0]&&(j.mainMenuBar=k[3]),16&P[0]&&(j.navigationBar=k[4]),128&P[0]&&(j.escapeControlCharacters=k[7]),256&P[0]&&(j.escapeUnicodeCharacters=k[8]),512&P[0]&&(j.flattenColumns=k[9]),1024&P[0]&&(j.parser=k[10]),16777216&P[0]&&(j.parseMemoizeOne=k[24]),2048&P[0]&&(j.validator=k[11]),4096&P[0]&&(j.validationParser=k[12]),8192&P[0]&&(j.pathParser=k[13]),16384&P[0]&&(j.onRenderValue=k[14]),32768&P[0]&&(j.onClassName=k[15]),65536&P[0]&&(j.onRenderMenu=k[16]),131072&P[0]&&(j.onRenderContextMenu=k[17]),262144&P[0]&&(j.onSortModal=k[18]),524288&P[0]&&(j.onTransformModal=k[19]),h.$set(j),k[22]?C?C.p(k,P):((C=Hse(k)).c(),C.m(m,b)):C&&(C.d(1),C=null),k[20].length>1?_?(_.p(k,P),1048576&P[0]&&X(_,1)):((_=Use(k)).c(),X(_,1),_.m(m,v)):_&&(pt(),re(_,1,1,function(){_=null}),mt()),E===(E=S(k))&&$?$.p(k,P):($.d(1),($=E(k))&&($.c(),$.m(m,null)))},i:function(k){g||(X(n.$$.fragment,k),X(h.$$.fragment,k),X(_),g=!0)},o:function(k){re(n.$$.fragment,k),re(h.$$.fragment,k),re(_),g=!1},d:function(k){k&&Ee(t),Xe(n),e[37](null),Xe(h),C&&C.d(),_&&_.d(),$.d(),x=!1,w()}}}function Wse(e){e.focus()}function jat(e,t,n){var r,i,o,a,s,l=ha("jsoneditor:JSONEditorModal"),c=t.content,u=t.path,f=t.onPatch,h=t.readOnly,p=t.indentation,m=t.tabSize,b=t.mainMenuBar,v=t.navigationBar,g=t.statusBar,x=t.askToFormat,w=t.escapeControlCharacters,y=t.escapeUnicodeCharacters,C=t.flattenColumns,_=t.parser,S=t.validator,E=t.validationParser,$=t.pathParser,k=t.onRenderValue,P=t.onClassName,T=t.onRenderMenu,j=t.onRenderContextMenu,M=t.onSortModal,B=t.onTransformModal,V=fa("simple-modal").close,R={mode:F(c),content:c,selection:null,relativePath:u},I=[R],G=void 0;function F(A){return uy(A)&&Qr(A.json)?Aa.table:Aa.tree}function z(){var A,L=((A=or(I))===null||A===void 0?void 0:A.selection)||null;fj(L)&&s.scrollTo(un(L))}return e.$$set=function(A){"content"in A&&n(33,c=A.content),"path"in A&&n(34,u=A.path),"onPatch"in A&&n(35,f=A.onPatch),"readOnly"in A&&n(0,h=A.readOnly),"indentation"in A&&n(1,p=A.indentation),"tabSize"in A&&n(2,m=A.tabSize),"mainMenuBar"in A&&n(3,b=A.mainMenuBar),"navigationBar"in A&&n(4,v=A.navigationBar),"statusBar"in A&&n(5,g=A.statusBar),"askToFormat"in A&&n(6,x=A.askToFormat),"escapeControlCharacters"in A&&n(7,w=A.escapeControlCharacters),"escapeUnicodeCharacters"in A&&n(8,y=A.escapeUnicodeCharacters),"flattenColumns"in A&&n(9,C=A.flattenColumns),"parser"in A&&n(10,_=A.parser),"validator"in A&&n(11,S=A.validator),"validationParser"in A&&n(12,E=A.validationParser),"pathParser"in A&&n(13,$=A.pathParser),"onRenderValue"in A&&n(14,k=A.onRenderValue),"onClassName"in A&&n(15,P=A.onClassName),"onRenderMenu"in A&&n(16,T=A.onRenderMenu),"onRenderContextMenu"in A&&n(17,j=A.onRenderContextMenu),"onSortModal"in A&&n(18,M=A.onSortModal),"onTransformModal"in A&&n(19,B=A.onTransformModal)},e.$$.update=function(){1048576&e.$$.dirty[0]&&n(23,r=or(I)||R),1048576&e.$$.dirty[0]&&n(36,i=I.flatMap(function(A){return A.relativePath})),32&e.$$.dirty[1]&&n(25,o=kr(i)?"(document root)":zs(i)),1024&e.$$.dirty[0]&&n(24,a=ib(_.parse))},[h,p,m,b,v,g,x,w,y,C,_,S,E,$,k,P,T,j,M,B,I,s,G,r,a,o,function(){if(l("handleApply"),!h)try{n(22,G=void 0);var A=r.relativePath,L=r.content,N=[{op:"replace",path:Mt(A),value:fre(L,_).json}];if(I.length>1){var q=fre(I[I.length-2].content,_).json,oe={json:vc(q,N)},ee=qe(qe({},I[I.length-2]||R),{},{content:oe});n(20,I=[].concat(Yn(I.slice(0,I.length-2)),[ee])),eo().then(z)}else f(N),V()}catch(be){n(22,G=String(be))}},function(){l("handleClose"),I.length>1?(n(20,I=sr(I)),eo().then(z),n(22,G=void 0)):V()},function(A){l("handleChange",A);var L=qe(qe({},r),{},{content:A});n(20,I=[].concat(Yn(sr(I)),[L]))},function(A){l("handleChangeSelection",A);var L=qe(qe({},r),{},{selection:A});n(20,I=[].concat(Yn(sr(I)),[L]))},function(A){l("handleChangeMode",A);var L=qe(qe({},r),{},{mode:A});n(20,I=[].concat(Yn(sr(I)),[L]))},function(A){n(22,G=A.toString()),console.error(A)},function(A){var L=A.content,N=A.path;l("handleJSONEditorModal",{content:L,path:N});var q={mode:F(L),content:L,selection:null,relativePath:N};n(20,I=[].concat(Yn(I),[q]))},c,u,f,i,function(A){rr[A?"unshift":"push"](function(){n(21,s=A)})}]}var Mat=function(e){function t(n){var r;return Qt(this,t),ln(Jt(r=an(this,t)),n,jat,Oat,Pn,{content:33,path:34,onPatch:35,readOnly:0,indentation:1,tabSize:2,mainMenuBar:3,navigationBar:4,statusBar:5,askToFormat:6,escapeControlCharacters:7,escapeUnicodeCharacters:8,flattenColumns:9,parser:10,validator:11,validationParser:12,pathParser:13,onRenderValue:14,onClassName:15,onRenderMenu:16,onRenderContextMenu:17,onSortModal:18,onTransformModal:19},Tat,[-1,-1]),r}return sn(t,cn),en(t)}();function Aat(e,t,n){var r=fa("simple-modal");return[r.open,r.close]}var Nat=function(e){function t(n){var r;return Qt(this,t),ln(Jt(r=an(this,t)),n,Aat,null,Pn,{open:0,close:1}),r}return sn(t,cn),en(t,[{key:"open",get:function(){return this.$$.ctx[0]}},{key:"close",get:function(){return this.$$.ctx[1]}}]),t}();function Dat(e){En(e,"svelte-ybuk0j",'.jse-main.svelte-ybuk0j{width:100%;height:100%;min-width:0;min-height:150px;font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size, 16px);line-height:normal;position:relative;display:flex;flex-direction:row}')}function qse(e){var t,n,r={mode:e[1],content:e[0],selection:e[2],readOnly:e[3],indentation:e[4],tabSize:e[5],statusBar:e[8],askToFormat:e[9],mainMenuBar:e[6],navigationBar:e[7],escapeControlCharacters:e[10],escapeUnicodeCharacters:e[11],flattenColumns:e[12],parser:e[13],parseMemoizeOne:e[27],validator:e[14],validationParser:e[15],pathParser:e[16],insideModal:!1,onError:e[21],onChange:e[28],onChangeMode:e[32],onSelect:e[29],onRenderValue:e[17],onClassName:e[18],onFocus:e[30],onBlur:e[31],onRenderMenu:e[19],onRenderContextMenu:e[20],onSortModal:e[34],onTransformModal:e[33],onJSONEditorModal:e[35]};return t=new Vse({props:r}),e[62](t),{c:function(){Qe(t.$$.fragment)},m:function(i,o){Ze(t,i,o),n=!0},p:function(i,o){var a={};2&o[0]&&(a.mode=i[1]),1&o[0]&&(a.content=i[0]),4&o[0]&&(a.selection=i[2]),8&o[0]&&(a.readOnly=i[3]),16&o[0]&&(a.indentation=i[4]),32&o[0]&&(a.tabSize=i[5]),256&o[0]&&(a.statusBar=i[8]),512&o[0]&&(a.askToFormat=i[9]),64&o[0]&&(a.mainMenuBar=i[6]),128&o[0]&&(a.navigationBar=i[7]),1024&o[0]&&(a.escapeControlCharacters=i[10]),2048&o[0]&&(a.escapeUnicodeCharacters=i[11]),4096&o[0]&&(a.flattenColumns=i[12]),8192&o[0]&&(a.parser=i[13]),134217728&o[0]&&(a.parseMemoizeOne=i[27]),16384&o[0]&&(a.validator=i[14]),32768&o[0]&&(a.validationParser=i[15]),65536&o[0]&&(a.pathParser=i[16]),2097152&o[0]&&(a.onError=i[21]),131072&o[0]&&(a.onRenderValue=i[17]),262144&o[0]&&(a.onClassName=i[18]),524288&o[0]&&(a.onRenderMenu=i[19]),1048576&o[0]&&(a.onRenderContextMenu=i[20]),t.$set(a)},i:function(i){n||(X(t.$$.fragment,i),n=!0)},o:function(i){re(t.$$.fragment,i),n=!1},d:function(i){e[62](null),Xe(t,i)}}}function Iat(e){var t,n,r,i,o,a=e[22];function s(u){e[61](u)}var l={};e[25]!==void 0&&(l.open=e[25]),t=new Nat({props:l}),rr.push(function(){return Tc(t,"open",s)});var c=qse(e);return{c:function(){Qe(t.$$.fragment),r=Ve(),i=fe("div"),c.c(),W(i,"class","jse-main svelte-ybuk0j"),at(i,"jse-focus",e[23])},m:function(u,f){Ze(t,u,f),ke(u,r,f),ke(u,i,f),c.m(i,null),o=!0},p:function(u,f){var h={};!n&&33554432&f[0]&&(n=!0,h.open=u[25],$c(function(){return n=!1})),t.$set(h),4194304&f[0]&&Pn(a,a=u[22])?(pt(),re(c,1,1,gt),mt(),(c=qse(u)).c(),X(c,1),c.m(i,null)):c.p(u,f),(!o||8388608&f[0])&&at(i,"jse-focus",u[23])},i:function(u){o||(X(t.$$.fragment,u),X(c),o=!0)},o:function(u){re(t.$$.fragment,u),re(c),o=!1},d:function(u){u&&(Ee(r),Ee(i)),Xe(t,u),c.d(u)}}}function Lat(e){var t,n;return t=new Qne({props:{closeOnEsc:!1,$$slots:{default:[Iat]},$$scope:{ctx:e}}}),{c:function(){Qe(t.$$.fragment)},m:function(r,i){Ze(t,r,i),n=!0},p:function(r,i){var o={};201326591&i[0]|8&i[2]&&(o.$$scope={dirty:i,ctx:r}),t.$set(o)},i:function(r){n||(X(t.$$.fragment,r),n=!0)},o:function(r){re(t.$$.fragment,r),n=!1},d:function(r){Xe(t,r)}}}function Bat(e){for(var t,n,r,i=[{show:(t=e[26])===null||t===void 0?void 0:t.component},ZJe,{closeOnEsc:!1}],o={$$slots:{default:[Lat]},$$scope:{ctx:e}},a=0;a<i.length;a+=1)o=Fs(o,i[a]);return(n=new Qne({props:o})).$on("close",e[36]),{c:function(){Qe(n.$$.fragment)},m:function(s,l){Ze(n,s,l),r=!0},p:function(s,l){var c,u=67108864&l[0]?Hl(i,[{show:(c=s[26])===null||c===void 0?void 0:c.component},i[1],i[2]]):{};201326591&l[0]|8&l[2]&&(u.$$scope={dirty:l,ctx:s}),n.$set(u)},i:function(s){r||(X(n.$$.fragment,s),r=!0)},o:function(s){re(n.$$.fragment,s),r=!1},d:function(s){Xe(n,s)}}}function Fat(e){var t,n;return t=new Rre({props:{$$slots:{default:[Bat]},$$scope:{ctx:e}}}),{c:function(){Qe(t.$$.fragment)},m:function(r,i){Ze(t,r,i),n=!0},p:function(r,i){var o={};268435455&i[0]|8&i[2]&&(o.$$scope={dirty:i,ctx:r}),t.$set(o)},i:function(r){n||(X(t.$$.fragment,r),n=!0)},o:function(r){re(t.$$.fragment,r),n=!1},d:function(r){Xe(t,r)}}}function zat(e,t,n){var r,i,o,a=ha("jsoneditor:JSONEditor"),s=t.content,l=s===void 0?{text:""}:s,c=t.selection,u=c===void 0?null:c,f=t.readOnly,h=f!==void 0&&f,p=t.indentation,m=p===void 0?2:p,b=t.tabSize,v=b===void 0?4:b,g=t.mode,x=g===void 0?Aa.tree:g,w=t.mainMenuBar,y=w===void 0||w,C=t.navigationBar,_=C===void 0||C,S=t.statusBar,E=S===void 0||S,$=t.askToFormat,k=$===void 0||$,P=t.escapeControlCharacters,T=P!==void 0&&P,j=t.escapeUnicodeCharacters,M=j!==void 0&&j,B=t.flattenColumns,V=B===void 0||B,R=t.parser,I=R===void 0?JSON:R,G=t.validator,F=G===void 0?null:G,z=t.validationParser,A=z===void 0?JSON:z,L=t.pathParser,N=L===void 0?{parse:EQe,stringify:zs}:L,q=t.queryLanguages,oe=q===void 0?[TQe]:q,ee=t.queryLanguageId,be=ee===void 0?oe[0].id:ee,H=t.onChangeQueryLanguage,O=H===void 0?Yl:H,D=t.onChange,ae=D===void 0?null:D,U=t.onSelect,Y=U===void 0?Yl:U,ye=t.onRenderValue,ue=ye===void 0?Pet:ye,Ce=t.onClassName,he=Ce===void 0?function(){}:Ce,de=t.onRenderMenu,ve=de===void 0?Yl:de,Oe=t.onRenderContextMenu,Le=Oe===void 0?Yl:Oe,Ge=t.onChangeMode,ne=Ge===void 0?Yl:Ge,Te=t.onError,J=Te===void 0?function(Be){console.error(Be),alert(Be.toString())}:Te,Z=t.onFocus,ce=Z===void 0?Yl:Z,_e=t.onBlur,$e=_e===void 0?Yl:_e,Ne=ly(),it=!1,Je=null,ft=I;function Wt(){return(Wt=Dn(kt().mark(function Be(Tt){var dt;return kt().wrap(function(K){for(;;)switch(K.prev=K.next){case 0:if(a("set"),!(dt=YO(Tt))){K.next=4;break}throw new Error(dt);case 4:n(22,Ne=ly()),n(0,l=Tt);case 6:case"end":return K.stop()}},Be)}))).apply(this,arguments)}function pe(){return(pe=Dn(kt().mark(function Be(Tt){var dt;return kt().wrap(function(K){for(;;)switch(K.prev=K.next){case 0:if(a("update"),!(dt=YO(Tt))){K.next=4;break}throw new Error(dt);case 4:return n(0,l=Tt),K.next=7,eo();case 7:case"end":return K.stop()}},Be)}))).apply(this,arguments)}function Re(){return(Re=Dn(kt().mark(function Be(Tt){var dt;return kt().wrap(function(K){for(;;)switch(K.prev=K.next){case 0:if(!ng(l)){K.next=8;break}K.prev=1,n(0,l={json:I.parse(l.text),text:void 0}),K.next=8;break;case 5:throw K.prev=5,K.t0=K.catch(1),new Error("Cannot apply patch: current document contains invalid JSON");case 8:return dt=i.patch(Tt),K.next=11,eo();case 11:return K.abrupt("return",dt);case 12:case"end":return K.stop()}},Be,null,[[1,5]])}))).apply(this,arguments)}function Ke(){return(Ke=Dn(kt().mark(function Be(Tt){return kt().wrap(function(dt){for(;;)switch(dt.prev=dt.next){case 0:return n(2,u=Tt),dt.next=3,eo();case 3:case"end":return dt.stop()}},Be)}))).apply(this,arguments)}function _t(){return(_t=Dn(kt().mark(function Be(Tt){return kt().wrap(function(dt){for(;;)switch(dt.prev=dt.next){case 0:return i.expand(Tt),dt.next=3,eo();case 3:case"end":return dt.stop()}},Be)}))).apply(this,arguments)}function yt(){return yt=Dn(kt().mark(function Be(){var Tt;return kt().wrap(function(dt){for(;;)switch(dt.prev=dt.next){case 0:return Tt=i.acceptAutoRepair(),dt.next=3,eo();case 3:return dt.abrupt("return",Tt);case 4:case"end":return dt.stop()}},Be)})),yt.apply(this,arguments)}function je(){return(je=Dn(kt().mark(function Be(Tt){return kt().wrap(function(dt){for(;;)switch(dt.prev=dt.next){case 0:return dt.next=2,i.scrollTo(Tt);case 2:case"end":return dt.stop()}},Be)}))).apply(this,arguments)}function et(){return ht.apply(this,arguments)}function ht(){return(ht=Dn(kt().mark(function Be(){return kt().wrap(function(Tt){for(;;)switch(Tt.prev=Tt.next){case 0:return i.focus(),Tt.next=3,eo();case 3:case"end":return Tt.stop()}},Be)}))).apply(this,arguments)}function vt(){return(vt=Dn(kt().mark(function Be(){return kt().wrap(function(Tt){for(;;)switch(Tt.prev=Tt.next){case 0:return Tt.next=2,i.refresh();case 2:case"end":return Tt.stop()}},Be)}))).apply(this,arguments)}function ze(){return(ze=Dn(kt().mark(function Be(Tt){return kt().wrap(function(dt){for(;;)switch(dt.prev=dt.next){case 0:return this.$set(Tt),dt.next=3,eo();case 3:case"end":return dt.stop()}},Be,this)}))).apply(this,arguments)}function ct(){return(ct=Dn(kt().mark(function Be(){return kt().wrap(function(Tt){for(;;)switch(Tt.prev=Tt.next){case 0:return this.$destroy(),Tt.next=3,eo();case 3:case"end":return Tt.stop()}},Be,this)}))).apply(this,arguments)}function Ae(){return(Ae=Dn(kt().mark(function Be(Tt){return kt().wrap(function(dt){for(;;)switch(dt.prev=dt.next){case 0:if(x!==Tt){dt.next=2;break}return dt.abrupt("return");case 2:return n(1,x=Tt),dt.next=5,eo();case 5:return dt.next=7,et();case 7:ne(Tt);case 8:case"end":return dt.stop()}},Be)}))).apply(this,arguments)}function Ye(Be){a("handleChangeQueryLanguage",Be),n(37,be=Be),O(Be)}function lt(Be){var Tt=Be.id,dt=Be.json,K=Be.rootPath,te=Be.onTransform,we=Be.onClose;h||o(pot,{id:Tt,json:dt,rootPath:K,indentation:m,escapeControlCharacters:T,escapeUnicodeCharacters:M,parser:I,parseMemoizeOne:r,validationParser:A,pathParser:N,queryLanguages:oe,queryLanguageId:be,onChangeQueryLanguage:Ye,onRenderValue:ue,onRenderMenu:ve,onRenderContextMenu:Le,onClassName:he,onTransform:te},YJe,{onClose:we})}function jt(Be){var Tt=Be.id,dt=Be.json,K=Be.rootPath,te=Be.onSort,we=Be.onClose;h||o(yot,{id:Tt,json:dt,rootPath:K,onSort:te},KJe,{onClose:we})}return e.$$set=function(Be){"content"in Be&&n(0,l=Be.content),"selection"in Be&&n(2,u=Be.selection),"readOnly"in Be&&n(3,h=Be.readOnly),"indentation"in Be&&n(4,m=Be.indentation),"tabSize"in Be&&n(5,v=Be.tabSize),"mode"in Be&&n(1,x=Be.mode),"mainMenuBar"in Be&&n(6,y=Be.mainMenuBar),"navigationBar"in Be&&n(7,_=Be.navigationBar),"statusBar"in Be&&n(8,E=Be.statusBar),"askToFormat"in Be&&n(9,k=Be.askToFormat),"escapeControlCharacters"in Be&&n(10,T=Be.escapeControlCharacters),"escapeUnicodeCharacters"in Be&&n(11,M=Be.escapeUnicodeCharacters),"flattenColumns"in Be&&n(12,V=Be.flattenColumns),"parser"in Be&&n(13,I=Be.parser),"validator"in Be&&n(14,F=Be.validator),"validationParser"in Be&&n(15,A=Be.validationParser),"pathParser"in Be&&n(16,N=Be.pathParser),"queryLanguages"in Be&&n(38,oe=Be.queryLanguages),"queryLanguageId"in Be&&n(37,be=Be.queryLanguageId),"onChangeQueryLanguage"in Be&&n(39,O=Be.onChangeQueryLanguage),"onChange"in Be&&n(40,ae=Be.onChange),"onSelect"in Be&&n(41,Y=Be.onSelect),"onRenderValue"in Be&&n(17,ue=Be.onRenderValue),"onClassName"in Be&&n(18,he=Be.onClassName),"onRenderMenu"in Be&&n(19,ve=Be.onRenderMenu),"onRenderContextMenu"in Be&&n(20,Le=Be.onRenderContextMenu),"onChangeMode"in Be&&n(42,ne=Be.onChangeMode),"onError"in Be&&n(21,J=Be.onError),"onFocus"in Be&&n(43,ce=Be.onFocus),"onBlur"in Be&&n(44,$e=Be.onBlur)},e.$$.update=function(){if(8193&e.$$.dirty[0]|536870912&e.$$.dirty[1]&&!cQe(I,ft)){if(a("parser changed, recreate editor"),uy(l)){var Be=ft.stringify(l.json);n(0,l={json:Be!==void 0?I.parse(Be):void 0})}n(60,ft=I),n(22,Ne=ly())}if(1&e.$$.dirty[0]){var Tt=YO(l);Tt&&console.error("Error: "+Tt)}8192&e.$$.dirty[0]&&n(27,r=ib(I.parse)),2&e.$$.dirty[0]&&(a("mode changed to",x),x==="code"&&console.warn('Deprecation warning: "code" mode is renamed to "text". Please use mode="text" instead.'))},[l,x,u,h,m,v,y,_,E,k,T,M,V,I,F,A,N,ue,he,ve,Le,J,Ne,it,i,o,Je,r,function(Be,Tt,dt){n(0,l=Be),ae&&ae(Be,Tt,dt)},function(Be){n(2,u=Be),Y(Be)},function(){n(23,it=!0),ce&&ce()},function(){n(23,it=!1),$e&&$e()},function(Be){return Ae.apply(this,arguments)},lt,jt,function(Be){var Tt=Be.content,dt=Be.path,K=Be.onPatch,te=Be.onClose;a("onJSONEditorModal",{content:Tt,path:dt}),n(26,Je={component:Jne(Mat,{content:Tt,path:dt,onPatch:K,readOnly:h,indentation:m,tabSize:v,mainMenuBar:y,navigationBar:_,statusBar:E,askToFormat:k,escapeControlCharacters:T,escapeUnicodeCharacters:M,flattenColumns:V,parser:I,validator:void 0,validationParser:A,pathParser:N,onRenderValue:ue,onClassName:he,onRenderMenu:ve,onRenderContextMenu:Le,onSortModal:jt,onTransformModal:lt}),callbacks:{onClose:te}})},function(){var Be,Tt;(Be=Je)===null||Be===void 0||(Be=Be.callbacks)===null||Be===void 0||(Tt=Be.onClose)===null||Tt===void 0||Tt.call(Be),n(26,Je=null)},be,oe,O,ae,Y,ne,ce,$e,function(){return l},function(Be){return Wt.apply(this,arguments)},function(Be){return pe.apply(this,arguments)},function(Be){return Re.apply(this,arguments)},function(Be){return Ke.apply(this,arguments)},function(Be){return _t.apply(this,arguments)},function(Be){i.transform(Be)},function(){return i.validate()},function(){return yt.apply(this,arguments)},function(Be){return je.apply(this,arguments)},function(Be){return i.findElement(Be)},et,function(){return vt.apply(this,arguments)},function(Be){return ze.apply(this,arguments)},function(){return ct.apply(this,arguments)},ft,function(Be){n(25,o=Be)},function(Be){rr[Be?"unshift":"push"](function(){n(24,i=Be)})}]}var Vat=function(e){function t(n){var r;return Qt(this,t),ln(Jt(r=an(this,t)),n,zat,Fat,Pn,{content:0,selection:2,readOnly:3,indentation:4,tabSize:5,mode:1,mainMenuBar:6,navigationBar:7,statusBar:8,askToFormat:9,escapeControlCharacters:10,escapeUnicodeCharacters:11,flattenColumns:12,parser:13,validator:14,validationParser:15,pathParser:16,queryLanguages:38,queryLanguageId:37,onChangeQueryLanguage:39,onChange:40,onSelect:41,onRenderValue:17,onClassName:18,onRenderMenu:19,onRenderContextMenu:20,onChangeMode:42,onError:21,onFocus:43,onBlur:44,get:45,set:46,update:47,patch:48,select:49,expand:50,transform:51,validate:52,acceptAutoRepair:53,scrollTo:54,findElement:55,focus:56,refresh:57,updateProps:58,destroy:59},Dat,[-1,-1,-1]),r}return sn(t,cn),en(t,[{key:"get",get:function(){return this.$$.ctx[45]}},{key:"set",get:function(){return this.$$.ctx[46]}},{key:"update",get:function(){return this.$$.ctx[47]}},{key:"patch",get:function(){return this.$$.ctx[48]}},{key:"select",get:function(){return this.$$.ctx[49]}},{key:"expand",get:function(){return this.$$.ctx[50]}},{key:"transform",get:function(){return this.$$.ctx[51]}},{key:"validate",get:function(){return this.$$.ctx[52]}},{key:"acceptAutoRepair",get:function(){return this.$$.ctx[53]}},{key:"scrollTo",get:function(){return this.$$.ctx[54]}},{key:"findElement",get:function(){return this.$$.ctx[55]}},{key:"focus",get:function(){return this.$$.ctx[56]}},{key:"refresh",get:function(){return this.$$.ctx[57]}},{key:"updateProps",get:function(){return this.$$.ctx[58]}},{key:"destroy",get:function(){return this.$$.ctx[59]}}]),t}();function Hat(e){En(e,"svelte-9wp3tj",".jse-value.jse-string.svelte-9wp3tj{color:var(--jse-value-color-string, #008000)}.jse-value.jse-object.svelte-9wp3tj,.jse-value.jse-array.svelte-9wp3tj{min-width:16px;color:var(--jse-delimiter-color, rgba(0, 0, 0, 0.38))}.jse-value.jse-number.svelte-9wp3tj{color:var(--jse-value-color-number, #ee422e)}.jse-value.jse-boolean.svelte-9wp3tj{color:var(--jse-value-color-boolean, #ff8c00)}.jse-value.jse-null.svelte-9wp3tj{color:var(--jse-value-color-null, #004ed0)}.jse-value.jse-invalid.svelte-9wp3tj{color:var(--jse-text-color, #4d4d4d)}.jse-value.jse-url.svelte-9wp3tj{color:var(--jse-value-color-url, #008000);text-decoration:underline}.jse-enum-value.svelte-9wp3tj{background:var(--jse-hover-background-color, rgba(0, 0, 0, 0.06));border:none;padding:0;font-family:inherit;font-size:inherit;cursor:pointer;outline:none}.jse-enum-value.jse-selected.svelte-9wp3tj{background:var(--jse-selection-background-color, #d3d3d3);color:inherit}.jse-enum-value.jse-value.svelte-9wp3tj:focus{color:var(--jse-text-color, #4d4d4d)}.jse-json-node.jse-selected .jse-enum-value.svelte-9wp3tj{background:transparent}")}function Gse(e,t,n){var r=e.slice();return r[13]=t[n],r}function Kse(e){var t,n,r,i=e[13].text+"";return{c:function(){t=fe("option"),n=Pt(i),t.__value=r=e[13].value,Iu(t,t.__value)},m:function(o,a){ke(o,t,a),le(t,n)},p:function(o,a){4&a&&i!==(i=o[13].text+"")&&mn(n,i),4&a&&r!==(r=o[13].value)&&(t.__value=r,Iu(t,t.__value))},d:function(o){o&&Ee(t)}}}function Uat(e){for(var t,n,r,i,o=kn(e[2]),a=[],s=0;s<o.length;s+=1)a[s]=Kse(Gse(e,o,s));return{c:function(){t=fe("select");for(var l=0;l<a.length;l+=1)a[l].c();W(t,"class",n=xi("jse-enum-value ".concat(vy(e[4],e[0])))+" svelte-9wp3tj"),e[4]===void 0&&xp(function(){return e[10].call(t)}),at(t,"jse-selected",ur(e[1]))},m:function(l,c){ke(l,t,c);for(var u=0;u<a.length;u+=1)a[u]&&a[u].m(t,null);zne(t,e[4],!0),e[11](t),r||(i=[ut(t,"change",e[10]),ut(t,"change",e[5]),ut(t,"mousedown",Wat)],r=!0)},p:function(l,c){var u=Sn(c,1)[0];if(4&u){var f;for(o=kn(l[2]),f=0;f<o.length;f+=1){var h=Gse(l,o,f);a[f]?a[f].p(h,u):(a[f]=Kse(h),a[f].c(),a[f].m(t,null))}for(;f<a.length;f+=1)a[f].d(1);a.length=o.length}17&u&&n!==(n=xi("jse-enum-value ".concat(vy(l[4],l[0])))+" svelte-9wp3tj")&&W(t,"class",n),16&u&&zne(t,l[4]),19&u&&at(t,"jse-selected",ur(l[1]))},i:gt,o:gt,d:function(l){l&&Ee(t),Qi(a,l),e[11](null),r=!1,Zr(i)}}}function Wat(e){e.stopPropagation()}function qat(e,t,n){var r,i=t.path,o=t.value,a=t.parser,s=t.readOnly,l=t.selection,c=t.onPatch,u=t.options,f=o;return e.$$set=function(h){"path"in h&&n(6,i=h.path),"value"in h&&n(7,o=h.value),"parser"in h&&n(0,a=h.parser),"readOnly"in h&&n(8,s=h.readOnly),"selection"in h&&n(1,l=h.selection),"onPatch"in h&&n(9,c=h.onPatch),"options"in h&&n(2,u=h.options)},e.$$.update=function(){128&e.$$.dirty&&n(4,f=o),2&e.$$.dirty&&function(h){h&&r&&r.focus()}(l)},[a,l,u,r,f,function(h){h.stopPropagation(),s||c([{op:"replace",path:Mt(i),value:f}])},i,o,s,c,function(){var h;h=this.querySelector(":checked"),f=h&&h.__value,n(4,f),n(7,o)},function(h){rr[h?"unshift":"push"](function(){n(3,r=h),n(2,u)})}]}(function(e){function t(n){var r;return Qt(this,t),ln(Jt(r=an(this,t)),n,qat,Uat,Pn,{path:6,value:7,parser:0,readOnly:8,selection:1,onPatch:9,options:2},Hat),r}return sn(t,cn),en(t)})();var Gat=typeof global=="object"&&global&&global.Object===Object&&global;const Yse=Gat;var Kat=typeof self=="object"&&self&&self.Object===Object&&self,Yat=Yse||Kat||Function("return this")();const Hu=Yat;var Zat=Hu.Symbol;const Uu=Zat;var Zse=Object.prototype,Xat=Zse.hasOwnProperty,Jat=Zse.toString,ky=Uu?Uu.toStringTag:void 0;function Qat(e){var t=Xat.call(e,ky),n=e[ky];try{e[ky]=void 0;var r=!0}catch{}var i=Jat.call(e);return r&&(t?e[ky]=n:delete e[ky]),i}var est=Object.prototype,tst=est.toString;function nst(e){return tst.call(e)}var rst="[object Null]",ist="[object Undefined]",Xse=Uu?Uu.toStringTag:void 0;function Ap(e){return e==null?e===void 0?ist:rst:Xse&&Xse in Object(e)?Qat(e):nst(e)}function Wu(e){return e!=null&&typeof e=="object"}var ost="[object Symbol]";function Gj(e){return typeof e=="symbol"||Wu(e)&&Ap(e)==ost}function ast(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var sst=Array.isArray;const Zl=sst;var lst=1/0,Jse=Uu?Uu.prototype:void 0,Qse=Jse?Jse.toString:void 0;function ele(e){if(typeof e=="string")return e;if(Zl(e))return ast(e,ele)+"";if(Gj(e))return Qse?Qse.call(e):"";var t=e+"";return t=="0"&&1/e==-lst?"-0":t}function qu(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function Kj(e){return e}var cst="[object AsyncFunction]",ust="[object Function]",dst="[object GeneratorFunction]",fst="[object Proxy]";function Yj(e){if(!qu(e))return!1;var t=Ap(e);return t==ust||t==dst||t==cst||t==fst}var hst=Hu["__core-js_shared__"];const Zj=hst;var tle=function(){var e=/[^.]+$/.exec(Zj&&Zj.keys&&Zj.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function pst(e){return!!tle&&tle in e}var mst=Function.prototype,gst=mst.toString;function Np(e){if(e!=null){try{return gst.call(e)}catch{}try{return e+""}catch{}}return""}var vst=/[\\^$.*+?()[\]{}|]/g,bst=/^\[object .+?Constructor\]$/,yst=Function.prototype,xst=Object.prototype,wst=yst.toString,Cst=xst.hasOwnProperty,_st=RegExp("^"+wst.call(Cst).replace(vst,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Sst(e){if(!qu(e)||pst(e))return!1;var t=Yj(e)?_st:bst;return t.test(Np(e))}function Est(e,t){return e==null?void 0:e[t]}function Dp(e,t){var n=Est(e,t);return Sst(n)?n:void 0}var kst=Dp(Hu,"WeakMap");const Xj=kst;var nle=Object.create,$st=function(){function e(){}return function(t){if(!qu(t))return{};if(nle)return nle(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();const Tst=$st;function Rst(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function rle(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var Pst=800,Ost=16,jst=Date.now;function Mst(e){var t=0,n=0;return function(){var r=jst(),i=Ost-(r-n);if(n=r,i>0){if(++t>=Pst)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Ast(e){return function(){return e}}var Nst=function(){try{var e=Dp(Object,"defineProperty");return e({},"",{}),e}catch{}}();const Lw=Nst;var Dst=Lw?function(e,t){return Lw(e,"toString",{configurable:!0,enumerable:!1,value:Ast(t),writable:!0})}:Kj,Ist=Mst(Dst);const Lst=Ist;function Bst(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var Fst=9007199254740991,zst=/^(?:0|[1-9]\d*)$/;function Jj(e,t){var n=typeof e;return t=t??Fst,!!t&&(n=="number"||n!="symbol"&&zst.test(e))&&e>-1&&e%1==0&&e<t}function Bw(e,t,n){t=="__proto__"&&Lw?Lw(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function $y(e,t){return e===t||e!==e&&t!==t}var Vst=Object.prototype,Hst=Vst.hasOwnProperty;function ile(e,t,n){var r=e[t];(!(Hst.call(e,t)&&$y(r,n))||n===void 0&&!(t in e))&&Bw(e,t,n)}function yg(e,t,n,r){var i=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var s=t[o],l=r?r(n[s],e[s],s,n,e):void 0;l===void 0&&(l=e[s]),i?Bw(n,s,l):ile(n,s,l)}return n}var ole=Math.max;function Ust(e,t,n){return t=ole(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=ole(r.length-t,0),a=Array(o);++i<o;)a[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(a),Rst(e,this,s)}}function Wst(e,t){return Lst(Ust(e,t,Kj),e+"")}var qst=9007199254740991;function Qj(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=qst}function Fw(e){return e!=null&&Qj(e.length)&&!Yj(e)}function Gst(e,t,n){if(!qu(n))return!1;var r=typeof t;return(r=="number"?Fw(n)&&Jj(t,n.length):r=="string"&&t in n)?$y(n[t],e):!1}function ale(e){return Wst(function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(o=e.length>3&&typeof o=="function"?(i--,o):void 0,a&&Gst(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),t=Object(t);++r<i;){var s=n[r];s&&e(t,s,r,o)}return t})}var Kst=Object.prototype;function eM(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Kst;return e===n}function Yst(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var Zst="[object Arguments]";function sle(e){return Wu(e)&&Ap(e)==Zst}var lle=Object.prototype,Xst=lle.hasOwnProperty,Jst=lle.propertyIsEnumerable,Qst=sle(function(){return arguments}())?sle:function(e){return Wu(e)&&Xst.call(e,"callee")&&!Jst.call(e,"callee")};const zw=Qst;function elt(){return!1}var cle=typeof ir=="object"&&ir&&!ir.nodeType&&ir,ule=cle&&typeof module=="object"&&module&&!module.nodeType&&module,tlt=ule&&ule.exports===cle,dle=tlt?Hu.Buffer:void 0,nlt=dle?dle.isBuffer:void 0,rlt=nlt||elt;const Ty=rlt;var ilt="[object Arguments]",olt="[object Array]",alt="[object Boolean]",slt="[object Date]",llt="[object Error]",clt="[object Function]",ult="[object Map]",dlt="[object Number]",flt="[object Object]",hlt="[object RegExp]",plt="[object Set]",mlt="[object String]",glt="[object WeakMap]",vlt="[object ArrayBuffer]",blt="[object DataView]",ylt="[object Float32Array]",xlt="[object Float64Array]",wlt="[object Int8Array]",Clt="[object Int16Array]",_lt="[object Int32Array]",Slt="[object Uint8Array]",Elt="[object Uint8ClampedArray]",klt="[object Uint16Array]",$lt="[object Uint32Array]",Ai={};Ai[ylt]=Ai[xlt]=Ai[wlt]=Ai[Clt]=Ai[_lt]=Ai[Slt]=Ai[Elt]=Ai[klt]=Ai[$lt]=!0,Ai[ilt]=Ai[olt]=Ai[vlt]=Ai[alt]=Ai[blt]=Ai[slt]=Ai[llt]=Ai[clt]=Ai[ult]=Ai[dlt]=Ai[flt]=Ai[hlt]=Ai[plt]=Ai[mlt]=Ai[glt]=!1;function Tlt(e){return Wu(e)&&Qj(e.length)&&!!Ai[Ap(e)]}function tM(e){return function(t){return e(t)}}var fle=typeof ir=="object"&&ir&&!ir.nodeType&&ir,Ry=fle&&typeof module=="object"&&module&&!module.nodeType&&module,Rlt=Ry&&Ry.exports===fle,nM=Rlt&&Yse.process,Plt=function(){try{var e=Ry&&Ry.require&&Ry.require("util").types;return e||nM&&nM.binding&&nM.binding("util")}catch{}}();const xg=Plt;var hle=xg&&xg.isTypedArray,Olt=hle?tM(hle):Tlt;const rM=Olt;var jlt=Object.prototype,Mlt=jlt.hasOwnProperty;function ple(e,t){var n=Zl(e),r=!n&&zw(e),i=!n&&!r&&Ty(e),o=!n&&!r&&!i&&rM(e),a=n||r||i||o,s=a?Yst(e.length,String):[],l=s.length;for(var c in e)(t||Mlt.call(e,c))&&!(a&&(c=="length"||i&&(c=="offset"||c=="parent")||o&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Jj(c,l)))&&s.push(c);return s}function mle(e,t){return function(n){return e(t(n))}}var Alt=mle(Object.keys,Object);const Nlt=Alt;var Dlt=Object.prototype,Ilt=Dlt.hasOwnProperty;function Llt(e){if(!eM(e))return Nlt(e);var t=[];for(var n in Object(e))Ilt.call(e,n)&&n!="constructor"&&t.push(n);return t}function Py(e){return Fw(e)?ple(e):Llt(e)}function Blt(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var Flt=Object.prototype,zlt=Flt.hasOwnProperty;function Vlt(e){if(!qu(e))return Blt(e);var t=eM(e),n=[];for(var r in e)r=="constructor"&&(t||!zlt.call(e,r))||n.push(r);return n}function wg(e){return Fw(e)?ple(e,!0):Vlt(e)}var Hlt=ale(function(e,t,n,r){yg(t,wg(t),e,r)});const Ult=Hlt;var Wlt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,qlt=/^\w*$/;function iM(e,t){if(Zl(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||Gj(e)?!0:qlt.test(e)||!Wlt.test(e)||t!=null&&e in Object(t)}var Glt=Dp(Object,"create");const Oy=Glt;function Klt(){this.__data__=Oy?Oy(null):{},this.size=0}function Ylt(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Zlt="__lodash_hash_undefined__",Xlt=Object.prototype,Jlt=Xlt.hasOwnProperty;function Qlt(e){var t=this.__data__;if(Oy){var n=t[e];return n===Zlt?void 0:n}return Jlt.call(t,e)?t[e]:void 0}var ect=Object.prototype,tct=ect.hasOwnProperty;function nct(e){var t=this.__data__;return Oy?t[e]!==void 0:tct.call(t,e)}var rct="__lodash_hash_undefined__";function ict(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Oy&&t===void 0?rct:t,this}function Ip(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ip.prototype.clear=Klt,Ip.prototype.delete=Ylt,Ip.prototype.get=Qlt,Ip.prototype.has=nct,Ip.prototype.set=ict;function oct(){this.__data__=[],this.size=0}function Vw(e,t){for(var n=e.length;n--;)if($y(e[n][0],t))return n;return-1}var act=Array.prototype,sct=act.splice;function lct(e){var t=this.__data__,n=Vw(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():sct.call(t,n,1),--this.size,!0}function cct(e){var t=this.__data__,n=Vw(t,e);return n<0?void 0:t[n][1]}function uct(e){return Vw(this.__data__,e)>-1}function dct(e,t){var n=this.__data__,r=Vw(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Q0(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Q0.prototype.clear=oct,Q0.prototype.delete=lct,Q0.prototype.get=cct,Q0.prototype.has=uct,Q0.prototype.set=dct;var fct=Dp(Hu,"Map");const jy=fct;function hct(){this.size=0,this.__data__={hash:new Ip,map:new(jy||Q0),string:new Ip}}function pct(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Hw(e,t){var n=e.__data__;return pct(t)?n[typeof t=="string"?"string":"hash"]:n.map}function mct(e){var t=Hw(this,e).delete(e);return this.size-=t?1:0,t}function gct(e){return Hw(this,e).get(e)}function vct(e){return Hw(this,e).has(e)}function bct(e,t){var n=Hw(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function ed(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}ed.prototype.clear=hct,ed.prototype.delete=mct,ed.prototype.get=gct,ed.prototype.has=vct,ed.prototype.set=bct;var yct="Expected a function";function oM(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(yct);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(oM.Cache||ed),n}oM.Cache=ed;var xct=500;function wct(e){var t=oM(e,function(r){return n.size===xct&&n.clear(),r}),n=t.cache;return t}var Cct=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,_ct=/\\(\\)?/g,Sct=wct(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Cct,function(n,r,i,o){t.push(i?o.replace(_ct,"$1"):r||n)}),t});const Ect=Sct;function kct(e){return e==null?"":ele(e)}function gle(e,t){return Zl(e)?e:iM(e,t)?[e]:Ect(kct(e))}var $ct=1/0;function Uw(e){if(typeof e=="string"||Gj(e))return e;var t=e+"";return t=="0"&&1/e==-$ct?"-0":t}function vle(e,t){t=gle(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Uw(t[n++])];return n&&n==r?e:void 0}function Tct(e,t,n){var r=e==null?void 0:vle(e,t);return r===void 0?n:r}function ble(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var Rct=mle(Object.getPrototypeOf,Object);const aM=Rct;var Pct="[object Object]",Oct=Function.prototype,jct=Object.prototype,yle=Oct.toString,Mct=jct.hasOwnProperty,Act=yle.call(Object);function xle(e){if(!Wu(e)||Ap(e)!=Pct)return!1;var t=aM(e);if(t===null)return!0;var n=Mct.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&yle.call(n)==Act}function Nct(){this.__data__=new Q0,this.size=0}function Dct(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Ict(e){return this.__data__.get(e)}function Lct(e){return this.__data__.has(e)}var Bct=200;function Fct(e,t){var n=this.__data__;if(n instanceof Q0){var r=n.__data__;if(!jy||r.length<Bct-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new ed(r)}return n.set(e,t),this.size=n.size,this}function jc(e){var t=this.__data__=new Q0(e);this.size=t.size}jc.prototype.clear=Nct,jc.prototype.delete=Dct,jc.prototype.get=Ict,jc.prototype.has=Lct,jc.prototype.set=Fct;function zct(e,t){return e&&yg(t,Py(t),e)}function Vct(e,t){return e&&yg(t,wg(t),e)}var wle=typeof ir=="object"&&ir&&!ir.nodeType&&ir,Cle=wle&&typeof module=="object"&&module&&!module.nodeType&&module,Hct=Cle&&Cle.exports===wle,_le=Hct?Hu.Buffer:void 0,Sle=_le?_le.allocUnsafe:void 0;function Ele(e,t){if(t)return e.slice();var n=e.length,r=Sle?Sle(n):new e.constructor(n);return e.copy(r),r}function Uct(e,t){for(var n=-1,r=e==null?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}function kle(){return[]}var Wct=Object.prototype,qct=Wct.propertyIsEnumerable,$le=Object.getOwnPropertySymbols,Gct=$le?function(e){return e==null?[]:(e=Object(e),Uct($le(e),function(t){return qct.call(e,t)}))}:kle;const sM=Gct;function Kct(e,t){return yg(e,sM(e),t)}var Yct=Object.getOwnPropertySymbols,Zct=Yct?function(e){for(var t=[];e;)ble(t,sM(e)),e=aM(e);return t}:kle;const Tle=Zct;function Xct(e,t){return yg(e,Tle(e),t)}function Rle(e,t,n){var r=t(e);return Zl(e)?r:ble(r,n(e))}function lM(e){return Rle(e,Py,sM)}function Jct(e){return Rle(e,wg,Tle)}var Qct=Dp(Hu,"DataView");const cM=Qct;var eut=Dp(Hu,"Promise");const uM=eut;var tut=Dp(Hu,"Set");const dM=tut;var Ple="[object Map]",nut="[object Object]",Ole="[object Promise]",jle="[object Set]",Mle="[object WeakMap]",Ale="[object DataView]",rut=Np(cM),iut=Np(jy),out=Np(uM),aut=Np(dM),sut=Np(Xj),Lp=Ap;(cM&&Lp(new cM(new ArrayBuffer(1)))!=Ale||jy&&Lp(new jy)!=Ple||uM&&Lp(uM.resolve())!=Ole||dM&&Lp(new dM)!=jle||Xj&&Lp(new Xj)!=Mle)&&(Lp=function(e){var t=Ap(e),n=t==nut?e.constructor:void 0,r=n?Np(n):"";if(r)switch(r){case rut:return Ale;case iut:return Ple;case out:return Ole;case aut:return jle;case sut:return Mle}return t});const My=Lp;var lut=Object.prototype,cut=lut.hasOwnProperty;function uut(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&cut.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var dut=Hu.Uint8Array;const Ww=dut;function fM(e){var t=new e.constructor(e.byteLength);return new Ww(t).set(new Ww(e)),t}function fut(e,t){var n=t?fM(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var hut=/\w*$/;function put(e){var t=new e.constructor(e.source,hut.exec(e));return t.lastIndex=e.lastIndex,t}var Nle=Uu?Uu.prototype:void 0,Dle=Nle?Nle.valueOf:void 0;function mut(e){return Dle?Object(Dle.call(e)):{}}function Ile(e,t){var n=t?fM(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var gut="[object Boolean]",vut="[object Date]",but="[object Map]",yut="[object Number]",xut="[object RegExp]",wut="[object Set]",Cut="[object String]",_ut="[object Symbol]",Sut="[object ArrayBuffer]",Eut="[object DataView]",kut="[object Float32Array]",$ut="[object Float64Array]",Tut="[object Int8Array]",Rut="[object Int16Array]",Put="[object Int32Array]",Out="[object Uint8Array]",jut="[object Uint8ClampedArray]",Mut="[object Uint16Array]",Aut="[object Uint32Array]";function Nut(e,t,n){var r=e.constructor;switch(t){case Sut:return fM(e);case gut:case vut:return new r(+e);case Eut:return fut(e,n);case kut:case $ut:case Tut:case Rut:case Put:case Out:case jut:case Mut:case Aut:return Ile(e,n);case but:return new r;case yut:case Cut:return new r(e);case xut:return put(e);case wut:return new r;case _ut:return mut(e)}}function Lle(e){return typeof e.constructor=="function"&&!eM(e)?Tst(aM(e)):{}}var Dut="[object Map]";function Iut(e){return Wu(e)&&My(e)==Dut}var Ble=xg&&xg.isMap,Lut=Ble?tM(Ble):Iut;const But=Lut;var Fut="[object Set]";function zut(e){return Wu(e)&&My(e)==Fut}var Fle=xg&&xg.isSet,Vut=Fle?tM(Fle):zut;const Hut=Vut;var Uut=1,Wut=2,qut=4,zle="[object Arguments]",Gut="[object Array]",Kut="[object Boolean]",Yut="[object Date]",Zut="[object Error]",Vle="[object Function]",Xut="[object GeneratorFunction]",Jut="[object Map]",Qut="[object Number]",Hle="[object Object]",e0t="[object RegExp]",t0t="[object Set]",n0t="[object String]",r0t="[object Symbol]",i0t="[object WeakMap]",o0t="[object ArrayBuffer]",a0t="[object DataView]",s0t="[object Float32Array]",l0t="[object Float64Array]",c0t="[object Int8Array]",u0t="[object Int16Array]",d0t="[object Int32Array]",f0t="[object Uint8Array]",h0t="[object Uint8ClampedArray]",p0t="[object Uint16Array]",m0t="[object Uint32Array]",wi={};wi[zle]=wi[Gut]=wi[o0t]=wi[a0t]=wi[Kut]=wi[Yut]=wi[s0t]=wi[l0t]=wi[c0t]=wi[u0t]=wi[d0t]=wi[Jut]=wi[Qut]=wi[Hle]=wi[e0t]=wi[t0t]=wi[n0t]=wi[r0t]=wi[f0t]=wi[h0t]=wi[p0t]=wi[m0t]=!0,wi[Zut]=wi[Vle]=wi[i0t]=!1;function qw(e,t,n,r,i,o){var a,s=t&Uut,l=t&Wut,c=t&qut;if(n&&(a=i?n(e,r,i,o):n(e)),a!==void 0)return a;if(!qu(e))return e;var u=Zl(e);if(u){if(a=uut(e),!s)return rle(e,a)}else{var f=My(e),h=f==Vle||f==Xut;if(Ty(e))return Ele(e,s);if(f==Hle||f==zle||h&&!i){if(a=l||h?{}:Lle(e),!s)return l?Xct(e,Vct(a,e)):Kct(e,zct(a,e))}else{if(!wi[f])return i?e:{};a=Nut(e,f,s)}}o||(o=new jc);var p=o.get(e);if(p)return p;o.set(e,a),Hut(e)?e.forEach(function(v){a.add(qw(v,t,n,v,e,o))}):But(e)&&e.forEach(function(v,g){a.set(g,qw(v,t,n,g,e,o))});var m=c?l?Jct:lM:l?wg:Py,b=u?void 0:m(e);return Bst(b||e,function(v,g){b&&(g=v,v=e[g]),ile(a,g,qw(v,t,n,g,e,o))}),a}var g0t=1,v0t=4;function b0t(e){return qw(e,g0t|v0t)}var y0t="__lodash_hash_undefined__";function x0t(e){return this.__data__.set(e,y0t),this}function w0t(e){return this.__data__.has(e)}function Gw(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new ed;++t<n;)this.add(e[t])}Gw.prototype.add=Gw.prototype.push=x0t,Gw.prototype.has=w0t;function C0t(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function _0t(e,t){return e.has(t)}var S0t=1,E0t=2;function Ule(e,t,n,r,i,o){var a=n&S0t,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var c=o.get(e),u=o.get(t);if(c&&u)return c==t&&u==e;var f=-1,h=!0,p=n&E0t?new Gw:void 0;for(o.set(e,t),o.set(t,e);++f<s;){var m=e[f],b=t[f];if(r)var v=a?r(b,m,f,t,e,o):r(m,b,f,e,t,o);if(v!==void 0){if(v)continue;h=!1;break}if(p){if(!C0t(t,function(g,x){if(!_0t(p,x)&&(m===g||i(m,g,n,r,o)))return p.push(x)})){h=!1;break}}else if(!(m===b||i(m,b,n,r,o))){h=!1;break}}return o.delete(e),o.delete(t),h}function k0t(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}function $0t(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var T0t=1,R0t=2,P0t="[object Boolean]",O0t="[object Date]",j0t="[object Error]",M0t="[object Map]",A0t="[object Number]",N0t="[object RegExp]",D0t="[object Set]",I0t="[object String]",L0t="[object Symbol]",B0t="[object ArrayBuffer]",F0t="[object DataView]",Wle=Uu?Uu.prototype:void 0,hM=Wle?Wle.valueOf:void 0;function z0t(e,t,n,r,i,o,a){switch(n){case F0t:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case B0t:return!(e.byteLength!=t.byteLength||!o(new Ww(e),new Ww(t)));case P0t:case O0t:case A0t:return $y(+e,+t);case j0t:return e.name==t.name&&e.message==t.message;case N0t:case I0t:return e==t+"";case M0t:var s=k0t;case D0t:var l=r&T0t;if(s||(s=$0t),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;r|=R0t,a.set(e,t);var u=Ule(s(e),s(t),r,i,o,a);return a.delete(e),u;case L0t:if(hM)return hM.call(e)==hM.call(t)}return!1}var V0t=1,H0t=Object.prototype,U0t=H0t.hasOwnProperty;function W0t(e,t,n,r,i,o){var a=n&V0t,s=lM(e),l=s.length,c=lM(t),u=c.length;if(l!=u&&!a)return!1;for(var f=l;f--;){var h=s[f];if(!(a?h in t:U0t.call(t,h)))return!1}var p=o.get(e),m=o.get(t);if(p&&m)return p==t&&m==e;var b=!0;o.set(e,t),o.set(t,e);for(var v=a;++f<l;){h=s[f];var g=e[h],x=t[h];if(r)var w=a?r(x,g,h,t,e,o):r(g,x,h,e,t,o);if(!(w===void 0?g===x||i(g,x,n,r,o):w)){b=!1;break}v||(v=h=="constructor")}if(b&&!v){var y=e.constructor,C=t.constructor;y!=C&&"constructor"in e&&"constructor"in t&&!(typeof y=="function"&&y instanceof y&&typeof C=="function"&&C instanceof C)&&(b=!1)}return o.delete(e),o.delete(t),b}var q0t=1,qle="[object Arguments]",Gle="[object Array]",Kw="[object Object]",G0t=Object.prototype,Kle=G0t.hasOwnProperty;function K0t(e,t,n,r,i,o){var a=Zl(e),s=Zl(t),l=a?Gle:My(e),c=s?Gle:My(t);l=l==qle?Kw:l,c=c==qle?Kw:c;var u=l==Kw,f=c==Kw,h=l==c;if(h&&Ty(e)){if(!Ty(t))return!1;a=!0,u=!1}if(h&&!u)return o||(o=new jc),a||rM(e)?Ule(e,t,n,r,i,o):z0t(e,t,l,n,r,i,o);if(!(n&q0t)){var p=u&&Kle.call(e,"__wrapped__"),m=f&&Kle.call(t,"__wrapped__");if(p||m){var b=p?e.value():e,v=m?t.value():t;return o||(o=new jc),i(b,v,n,r,o)}}return h?(o||(o=new jc),W0t(e,t,n,r,i,o)):!1}function pM(e,t,n,r,i){return e===t?!0:e==null||t==null||!Wu(e)&&!Wu(t)?e!==e&&t!==t:K0t(e,t,n,r,pM,i)}var Y0t=1,Z0t=2;function X0t(e,t,n,r){var i=n.length,o=i,a=!r;if(e==null)return!o;for(e=Object(e);i--;){var s=n[i];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<o;){s=n[i];var l=s[0],c=e[l],u=s[1];if(a&&s[2]){if(c===void 0&&!(l in e))return!1}else{var f=new jc;if(r)var h=r(c,u,l,e,t,f);if(!(h===void 0?pM(u,c,Y0t|Z0t,r,f):h))return!1}}return!0}function Yle(e){return e===e&&!qu(e)}function J0t(e){for(var t=Py(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Yle(i)]}return t}function Zle(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function Q0t(e){var t=J0t(e);return t.length==1&&t[0][2]?Zle(t[0][0],t[0][1]):function(n){return n===e||X0t(n,e,t)}}function edt(e,t){return e!=null&&t in Object(e)}function tdt(e,t,n){t=gle(t,e);for(var r=-1,i=t.length,o=!1;++r<i;){var a=Uw(t[r]);if(!(o=e!=null&&n(e,a)))break;e=e[a]}return o||++r!=i?o:(i=e==null?0:e.length,!!i&&Qj(i)&&Jj(a,i)&&(Zl(e)||zw(e)))}function ndt(e,t){return e!=null&&tdt(e,t,edt)}var rdt=1,idt=2;function odt(e,t){return iM(e)&&Yle(t)?Zle(Uw(e),t):function(n){var r=Tct(n,e);return r===void 0&&r===t?ndt(n,e):pM(t,r,rdt|idt)}}function adt(e){return function(t){return t==null?void 0:t[e]}}function sdt(e){return function(t){return vle(t,e)}}function ldt(e){return iM(e)?adt(Uw(e)):sdt(e)}function cdt(e){return typeof e=="function"?e:e==null?Kj:typeof e=="object"?Zl(e)?odt(e[0],e[1]):Q0t(e):ldt(e)}function udt(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++i];if(n(o[l],l,o)===!1)break}return t}}var ddt=udt();const Xle=ddt;function fdt(e,t){return e&&Xle(e,t,Py)}function mM(e,t,n){(n!==void 0&&!$y(e[t],n)||n===void 0&&!(t in e))&&Bw(e,t,n)}function hdt(e){return Wu(e)&&Fw(e)}function gM(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function pdt(e){return yg(e,wg(e))}function mdt(e,t,n,r,i,o,a){var s=gM(e,n),l=gM(t,n),c=a.get(l);if(c){mM(e,n,c);return}var u=o?o(s,l,n+"",e,t,a):void 0,f=u===void 0;if(f){var h=Zl(l),p=!h&&Ty(l),m=!h&&!p&&rM(l);u=l,h||p||m?Zl(s)?u=s:hdt(s)?u=rle(s):p?(f=!1,u=Ele(l,!0)):m?(f=!1,u=Ile(l,!0)):u=[]:xle(l)||zw(l)?(u=s,zw(s)?u=pdt(s):(!qu(s)||Yj(s))&&(u=Lle(l))):f=!1}f&&(a.set(l,u),i(u,l,r,o,a),a.delete(l)),mM(e,n,u)}function Jle(e,t,n,r,i){e!==t&&Xle(t,function(o,a){if(i||(i=new jc),qu(o))mdt(e,t,a,n,Jle,r,i);else{var s=r?r(gM(e,a),o,a+"",e,t,i):void 0;s===void 0&&(s=o),mM(e,a,s)}},wg)}var gdt=ale(function(e,t,n,r){Jle(e,t,n,r)});const vdt=gdt;function bdt(e,t){var n={};return t=cdt(t),fdt(e,function(r,i,o){Bw(n,t(r,i,o),r)}),n}const ydt=new RegExp("([\\p{Ll}\\d])(\\p{Lu})","gu"),xdt=new RegExp("(\\p{Lu})([\\p{Lu}][\\p{Ll}])","gu"),wdt=new RegExp("(\\d)(\\p{Ll})","gu"),Cdt=new RegExp("(\\p{L})(\\d)","gu"),_dt=/[^\p{L}\d]+/giu,Yw="$1\0$2",Qle="";function Sdt(e,t){let n=e.trim();n=n.replace(ydt,Yw).replace(xdt,Yw),t!=null&&t.separateNumbers&&(n=n.replace(wdt,Yw).replace(Cdt,Yw)),n=n.replace(_dt,"\0");let r=0,i=n.length;for(;n.charAt(r)==="\0";)r++;if(r===i)return[];for(;n.charAt(i-1)==="\0";)i--;return n.slice(r,i).split(/\0/g)}function Edt(e,t){const[n,r,i]=Pdt(e,t),o=kdt(t==null?void 0:t.locale),a=$dt(t==null?void 0:t.locale),s=t!=null&&t.mergeAmbiguousCharacters?Tdt(o,a):Rdt(o,a);return n+Sdt(r,t).map((l,c)=>c===0?o(l):s(l,c)).join((t==null?void 0:t.delimiter)??"")+i}function kdt(e){return e===!1?t=>t.toLowerCase():t=>t.toLocaleLowerCase(e)}function $dt(e){return e===!1?t=>t.toUpperCase():t=>t.toLocaleUpperCase(e)}function Tdt(e,t){return n=>`${t(n[0])}${e(n.slice(1))}`}function Rdt(e,t){return(n,r)=>{const i=n[0];return(r>0&&i>="0"&&i<="9"?"_"+i:t(i))+e(n.slice(1))}}function Pdt(e,t){const n=(t==null?void 0:t.prefixCharacters)??Qle,r=(t==null?void 0:t.suffixCharacters)??Qle;let i=0,o=e.length;for(;i<e.length;){const a=e.charAt(i);if(!n.includes(a))break;i++}for(;o>i;){const a=o-1,s=e.charAt(a);if(!r.includes(s))break;o=a}return[e.slice(0,i),e.slice(i,o),e.slice(o)]}const Ay=e=>/.+-.+/.test(e)?Edt(e):e;function Odt(e,t){const n=Object.create(null),r=e.split(",");for(let i=0;i<r.length;i++)n[r[i]]=!0;return t?i=>!!n[i.toLowerCase()]:i=>!!n[i]}const jdt=Odt("String,Number,Boolean,Function,Symbol,BigInt");function Mdt(e){const t=e==null?void 0:e.toString().match(/^\s*function (\w+)/);return t?t[1]:e===null?"null":""}function Adt(e,t){let n;const r=Mdt(t);if(jdt(r)){const i=typeof e;n=i===r.toLowerCase(),!n&&i==="object"&&(n=e instanceof t)}else r==="Object"?n=qu(e):r==="Array"?n=Array.isArray(e):r==="null"?n=e===null:n=e instanceof t;return{valid:n,expectedType:r}}function Ndt({prop:e,type:t,validator:n}){if(![void 0,null].includes(e)&&t){let r=!1;const i=Array.isArray(t)?t:[t],o=[];for(let a=0;a<i.length&&!r;a++){const{valid:s,expectedType:l}=Adt(e,i[a]);o.push(l||""),r=s}if(!r)throw new TypeError(`Invalid prop: type check failed, expecting [${o.join(", ")}], receiving: ${e}`)}if(n&&!n(e))throw new Error(`Invalid prop: validator check failed, receiving: ${e}`)}function Ddt(e,{mergeObject:t,mergeFunction:n}){const r=[];for(let o=e.length-1;o>=0;o--)r.push(e[o]);const i=n?(o,a)=>typeof o=="function"&&typeof a=="function"?n(a,o):void 0:void 0;return t==="deep"?vdt(...r,i):Ult(...r,i)}function Idt(e,{mergeFunction:t}){return e.reduce(t,()=>{})}function Cg(e,t={}){const{type:n,default:r,defaultIsDynamic:i=!1,required:o=!1,validator:a,camelizeObjectKeys:s=!1,mergeObjectApplyOnlyToDefault:l=!1,mergeFunctionApplyOnlyToDefault:c=!0}=t;let{mergeObject:u="deep",mergeFunction:f=!1}=t;const h=[];let p,m=!1,b=!1;const v=g=>{if(g!==void 0){Ndt({type:n,prop:g,validator:a});const x=xle(g),w=typeof g=="function";return m=x,b=w,x?(g=b0t(g),s?bdt(g,(y,C)=>Ay(C)):g):g}};for(const g of e)h.push(v(g));if(!i)h.push(v(r));else if(typeof r!="function")throw new TypeError(`Invalid option: options.default should be Function when options.defaultIsDynamic enabled, receiving: ${r}`);m||(u=!1,b||(f=!1));for(let g=0;g<h.length;g++){const x=h[g];if(x!==void 0){g===h.length-1?p=x:u?p=Ddt(l?[x,r]:h,{mergeObject:u,mergeFunction:f}):f?p=Idt(c?[x,r]:h,{mergeFunction:f}):p=x;break}}if(o&&[void 0,null].includes(p))throw new Error("Missing required prop");return i?Cg(e,{...t,default:r(p),defaultIsDynamic:!1}):p}function ece(e){const t=Array.from(Ay(e));return t[0]=t[0].toUpperCase(),t.unshift("o","n"),t.join("")}function Ldt(e,{props:t=[],camelizePropNames:n=!1}={}){const r={props:{},attrs:{},listeners:{},hooks:{},slots:{}};let i;if(Array.isArray(t))i=n?t.map(o=>Ay(o)):t;else if(n){i=[];for(const o in t)i.push(Ay(o))}else i=Object.keys(t);for(const o in e)if(o.startsWith("@")){const a=o.substring(1);if(a.startsWith("vue:"))r.hooks[ece(a.replace("vue:","vnode-"))]=e[o];else{if(a.startsWith("vnode"))throw new Error("@vnode-* hooks are no longer supported. Use the vue: prefix instead. For example, @vnode-mounted should be changed to @vue:mounted. @vnode-* hooks support has been removed in Vue 3.4.");r.listeners[ece(a)]=e[o]}}else if(o.startsWith("#")){const a=o.substring(1);a&&(r.slots[a]=e[o])}else{const a=n?Ay(o):o;i.includes(a)?r.props[a]=e[o]:r.attrs[o]=e[o]}return r}var Bdt=typeof global=="object"&&global&&global.Object===Object&&global,Fdt=typeof self=="object"&&self&&self.Object===Object&&self,tce=Bdt||Fdt||Function("return this")(),Zw=tce.Symbol,nce=Object.prototype,zdt=nce.hasOwnProperty,Vdt=nce.toString,Ny=Zw?Zw.toStringTag:void 0;function Hdt(e){var t=zdt.call(e,Ny),n=e[Ny];try{e[Ny]=void 0;var r=!0}catch{}var i=Vdt.call(e);return r&&(t?e[Ny]=n:delete e[Ny]),i}var Udt=Object.prototype,Wdt=Udt.toString;function qdt(e){return Wdt.call(e)}var Gdt="[object Null]",Kdt="[object Undefined]",rce=Zw?Zw.toStringTag:void 0;function Ydt(e){return e==null?e===void 0?Kdt:Gdt:rce&&rce in Object(e)?Hdt(e):qdt(e)}function Zdt(e){return e!=null&&typeof e=="object"}var Xdt="[object Symbol]";function Jdt(e){return typeof e=="symbol"||Zdt(e)&&Ydt(e)==Xdt}var Qdt=/\s/;function eft(e){for(var t=e.length;t--&&Qdt.test(e.charAt(t)););return t}var tft=/^\s+/;function nft(e){return e&&e.slice(0,eft(e)+1).replace(tft,"")}function vM(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var ice=NaN,rft=/^[-+]0x[0-9a-f]+$/i,ift=/^0b[01]+$/i,oft=/^0o[0-7]+$/i,aft=parseInt;function oce(e){if(typeof e=="number")return e;if(Jdt(e))return ice;if(vM(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=vM(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=nft(e);var n=ift.test(e);return n||oft.test(e)?aft(e.slice(2),n?2:8):rft.test(e)?ice:+e}var bM=function(){return tce.Date.now()},sft="Expected a function",lft=Math.max,cft=Math.min;function uft(e,t,n){var r,i,o,a,s,l,c=0,u=!1,f=!1,h=!0;if(typeof e!="function")throw new TypeError(sft);t=oce(t)||0,vM(n)&&(u=!!n.leading,f="maxWait"in n,o=f?lft(oce(n.maxWait)||0,t):o,h="trailing"in n?!!n.trailing:h);function p(_){var S=r,E=i;return r=i=void 0,c=_,a=e.apply(E,S),a}function m(_){return c=_,s=setTimeout(g,t),u?p(_):a}function b(_){var S=_-l,E=_-c,$=t-S;return f?cft($,o-E):$}function v(_){var S=_-l,E=_-c;return l===void 0||S>=t||S<0||f&&E>=o}function g(){var _=bM();if(v(_))return x(_);s=setTimeout(g,b(_))}function x(_){return s=void 0,h&&r?p(_):(r=i=void 0,a)}function w(){s!==void 0&&clearTimeout(s),c=0,r=l=i=s=void 0}function y(){return s===void 0?a:x(bM())}function C(){var _=bM(),S=v(_);if(r=arguments,i=this,l=_,S){if(s===void 0)return m(l);if(f)return clearTimeout(s),s=setTimeout(g,t),p(l)}return s===void 0&&(s=setTimeout(g,t)),a}return C.cancel=w,C.flush=y,C}const dft="JsonEditorVue",Xw="modelValue",ace="update:modelValue",Jw=["mainMenuBar","navigationBar","statusBar","askToFormat","readOnly","escapeControlCharacters","escapeUnicodeCharacters","flattenColumns"],sce=d.defineComponent({name:dft,props:{[Xw]:{},mode:{type:String},...Object.fromEntries(Jw.map(e=>[e,{type:Boolean,default:void 0}]))},emits:{[ace](e){return!0},"update:mode":function(e){return!0}},setup(e,{attrs:t,emit:n,expose:r}){var i;const o=(i=d.getCurrentInstance())==null?void 0:i.proxy,a=d.ref(),s=d.ref(!1),l=d.ref(!1),c=uft(h=>{if(l.value){l.value=!1;return}s.value=!0,n(ace,h.text===void 0?h.json:h.text)},100),u=h=>{n("update:mode",h)},f=(h,p)=>(...m)=>{h(...m),p(...m)};return r==null||r({jsonEditor:a}),d.onUnmounted(()=>{var h;(h=a.value)==null||h.destroy()}),d.onMounted(()=>{const h=Cg([e.mode,Qw.mode],{type:String}),p=Cg([e[Xw],Qw[Xw]]),m=Object.fromEntries(Array.from(Jw,v=>[v,Cg([e[v],Qw[v]])]).filter(([,v])=>v!==void 0)),b=Cg([m,t,lce,{onChange:c,onChangeMode:u,mode:h,...p!==void 0&&{content:{json:p}}}],{type:Object,mergeFunction:f});a.value=new Vat({target:o==null?void 0:o.$refs.jsonEditorRef,props:b}),d.watch(()=>e[Xw],v=>{if(s.value){s.value=!1;return}a.value&&(l.value=!0,a.value.set([void 0,""].includes(v)?{text:""}:{json:v}))},{deep:!0}),d.watch(()=>e.mode,v=>{var g;(g=a.value)==null||g.updateProps({mode:v})}),d.watch(()=>Array.from(Jw,v=>e[v]),v=>{var g;(g=a.value)==null||g.updateProps(Object.fromEntries(Array.from(v,(x,w)=>[Jw[w],x]).filter(([,x])=>x!==void 0)))}),d.watch(()=>t,v=>{var g;const x={};v.onChange&&(x.onChange=c),v.onChangeMode&&(x.onChangeMode=u),(g=a.value)==null||g.updateProps(Object.getOwnPropertyNames(x).length>0?Cg([v,x],{type:Object,mergeFunction:f}):v)},{deep:!0}),r||(r=v=>{for(const g in v)o[g]=d.unref(v[g])},r({jsonEditor:a}))}),()=>d.h("div",{ref:"jsonEditorRef"})}}),Qw={},lce={};function fft(e){return e.install=(t,n={})=>{const{props:r,attrs:i}=Ldt(n,{props:sce.props});Object.assign(Qw,r),Object.assign(lce,i),t.component(e.name,e)},e}const hft=fft(sce),pft={class:"json-editor-container"},mft={class:"json-editor-options"},gft={style:{display:"flex","align-items":"center",width:"100%"}},vft={name:"JsonEditor"},bft=d.defineComponent({...vft,props:{code:{type:String}},emits:["update:code"],setup(e,{emit:t}){const n=e,r=MY(n.code)?d.ref("standard"):d.ref("biz"),i=d.ref({json:{},useJson:!1}),o=[{label:"标准模式",value:"standard"},{label:"业务模式",value:"biz"}],a=d.ref(null),s=d.ref({variableName:"",functionArgs:[],isVar:!0,isFunction:!1});d.watch(()=>n.code,j=>{const M=MY(j);if(r.value=M?"standard":"biz",i.value.useJson=M,M)i.value.json=JSON.parse(j);else{const B=z6(j);s.value.variableName=B.varName,s.value.isVar=B.isVar,s.value.isFunction=B.isFunction,s.value.functionArgs=B.args.map(V=>{const R=V.type===mu,I=V.type;return{content:R?IY(V6(V6(V.content,"'"),'"')):V.content,type:I}})}},{immediate:!0});const l=t,c=d.ref(!1),u=()=>{c.value=!0},f=()=>({content:"",type:"string"}),h=d.ref("light"),p=d.computed(()=>h.value==="dark"?"json-editor jse-theme-dark":"json-editor"),m=d.ref("text"),b=d.ref(!1),v=d.ref(!0),g=d.ref(!1),x=d.ref(!1),w=d.ref(!1),y=d.ref(600),C=d.ref(600),_=d.computed(()=>({width:`${y.value}px`,height:`${C.value}px`})),S=d.computed(()=>{const j=r.value==="biz"?90:0;return{height:`${C.value-180-j}px`}}),E=d.ref(d.markRaw(pu));function $(){w.value=!w.value,w.value?(y.value=window.innerWidth,C.value=window.innerHeight,E.value=K2):(y.value=600,C.value=800,E.value=pu)}const k=d.computed(()=>{let j=s.value.variableName;return s.value.isFunction&&(j+="(",s.value.functionArgs.length>0&&(j+=s.value.functionArgs.map(M=>{const B=M.content;switch(M.type){case"string":case"jsonstring":return`'${B}'`;default:return B}}).join(",")),j+=")"),s.value.isVar&&(j=`\${${j}}`),j}),P=()=>{if(r.value==="standard"){const j=d.toRaw(i.value.json),M=typeof j=="string"?j:JSON.stringify(j);l("update:code",M)}else l("update:code",k.value||"");c.value=!1},T=()=>d.createVNode("div",{class:"json-dialog-title-container"},[d.createVNode("span",null,[d.createTextVNode("JSON 编辑器")]),d.createVNode("span",null,[d.createVNode(E.value,{onClick:$,class:"edit-icon"},null)])]);return(j,M)=>{const B=d.resolveComponent("n-radio-button"),V=d.resolveComponent("n-radio-group"),R=d.resolveComponent("n-input"),I=d.resolveComponent("n-form-item"),G=d.resolveComponent("n-tooltip"),F=d.resolveComponent("n-checkbox"),z=d.resolveComponent("JsonEditor",!0),A=d.resolveComponent("n-select"),L=d.resolveComponent("n-dynamic-input"),N=d.resolveComponent("n-form"),q=d.resolveComponent("n-button"),oe=d.resolveComponent("n-modal");return d.openBlock(),d.createElementBlock(d.Fragment,null,[d.createVNode(oe,{show:c.value,"onUpdate:show":M[8]||(M[8]=ee=>c.value=ee),"mask-closable":!1,preset:"dialog",title:T,"show-icon":!1,style:d.normalizeStyle(_.value)},{action:d.withCtx(()=>[d.createVNode(q,{size:"small",type:"info",onClick:P},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(j.$t("panel.confirm")),1)]),_:1})]),default:d.withCtx(()=>[d.createElementVNode("div",pft,[d.createElementVNode("div",mft,[d.createVNode(V,{value:d.unref(r),"onUpdate:value":M[0]||(M[0]=ee=>d.isRef(r)?r.value=ee:null),name:"modeSelect",style:{"margin-bottom":"10px"}},{default:d.withCtx(()=>[(d.openBlock(),d.createElementBlock(d.Fragment,null,d.renderList(o,ee=>d.createVNode(B,{key:ee.value,value:ee.value,label:ee.label},null,8,["value","label"])),64))]),_:1},8,["value"])]),d.unref(r)==="biz"?(d.openBlock(),d.createBlock(N,{key:0,ref_key:"formRef",ref:a,model:s.value,"label-placement":"left","label-width":"auto","require-mark-placement":"right-hanging",size:"small",style:{maxWidth:"640px",marginTop:"10px"}},{default:d.withCtx(()=>[d.createVNode(I,{label:"变量内容",path:"variableName"},{default:d.withCtx(()=>[d.createVNode(R,{value:s.value.variableName,"onUpdate:value":M[1]||(M[1]=ee=>s.value.variableName=ee),type:"textarea",placeholder:"请输入变量名,例如:name、person.name",autosize:{minRows:2},onKeydown:M[2]||(M[2]=d.withKeys(d.withModifiers(()=>{},["prevent"]),["enter"]))},null,8,["value"])]),_:1}),d.createVNode(I,{label:"表达式配置",path:"checkboxGroupValue"},{default:d.withCtx(()=>[d.createVNode(F,{checked:s.value.isVar,"onUpdate:checked":M[3]||(M[3]=ee=>s.value.isVar=ee)},{default:d.withCtx(()=>[d.createVNode(G,{trigger:"hover",width:"200"},{trigger:d.withCtx(()=>[d.createTextVNode(" 变量格式 ")]),default:d.withCtx(()=>[d.createTextVNode(" 勾选此项,将自动给结果添加 ${ } 包裹,例如:你填写的变量是 name,则会被自动包裹为 ${name} ")]),_:1})]),_:1},8,["checked"]),d.createVNode(F,{checked:s.value.isFunction,"onUpdate:checked":M[4]||(M[4]=ee=>s.value.isFunction=ee)},{default:d.withCtx(()=>[d.createVNode(G,{trigger:"hover",width:"200"},{trigger:d.withCtx(()=>[d.createTextVNode(" 函数格式 ")]),default:d.withCtx(()=>[d.createTextVNode(" 勾选此项,变量将视为函数,并自动添加 () 后缀,且支持入参设置,例如:你填写的变量是 name,则会被自动包裹为 name() ")]),_:1})]),_:1},8,["checked"])]),_:1}),s.value.isFunction?(d.openBlock(),d.createBlock(I,{key:0,label:"入参列表",path:"functionArgs"},{default:d.withCtx(()=>[d.createVNode(L,{value:s.value.functionArgs,"onUpdate:value":M[6]||(M[6]=ee=>s.value.functionArgs=ee),"on-create":f,"show-sort-button":""},{"create-button-default":d.withCtx(()=>[d.createTextVNode(" 新增入参 ")]),default:d.withCtx(({value:ee})=>[d.createElementVNode("div",gft,[d.createVNode(R,{value:ee.content,"onUpdate:value":be=>ee.content=be,type:"text",placeholder:"请输入变量"},{suffix:d.withCtx(()=>[d.createVNode(z,{code:ee.content,"onUpdate:code":be=>ee.content=be},null,8,["code","onUpdate:code"])]),_:2},1032,["value","onUpdate:value"]),d.createVNode(A,{value:ee.type,"onUpdate:value":be=>ee.type=be,options:d.unref(ELe),style:{width:"120px"},onKeydown:M[5]||(M[5]=d.withKeys(d.withModifiers(()=>{},["prevent"]),["enter"]))},null,8,["value","onUpdate:value","options"])])]),_:1},8,["value"])]),_:1})):d.createCommentVNode("",!0),d.createVNode(I,{label:"结果预览"},{default:d.withCtx(()=>[d.createElementVNode("span",null,d.toDisplayString(k.value),1)]),_:1})]),_:1},8,["model"])):d.createCommentVNode("",!0),d.unref(r)==="standard"?(d.openBlock(),d.createBlock(d.unref(hft),{key:1,style:d.normalizeStyle(S.value),class:d.normalizeClass(p.value),modelValue:i.value.json,"onUpdate:modelValue":M[7]||(M[7]=ee=>i.value.json=ee),mode:m.value,"read-only":b.value,"main-menu-bar":v.value,"navigation-bar":g.value,"status-bar":x.value},null,8,["style","class","modelValue","mode","read-only","main-menu-bar","navigation-bar","status-bar"])):d.createCommentVNode("",!0)])]),_:1},8,["show","style"]),d.createVNode(d.unref(fDe),{style:{cursor:"pointer"},onClick:u})],64)}}}),td=va(bft,[["__scopeId","data-v-58bc4efb"]]),yft={class:"element-conditional"},xft=d.defineComponent({__name:"ElementConditional",setup(e){const t=d.ref(!1),n=d.ref(!1),r=d.ref(void 0),i=d.ref(void 0),o=Zt(Ut),a=()=>{t.value=VY(o.activeElement),r.value=hBe(o.activeElement),t.value&&(n.value=!dBe(o.activeElement),i.value=mBe(o.activeElement))},s=C=>{pBe(o.activeElement,C)},l=C=>{gBe(o.activeElement,C)},c=d.ref([]),u=d.ref({}),f=()=>{u.value.conditionType=vBe(o.activeElement),u.value.conditionType==="expression"&&p(),u.value.conditionType==="script"&&b()},h=C=>{bBe(o.activeElement,C)},p=()=>{u.value.expression=HY(o.activeElement)},m=C=>{UY(o.activeElement,C)},b=()=>{u.value.language=wBe(o.activeElement),u.value.scriptType=yBe(o.activeElement),u.value.body=_Be(o.activeElement),u.value.resource=EBe(o.activeElement)},v=C=>{CBe(o.activeElement,C)},g=C=>{xBe(o.activeElement,C)},x=C=>{SBe(o.activeElement,C)},w=C=>{kBe(o.activeElement,C)};return Go(()=>{a(),f(),c.value=$Be(o.activeElement)}),(C,_)=>{const S=d.resolveComponent("n-input"),E=d.resolveComponent("n-select"),$=d.resolveComponent("n-collapse-item");return d.openBlock(),d.createBlock($,{name:"element-conditional"},d.createSlots({header:d.withCtx(()=>[d.createVNode(Mo,{title:C.$t("panel.conditionalSettings")},{default:d.withCtx(()=>[d.createVNode(d.unref(_De))]),_:1},8,["title"])]),default:d.withCtx(()=>[d.createElementVNode("div",yft,[t.value?(d.openBlock(),d.createElementBlock(d.Fragment,{key:0},[d.createVNode(ci,{key:"variableName",label:C.$t("panel.variableName"),"label-width":120},{default:d.withCtx(()=>[d.createVNode(S,{value:r.value,"onUpdate:value":_[0]||(_[0]=k=>r.value=k),maxlength:"32",onChange:s},null,8,["value"])]),_:1},8,["label"]),n.value?(d.openBlock(),d.createBlock(ci,{key:"variableEvent",label:C.$t("panel.variableEvents"),"label-width":120},{default:d.withCtx(()=>[d.createVNode(S,{value:i.value,"onUpdate:value":_[1]||(_[1]=k=>i.value=k),onChange:l},null,8,["value"])]),_:1},8,["label"])):d.createCommentVNode("",!0)],64)):d.createCommentVNode("",!0),d.createVNode(ci,{key:"condition",label:C.$t("panel.conditionType"),"label-width":120},{default:d.withCtx(()=>[d.createVNode(E,{value:u.value.conditionType,"onUpdate:value":[_[2]||(_[2]=k=>u.value.conditionType=k),h],options:c.value},null,8,["value","options"])]),_:1},8,["label"]),u.value.conditionType&&u.value.conditionType==="expression"?(d.openBlock(),d.createBlock(ci,{key:"expression",label:C.$t("panel.conditionExpression"),"label-width":120},{default:d.withCtx(()=>[d.createVNode(S,{value:u.value.expression,"onUpdate:value":_[4]||(_[4]=k=>u.value.expression=k),onChange:m},{suffix:d.withCtx(()=>[d.createVNode(td,{code:u.value.expression,"onUpdate:code":_[3]||(_[3]=k=>u.value.expression=k)},null,8,["code"])]),_:1},8,["value"])]),_:1},8,["label"])):d.createCommentVNode("",!0),u.value.conditionType&&u.value.conditionType==="script"?(d.openBlock(),d.createElementBlock(d.Fragment,{key:2},[d.createVNode(ci,{key:"scriptType",label:C.$t("panel.scriptType"),"label-width":120},{default:d.withCtx(()=>[d.createVNode(E,{value:u.value.scriptType,"onUpdate:value":[_[5]||(_[5]=k=>u.value.scriptType=k),g],options:d.unref(fK)},null,8,["value","options"])]),_:1},8,["label"]),d.createVNode(ci,{key:"scriptLanguage",label:C.$t("panel.scriptLanguage"),"label-width":120},{default:d.withCtx(()=>[d.createVNode(S,{value:u.value.language,"onUpdate:value":_[6]||(_[6]=k=>u.value.language=k),onChange:v},null,8,["value"])]),_:1},8,["label"]),d.withDirectives(d.createVNode(ci,{key:"scriptBody",label:C.$t("panel.scriptBody"),"label-width":120},{default:d.withCtx(()=>[d.createVNode(S,{value:u.value.body,"onUpdate:value":_[7]||(_[7]=k=>u.value.body=k),type:"textarea",onChange:x},null,8,["value"])]),_:1},8,["label"]),[[d.vShow,u.value.scriptType==="inline"]]),d.withDirectives(d.createVNode(ci,{key:"scriptResource",label:C.$t("panel.scriptResource"),"label-width":120},{default:d.withCtx(()=>[d.createVNode(S,{value:u.value.resource,"onUpdate:value":_[8]||(_[8]=k=>u.value.resource=k),onChange:w},null,8,["value"])]),_:1},8,["label"]),[[d.vShow,u.value.scriptType==="external"]])],64)):d.createCommentVNode("",!0)])]),_:2},[u.value.conditionType!==""&&u.value.conditionType!=="none"?{name:"header-extra",fn:d.withCtx(()=>[d.createVNode(ka)]),key:"0"}:void 0]),1024)}}});function wft(e){return Cft(e,"bpmn:TimerEventDefinition")}function Cft(e,t){const r=rt(e).get("eventDefinitions")||[];return ar(r,function(i){return Q(i,t)})}function _ft(e){return!!(e.get(`${Ot}:asyncBefore`)||e.get(`${Ot}:async`))}function Sft(e){return!!e.get(`${Ot}:asyncAfter`)}function cce(e){return Sft(e)||_ft(e)}function uce(e){const t=rt(e);return Q(e,`${Ot}:AsyncCapable`)&&cce(t)||!!hce(e)}function dce(e){const t=rt(e);return Q(e,`${Ot}:JobPriorized`)&&cce(t)||Q(e,"bpmn:Process")||Q(e,"bpmn:Participant")&&t.get("processRef")||!!hce(e)}function Eft(e){return uce(e)||dce(e)}function kft(e){return fce(e).get(`${Ot}:taskPriority`)}function $ft(e,t){var i;const n=Zt(Ut),r=fce(e);(i=n.modeling)==null||i.updateModdleProperties(e,r,{[`${Ot}:taskPriority`]:t})}function Tft(e){const t=rt(e),n=Zh(t,`${Ot}:FailedJobRetryTimeCycle`)[0];return n&&n.body}function Rft(e,t){var a,s,l;const n=Zt(Ut),r=rt(e);let i=r.get("extensionElements");i||(i=$0("bpmn:ExtensionElements",{values:[]},r),(a=n.modeling)==null||a.updateModdleProperties(e,r,{extensionElements:i}));let o=Zh(r,`${Ot}:FailedJobRetryTimeCycle`)[0];o||(o=$0(`${Ot}:FailedJobRetryTimeCycle`,{},i),(s=n.modeling)==null||s.updateModdleProperties(e,i,{values:[...i.get("values"),o]})),(l=n.modeling)==null||l.updateModdleProperties(e,o,{body:t})}function Pft(e){const t=fu(e),n=t&&t.get(`${Ot}:type`);return t&&Q(t,`${Ot}:ServiceTaskLike`)&&n&&n==="external"}function fce(e){let t;return Q(e,"bpmn:Participant")?t=rt(e).get("processRef"):Pft(e)?t=fu(e):t=rt(e),t}function hce(e){return Q(e,"bpmn:Event")&&wft(e)}const Oft={class:"element-external-task"},jft=d.defineComponent({__name:"ElementJobExecution",setup(e){const t=d.ref(void 0),n=d.ref(!1),r=Zt(Ut),{activeElementId:i}=Hs.storeToRefs(r),o=()=>{n.value=uce(r.activeElement),t.value=Tft(r.activeElement)||""},a=h=>{Rft(r.activeElement,h)},s=d.ref(void 0),l=d.ref(!1),c=()=>{l.value=dce(r.activeElement),s.value=kft(r.activeElement)||""},u=h=>{$ft(r.activeElement,h)};return d.watch(()=>i,()=>{o(),c()},{immediate:!0}),Go(()=>{o(),c()}),(h,p)=>{const m=d.resolveComponent("n-input"),b=d.resolveComponent("n-collapse-item");return d.openBlock(),d.createBlock(b,{name:"element-external-task"},d.createSlots({header:d.withCtx(()=>[d.createVNode(Mo,{title:h.$t("panel.jobExecution")},{default:d.withCtx(()=>[d.createVNode(d.unref(XDe))]),_:1},8,["title"])]),default:d.withCtx(()=>[d.createElementVNode("div",Oft,[l.value?(d.openBlock(),d.createBlock(ci,{key:0,label:h.$t("panel.taskPriority"),"label-width":100},{default:d.withCtx(()=>[d.createVNode(m,{value:s.value,"onUpdate:value":p[0]||(p[0]=v=>s.value=v),maxlength:"32",onChange:u},null,8,["value"])]),_:1},8,["label"])):d.createCommentVNode("",!0),n.value?(d.openBlock(),d.createBlock(ci,{key:1,label:h.$t("panel.retryTimeCycle"),"label-width":100},{default:d.withCtx(()=>[d.createVNode(m,{value:t.value,"onUpdate:value":p[1]||(p[1]=v=>t.value=v),maxlength:"32",onChange:a},null,8,["value"])]),_:1},8,["label"])):d.createCommentVNode("",!0)])]),_:2},[t.value||s.value?{name:"header-extra",fn:d.withCtx(()=>[d.createVNode(ka)]),key:"0"}:void 0]),1024)}}});function Mft(e){return Fft(e.businessObject)}function Aft(e,t){var r;(r=Zt(Ut).modeling)==null||r.updateModdleProperties(e,e.businessObject,{[`${Ot}:asyncBefore`]:t,[`${Ot}:async`]:void 0})}function Nft(e){return zft(e.businessObject)}function Dft(e,t){var r;(r=Zt(Ut).modeling)==null||r.updateModdleProperties(e,e.businessObject,{[`${Ot}:asyncAfter`]:t})}function Ift(e){return Vft(e.businessObject)}function Lft(e,t){var r;(r=Zt(Ut).modeling)==null||r.updateModdleProperties(e,e.businessObject,{[`${Ot}:exclusive`]:t})}function Bft(e){return Q(e,`${Ot}:AsyncCapable`)}function Fft(e){return!!(e.get(`${Ot}:asyncBefore`)||e.get(`${Ot}:async`))}function zft(e){return!!e.get(`${Ot}:asyncAfter`)}function Vft(e){return!!e.get(`${Ot}:exclusive`)}const Hft=d.defineComponent({__name:"ElementAsyncContinuations",setup(e){const t=d.ref(!1),n=d.ref(!1),r=d.ref(!1),i=d.computed(()=>t.value||n.value),o=Zt(Ut),a=()=>{t.value=Mft(o.activeElement),n.value=Nft(o.activeElement),r.value=Ift(o.activeElement)},s=u=>{Aft(o.activeElement,u),a()},l=u=>{Dft(o.activeElement,u),a()},c=u=>{Lft(o.activeElement,u),a()};return Go(a),(u,f)=>{const h=d.resolveComponent("n-switch"),p=d.resolveComponent("n-collapse-item");return d.openBlock(),d.createBlock(p,{name:"element-async-continuations"},d.createSlots({header:d.withCtx(()=>[d.createVNode(Mo,{title:u.$t("panel.asyncContinuations")},{default:d.withCtx(()=>[d.createVNode(d.unref(lIe))]),_:1},8,["title"])]),default:d.withCtx(()=>[d.createVNode(ci,{label:u.$t("panel.asyncBefore"),"label-width":120},{default:d.withCtx(()=>[d.createVNode(h,{value:t.value,"onUpdate:value":[f[0]||(f[0]=m=>t.value=m),s]},null,8,["value"])]),_:1},8,["label"]),d.createVNode(ci,{label:u.$t("panel.asyncAfter"),"label-width":120},{default:d.withCtx(()=>[d.createVNode(h,{value:n.value,"onUpdate:value":[f[1]||(f[1]=m=>n.value=m),l]},null,8,["value"])]),_:1},8,["label"]),i.value?(d.openBlock(),d.createBlock(ci,{key:0,label:u.$t("panel.asyncExclusive"),"label-width":120},{default:d.withCtx(()=>[d.createVNode(h,{value:r.value,"onUpdate:value":[f[2]||(f[2]=m=>r.value=m),c]},null,8,["value"])]),_:1},8,["label"])):d.createCommentVNode("",!0)]),_:2},[n.value||t.value?{name:"header-extra",fn:d.withCtx(()=>[d.createVNode(ka)]),key:"0"}:void 0]),1024)}}}),Uft={class:"element-extension-properties"},Wft=va(d.defineComponent({__name:"ElementExtensionProperties",setup(e){const{appContext:t}=d.getCurrentInstance(),{$t:n}=t.config.globalProperties,r=d.ref([]),i=d.ref([]),o=d.ref(null),a=d.reactive({name:"",value:""}),s=d.reactive({name:{required:!0,message:"属性名称不能为空",trigger:["blur","change"]},value:{required:!0,message:"属性值不能为空",trigger:["blur","change"]}}),l=d.ref(!1),c=[{title:n("panel.index"),key:"index",render:(v,g)=>g+1,width:60},{title:"Name",key:"name",ellipsis:{tooltip:!0}},{title:"Value",key:"value",ellipsis:{tooltip:!0}},{title:n("panel.operations"),key:"operation",width:80,align:"center",render:(v,g)=>d.h(_n,{quaternary:!0,size:"small",type:"error",onClick:()=>p(g)},{default:()=>n("panel.remove")})}],u=Zt(Ut),{activeElementId:f}=Hs.storeToRefs(u);d.watch(()=>f,(v,g)=>{v!==g&&h()},{immediate:!0});async function h(){l.value=!1,await d.nextTick(),a.name="",a.value="",i.value=d.markRaw(c$(u.activeElement)),r.value=JSON.parse(JSON.stringify(i.value))}function p(v){EAe(u.activeElement,i.value[v]),h()}async function m(){var v;(v=o.value)==null||v.validate(g=>{g||(ps(u.activeElement,d.toRaw(a)),h())})}async function b(){var v;l.value=!0,await d.nextTick(),(v=o.value)==null||v.restoreValidation()}return d.onMounted(()=>{h(),af.on("element-update",h)}),(v,g)=>{const x=d.resolveComponent("n-tag"),w=d.resolveComponent("n-data-table"),y=d.resolveComponent("n-input"),C=d.resolveComponent("n-form-item"),_=d.resolveComponent("n-form"),S=d.resolveComponent("n-modal"),E=d.resolveComponent("n-collapse-item");return d.openBlock(),d.createBlock(E,{name:"element-extension-properties"},{header:d.withCtx(()=>[d.createVNode(Mo,{title:d.unref(n)("panel.extensionProperties")},{default:d.withCtx(()=>[d.createVNode(d.unref(iIe))]),_:1},8,["title"])]),"header-extra":d.withCtx(()=>[d.createVNode(x,{type:"primary",round:""},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(r.value.length),1)]),_:1})]),default:d.withCtx(()=>[d.createElementVNode("div",Uft,[d.createVNode(w,{size:"small","max-height":"20vh",columns:c,data:r.value},null,8,["data"]),d.createVNode(d.unref(_n),{type:"info",class:"inline-large-button",secondary:"",onClick:b},{default:d.withCtx(()=>[d.createVNode(d.unref(D6),{class:"button-icon"}),d.createElementVNode("span",null,d.toDisplayString(d.unref(n)("panel.addExtensionProperties")),1)]),_:1})]),d.createVNode(S,{show:l.value,"onUpdate:show":g[5]||(g[5]=$=>l.value=$),preset:"dialog",title:d.unref(n)("panel.addExtensionProperties"),style:{width:"640px"}},{action:d.withCtx(()=>[d.createVNode(d.unref(_n),{size:"small",type:"info",onClick:m},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(d.unref(n)("panel.confirm")),1)]),_:1})]),default:d.withCtx(()=>[d.createVNode(_,{ref_key:"formRef",ref:o,model:a,rules:s,"aria-modal":"true"},{default:d.withCtx(()=>[d.createVNode(C,{path:"name",label:d.unref(n)("panel.propertyName")},{default:d.withCtx(()=>[d.createVNode(y,{value:a.name,"onUpdate:value":g[0]||(g[0]=$=>a.name=$),onKeydown:g[1]||(g[1]=d.withKeys(d.withModifiers(()=>{},["prevent"]),["enter"]))},null,8,["value"])]),_:1},8,["label"]),d.createVNode(C,{path:"value",label:d.unref(n)("panel.propertyValue")},{default:d.withCtx(()=>[d.createVNode(y,{value:a.value,"onUpdate:value":g[3]||(g[3]=$=>a.value=$),onKeydown:g[4]||(g[4]=d.withKeys(d.withModifiers(()=>{},["prevent"]),["enter"]))},{suffix:d.withCtx(()=>[d.createVNode(td,{code:a.value,"onUpdate:code":g[2]||(g[2]=$=>a.value=$)},null,8,["code"])]),_:1},8,["value"])]),_:1},8,["label"])]),_:1},8,["model","rules"])]),_:1},8,["show","title"])]),_:1})}}}),[["__scopeId","data-v-450e7dc7"]]),qft={class:"element-field-list"};function pce(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!d.isVNode(e)}const Gft=va(d.defineComponent({__name:"FieldList",props:{fields:{default:()=>[]}},emits:["addProperty","updateProperty","removeProperty"],setup(e,{emit:t}){const{appContext:n}=d.getCurrentInstance(),{$t:r}=n.config.globalProperties,i=t;let o=-1;const a=[{value:"string",label:"String"},{value:"expression",label:"Expression"}],s=d.ref(null),l=d.ref({name:"",value:"",type:"string"}),c=d.reactive({name:{required:!0,message:"名称不能为空",trigger:["blur","change"]},type:{required:!0,message:"类型不能为空",trigger:["blur","change"]}}),u=d.ref(!1),f=[{title:r("panel.index"),key:"index",render:(v,g)=>g+1,width:60},{title:"Name",key:"name",ellipsis:{tooltip:!0}},{title:"Type",key:"type",ellipsis:{tooltip:!0}},{title:"Value",key:"value",ellipsis:{tooltip:!0}},{title:r("panel.operations"),key:"operation",width:80,align:"center",render:(v,g)=>{let x,w;return[d.createVNode(_n,{quaternary:!0,size:"small",type:"info",onClick:()=>h(g,v)},pce(x=r("panel.edit"))?x:{default:()=>[x]}),d.createVNode(_n,{quaternary:!0,size:"small",type:"error",onClick:()=>m(g)},pce(w=r("panel.remove"))?w:{default:()=>[w]})]}}],h=async(v,g)=>{o=v,g&&(l.value=JSON.parse(JSON.stringify(g))),u.value=!0,await d.nextTick(),s.value&&s.value.restoreValidation()};async function p(){var v;(v=s.value)==null||v.validate(g=>{g||(o===-1?i("addProperty",l.value):i("updateProperty",o,l.value),b())})}function m(v){i("removeProperty",v),b()}async function b(){u.value=!1,await d.nextTick(),l.value={name:"",value:"",type:"string"}}return Go(b),(v,g)=>{const x=d.resolveComponent("n-data-table"),w=d.resolveComponent("n-input"),y=d.resolveComponent("n-form-item"),C=d.resolveComponent("n-select"),_=d.resolveComponent("n-form"),S=d.resolveComponent("n-modal");return d.openBlock(),d.createElementBlock(d.Fragment,null,[d.createElementVNode("div",qft,[d.createVNode(x,{size:"small","max-height":"20vh",columns:f,data:v.fields},null,8,["data"]),d.createVNode(d.unref(_n),{type:"info",class:"inline-large-button",secondary:"",onClick:g[0]||(g[0]=E=>h(-1))},{default:d.withCtx(()=>[d.createVNode(d.unref(D6),{class:"button-icon"}),d.createElementVNode("span",null,d.toDisplayString(d.unref(r)("panel.addFieldInjectionProperties")),1)]),_:1})]),d.createVNode(S,{show:u.value,"onUpdate:show":g[8]||(g[8]=E=>u.value=E),preset:"dialog","mask-closable":!1,title:d.unref(r)("panel.addFieldInjectionProperties"),style:{width:"640px"}},{action:d.withCtx(()=>[d.createVNode(d.unref(_n),{size:"small",type:"info",onClick:p},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(d.unref(r)("panel.confirm")),1)]),_:1})]),default:d.withCtx(()=>[d.createVNode(_,{ref_key:"formRef",ref:s,model:l.value,rules:c,"aria-modal":"true"},{default:d.withCtx(()=>[d.createVNode(y,{path:"name",label:d.unref(r)("panel.fieldName")},{default:d.withCtx(()=>[d.createVNode(w,{value:l.value.name,"onUpdate:value":g[1]||(g[1]=E=>l.value.name=E),onKeydown:g[2]||(g[2]=d.withKeys(d.withModifiers(()=>{},["prevent"]),["enter"]))},null,8,["value"])]),_:1},8,["label"]),d.createVNode(y,{path:"value",label:d.unref(r)("panel.fieldType")},{default:d.withCtx(()=>[d.createVNode(C,{value:l.value.type,"onUpdate:value":g[3]||(g[3]=E=>l.value.type=E),options:a,onKeydown:g[4]||(g[4]=d.withKeys(d.withModifiers(()=>{},["prevent"]),["enter"]))},null,8,["value"])]),_:1},8,["label"]),d.createVNode(y,{path:"value",label:d.unref(r)("panel.fieldValue")},{default:d.withCtx(()=>[d.createVNode(w,{value:l.value.value,"onUpdate:value":g[6]||(g[6]=E=>l.value.value=E),onKeydown:g[7]||(g[7]=d.withKeys(d.withModifiers(()=>{},["prevent"]),["enter"]))},{suffix:d.withCtx(()=>[d.createVNode(td,{code:l.value.value,"onUpdate:code":g[5]||(g[5]=E=>l.value.value=E)},null,8,["code"])]),_:1},8,["value"])]),_:1},8,["label"])]),_:1},8,["model","rules"])]),_:1},8,["show","title"])],64)}}}),[["__scopeId","data-v-9e2fdc07"]]),Kft={class:"element-listeners"};function mce(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!d.isVNode(e)}const gce=va(d.defineComponent({__name:"ElementListeners",props:{elementType:{type:String,required:!0}},setup(e){const t=e,n=d.ref(t.elementType),{appContext:r}=d.getCurrentInstance(),{$t:i}=r.config.globalProperties,o=d.computed(()=>n.value==="TaskListener"),a=d.computed(()=>o.value?i("panel.TaskListeners"):i("panel.executionListeners")),s=d.computed(()=>o.value?i("panel.addTaskListener"):i("panel.addExecutionListener")),l=d.computed(()=>o.value?JNe:mIe),c=d.ref(!1),u=d.ref([]);let f=d.markRaw([]);const h=d.ref({id:"",event:"",type:"class",class:""}),p=d.ref(null),m=d.ref({listenerType:"class",scriptType:"none"}),b=d.ref([{label:"Start",value:"start"},{label:"End",value:"end"}]);let v=-1;const g={event:{required:!0,trigger:["blur","change"],message:"事件类型不能为空"},type:{required:!0,trigger:["blur","change"],message:"监听器类型不能为空"}},x=d.computed(()=>[{title:i("panel.index"),key:"index",render:(T,j)=>j+1,width:60},{title:i("panel.eventType"),key:"event",ellipsis:{tooltip:!0}},{title:i("panel.listenerType"),key:"type",ellipsis:{tooltip:!0}},{title:i("panel.fieldCount"),key:"fields",ellipsis:{tooltip:!0},render:T=>{var j;return((j=T.fields)==null?void 0:j.length)||0}},{title:i("panel.operations"),key:"operation",width:140,align:"center",render:(T,j)=>{let M,B;return d.h("span",{},[d.createVNode(_n,{quaternary:!0,size:"small",type:"info",onClick:()=>$(j,T)},mce(M=i("panel.edit"))?M:{default:()=>[M]}),d.createVNode(_n,{quaternary:!0,size:"small",type:"error",onClick:()=>S(j)},mce(B=i("panel.remove"))?B:{default:()=>[B]})])}}]),w=T=>{m.value.listenerType=T,h.value={event:h.value.event,type:T,fields:h.value.fields,...T==="script"?{script:h.value.script||{}}:{}}},y=T=>{var j;m.value.scriptType=T,h.value.script={scriptFormat:(j=h.value.script)==null?void 0:j.scriptFormat,scriptType:T}},C=Zt(Ut),_=()=>{c.value=!1,w("class"),b.value=CLe(C.activeElement,n.value),h.value={event:DY(C.activeElement,n.value),type:"class",class:""},f=d.markRaw(AY(C.activeElement,n.value));const T=f.map(j=>({...j,...j.script?{script:{...j.script,scriptType:gLe(j.script)}}:{},type:wLe(j,n.value)||"class"}));u.value=JSON.parse(JSON.stringify(T))},S=T=>{const j=f[T];bLe(C.activeElement,j),_()},E=async()=>{await p.value.validate(),v===-1?X2(C.activeElement,h.value,n.value):NY(C.activeElement,h.value,f[v],n.value),_()},$=async(T,j)=>{const M=T===-1;!M&&!j&&console.error("error:listenerData is required when create new listener"),v=T,M?(h.value={event:DY(C.activeElement,n.value),type:"class"},m.value.listenerType="class"):(h.value=JSON.parse(JSON.stringify(j)),h.value.fields&&(h.value.fields=h.value.fields.map(OK)),m.value.listenerType=(j==null?void 0:j.type)||"class"),c.value=!0,await d.nextTick(),p.value&&p.value.restoreValidation()},k=T=>{var j;h.value.fields||(h.value.fields=[]),(j=h.value.fields)==null||j.push(T)},P=T=>{h.value.fields||(h.value.fields=[]),h.value.fields.splice(T,1)};return Go(_),(T,j)=>{const M=d.resolveComponent("n-tag"),B=d.resolveComponent("n-data-table"),V=d.resolveComponent("n-select"),R=d.resolveComponent("n-form-item"),I=d.resolveComponent("n-input"),G=d.resolveComponent("n-form"),F=d.resolveComponent("n-modal"),z=d.resolveComponent("n-collapse-item");return d.openBlock(),d.createBlock(z,{name:"element-listeners-"+n.value},{header:d.withCtx(()=>[d.createVNode(Mo,{title:a.value},{default:d.withCtx(()=>[d.createVNode(d.unref(l))]),_:1},8,["title"])]),"header-extra":d.withCtx(()=>[d.createVNode(M,{type:"primary",round:""},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(u.value.length),1)]),_:1})]),default:d.withCtx(()=>[d.createElementVNode("div",Kft,[d.createVNode(B,{size:"small","max-height":"20vh",columns:x.value,data:u.value},null,8,["columns","data"]),d.createVNode(d.unref(_n),{type:"info",class:"inline-large-button",secondary:"",onClick:j[0]||(j[0]=A=>$(-1))},{default:d.withCtx(()=>[d.createVNode(d.unref(D6),{class:"button-icon"}),d.createElementVNode("span",null,d.toDisplayString(s.value),1)]),_:1})]),d.createVNode(F,{show:c.value,"onUpdate:show":j[18]||(j[18]=A=>c.value=A),preset:"dialog","mask-closable":!1,title:s.value,style:{width:"640px"}},{action:d.withCtx(()=>[d.createVNode(d.unref(_n),{size:"small",type:"info",onClick:E},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(d.unref(i)("panel.confirm")),1)]),_:1})]),default:d.withCtx(()=>[d.createVNode(G,{ref_key:"formRef",ref:p,"label-placement":"left","label-width":"100","require-mark-placement":"right-hanging",model:h.value,rules:g,class:"need-filled","aria-modal":"true"},{default:d.withCtx(()=>[d.createVNode(R,{path:"event",label:d.unref(i)("panel.eventType")},{default:d.withCtx(()=>[d.createVNode(V,{value:h.value.event,"onUpdate:value":j[1]||(j[1]=A=>h.value.event=A),options:b.value},null,8,["value","options"])]),_:1},8,["label"]),d.createVNode(R,{path:"type",label:d.unref(i)("panel.listenerType")},{default:d.withCtx(()=>[d.createVNode(V,{value:h.value.type,"onUpdate:value":[j[2]||(j[2]=A=>h.value.type=A),w],options:d.unref(_Ae)},null,8,["value","options"])]),_:1},8,["label"]),m.value.listenerType==="class"?(d.openBlock(),d.createBlock(R,{key:0,path:"class",label:d.unref(i)("panel.javaClass")},{default:d.withCtx(()=>[d.createVNode(I,{value:h.value.class,"onUpdate:value":j[3]||(j[3]=A=>h.value.class=A),onKeydown:j[4]||(j[4]=d.withKeys(d.withModifiers(()=>{},["prevent"]),["enter"]))},null,8,["value"])]),_:1},8,["label"])):d.createCommentVNode("",!0),m.value.listenerType==="expression"?(d.openBlock(),d.createBlock(R,{key:1,path:"expression",label:d.unref(i)("panel.expression")},{default:d.withCtx(()=>[d.createVNode(I,{value:h.value.expression,"onUpdate:value":j[6]||(j[6]=A=>h.value.expression=A),onKeydown:j[7]||(j[7]=d.withKeys(d.withModifiers(()=>{},["prevent"]),["enter"]))},{suffix:d.withCtx(()=>[d.createVNode(td,{code:h.value.expression,"onUpdate:code":j[5]||(j[5]=A=>h.value.expression=A)},null,8,["code"])]),_:1},8,["value"])]),_:1},8,["label"])):d.createCommentVNode("",!0),m.value.listenerType==="delegateExpression"?(d.openBlock(),d.createBlock(R,{key:2,path:"delegateExpression",label:d.unref(i)("panel.delegateExpression")},{default:d.withCtx(()=>[d.createVNode(I,{value:h.value.delegateExpression,"onUpdate:value":j[9]||(j[9]=A=>h.value.delegateExpression=A),onKeydown:j[10]||(j[10]=d.withKeys(d.withModifiers(()=>{},["prevent"]),["enter"]))},{suffix:d.withCtx(()=>[d.createVNode(td,{code:h.value.delegateExpression,"onUpdate:code":j[8]||(j[8]=A=>h.value.delegateExpression=A)},null,8,["code"])]),_:1},8,["value"])]),_:1},8,["label"])):d.createCommentVNode("",!0),m.value.listenerType==="script"&&h.value.script?(d.openBlock(),d.createElementBlock(d.Fragment,{key:3},[d.createVNode(R,{key:"scriptFormat",path:"script.scriptFormat",label:d.unref(i)("panel.scriptFormat")},{default:d.withCtx(()=>[d.createVNode(I,{value:h.value.script.scriptFormat,"onUpdate:value":j[11]||(j[11]=A=>h.value.script.scriptFormat=A),onKeydown:j[12]||(j[12]=d.withKeys(d.withModifiers(()=>{},["prevent"]),["enter"]))},null,8,["value"])]),_:1},8,["label"]),d.createVNode(R,{key:"scriptType",path:"script.scriptType",label:d.unref(i)("panel.scriptType")},{default:d.withCtx(()=>[d.createVNode(V,{value:h.value.script.scriptType,"onUpdate:value":[j[13]||(j[13]=A=>h.value.script.scriptType=A),y],options:d.unref(fK)},null,8,["value","options"])]),_:1},8,["label"]),m.value.scriptType==="inline"?(d.openBlock(),d.createBlock(R,{key:"scriptContent",path:"script.value",label:d.unref(i)("panel.scriptBody")},{default:d.withCtx(()=>[d.createVNode(I,{value:h.value.script.value,"onUpdate:value":j[14]||(j[14]=A=>h.value.script.value=A),type:"textarea",onKeydown:j[15]||(j[15]=d.withKeys(d.withModifiers(()=>{},["prevent"]),["enter"]))},null,8,["value"])]),_:1},8,["label"])):d.createCommentVNode("",!0),m.value.scriptType==="external"?(d.openBlock(),d.createBlock(R,{key:"scriptResource",path:"script.resource",label:d.unref(i)("panel.scriptResource")},{default:d.withCtx(()=>[d.createVNode(I,{value:h.value.script.resource,"onUpdate:value":j[16]||(j[16]=A=>h.value.script.resource=A),onKeydown:j[17]||(j[17]=d.withKeys(d.withModifiers(()=>{},["prevent"]),["enter"]))},null,8,["value"])]),_:1},8,["label"])):d.createCommentVNode("",!0)],64)):d.createCommentVNode("",!0),d.createTextVNode(" ` "),d.createVNode(R,{path:"fields",label:d.unref(i)("panel.listenerFieldList")},{default:d.withCtx(()=>[d.createVNode(Gft,{fields:h.value.fields,onAddProperty:k,onRemoveProperty:P},null,8,["fields"])]),_:1},8,["label"]),d.createTextVNode("` ")]),_:1},8,["model"])]),_:1},8,["show","title"])]),_:1},8,["name"])}}}),[["__scopeId","data-v-9842233d"]]);function vce(e,t){return d.defineComponent({setup(n,{attrs:r}){return()=>d.h(e,{elementType:t,...r})}})}const Yft=vce(gce,"TaskListener"),Zft=vce(gce,"ExecutionListener");function Xft(e){return rt(e).get(`${Ot}:initiator`)}function Jft(e,t){var i;const n=Zt(Ut),r=rt(e);(i=n.modeling)==null||i.updateModdleProperties(e,r,{[`${Ot}:initiator`]:t})}function Qft(e){return Q(e,`${Ot}:Initiator`)&&!Q(e.parent,"bpmn:SubProcess")}function eht(e){return Q(e,`${Ot}:Assignable`)}const tht={class:"element-start-initiator"},nht=d.defineComponent({__name:"ElementStartInitiator",setup(e){const t=d.ref(""),n=Zt(Ut),r=()=>{t.value=Xft(n.activeElement)},i=o=>{Jft(n.activeElement,o)};return Go(r),(o,a)=>{const s=d.resolveComponent("n-input"),l=d.resolveComponent("n-collapse-item");return d.openBlock(),d.createBlock(l,{name:"element-start-initiator"},d.createSlots({header:d.withCtx(()=>[d.createVNode(Mo,{title:o.$t("panel.startInitiator")},{default:d.withCtx(()=>[d.createVNode(d.unref(yIe))]),_:1},8,["title"])]),default:d.withCtx(()=>[d.createElementVNode("div",tht,[d.createVNode(ci,{label:o.$t("panel.initiator")},{default:d.withCtx(()=>[d.createVNode(s,{value:t.value,"onUpdate:value":a[0]||(a[0]=c=>t.value=c),onChange:i},null,8,["value"])]),_:1},8,["label"])])]),_:2},[t.value?{name:"header-extra",fn:d.withCtx(()=>[d.createVNode(ka)]),key:"0"}:void 0]),1024)}}});function rht(e){return rt(e).get(`${Ot}:candidateStarterGroups`)}function iht(e,t){var i;const n=Zt(Ut),r=rt(e);(i=n.modeling)==null||i.updateModdleProperties(e,r,{[`${Ot}:candidateStarterGroups`]:t})}function oht(e){return rt(e).get(`${Ot}:candidateStarterUsers`)}function aht(e,t){var i;const n=Zt(Ut),r=rt(e);(i=n.modeling)==null||i.updateModdleProperties(e,r,{[`${Ot}:candidateStarterUsers`]:t})}function sht(e){const t=rt(e);return Q(e,"bpmn:Process")||Q(e,"bpmn:Participant")&&t.get("processRef")}const lht=d.defineComponent({__name:"ElementCandidateStarter",setup(e){const t=d.ref(""),n=d.ref(""),r=Zt(Ut),i=()=>{t.value=rht(r.activeElement),n.value=oht(r.activeElement)},o=s=>{iht(r.activeElement,s)},a=s=>{aht(r.activeElement,s)};return Go(i),(s,l)=>{const c=d.resolveComponent("n-input"),u=d.resolveComponent("n-collapse-item");return d.openBlock(),d.createBlock(u,null,d.createSlots({header:d.withCtx(()=>[d.createVNode(Mo,{title:s.$t("panel.candidateStarter")},{default:d.withCtx(()=>[d.createVNode(d.unref(EY))]),_:1},8,["title"])]),default:d.withCtx(()=>[d.createElementVNode("div",null,[d.createVNode(ci,{label:s.$t("panel.candidateStarterGroups")},{default:d.withCtx(()=>[d.createVNode(c,{value:t.value,"onUpdate:value":l[0]||(l[0]=f=>t.value=f),onChange:o,placeholder:s.$t("panel.candidateStarterGroupsPlaceholder")},null,8,["value","placeholder"])]),_:1},8,["label"]),d.createVNode(ci,{label:s.$t("panel.candidateStarterUsers")},{default:d.withCtx(()=>[d.createVNode(c,{value:n.value,"onUpdate:value":l[1]||(l[1]=f=>n.value=f),onChange:a,placeholder:s.$t("panel.candidateStarterUsersPlaceholder")},null,8,["value","placeholder"])]),_:1},8,["label"])])]),_:2},[t.value||n.value?{name:"header-extra",fn:d.withCtx(()=>[d.createVNode(ka)]),key:"0"}:void 0]),1024)}}});function cht(e){return rt(e).get(`${Ot}:formKey`)}function uht(e,t){var i;const n=Zt(Ut),r=rt(e);(i=n.modeling)==null||i.updateModdleProperties(e,r,{[`${Ot}:formKey`]:t})}function dht(e){return Q(e,"bpmn:StartEvent")&&!Q(e.parent,"bpmn:SubProcess")||Q(e,"bpmn:UserTask")}const fht=d.defineComponent({__name:"ElementFormType",setup(e){const t=d.ref(""),n=Zt(Ut),r=()=>{t.value=cht(n.activeElement)},i=o=>{uht(n.activeElement,o)};return Go(r),(o,a)=>{const s=d.resolveComponent("n-input"),l=d.resolveComponent("n-collapse-item");return d.openBlock(),d.createBlock(l,null,d.createSlots({header:d.withCtx(()=>[d.createVNode(Mo,{title:o.$t("panel.formConfig")},{default:d.withCtx(()=>[d.createVNode(d.unref($De))]),_:1},8,["title"])]),default:d.withCtx(()=>[d.createElementVNode("div",null,[d.createVNode(ci,{label:o.$t("panel.formKey")},{default:d.withCtx(()=>[d.createVNode(s,{value:t.value,"onUpdate:value":a[0]||(a[0]=c=>t.value=c),onChange:i},null,8,["value"])]),_:1},8,["label"])])]),_:2},[t.value?{name:"header-extra",fn:d.withCtx(()=>[d.createVNode(ka)]),key:"0"}:void 0]),1024)}}});var bce={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(E1,function(){var n=1e3,r=6e4,i=36e5,o="millisecond",a="second",s="minute",l="hour",c="day",u="week",f="month",h="quarter",p="year",m="date",b="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,x={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(M){var B=["th","st","nd","rd"],V=M%100;return"["+M+(B[(V-20)%10]||B[V]||B[0])+"]"}},w=function(M,B,V){var R=String(M);return!R||R.length>=B?M:""+Array(B+1-R.length).join(V)+M},y={s:w,z:function(M){var B=-M.utcOffset(),V=Math.abs(B),R=Math.floor(V/60),I=V%60;return(B<=0?"+":"-")+w(R,2,"0")+":"+w(I,2,"0")},m:function M(B,V){if(B.date()<V.date())return-M(V,B);var R=12*(V.year()-B.year())+(V.month()-B.month()),I=B.clone().add(R,f),G=V-I<0,F=B.clone().add(R+(G?-1:1),f);return+(-(R+(V-I)/(G?I-F:F-I))||0)},a:function(M){return M<0?Math.ceil(M)||0:Math.floor(M)},p:function(M){return{M:f,y:p,w:u,d:c,D:m,h:l,m:s,s:a,ms:o,Q:h}[M]||String(M||"").toLowerCase().replace(/s$/,"")},u:function(M){return M===void 0}},C="en",_={};_[C]=x;var S="$isDayjsObject",E=function(M){return M instanceof T||!(!M||!M[S])},$=function M(B,V,R){var I;if(!B)return C;if(typeof B=="string"){var G=B.toLowerCase();_[G]&&(I=G),V&&(_[G]=V,I=G);var F=B.split("-");if(!I&&F.length>1)return M(F[0])}else{var z=B.name;_[z]=B,I=z}return!R&&I&&(C=I),I||!R&&C},k=function(M,B){if(E(M))return M.clone();var V=typeof B=="object"?B:{};return V.date=M,V.args=arguments,new T(V)},P=y;P.l=$,P.i=E,P.w=function(M,B){return k(M,{locale:B.$L,utc:B.$u,x:B.$x,$offset:B.$offset})};var T=function(){function M(V){this.$L=$(V.locale,null,!0),this.parse(V),this.$x=this.$x||V.x||{},this[S]=!0}var B=M.prototype;return B.parse=function(V){this.$d=function(R){var I=R.date,G=R.utc;if(I===null)return new Date(NaN);if(P.u(I))return new Date;if(I instanceof Date)return new Date(I);if(typeof I=="string"&&!/Z$/i.test(I)){var F=I.match(v);if(F){var z=F[2]-1||0,A=(F[7]||"0").substring(0,3);return G?new Date(Date.UTC(F[1],z,F[3]||1,F[4]||0,F[5]||0,F[6]||0,A)):new Date(F[1],z,F[3]||1,F[4]||0,F[5]||0,F[6]||0,A)}}return new Date(I)}(V),this.init()},B.init=function(){var V=this.$d;this.$y=V.getFullYear(),this.$M=V.getMonth(),this.$D=V.getDate(),this.$W=V.getDay(),this.$H=V.getHours(),this.$m=V.getMinutes(),this.$s=V.getSeconds(),this.$ms=V.getMilliseconds()},B.$utils=function(){return P},B.isValid=function(){return this.$d.toString()!==b},B.isSame=function(V,R){var I=k(V);return this.startOf(R)<=I&&I<=this.endOf(R)},B.isAfter=function(V,R){return k(V)<this.startOf(R)},B.isBefore=function(V,R){return this.endOf(R)<k(V)},B.$g=function(V,R,I){return P.u(V)?this[R]:this.set(I,V)},B.unix=function(){return Math.floor(this.valueOf()/1e3)},B.valueOf=function(){return this.$d.getTime()},B.startOf=function(V,R){var I=this,G=!!P.u(R)||R,F=P.p(V),z=function(H,O){var D=P.w(I.$u?Date.UTC(I.$y,O,H):new Date(I.$y,O,H),I);return G?D:D.endOf(c)},A=function(H,O){return P.w(I.toDate()[H].apply(I.toDate("s"),(G?[0,0,0,0]:[23,59,59,999]).slice(O)),I)},L=this.$W,N=this.$M,q=this.$D,oe="set"+(this.$u?"UTC":"");switch(F){case p:return G?z(1,0):z(31,11);case f:return G?z(1,N):z(0,N+1);case u:var ee=this.$locale().weekStart||0,be=(L<ee?L+7:L)-ee;return z(G?q-be:q+(6-be),N);case c:case m:return A(oe+"Hours",0);case l:return A(oe+"Minutes",1);case s:return A(oe+"Seconds",2);case a:return A(oe+"Milliseconds",3);default:return this.clone()}},B.endOf=function(V){return this.startOf(V,!1)},B.$set=function(V,R){var I,G=P.p(V),F="set"+(this.$u?"UTC":""),z=(I={},I[c]=F+"Date",I[m]=F+"Date",I[f]=F+"Month",I[p]=F+"FullYear",I[l]=F+"Hours",I[s]=F+"Minutes",I[a]=F+"Seconds",I[o]=F+"Milliseconds",I)[G],A=G===c?this.$D+(R-this.$W):R;if(G===f||G===p){var L=this.clone().set(m,1);L.$d[z](A),L.init(),this.$d=L.set(m,Math.min(this.$D,L.daysInMonth())).$d}else z&&this.$d[z](A);return this.init(),this},B.set=function(V,R){return this.clone().$set(V,R)},B.get=function(V){return this[P.p(V)]()},B.add=function(V,R){var I,G=this;V=Number(V);var F=P.p(R),z=function(N){var q=k(G);return P.w(q.date(q.date()+Math.round(N*V)),G)};if(F===f)return this.set(f,this.$M+V);if(F===p)return this.set(p,this.$y+V);if(F===c)return z(1);if(F===u)return z(7);var A=(I={},I[s]=r,I[l]=i,I[a]=n,I)[F]||1,L=this.$d.getTime()+V*A;return P.w(L,this)},B.subtract=function(V,R){return this.add(-1*V,R)},B.format=function(V){var R=this,I=this.$locale();if(!this.isValid())return I.invalidDate||b;var G=V||"YYYY-MM-DDTHH:mm:ssZ",F=P.z(this),z=this.$H,A=this.$m,L=this.$M,N=I.weekdays,q=I.months,oe=I.meridiem,ee=function(O,D,ae,U){return O&&(O[D]||O(R,G))||ae[D].slice(0,U)},be=function(O){return P.s(z%12||12,O,"0")},H=oe||function(O,D,ae){var U=O<12?"AM":"PM";return ae?U.toLowerCase():U};return G.replace(g,function(O,D){return D||function(ae){switch(ae){case"YY":return String(R.$y).slice(-2);case"YYYY":return P.s(R.$y,4,"0");case"M":return L+1;case"MM":return P.s(L+1,2,"0");case"MMM":return ee(I.monthsShort,L,q,3);case"MMMM":return ee(q,L);case"D":return R.$D;case"DD":return P.s(R.$D,2,"0");case"d":return String(R.$W);case"dd":return ee(I.weekdaysMin,R.$W,N,2);case"ddd":return ee(I.weekdaysShort,R.$W,N,3);case"dddd":return N[R.$W];case"H":return String(z);case"HH":return P.s(z,2,"0");case"h":return be(1);case"hh":return be(2);case"a":return H(z,A,!0);case"A":return H(z,A,!1);case"m":return String(A);case"mm":return P.s(A,2,"0");case"s":return String(R.$s);case"ss":return P.s(R.$s,2,"0");case"SSS":return P.s(R.$ms,3,"0");case"Z":return F}return null}(O)||F.replace(":","")})},B.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},B.diff=function(V,R,I){var G,F=this,z=P.p(R),A=k(V),L=(A.utcOffset()-this.utcOffset())*r,N=this-A,q=function(){return P.m(F,A)};switch(z){case p:G=q()/12;break;case f:G=q();break;case h:G=q()/3;break;case u:G=(N-L)/6048e5;break;case c:G=(N-L)/864e5;break;case l:G=N/i;break;case s:G=N/r;break;case a:G=N/n;break;default:G=N}return I?G:P.a(G)},B.daysInMonth=function(){return this.endOf(f).$D},B.$locale=function(){return _[this.$L]},B.locale=function(V,R){if(!V)return this.$L;var I=this.clone(),G=$(V,R,!0);return G&&(I.$L=G),I},B.clone=function(){return P.w(this.$d,this)},B.toDate=function(){return new Date(this.valueOf())},B.toJSON=function(){return this.isValid()?this.toISOString():null},B.toISOString=function(){return this.$d.toISOString()},B.toString=function(){return this.$d.toUTCString()},M}(),j=T.prototype;return k.prototype=j,[["$ms",o],["$s",a],["$m",s],["$H",l],["$W",c],["$M",f],["$y",p],["$D",m]].forEach(function(M){j[M[1]]=function(B){return this.$g(B,M[0],M[1])}}),k.extend=function(M,B){return M.$i||(M(B,T,k),M.$i=!0),k},k.locale=$,k.isDayjs=E,k.unix=function(M){return k(1e3*M)},k.en=_[C],k.Ls=_,k.p={},k})})(bce);var hht=bce.exports;const pht=u0(hht),mht={key:0,class:"edit-item_description"},ght=d.defineComponent({__name:"ElementUserAssignment",setup(e){const t=s$.reduce((s,l)=>(s[l]="")||s,{}),n=d.ref(t),r=Zt(Ut),i=(s,l,c)=>{const u=s?pht(l).toISOString():"";uT(r.activeElement,c,u)};async function o(s,l){n.value[s]=l||"",uT(r.activeElement,s,l)}async function a(){const s=FLe(r.activeElement);n.value=s}return Go(a),(s,l)=>{const c=d.resolveComponent("n-date-picker"),u=d.resolveComponent("n-popover"),f=d.resolveComponent("n-input"),h=d.resolveComponent("n-collapse-item");return d.openBlock(),d.createBlock(h,null,d.createSlots({header:d.withCtx(()=>[d.createVNode(Mo,{title:s.$t("panel.userAssignment")},{default:d.withCtx(()=>[d.createVNode(d.unref(EY))]),_:1},8,["title"])]),default:d.withCtx(()=>[d.createElementVNode("div",null,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(d.unref(s$),p=>(d.openBlock(),d.createBlock(ci,{key:p,label:s.$t(`panel.userAssign_${p}`)},{default:d.withCtx(()=>[d.createVNode(f,{value:n.value[p],"onUpdate:value":m=>n.value[p]=m,onChange:m=>o(p,m)},{suffix:d.withCtx(()=>[p==="dueDate"||p==="followUpDate"?(d.openBlock(),d.createBlock(u,{key:0,placement:"bottom",trigger:"click"},{trigger:d.withCtx(()=>[d.createVNode(d.unref(lDe),{type:"calendar",style:{cursor:"pointer","margin-right":"5px"}})]),default:d.withCtx(()=>[d.createVNode(c,{type:"datetime",clearable:"",panel:"","onUpdate:value":(m,b)=>i(m,b,p)},null,8,["onUpdate:value"])]),_:2},1024)):d.createCommentVNode("",!0),d.createVNode(td,{code:n.value[p],"onUpdate:code":m=>n.value[p]=m},null,8,["code","onUpdate:code"])]),_:2},1032,["value","onUpdate:value","onChange"]),p==="dueDate"||p==="followUpDate"?(d.openBlock(),d.createElementBlock("div",mht,d.toDisplayString(s.$t("panel.dueDate_description",{someDate:"{someDate}"})),1)):d.createCommentVNode("",!0)]),_:2},1032,["label"]))),128))])]),_:2},[n.value.dueDate||n.value.followUpDate||n.value.assignee||n.value.candidateGroups||n.value.candidateUsers?{name:"header-extra",fn:d.withCtx(()=>[d.createVNode(ka)]),key:"0"}:void 0]),1024)}}}),vht={class:"element-field-injection"};function yce(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!d.isVNode(e)}const bht=va(d.defineComponent({__name:"ElementFieldInjection",setup(e){const{appContext:t}=d.getCurrentInstance(),{$t:n}=t.config.globalProperties,r=d.ref([]),i=d.ref([]);let o=-1;const a=[{value:"string",label:"String"},{value:"expression",label:"Expression"}],s=d.ref(null),l=d.ref({name:"",value:"",type:"string"}),c=d.reactive({name:{required:!0,message:"名称不能为空",trigger:["blur","change"]},type:{required:!0,message:"类型不能为空",trigger:["blur","change"]}}),u=d.ref(!1),f=[{title:n("panel.index"),key:"index",render:(g,x)=>x+1,width:60},{title:"Name",key:"name",ellipsis:{tooltip:!0}},{title:"Type",key:"type",ellipsis:{tooltip:!0}},{title:"Value",key:"value",ellipsis:{tooltip:!0}},{title:n("panel.operations"),key:"operation",width:80,align:"center",render:(g,x)=>{let w,y;return[d.createVNode(_n,{quaternary:!0,size:"small",type:"info",onClick:()=>v(x,g)},yce(w=n("panel.edit"))?w:{default:()=>[w]}),d.createVNode(_n,{quaternary:!0,size:"small",type:"error",onClick:()=>m(x)},yce(y=n("panel.remove"))?y:{default:()=>[y]})]}}],h=Zt(Ut);async function p(){u.value=!1,await d.nextTick(),i.value=d.markRaw(P0(h.activeElement)),r.value=JSON.parse(JSON.stringify(i.value)).map(OK)||[],l.value={name:"",value:"",type:"string"}}function m(g){UAe(h.activeElement,i.value[g]),p()}async function b(){var g;(g=s.value)==null||g.validate(x=>{x||(o===-1?cm(h.activeElement,l.value):WAe(h.activeElement,i.value[o],l.value),p())})}const v=async(g,x)=>{o=g,x&&(l.value=JSON.parse(JSON.stringify(x))),u.value=!0,await d.nextTick(),s.value&&s.value.restoreValidation()};return Go(p),(g,x)=>{const w=d.resolveComponent("n-tag"),y=d.resolveComponent("n-data-table"),C=d.resolveComponent("n-input"),_=d.resolveComponent("n-form-item"),S=d.resolveComponent("n-select"),E=d.resolveComponent("n-form"),$=d.resolveComponent("n-modal"),k=d.resolveComponent("n-collapse-item");return d.openBlock(),d.createBlock(k,{name:"element-field-injection"},{header:d.withCtx(()=>[d.createVNode(Mo,{title:d.unref(n)("panel.FieldInjectionProperties")},{default:d.withCtx(()=>[d.createVNode(d.unref(GDe))]),_:1},8,["title"])]),"header-extra":d.withCtx(()=>[d.createVNode(w,{type:"primary",round:""},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(r.value.length),1)]),_:1})]),default:d.withCtx(()=>[d.createElementVNode("div",vht,[d.createVNode(y,{size:"small","max-height":"20vh",columns:f,data:r.value},null,8,["data"]),d.createVNode(d.unref(_n),{type:"info",class:"inline-large-button",secondary:"",onClick:x[0]||(x[0]=P=>v(-1))},{default:d.withCtx(()=>[d.createVNode(d.unref(D6),{class:"button-icon"}),d.createElementVNode("span",null,d.toDisplayString(d.unref(n)("panel.addFieldInjectionProperties")),1)]),_:1})]),d.createVNode($,{show:u.value,"onUpdate:show":x[8]||(x[8]=P=>u.value=P),preset:"dialog","mask-closable":!1,title:d.unref(n)("panel.addFieldInjectionProperties"),style:{width:"640px"}},{action:d.withCtx(()=>[d.createVNode(d.unref(_n),{size:"small",type:"info",onClick:b},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(d.unref(n)("panel.confirm")),1)]),_:1})]),default:d.withCtx(()=>[d.createVNode(E,{ref_key:"formRef",ref:s,model:l.value,rules:c,"aria-modal":"true"},{default:d.withCtx(()=>[d.createVNode(_,{path:"name",label:d.unref(n)("panel.fieldName")},{default:d.withCtx(()=>[d.createVNode(C,{value:l.value.name,"onUpdate:value":x[1]||(x[1]=P=>l.value.name=P),onKeydown:x[2]||(x[2]=d.withKeys(d.withModifiers(()=>{},["prevent"]),["enter"]))},null,8,["value"])]),_:1},8,["label"]),d.createVNode(_,{path:"value",label:d.unref(n)("panel.fieldType")},{default:d.withCtx(()=>[d.createVNode(S,{value:l.value.type,"onUpdate:value":x[3]||(x[3]=P=>l.value.type=P),options:a,onKeydown:x[4]||(x[4]=d.withKeys(d.withModifiers(()=>{},["prevent"]),["enter"]))},null,8,["value"])]),_:1},8,["label"]),d.createVNode(_,{path:"value",label:d.unref(n)("panel.fieldValue")},{default:d.withCtx(()=>[d.createVNode(C,{value:l.value.value,"onUpdate:value":x[6]||(x[6]=P=>l.value.value=P),onKeydown:x[7]||(x[7]=d.withKeys(d.withModifiers(()=>{},["prevent"]),["enter"]))},{suffix:d.withCtx(()=>[d.createVNode(td,{code:l.value.value,"onUpdate:code":x[5]||(x[5]=P=>l.value.value=P)},null,8,["code"])]),_:1},8,["value"])]),_:1},8,["label"])]),_:1},8,["model","rules"])]),_:1},8,["show","title"])]),_:1})}}}),[["__scopeId","data-v-76c362db"]]),yht=d.defineComponent({__name:"ElementMultiInstance",setup(e){const t=l$.reduce((a,s)=>(a[s]="")||a,{}),n=d.ref(t),r=Zt(Ut);async function i(a,s){n.value[a]=s||"",Z2(r.activeElement,a,s)}async function o(){const a=uLe(r.activeElement);n.value=a}return Go(o),(a,s)=>{const l=d.resolveComponent("n-input"),c=d.resolveComponent("n-collapse-item");return d.openBlock(),d.createBlock(c,null,d.createSlots({header:d.withCtx(()=>[d.createVNode(Mo,{title:a.$t("panel.MultiInstanceConfig")},{default:d.withCtx(()=>[d.createVNode(d.unref(HDe))]),_:1},8,["title"])]),default:d.withCtx(()=>[d.createElementVNode("div",null,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(d.unref(l$),u=>(d.openBlock(),d.createBlock(ci,{key:u,label:a.$t(`panel.multiInstance_${u}`)},{default:d.withCtx(()=>[d.createVNode(l,{value:n.value[u],"onUpdate:value":f=>n.value[u]=f,onChange:f=>i(u,f)},{suffix:d.withCtx(()=>[d.createVNode(td,{code:n.value[u],"onUpdate:code":f=>n.value[u]=f},null,8,["code","onUpdate:code"])]),_:2},1032,["value","onUpdate:value","onChange"])]),_:2},1032,["label"]))),128))])]),_:2},[n.value.collection||n.value.completionCondition||n.value.elementVariable||n.value.loopCardinality?{name:"header-extra",fn:d.withCtx(()=>[d.createVNode(ka)]),key:"0"}:void 0]),1024)}}});z7.global;const xht={[`${Ot}:class`]:void 0,[`${Ot}:expression`]:void 0,[`${Ot}:delegateExpression`]:void 0,[`${Ot}:resultVariable`]:void 0},wht={[`${Ot}:decisionRef`]:void 0,[`${Ot}:decisionRefBinding`]:"latest",[`${Ot}:decisionRefVersion`]:void 0,[`${Ot}:mapDecisionResult`]:"resultList",[`${Ot}:decisionRefTenantId`]:void 0},Cht={[`${Ot}:type`]:void 0,[`${Ot}:topic`]:void 0},_ht=(e,t)=>{var s,l,c,u;const n=RK(e),r=fu(e),i=Zt(Ut);let o=xht,a=r.get("extensionElements");if(xce(t)&&(o={...o,[t]:xce(n)?r.get(`${Ot}:${n}`):""}),$K(r)&&(o={...o,...wht},t==="dmn"&&(o={...o,[`${Ot}:decisionRef`]:""})),TK(r)&&(o={...o,...Cht},t==="external"&&(o={...o,[`${Ot}:type`]:"external",[`${Ot}:topic`]:""})),y$(r)){const f=wce(r);if(f.length&&((s=i.modeling)==null||s.updateModdleProperties(e,a,{values:Mv(a.get("values"),h=>f.includes(h))})),t==="connector"){a||(a=R6("bpmn:ExtensionElements",{values:[]},r),(l=i.modeling)==null||l.updateModdleProperties(e,r,{extensionElements:a}));const h=R6(`${Ot}:Connector`,{},a);(c=i.modeling)==null||c.updateModdleProperties(e,a,{values:[...a.get("values"),h]})}}(u=i.modeling)==null||u.updateModdleProperties(e,r,o)};function Sht(e,t){if(t==="connector"){const i=Cce(e);return i&&i.get(`${Ot}:connectorId`)}const n=fu(e),r=`${Ot}:${t}`;return n&&(n==null?void 0:n.get(r))}function Eht(e){const t={};for(const n of hK){const r=Sht(e,n);kd(r)||(t[n]=r)}return t}const kht={external:"topic"};function $ht(e,t,n){var a,s;const r=Zt(Ut);if(t==="connector"){const l=Cce(e);(a=r.modeling)==null||a.updateModdleProperties(e,l,{[`${Ot}:connectorId`]:n});return}const i=fu(e),o=kht[t]||t;(s=r.modeling)==null||s.updateModdleProperties(e,i,{[`${Ot}:${o}`]:n})}function xce(e=""){return["class","expression","delegateExpression"].includes(e)}function wce(e){return Zh(e,`${Ot}:Connector`)}function Cce(e){const t=fu(e);return wce(t)[0]}const Tht=va(d.defineComponent({__name:"ElementImplementation",setup(e){const t=d.ref({implementationType:""}),n=d.ref([{value:"",label:""}]),r=Zt(Ut),i=s=>{t.value.implementationType=s,_ht(r.activeElement,s)};async function o(s,l){t.value[s]=l||"",$ht(r.activeElement,s,l)}async function a(){const s=RK(r.activeElement),l=Eht(r.activeElement);t.value={implementationType:s||"",...l}}return Go(a),(s,l)=>{const c=d.resolveComponent("n-select"),u=d.resolveComponent("n-input"),f=d.resolveComponent("n-collapse-item");return d.openBlock(),d.createBlock(f,null,d.createSlots({header:d.withCtx(()=>[d.createVNode(Mo,{title:s.$t("panel.ImplementationConfig")},{default:d.withCtx(()=>[d.createVNode(d.unref(ODe))]),_:1},8,["title"])]),default:d.withCtx(()=>[d.createElementVNode("div",null,[d.createVNode(ci,{key:"implementationType",label:s.$t("panel.implementationType"),"label-width":120},{default:d.withCtx(()=>[d.createVNode(c,{value:t.value.implementationType,"onUpdate:value":[l[0]||(l[0]=h=>t.value.implementationType=h),i],options:n.value},null,8,["value","options"])]),_:1},8,["label"]),(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(d.unref(hK).filter(h=>h===t.value.implementationType&&h!==""),h=>(d.openBlock(),d.createBlock(ci,{key:h,label:s.$t(`panel.implementation_${h}`),"label-width":120},{default:d.withCtx(()=>[d.createVNode(u,{value:t.value[h],"onUpdate:value":p=>t.value[h]=p,onChange:p=>o(h,p)},d.createSlots({_:2},[h==="expression"||h==="delegateExpression"?{name:"suffix",fn:d.withCtx(()=>[d.createVNode(td,{code:t.value[h],"onUpdate:code":p=>t.value[h]=p},null,8,["code","onUpdate:code"])]),key:"0"}:void 0]),1032,["value","onUpdate:value","onChange"])]),_:2},1032,["label"]))),128)),t.value.implementationType==="expression"?(d.openBlock(),d.createBlock(ci,{key:0,label:s.$t("panel.implementation_resultVariable"),"label-width":120},{default:d.withCtx(()=>[d.createVNode(u,{value:t.value.resultVariable,"onUpdate:value":l[1]||(l[1]=h=>t.value.resultVariable=h),onChange:l[2]||(l[2]=h=>o("resultVariable",h))},null,8,["value"])]),_:1},8,["label"])):d.createCommentVNode("",!0)])]),_:2},[t.value.implementationType!==""?{name:"header-extra",fn:d.withCtx(()=>[d.createVNode(ka)]),key:"0"}:void 0]),1024)}}}),[["__scopeId","data-v-8ee18bf5"]]),_ce={EDITABLE:"EDITABLE",READ_ONLY:"READ_ONLY",HIDDEN:"HIDDEN"},_g="assigneeFieldPermissionMap",yM="othersFieldPermissionMap",Rht="createFieldPermission",Pht="taskToFieldPermissionMap",Oht=[{label:"编辑",value:_ce.EDITABLE},{label:"只读",value:_ce.READ_ONLY}],Sce=(e=[])=>{const t={};return e.forEach(n=>{const{fieldName:r,permission:i}=n;return t[r]=i}),t},Ece=e=>{const t=Sce(e[_g]),n=Sce(e[yM]);return{[_g]:t,[yM]:n}},e7=Hs.defineStore("permission",()=>{const e=d.shallowRef({}),t=s=>{e.value=s},n=d.ref({}),r=d.ref(""),i=(s="")=>{r.value=s},o=d.computed(()=>n.value[r.value]||d.toRaw(e.value));return{creationMap:e,setCreationMap:t,allNodesMap:n,curNodeId:r,setCurNodeId:i,curNodeMap:o,updateFieldPermission:(s,l,c)=>{const u=o.value[s];u[l]&&(console.log("updateFieldPermission",s,l,c,u[l]),u[l].permission=c),n.value[r.value]||(n.value[r.value]={[_g]:[],[yM]:[]}),n.value[r.value][s]=u}}}),jht=va(d.defineComponent({__name:"FormPermissionProperty",setup(e){const t=d.computed(()=>{const a=e7(Ut),{curNodeMap:s}=a;return s}),n=d.reactive({page:1,pageSize:5,showSizePicker:!0,pageSizes:[5,10,15],onChange:a=>{n.page=a},onUpdatePageSize:a=>{n.pageSize=a,n.page=1}}),r=Zt(Ut);function i(){const a=e7(Ut),{setCurNodeId:s}=a;s(r.activeElementId)}const o=d.computed(()=>{const a=e7(Ut),{updateFieldPermission:s}=a;return[{title:"序号",key:"index",render:(l,c)=>c+1,width:60},{title:"字段名",key:"fieldName",ellipsis:{tooltip:!0}},{title:"权限配置",key:"permission",align:"center",render:(l,c)=>[d.createVNode(j_,{options:Oht,value:l.permission,"on-update:value":u=>{s(_g,c,u)}},null)]}]});return Go(i),(a,s)=>{const l=d.resolveComponent("n-data-table"),c=d.resolveComponent("n-tab-pane"),u=d.resolveComponent("n-tabs"),f=d.resolveComponent("n-collapse-item");return d.openBlock(),d.createBlock(f,null,{"header-extra":d.withCtx(()=>[d.createVNode(ka)]),header:d.withCtx(()=>[d.createVNode(Mo,{title:"表单权限设置"},{default:d.withCtx(()=>[d.createVNode(d.unref(BDe))]),_:1})]),default:d.withCtx(()=>[d.createVNode(u,{class:"form-permission-tabs",type:"line",animated:""},{default:d.withCtx(()=>[d.createVNode(c,{name:d.unref(_g),tab:"当前用户"},{default:d.withCtx(()=>[d.createVNode(l,{size:"small","max-height":"30vh",columns:o.value,data:t.value[d.unref(_g)],pagination:n},null,8,["columns","data","pagination"])]),_:1},8,["name"]),d.createVNode(c,{name:"othersFieldPermissionMap",tab:"其他用户"},{default:d.withCtx(()=>[d.createTextVNode(" Hey Jude ")]),_:1})]),_:1})]),_:1})}}}),[["__scopeId","data-v-00144d8f"]]);var Mht="Expected a function",kce=NaN,Aht="[object Symbol]",Nht=/^\s+|\s+$/g,Dht=/^[-+]0x[0-9a-f]+$/i,Iht=/^0b[01]+$/i,Lht=/^0o[0-7]+$/i,Bht=parseInt,Fht=typeof E1=="object"&&E1&&E1.Object===Object&&E1,zht=typeof self=="object"&&self&&self.Object===Object&&self,Vht=Fht||zht||Function("return this")(),Hht=Object.prototype,Uht=Hht.toString,Wht=Math.max,qht=Math.min,xM=function(){return Vht.Date.now()};function Ght(e,t,n){var r,i,o,a,s,l,c=0,u=!1,f=!1,h=!0;if(typeof e!="function")throw new TypeError(Mht);t=$ce(t)||0,wM(n)&&(u=!!n.leading,f="maxWait"in n,o=f?Wht($ce(n.maxWait)||0,t):o,h="trailing"in n?!!n.trailing:h);function p(_){var S=r,E=i;return r=i=void 0,c=_,a=e.apply(E,S),a}function m(_){return c=_,s=setTimeout(g,t),u?p(_):a}function b(_){var S=_-l,E=_-c,$=t-S;return f?qht($,o-E):$}function v(_){var S=_-l,E=_-c;return l===void 0||S>=t||S<0||f&&E>=o}function g(){var _=xM();if(v(_))return x(_);s=setTimeout(g,b(_))}function x(_){return s=void 0,h&&r?p(_):(r=i=void 0,a)}function w(){s!==void 0&&clearTimeout(s),c=0,r=l=i=s=void 0}function y(){return s===void 0?a:x(xM())}function C(){var _=xM(),S=v(_);if(r=arguments,i=this,l=_,S){if(s===void 0)return m(l);if(f)return s=setTimeout(g,t),p(l)}return s===void 0&&(s=setTimeout(g,t)),a}return C.cancel=w,C.flush=y,C}function wM(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function Kht(e){return!!e&&typeof e=="object"}function Yht(e){return typeof e=="symbol"||Kht(e)&&Uht.call(e)==Aht}function $ce(e){if(typeof e=="number")return e;if(Yht(e))return kce;if(wM(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=wM(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(Nht,"");var n=Iht.test(e);return n||Lht.test(e)?Bht(e.slice(2),n?2:8):Dht.test(e)?kce:+e}var Zht=Ght;const Xht=u0(Zht),Tce=function(e){return Object.prototype.toString.call(e)==="[object Array]"};function ko(){}ko.typeColor=function(e){let t="";switch(e){case"primary":t="#2d8cf0";break;case"success":t="#19be6b";break;case"info":t="#909399";break;case"warn":t="#ff9900";break;case"error":t="#f03f14";break;default:t="#35495E";break}return t},ko.print=function(e="default",t,n=!1){if(typeof t=="object"){Tce(t)?console.table(t):console.dir(t);return}n?console.log(`%c ${t} `,`background:${ko.typeColor(e)}; padding: 2px; border-radius: 4px; color: #fff;`):console.log(`%c ${t} `,`border: 1px solid ${ko.typeColor(e)};
|
4151
4151
|
padding: 2px; border-radius: 4px;
|
4152
4152
|
color: ${ko.typeColor(e)};`)},ko.printBack=function(e="primary",t){this.print(e,t,!0)},ko.pretty=function(e="primary",t,n){if(typeof n=="object"){console.group("Console Group",t),console.log(`%c ${t}`,`background:${ko.typeColor(e)};border:1px solid ${ko.typeColor(e)};
|
4153
4153
|
padding: 1px; border-radius: 4px; color: #fff;`),Tce(n)?console.table(n):console.dir(n),console.groupEnd();return}console.log(`%c ${t} %c ${n} %c`,`background:${ko.typeColor(e)};border:1px solid ${ko.typeColor(e)};
|
4154
4154
|
padding: 1px; border-radius: 4px 0 0 4px; color: #fff;`,`border:1px solid ${ko.typeColor(e)};
|
4155
|
-
padding: 1px; border-radius: 0 4px 4px 0; color: ${ko.typeColor(e)};`,"background:transparent")},ko.prettyPrimary=function(e,...t){t.forEach(n=>this.pretty("primary",e,n))},ko.prettySuccess=function(e,...t){t.forEach(n=>this.pretty("success",e,n))},ko.prettyWarn=function(e,...t){t.forEach(n=>this.pretty("warn",e,n))},ko.prettyError=function(e,...t){t.forEach(n=>this.pretty("error",e,n))},ko.prettyInfo=function(e,...t){t.forEach(n=>this.pretty("info",e,n))};function Jht(e){const{type:t}=e;let n=Rce(t);const r=Qht(e);return r?(n=`${ept(r)}${n}`,(Q(e,"bpmn:StartEvent")&&!zV(e)||Q(e,"bpmn:BoundaryEvent")&&!tpt(e))&&(n=`${n}NonInterrupting`),n):(Q(e,"bpmn:SubProcess")&&!Q(e,"bpmn:Transaction")&&(sa(e)?n=`Event${n}`:n=`${nr(e)&&!e2(e)?"Expanded":"Collapsed"}${n}`),npt(e)&&(n="DefaultFlow"),rpt(e)&&(n="ConditionalFlow"),n)}function Rce(e){return e.split(":")[1]}function Qht(e){const t=rt(e),n=t.eventDefinitions;return n&&n[0]}function ept(e){return Rce(e.$type).replace("EventDefinition","")}function tpt(e){const t=rt(e);return t&&t.cancelActivity!==!1}function npt(e){const t=rt(e),n=rt(e.source);return!Q(e,"bpmn:SequenceFlow")||!n?!1:n.default&&n.default===t&&(Q(n,"bpmn:Gateway")||Q(n,"bpmn:Activity"))}function rpt(e){const t=rt(e),n=rt(e.source);return!Q(e,"bpmn:SequenceFlow")||!n?!1:t.conditionExpression&&Q(n,"bpmn:Activity")}const ipt={zh_CN:gN,en_US:vN},opt=sessionStorage.getItem("lang");function Pce(e,t){return t=t||{},e=ipt[opt||"zh_CN"].elements[e]||e,e.replace(/{([^}]+)}/g,function(r,i){return t[i]||"{"+i+"}"})}const apt={class:"panel-container"},spt={class:"panel-header"},lpt=va(d.defineComponent({__name:"index",setup(e){const t=d.ref([]),n=d.ref(void 0),r=d.ref(void 0),i=d.ref("属性配置"),o=d.ref("Process"),a=d.ref("Process"),s=/show_props=true/.test(window.location.search),l=u=>{t.value.splice(0,t.value.length),t.value.push(d.markRaw(bFe));const{isBizCustom:f,propComponents:h}=rFe(u);f&&h.forEach(p=>{t.value.push(d.markRaw(p))}),t.value.push(d.markRaw(jht)),!(f&&!s)&&(t.value.push(d.markRaw(xFe)),dLe(u)&&t.value.push(d.markRaw(yht)),fu(u)&&t.value.push(d.markRaw(Tht)),sht(u)&&t.value.push(d.markRaw(lht)),Qft(u)&&t.value.push(d.markRaw(nht)),eht(u)&&t.value.push(d.markRaw(ght)),dht(u)&&t.value.push(d.markRaw(fht)),fBe(u)&&t.value.push(d.markRaw(xft)),Bft(u)&&t.value.push(d.markRaw(Hft)),Eft(u)&&t.value.push(d.markRaw(jft)),t.value.push(d.markRaw(Wft)),yLe(u)&&t.value.push(d.markRaw(Yft)),xLe(u)&&t.value.push(d.markRaw(Zft)),qAe(u)&&t.value.push(d.markRaw(bht)))},c=Xht(u=>{var m,b,v;const f=Zt(Ut);let h=u,p="";if(!h&&(h=((m=f.elementRegistry)==null?void 0:m.find(g=>g.type==="bpmn:Process"))||((b=f.elementRegistry)==null?void 0:b.find(g=>g.type==="bpmn:Collaboration")),!h))return ko.prettyError("No Element found!");p=Jht(h),f.setElement(d.markRaw(h)),n.value=h.id,r.value=h.type.split(":")[1],i.value=(v=f.modeler)==null?void 0:v.get("translate")(r.value||""),o.value=vAe[p],a.value=p||h.type,l(h),af.emit("element-update",h),ko.prettyPrimary("Selected element changed",`ID: ${h.id} , type: ${h.type}`)},100);return af.on("modeler-init",u=>{u.on("import.done",()=>{c(null)}),u.on("selection.changed",({newSelection:f})=>{c(f[0]||null)}),u.on("element.changed",({element:f})=>{f&&f.id===n.value&&c(f)}),u.on("element.click",f=>{ko.prettyInfo("Element Click",f)})}),(u,f)=>(d.openBlock(),d.createElementBlock("div",apt,[d.createElementVNode("div",spt,[d.createVNode(CAe,{name:o.value},null,8,["name"]),d.createElementVNode("p",null,d.toDisplayString(a.value),1),d.createElementVNode("p",null,d.toDisplayString(d.unref(Pce)(r.value||"Process")),1)]),d.createVNode(d.unref(EB),{class:"panel-body","arrow-placement":"right"},{default:d.withCtx(()=>[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(t.value,(h,p)=>(d.openBlock(),d.createBlock(d.resolveDynamicComponent(h),{key:p}))),128))]),_:1})]))}}),[["__scopeId","data-v-fbf85121"]]);function CM(){}CM.prototype.get=function(e){return this.$model.properties.get(this,e)},CM.prototype.set=function(e,t){this.$model.properties.set(this,e,t)};function Oce(e,t){this.model=e,this.properties=t}Oce.prototype.createType=function(e){var t=this.model,n=this.properties,r=Object.create(CM.prototype);Pe(e.properties,function(a){!a.isMany&&a.default!==void 0&&(r[a.name]=a.default)}),n.defineModel(r,t),n.defineDescriptor(r,e);var i=e.ns.name;function o(a){n.define(this,"$type",{value:i,enumerable:!0}),n.define(this,"$attrs",{value:{}}),n.define(this,"$parent",{writable:!0}),Pe(a,xo(function(s,l){this.set(l,s)},this))}return o.prototype=r,o.hasType=r.$instanceOf=this.model.hasType,n.defineModel(o,t),n.defineDescriptor(o,e),o};var cpt={String:!0,Boolean:!0,Integer:!0,Real:!0,Element:!0},jce={String:function(e){return e},Boolean:function(e){return e==="true"},Integer:function(e){return parseInt(e,10)},Real:function(e){return parseFloat(e)}};function _M(e,t){var n=jce[e];return n?n(t):t}function SM(e){return!!cpt[e]}function Mce(e){return!!jce[e]}function Da(e,t){var n=e.split(/:/),r,i;if(n.length===1)r=e,i=t;else if(n.length===2)r=n[1],i=n[0];else throw new Error("expected <prefix:localName> or <localName>, got "+e);return e=(i?i+":":"")+r,{name:e,prefix:i,localName:r}}function ul(e){this.ns=e,this.name=e.name,this.allTypes=[],this.allTypesByName={},this.properties=[],this.propertiesByName={}}ul.prototype.build=function(){return xl(this,["ns","name","allTypes","allTypesByName","properties","propertiesByName","bodyProperty","idProperty"])},ul.prototype.addProperty=function(e,t,n){typeof t=="boolean"&&(n=t,t=void 0),this.addNamedProperty(e,n!==!1);var r=this.properties;t!==void 0?r.splice(t,0,e):r.push(e)},ul.prototype.replaceProperty=function(e,t,n){var r=e.ns,i=this.properties,o=this.propertiesByName,a=e.name!==t.name;if(e.isId){if(!t.isId)throw new Error("property <"+t.ns.name+"> must be id property to refine <"+e.ns.name+">");this.setIdProperty(t,!1)}if(e.isBody){if(!t.isBody)throw new Error("property <"+t.ns.name+"> must be body property to refine <"+e.ns.name+">");this.setBodyProperty(t,!1)}var s=i.indexOf(e);if(s===-1)throw new Error("property <"+r.name+"> not found in property list");i.splice(s,1),this.addProperty(t,n?void 0:s,a),o[r.name]=o[r.localName]=t},ul.prototype.redefineProperty=function(e,t,n){var r=e.ns.prefix,i=t.split("#"),o=Da(i[0],r),a=Da(i[1],o.prefix).name,s=this.propertiesByName[a];if(s)this.replaceProperty(s,e,n);else throw new Error("refined property <"+a+"> not found");delete e.redefines},ul.prototype.addNamedProperty=function(e,t){var n=e.ns,r=this.propertiesByName;t&&(this.assertNotDefined(e,n.name),this.assertNotDefined(e,n.localName)),r[n.name]=r[n.localName]=e},ul.prototype.removeNamedProperty=function(e){var t=e.ns,n=this.propertiesByName;delete n[t.name],delete n[t.localName]},ul.prototype.setBodyProperty=function(e,t){if(t&&this.bodyProperty)throw new Error("body property defined multiple times (<"+this.bodyProperty.ns.name+">, <"+e.ns.name+">)");this.bodyProperty=e},ul.prototype.setIdProperty=function(e,t){if(t&&this.idProperty)throw new Error("id property defined multiple times (<"+this.idProperty.ns.name+">, <"+e.ns.name+">)");this.idProperty=e},ul.prototype.assertNotTrait=function(e){if((e.extends||[]).length)throw new Error(`cannot create <${e.name}> extending <${e.extends}>`)},ul.prototype.assertNotDefined=function(e,t){var n=e.name,r=this.propertiesByName[n];if(r)throw new Error("property <"+n+"> already defined; override of <"+r.definedBy.ns.name+"#"+r.ns.name+"> by <"+e.definedBy.ns.name+"#"+e.ns.name+"> not allowed without redefines")},ul.prototype.hasProperty=function(e){return this.propertiesByName[e]},ul.prototype.addTrait=function(e,t){t&&this.assertNotTrait(e);var n=this.allTypesByName,r=this.allTypes,i=e.name;i in n||(Pe(e.properties,xo(function(o){o=Fe({},o,{name:o.ns.localName,inherited:t}),Object.defineProperty(o,"definedBy",{value:e});var a=o.replaces,s=o.redefines;a||s?this.redefineProperty(o,a||s,a):(o.isBody&&this.setBodyProperty(o),o.isId&&this.setIdProperty(o),this.addProperty(o))},this)),r.push(e),n[i]=e)};function zf(e,t){this.packageMap={},this.typeMap={},this.packages=[],this.properties=t,Pe(e,xo(this.registerPackage,this))}zf.prototype.getPackage=function(e){return this.packageMap[e]},zf.prototype.getPackages=function(){return this.packages},zf.prototype.registerPackage=function(e){e=Fe({},e);var t=this.packageMap;Ace(t,e,"prefix"),Ace(t,e,"uri"),Pe(e.types,xo(function(n){this.registerType(n,e)},this)),t[e.uri]=t[e.prefix]=e,this.packages.push(e)},zf.prototype.registerType=function(e,t){e=Fe({},e,{superClass:(e.superClass||[]).slice(),extends:(e.extends||[]).slice(),properties:(e.properties||[]).slice(),meta:Fe(e.meta||{})});var n=Da(e.name,t.prefix),r=n.name,i={};Pe(e.properties,xo(function(o){var a=Da(o.name,n.prefix),s=a.name;SM(o.type)||(o.type=Da(o.type,a.prefix).name),Fe(o,{ns:a,name:s}),i[s]=o},this)),Fe(e,{ns:n,name:r,propertiesByName:i}),Pe(e.extends,xo(function(o){var a=Da(o,n.prefix),s=this.typeMap[a.name];s.traits=s.traits||[],s.traits.push(r)},this)),this.definePackage(e,t),this.typeMap[r]=e},zf.prototype.mapTypes=function(e,t,n){var r=SM(e.name)?{name:e.name}:this.typeMap[e.name],i=this;function o(l,c){var u=Da(l,SM(l)?"":e.prefix);i.mapTypes(u,t,c)}function a(l){return o(l,!0)}function s(l){return o(l,!1)}if(!r)throw new Error("unknown type <"+e.name+">");Pe(r.superClass,n?a:s),t(r,!n),Pe(r.traits,a)},zf.prototype.getEffectiveDescriptor=function(e){var t=Da(e),n=new ul(t);this.mapTypes(t,function(i,o){n.addTrait(i,o)});var r=n.build();return this.definePackage(r,r.allTypes[r.allTypes.length-1].$pkg),r},zf.prototype.definePackage=function(e,t){this.properties.define(e,"$pkg",{value:t})};function Ace(e,t,n){var r=t[n];if(r in e)throw new Error("package with "+n+" <"+r+"> already defined")}function Bp(e){this.model=e}Bp.prototype.set=function(e,t,n){if(!yo(t)||!t.length)throw new TypeError("property name must be a non-empty string");var r=this.getProperty(e,t),i=r&&r.name;upt(n)?r?delete e[i]:delete e.$attrs[EM(t)]:r?i in e?e[i]=n:Nce(e,r,n):e.$attrs[EM(t)]=n},Bp.prototype.get=function(e,t){var n=this.getProperty(e,t);if(!n)return e.$attrs[EM(t)];var r=n.name;return!e[r]&&n.isMany&&Nce(e,n,[]),e[r]},Bp.prototype.define=function(e,t,n){if(!n.writable){var r=n.value;n=Fe({},n,{get:function(){return r}}),delete n.value}Object.defineProperty(e,t,n)},Bp.prototype.defineDescriptor=function(e,t){this.define(e,"$descriptor",{value:t})},Bp.prototype.defineModel=function(e,t){this.define(e,"$model",{value:t})},Bp.prototype.getProperty=function(e,t){var n=this.model,r=n.getPropertyDescriptor(e,t);if(r)return r;if(t.includes(":"))return null;const i=n.config.strict;if(typeof i<"u"){const o=new TypeError(`unknown property <${t}> on <${e.$type}>`);if(i)throw o;typeof console<"u"&&console.warn(o)}return null};function upt(e){return typeof e>"u"}function Nce(e,t,n){Object.defineProperty(e,t.name,{enumerable:!t.isReference,writable:!0,value:n,configurable:!0})}function EM(e){return e.replace(/^:/,"")}function Xl(e,t={}){this.properties=new Bp(this),this.factory=new Oce(this,this.properties),this.registry=new zf(e,this.properties),this.typeCache={},this.config=t}Xl.prototype.create=function(e,t){var n=this.getType(e);if(!n)throw new Error("unknown type <"+e+">");return new n(t)},Xl.prototype.getType=function(e){var t=this.typeCache,n=yo(e)?e:e.ns.name,r=t[n];return r||(e=this.registry.getEffectiveDescriptor(n),r=t[n]=this.factory.createType(e)),r},Xl.prototype.createAny=function(e,t,n){var r=Da(e),i={$type:e,$instanceOf:function(a){return a===this.$type},get:function(a){return this[a]},set:function(a,s){xz(this,[a],s)}},o={name:e,isGeneric:!0,ns:{prefix:r.prefix,localName:r.localName,uri:t}};return this.properties.defineDescriptor(i,o),this.properties.defineModel(i,this),this.properties.define(i,"get",{enumerable:!1,writable:!0}),this.properties.define(i,"set",{enumerable:!1,writable:!0}),this.properties.define(i,"$parent",{enumerable:!1,writable:!0}),this.properties.define(i,"$instanceOf",{enumerable:!1,writable:!0}),Pe(n,function(a,s){jo(a)&&a.value!==void 0?i[a.name]=a.value:i[s]=a}),i},Xl.prototype.getPackage=function(e){return this.registry.getPackage(e)},Xl.prototype.getPackages=function(){return this.registry.getPackages()},Xl.prototype.getElementDescriptor=function(e){return e.$descriptor},Xl.prototype.hasType=function(e,t){t===void 0&&(t=e,e=this);var n=e.$model.getElementDescriptor(e);return t in n.allTypesByName},Xl.prototype.getPropertyDescriptor=function(e,t){return this.getElementDescriptor(e).propertiesByName[t]},Xl.prototype.getTypeDescriptor=function(e){return this.registry.typeMap[e]};var Dce=String.fromCharCode,dpt=Object.prototype.hasOwnProperty,fpt=/&#(\d+);|&#x([0-9a-f]+);|&(\w+);/ig,Dy={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'};Object.keys(Dy).forEach(function(e){Dy[e.toUpperCase()]=Dy[e]});function hpt(e,t,n,r){return r?dpt.call(Dy,r)?Dy[r]:"&"+r+";":Dce(t||parseInt(n,16))}function Fp(e){return e.length>3&&e.indexOf("&")!==-1?e.replace(fpt,hpt):e}var Ice="non-whitespace outside of root node";function Sg(e){return new Error(e)}function Lce(e){return"missing namespace for prefix <"+e+">"}function t7(e){return{get:e,enumerable:!0}}function ppt(e){var t={},n;for(n in e)t[n]=e[n];return t}function kM(e){return e+"$uri"}function mpt(e){var t={},n,r;for(n in e)r=e[n],t[r]=r,t[kM(r)]=n;return t}function Bce(){return{line:0,column:0}}function gpt(e){throw e}function Fce(e){if(!this)return new Fce(e);var t=e&&e.proxy,n,r,i,o,a=gpt,s,l,c,u,f=Bce,h=!1,p=!1,m=null,b=!1,v;function g(y){y instanceof Error||(y=Sg(y)),m=y,a(y,f)}function x(y){s&&(y instanceof Error||(y=Sg(y)),s(y,f))}this.on=function(y,C){if(typeof C!="function")throw Sg("required args <name, cb>");switch(y){case"openTag":r=C;break;case"text":n=C;break;case"closeTag":i=C;break;case"error":a=C;break;case"warn":s=C;break;case"cdata":o=C;break;case"attention":u=C;break;case"question":c=C;break;case"comment":l=C;break;default:throw Sg("unsupported event: "+y)}return this},this.ns=function(y){if(typeof y>"u"&&(y={}),typeof y!="object")throw Sg("required args <nsMap={}>");var C={},_;for(_ in y)C[_]=y[_];return p=!0,v=C,this},this.parse=function(y){if(typeof y!="string")throw Sg("required args <xml=string>");return m=null,w(y),f=Bce,b=!1,m},this.stop=function(){b=!0};function w(y){var C=p?[]:null,_=p?mpt(v):null,S,E=[],$=0,k=!1,P=!1,T=0,j=0,M,B,V,R,I,G,F,z,A,L="",N=0,q;function oe(){if(q!==null)return q;var be,H,O,D=p&&_.xmlns,ae=p&&h?[]:null,U=N,Y=L,ye=Y.length,ue,Ce,he,de,ve,Oe={},Le={},Ge,ne,Te;e:for(;U<ye;U++)if(Ge=!1,ne=Y.charCodeAt(U),!(ne===32||ne<14&&ne>8)){for((ne<65||ne>122||ne>90&&ne<97)&&ne!==95&&ne!==58&&(x("illegal first char attribute name"),Ge=!0),Te=U+1;Te<ye;Te++)if(ne=Y.charCodeAt(Te),!(ne>96&&ne<123||ne>64&&ne<91||ne>47&&ne<59||ne===46||ne===45||ne===95)){if(ne===32||ne<14&&ne>8){x("missing attribute value"),U=Te;continue e}if(ne===61)break;x("illegal attribute name char"),Ge=!0}if(ve=Y.substring(U,Te),ve==="xmlns:xmlns"&&(x("illegal declaration of xmlns"),Ge=!0),ne=Y.charCodeAt(Te+1),ne===34)Te=Y.indexOf('"',U=Te+2),Te===-1&&(Te=Y.indexOf("'",U),Te!==-1&&(x("attribute value quote missmatch"),Ge=!0));else if(ne===39)Te=Y.indexOf("'",U=Te+2),Te===-1&&(Te=Y.indexOf('"',U),Te!==-1&&(x("attribute value quote missmatch"),Ge=!0));else for(x("missing attribute value quotes"),Ge=!0,Te=Te+1;Te<ye&&(ne=Y.charCodeAt(Te+1),!(ne===32||ne<14&&ne>8));Te++);for(Te===-1&&(x("missing closing quotes"),Te=ye,Ge=!0),Ge||(he=Y.substring(U,Te)),U=Te;Te+1<ye&&(ne=Y.charCodeAt(Te+1),!(ne===32||ne<14&&ne>8));Te++)U===Te&&(x("illegal character after attribute end"),Ge=!0);if(U=Te+1,Ge)continue e;if(ve in Le){x("attribute <"+ve+"> already defined");continue}if(Le[ve]=!0,!p){Oe[ve]=he;continue}if(h){if(Ce=ve==="xmlns"?"xmlns":ve.charCodeAt(0)===120&&ve.substr(0,6)==="xmlns:"?ve.substr(6):null,Ce!==null){if(be=Fp(he),H=kM(Ce),de=v[be],!de){if(Ce==="xmlns"||H in _&&_[H]!==be)do de="ns"+$++;while(typeof _[de]<"u");else de=Ce;v[be]=de}_[Ce]!==de&&(ue||(_=ppt(_),ue=!0),_[Ce]=de,Ce==="xmlns"&&(_[kM(de)]=be,D=de),_[H]=be),Oe[ve]=he;continue}ae.push(ve,he);continue}if(ne=ve.indexOf(":"),ne===-1){Oe[ve]=he;continue}if(!(O=_[ve.substring(0,ne)])){x(Lce(ve.substring(0,ne)));continue}ve=D===O?ve.substr(ne+1):O+ve.substr(ne),Oe[ve]=he}if(h)for(U=0,ye=ae.length;U<ye;U++){if(ve=ae[U++],he=ae[U],ne=ve.indexOf(":"),ne!==-1){if(!(O=_[ve.substring(0,ne)])){x(Lce(ve.substring(0,ne)));continue}ve=D===O?ve.substr(ne+1):O+ve.substr(ne)}Oe[ve]=he}return q=Oe}function ee(){for(var be=/(\r\n|\r|\n)/g,H=0,O=0,D=0,ae=j,U,Y;T>=D&&(U=be.exec(y),!(!U||(ae=U[0].length+U.index,ae>T)));)H+=1,D=ae;return T==-1?(O=ae,Y=y.substring(j)):j===0?Y=y.substring(j,T):(O=T-D,Y=j==-1?y.substring(T):y.substring(T,j+1)),{data:Y,line:H,column:O}}for(f=ee,t&&(A=Object.create({},{name:t7(function(){return F}),originalName:t7(function(){return z}),attrs:t7(oe),ns:t7(function(){return _})}));j!==-1;){if(y.charCodeAt(j)===60?T=j:T=y.indexOf("<",j),T===-1){if(E.length)return g("unexpected end of file");if(j===0)return g("missing start tag");j<y.length&&y.substring(j).trim()&&x(Ice);return}if(j!==T){if(E.length){if(n&&(n(y.substring(j,T),Fp,f),b))return}else if(y.substring(j,T).trim()&&(x(Ice),b))return}if(R=y.charCodeAt(T+1),R===33){if(V=y.charCodeAt(T+2),V===91&&y.substr(T+3,6)==="CDATA["){if(j=y.indexOf("]]>",T),j===-1)return g("unclosed cdata");if(o&&(o(y.substring(T+9,j),f),b))return;j+=3;continue}if(V===45&&y.charCodeAt(T+3)===45){if(j=y.indexOf("-->",T),j===-1)return g("unclosed comment");if(l&&(l(y.substring(T+4,j),Fp,f),b))return;j+=3;continue}}if(R===63){if(j=y.indexOf("?>",T),j===-1)return g("unclosed question");if(c&&(c(y.substring(T,j+2),f),b))return;j+=2;continue}for(M=T+1;;M++){if(I=y.charCodeAt(M),isNaN(I))return j=-1,g("unclosed tag");if(I===34)V=y.indexOf('"',M+1),M=V!==-1?V:M;else if(I===39)V=y.indexOf("'",M+1),M=V!==-1?V:M;else if(I===62){j=M;break}}if(R===33){if(u&&(u(y.substring(T,j+1),Fp,f),b))return;j+=1;continue}if(q={},R===47){if(k=!1,P=!0,!E.length)return g("missing open tag");if(M=F=E.pop(),V=T+2+M.length,y.substring(T+2,V)!==M)return g("closing tag mismatch");for(;V<j;V++)if(R=y.charCodeAt(V),!(R===32||R>8&&R<14))return g("close tag")}else{if(y.charCodeAt(j-1)===47?(M=F=y.substring(T+1,j-1),k=!0,P=!0):(M=F=y.substring(T+1,j),k=!0,P=!1),!(R>96&&R<123||R>64&&R<91||R===95||R===58))return g("illegal first char nodeName");for(V=1,B=M.length;V<B;V++)if(R=M.charCodeAt(V),!(R>96&&R<123||R>64&&R<91||R>47&&R<59||R===45||R===95||R==46)){if(R===32||R<14&&R>8){F=M.substring(0,V),q=null;break}return g("invalid nodeName")}P||E.push(F)}if(p){if(S=_,k&&(P||C.push(S),q===null&&(h=M.indexOf("xmlns",V)!==-1)&&(N=V,L=M,oe(),h=!1)),z=F,R=F.indexOf(":"),R!==-1){if(G=_[F.substring(0,R)],!G)return g("missing namespace on <"+z+">");F=F.substr(R+1)}else G=_.xmlns;G&&(F=G+":"+F)}if(k&&(N=V,L=M,r&&(t?r(A,Fp,P,f):r(F,oe,Fp,P,f),b)))return;if(P){if(i&&(i(t?A:F,Fp,k,f),b))return;p&&(k?_=S:_=C.pop())}j+=1}}}function zce(e){return e.xml&&e.xml.tagAlias==="lowerCase"}var $M={xsi:"http://www.w3.org/2001/XMLSchema-instance",xml:"http://www.w3.org/XML/1998/namespace"},Vce="property";function Hce(e){return e.xml&&e.xml.serialize}function vpt(e){const t=Hce(e);return t!==Vce&&(t||null)}function bpt(e){return e.charAt(0).toUpperCase()+e.slice(1)}function Uce(e,t){return zce(t)?e.prefix+":"+bpt(e.localName):e.name}function ypt(e,t){var n=e.name,r=e.localName,i=t&&t.xml&&t.xml.typePrefix;return i&&r.indexOf(i)===0?e.prefix+":"+r.slice(i.length):n}function xpt(e,t,n){const r=Da(e,t.xmlns),i=`${t[r.prefix]||r.prefix}:${r.localName}`,o=Da(i);var a=n.getPackage(o.prefix);return ypt(o,a)}function Vf(e){return new Error(e)}function nd(e){return e.$descriptor}function wpt(e){Fe(this,e),this.elementsById={},this.references=[],this.warnings=[],this.addReference=function(t){this.references.push(t)},this.addElement=function(t){if(!t)throw Vf("expected element");var n=this.elementsById,r=nd(t),i=r.idProperty,o;if(i&&(o=t.get(i.name),o)){if(!/^([a-z][\w-.]*:)?[a-z_][\w-.]*$/i.test(o))throw new Error("illegal ID <"+o+">");if(n[o])throw Vf("duplicate ID <"+o+">");n[o]=t}},this.addWarning=function(t){this.warnings.push(t)}}function Iy(){}Iy.prototype.handleEnd=function(){},Iy.prototype.handleText=function(){},Iy.prototype.handleNode=function(){};function TM(){}TM.prototype=Object.create(Iy.prototype),TM.prototype.handleNode=function(){return this};function Eg(){}Eg.prototype=Object.create(Iy.prototype),Eg.prototype.handleText=function(e){this.body=(this.body||"")+e};function Ly(e,t){this.property=e,this.context=t}Ly.prototype=Object.create(Eg.prototype),Ly.prototype.handleNode=function(e){if(this.element)throw Vf("expected no sub nodes");return this.element=this.createReference(e),this},Ly.prototype.handleEnd=function(){this.element.id=this.body},Ly.prototype.createReference=function(e){return{property:this.property.ns.name,id:""}};function RM(e,t){this.element=t,this.propertyDesc=e}RM.prototype=Object.create(Eg.prototype),RM.prototype.handleEnd=function(){var e=this.body||"",t=this.element,n=this.propertyDesc;e=_M(n.type,e),n.isMany?t.get(n.name).push(e):t.set(n.name,e)};function n7(){}n7.prototype=Object.create(Eg.prototype),n7.prototype.handleNode=function(e){var t=this,n=this.element;return n?t=this.handleChild(e):(n=this.element=this.createElement(e),this.context.addElement(n)),t};function ts(e,t,n){this.model=e,this.type=e.getType(t),this.context=n}ts.prototype=Object.create(n7.prototype),ts.prototype.addReference=function(e){this.context.addReference(e)},ts.prototype.handleText=function(e){var t=this.element,n=nd(t),r=n.bodyProperty;if(!r)throw Vf("unexpected body text <"+e+">");Eg.prototype.handleText.call(this,e)},ts.prototype.handleEnd=function(){var e=this.body,t=this.element,n=nd(t),r=n.bodyProperty;r&&e!==void 0&&(e=_M(r.type,e),t.set(r.name,e))},ts.prototype.createElement=function(e){var t=e.attributes,n=this.type,r=nd(n),i=this.context,o=new n({}),a=this.model,s;return Pe(t,function(l,c){var u=r.propertiesByName[c],f;u&&u.isReference?u.isMany?(f=l.split(" "),Pe(f,function(h){i.addReference({element:o,property:u.ns.name,id:h})})):i.addReference({element:o,property:u.ns.name,id:l}):(u?l=_M(u.type,l):c==="xmlns"?c=":"+c:(s=Da(c,r.ns.prefix),a.getPackage(s.prefix)&&i.addWarning({message:"unknown attribute <"+c+">",element:o,property:c,value:l})),o.set(c,l))}),o},ts.prototype.getPropertyForNode=function(e){var t=e.name,n=Da(t),r=this.type,i=this.model,o=nd(r),a=n.name,s=o.propertiesByName[a];if(s&&!s.isAttr){const c=vpt(s);if(c){const u=e.attributes[c];if(u){const f=xpt(u,e.ns,i),h=i.getType(f);return Fe({},s,{effectiveType:nd(h).name})}}return s}var l=i.getPackage(n.prefix);if(l){const c=Uce(n,l),u=i.getType(c);if(s=ar(o.properties,function(f){return!f.isVirtual&&!f.isReference&&!f.isAttribute&&u.hasType(f.type)}),s)return Fe({},s,{effectiveType:nd(u).name})}else if(s=ar(o.properties,function(c){return!c.isReference&&!c.isAttribute&&c.type==="Element"}),s)return s;throw Vf("unrecognized element <"+n.name+">")},ts.prototype.toString=function(){return"ElementDescriptor["+nd(this.type).name+"]"},ts.prototype.valueHandler=function(e,t){return new RM(e,t)},ts.prototype.referenceHandler=function(e){return new Ly(e,this.context)},ts.prototype.handler=function(e){return e==="Element"?new kg(this.model,e,this.context):new ts(this.model,e,this.context)},ts.prototype.handleChild=function(e){var t,n,r,i;if(t=this.getPropertyForNode(e),r=this.element,n=t.effectiveType||t.type,Mce(n))return this.valueHandler(t,r);t.isReference?i=this.referenceHandler(t).handleNode(e):i=this.handler(n).handleNode(e);var o=i.element;return o!==void 0&&(t.isMany?r.get(t.name).push(o):r.set(t.name,o),t.isReference?(Fe(o,{element:r}),this.context.addReference(o)):o.$parent=r),i};function PM(e,t,n){ts.call(this,e,t,n)}PM.prototype=Object.create(ts.prototype),PM.prototype.createElement=function(e){var t=e.name,n=Da(t),r=this.model,i=this.type,o=r.getPackage(n.prefix),a=o&&Uce(n,o)||t;if(!i.hasType(a))throw Vf("unexpected element <"+e.originalName+">");return ts.prototype.createElement.call(this,e)};function kg(e,t,n){this.model=e,this.context=n}kg.prototype=Object.create(n7.prototype),kg.prototype.createElement=function(e){var t=e.name,n=Da(t),r=n.prefix,i=e.ns[r+"$uri"],o=e.attributes;return this.model.createAny(t,i,o)},kg.prototype.handleChild=function(e){var t=new kg(this.model,"Element",this.context).handleNode(e),n=this.element,r=t.element,i;return r!==void 0&&(i=n.$children=n.$children||[],i.push(r),r.$parent=n),t},kg.prototype.handleEnd=function(){this.body&&(this.element.$body=this.body)};function OM(e){e instanceof Xl&&(e={model:e}),Fe(this,{lax:!1},e)}OM.prototype.fromXML=function(e,t,n){var r=t.rootHandler;t instanceof ts?(r=t,t={}):typeof t=="string"?(r=this.handler(t),t={}):typeof r=="string"&&(r=this.handler(r));var i=this.model,o=this.lax,a=new wpt(Fe({},t,{rootHandler:r})),s=new Fce({proxy:!0}),l=Cpt();r.context=a,l.push(r);function c(C,_,S){var E=_(),$=E.line,k=E.column,P=E.data;P.charAt(0)==="<"&&P.indexOf(" ")!==-1&&(P=P.slice(0,P.indexOf(" "))+">");var T="unparsable content "+(P?P+" ":"")+`detected
|
4155
|
+
padding: 1px; border-radius: 0 4px 4px 0; color: ${ko.typeColor(e)};`,"background:transparent")},ko.prettyPrimary=function(e,...t){t.forEach(n=>this.pretty("primary",e,n))},ko.prettySuccess=function(e,...t){t.forEach(n=>this.pretty("success",e,n))},ko.prettyWarn=function(e,...t){t.forEach(n=>this.pretty("warn",e,n))},ko.prettyError=function(e,...t){t.forEach(n=>this.pretty("error",e,n))},ko.prettyInfo=function(e,...t){t.forEach(n=>this.pretty("info",e,n))};function Jht(e){const{type:t}=e;let n=Rce(t);const r=Qht(e);return r?(n=`${ept(r)}${n}`,(Q(e,"bpmn:StartEvent")&&!zV(e)||Q(e,"bpmn:BoundaryEvent")&&!tpt(e))&&(n=`${n}NonInterrupting`),n):(Q(e,"bpmn:SubProcess")&&!Q(e,"bpmn:Transaction")&&(sa(e)?n=`Event${n}`:n=`${nr(e)&&!e2(e)?"Expanded":"Collapsed"}${n}`),npt(e)&&(n="DefaultFlow"),rpt(e)&&(n="ConditionalFlow"),n)}function Rce(e){return e.split(":")[1]}function Qht(e){const t=rt(e),n=t.eventDefinitions;return n&&n[0]}function ept(e){return Rce(e.$type).replace("EventDefinition","")}function tpt(e){const t=rt(e);return t&&t.cancelActivity!==!1}function npt(e){const t=rt(e),n=rt(e.source);return!Q(e,"bpmn:SequenceFlow")||!n?!1:n.default&&n.default===t&&(Q(n,"bpmn:Gateway")||Q(n,"bpmn:Activity"))}function rpt(e){const t=rt(e),n=rt(e.source);return!Q(e,"bpmn:SequenceFlow")||!n?!1:t.conditionExpression&&Q(n,"bpmn:Activity")}const ipt={zh_CN:gN,en_US:vN},opt=sessionStorage.getItem("lang");function Pce(e,t){return t=t||{},e=ipt[opt||"zh_CN"].elements[e]||e,e.replace(/{([^}]+)}/g,function(r,i){return t[i]||"{"+i+"}"})}const apt={class:"panel-container"},spt={class:"panel-header"},lpt=va(d.defineComponent({__name:"index",setup(e){const t=d.ref([]),n=d.ref(void 0),r=d.ref(void 0),i=d.ref("属性配置"),o=d.ref("Process"),a=d.ref("Process"),s=/show_props=true/.test(window.location.search),l=u=>{t.value.splice(0,t.value.length),t.value.push(d.markRaw(bFe));const{isBizCustom:f,propComponents:h}=rFe(u);f&&h.forEach(p=>{t.value.push(d.markRaw(p))}),t.value.push(d.markRaw(jht)),!(f&&!s)&&(t.value.push(d.markRaw(xFe)),dLe(u)&&t.value.push(d.markRaw(yht)),fu(u)&&t.value.push(d.markRaw(Tht)),sht(u)&&t.value.push(d.markRaw(lht)),Qft(u)&&t.value.push(d.markRaw(nht)),eht(u)&&t.value.push(d.markRaw(ght)),dht(u)&&t.value.push(d.markRaw(fht)),fBe(u)&&t.value.push(d.markRaw(xft)),Bft(u)&&t.value.push(d.markRaw(Hft)),Eft(u)&&t.value.push(d.markRaw(jft)),t.value.push(d.markRaw(Wft)),yLe(u)&&t.value.push(d.markRaw(Yft)),xLe(u)&&t.value.push(d.markRaw(Zft)),qAe(u)&&t.value.push(d.markRaw(bht)))},c=Xht(u=>{var m,b,v;const f=Zt(Ut);let h=u,p="";if(!h&&(h=((m=f.elementRegistry)==null?void 0:m.find(g=>g.type==="bpmn:Process"))||((b=f.elementRegistry)==null?void 0:b.find(g=>g.type==="bpmn:Collaboration")),!h))return ko.prettyError("No Element found!");p=Jht(h),f.setElement(d.markRaw(h)),n.value=h.id,r.value=h.type.split(":")[1],i.value=(v=f.modeler)==null?void 0:v.get("translate")(r.value||""),o.value=vAe[p],a.value=p||h.type,l(h),af.emit("element-update",h),ko.prettyPrimary("Selected element changed",`ID: ${h.id} , type: ${h.type}`)},100);return af.on("modeler-init",u=>{u.on("import.done",()=>{c(null)}),u.on("selection.changed",({newSelection:f})=>{c(f[0]||null)}),u.on("element.changed",({element:f})=>{f&&f.id===n.value&&c(f)}),u.on("element.click",f=>{ko.prettyInfo("Element Click",f)})}),(u,f)=>(d.openBlock(),d.createElementBlock("div",apt,[d.createElementVNode("div",spt,[d.createVNode(CAe,{name:o.value},null,8,["name"]),d.createElementVNode("p",null,d.toDisplayString(a.value),1),d.createElementVNode("p",null,d.toDisplayString(d.unref(Pce)(r.value||"Process")),1)]),d.createVNode(d.unref(EB),{class:"panel-body","arrow-placement":"right"},{default:d.withCtx(()=>[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(t.value,(h,p)=>(d.openBlock(),d.createBlock(d.resolveDynamicComponent(h),{key:p}))),128))]),_:1})]))}}),[["__scopeId","data-v-2494b10c"]]);function CM(){}CM.prototype.get=function(e){return this.$model.properties.get(this,e)},CM.prototype.set=function(e,t){this.$model.properties.set(this,e,t)};function Oce(e,t){this.model=e,this.properties=t}Oce.prototype.createType=function(e){var t=this.model,n=this.properties,r=Object.create(CM.prototype);Pe(e.properties,function(a){!a.isMany&&a.default!==void 0&&(r[a.name]=a.default)}),n.defineModel(r,t),n.defineDescriptor(r,e);var i=e.ns.name;function o(a){n.define(this,"$type",{value:i,enumerable:!0}),n.define(this,"$attrs",{value:{}}),n.define(this,"$parent",{writable:!0}),Pe(a,xo(function(s,l){this.set(l,s)},this))}return o.prototype=r,o.hasType=r.$instanceOf=this.model.hasType,n.defineModel(o,t),n.defineDescriptor(o,e),o};var cpt={String:!0,Boolean:!0,Integer:!0,Real:!0,Element:!0},jce={String:function(e){return e},Boolean:function(e){return e==="true"},Integer:function(e){return parseInt(e,10)},Real:function(e){return parseFloat(e)}};function _M(e,t){var n=jce[e];return n?n(t):t}function SM(e){return!!cpt[e]}function Mce(e){return!!jce[e]}function Da(e,t){var n=e.split(/:/),r,i;if(n.length===1)r=e,i=t;else if(n.length===2)r=n[1],i=n[0];else throw new Error("expected <prefix:localName> or <localName>, got "+e);return e=(i?i+":":"")+r,{name:e,prefix:i,localName:r}}function ul(e){this.ns=e,this.name=e.name,this.allTypes=[],this.allTypesByName={},this.properties=[],this.propertiesByName={}}ul.prototype.build=function(){return xl(this,["ns","name","allTypes","allTypesByName","properties","propertiesByName","bodyProperty","idProperty"])},ul.prototype.addProperty=function(e,t,n){typeof t=="boolean"&&(n=t,t=void 0),this.addNamedProperty(e,n!==!1);var r=this.properties;t!==void 0?r.splice(t,0,e):r.push(e)},ul.prototype.replaceProperty=function(e,t,n){var r=e.ns,i=this.properties,o=this.propertiesByName,a=e.name!==t.name;if(e.isId){if(!t.isId)throw new Error("property <"+t.ns.name+"> must be id property to refine <"+e.ns.name+">");this.setIdProperty(t,!1)}if(e.isBody){if(!t.isBody)throw new Error("property <"+t.ns.name+"> must be body property to refine <"+e.ns.name+">");this.setBodyProperty(t,!1)}var s=i.indexOf(e);if(s===-1)throw new Error("property <"+r.name+"> not found in property list");i.splice(s,1),this.addProperty(t,n?void 0:s,a),o[r.name]=o[r.localName]=t},ul.prototype.redefineProperty=function(e,t,n){var r=e.ns.prefix,i=t.split("#"),o=Da(i[0],r),a=Da(i[1],o.prefix).name,s=this.propertiesByName[a];if(s)this.replaceProperty(s,e,n);else throw new Error("refined property <"+a+"> not found");delete e.redefines},ul.prototype.addNamedProperty=function(e,t){var n=e.ns,r=this.propertiesByName;t&&(this.assertNotDefined(e,n.name),this.assertNotDefined(e,n.localName)),r[n.name]=r[n.localName]=e},ul.prototype.removeNamedProperty=function(e){var t=e.ns,n=this.propertiesByName;delete n[t.name],delete n[t.localName]},ul.prototype.setBodyProperty=function(e,t){if(t&&this.bodyProperty)throw new Error("body property defined multiple times (<"+this.bodyProperty.ns.name+">, <"+e.ns.name+">)");this.bodyProperty=e},ul.prototype.setIdProperty=function(e,t){if(t&&this.idProperty)throw new Error("id property defined multiple times (<"+this.idProperty.ns.name+">, <"+e.ns.name+">)");this.idProperty=e},ul.prototype.assertNotTrait=function(e){if((e.extends||[]).length)throw new Error(`cannot create <${e.name}> extending <${e.extends}>`)},ul.prototype.assertNotDefined=function(e,t){var n=e.name,r=this.propertiesByName[n];if(r)throw new Error("property <"+n+"> already defined; override of <"+r.definedBy.ns.name+"#"+r.ns.name+"> by <"+e.definedBy.ns.name+"#"+e.ns.name+"> not allowed without redefines")},ul.prototype.hasProperty=function(e){return this.propertiesByName[e]},ul.prototype.addTrait=function(e,t){t&&this.assertNotTrait(e);var n=this.allTypesByName,r=this.allTypes,i=e.name;i in n||(Pe(e.properties,xo(function(o){o=Fe({},o,{name:o.ns.localName,inherited:t}),Object.defineProperty(o,"definedBy",{value:e});var a=o.replaces,s=o.redefines;a||s?this.redefineProperty(o,a||s,a):(o.isBody&&this.setBodyProperty(o),o.isId&&this.setIdProperty(o),this.addProperty(o))},this)),r.push(e),n[i]=e)};function zf(e,t){this.packageMap={},this.typeMap={},this.packages=[],this.properties=t,Pe(e,xo(this.registerPackage,this))}zf.prototype.getPackage=function(e){return this.packageMap[e]},zf.prototype.getPackages=function(){return this.packages},zf.prototype.registerPackage=function(e){e=Fe({},e);var t=this.packageMap;Ace(t,e,"prefix"),Ace(t,e,"uri"),Pe(e.types,xo(function(n){this.registerType(n,e)},this)),t[e.uri]=t[e.prefix]=e,this.packages.push(e)},zf.prototype.registerType=function(e,t){e=Fe({},e,{superClass:(e.superClass||[]).slice(),extends:(e.extends||[]).slice(),properties:(e.properties||[]).slice(),meta:Fe(e.meta||{})});var n=Da(e.name,t.prefix),r=n.name,i={};Pe(e.properties,xo(function(o){var a=Da(o.name,n.prefix),s=a.name;SM(o.type)||(o.type=Da(o.type,a.prefix).name),Fe(o,{ns:a,name:s}),i[s]=o},this)),Fe(e,{ns:n,name:r,propertiesByName:i}),Pe(e.extends,xo(function(o){var a=Da(o,n.prefix),s=this.typeMap[a.name];s.traits=s.traits||[],s.traits.push(r)},this)),this.definePackage(e,t),this.typeMap[r]=e},zf.prototype.mapTypes=function(e,t,n){var r=SM(e.name)?{name:e.name}:this.typeMap[e.name],i=this;function o(l,c){var u=Da(l,SM(l)?"":e.prefix);i.mapTypes(u,t,c)}function a(l){return o(l,!0)}function s(l){return o(l,!1)}if(!r)throw new Error("unknown type <"+e.name+">");Pe(r.superClass,n?a:s),t(r,!n),Pe(r.traits,a)},zf.prototype.getEffectiveDescriptor=function(e){var t=Da(e),n=new ul(t);this.mapTypes(t,function(i,o){n.addTrait(i,o)});var r=n.build();return this.definePackage(r,r.allTypes[r.allTypes.length-1].$pkg),r},zf.prototype.definePackage=function(e,t){this.properties.define(e,"$pkg",{value:t})};function Ace(e,t,n){var r=t[n];if(r in e)throw new Error("package with "+n+" <"+r+"> already defined")}function Bp(e){this.model=e}Bp.prototype.set=function(e,t,n){if(!yo(t)||!t.length)throw new TypeError("property name must be a non-empty string");var r=this.getProperty(e,t),i=r&&r.name;upt(n)?r?delete e[i]:delete e.$attrs[EM(t)]:r?i in e?e[i]=n:Nce(e,r,n):e.$attrs[EM(t)]=n},Bp.prototype.get=function(e,t){var n=this.getProperty(e,t);if(!n)return e.$attrs[EM(t)];var r=n.name;return!e[r]&&n.isMany&&Nce(e,n,[]),e[r]},Bp.prototype.define=function(e,t,n){if(!n.writable){var r=n.value;n=Fe({},n,{get:function(){return r}}),delete n.value}Object.defineProperty(e,t,n)},Bp.prototype.defineDescriptor=function(e,t){this.define(e,"$descriptor",{value:t})},Bp.prototype.defineModel=function(e,t){this.define(e,"$model",{value:t})},Bp.prototype.getProperty=function(e,t){var n=this.model,r=n.getPropertyDescriptor(e,t);if(r)return r;if(t.includes(":"))return null;const i=n.config.strict;if(typeof i<"u"){const o=new TypeError(`unknown property <${t}> on <${e.$type}>`);if(i)throw o;typeof console<"u"&&console.warn(o)}return null};function upt(e){return typeof e>"u"}function Nce(e,t,n){Object.defineProperty(e,t.name,{enumerable:!t.isReference,writable:!0,value:n,configurable:!0})}function EM(e){return e.replace(/^:/,"")}function Xl(e,t={}){this.properties=new Bp(this),this.factory=new Oce(this,this.properties),this.registry=new zf(e,this.properties),this.typeCache={},this.config=t}Xl.prototype.create=function(e,t){var n=this.getType(e);if(!n)throw new Error("unknown type <"+e+">");return new n(t)},Xl.prototype.getType=function(e){var t=this.typeCache,n=yo(e)?e:e.ns.name,r=t[n];return r||(e=this.registry.getEffectiveDescriptor(n),r=t[n]=this.factory.createType(e)),r},Xl.prototype.createAny=function(e,t,n){var r=Da(e),i={$type:e,$instanceOf:function(a){return a===this.$type},get:function(a){return this[a]},set:function(a,s){xz(this,[a],s)}},o={name:e,isGeneric:!0,ns:{prefix:r.prefix,localName:r.localName,uri:t}};return this.properties.defineDescriptor(i,o),this.properties.defineModel(i,this),this.properties.define(i,"get",{enumerable:!1,writable:!0}),this.properties.define(i,"set",{enumerable:!1,writable:!0}),this.properties.define(i,"$parent",{enumerable:!1,writable:!0}),this.properties.define(i,"$instanceOf",{enumerable:!1,writable:!0}),Pe(n,function(a,s){jo(a)&&a.value!==void 0?i[a.name]=a.value:i[s]=a}),i},Xl.prototype.getPackage=function(e){return this.registry.getPackage(e)},Xl.prototype.getPackages=function(){return this.registry.getPackages()},Xl.prototype.getElementDescriptor=function(e){return e.$descriptor},Xl.prototype.hasType=function(e,t){t===void 0&&(t=e,e=this);var n=e.$model.getElementDescriptor(e);return t in n.allTypesByName},Xl.prototype.getPropertyDescriptor=function(e,t){return this.getElementDescriptor(e).propertiesByName[t]},Xl.prototype.getTypeDescriptor=function(e){return this.registry.typeMap[e]};var Dce=String.fromCharCode,dpt=Object.prototype.hasOwnProperty,fpt=/&#(\d+);|&#x([0-9a-f]+);|&(\w+);/ig,Dy={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'};Object.keys(Dy).forEach(function(e){Dy[e.toUpperCase()]=Dy[e]});function hpt(e,t,n,r){return r?dpt.call(Dy,r)?Dy[r]:"&"+r+";":Dce(t||parseInt(n,16))}function Fp(e){return e.length>3&&e.indexOf("&")!==-1?e.replace(fpt,hpt):e}var Ice="non-whitespace outside of root node";function Sg(e){return new Error(e)}function Lce(e){return"missing namespace for prefix <"+e+">"}function t7(e){return{get:e,enumerable:!0}}function ppt(e){var t={},n;for(n in e)t[n]=e[n];return t}function kM(e){return e+"$uri"}function mpt(e){var t={},n,r;for(n in e)r=e[n],t[r]=r,t[kM(r)]=n;return t}function Bce(){return{line:0,column:0}}function gpt(e){throw e}function Fce(e){if(!this)return new Fce(e);var t=e&&e.proxy,n,r,i,o,a=gpt,s,l,c,u,f=Bce,h=!1,p=!1,m=null,b=!1,v;function g(y){y instanceof Error||(y=Sg(y)),m=y,a(y,f)}function x(y){s&&(y instanceof Error||(y=Sg(y)),s(y,f))}this.on=function(y,C){if(typeof C!="function")throw Sg("required args <name, cb>");switch(y){case"openTag":r=C;break;case"text":n=C;break;case"closeTag":i=C;break;case"error":a=C;break;case"warn":s=C;break;case"cdata":o=C;break;case"attention":u=C;break;case"question":c=C;break;case"comment":l=C;break;default:throw Sg("unsupported event: "+y)}return this},this.ns=function(y){if(typeof y>"u"&&(y={}),typeof y!="object")throw Sg("required args <nsMap={}>");var C={},_;for(_ in y)C[_]=y[_];return p=!0,v=C,this},this.parse=function(y){if(typeof y!="string")throw Sg("required args <xml=string>");return m=null,w(y),f=Bce,b=!1,m},this.stop=function(){b=!0};function w(y){var C=p?[]:null,_=p?mpt(v):null,S,E=[],$=0,k=!1,P=!1,T=0,j=0,M,B,V,R,I,G,F,z,A,L="",N=0,q;function oe(){if(q!==null)return q;var be,H,O,D=p&&_.xmlns,ae=p&&h?[]:null,U=N,Y=L,ye=Y.length,ue,Ce,he,de,ve,Oe={},Le={},Ge,ne,Te;e:for(;U<ye;U++)if(Ge=!1,ne=Y.charCodeAt(U),!(ne===32||ne<14&&ne>8)){for((ne<65||ne>122||ne>90&&ne<97)&&ne!==95&&ne!==58&&(x("illegal first char attribute name"),Ge=!0),Te=U+1;Te<ye;Te++)if(ne=Y.charCodeAt(Te),!(ne>96&&ne<123||ne>64&&ne<91||ne>47&&ne<59||ne===46||ne===45||ne===95)){if(ne===32||ne<14&&ne>8){x("missing attribute value"),U=Te;continue e}if(ne===61)break;x("illegal attribute name char"),Ge=!0}if(ve=Y.substring(U,Te),ve==="xmlns:xmlns"&&(x("illegal declaration of xmlns"),Ge=!0),ne=Y.charCodeAt(Te+1),ne===34)Te=Y.indexOf('"',U=Te+2),Te===-1&&(Te=Y.indexOf("'",U),Te!==-1&&(x("attribute value quote missmatch"),Ge=!0));else if(ne===39)Te=Y.indexOf("'",U=Te+2),Te===-1&&(Te=Y.indexOf('"',U),Te!==-1&&(x("attribute value quote missmatch"),Ge=!0));else for(x("missing attribute value quotes"),Ge=!0,Te=Te+1;Te<ye&&(ne=Y.charCodeAt(Te+1),!(ne===32||ne<14&&ne>8));Te++);for(Te===-1&&(x("missing closing quotes"),Te=ye,Ge=!0),Ge||(he=Y.substring(U,Te)),U=Te;Te+1<ye&&(ne=Y.charCodeAt(Te+1),!(ne===32||ne<14&&ne>8));Te++)U===Te&&(x("illegal character after attribute end"),Ge=!0);if(U=Te+1,Ge)continue e;if(ve in Le){x("attribute <"+ve+"> already defined");continue}if(Le[ve]=!0,!p){Oe[ve]=he;continue}if(h){if(Ce=ve==="xmlns"?"xmlns":ve.charCodeAt(0)===120&&ve.substr(0,6)==="xmlns:"?ve.substr(6):null,Ce!==null){if(be=Fp(he),H=kM(Ce),de=v[be],!de){if(Ce==="xmlns"||H in _&&_[H]!==be)do de="ns"+$++;while(typeof _[de]<"u");else de=Ce;v[be]=de}_[Ce]!==de&&(ue||(_=ppt(_),ue=!0),_[Ce]=de,Ce==="xmlns"&&(_[kM(de)]=be,D=de),_[H]=be),Oe[ve]=he;continue}ae.push(ve,he);continue}if(ne=ve.indexOf(":"),ne===-1){Oe[ve]=he;continue}if(!(O=_[ve.substring(0,ne)])){x(Lce(ve.substring(0,ne)));continue}ve=D===O?ve.substr(ne+1):O+ve.substr(ne),Oe[ve]=he}if(h)for(U=0,ye=ae.length;U<ye;U++){if(ve=ae[U++],he=ae[U],ne=ve.indexOf(":"),ne!==-1){if(!(O=_[ve.substring(0,ne)])){x(Lce(ve.substring(0,ne)));continue}ve=D===O?ve.substr(ne+1):O+ve.substr(ne)}Oe[ve]=he}return q=Oe}function ee(){for(var be=/(\r\n|\r|\n)/g,H=0,O=0,D=0,ae=j,U,Y;T>=D&&(U=be.exec(y),!(!U||(ae=U[0].length+U.index,ae>T)));)H+=1,D=ae;return T==-1?(O=ae,Y=y.substring(j)):j===0?Y=y.substring(j,T):(O=T-D,Y=j==-1?y.substring(T):y.substring(T,j+1)),{data:Y,line:H,column:O}}for(f=ee,t&&(A=Object.create({},{name:t7(function(){return F}),originalName:t7(function(){return z}),attrs:t7(oe),ns:t7(function(){return _})}));j!==-1;){if(y.charCodeAt(j)===60?T=j:T=y.indexOf("<",j),T===-1){if(E.length)return g("unexpected end of file");if(j===0)return g("missing start tag");j<y.length&&y.substring(j).trim()&&x(Ice);return}if(j!==T){if(E.length){if(n&&(n(y.substring(j,T),Fp,f),b))return}else if(y.substring(j,T).trim()&&(x(Ice),b))return}if(R=y.charCodeAt(T+1),R===33){if(V=y.charCodeAt(T+2),V===91&&y.substr(T+3,6)==="CDATA["){if(j=y.indexOf("]]>",T),j===-1)return g("unclosed cdata");if(o&&(o(y.substring(T+9,j),f),b))return;j+=3;continue}if(V===45&&y.charCodeAt(T+3)===45){if(j=y.indexOf("-->",T),j===-1)return g("unclosed comment");if(l&&(l(y.substring(T+4,j),Fp,f),b))return;j+=3;continue}}if(R===63){if(j=y.indexOf("?>",T),j===-1)return g("unclosed question");if(c&&(c(y.substring(T,j+2),f),b))return;j+=2;continue}for(M=T+1;;M++){if(I=y.charCodeAt(M),isNaN(I))return j=-1,g("unclosed tag");if(I===34)V=y.indexOf('"',M+1),M=V!==-1?V:M;else if(I===39)V=y.indexOf("'",M+1),M=V!==-1?V:M;else if(I===62){j=M;break}}if(R===33){if(u&&(u(y.substring(T,j+1),Fp,f),b))return;j+=1;continue}if(q={},R===47){if(k=!1,P=!0,!E.length)return g("missing open tag");if(M=F=E.pop(),V=T+2+M.length,y.substring(T+2,V)!==M)return g("closing tag mismatch");for(;V<j;V++)if(R=y.charCodeAt(V),!(R===32||R>8&&R<14))return g("close tag")}else{if(y.charCodeAt(j-1)===47?(M=F=y.substring(T+1,j-1),k=!0,P=!0):(M=F=y.substring(T+1,j),k=!0,P=!1),!(R>96&&R<123||R>64&&R<91||R===95||R===58))return g("illegal first char nodeName");for(V=1,B=M.length;V<B;V++)if(R=M.charCodeAt(V),!(R>96&&R<123||R>64&&R<91||R>47&&R<59||R===45||R===95||R==46)){if(R===32||R<14&&R>8){F=M.substring(0,V),q=null;break}return g("invalid nodeName")}P||E.push(F)}if(p){if(S=_,k&&(P||C.push(S),q===null&&(h=M.indexOf("xmlns",V)!==-1)&&(N=V,L=M,oe(),h=!1)),z=F,R=F.indexOf(":"),R!==-1){if(G=_[F.substring(0,R)],!G)return g("missing namespace on <"+z+">");F=F.substr(R+1)}else G=_.xmlns;G&&(F=G+":"+F)}if(k&&(N=V,L=M,r&&(t?r(A,Fp,P,f):r(F,oe,Fp,P,f),b)))return;if(P){if(i&&(i(t?A:F,Fp,k,f),b))return;p&&(k?_=S:_=C.pop())}j+=1}}}function zce(e){return e.xml&&e.xml.tagAlias==="lowerCase"}var $M={xsi:"http://www.w3.org/2001/XMLSchema-instance",xml:"http://www.w3.org/XML/1998/namespace"},Vce="property";function Hce(e){return e.xml&&e.xml.serialize}function vpt(e){const t=Hce(e);return t!==Vce&&(t||null)}function bpt(e){return e.charAt(0).toUpperCase()+e.slice(1)}function Uce(e,t){return zce(t)?e.prefix+":"+bpt(e.localName):e.name}function ypt(e,t){var n=e.name,r=e.localName,i=t&&t.xml&&t.xml.typePrefix;return i&&r.indexOf(i)===0?e.prefix+":"+r.slice(i.length):n}function xpt(e,t,n){const r=Da(e,t.xmlns),i=`${t[r.prefix]||r.prefix}:${r.localName}`,o=Da(i);var a=n.getPackage(o.prefix);return ypt(o,a)}function Vf(e){return new Error(e)}function nd(e){return e.$descriptor}function wpt(e){Fe(this,e),this.elementsById={},this.references=[],this.warnings=[],this.addReference=function(t){this.references.push(t)},this.addElement=function(t){if(!t)throw Vf("expected element");var n=this.elementsById,r=nd(t),i=r.idProperty,o;if(i&&(o=t.get(i.name),o)){if(!/^([a-z][\w-.]*:)?[a-z_][\w-.]*$/i.test(o))throw new Error("illegal ID <"+o+">");if(n[o])throw Vf("duplicate ID <"+o+">");n[o]=t}},this.addWarning=function(t){this.warnings.push(t)}}function Iy(){}Iy.prototype.handleEnd=function(){},Iy.prototype.handleText=function(){},Iy.prototype.handleNode=function(){};function TM(){}TM.prototype=Object.create(Iy.prototype),TM.prototype.handleNode=function(){return this};function Eg(){}Eg.prototype=Object.create(Iy.prototype),Eg.prototype.handleText=function(e){this.body=(this.body||"")+e};function Ly(e,t){this.property=e,this.context=t}Ly.prototype=Object.create(Eg.prototype),Ly.prototype.handleNode=function(e){if(this.element)throw Vf("expected no sub nodes");return this.element=this.createReference(e),this},Ly.prototype.handleEnd=function(){this.element.id=this.body},Ly.prototype.createReference=function(e){return{property:this.property.ns.name,id:""}};function RM(e,t){this.element=t,this.propertyDesc=e}RM.prototype=Object.create(Eg.prototype),RM.prototype.handleEnd=function(){var e=this.body||"",t=this.element,n=this.propertyDesc;e=_M(n.type,e),n.isMany?t.get(n.name).push(e):t.set(n.name,e)};function n7(){}n7.prototype=Object.create(Eg.prototype),n7.prototype.handleNode=function(e){var t=this,n=this.element;return n?t=this.handleChild(e):(n=this.element=this.createElement(e),this.context.addElement(n)),t};function ts(e,t,n){this.model=e,this.type=e.getType(t),this.context=n}ts.prototype=Object.create(n7.prototype),ts.prototype.addReference=function(e){this.context.addReference(e)},ts.prototype.handleText=function(e){var t=this.element,n=nd(t),r=n.bodyProperty;if(!r)throw Vf("unexpected body text <"+e+">");Eg.prototype.handleText.call(this,e)},ts.prototype.handleEnd=function(){var e=this.body,t=this.element,n=nd(t),r=n.bodyProperty;r&&e!==void 0&&(e=_M(r.type,e),t.set(r.name,e))},ts.prototype.createElement=function(e){var t=e.attributes,n=this.type,r=nd(n),i=this.context,o=new n({}),a=this.model,s;return Pe(t,function(l,c){var u=r.propertiesByName[c],f;u&&u.isReference?u.isMany?(f=l.split(" "),Pe(f,function(h){i.addReference({element:o,property:u.ns.name,id:h})})):i.addReference({element:o,property:u.ns.name,id:l}):(u?l=_M(u.type,l):c==="xmlns"?c=":"+c:(s=Da(c,r.ns.prefix),a.getPackage(s.prefix)&&i.addWarning({message:"unknown attribute <"+c+">",element:o,property:c,value:l})),o.set(c,l))}),o},ts.prototype.getPropertyForNode=function(e){var t=e.name,n=Da(t),r=this.type,i=this.model,o=nd(r),a=n.name,s=o.propertiesByName[a];if(s&&!s.isAttr){const c=vpt(s);if(c){const u=e.attributes[c];if(u){const f=xpt(u,e.ns,i),h=i.getType(f);return Fe({},s,{effectiveType:nd(h).name})}}return s}var l=i.getPackage(n.prefix);if(l){const c=Uce(n,l),u=i.getType(c);if(s=ar(o.properties,function(f){return!f.isVirtual&&!f.isReference&&!f.isAttribute&&u.hasType(f.type)}),s)return Fe({},s,{effectiveType:nd(u).name})}else if(s=ar(o.properties,function(c){return!c.isReference&&!c.isAttribute&&c.type==="Element"}),s)return s;throw Vf("unrecognized element <"+n.name+">")},ts.prototype.toString=function(){return"ElementDescriptor["+nd(this.type).name+"]"},ts.prototype.valueHandler=function(e,t){return new RM(e,t)},ts.prototype.referenceHandler=function(e){return new Ly(e,this.context)},ts.prototype.handler=function(e){return e==="Element"?new kg(this.model,e,this.context):new ts(this.model,e,this.context)},ts.prototype.handleChild=function(e){var t,n,r,i;if(t=this.getPropertyForNode(e),r=this.element,n=t.effectiveType||t.type,Mce(n))return this.valueHandler(t,r);t.isReference?i=this.referenceHandler(t).handleNode(e):i=this.handler(n).handleNode(e);var o=i.element;return o!==void 0&&(t.isMany?r.get(t.name).push(o):r.set(t.name,o),t.isReference?(Fe(o,{element:r}),this.context.addReference(o)):o.$parent=r),i};function PM(e,t,n){ts.call(this,e,t,n)}PM.prototype=Object.create(ts.prototype),PM.prototype.createElement=function(e){var t=e.name,n=Da(t),r=this.model,i=this.type,o=r.getPackage(n.prefix),a=o&&Uce(n,o)||t;if(!i.hasType(a))throw Vf("unexpected element <"+e.originalName+">");return ts.prototype.createElement.call(this,e)};function kg(e,t,n){this.model=e,this.context=n}kg.prototype=Object.create(n7.prototype),kg.prototype.createElement=function(e){var t=e.name,n=Da(t),r=n.prefix,i=e.ns[r+"$uri"],o=e.attributes;return this.model.createAny(t,i,o)},kg.prototype.handleChild=function(e){var t=new kg(this.model,"Element",this.context).handleNode(e),n=this.element,r=t.element,i;return r!==void 0&&(i=n.$children=n.$children||[],i.push(r),r.$parent=n),t},kg.prototype.handleEnd=function(){this.body&&(this.element.$body=this.body)};function OM(e){e instanceof Xl&&(e={model:e}),Fe(this,{lax:!1},e)}OM.prototype.fromXML=function(e,t,n){var r=t.rootHandler;t instanceof ts?(r=t,t={}):typeof t=="string"?(r=this.handler(t),t={}):typeof r=="string"&&(r=this.handler(r));var i=this.model,o=this.lax,a=new wpt(Fe({},t,{rootHandler:r})),s=new Fce({proxy:!0}),l=Cpt();r.context=a,l.push(r);function c(C,_,S){var E=_(),$=E.line,k=E.column,P=E.data;P.charAt(0)==="<"&&P.indexOf(" ")!==-1&&(P=P.slice(0,P.indexOf(" "))+">");var T="unparsable content "+(P?P+" ":"")+`detected
|
4156
4156
|
line: `+$+`
|
4157
4157
|
column: `+k+`
|
4158
4158
|
nested error: `+C.message;if(S)return a.addWarning({message:T,error:C}),!0;throw Vf(T)}function u(C,_){return c(C,_,!0)}function f(){var C=a.elementsById,_=a.references,S,E;for(S=0;E=_[S];S++){var $=E.element,k=C[E.id],P=nd($).propertiesByName[E.property];if(k||a.addWarning({message:"unresolved reference <"+E.id+">",element:E.element,property:E.property,value:E.id}),P.isMany){var T=$.get(P.name),j=T.indexOf(E);j===-1&&(j=T.length),k?T[j]=k:T.splice(j,1)}else $.set(P.name,k)}}function h(){l.pop().handleEnd()}var p=/^<\?xml /i,m=/ encoding="([^"]+)"/i,b=/^utf-8$/i;function v(C){if(p.test(C)){var _=m.exec(C),S=_&&_[1];!S||b.test(S)||a.addWarning({message:"unsupported document encoding <"+S+">, falling back to UTF-8"})}}function g(C,_){var S=l.peek();try{l.push(S.handleNode(C))}catch(E){c(E,_,o)&&l.push(new TM)}}function x(C,_){try{l.peek().handleText(C)}catch(S){u(S,_)}}function w(C,_){C.trim()&&x(C,_)}var y=i.getPackages().reduce(function(C,_){return C[_.uri]=_.prefix,C},Object.entries($M).reduce(function(C,[_,S]){return C[S]=_,C},i.config&&i.config.nsMap||{}));return s.ns(y).on("openTag",function(C,_,S,E){var $=C.attrs||{},k=Object.keys($).reduce(function(T,j){var M=_($[j]);return T[j]=M,T},{}),P={name:C.name,originalName:C.originalName,attributes:k,ns:C.ns};g(P,E)}).on("question",v).on("closeTag",h).on("cdata",x).on("text",function(C,_,S){w(_(C),S)}).on("error",c).on("warn",u),new Promise(function(C,_){var S;try{s.parse(e),f()}catch(T){S=T}var E=r.element;!S&&!E&&(S=Vf("failed to parse document as <"+r.type.$descriptor.name+">"));var $=a.warnings,k=a.references,P=a.elementsById;return S?(S.warnings=$,_(S)):C({rootElement:E,elementsById:P,references:k,warnings:$})})},OM.prototype.handler=function(e){return new PM(this.model,e)};function Cpt(){var e=[];return Object.defineProperty(e,"peek",{value:function(){return this[this.length-1]}}),e}var _pt=`<?xml version="1.0" encoding="UTF-8"?>
|
@@ -4179,8 +4179,8 @@ return query;
|
|
4179
4179
|
</bpmndi:BPMNShape>
|
4180
4180
|
</bpmndi:BPMNPlane>
|
4181
4181
|
</bpmndi:BPMNDiagram>
|
4182
|
-
</definitions>`,j1t={class:"toolbar-container"},M1t=va(d.defineComponent({__name:"Toolbar",setup(e){const t=d.ref(d.markRaw($Y(I6.TOOLBAR_PREFIX))),n=new P1t,r=d.ref(null);async function i(){await Zce(Xce)}async function o(){var p;const h=Zt(Ut);try{const m=await((p=h.modeler)==null?void 0:p.saveXML({format:!0})),{xml:b}=m||{};if(!b)return;const v=new Blob([b],{type:"application/bpmn20-xml;charset=UTF-8,"}),g=document.createElement("a");g.download=`bpmn-${+new Date}.xml`,g.innerHTML="Get BPMN SVG",g.href=window.URL.createObjectURL(v),g.onclick=function(x){document.body.removeChild(x.target)},g.style.visibility="hidden",document.body.appendChild(g),g.click()}catch(m){console.log("saveXML error:",m)}}async function a(h){const p=h.target.files[0],m=Zt(Ut);if(p){const b=new FileReader;b.onload=async v=>{var x;const g=v.target.result;await((x=m.modeler)==null?void 0:x.importXML(g))},b.readAsText(p)}}async function s(){var p;const h=Zt(Ut);try{const m=await((p=h.modeler)==null?void 0:p.saveSVG());if(!(m!=null&&m.svg))return;const{svg:b}=m,v=new Blob([b],{type:"image/svg+xml"}),g=document.createElement("a");g.download=`bpmn-${+new Date}.svg`,g.innerHTML="Get BPMN SVG",g.href=window.URL.createObjectURL(v),g.onclick=function(x){document.body.removeChild(x.target)},g.style.visibility="hidden",document.body.appendChild(g),g.click()}catch(m){console.log(m)}}const l=zwe();async function c(){const h=await AM();h&&l.create({title:"预览 XML",icon:()=>d.createVNode(N6,null,null),class:"preview-model",content:()=>[d.createVNode("div",{class:"preview-model-body"},[d.createVNode(o4,{code:h,language:"xml",wordWrap:!0},null)])]})}async function u(){const h=await AM(),p=await n.fromXML(h);l.create({title:"预览 JSON",icon:()=>d.createVNode(N6,null,null),class:"preview-model",content:()=>d.createVNode("div",{class:"preview-model"},[d.createVNode(o4,{code:JSON.stringify(p,null,2),language:"json",wordWrap:!0},null)])})}async function f(){const h=Yce();l.create({title:"预览权限JSON",icon:()=>d.createVNode(N6,null,null),class:"preview-model",content:()=>d.createVNode("div",{class:"preview-model"},[d.createVNode(o4,{code:JSON.stringify(h,null,2),language:"json",wordWrap:!0},null)])})}return(h,p)=>{const m=d.resolveComponent("n-space"),b=d.resolveComponent("n-popover");return d.openBlock(),d.createElementBlock("div",j1t,[(d.openBlock(),d.createBlock(d.resolveDynamicComponent(t.value))),d.createVNode(b,{placement:"bottom",trigger:"hover"},{trigger:d.withCtx(()=>[d.createVNode(d.unref(_n),{size:"small"},{default:d.withCtx(()=>[d.createTextVNode("导入文件")]),_:1})]),default:d.withCtx(()=>[d.createVNode(m,{vertical:""},{default:d.withCtx(()=>[d.createVNode(d.unref(_n),{onClick:p[0]||(p[0]=v=>r.value.click()),type:"primary"},{default:d.withCtx(()=>[d.createTextVNode("导入 XML")]),_:1}),d.createVNode(d.unref(_n),{onClick:i,type:"warning"},{default:d.withCtx(()=>[d.createTextVNode("重置 XML")]),_:1})]),_:1})]),_:1}),d.createVNode(b,{placement:"bottom",trigger:"hover"},{trigger:d.withCtx(()=>[d.createVNode(d.unref(_n),{size:"small"},{default:d.withCtx(()=>[d.createTextVNode("保存文件")]),_:1})]),default:d.withCtx(()=>[d.createVNode(m,{vertical:""},{default:d.withCtx(()=>[d.createVNode(d.unref(_n),{onClick:o,type:"primary"},{default:d.withCtx(()=>[d.createTextVNode("保存 XML")]),_:1}),d.createVNode(d.unref(_n),{onClick:s,type:"primary"},{default:d.withCtx(()=>[d.createTextVNode("保存 SVG")]),_:1})]),_:1})]),_:1}),d.createVNode(b,{placement:"bottom",trigger:"hover"},{trigger:d.withCtx(()=>[d.createVNode(d.unref(_n),{size:"small"},{default:d.withCtx(()=>[d.createTextVNode("预览文件")]),_:1})]),default:d.withCtx(()=>[d.createVNode(m,{vertical:""},{default:d.withCtx(()=>[d.createVNode(d.unref(_n),{onClick:c,type:"primary"},{default:d.withCtx(()=>[d.createTextVNode("预览 XML")]),_:1}),d.createVNode(d.unref(_n),{onClick:u,type:"primary"},{default:d.withCtx(()=>[d.createTextVNode("预览 JSON")]),_:1}),d.createVNode(d.unref(_n),{onClick:f,type:"primary"},{default:d.withCtx(()=>[d.createTextVNode("预览表单权限 SON")]),_:1})]),_:1})]),_:1}),d.createElementVNode("input",{type:"file",ref_key:"xmlInputRef",ref:r,class:"hidden",onChange:a,accept:".xml"},null,544)])}}}),[["__scopeId","data-v-f1dac6ec"]]);function Jce(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(t=>{const n=e[t],r=typeof n;(r==="object"||r==="function")&&!Object.isFrozen(n)&&Jce(n)}),e}class Qce{constructor(t){t.data===void 0&&(t.data={}),this.data=t.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function eue(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function Hf(e,...t){const n=Object.create(null);for(const r in e)n[r]=e[r];return t.forEach(function(r){for(const i in r)n[i]=r[i]}),n}const A1t="</span>",tue=e=>!!e.scope,N1t=(e,{prefix:t})=>{if(e.startsWith("language:"))return e.replace("language:","language-");if(e.includes(".")){const n=e.split(".");return[`${t}${n.shift()}`,...n.map((r,i)=>`${r}${"_".repeat(i+1)}`)].join(" ")}return`${t}${e}`};class D1t{constructor(t,n){this.buffer="",this.classPrefix=n.classPrefix,t.walk(this)}addText(t){this.buffer+=eue(t)}openNode(t){if(!tue(t))return;const n=N1t(t.scope,{prefix:this.classPrefix});this.span(n)}closeNode(t){tue(t)&&(this.buffer+=A1t)}value(){return this.buffer}span(t){this.buffer+=`<span class="${t}">`}}const nue=(e={})=>{const t={children:[]};return Object.assign(t,e),t};class NM{constructor(){this.rootNode=nue(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(t){this.top.children.push(t)}openNode(t){const n=nue({scope:t});this.add(n),this.stack.push(n)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(t){return this.constructor._walk(t,this.rootNode)}static _walk(t,n){return typeof n=="string"?t.addText(n):n.children&&(t.openNode(n),n.children.forEach(r=>this._walk(t,r)),t.closeNode(n)),t}static _collapse(t){typeof t!="string"&&t.children&&(t.children.every(n=>typeof n=="string")?t.children=[t.children.join("")]:t.children.forEach(n=>{NM._collapse(n)}))}}class I1t extends NM{constructor(t){super(),this.options=t}addText(t){t!==""&&this.add(t)}startScope(t){this.openNode(t)}endScope(){this.closeNode()}__addSublanguage(t,n){const r=t.root;n&&(r.scope=`language:${n}`),this.add(r)}toHTML(){return new D1t(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function By(e){return e?typeof e=="string"?e:e.source:null}function rue(e){return Vp("(?=",e,")")}function L1t(e){return Vp("(?:",e,")*")}function B1t(e){return Vp("(?:",e,")?")}function Vp(...e){return e.map(n=>By(n)).join("")}function F1t(e){const t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function DM(...e){return"("+(F1t(e).capture?"":"?:")+e.map(r=>By(r)).join("|")+")"}function iue(e){return new RegExp(e.toString()+"|").exec("").length-1}function z1t(e,t){const n=e&&e.exec(t);return n&&n.index===0}const V1t=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function IM(e,{joinWith:t}){let n=0;return e.map(r=>{n+=1;const i=n;let o=By(r),a="";for(;o.length>0;){const s=V1t.exec(o);if(!s){a+=o;break}a+=o.substring(0,s.index),o=o.substring(s.index+s[0].length),s[0][0]==="\\"&&s[1]?a+="\\"+String(Number(s[1])+i):(a+=s[0],s[0]==="("&&n++)}return a}).map(r=>`(${r})`).join(t)}const H1t=/\b\B/,oue="[a-zA-Z]\\w*",LM="[a-zA-Z_]\\w*",aue="\\b\\d+(\\.\\d+)?",sue="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",lue="\\b(0b[01]+)",U1t="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",W1t=(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=Vp(t,/.*\b/,e.binary,/\b.*/)),Hf({scope:"meta",begin:t,end:/$/,relevance:0,"on:begin":(n,r)=>{n.index!==0&&r.ignoreMatch()}},e)},Fy={begin:"\\\\[\\s\\S]",relevance:0},q1t={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[Fy]},G1t={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[Fy]},K1t={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},o7=function(e,t,n={}){const r=Hf({scope:"comment",begin:e,end:t,contains:[]},n);r.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const i=DM("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return r.contains.push({begin:Vp(/[ ]+/,"(",i,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),r},Y1t=o7("//","$"),Z1t=o7("/\\*","\\*/"),X1t=o7("#","$"),J1t={scope:"number",begin:aue,relevance:0},Q1t={scope:"number",begin:sue,relevance:0},emt={scope:"number",begin:lue,relevance:0},tmt={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[Fy,{begin:/\[/,end:/\]/,relevance:0,contains:[Fy]}]},nmt={scope:"title",begin:oue,relevance:0},rmt={scope:"title",begin:LM,relevance:0},imt={begin:"\\.\\s*"+LM,relevance:0};var a7=Object.freeze({__proto__:null,APOS_STRING_MODE:q1t,BACKSLASH_ESCAPE:Fy,BINARY_NUMBER_MODE:emt,BINARY_NUMBER_RE:lue,COMMENT:o7,C_BLOCK_COMMENT_MODE:Z1t,C_LINE_COMMENT_MODE:Y1t,C_NUMBER_MODE:Q1t,C_NUMBER_RE:sue,END_SAME_AS_BEGIN:function(e){return Object.assign(e,{"on:begin":(t,n)=>{n.data._beginMatch=t[1]},"on:end":(t,n)=>{n.data._beginMatch!==t[1]&&n.ignoreMatch()}})},HASH_COMMENT_MODE:X1t,IDENT_RE:oue,MATCH_NOTHING_RE:H1t,METHOD_GUARD:imt,NUMBER_MODE:J1t,NUMBER_RE:aue,PHRASAL_WORDS_MODE:K1t,QUOTE_STRING_MODE:G1t,REGEXP_MODE:tmt,RE_STARTERS_RE:U1t,SHEBANG:W1t,TITLE_MODE:nmt,UNDERSCORE_IDENT_RE:LM,UNDERSCORE_TITLE_MODE:rmt});function omt(e,t){e.input[e.index-1]==="."&&t.ignoreMatch()}function amt(e,t){e.className!==void 0&&(e.scope=e.className,delete e.className)}function smt(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=omt,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function lmt(e,t){Array.isArray(e.illegal)&&(e.illegal=DM(...e.illegal))}function cmt(e,t){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function umt(e,t){e.relevance===void 0&&(e.relevance=1)}const dmt=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw new Error("beforeMatch cannot be used with starts");const n=Object.assign({},e);Object.keys(e).forEach(r=>{delete e[r]}),e.keywords=n.keywords,e.begin=Vp(n.beforeMatch,rue(n.begin)),e.starts={relevance:0,contains:[Object.assign(n,{endsParent:!0})]},e.relevance=0,delete n.beforeMatch},fmt=["of","and","for","in","not","or","if","then","parent","list","value"],hmt="keyword";function cue(e,t,n=hmt){const r=Object.create(null);return typeof e=="string"?i(n,e.split(" ")):Array.isArray(e)?i(n,e):Object.keys(e).forEach(function(o){Object.assign(r,cue(e[o],t,o))}),r;function i(o,a){t&&(a=a.map(s=>s.toLowerCase())),a.forEach(function(s){const l=s.split("|");r[l[0]]=[o,pmt(l[0],l[1])]})}}function pmt(e,t){return t?Number(t):mmt(e)?0:1}function mmt(e){return fmt.includes(e.toLowerCase())}const uue={},Hp=e=>{console.error(e)},due=(e,...t)=>{console.log(`WARN: ${e}`,...t)},$g=(e,t)=>{uue[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),uue[`${e}/${t}`]=!0)},s7=new Error;function fue(e,t,{key:n}){let r=0;const i=e[n],o={},a={};for(let s=1;s<=t.length;s++)a[s+r]=i[s],o[s+r]=!0,r+=iue(t[s-1]);e[n]=a,e[n]._emit=o,e[n]._multi=!0}function gmt(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw Hp("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),s7;if(typeof e.beginScope!="object"||e.beginScope===null)throw Hp("beginScope must be object"),s7;fue(e,e.begin,{key:"beginScope"}),e.begin=IM(e.begin,{joinWith:""})}}function vmt(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw Hp("skip, excludeEnd, returnEnd not compatible with endScope: {}"),s7;if(typeof e.endScope!="object"||e.endScope===null)throw Hp("endScope must be object"),s7;fue(e,e.end,{key:"endScope"}),e.end=IM(e.end,{joinWith:""})}}function bmt(e){e.scope&&typeof e.scope=="object"&&e.scope!==null&&(e.beginScope=e.scope,delete e.scope)}function ymt(e){bmt(e),typeof e.beginScope=="string"&&(e.beginScope={_wrap:e.beginScope}),typeof e.endScope=="string"&&(e.endScope={_wrap:e.endScope}),gmt(e),vmt(e)}function xmt(e){function t(a,s){return new RegExp(By(a),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(s?"g":""))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(s,l){l.position=this.position++,this.matchIndexes[this.matchAt]=l,this.regexes.push([l,s]),this.matchAt+=iue(s)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const s=this.regexes.map(l=>l[1]);this.matcherRe=t(IM(s,{joinWith:"|"}),!0),this.lastIndex=0}exec(s){this.matcherRe.lastIndex=this.lastIndex;const l=this.matcherRe.exec(s);if(!l)return null;const c=l.findIndex((f,h)=>h>0&&f!==void 0),u=this.matchIndexes[c];return l.splice(0,c),Object.assign(l,u)}}class r{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(s){if(this.multiRegexes[s])return this.multiRegexes[s];const l=new n;return this.rules.slice(s).forEach(([c,u])=>l.addRule(c,u)),l.compile(),this.multiRegexes[s]=l,l}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(s,l){this.rules.push([s,l]),l.type==="begin"&&this.count++}exec(s){const l=this.getMatcher(this.regexIndex);l.lastIndex=this.lastIndex;let c=l.exec(s);if(this.resumingScanAtSamePosition()&&!(c&&c.index===this.lastIndex)){const u=this.getMatcher(0);u.lastIndex=this.lastIndex+1,c=u.exec(s)}return c&&(this.regexIndex+=c.position+1,this.regexIndex===this.count&&this.considerAll()),c}}function i(a){const s=new r;return a.contains.forEach(l=>s.addRule(l.begin,{rule:l,type:"begin"})),a.terminatorEnd&&s.addRule(a.terminatorEnd,{type:"end"}),a.illegal&&s.addRule(a.illegal,{type:"illegal"}),s}function o(a,s){const l=a;if(a.isCompiled)return l;[amt,cmt,ymt,dmt].forEach(u=>u(a,s)),e.compilerExtensions.forEach(u=>u(a,s)),a.__beforeBegin=null,[smt,lmt,umt].forEach(u=>u(a,s)),a.isCompiled=!0;let c=null;return typeof a.keywords=="object"&&a.keywords.$pattern&&(a.keywords=Object.assign({},a.keywords),c=a.keywords.$pattern,delete a.keywords.$pattern),c=c||/\w+/,a.keywords&&(a.keywords=cue(a.keywords,e.case_insensitive)),l.keywordPatternRe=t(c,!0),s&&(a.begin||(a.begin=/\B|\b/),l.beginRe=t(l.begin),!a.end&&!a.endsWithParent&&(a.end=/\B|\b/),a.end&&(l.endRe=t(l.end)),l.terminatorEnd=By(l.end)||"",a.endsWithParent&&s.terminatorEnd&&(l.terminatorEnd+=(a.end?"|":"")+s.terminatorEnd)),a.illegal&&(l.illegalRe=t(a.illegal)),a.contains||(a.contains=[]),a.contains=[].concat(...a.contains.map(function(u){return wmt(u==="self"?a:u)})),a.contains.forEach(function(u){o(u,l)}),a.starts&&o(a.starts,s),l.matcher=i(l),l}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=Hf(e.classNameAliases||{}),o(e)}function hue(e){return e?e.endsWithParent||hue(e.starts):!1}function wmt(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(t){return Hf(e,{variants:null},t)})),e.cachedVariants?e.cachedVariants:hue(e)?Hf(e,{starts:e.starts?Hf(e.starts):null}):Object.isFrozen(e)?Hf(e):e}var Cmt="11.9.0";class _mt extends Error{constructor(t,n){super(t),this.name="HTMLInjectionError",this.html=n}}const BM=eue,pue=Hf,mue=Symbol("nomatch"),Smt=7,gue=function(e){const t=Object.create(null),n=Object.create(null),r=[];let i=!0;const o="Could not find the language '{}', did you forget to load/include a language module?",a={disableAutodetect:!0,name:"Plain text",contains:[]};let s={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:I1t};function l(R){return s.noHighlightRe.test(R)}function c(R){let I=R.className+" ";I+=R.parentNode?R.parentNode.className:"";const G=s.languageDetectRe.exec(I);if(G){const F=$(G[1]);return F||(due(o.replace("{}",G[1])),due("Falling back to no-highlight mode for this block.",R)),F?G[1]:"no-highlight"}return I.split(/\s+/).find(F=>l(F)||$(F))}function u(R,I,G){let F="",z="";typeof I=="object"?(F=R,G=I.ignoreIllegals,z=I.language):($g("10.7.0","highlight(lang, code, ...args) has been deprecated."),$g("10.7.0",`Please use highlight(code, options) instead.
|
4183
|
-
https://github.com/highlightjs/highlight.js/issues/2277`),z=R,F=I),G===void 0&&(G=!0);const A={code:F,language:z};B("before:highlight",A);const L=A.result?A.result:f(A.language,A.code,G);return L.code=A.code,B("after:highlight",L),L}function f(R,I,G,F){const z=Object.create(null);function A(Z,ce){return Z.keywords[ce]}function L(){if(!de.keywords){Oe.addText(Le);return}let Z=0;de.keywordPatternRe.lastIndex=0;let ce=de.keywordPatternRe.exec(Le),_e="";for(;ce;){_e+=Le.substring(Z,ce.index);const $e=ue.case_insensitive?ce[0].toLowerCase():ce[0],Ne=A(de,$e);if(Ne){const[it,Je]=Ne;if(Oe.addText(_e),_e="",z[$e]=(z[$e]||0)+1,z[$e]<=Smt&&(Ge+=Je),it.startsWith("_"))_e+=ce[0];else{const ft=ue.classNameAliases[it]||it;oe(ce[0],ft)}}else _e+=ce[0];Z=de.keywordPatternRe.lastIndex,ce=de.keywordPatternRe.exec(Le)}_e+=Le.substring(Z),Oe.addText(_e)}function N(){if(Le==="")return;let Z=null;if(typeof de.subLanguage=="string"){if(!t[de.subLanguage]){Oe.addText(Le);return}Z=f(de.subLanguage,Le,!0,ve[de.subLanguage]),ve[de.subLanguage]=Z._top}else Z=p(Le,de.subLanguage.length?de.subLanguage:null);de.relevance>0&&(Ge+=Z.relevance),Oe.__addSublanguage(Z._emitter,Z.language)}function q(){de.subLanguage!=null?N():L(),Le=""}function oe(Z,ce){Z!==""&&(Oe.startScope(ce),Oe.addText(Z),Oe.endScope())}function ee(Z,ce){let _e=1;const $e=ce.length-1;for(;_e<=$e;){if(!Z._emit[_e]){_e++;continue}const Ne=ue.classNameAliases[Z[_e]]||Z[_e],it=ce[_e];Ne?oe(it,Ne):(Le=it,L(),Le=""),_e++}}function be(Z,ce){return Z.scope&&typeof Z.scope=="string"&&Oe.openNode(ue.classNameAliases[Z.scope]||Z.scope),Z.beginScope&&(Z.beginScope._wrap?(oe(Le,ue.classNameAliases[Z.beginScope._wrap]||Z.beginScope._wrap),Le=""):Z.beginScope._multi&&(ee(Z.beginScope,ce),Le="")),de=Object.create(Z,{parent:{value:de}}),de}function H(Z,ce,_e){let $e=z1t(Z.endRe,_e);if($e){if(Z["on:end"]){const Ne=new Qce(Z);Z["on:end"](ce,Ne),Ne.isMatchIgnored&&($e=!1)}if($e){for(;Z.endsParent&&Z.parent;)Z=Z.parent;return Z}}if(Z.endsWithParent)return H(Z.parent,ce,_e)}function O(Z){return de.matcher.regexIndex===0?(Le+=Z[0],1):(J=!0,0)}function D(Z){const ce=Z[0],_e=Z.rule,$e=new Qce(_e),Ne=[_e.__beforeBegin,_e["on:begin"]];for(const it of Ne)if(it&&(it(Z,$e),$e.isMatchIgnored))return O(ce);return _e.skip?Le+=ce:(_e.excludeBegin&&(Le+=ce),q(),!_e.returnBegin&&!_e.excludeBegin&&(Le=ce)),be(_e,Z),_e.returnBegin?0:ce.length}function ae(Z){const ce=Z[0],_e=I.substring(Z.index),$e=H(de,Z,_e);if(!$e)return mue;const Ne=de;de.endScope&&de.endScope._wrap?(q(),oe(ce,de.endScope._wrap)):de.endScope&&de.endScope._multi?(q(),ee(de.endScope,Z)):Ne.skip?Le+=ce:(Ne.returnEnd||Ne.excludeEnd||(Le+=ce),q(),Ne.excludeEnd&&(Le=ce));do de.scope&&Oe.closeNode(),!de.skip&&!de.subLanguage&&(Ge+=de.relevance),de=de.parent;while(de!==$e.parent);return $e.starts&&be($e.starts,Z),Ne.returnEnd?0:ce.length}function U(){const Z=[];for(let ce=de;ce!==ue;ce=ce.parent)ce.scope&&Z.unshift(ce.scope);Z.forEach(ce=>Oe.openNode(ce))}let Y={};function ye(Z,ce){const _e=ce&&ce[0];if(Le+=Z,_e==null)return q(),0;if(Y.type==="begin"&&ce.type==="end"&&Y.index===ce.index&&_e===""){if(Le+=I.slice(ce.index,ce.index+1),!i){const $e=new Error(`0 width match regex (${R})`);throw $e.languageName=R,$e.badRule=Y.rule,$e}return 1}if(Y=ce,ce.type==="begin")return D(ce);if(ce.type==="illegal"&&!G){const $e=new Error('Illegal lexeme "'+_e+'" for mode "'+(de.scope||"<unnamed>")+'"');throw $e.mode=de,$e}else if(ce.type==="end"){const $e=ae(ce);if($e!==mue)return $e}if(ce.type==="illegal"&&_e==="")return 1;if(Te>1e5&&Te>ce.index*3)throw new Error("potential infinite loop, way more iterations than matches");return Le+=_e,_e.length}const ue=$(R);if(!ue)throw Hp(o.replace("{}",R)),new Error('Unknown language: "'+R+'"');const Ce=xmt(ue);let he="",de=F||Ce;const ve={},Oe=new s.__emitter(s);U();let Le="",Ge=0,ne=0,Te=0,J=!1;try{if(ue.__emitTokens)ue.__emitTokens(I,Oe);else{for(de.matcher.considerAll();;){Te++,J?J=!1:de.matcher.considerAll(),de.matcher.lastIndex=ne;const Z=de.matcher.exec(I);if(!Z)break;const ce=I.substring(ne,Z.index),_e=ye(ce,Z);ne=Z.index+_e}ye(I.substring(ne))}return Oe.finalize(),he=Oe.toHTML(),{language:R,value:he,relevance:Ge,illegal:!1,_emitter:Oe,_top:de}}catch(Z){if(Z.message&&Z.message.includes("Illegal"))return{language:R,value:BM(I),illegal:!0,relevance:0,_illegalBy:{message:Z.message,index:ne,context:I.slice(ne-100,ne+100),mode:Z.mode,resultSoFar:he},_emitter:Oe};if(i)return{language:R,value:BM(I),illegal:!1,relevance:0,errorRaised:Z,_emitter:Oe,_top:de};throw Z}}function h(R){const I={value:BM(R),illegal:!1,relevance:0,_top:a,_emitter:new s.__emitter(s)};return I._emitter.addText(R),I}function p(R,I){I=I||s.languages||Object.keys(t);const G=h(R),F=I.filter($).filter(P).map(q=>f(q,R,!1));F.unshift(G);const z=F.sort((q,oe)=>{if(q.relevance!==oe.relevance)return oe.relevance-q.relevance;if(q.language&&oe.language){if($(q.language).supersetOf===oe.language)return 1;if($(oe.language).supersetOf===q.language)return-1}return 0}),[A,L]=z,N=A;return N.secondBest=L,N}function m(R,I,G){const F=I&&n[I]||G;R.classList.add("hljs"),R.classList.add(`language-${F}`)}function b(R){let I=null;const G=c(R);if(l(G))return;if(B("before:highlightElement",{el:R,language:G}),R.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",R);return}if(R.children.length>0&&(s.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(R)),s.throwUnescapedHTML))throw new _mt("One of your code blocks includes unescaped HTML.",R.innerHTML);I=R;const F=I.textContent,z=G?u(F,{language:G,ignoreIllegals:!0}):p(F);R.innerHTML=z.value,R.dataset.highlighted="yes",m(R,G,z.language),R.result={language:z.language,re:z.relevance,relevance:z.relevance},z.secondBest&&(R.secondBest={language:z.secondBest.language,relevance:z.secondBest.relevance}),B("after:highlightElement",{el:R,result:z,text:F})}function v(R){s=pue(s,R)}const g=()=>{y(),$g("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function x(){y(),$g("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let w=!1;function y(){if(document.readyState==="loading"){w=!0;return}document.querySelectorAll(s.cssSelector).forEach(b)}function C(){w&&y()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",C,!1);function _(R,I){let G=null;try{G=I(e)}catch(F){if(Hp("Language definition for '{}' could not be registered.".replace("{}",R)),i)Hp(F);else throw F;G=a}G.name||(G.name=R),t[R]=G,G.rawDefinition=I.bind(null,e),G.aliases&&k(G.aliases,{languageName:R})}function S(R){delete t[R];for(const I of Object.keys(n))n[I]===R&&delete n[I]}function E(){return Object.keys(t)}function $(R){return R=(R||"").toLowerCase(),t[R]||t[n[R]]}function k(R,{languageName:I}){typeof R=="string"&&(R=[R]),R.forEach(G=>{n[G.toLowerCase()]=I})}function P(R){const I=$(R);return I&&!I.disableAutodetect}function T(R){R["before:highlightBlock"]&&!R["before:highlightElement"]&&(R["before:highlightElement"]=I=>{R["before:highlightBlock"](Object.assign({block:I.el},I))}),R["after:highlightBlock"]&&!R["after:highlightElement"]&&(R["after:highlightElement"]=I=>{R["after:highlightBlock"](Object.assign({block:I.el},I))})}function j(R){T(R),r.push(R)}function M(R){const I=r.indexOf(R);I!==-1&&r.splice(I,1)}function B(R,I){const G=R;r.forEach(function(F){F[G]&&F[G](I)})}function V(R){return $g("10.7.0","highlightBlock will be removed entirely in v12.0"),$g("10.7.0","Please use highlightElement now."),b(R)}Object.assign(e,{highlight:u,highlightAuto:p,highlightAll:y,highlightElement:b,highlightBlock:V,configure:v,initHighlighting:g,initHighlightingOnLoad:x,registerLanguage:_,unregisterLanguage:S,listLanguages:E,getLanguage:$,registerAliases:k,autoDetection:P,inherit:pue,addPlugin:j,removePlugin:M}),e.debugMode=function(){i=!1},e.safeMode=function(){i=!0},e.versionString=Cmt,e.regex={concat:Vp,lookahead:rue,either:DM,optional:B1t,anyNumberOfTimes:L1t};for(const R in a7)typeof a7[R]=="object"&&Jce(a7[R]);return Object.assign(e,a7),e},Tg=gue({});Tg.newInstance=()=>gue({});var Emt=Tg;Tg.HighlightJS=Tg,Tg.default=Tg;const FM=u0(Emt);function kmt(e){const t=e.regex,n=t.concat(/[\p{L}_]/u,t.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),r=/[\p{L}0-9._:-]+/u,i={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},o={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},a=e.inherit(o,{begin:/\(/,end:/\)/}),s=e.inherit(e.APOS_STRING_MODE,{className:"string"}),l=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),c={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:r,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[i]},{begin:/'/,end:/'/,contains:[i]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[o,l,s,a,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[o,a,l,s]}]}]},e.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},i,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[l]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[c],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[c],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:t.concat(/</,t.lookahead(t.concat(n,t.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:n,relevance:0,starts:c}]},{className:"tag",begin:t.concat(/<\//,t.lookahead(t.concat(n,/>/))),contains:[{className:"name",begin:n,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}function $mt(e){const t={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},n={match:/[{}[\],:]/,className:"punctuation",relevance:0},r=["true","false","null"],i={scope:"literal",beginKeywords:r.join(" ")};return{name:"JSON",keywords:{literal:r},contains:[t,n,e.QUOTE_STRING_MODE,i,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}const Tmt={name:"Activiti",uri:"http://activiti.org/bpmn",prefix:"activiti",xml:{tagAlias:"lowerCase"},associations:[],types:[{name:"Definitions",isAbstract:!0,extends:["bpmn:Definitions"],properties:[{name:"diagramRelationId",isAttr:!0,type:"String"}]},{name:"InOutBinding",superClass:["Element"],isAbstract:!0,properties:[{name:"source",isAttr:!0,type:"String"},{name:"sourceExpression",isAttr:!0,type:"String"},{name:"target",isAttr:!0,type:"String"},{name:"businessKey",isAttr:!0,type:"String"},{name:"local",isAttr:!0,type:"Boolean",default:!1},{name:"variables",isAttr:!0,type:"String"}]},{name:"In",superClass:["InOutBinding"],meta:{allowedIn:["bpmn:CallActivity"]}},{name:"Out",superClass:["InOutBinding"],meta:{allowedIn:["bpmn:CallActivity"]}},{name:"AsyncCapable",isAbstract:!0,extends:["bpmn:Activity","bpmn:Gateway","bpmn:Event"],properties:[{name:"async",isAttr:!0,type:"Boolean",default:!1},{name:"asyncBefore",isAttr:!0,type:"Boolean",default:!1},{name:"asyncAfter",isAttr:!0,type:"Boolean",default:!1},{name:"exclusive",isAttr:!0,type:"Boolean",default:!0}]},{name:"JobPriorized",isAbstract:!0,extends:["bpmn:Process","activiti:AsyncCapable"],properties:[{name:"jobPriority",isAttr:!0,type:"String"}]},{name:"SignalEventDefinition",isAbstract:!0,extends:["bpmn:SignalEventDefinition"],properties:[{name:"async",isAttr:!0,type:"Boolean",default:!1}]},{name:"ErrorEventDefinition",isAbstract:!0,extends:["bpmn:ErrorEventDefinition"],properties:[{name:"errorCodeVariable",isAttr:!0,type:"String"},{name:"errorMessageVariable",isAttr:!0,type:"String"}]},{name:"Error",isAbstract:!0,extends:["bpmn:Error"],properties:[{name:"activiti:errorMessage",isAttr:!0,type:"String"}]},{name:"PotentialStarter",superClass:["Element"],properties:[{name:"resourceAssignmentExpression",type:"bpmn:ResourceAssignmentExpression"}]},{name:"FormSupported",isAbstract:!0,extends:["bpmn:StartEvent","bpmn:UserTask"],properties:[{name:"formHandlerClass",isAttr:!0,type:"String"},{name:"formKey",isAttr:!0,type:"String"}]},{name:"TemplateSupported",isAbstract:!0,extends:["bpmn:Process","bpmn:FlowElement"],properties:[{name:"modelerTemplate",isAttr:!0,type:"String"}]},{name:"Initiator",isAbstract:!0,extends:["bpmn:StartEvent"],properties:[{name:"initiator",isAttr:!0,type:"String"}]},{name:"ScriptTask",isAbstract:!0,extends:["bpmn:ScriptTask"],properties:[{name:"resultVariable",isAttr:!0,type:"String"},{name:"resource",isAttr:!0,type:"String"}]},{name:"Process",isAbstract:!0,extends:["bpmn:Process"],properties:[{name:"candidateStarterGroups",isAttr:!0,type:"String"},{name:"candidateStarterUsers",isAttr:!0,type:"String"},{name:"versionTag",isAttr:!0,type:"String"},{name:"historyTimeToLive",isAttr:!0,type:"String"},{name:"isStartableInTasklist",isAttr:!0,type:"Boolean",default:!0},{name:"executionListener",isAbstract:!0,type:"Expression"}]},{name:"EscalationEventDefinition",isAbstract:!0,extends:["bpmn:EscalationEventDefinition"],properties:[{name:"escalationCodeVariable",isAttr:!0,type:"String"}]},{name:"FormalExpression",isAbstract:!0,extends:["bpmn:FormalExpression"],properties:[{name:"resource",isAttr:!0,type:"String"}]},{name:"multiinstance_type",superClass:["Element"]},{name:"multiinstance_condition",superClass:["Element"]},{name:"Assignable",extends:["bpmn:UserTask"],properties:[{name:"assignee",isAttr:!0,type:"String"},{name:"candidateUsers",isAttr:!0,type:"String"},{name:"candidateGroups",isAttr:!0,type:"String"},{name:"dueDate",isAttr:!0,type:"String"},{name:"followUpDate",isAttr:!0,type:"String"},{name:"priority",isAttr:!0,type:"String"},{name:"multiinstance_condition",isAttr:!0,type:"String"}]},{name:"CallActivity",extends:["bpmn:CallActivity"],properties:[{name:"calledElementBinding",isAttr:!0,type:"String",default:"latest"},{name:"calledElementVersion",isAttr:!0,type:"String"},{name:"calledElementVersionTag",isAttr:!0,type:"String"},{name:"calledElementTenantId",isAttr:!0,type:"String"},{name:"caseRef",isAttr:!0,type:"String"},{name:"caseBinding",isAttr:!0,type:"String",default:"latest"},{name:"caseVersion",isAttr:!0,type:"String"},{name:"caseTenantId",isAttr:!0,type:"String"},{name:"variableMappingClass",isAttr:!0,type:"String"},{name:"variableMappingDelegateExpression",isAttr:!0,type:"String"}]},{name:"ServiceTaskLike",extends:["bpmn:ServiceTask","bpmn:BusinessRuleTask","bpmn:SendTask","bpmn:MessageEventDefinition"],properties:[{name:"expression",isAttr:!0,type:"String"},{name:"class",isAttr:!0,type:"String"},{name:"delegateExpression",isAttr:!0,type:"String"},{name:"resultVariable",isAttr:!0,type:"String"}]},{name:"DmnCapable",extends:["bpmn:BusinessRuleTask"],properties:[{name:"decisionRef",isAttr:!0,type:"String"},{name:"decisionRefBinding",isAttr:!0,type:"String",default:"latest"},{name:"decisionRefVersion",isAttr:!0,type:"String"},{name:"mapDecisionResult",isAttr:!0,type:"String",default:"resultList"},{name:"decisionRefTenantId",isAttr:!0,type:"String"}]},{name:"ExternalCapable",extends:["activiti:ServiceTaskLike"],properties:[{name:"type",isAttr:!0,type:"String"},{name:"topic",isAttr:!0,type:"String"}]},{name:"TaskPriorized",extends:["bpmn:Process","activiti:ExternalCapable"],properties:[{name:"taskPriority",isAttr:!0,type:"String"}]},{name:"Properties",superClass:["Element"],meta:{allowedIn:["*"]},properties:[{name:"values",type:"Property",isMany:!0}]},{name:"Property",superClass:["Element"],properties:[{name:"id",type:"String",isAttr:!0},{name:"name",type:"String",isAttr:!0},{name:"value",type:"String",isAttr:!0}]},{name:"Connector",superClass:["Element"],meta:{allowedIn:["activiti:ServiceTaskLike"]},properties:[{name:"inputOutput",type:"InputOutput"},{name:"connectorId",type:"String"}]},{name:"InputOutput",superClass:["Element"],meta:{allowedIn:["bpmn:FlowNode","activiti:Connector"]},properties:[{name:"inputOutput",type:"InputOutput"},{name:"connectorId",type:"String"},{name:"inputParameters",isMany:!0,type:"InputParameter"},{name:"outputParameters",isMany:!0,type:"OutputParameter"}]},{name:"InputOutputParameter",properties:[{name:"name",isAttr:!0,type:"String"},{name:"value",isBody:!0,type:"String"},{name:"definition",type:"InputOutputParameterDefinition"}]},{name:"InputOutputParameterDefinition",isAbstract:!0},{name:"List",superClass:["InputOutputParameterDefinition"],properties:[{name:"items",isMany:!0,type:"InputOutputParameterDefinition"}]},{name:"Map",superClass:["InputOutputParameterDefinition"],properties:[{name:"entries",isMany:!0,type:"Entry"}]},{name:"Entry",properties:[{name:"key",isAttr:!0,type:"String"},{name:"value",isBody:!0,type:"String"},{name:"definition",type:"InputOutputParameterDefinition"}]},{name:"Value",superClass:["InputOutputParameterDefinition"],properties:[{name:"id",isAttr:!0,type:"String"},{name:"name",isAttr:!0,type:"String"},{name:"value",isBody:!0,type:"String"}]},{name:"Script",superClass:["InputOutputParameterDefinition"],properties:[{name:"scriptFormat",isAttr:!0,type:"String"},{name:"resource",isAttr:!0,type:"String"},{name:"value",isBody:!0,type:"String"}]},{name:"Field",superClass:["Element"],meta:{allowedIn:["activiti:ServiceTaskLike","activiti:ExecutionListener","activiti:TaskListener"]},properties:[{name:"name",isAttr:!0,type:"String"},{name:"expression",isAttr:!0,type:"String"},{name:"stringValue",isAttr:!0,type:"String"},{name:"string",isAttr:!0,type:"String"}]},{name:"InputParameter",superClass:["InputOutputParameter"]},{name:"OutputParameter",superClass:["InputOutputParameter"]},{name:"Collectable",isAbstract:!0,extends:["bpmn:MultiInstanceLoopCharacteristics"],superClass:["activiti:AsyncCapable"],properties:[{name:"collection",isAttr:!0,type:"String"},{name:"elementVariable",isAttr:!0,type:"String"}]},{name:"FailedJobRetryTimeCycle",superClass:["Element"],meta:{allowedIn:["activiti:AsyncCapable","bpmn:MultiInstanceLoopCharacteristics"]},properties:[{name:"body",isBody:!0,type:"String"}]},{name:"ExecutionListener",superClass:["Element"],meta:{allowedIn:["bpmn:Task","bpmn:ServiceTask","bpmn:UserTask","bpmn:BusinessRuleTask","bpmn:ScriptTask","bpmn:ReceiveTask","bpmn:ManualTask","bpmn:ExclusiveGateway","bpmn:SequenceFlow","bpmn:ParallelGateway","bpmn:InclusiveGateway","bpmn:EventBasedGateway","bpmn:StartEvent","bpmn:IntermediateCatchEvent","bpmn:IntermediateThrowEvent","bpmn:EndEvent","bpmn:BoundaryEvent","bpmn:CallActivity","bpmn:SubProcess","bpmn:Process"]},properties:[{name:"expression",isAttr:!0,type:"String"},{name:"class",isAttr:!0,type:"String"},{name:"delegateExpression",isAttr:!0,type:"String"},{name:"event",isAttr:!0,type:"String"},{name:"script",type:"Script"},{name:"fields",type:"Field",isMany:!0}]},{name:"TaskListener",superClass:["Element"],meta:{allowedIn:["bpmn:UserTask"]},properties:[{name:"expression",isAttr:!0,type:"String"},{name:"class",isAttr:!0,type:"String"},{name:"delegateExpression",isAttr:!0,type:"String"},{name:"event",isAttr:!0,type:"String"},{name:"script",type:"Script"},{name:"fields",type:"Field",isMany:!0}]},{name:"FormProperty",superClass:["Element"],meta:{allowedIn:["bpmn:StartEvent","bpmn:UserTask"]},properties:[{name:"id",type:"String",isAttr:!0},{name:"name",type:"String",isAttr:!0},{name:"type",type:"String",isAttr:!0},{name:"required",type:"String",isAttr:!0},{name:"readable",type:"String",isAttr:!0},{name:"writable",type:"String",isAttr:!0},{name:"variable",type:"String",isAttr:!0},{name:"expression",type:"String",isAttr:!0},{name:"datePattern",type:"String",isAttr:!0},{name:"default",type:"String",isAttr:!0},{name:"values",type:"Value",isMany:!0}]},{name:"FormProperty",superClass:["Element"],properties:[{name:"id",type:"String",isAttr:!0},{name:"label",type:"String",isAttr:!0},{name:"type",type:"String",isAttr:!0},{name:"datePattern",type:"String",isAttr:!0},{name:"defaultValue",type:"String",isAttr:!0},{name:"properties",type:"Properties"},{name:"validation",type:"Validation"},{name:"values",type:"Value",isMany:!0}]},{name:"Validation",superClass:["Element"],properties:[{name:"constraints",type:"Constraint",isMany:!0}]},{name:"Constraint",superClass:["Element"],properties:[{name:"name",type:"String",isAttr:!0},{name:"config",type:"String",isAttr:!0}]},{name:"ConditionalEventDefinition",isAbstract:!0,extends:["bpmn:ConditionalEventDefinition"],properties:[{name:"variableName",isAttr:!0,type:"String"},{name:"variableEvent",isAttr:!0,type:"String"}]}],emumerations:[]},$o={legend:[1,"<fieldset>","</fieldset>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],_default:[0,"",""]};$o.td=$o.th=[3,"<table><tbody><tr>","</tr></tbody></table>"],$o.option=$o.optgroup=[1,'<select multiple="multiple">',"</select>"],$o.thead=$o.tbody=$o.colgroup=$o.caption=$o.tfoot=[1,"<table>","</table>"],$o.polyline=$o.ellipse=$o.polygon=$o.circle=$o.text=$o.line=$o.path=$o.rect=$o.g=[1,'<svg xmlns="http://www.w3.org/2000/svg" version="1.1">',"</svg>"];function Rmt(e,t=globalThis.document){var c;if(typeof e!="string")throw new TypeError("String expected");const n=/^<!--(.*?)-->$/s.exec(e);if(n)return t.createComment(n[1]);const r=(c=/<([\w:]+)/.exec(e))==null?void 0:c[1];if(!r)return t.createTextNode(e);if(e=e.trim(),r==="body"){const u=t.createElement("html");u.innerHTML=e;const{lastChild:f}=u;return f.remove(),f}let[i,o,a]=Object.hasOwn($o,r)?$o[r]:$o._default,s=t.createElement("div");for(s.innerHTML=o+e+a;i--;)s=s.lastChild;if(s.firstChild===s.lastChild){const{firstChild:u}=s;return u.remove(),u}const l=t.createDocumentFragment();return l.append(...s.childNodes),l}var Pmt=Rmt;const l7=u0(Pmt);function Omt(e,t){return t.forEach(function(n){n&&typeof n!="string"&&!Array.isArray(n)&&Object.keys(n).forEach(function(r){if(r!=="default"&&!(r in e)){var i=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(e,r,i.get?i:{enumerable:!0,get:function(){return n[r]}})}})}),Object.freeze(e)}function zy(e,t,n){return arguments.length==2?e.getAttribute(t):n===null?e.removeAttribute(t):(e.setAttribute(t,n),e)}const jmt=Object.prototype.toString;function Rg(e){return new Uf(e)}function Uf(e){if(!e||!e.nodeType)throw new Error("A DOM element reference is required");this.el=e,this.list=e.classList}Uf.prototype.add=function(e){return this.list.add(e),this},Uf.prototype.remove=function(e){return jmt.call(e)=="[object RegExp]"?this.removeMatching(e):(this.list.remove(e),this)},Uf.prototype.removeMatching=function(e){const t=this.array();for(let n=0;n<t.length;n++)e.test(t[n])&&this.remove(t[n]);return this},Uf.prototype.toggle=function(e,t){return typeof t<"u"?t!==this.list.toggle(e,t)&&this.list.toggle(e):this.list.toggle(e),this},Uf.prototype.array=function(){return Array.from(this.list)},Uf.prototype.has=Uf.prototype.contains=function(e){return this.list.contains(e)};function Mmt(e){for(var t;e.childNodes.length;)t=e.childNodes[0],e.removeChild(t);return e}function zM(e,t){return e&&typeof e.matches=="function"&&e.matches(t)}function Amt(e,t,n){for(var r=n?e:e.parentNode;r&&r.nodeType!==document.DOCUMENT_NODE&&r.nodeType!==document.DOCUMENT_FRAGMENT_NODE;){if(zM(r,t))return r;r=r.parentNode}return zM(r,t)?r:null}var c7={},u7,VM,HM;function vue(){u7=window.addEventListener?"addEventListener":"attachEvent",VM=window.removeEventListener?"removeEventListener":"detachEvent",HM=u7!=="addEventListener"?"on":""}var Nmt=c7.bind=function(e,t,n,r){return u7||vue(),e[u7](HM+t,n,r||!1),n},Dmt=c7.unbind=function(e,t,n,r){return VM||vue(),e[VM](HM+t,n,r||!1),n},UM=Omt({__proto__:null,bind:Nmt,default:c7,unbind:Dmt},[c7]),bue=["focus","blur"];function Imt(e,t,n,r,i){return bue.indexOf(n)!==-1&&(i=!0),UM.bind(e,n,function(o){var a=o.target||o.srcElement;o.delegateTarget=Amt(a,t,!0),o.delegateTarget&&r.call(e,o)},i)}function Lmt(e,t,n,r){return bue.indexOf(t)!==-1&&(r=!0),UM.unbind(e,t,n,r)}var yue={bind:Imt,unbind:Lmt};function d7(e,t){return t=t||document,t.querySelector(e)}function Bmt(e){return CSS.escape(e)}const xue=".djs-palette-toggle",wue=".entry",Fmt=xue+", "+wue,WM="djs-palette-",zmt="shown",qM="open",Cue="two-column",Vmt=1e3;function po(e,t,n,r,i,o){this._eventBus=e,this._canvas=t,this._entries=o,this._paletteContainer=i,this._elementFactory=n,this._create=r;const a=this;e.on("tool-manager.update",function(s){const l=s.tool;a.updateToolHighlight(l)}),e.on("i18n.changed",function(){a._update()}),e.on("diagram.init",function(){a._diagramInitialized=!0,a._rebuild()})}po.$inject=["eventBus","canvas","elementFactory","create","config.paletteContainer","config.paletteEntries"],po.prototype.registerProvider=function(e,t){t||(t=e,e=Vmt),this._eventBus.on("palette.getProviders",e,function(n){n.providers.push(t)}),this._rebuild()},po.prototype.getEntries=function(){return this._getProviders().reduce(Umt,{})},po.prototype._rebuild=function(){!this._diagramInitialized||!this._getProviders().length||(this._container||this._init(),this._update())},po.prototype._init=function(){const e=this,t=this._eventBus,n=this._getParentContainer(),r=this._container=l7(po.HTML_MARKUP);n.appendChild(r),Rg(n).add(WM+zmt),yue.bind(r,Fmt,"click",function(i){const o=i.delegateTarget;if(zM(o,xue))return e.toggle();e.trigger("click",i)}),UM.bind(r,"mousedown",function(i){i.stopPropagation()}),yue.bind(r,wue,"dragstart",function(i){e.trigger("dragstart",i)}),t.on("canvas.resized",this._layoutChanged,this),t.fire("palette.create",{container:r})},po.prototype._getProviders=function(e){const t=this._eventBus.createEvent({type:"palette.getProviders",providers:[]});return this._eventBus.fire(t),t.providers},po.prototype._toggleState=function(e){e=e||{};const t=this._getParentContainer(),n=this._container,r=this._eventBus;let i;const o=Rg(n),a=Rg(t);"twoColumn"in e?i=e.twoColumn:i=this._needsCollapse(t.clientHeight,this._entries||{}),o.toggle(Cue,i),a.toggle(WM+Cue,i),"open"in e&&(o.toggle(qM,e.open),a.toggle(WM+qM,e.open)),r.fire("palette.changed",{twoColumn:i,open:this.isOpen()})},po.prototype._update=function(){const e=d7(".djs-palette-entries",this._container),t=this._entries=this.getEntries();Mmt(e),Pe(t,function(n,r){const i=n.group||"default";let o=d7("[data-group="+Bmt(i)+"]",e);o||(o=l7('<div class="group"></div>'),zy(o,"data-group",i),e==null||e.appendChild(o));const a=n.html||(n.separator?'<hr class="separator" />':'<div class="entry" draggable="true"></div>'),s=l7(a);if(o.appendChild(s),!n.separator&&(zy(s,"data-action",r),n.title&&zy(s,"title",n.title),n.className&&Hmt(s,n.className),n.imageUrl)){const l=l7("<img>");zy(l,"src",n.imageUrl),s.appendChild(l)}}),this.open()},po.prototype.trigger=function(e,t,n){const r=t.delegateTarget||t.target;if(!r)return t.preventDefault();const i=zy(r,"data-action"),o=t.originalEvent||t;return this.triggerEntry(i,e,o,n)},po.prototype.triggerEntry=function(e,t,n,r){const o=this._entries[e];if(!o)return;const a=o.action;if(this._eventBus.fire("palette.trigger",{entry:o,event:n})===!1)return;const s=this._elementFactory,l=this._create;if(Ki(a)){if(t==="click")return a(n,r)}else if(a[t])return a[t](n,r,s,l);n.preventDefault()},po.prototype._layoutChanged=function(){this._toggleState({})},po.prototype._needsCollapse=function(e,t){return Object.keys(t).length*46,!0},po.prototype.close=function(){this._toggleState({open:!1,twoColumn:!1})},po.prototype.open=function(){this._toggleState({open:!0})},po.prototype.toggle=function(){this.isOpen()?this.close():this.open()},po.prototype.isActiveTool=function(e){return e&&this._activeTool===e},po.prototype.updateToolHighlight=function(e){let t;this._toolsContainer||(t=d7(".djs-palette-entries",this._container),this._toolsContainer=d7("[data-group=tools]",t));const n=this._toolsContainer;Pe(n.children,function(r){let i=r.getAttribute("data-action");if(!i)return;const o=Rg(r);i=i.replace("-tool",""),o.contains("entry")&&i===e?o.add("highlighted-entry"):o.remove("highlighted-entry")})},po.prototype.isOpen=function(){return Rg(this._container).has(qM)},po.prototype._getParentContainer=function(){return this._canvas.getContainer()},po.HTML_MARKUP='<div class="djs-palette"><div class="djs-palette-entries"></div><div class="djs-palette-toggle"></div></div>';function Hmt(e,t){const n=Rg(e);(qn(t)?t:t.split(/\s+/g)).forEach(function(i){n.add(i)})}function Umt(e,t){const n=t.getPaletteEntries();return Ki(n)?n(e):(Pe(n,function(r,i){e[i]=r}),e)}class _ue extends E6{constructor(n,r,i,o,a,s,l,c){super(s,n,r,l,a,o,i,c);p7(this,"create");p7(this,"elementFactory");p7(this,"translate");this.create=n,this.elementFactory=r,this.translate=c}getPaletteEntries(){const{create:n,elementFactory:r,translate:i}=this,o=Object.assign({},super.getPaletteEntries());return delete o["create.group"],delete o["create.data-object"],delete o["create.data-store"],delete o["create.participant-expanded"],delete o["create.subprocess-expanded"],Fe(o,{"activity-separator":{group:"activity",separator:!0},...tFe(n,r)})}}_ue.$inject=["create","elementFactory","globalConnect","handTool","lassoTool","palette","spaceTool","translate"];const Sue={__depends__:[{__init__:["palette"],palette:["type",po]}],__init__:["paletteProvider"],paletteProvider:["type",_ue]},Wmt=()=>{const e=fc.prototype._modules,t=e.findIndex(i=>i.paletteProvider),n=e[t].__depends__,r=Sue;r.__depends__=[...Sue.__depends__,...n.slice(1)],e[t]=r},qmt={class:"workflow-container"},Gmt={class:"toolbar"},Kmt={class:"prop-panel",id:"J_PropertiesPanel"},Ymt=va(d.defineComponent({__name:"main",props:{label:{type:String,default:"获取用户的配置"}},emits:["modeler-init"],setup(e,{emit:t}){FM.registerLanguage("xml",kmt),FM.registerLanguage("json",$mt);const n=e9(),r=d.shallowRef({bpmnModeler:null,bpmnXmlStr:Xce}),i=d.ref(null),o=t,a=async l=>{var c;try{const u=await((c=r.value.bpmnModeler)==null?void 0:c.importXML(l)),{warnings:f}=u||{};console.log(f)}catch(u){n.error("打开模型出错,数据格式有误!"),console.log("error--->",u)}},s=async()=>{const l=Zt(Ut),c={translate:["value",Pce]};l.modeler&&(l.modeler.destroy(),await l.setModeler(void 0)),Wmt();const u=new fc({container:i.value,propertiesPanel:{parent:"#J_PropertiesPanel"},additionalModules:[c],moddleExtensions:{activiti:Tmt}});r.value.bpmnModeler=u,await l.setModeler(d.markRaw(u)),af.emit("modeler-init",u),o("modeler-init",u),a(r.value.bpmnXmlStr)};return d.onMounted(()=>{s()}),(l,c)=>(d.openBlock(),d.createBlock(d.unref(kB),{abstract:"",hljs:d.unref(FM)},{default:d.withCtx(()=>[d.createVNode(d.unref(VF),null,{default:d.withCtx(()=>[d.createElementVNode("div",qmt,[d.createElementVNode("div",Gmt,[d.createVNode(M1t,{bpmnModeler:r.value.bpmnModeler},null,8,["bpmnModeler"])]),d.createElementVNode("div",{class:"canvas",id:"canvas",ref_key:"canvasRef",ref:i},null,512),d.createElementVNode("div",Kmt,[d.createVNode(lpt)])])]),_:1})]),_:1},8,["hljs"]))}}),[["__scopeId","data-v-39fe3163"]]),Zmt={name:"Workflow"},Eue=d.defineComponent({...Zmt,emits:["init"],setup(e,{expose:t,emit:n}){TIe();const r=n,i=d.ref(null);return t({getWorkflowXml:AM,getPermissionJSON:Yce,initXmlToStore:Zce,updateProcessId:O1t}),(o,a)=>{const s=d.resolveComponent("n-message-provider");return d.openBlock(),d.createBlock(s,null,{default:d.withCtx(()=>[d.createVNode(Ymt,{ref_key:"workflowRef",ref:i,onModelerInit:a[0]||(a[0]=l=>r("init",l))},null,512)]),_:1})}}}),kue=Object.freeze(Object.defineProperty({__proto__:null,SZHello:bN,SZWorkflow:Eue},Symbol.toStringTag,{value:"Module"})),Xmt="0.1.2",$ue="Sz",Jmt=vz({components:[vz,Q5e,kB,NCe,VF,_n,pB,Z3,EB,y6e,Wxe,x1,i7e,a7e,zF,o4,$7e,tz,ks,TCe,I_,UB,i4,_B,j_,LCe,xwe,b7e,Z6e,h7e,Twe,kwe,HCe,BCe,_Ce,oz,hCe,C7e,n5e,LB]}),Tue=e=>{e.use(Jmt),e.use(z7)},GM=function(e){if(!GM.installed){GM.installed=!0,Tue(e);for(let t in kue){const n=Reflect.get(kue,t);e.component($ue+n.name,n)}}};function Qmt({componentPrefix:e=$ue,components:t=[]}={}){const n=[];function r(o,a,s){o.component(e+a)||o.component(e+a,s)}function i(o){n.includes(o)||(n.push(o),Tue(o),t.forEach(a=>{const{name:s,alias:l}=a;r(o,s,a),l&&l.forEach(c=>{r(o,c,a)})}))}return{version:Xmt,componentPrefix:e,install:i}}const egt={install(e){GM(e)}};/*!
|
4182
|
+
</definitions>`,j1t={class:"toolbar-container"},M1t=va(d.defineComponent({__name:"Toolbar",setup(e){const t=d.ref(d.markRaw($Y(I6.TOOLBAR_PREFIX))),n=new P1t,r=d.ref(null);async function i(){await Zce(Xce)}async function o(){var p;const h=Zt(Ut);try{const m=await((p=h.modeler)==null?void 0:p.saveXML({format:!0})),{xml:b}=m||{};if(!b)return;const v=new Blob([b],{type:"application/bpmn20-xml;charset=UTF-8,"}),g=document.createElement("a");g.download=`bpmn-${+new Date}.xml`,g.innerHTML="Get BPMN SVG",g.href=window.URL.createObjectURL(v),g.onclick=function(x){document.body.removeChild(x.target)},g.style.visibility="hidden",document.body.appendChild(g),g.click()}catch(m){console.log("saveXML error:",m)}}async function a(h){const p=h.target.files[0],m=Zt(Ut);if(p){const b=new FileReader;b.onload=async v=>{var x;const g=v.target.result;await((x=m.modeler)==null?void 0:x.importXML(g))},b.readAsText(p)}}async function s(){var p;const h=Zt(Ut);try{const m=await((p=h.modeler)==null?void 0:p.saveSVG());if(!(m!=null&&m.svg))return;const{svg:b}=m,v=new Blob([b],{type:"image/svg+xml"}),g=document.createElement("a");g.download=`bpmn-${+new Date}.svg`,g.innerHTML="Get BPMN SVG",g.href=window.URL.createObjectURL(v),g.onclick=function(x){document.body.removeChild(x.target)},g.style.visibility="hidden",document.body.appendChild(g),g.click()}catch(m){console.log(m)}}const l=zwe();async function c(){const h=await AM();h&&l.create({title:"预览 XML",icon:()=>d.createVNode(N6,null,null),class:"preview-model",content:()=>[d.createVNode("div",{class:"preview-model-body"},[d.createVNode(o4,{code:h,language:"xml",wordWrap:!0},null)])]})}async function u(){const h=await AM(),p=await n.fromXML(h);l.create({title:"预览 JSON",icon:()=>d.createVNode(N6,null,null),class:"preview-model",content:()=>d.createVNode("div",{class:"preview-model"},[d.createVNode(o4,{code:JSON.stringify(p,null,2),language:"json",wordWrap:!0},null)])})}async function f(){const h=Yce();l.create({title:"预览权限JSON",icon:()=>d.createVNode(N6,null,null),class:"preview-model",content:()=>d.createVNode("div",{class:"preview-model"},[d.createVNode(o4,{code:JSON.stringify(h,null,2),language:"json",wordWrap:!0},null)])})}return(h,p)=>{const m=d.resolveComponent("n-space"),b=d.resolveComponent("n-popover");return d.openBlock(),d.createElementBlock("div",j1t,[(d.openBlock(),d.createBlock(d.resolveDynamicComponent(t.value))),d.createVNode(b,{placement:"bottom",trigger:"hover"},{trigger:d.withCtx(()=>[d.createVNode(d.unref(_n),{size:"small"},{default:d.withCtx(()=>[d.createTextVNode("导入文件")]),_:1})]),default:d.withCtx(()=>[d.createVNode(m,{vertical:""},{default:d.withCtx(()=>[d.createVNode(d.unref(_n),{onClick:p[0]||(p[0]=v=>r.value.click()),type:"primary"},{default:d.withCtx(()=>[d.createTextVNode("导入 XML")]),_:1}),d.createVNode(d.unref(_n),{onClick:i,type:"warning"},{default:d.withCtx(()=>[d.createTextVNode("重置 XML")]),_:1})]),_:1})]),_:1}),d.createVNode(b,{placement:"bottom",trigger:"hover"},{trigger:d.withCtx(()=>[d.createVNode(d.unref(_n),{size:"small"},{default:d.withCtx(()=>[d.createTextVNode("保存文件")]),_:1})]),default:d.withCtx(()=>[d.createVNode(m,{vertical:""},{default:d.withCtx(()=>[d.createVNode(d.unref(_n),{onClick:o,type:"primary"},{default:d.withCtx(()=>[d.createTextVNode("保存 XML")]),_:1}),d.createVNode(d.unref(_n),{onClick:s,type:"primary"},{default:d.withCtx(()=>[d.createTextVNode("保存 SVG")]),_:1})]),_:1})]),_:1}),d.createVNode(b,{placement:"bottom",trigger:"hover"},{trigger:d.withCtx(()=>[d.createVNode(d.unref(_n),{size:"small"},{default:d.withCtx(()=>[d.createTextVNode("预览文件")]),_:1})]),default:d.withCtx(()=>[d.createVNode(m,{vertical:""},{default:d.withCtx(()=>[d.createVNode(d.unref(_n),{onClick:c,type:"primary"},{default:d.withCtx(()=>[d.createTextVNode("预览 XML")]),_:1}),d.createVNode(d.unref(_n),{onClick:u,type:"primary"},{default:d.withCtx(()=>[d.createTextVNode("预览 JSON")]),_:1}),d.createVNode(d.unref(_n),{onClick:f,type:"primary"},{default:d.withCtx(()=>[d.createTextVNode("预览表单权限 SON")]),_:1})]),_:1})]),_:1}),d.createElementVNode("input",{type:"file",ref_key:"xmlInputRef",ref:r,class:"hidden",onChange:a,accept:".xml"},null,544)])}}}),[["__scopeId","data-v-cb01c451"]]);function Jce(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(t=>{const n=e[t],r=typeof n;(r==="object"||r==="function")&&!Object.isFrozen(n)&&Jce(n)}),e}class Qce{constructor(t){t.data===void 0&&(t.data={}),this.data=t.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function eue(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function Hf(e,...t){const n=Object.create(null);for(const r in e)n[r]=e[r];return t.forEach(function(r){for(const i in r)n[i]=r[i]}),n}const A1t="</span>",tue=e=>!!e.scope,N1t=(e,{prefix:t})=>{if(e.startsWith("language:"))return e.replace("language:","language-");if(e.includes(".")){const n=e.split(".");return[`${t}${n.shift()}`,...n.map((r,i)=>`${r}${"_".repeat(i+1)}`)].join(" ")}return`${t}${e}`};class D1t{constructor(t,n){this.buffer="",this.classPrefix=n.classPrefix,t.walk(this)}addText(t){this.buffer+=eue(t)}openNode(t){if(!tue(t))return;const n=N1t(t.scope,{prefix:this.classPrefix});this.span(n)}closeNode(t){tue(t)&&(this.buffer+=A1t)}value(){return this.buffer}span(t){this.buffer+=`<span class="${t}">`}}const nue=(e={})=>{const t={children:[]};return Object.assign(t,e),t};class NM{constructor(){this.rootNode=nue(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(t){this.top.children.push(t)}openNode(t){const n=nue({scope:t});this.add(n),this.stack.push(n)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(t){return this.constructor._walk(t,this.rootNode)}static _walk(t,n){return typeof n=="string"?t.addText(n):n.children&&(t.openNode(n),n.children.forEach(r=>this._walk(t,r)),t.closeNode(n)),t}static _collapse(t){typeof t!="string"&&t.children&&(t.children.every(n=>typeof n=="string")?t.children=[t.children.join("")]:t.children.forEach(n=>{NM._collapse(n)}))}}class I1t extends NM{constructor(t){super(),this.options=t}addText(t){t!==""&&this.add(t)}startScope(t){this.openNode(t)}endScope(){this.closeNode()}__addSublanguage(t,n){const r=t.root;n&&(r.scope=`language:${n}`),this.add(r)}toHTML(){return new D1t(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function By(e){return e?typeof e=="string"?e:e.source:null}function rue(e){return Vp("(?=",e,")")}function L1t(e){return Vp("(?:",e,")*")}function B1t(e){return Vp("(?:",e,")?")}function Vp(...e){return e.map(n=>By(n)).join("")}function F1t(e){const t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function DM(...e){return"("+(F1t(e).capture?"":"?:")+e.map(r=>By(r)).join("|")+")"}function iue(e){return new RegExp(e.toString()+"|").exec("").length-1}function z1t(e,t){const n=e&&e.exec(t);return n&&n.index===0}const V1t=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function IM(e,{joinWith:t}){let n=0;return e.map(r=>{n+=1;const i=n;let o=By(r),a="";for(;o.length>0;){const s=V1t.exec(o);if(!s){a+=o;break}a+=o.substring(0,s.index),o=o.substring(s.index+s[0].length),s[0][0]==="\\"&&s[1]?a+="\\"+String(Number(s[1])+i):(a+=s[0],s[0]==="("&&n++)}return a}).map(r=>`(${r})`).join(t)}const H1t=/\b\B/,oue="[a-zA-Z]\\w*",LM="[a-zA-Z_]\\w*",aue="\\b\\d+(\\.\\d+)?",sue="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",lue="\\b(0b[01]+)",U1t="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",W1t=(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=Vp(t,/.*\b/,e.binary,/\b.*/)),Hf({scope:"meta",begin:t,end:/$/,relevance:0,"on:begin":(n,r)=>{n.index!==0&&r.ignoreMatch()}},e)},Fy={begin:"\\\\[\\s\\S]",relevance:0},q1t={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[Fy]},G1t={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[Fy]},K1t={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},o7=function(e,t,n={}){const r=Hf({scope:"comment",begin:e,end:t,contains:[]},n);r.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const i=DM("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return r.contains.push({begin:Vp(/[ ]+/,"(",i,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),r},Y1t=o7("//","$"),Z1t=o7("/\\*","\\*/"),X1t=o7("#","$"),J1t={scope:"number",begin:aue,relevance:0},Q1t={scope:"number",begin:sue,relevance:0},emt={scope:"number",begin:lue,relevance:0},tmt={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[Fy,{begin:/\[/,end:/\]/,relevance:0,contains:[Fy]}]},nmt={scope:"title",begin:oue,relevance:0},rmt={scope:"title",begin:LM,relevance:0},imt={begin:"\\.\\s*"+LM,relevance:0};var a7=Object.freeze({__proto__:null,APOS_STRING_MODE:q1t,BACKSLASH_ESCAPE:Fy,BINARY_NUMBER_MODE:emt,BINARY_NUMBER_RE:lue,COMMENT:o7,C_BLOCK_COMMENT_MODE:Z1t,C_LINE_COMMENT_MODE:Y1t,C_NUMBER_MODE:Q1t,C_NUMBER_RE:sue,END_SAME_AS_BEGIN:function(e){return Object.assign(e,{"on:begin":(t,n)=>{n.data._beginMatch=t[1]},"on:end":(t,n)=>{n.data._beginMatch!==t[1]&&n.ignoreMatch()}})},HASH_COMMENT_MODE:X1t,IDENT_RE:oue,MATCH_NOTHING_RE:H1t,METHOD_GUARD:imt,NUMBER_MODE:J1t,NUMBER_RE:aue,PHRASAL_WORDS_MODE:K1t,QUOTE_STRING_MODE:G1t,REGEXP_MODE:tmt,RE_STARTERS_RE:U1t,SHEBANG:W1t,TITLE_MODE:nmt,UNDERSCORE_IDENT_RE:LM,UNDERSCORE_TITLE_MODE:rmt});function omt(e,t){e.input[e.index-1]==="."&&t.ignoreMatch()}function amt(e,t){e.className!==void 0&&(e.scope=e.className,delete e.className)}function smt(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=omt,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function lmt(e,t){Array.isArray(e.illegal)&&(e.illegal=DM(...e.illegal))}function cmt(e,t){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function umt(e,t){e.relevance===void 0&&(e.relevance=1)}const dmt=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw new Error("beforeMatch cannot be used with starts");const n=Object.assign({},e);Object.keys(e).forEach(r=>{delete e[r]}),e.keywords=n.keywords,e.begin=Vp(n.beforeMatch,rue(n.begin)),e.starts={relevance:0,contains:[Object.assign(n,{endsParent:!0})]},e.relevance=0,delete n.beforeMatch},fmt=["of","and","for","in","not","or","if","then","parent","list","value"],hmt="keyword";function cue(e,t,n=hmt){const r=Object.create(null);return typeof e=="string"?i(n,e.split(" ")):Array.isArray(e)?i(n,e):Object.keys(e).forEach(function(o){Object.assign(r,cue(e[o],t,o))}),r;function i(o,a){t&&(a=a.map(s=>s.toLowerCase())),a.forEach(function(s){const l=s.split("|");r[l[0]]=[o,pmt(l[0],l[1])]})}}function pmt(e,t){return t?Number(t):mmt(e)?0:1}function mmt(e){return fmt.includes(e.toLowerCase())}const uue={},Hp=e=>{console.error(e)},due=(e,...t)=>{console.log(`WARN: ${e}`,...t)},$g=(e,t)=>{uue[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),uue[`${e}/${t}`]=!0)},s7=new Error;function fue(e,t,{key:n}){let r=0;const i=e[n],o={},a={};for(let s=1;s<=t.length;s++)a[s+r]=i[s],o[s+r]=!0,r+=iue(t[s-1]);e[n]=a,e[n]._emit=o,e[n]._multi=!0}function gmt(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw Hp("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),s7;if(typeof e.beginScope!="object"||e.beginScope===null)throw Hp("beginScope must be object"),s7;fue(e,e.begin,{key:"beginScope"}),e.begin=IM(e.begin,{joinWith:""})}}function vmt(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw Hp("skip, excludeEnd, returnEnd not compatible with endScope: {}"),s7;if(typeof e.endScope!="object"||e.endScope===null)throw Hp("endScope must be object"),s7;fue(e,e.end,{key:"endScope"}),e.end=IM(e.end,{joinWith:""})}}function bmt(e){e.scope&&typeof e.scope=="object"&&e.scope!==null&&(e.beginScope=e.scope,delete e.scope)}function ymt(e){bmt(e),typeof e.beginScope=="string"&&(e.beginScope={_wrap:e.beginScope}),typeof e.endScope=="string"&&(e.endScope={_wrap:e.endScope}),gmt(e),vmt(e)}function xmt(e){function t(a,s){return new RegExp(By(a),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(s?"g":""))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(s,l){l.position=this.position++,this.matchIndexes[this.matchAt]=l,this.regexes.push([l,s]),this.matchAt+=iue(s)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const s=this.regexes.map(l=>l[1]);this.matcherRe=t(IM(s,{joinWith:"|"}),!0),this.lastIndex=0}exec(s){this.matcherRe.lastIndex=this.lastIndex;const l=this.matcherRe.exec(s);if(!l)return null;const c=l.findIndex((f,h)=>h>0&&f!==void 0),u=this.matchIndexes[c];return l.splice(0,c),Object.assign(l,u)}}class r{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(s){if(this.multiRegexes[s])return this.multiRegexes[s];const l=new n;return this.rules.slice(s).forEach(([c,u])=>l.addRule(c,u)),l.compile(),this.multiRegexes[s]=l,l}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(s,l){this.rules.push([s,l]),l.type==="begin"&&this.count++}exec(s){const l=this.getMatcher(this.regexIndex);l.lastIndex=this.lastIndex;let c=l.exec(s);if(this.resumingScanAtSamePosition()&&!(c&&c.index===this.lastIndex)){const u=this.getMatcher(0);u.lastIndex=this.lastIndex+1,c=u.exec(s)}return c&&(this.regexIndex+=c.position+1,this.regexIndex===this.count&&this.considerAll()),c}}function i(a){const s=new r;return a.contains.forEach(l=>s.addRule(l.begin,{rule:l,type:"begin"})),a.terminatorEnd&&s.addRule(a.terminatorEnd,{type:"end"}),a.illegal&&s.addRule(a.illegal,{type:"illegal"}),s}function o(a,s){const l=a;if(a.isCompiled)return l;[amt,cmt,ymt,dmt].forEach(u=>u(a,s)),e.compilerExtensions.forEach(u=>u(a,s)),a.__beforeBegin=null,[smt,lmt,umt].forEach(u=>u(a,s)),a.isCompiled=!0;let c=null;return typeof a.keywords=="object"&&a.keywords.$pattern&&(a.keywords=Object.assign({},a.keywords),c=a.keywords.$pattern,delete a.keywords.$pattern),c=c||/\w+/,a.keywords&&(a.keywords=cue(a.keywords,e.case_insensitive)),l.keywordPatternRe=t(c,!0),s&&(a.begin||(a.begin=/\B|\b/),l.beginRe=t(l.begin),!a.end&&!a.endsWithParent&&(a.end=/\B|\b/),a.end&&(l.endRe=t(l.end)),l.terminatorEnd=By(l.end)||"",a.endsWithParent&&s.terminatorEnd&&(l.terminatorEnd+=(a.end?"|":"")+s.terminatorEnd)),a.illegal&&(l.illegalRe=t(a.illegal)),a.contains||(a.contains=[]),a.contains=[].concat(...a.contains.map(function(u){return wmt(u==="self"?a:u)})),a.contains.forEach(function(u){o(u,l)}),a.starts&&o(a.starts,s),l.matcher=i(l),l}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=Hf(e.classNameAliases||{}),o(e)}function hue(e){return e?e.endsWithParent||hue(e.starts):!1}function wmt(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(t){return Hf(e,{variants:null},t)})),e.cachedVariants?e.cachedVariants:hue(e)?Hf(e,{starts:e.starts?Hf(e.starts):null}):Object.isFrozen(e)?Hf(e):e}var Cmt="11.9.0";class _mt extends Error{constructor(t,n){super(t),this.name="HTMLInjectionError",this.html=n}}const BM=eue,pue=Hf,mue=Symbol("nomatch"),Smt=7,gue=function(e){const t=Object.create(null),n=Object.create(null),r=[];let i=!0;const o="Could not find the language '{}', did you forget to load/include a language module?",a={disableAutodetect:!0,name:"Plain text",contains:[]};let s={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:I1t};function l(R){return s.noHighlightRe.test(R)}function c(R){let I=R.className+" ";I+=R.parentNode?R.parentNode.className:"";const G=s.languageDetectRe.exec(I);if(G){const F=$(G[1]);return F||(due(o.replace("{}",G[1])),due("Falling back to no-highlight mode for this block.",R)),F?G[1]:"no-highlight"}return I.split(/\s+/).find(F=>l(F)||$(F))}function u(R,I,G){let F="",z="";typeof I=="object"?(F=R,G=I.ignoreIllegals,z=I.language):($g("10.7.0","highlight(lang, code, ...args) has been deprecated."),$g("10.7.0",`Please use highlight(code, options) instead.
|
4183
|
+
https://github.com/highlightjs/highlight.js/issues/2277`),z=R,F=I),G===void 0&&(G=!0);const A={code:F,language:z};B("before:highlight",A);const L=A.result?A.result:f(A.language,A.code,G);return L.code=A.code,B("after:highlight",L),L}function f(R,I,G,F){const z=Object.create(null);function A(Z,ce){return Z.keywords[ce]}function L(){if(!de.keywords){Oe.addText(Le);return}let Z=0;de.keywordPatternRe.lastIndex=0;let ce=de.keywordPatternRe.exec(Le),_e="";for(;ce;){_e+=Le.substring(Z,ce.index);const $e=ue.case_insensitive?ce[0].toLowerCase():ce[0],Ne=A(de,$e);if(Ne){const[it,Je]=Ne;if(Oe.addText(_e),_e="",z[$e]=(z[$e]||0)+1,z[$e]<=Smt&&(Ge+=Je),it.startsWith("_"))_e+=ce[0];else{const ft=ue.classNameAliases[it]||it;oe(ce[0],ft)}}else _e+=ce[0];Z=de.keywordPatternRe.lastIndex,ce=de.keywordPatternRe.exec(Le)}_e+=Le.substring(Z),Oe.addText(_e)}function N(){if(Le==="")return;let Z=null;if(typeof de.subLanguage=="string"){if(!t[de.subLanguage]){Oe.addText(Le);return}Z=f(de.subLanguage,Le,!0,ve[de.subLanguage]),ve[de.subLanguage]=Z._top}else Z=p(Le,de.subLanguage.length?de.subLanguage:null);de.relevance>0&&(Ge+=Z.relevance),Oe.__addSublanguage(Z._emitter,Z.language)}function q(){de.subLanguage!=null?N():L(),Le=""}function oe(Z,ce){Z!==""&&(Oe.startScope(ce),Oe.addText(Z),Oe.endScope())}function ee(Z,ce){let _e=1;const $e=ce.length-1;for(;_e<=$e;){if(!Z._emit[_e]){_e++;continue}const Ne=ue.classNameAliases[Z[_e]]||Z[_e],it=ce[_e];Ne?oe(it,Ne):(Le=it,L(),Le=""),_e++}}function be(Z,ce){return Z.scope&&typeof Z.scope=="string"&&Oe.openNode(ue.classNameAliases[Z.scope]||Z.scope),Z.beginScope&&(Z.beginScope._wrap?(oe(Le,ue.classNameAliases[Z.beginScope._wrap]||Z.beginScope._wrap),Le=""):Z.beginScope._multi&&(ee(Z.beginScope,ce),Le="")),de=Object.create(Z,{parent:{value:de}}),de}function H(Z,ce,_e){let $e=z1t(Z.endRe,_e);if($e){if(Z["on:end"]){const Ne=new Qce(Z);Z["on:end"](ce,Ne),Ne.isMatchIgnored&&($e=!1)}if($e){for(;Z.endsParent&&Z.parent;)Z=Z.parent;return Z}}if(Z.endsWithParent)return H(Z.parent,ce,_e)}function O(Z){return de.matcher.regexIndex===0?(Le+=Z[0],1):(J=!0,0)}function D(Z){const ce=Z[0],_e=Z.rule,$e=new Qce(_e),Ne=[_e.__beforeBegin,_e["on:begin"]];for(const it of Ne)if(it&&(it(Z,$e),$e.isMatchIgnored))return O(ce);return _e.skip?Le+=ce:(_e.excludeBegin&&(Le+=ce),q(),!_e.returnBegin&&!_e.excludeBegin&&(Le=ce)),be(_e,Z),_e.returnBegin?0:ce.length}function ae(Z){const ce=Z[0],_e=I.substring(Z.index),$e=H(de,Z,_e);if(!$e)return mue;const Ne=de;de.endScope&&de.endScope._wrap?(q(),oe(ce,de.endScope._wrap)):de.endScope&&de.endScope._multi?(q(),ee(de.endScope,Z)):Ne.skip?Le+=ce:(Ne.returnEnd||Ne.excludeEnd||(Le+=ce),q(),Ne.excludeEnd&&(Le=ce));do de.scope&&Oe.closeNode(),!de.skip&&!de.subLanguage&&(Ge+=de.relevance),de=de.parent;while(de!==$e.parent);return $e.starts&&be($e.starts,Z),Ne.returnEnd?0:ce.length}function U(){const Z=[];for(let ce=de;ce!==ue;ce=ce.parent)ce.scope&&Z.unshift(ce.scope);Z.forEach(ce=>Oe.openNode(ce))}let Y={};function ye(Z,ce){const _e=ce&&ce[0];if(Le+=Z,_e==null)return q(),0;if(Y.type==="begin"&&ce.type==="end"&&Y.index===ce.index&&_e===""){if(Le+=I.slice(ce.index,ce.index+1),!i){const $e=new Error(`0 width match regex (${R})`);throw $e.languageName=R,$e.badRule=Y.rule,$e}return 1}if(Y=ce,ce.type==="begin")return D(ce);if(ce.type==="illegal"&&!G){const $e=new Error('Illegal lexeme "'+_e+'" for mode "'+(de.scope||"<unnamed>")+'"');throw $e.mode=de,$e}else if(ce.type==="end"){const $e=ae(ce);if($e!==mue)return $e}if(ce.type==="illegal"&&_e==="")return 1;if(Te>1e5&&Te>ce.index*3)throw new Error("potential infinite loop, way more iterations than matches");return Le+=_e,_e.length}const ue=$(R);if(!ue)throw Hp(o.replace("{}",R)),new Error('Unknown language: "'+R+'"');const Ce=xmt(ue);let he="",de=F||Ce;const ve={},Oe=new s.__emitter(s);U();let Le="",Ge=0,ne=0,Te=0,J=!1;try{if(ue.__emitTokens)ue.__emitTokens(I,Oe);else{for(de.matcher.considerAll();;){Te++,J?J=!1:de.matcher.considerAll(),de.matcher.lastIndex=ne;const Z=de.matcher.exec(I);if(!Z)break;const ce=I.substring(ne,Z.index),_e=ye(ce,Z);ne=Z.index+_e}ye(I.substring(ne))}return Oe.finalize(),he=Oe.toHTML(),{language:R,value:he,relevance:Ge,illegal:!1,_emitter:Oe,_top:de}}catch(Z){if(Z.message&&Z.message.includes("Illegal"))return{language:R,value:BM(I),illegal:!0,relevance:0,_illegalBy:{message:Z.message,index:ne,context:I.slice(ne-100,ne+100),mode:Z.mode,resultSoFar:he},_emitter:Oe};if(i)return{language:R,value:BM(I),illegal:!1,relevance:0,errorRaised:Z,_emitter:Oe,_top:de};throw Z}}function h(R){const I={value:BM(R),illegal:!1,relevance:0,_top:a,_emitter:new s.__emitter(s)};return I._emitter.addText(R),I}function p(R,I){I=I||s.languages||Object.keys(t);const G=h(R),F=I.filter($).filter(P).map(q=>f(q,R,!1));F.unshift(G);const z=F.sort((q,oe)=>{if(q.relevance!==oe.relevance)return oe.relevance-q.relevance;if(q.language&&oe.language){if($(q.language).supersetOf===oe.language)return 1;if($(oe.language).supersetOf===q.language)return-1}return 0}),[A,L]=z,N=A;return N.secondBest=L,N}function m(R,I,G){const F=I&&n[I]||G;R.classList.add("hljs"),R.classList.add(`language-${F}`)}function b(R){let I=null;const G=c(R);if(l(G))return;if(B("before:highlightElement",{el:R,language:G}),R.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",R);return}if(R.children.length>0&&(s.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(R)),s.throwUnescapedHTML))throw new _mt("One of your code blocks includes unescaped HTML.",R.innerHTML);I=R;const F=I.textContent,z=G?u(F,{language:G,ignoreIllegals:!0}):p(F);R.innerHTML=z.value,R.dataset.highlighted="yes",m(R,G,z.language),R.result={language:z.language,re:z.relevance,relevance:z.relevance},z.secondBest&&(R.secondBest={language:z.secondBest.language,relevance:z.secondBest.relevance}),B("after:highlightElement",{el:R,result:z,text:F})}function v(R){s=pue(s,R)}const g=()=>{y(),$g("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function x(){y(),$g("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let w=!1;function y(){if(document.readyState==="loading"){w=!0;return}document.querySelectorAll(s.cssSelector).forEach(b)}function C(){w&&y()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",C,!1);function _(R,I){let G=null;try{G=I(e)}catch(F){if(Hp("Language definition for '{}' could not be registered.".replace("{}",R)),i)Hp(F);else throw F;G=a}G.name||(G.name=R),t[R]=G,G.rawDefinition=I.bind(null,e),G.aliases&&k(G.aliases,{languageName:R})}function S(R){delete t[R];for(const I of Object.keys(n))n[I]===R&&delete n[I]}function E(){return Object.keys(t)}function $(R){return R=(R||"").toLowerCase(),t[R]||t[n[R]]}function k(R,{languageName:I}){typeof R=="string"&&(R=[R]),R.forEach(G=>{n[G.toLowerCase()]=I})}function P(R){const I=$(R);return I&&!I.disableAutodetect}function T(R){R["before:highlightBlock"]&&!R["before:highlightElement"]&&(R["before:highlightElement"]=I=>{R["before:highlightBlock"](Object.assign({block:I.el},I))}),R["after:highlightBlock"]&&!R["after:highlightElement"]&&(R["after:highlightElement"]=I=>{R["after:highlightBlock"](Object.assign({block:I.el},I))})}function j(R){T(R),r.push(R)}function M(R){const I=r.indexOf(R);I!==-1&&r.splice(I,1)}function B(R,I){const G=R;r.forEach(function(F){F[G]&&F[G](I)})}function V(R){return $g("10.7.0","highlightBlock will be removed entirely in v12.0"),$g("10.7.0","Please use highlightElement now."),b(R)}Object.assign(e,{highlight:u,highlightAuto:p,highlightAll:y,highlightElement:b,highlightBlock:V,configure:v,initHighlighting:g,initHighlightingOnLoad:x,registerLanguage:_,unregisterLanguage:S,listLanguages:E,getLanguage:$,registerAliases:k,autoDetection:P,inherit:pue,addPlugin:j,removePlugin:M}),e.debugMode=function(){i=!1},e.safeMode=function(){i=!0},e.versionString=Cmt,e.regex={concat:Vp,lookahead:rue,either:DM,optional:B1t,anyNumberOfTimes:L1t};for(const R in a7)typeof a7[R]=="object"&&Jce(a7[R]);return Object.assign(e,a7),e},Tg=gue({});Tg.newInstance=()=>gue({});var Emt=Tg;Tg.HighlightJS=Tg,Tg.default=Tg;const FM=u0(Emt);function kmt(e){const t=e.regex,n=t.concat(/[\p{L}_]/u,t.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),r=/[\p{L}0-9._:-]+/u,i={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},o={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},a=e.inherit(o,{begin:/\(/,end:/\)/}),s=e.inherit(e.APOS_STRING_MODE,{className:"string"}),l=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),c={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:r,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[i]},{begin:/'/,end:/'/,contains:[i]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[o,l,s,a,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[o,a,l,s]}]}]},e.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},i,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[l]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[c],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[c],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:t.concat(/</,t.lookahead(t.concat(n,t.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:n,relevance:0,starts:c}]},{className:"tag",begin:t.concat(/<\//,t.lookahead(t.concat(n,/>/))),contains:[{className:"name",begin:n,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}function $mt(e){const t={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},n={match:/[{}[\],:]/,className:"punctuation",relevance:0},r=["true","false","null"],i={scope:"literal",beginKeywords:r.join(" ")};return{name:"JSON",keywords:{literal:r},contains:[t,n,e.QUOTE_STRING_MODE,i,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}const Tmt={name:"Activiti",uri:"http://activiti.org/bpmn",prefix:"activiti",xml:{tagAlias:"lowerCase"},associations:[],types:[{name:"Definitions",isAbstract:!0,extends:["bpmn:Definitions"],properties:[{name:"diagramRelationId",isAttr:!0,type:"String"}]},{name:"InOutBinding",superClass:["Element"],isAbstract:!0,properties:[{name:"source",isAttr:!0,type:"String"},{name:"sourceExpression",isAttr:!0,type:"String"},{name:"target",isAttr:!0,type:"String"},{name:"businessKey",isAttr:!0,type:"String"},{name:"local",isAttr:!0,type:"Boolean",default:!1},{name:"variables",isAttr:!0,type:"String"}]},{name:"In",superClass:["InOutBinding"],meta:{allowedIn:["bpmn:CallActivity"]}},{name:"Out",superClass:["InOutBinding"],meta:{allowedIn:["bpmn:CallActivity"]}},{name:"AsyncCapable",isAbstract:!0,extends:["bpmn:Activity","bpmn:Gateway","bpmn:Event"],properties:[{name:"async",isAttr:!0,type:"Boolean",default:!1},{name:"asyncBefore",isAttr:!0,type:"Boolean",default:!1},{name:"asyncAfter",isAttr:!0,type:"Boolean",default:!1},{name:"exclusive",isAttr:!0,type:"Boolean",default:!0}]},{name:"JobPriorized",isAbstract:!0,extends:["bpmn:Process","activiti:AsyncCapable"],properties:[{name:"jobPriority",isAttr:!0,type:"String"}]},{name:"SignalEventDefinition",isAbstract:!0,extends:["bpmn:SignalEventDefinition"],properties:[{name:"async",isAttr:!0,type:"Boolean",default:!1}]},{name:"ErrorEventDefinition",isAbstract:!0,extends:["bpmn:ErrorEventDefinition"],properties:[{name:"errorCodeVariable",isAttr:!0,type:"String"},{name:"errorMessageVariable",isAttr:!0,type:"String"}]},{name:"Error",isAbstract:!0,extends:["bpmn:Error"],properties:[{name:"activiti:errorMessage",isAttr:!0,type:"String"}]},{name:"PotentialStarter",superClass:["Element"],properties:[{name:"resourceAssignmentExpression",type:"bpmn:ResourceAssignmentExpression"}]},{name:"FormSupported",isAbstract:!0,extends:["bpmn:StartEvent","bpmn:UserTask"],properties:[{name:"formHandlerClass",isAttr:!0,type:"String"},{name:"formKey",isAttr:!0,type:"String"}]},{name:"TemplateSupported",isAbstract:!0,extends:["bpmn:Process","bpmn:FlowElement"],properties:[{name:"modelerTemplate",isAttr:!0,type:"String"}]},{name:"Initiator",isAbstract:!0,extends:["bpmn:StartEvent"],properties:[{name:"initiator",isAttr:!0,type:"String"}]},{name:"ScriptTask",isAbstract:!0,extends:["bpmn:ScriptTask"],properties:[{name:"resultVariable",isAttr:!0,type:"String"},{name:"resource",isAttr:!0,type:"String"}]},{name:"Process",isAbstract:!0,extends:["bpmn:Process"],properties:[{name:"candidateStarterGroups",isAttr:!0,type:"String"},{name:"candidateStarterUsers",isAttr:!0,type:"String"},{name:"versionTag",isAttr:!0,type:"String"},{name:"historyTimeToLive",isAttr:!0,type:"String"},{name:"isStartableInTasklist",isAttr:!0,type:"Boolean",default:!0},{name:"executionListener",isAbstract:!0,type:"Expression"}]},{name:"EscalationEventDefinition",isAbstract:!0,extends:["bpmn:EscalationEventDefinition"],properties:[{name:"escalationCodeVariable",isAttr:!0,type:"String"}]},{name:"FormalExpression",isAbstract:!0,extends:["bpmn:FormalExpression"],properties:[{name:"resource",isAttr:!0,type:"String"}]},{name:"multiinstance_type",superClass:["Element"]},{name:"multiinstance_condition",superClass:["Element"]},{name:"Assignable",extends:["bpmn:UserTask"],properties:[{name:"assignee",isAttr:!0,type:"String"},{name:"candidateUsers",isAttr:!0,type:"String"},{name:"candidateGroups",isAttr:!0,type:"String"},{name:"dueDate",isAttr:!0,type:"String"},{name:"followUpDate",isAttr:!0,type:"String"},{name:"priority",isAttr:!0,type:"String"},{name:"multiinstance_condition",isAttr:!0,type:"String"}]},{name:"CallActivity",extends:["bpmn:CallActivity"],properties:[{name:"calledElementBinding",isAttr:!0,type:"String",default:"latest"},{name:"calledElementVersion",isAttr:!0,type:"String"},{name:"calledElementVersionTag",isAttr:!0,type:"String"},{name:"calledElementTenantId",isAttr:!0,type:"String"},{name:"caseRef",isAttr:!0,type:"String"},{name:"caseBinding",isAttr:!0,type:"String",default:"latest"},{name:"caseVersion",isAttr:!0,type:"String"},{name:"caseTenantId",isAttr:!0,type:"String"},{name:"variableMappingClass",isAttr:!0,type:"String"},{name:"variableMappingDelegateExpression",isAttr:!0,type:"String"}]},{name:"ServiceTaskLike",extends:["bpmn:ServiceTask","bpmn:BusinessRuleTask","bpmn:SendTask","bpmn:MessageEventDefinition"],properties:[{name:"expression",isAttr:!0,type:"String"},{name:"class",isAttr:!0,type:"String"},{name:"delegateExpression",isAttr:!0,type:"String"},{name:"resultVariable",isAttr:!0,type:"String"}]},{name:"DmnCapable",extends:["bpmn:BusinessRuleTask"],properties:[{name:"decisionRef",isAttr:!0,type:"String"},{name:"decisionRefBinding",isAttr:!0,type:"String",default:"latest"},{name:"decisionRefVersion",isAttr:!0,type:"String"},{name:"mapDecisionResult",isAttr:!0,type:"String",default:"resultList"},{name:"decisionRefTenantId",isAttr:!0,type:"String"}]},{name:"ExternalCapable",extends:["activiti:ServiceTaskLike"],properties:[{name:"type",isAttr:!0,type:"String"},{name:"topic",isAttr:!0,type:"String"}]},{name:"TaskPriorized",extends:["bpmn:Process","activiti:ExternalCapable"],properties:[{name:"taskPriority",isAttr:!0,type:"String"}]},{name:"Properties",superClass:["Element"],meta:{allowedIn:["*"]},properties:[{name:"values",type:"Property",isMany:!0}]},{name:"Property",superClass:["Element"],properties:[{name:"id",type:"String",isAttr:!0},{name:"name",type:"String",isAttr:!0},{name:"value",type:"String",isAttr:!0}]},{name:"Connector",superClass:["Element"],meta:{allowedIn:["activiti:ServiceTaskLike"]},properties:[{name:"inputOutput",type:"InputOutput"},{name:"connectorId",type:"String"}]},{name:"InputOutput",superClass:["Element"],meta:{allowedIn:["bpmn:FlowNode","activiti:Connector"]},properties:[{name:"inputOutput",type:"InputOutput"},{name:"connectorId",type:"String"},{name:"inputParameters",isMany:!0,type:"InputParameter"},{name:"outputParameters",isMany:!0,type:"OutputParameter"}]},{name:"InputOutputParameter",properties:[{name:"name",isAttr:!0,type:"String"},{name:"value",isBody:!0,type:"String"},{name:"definition",type:"InputOutputParameterDefinition"}]},{name:"InputOutputParameterDefinition",isAbstract:!0},{name:"List",superClass:["InputOutputParameterDefinition"],properties:[{name:"items",isMany:!0,type:"InputOutputParameterDefinition"}]},{name:"Map",superClass:["InputOutputParameterDefinition"],properties:[{name:"entries",isMany:!0,type:"Entry"}]},{name:"Entry",properties:[{name:"key",isAttr:!0,type:"String"},{name:"value",isBody:!0,type:"String"},{name:"definition",type:"InputOutputParameterDefinition"}]},{name:"Value",superClass:["InputOutputParameterDefinition"],properties:[{name:"id",isAttr:!0,type:"String"},{name:"name",isAttr:!0,type:"String"},{name:"value",isBody:!0,type:"String"}]},{name:"Script",superClass:["InputOutputParameterDefinition"],properties:[{name:"scriptFormat",isAttr:!0,type:"String"},{name:"resource",isAttr:!0,type:"String"},{name:"value",isBody:!0,type:"String"}]},{name:"Field",superClass:["Element"],meta:{allowedIn:["activiti:ServiceTaskLike","activiti:ExecutionListener","activiti:TaskListener"]},properties:[{name:"name",isAttr:!0,type:"String"},{name:"expression",isAttr:!0,type:"String"},{name:"stringValue",isAttr:!0,type:"String"},{name:"string",isAttr:!0,type:"String"}]},{name:"InputParameter",superClass:["InputOutputParameter"]},{name:"OutputParameter",superClass:["InputOutputParameter"]},{name:"Collectable",isAbstract:!0,extends:["bpmn:MultiInstanceLoopCharacteristics"],superClass:["activiti:AsyncCapable"],properties:[{name:"collection",isAttr:!0,type:"String"},{name:"elementVariable",isAttr:!0,type:"String"}]},{name:"FailedJobRetryTimeCycle",superClass:["Element"],meta:{allowedIn:["activiti:AsyncCapable","bpmn:MultiInstanceLoopCharacteristics"]},properties:[{name:"body",isBody:!0,type:"String"}]},{name:"ExecutionListener",superClass:["Element"],meta:{allowedIn:["bpmn:Task","bpmn:ServiceTask","bpmn:UserTask","bpmn:BusinessRuleTask","bpmn:ScriptTask","bpmn:ReceiveTask","bpmn:ManualTask","bpmn:ExclusiveGateway","bpmn:SequenceFlow","bpmn:ParallelGateway","bpmn:InclusiveGateway","bpmn:EventBasedGateway","bpmn:StartEvent","bpmn:IntermediateCatchEvent","bpmn:IntermediateThrowEvent","bpmn:EndEvent","bpmn:BoundaryEvent","bpmn:CallActivity","bpmn:SubProcess","bpmn:Process"]},properties:[{name:"expression",isAttr:!0,type:"String"},{name:"class",isAttr:!0,type:"String"},{name:"delegateExpression",isAttr:!0,type:"String"},{name:"event",isAttr:!0,type:"String"},{name:"script",type:"Script"},{name:"fields",type:"Field",isMany:!0}]},{name:"TaskListener",superClass:["Element"],meta:{allowedIn:["bpmn:UserTask"]},properties:[{name:"expression",isAttr:!0,type:"String"},{name:"class",isAttr:!0,type:"String"},{name:"delegateExpression",isAttr:!0,type:"String"},{name:"event",isAttr:!0,type:"String"},{name:"script",type:"Script"},{name:"fields",type:"Field",isMany:!0}]},{name:"FormProperty",superClass:["Element"],meta:{allowedIn:["bpmn:StartEvent","bpmn:UserTask"]},properties:[{name:"id",type:"String",isAttr:!0},{name:"name",type:"String",isAttr:!0},{name:"type",type:"String",isAttr:!0},{name:"required",type:"String",isAttr:!0},{name:"readable",type:"String",isAttr:!0},{name:"writable",type:"String",isAttr:!0},{name:"variable",type:"String",isAttr:!0},{name:"expression",type:"String",isAttr:!0},{name:"datePattern",type:"String",isAttr:!0},{name:"default",type:"String",isAttr:!0},{name:"values",type:"Value",isMany:!0}]},{name:"FormProperty",superClass:["Element"],properties:[{name:"id",type:"String",isAttr:!0},{name:"label",type:"String",isAttr:!0},{name:"type",type:"String",isAttr:!0},{name:"datePattern",type:"String",isAttr:!0},{name:"defaultValue",type:"String",isAttr:!0},{name:"properties",type:"Properties"},{name:"validation",type:"Validation"},{name:"values",type:"Value",isMany:!0}]},{name:"Validation",superClass:["Element"],properties:[{name:"constraints",type:"Constraint",isMany:!0}]},{name:"Constraint",superClass:["Element"],properties:[{name:"name",type:"String",isAttr:!0},{name:"config",type:"String",isAttr:!0}]},{name:"ConditionalEventDefinition",isAbstract:!0,extends:["bpmn:ConditionalEventDefinition"],properties:[{name:"variableName",isAttr:!0,type:"String"},{name:"variableEvent",isAttr:!0,type:"String"}]}],emumerations:[]},$o={legend:[1,"<fieldset>","</fieldset>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],_default:[0,"",""]};$o.td=$o.th=[3,"<table><tbody><tr>","</tr></tbody></table>"],$o.option=$o.optgroup=[1,'<select multiple="multiple">',"</select>"],$o.thead=$o.tbody=$o.colgroup=$o.caption=$o.tfoot=[1,"<table>","</table>"],$o.polyline=$o.ellipse=$o.polygon=$o.circle=$o.text=$o.line=$o.path=$o.rect=$o.g=[1,'<svg xmlns="http://www.w3.org/2000/svg" version="1.1">',"</svg>"];function Rmt(e,t=globalThis.document){var c;if(typeof e!="string")throw new TypeError("String expected");const n=/^<!--(.*?)-->$/s.exec(e);if(n)return t.createComment(n[1]);const r=(c=/<([\w:]+)/.exec(e))==null?void 0:c[1];if(!r)return t.createTextNode(e);if(e=e.trim(),r==="body"){const u=t.createElement("html");u.innerHTML=e;const{lastChild:f}=u;return f.remove(),f}let[i,o,a]=Object.hasOwn($o,r)?$o[r]:$o._default,s=t.createElement("div");for(s.innerHTML=o+e+a;i--;)s=s.lastChild;if(s.firstChild===s.lastChild){const{firstChild:u}=s;return u.remove(),u}const l=t.createDocumentFragment();return l.append(...s.childNodes),l}var Pmt=Rmt;const l7=u0(Pmt);function Omt(e,t){return t.forEach(function(n){n&&typeof n!="string"&&!Array.isArray(n)&&Object.keys(n).forEach(function(r){if(r!=="default"&&!(r in e)){var i=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(e,r,i.get?i:{enumerable:!0,get:function(){return n[r]}})}})}),Object.freeze(e)}function zy(e,t,n){return arguments.length==2?e.getAttribute(t):n===null?e.removeAttribute(t):(e.setAttribute(t,n),e)}const jmt=Object.prototype.toString;function Rg(e){return new Uf(e)}function Uf(e){if(!e||!e.nodeType)throw new Error("A DOM element reference is required");this.el=e,this.list=e.classList}Uf.prototype.add=function(e){return this.list.add(e),this},Uf.prototype.remove=function(e){return jmt.call(e)=="[object RegExp]"?this.removeMatching(e):(this.list.remove(e),this)},Uf.prototype.removeMatching=function(e){const t=this.array();for(let n=0;n<t.length;n++)e.test(t[n])&&this.remove(t[n]);return this},Uf.prototype.toggle=function(e,t){return typeof t<"u"?t!==this.list.toggle(e,t)&&this.list.toggle(e):this.list.toggle(e),this},Uf.prototype.array=function(){return Array.from(this.list)},Uf.prototype.has=Uf.prototype.contains=function(e){return this.list.contains(e)};function Mmt(e){for(var t;e.childNodes.length;)t=e.childNodes[0],e.removeChild(t);return e}function zM(e,t){return e&&typeof e.matches=="function"&&e.matches(t)}function Amt(e,t,n){for(var r=n?e:e.parentNode;r&&r.nodeType!==document.DOCUMENT_NODE&&r.nodeType!==document.DOCUMENT_FRAGMENT_NODE;){if(zM(r,t))return r;r=r.parentNode}return zM(r,t)?r:null}var c7={},u7,VM,HM;function vue(){u7=window.addEventListener?"addEventListener":"attachEvent",VM=window.removeEventListener?"removeEventListener":"detachEvent",HM=u7!=="addEventListener"?"on":""}var Nmt=c7.bind=function(e,t,n,r){return u7||vue(),e[u7](HM+t,n,r||!1),n},Dmt=c7.unbind=function(e,t,n,r){return VM||vue(),e[VM](HM+t,n,r||!1),n},UM=Omt({__proto__:null,bind:Nmt,default:c7,unbind:Dmt},[c7]),bue=["focus","blur"];function Imt(e,t,n,r,i){return bue.indexOf(n)!==-1&&(i=!0),UM.bind(e,n,function(o){var a=o.target||o.srcElement;o.delegateTarget=Amt(a,t,!0),o.delegateTarget&&r.call(e,o)},i)}function Lmt(e,t,n,r){return bue.indexOf(t)!==-1&&(r=!0),UM.unbind(e,t,n,r)}var yue={bind:Imt,unbind:Lmt};function d7(e,t){return t=t||document,t.querySelector(e)}function Bmt(e){return CSS.escape(e)}const xue=".djs-palette-toggle",wue=".entry",Fmt=xue+", "+wue,WM="djs-palette-",zmt="shown",qM="open",Cue="two-column",Vmt=1e3;function po(e,t,n,r,i,o){this._eventBus=e,this._canvas=t,this._entries=o,this._paletteContainer=i,this._elementFactory=n,this._create=r;const a=this;e.on("tool-manager.update",function(s){const l=s.tool;a.updateToolHighlight(l)}),e.on("i18n.changed",function(){a._update()}),e.on("diagram.init",function(){a._diagramInitialized=!0,a._rebuild()})}po.$inject=["eventBus","canvas","elementFactory","create","config.paletteContainer","config.paletteEntries"],po.prototype.registerProvider=function(e,t){t||(t=e,e=Vmt),this._eventBus.on("palette.getProviders",e,function(n){n.providers.push(t)}),this._rebuild()},po.prototype.getEntries=function(){return this._getProviders().reduce(Umt,{})},po.prototype._rebuild=function(){!this._diagramInitialized||!this._getProviders().length||(this._container||this._init(),this._update())},po.prototype._init=function(){const e=this,t=this._eventBus,n=this._getParentContainer(),r=this._container=l7(po.HTML_MARKUP);n.appendChild(r),Rg(n).add(WM+zmt),yue.bind(r,Fmt,"click",function(i){const o=i.delegateTarget;if(zM(o,xue))return e.toggle();e.trigger("click",i)}),UM.bind(r,"mousedown",function(i){i.stopPropagation()}),yue.bind(r,wue,"dragstart",function(i){e.trigger("dragstart",i)}),t.on("canvas.resized",this._layoutChanged,this),t.fire("palette.create",{container:r})},po.prototype._getProviders=function(e){const t=this._eventBus.createEvent({type:"palette.getProviders",providers:[]});return this._eventBus.fire(t),t.providers},po.prototype._toggleState=function(e){e=e||{};const t=this._getParentContainer(),n=this._container,r=this._eventBus;let i;const o=Rg(n),a=Rg(t);"twoColumn"in e?i=e.twoColumn:i=this._needsCollapse(t.clientHeight,this._entries||{}),o.toggle(Cue,i),a.toggle(WM+Cue,i),"open"in e&&(o.toggle(qM,e.open),a.toggle(WM+qM,e.open)),r.fire("palette.changed",{twoColumn:i,open:this.isOpen()})},po.prototype._update=function(){const e=d7(".djs-palette-entries",this._container),t=this._entries=this.getEntries();Mmt(e),Pe(t,function(n,r){const i=n.group||"default";let o=d7("[data-group="+Bmt(i)+"]",e);o||(o=l7('<div class="group"></div>'),zy(o,"data-group",i),e==null||e.appendChild(o));const a=n.html||(n.separator?'<hr class="separator" />':'<div class="entry" draggable="true"></div>'),s=l7(a);if(o.appendChild(s),!n.separator&&(zy(s,"data-action",r),n.title&&zy(s,"title",n.title),n.className&&Hmt(s,n.className),n.imageUrl)){const l=l7("<img>");zy(l,"src",n.imageUrl),s.appendChild(l)}}),this.open()},po.prototype.trigger=function(e,t,n){const r=t.delegateTarget||t.target;if(!r)return t.preventDefault();const i=zy(r,"data-action"),o=t.originalEvent||t;return this.triggerEntry(i,e,o,n)},po.prototype.triggerEntry=function(e,t,n,r){const o=this._entries[e];if(!o)return;const a=o.action;if(this._eventBus.fire("palette.trigger",{entry:o,event:n})===!1)return;const s=this._elementFactory,l=this._create;if(Ki(a)){if(t==="click")return a(n,r)}else if(a[t])return a[t](n,r,s,l);n.preventDefault()},po.prototype._layoutChanged=function(){this._toggleState({})},po.prototype._needsCollapse=function(e,t){return Object.keys(t).length*46,!0},po.prototype.close=function(){this._toggleState({open:!1,twoColumn:!1})},po.prototype.open=function(){this._toggleState({open:!0})},po.prototype.toggle=function(){this.isOpen()?this.close():this.open()},po.prototype.isActiveTool=function(e){return e&&this._activeTool===e},po.prototype.updateToolHighlight=function(e){let t;this._toolsContainer||(t=d7(".djs-palette-entries",this._container),this._toolsContainer=d7("[data-group=tools]",t));const n=this._toolsContainer;Pe(n.children,function(r){let i=r.getAttribute("data-action");if(!i)return;const o=Rg(r);i=i.replace("-tool",""),o.contains("entry")&&i===e?o.add("highlighted-entry"):o.remove("highlighted-entry")})},po.prototype.isOpen=function(){return Rg(this._container).has(qM)},po.prototype._getParentContainer=function(){return this._canvas.getContainer()},po.HTML_MARKUP='<div class="djs-palette"><div class="djs-palette-entries"></div><div class="djs-palette-toggle"></div></div>';function Hmt(e,t){const n=Rg(e);(qn(t)?t:t.split(/\s+/g)).forEach(function(i){n.add(i)})}function Umt(e,t){const n=t.getPaletteEntries();return Ki(n)?n(e):(Pe(n,function(r,i){e[i]=r}),e)}class _ue extends E6{constructor(n,r,i,o,a,s,l,c){super(s,n,r,l,a,o,i,c);p7(this,"create");p7(this,"elementFactory");p7(this,"translate");this.create=n,this.elementFactory=r,this.translate=c}getPaletteEntries(){const{create:n,elementFactory:r,translate:i}=this,o=Object.assign({},super.getPaletteEntries());return delete o["create.group"],delete o["create.data-object"],delete o["create.data-store"],delete o["create.participant-expanded"],delete o["create.subprocess-expanded"],Fe(o,{"activity-separator":{group:"activity",separator:!0},...tFe(n,r)})}}_ue.$inject=["create","elementFactory","globalConnect","handTool","lassoTool","palette","spaceTool","translate"];const Sue={__depends__:[{__init__:["palette"],palette:["type",po]}],__init__:["paletteProvider"],paletteProvider:["type",_ue]},Wmt=()=>{const e=fc.prototype._modules,t=e.findIndex(i=>i.paletteProvider),n=e[t].__depends__,r=Sue;r.__depends__=[...Sue.__depends__,...n.slice(1)],e[t]=r},qmt={class:"workflow-container"},Gmt={class:"toolbar"},Kmt={class:"prop-panel",id:"J_PropertiesPanel"},Ymt=va(d.defineComponent({__name:"main",props:{label:{type:String,default:"获取用户的配置"}},emits:["modeler-init"],setup(e,{emit:t}){FM.registerLanguage("xml",kmt),FM.registerLanguage("json",$mt);const n=e9(),r=d.shallowRef({bpmnModeler:null,bpmnXmlStr:Xce}),i=d.ref(null),o=t,a=async l=>{var c;try{const u=await((c=r.value.bpmnModeler)==null?void 0:c.importXML(l)),{warnings:f}=u||{};console.log(f)}catch(u){n.error("打开模型出错,数据格式有误!"),console.log("error--->",u)}},s=async()=>{const l=Zt(Ut),c={translate:["value",Pce]};l.modeler&&(l.modeler.destroy(),await l.setModeler(void 0)),Wmt();const u=new fc({container:i.value,propertiesPanel:{parent:"#J_PropertiesPanel"},additionalModules:[c],moddleExtensions:{activiti:Tmt}});r.value.bpmnModeler=u,await l.setModeler(d.markRaw(u)),af.emit("modeler-init",u),o("modeler-init",u),a(r.value.bpmnXmlStr)};return d.onMounted(()=>{s()}),(l,c)=>(d.openBlock(),d.createBlock(d.unref(kB),{abstract:"",hljs:d.unref(FM)},{default:d.withCtx(()=>[d.createVNode(d.unref(VF),null,{default:d.withCtx(()=>[d.createElementVNode("div",qmt,[d.createElementVNode("div",Gmt,[d.createVNode(M1t,{bpmnModeler:r.value.bpmnModeler},null,8,["bpmnModeler"])]),d.createElementVNode("div",{class:"canvas",id:"canvas",ref_key:"canvasRef",ref:i},null,512),d.createElementVNode("div",Kmt,[d.createVNode(lpt)])])]),_:1})]),_:1},8,["hljs"]))}}),[["__scopeId","data-v-ddd59ae6"]]),Zmt={name:"Workflow"},Eue=d.defineComponent({...Zmt,emits:["init"],setup(e,{expose:t,emit:n}){TIe();const r=n,i=d.ref(null);return t({getWorkflowXml:AM,getPermissionJSON:Yce,initXmlToStore:Zce,updateProcessId:O1t}),(o,a)=>{const s=d.resolveComponent("n-message-provider");return d.openBlock(),d.createBlock(s,null,{default:d.withCtx(()=>[d.createVNode(Ymt,{ref_key:"workflowRef",ref:i,onModelerInit:a[0]||(a[0]=l=>r("init",l))},null,512)]),_:1})}}}),kue=Object.freeze(Object.defineProperty({__proto__:null,SZHello:bN,SZWorkflow:Eue},Symbol.toStringTag,{value:"Module"})),Xmt="0.1.2",$ue="Sz",Jmt=vz({components:[vz,Q5e,kB,NCe,VF,_n,pB,Z3,EB,y6e,Wxe,x1,i7e,a7e,zF,o4,$7e,tz,ks,TCe,I_,UB,i4,_B,j_,LCe,xwe,b7e,Z6e,h7e,Twe,kwe,HCe,BCe,_Ce,oz,hCe,C7e,n5e,LB]}),Tue=e=>{e.use(Jmt),e.use(z7)},GM=function(e){if(!GM.installed){GM.installed=!0,Tue(e);for(let t in kue){const n=Reflect.get(kue,t);e.component($ue+n.name,n)}}};function Qmt({componentPrefix:e=$ue,components:t=[]}={}){const n=[];function r(o,a,s){o.component(e+a)||o.component(e+a,s)}function i(o){n.includes(o)||(n.push(o),Tue(o),t.forEach(a=>{const{name:s,alias:l}=a;r(o,s,a),l&&l.forEach(c=>{r(o,c,a)})}))}return{version:Xmt,componentPrefix:e,install:i}}const egt={install(e){GM(e)}};/*!
|
4184
4184
|
* vanilla-picker v2.12.2
|
4185
4185
|
* https://vanilla-picker.js.org
|
4186
4186
|
*
|