1 line
52 KiB
JavaScript
1 line
52 KiB
JavaScript
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.gtw=e():(t.ntt=t.ntt||{},t.ntt.smartit=t.ntt.smartit||{},t.ntt.smartit.gtw=e())}(window,function(){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(n,i,function(e){return t[e]}.bind(null,i));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=1)}([function(t,e,r){(function(t){var r,n,i,o;function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function c(t,e,r){return e&&u(t.prototype,e),r&&u(t,r),t}function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}o=function(){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==s(t)&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(n,i,function(e){return t[e]}.bind(null,i));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=0)}([function(t,e,r){"use strict";function n(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}r.r(e);var i=Symbol.for("SchemaOptions");function o(t){return h(t)&&t.hasOwnProperty("fn")&&t.hasOwnProperty("path")}function u(t){return g(t)}function l(t){return Array.isArray(t)&&t.every(u)}var f,p=function(t,e){return t.reduce(function(t,r){return b(t,r,v(e,r)),t},{})};function d(t){return void 0===t}function h(t){var e=s(t);return null!=t&&("object"===e||"function"===e)}function g(t){return"string"==typeof t||t instanceof String}function m(t){return"function"==typeof t}function v(t,e){for(var r=(e=(e=e.replace(/\[(\w+)\]/g,".$1")).replace(/^\./,"")).split("."),n=0,i=r.length;n<i;++n){var o=r[n];if(!(h(t)&&o in t))return;t=t[o]}return t}function y(t,e){return t.reduce(function(t,r,i){return function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},i=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),i.forEach(function(e){n(t,e,r[e])})}return t}({},t,(o={},a=r,u=e[i],a in o?Object.defineProperty(o,a,{value:u,enumerable:!0,configurable:!0,writable:!0}):o[a]=u,o));var o,a,u},{})}function b(t,e,r,n){if("number"==typeof e&&(e=[e]),!e||0===e.length)return t;if("string"==typeof e)return b(t,e.split(".").map(w),r,n);var i=e[0],o=function(t,e){if(function(t,e){return"number"==typeof e&&Array.isArray(t)||function(t,e){return null!=t&&Object.prototype.hasOwnProperty.call(t,e)}(t,e)}(t,e))return t[e]}(t,i);return 1===e.length?(void 0!==o&&n||(t[i]=r),o):(void 0===o&&("number"==typeof e[1]?t[i]=[]:t[i]={}),b(t[i],e.slice(1),r,n))}function w(t){var e=parseInt(t);return e.toString()===t?e:t}function k(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),n.forEach(function(e){A(t,e,r[e])})}return t}function A(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function x(t,e){return e&&!function(t){for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0}(e)&&(t[i]=e),t}!function(t){t.Root="Root",t.Property="Property",t.ActionFunction="ActionFunction",t.ActionAggregator="ActionAggregator",t.ActionString="ActionString",t.ActionSelector="ActionSelector"}(f||(f={}));var S=function(){function t(e){a(this,t),this.schemaOptions=void 0,this.root=void 0,this.schema=void 0,this.schema=e,this.schemaOptions=t.getSchemaOptions(this.schema),this.root={data:{targetPropertyPath:"",propertyName:"MorphismTreeRoot",action:null,kind:f.Root},parent:null,children:[]},e&&this.parseSchema(e)}return c(t,[{key:"parseSchema",value:function(t,e,r){var n,i=this;(g(n=t)||m(n)||o(n)||l(n))&&e?(this.add({propertyName:e,action:t},r),r=r?"".concat(r,".").concat(e):e):(e&&(this.add({propertyName:e,action:null},r),r=r?"".concat(r,".").concat(e):e),Array.isArray(t)?t.forEach(function(t,e){i.parseSchema(t,e.toString(),r)}):h(t)&&Object.keys(t).forEach(function(e){i.parseSchema(t[e],e,r)}))}},{key:"traverseBFS",value:regeneratorRuntime.mark(function t(){var e,r,n,i;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:(e=[]).push(this.root);case 2:if(!(e.length>0)){t.next=13;break}if(r=e.shift()){t.next=6;break}return t.abrupt("return");case 6:for(n=0,i=r.children.length;n<i;n++)e.push(r.children[n]);if(t.t0=r.data.kind!==f.Root,!t.t0){t.next=11;break}return t.next=11,r;case 11:t.next=2;break;case 13:case"end":return t.stop()}},t,this)})},{key:"add",value:function(t,e){var r=this.getActionKind(t.action);if(!r)throw new Error("The action specified for ".concat(t.propertyName," is not supported."));var n={data:k({},t,{kind:r,targetPropertyPath:""}),parent:null,children:[]};if(n.data.preparedAction=this.getPreparedAction(n.data),e){var i=!0,o=!1,a=void 0;try{for(var u,c=this.traverseBFS()[Symbol.iterator]();!(i=(u=c.next()).done);i=!0){var s=u.value;s.data.targetPropertyPath===e&&(n.parent=s,n.data.targetPropertyPath="".concat(s.data.targetPropertyPath,".").concat(n.data.propertyName),s.children.push(n))}}catch(t){o=!0,a=t}finally{try{i||null==c.return||c.return()}finally{if(o)throw a}}}else n.parent=this.root,n.data.targetPropertyPath=n.data.propertyName,this.root.children.push(n)}},{key:"getActionKind",value:function(t){return u(t)?f.ActionString:m(t)?f.ActionFunction:o(t)?f.ActionSelector:l(t)?f.ActionAggregator:null===t?f.Property:void 0}},{key:"getPreparedAction",value:function(t){var e=t.propertyName,r=t.action,n=t.kind;if(u(r))return function(t){return v(t.object,r)};if(m(r))return function(t){var e=t.object,n=t.items,i=t.objectToCompute;return r.call(void 0,e,n,i)};if(l(r))return function(t){var e=t.object;return p(r,e)};if(o(r))return function(t){var n,i=t.object,o=t.items,a=t.objectToCompute;try{var u;Array.isArray(r.path)?u=p(r.path,i):g(r.path)&&(u=v(i,r.path)),n=r.fn.call(void 0,u,i,o,a)}catch(t){throw t.message="Unable to set target property [".concat(e,"].\n \n An error occured when applying [").concat(r.fn.name,"] on property [").concat(r.path,"]\n \n Internal error: ").concat(t.message),t}return n};if(n===f.Property)return null;throw new Error("The action specified for ".concat(e," is not supported."))}}],[{key:"getSchemaOptions",value:function(t){return k({},{class:{automapping:!0},undefinedValues:{strip:!1}},t?t[i]:void 0)}}]),t}();function j(t){return function(e,r,n){var i=n.value;return"function"==typeof i&&(n.value=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var o=i.apply(this,r);return function(t){if(Promise&&Promise.resolve)return Promise.resolve(t)==t;throw"Promise not supported in your environment"}(o)?Promise.resolve(o).then(function(e){return t(e)}):t(o)}),n}}function O(t,e,r,n){var i=e.schemaOptions,o=[],a=!0,u=!1,c=void 0;try{for(var s,l=e.traverseBFS()[Symbol.iterator]();!(a=(s=l.next()).done);a=!0){var f=s.value.data,p=f.preparedAction,h=f.targetPropertyPath;p&&o.push({targetPropertyPath:h,preparedAction:p({object:t,objectToCompute:n,items:r})})}}catch(t){u=!0,c=t}finally{try{a||null==l.return||l.return()}finally{if(u)throw c}}return o.reduce(function(t,e){var r=function(t,e){return d(e)?d(t)?void 0:t:e}(v(t,e.targetPropertyPath),e.preparedAction);return void 0===r?(i&&i.undefinedValues&&i.undefinedValues.strip?i.undefinedValues.default&&b(t,e.targetPropertyPath,i.undefinedValues.default(t,e.targetPropertyPath)):b(t,e.targetPropertyPath,r),t):(b(t,e.targetPropertyPath,r),t)},n)}function T(t,e){var r,n=S.getSchemaOptions(t);if(e&&n.class&&n.class.automapping){var i=function(t,e){var r=Object.keys(new t),n=y(r,r);return Object.assign(n,e)}(e,t);r=new S(i)}else r=new S(t);return function(t){if(!t)return t;if(Array.isArray(t))return t.map(function(n){if(e){var i=new e;return O(n,r,t,i)}return O(n,r,t,{})});var n=t;if(e){var i=new e;return O(n,r,[n],i)}return O(n,r,[n],{})}}function M(t,e,r){switch(arguments.length){case 1:return T(t);case 2:return T(t)(e);case 3:if(r)return null!==e?T(t,r)(e):T(t,r);throw new Error("When using morphism(schema, items, type), type should be defined but value received is ".concat(r))}}function I(t,e){return j(T(t,e))}function E(t){return j(T(t))}function P(t,e){return j(T(t,e))}r.d(e,"morph",function(){return I}),r.d(e,"toJSObject",function(){return E}),r.d(e,"toClassObject",function(){return P}),r.d(e,"morphism",function(){return M}),r.d(e,"createSchema",function(){return x}),r.d(e,"Schema",function(){}),r.d(e,"StrictSchema",function(){}),r.d(e,"SchemaOptions",function(){}),r.d(e,"Mapper",function(){}),r.d(e,"SCHEMA_OPTIONS_SYMBOL",function(){return i});var _=new(function(){function t(e){a(this,t),this._registry=null,this._registry=e||{cache:new Map}}return c(t,[{key:"register",value:function(t,e){if(!t&&!e)throw new Error("type paramater is required when you register a mapping");if(this.exists(t))throw new Error("A mapper for ".concat(t.name," has already been registered"));var r;return r=M(e||{},null,t),this._registry.cache.set(t,r),r}},{key:"map",value:function(t,e){if(!this.exists(t)){var r=this.register(t);if(void 0===e)return r}return this.getMapper(t)(e)}},{key:"getMapper",value:function(t){return this._registry.cache.get(t)}},{key:"setMapper",value:function(t,e){if(e){if(this.exists(t)){var r=M(e,null,t);return this._registry.cache.set(t,r),r}throw new Error("The type ".concat(t.name," is not registered. Register it using `Mophism.register(").concat(t.name,", schema)`"))}throw new Error("The schema must be an Object. Found ".concat(e))}},{key:"deleteMapper",value:function(t){return this._registry.cache.delete(t)}},{key:"exists",value:function(t){return this._registry.cache.has(t)}},{key:"mappers",get:function(){return this._registry.cache}}]),t}()),R=M;R.register=function(t,e){return _.register(t,e)},R.map=function(t,e){return _.map(t,e)},R.getMapper=function(t){return _.getMapper(t)},R.setMapper=function(t,e){return _.setMapper(t,e)},R.deleteMapper=function(t){return _.deleteMapper(t)},R.mappers=_.mappers;var D=R;e.default=D}])},"object"==s(e)&&"object"==s(t)?t.exports=o():(n=[],void 0===(i="function"==typeof(r=o)?r.apply(e,n):r)||(t.exports=i))}).call(this,r(24)(t))},function(t,e,r){t.exports=r(2)},function(t,e,r){"use strict";r.r(e),r.d(e,"gtwModul",function(){return c});r(3);function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function o(t,e){return!e||"object"!==n(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function a(t){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}r(8),r(9),r(10),r(11),r(12),r(13);var c=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),o(this,a(e).apply(this,arguments))}var r,n,c;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&u(t,e)}(e,ntt.smartit.api.ICustomModule),r=e,(n=[{key:"name",value:function(){return"gtw"}},{key:"injectTemplates",value:function(){return{"views/ticket/task-details-v2.html":[{id:"customGtwTab",method:"add",mode:"partial",type:"jquery",selector:function(t){return t.find("tabset")},snippet:'<tab id="linkedResourcesTab_{{basicData.id}}" heading="{{\'ntt.ticket.gtw\' | i18n}} ({{heading}})"> <ntt-ticket-gtw ticket="basicData" relation-counters="relationCounters" x="basicData"></ntt-ticket-gtw></tab>',template:this.getModulePath()+"views/ticket/task-details-v2.html"}],"views/ticket/workorder-details-v2.html":[{id:"customGtwTab",method:"add",mode:"partial",type:"jquery",selector:function(t){return t.find("tabset")},snippet:'<tab id="linkedResourcesTab_{{basicData.id}}" heading="{{\'ntt.ticket.gtw\' | i18n}} ({{heading}})"> <ntt-ticket-gtw ticket="basicData" relation-counters="relationCounters" x="basicData"></ntt-ticket-gtw></tab>',template:this.getModulePath()+"views/ticket/task-details-v2.html"}],"views/ticket/incident-details-v2.html":[{id:"customGtwTab",method:"add",mode:"partial",type:"jquery",selector:function(t){return t.find("tabset")},snippet:'<tab id="linkedResourcesTab_{{basicData.id}}" heading="{{\'ntt.ticket.gtw\' | i18n}} ({{heading}})"> <ntt-ticket-gtw ticket="basicData" relation-counters="relationCounters" x="basicData"></ntt-ticket-gtw></tab>',template:this.getModulePath()+"views/ticket/task-details-v2.html"}],"views/ticket/change-details-v2.html":[{id:"customGtwTab",method:"add",mode:"partial",type:"jquery",selector:function(t){return t.find("tabset")},snippet:'<tab id="linkedResourcesTab_{{basicData.id}}" heading="{{\'ntt.ticket.gtw\' | i18n}} ({{heading}})"> <ntt-ticket-gtw ticket="basicData" relation-counters="relationCounters" x="basicData"></ntt-ticket-gtw></tab>',template:this.getModulePath()+"views/ticket/task-details-v2.html"}]}}},{key:"injectDynTemplates",value:function(){return{"views/ticket/task-details-v2xx.html":[{method:"add",mode:"partial",type:"jquery",afterRender:!0,selector:function(t){return t.find('ul[role="tablist"]')},snippet:'<tab id="linkedResourcesTab_{{basicData.id}}" heading="Gans doller tab"> gans dolle tab inhalt</ntt-ticket-gtw></tab>',outerHTML:""}],"views/ticket/orkorder-details-v2.html":[{method:"add",mode:"partial",type:"jquery",afterRender:!0,selector:function(t){return t.find('ul[role="tablist"]')},snippet:'<tab id="linkedResourcesTab_{{basicData.id}}" heading="Gans doller tab"> gans dolle tab inhalt</ntt-ticket-gtw></tab>',outerHTML:""}]}}},{key:"templates",value:function(){return[{},{},{template:"views/ticket/ticket-gtw-panel.html"},{template:"views/ticket/ticket-gtw-item.html"},{template:"views/ticket/ticket-gtw-item-dialog.html"},{template:"views/ticket/ticket-gtw-details.html"},{template:"views/ticket/ticket-gtw-item-interface.html"}]}},{key:"i18nLocales",value:function(){return{de:["i18n/ntt-resources-locale_de.json"],en:["i18n/ntt-resources-locale_en.json"]}}}])&&i(r.prototype,n),c&&i(r,c),e}();ntt.smartit.api.nttSmartitModules.push(new c)},function(t,e,r){var n=r(4);"string"==typeof n&&(n=[[t.i,n,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};r(6)(n,i);n.locals&&(t.exports=n.locals)},function(t,e,r){(t.exports=r(5)(!1)).push([t.i,".test {\r\n color:red;\r\n}\r\n\r\n.gtw_row_container {\r\n border-style: solid;\r\n border-color: gray;\r\n margin: 5px;\r\n}\r\n\r\n.gtw_row_div {\r\n border-style: solid;\r\n border-color: gray;\r\n float:left;\r\n width:150px;\r\n height:100%;\r\n}\r\n\r\n.gtw_label label {\r\n font-size: 14px;\r\n color:#00a79d;\r\n}\r\n\r\n.label__text_ntt {\r\n font-size: 14px;\r\n color:#00a79d;\r\n}\r\n\r\n.expand_header-ntt {\r\n outline: none;\r\n /*cursor: pointer;*/\r\n display: inline-block;\r\n padding: 0;\r\n font-size: 17px;\r\n color: #666666;\r\n width:100%;\r\n /* width: auto; */\r\n /* text-align: center; */\r\n\r\n}\r\n\r\n.profile-relation__item-ntt {\r\n font-size: 14px;\r\n color: #999999;\r\n /* cursor: pointer; */\r\n padding: 24px 20px 20px 0;\r\n position: relative;\r\n}\r\n\r\n.profile-relation__item-ntt-task {\r\n border: 1px solid #d9d9d9;\r\n margin: 10px 20px;\r\n padding: 0px;\r\n}\r\n\r\n.profile-relation__item-gtw-details {\r\n margin-left: 85px;\r\n min-height: 45px;\r\n}\r\n\r\n.profile-relation__item-gtw-icon {\r\n width: 50px;\r\n float: left;\r\n font-size: 24px;\r\n color: #333333;\r\n text-align: center;\r\n padding-top: 2px;\r\n}\r\n\r\n\r\n.profile-relation__item-gtw-col2 {\r\n width: 0 auto;\r\n padding-left: 0px;\r\n color: #333333;\r\n left: 31px;\r\n align-content: center;\r\n}\r\n\r\n.profile-action-bar-gtw__item {\r\n outline: none;\r\n cursor: pointer;\r\n display: inline-block;\r\n padding: 0;\r\n font-size: 14px;\r\n color: #666666;\r\n width: auto;\r\n text-align: center;\r\n margin-left:5px;\r\n}\r\n\r\n.ntt-action-header {\r\n margin-top:10px;\r\n margin-right:25px;\r\n float: right;\r\n}\r\n\r\n",""])},function(t,e,r){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var r=function(t,e){var r=t[1]||"",n=t[3];if(!n)return r;if(e&&"function"==typeof btoa){var i=(a=n,u=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),c="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(u),"/*# ".concat(c," */")),o=n.sources.map(function(t){return"/*# sourceURL=".concat(n.sourceRoot).concat(t," */")});return[r].concat(o).concat([i]).join("\n")}var a,u,c;return[r].join("\n")}(e,t);return e[2]?"@media ".concat(e[2],"{").concat(r,"}"):r}).join("")},e.i=function(t,r){"string"==typeof t&&(t=[[null,t,""]]);for(var n={},i=0;i<this.length;i++){var o=this[i][0];null!=o&&(n[o]=!0)}for(var a=0;a<t.length;a++){var u=t[a];null!=u[0]&&n[u[0]]||(r&&!u[2]?u[2]=r:r&&(u[2]="(".concat(u[2],") and (").concat(r,")")),e.push(u))}},e}},function(t,e,r){var n,i,o={},a=(n=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===i&&(i=n.apply(this,arguments)),i}),u=function(t){var e={};return function(t,r){if("function"==typeof t)return t();if(void 0===e[t]){var n=function(t,e){return e?e.querySelector(t):document.querySelector(t)}.call(this,t,r);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}e[t]=n}return e[t]}}(),c=null,s=0,l=[],f=r(7);function p(t,e){for(var r=0;r<t.length;r++){var n=t[r],i=o[n.id];if(i){i.refs++;for(var a=0;a<i.parts.length;a++)i.parts[a](n.parts[a]);for(;a<n.parts.length;a++)i.parts.push(y(n.parts[a],e))}else{var u=[];for(a=0;a<n.parts.length;a++)u.push(y(n.parts[a],e));o[n.id]={id:n.id,refs:1,parts:u}}}}function d(t,e){for(var r=[],n={},i=0;i<t.length;i++){var o=t[i],a=e.base?o[0]+e.base:o[0],u={css:o[1],media:o[2],sourceMap:o[3]};n[a]?n[a].parts.push(u):r.push(n[a]={id:a,parts:[u]})}return r}function h(t,e){var r=u(t.insertInto);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var n=l[l.length-1];if("top"===t.insertAt)n?n.nextSibling?r.insertBefore(e,n.nextSibling):r.appendChild(e):r.insertBefore(e,r.firstChild),l.push(e);else if("bottom"===t.insertAt)r.appendChild(e);else{if("object"!=typeof t.insertAt||!t.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var i=u(t.insertAt.before,r);r.insertBefore(e,i)}}function g(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t);var e=l.indexOf(t);e>=0&&l.splice(e,1)}function m(t){var e=document.createElement("style");if(void 0===t.attrs.type&&(t.attrs.type="text/css"),void 0===t.attrs.nonce){var n=function(){0;return r.nc}();n&&(t.attrs.nonce=n)}return v(e,t.attrs),h(t,e),e}function v(t,e){Object.keys(e).forEach(function(r){t.setAttribute(r,e[r])})}function y(t,e){var r,n,i,o;if(e.transform&&t.css){if(!(o="function"==typeof e.transform?e.transform(t.css):e.transform.default(t.css)))return function(){};t.css=o}if(e.singleton){var a=s++;r=c||(c=m(e)),n=k.bind(null,r,a,!1),i=k.bind(null,r,a,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(r=function(t){var e=document.createElement("link");return void 0===t.attrs.type&&(t.attrs.type="text/css"),t.attrs.rel="stylesheet",v(e,t.attrs),h(t,e),e}(e),n=function(t,e,r){var n=r.css,i=r.sourceMap,o=void 0===e.convertToAbsoluteUrls&&i;(e.convertToAbsoluteUrls||o)&&(n=f(n));i&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */");var a=new Blob([n],{type:"text/css"}),u=t.href;t.href=URL.createObjectURL(a),u&&URL.revokeObjectURL(u)}.bind(null,r,e),i=function(){g(r),r.href&&URL.revokeObjectURL(r.href)}):(r=m(e),n=function(t,e){var r=e.css,n=e.media;n&&t.setAttribute("media",n);if(t.styleSheet)t.styleSheet.cssText=r;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(r))}}.bind(null,r),i=function(){g(r)});return n(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;n(t=e)}else i()}}t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(e=e||{}).attrs="object"==typeof e.attrs?e.attrs:{},e.singleton||"boolean"==typeof e.singleton||(e.singleton=a()),e.insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var r=d(t,e);return p(r,e),function(t){for(var n=[],i=0;i<r.length;i++){var a=r[i];(u=o[a.id]).refs--,n.push(u)}t&&p(d(t,e),e);for(i=0;i<n.length;i++){var u;if(0===(u=n[i]).refs){for(var c=0;c<u.parts.length;c++)u.parts[c]();delete o[u.id]}}}};var b,w=(b=[],function(t,e){return b[t]=e,b.filter(Boolean).join("\n")});function k(t,e,r,n){var i=r?"":n.css;if(t.styleSheet)t.styleSheet.cssText=w(e,i);else{var o=document.createTextNode(i),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(o,a[e]):t.appendChild(o)}}},function(t,e){t.exports=function(t){var e="undefined"!=typeof window&&window.location;if(!e)throw new Error("fixUrls requires window.location");if(!t||"string"!=typeof t)return t;var r=e.protocol+"//"+e.host,n=r+e.pathname.replace(/\/[^\/]*$/,"/");return t.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(t,e){var i,o=e.trim().replace(/^"(.*)"$/,function(t,e){return e}).replace(/^'(.*)'$/,function(t,e){return e});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(o)?t:(i=0===o.indexOf("//")?o:0===o.indexOf("/")?r+o:n+o.replace(/^\.\//,""),"url("+JSON.stringify(i)+")")})}},function(t,e){angular.module("ticketModule").directive("nttTicketGtw",["ticketModel","relationModel","userModel","$q","$filter","$modal","events","$timeout","$state","i18nService","systemAlertService","objectValueMapperService","nttevents",function(t,e,r,n,i,o,a,u,c,s,l,f,p){return{restrict:"E",templateUrl:"views/ticket/ticket-gtw-panel.html",link:function(t,e,r){t.selectItem=function(e){t.selectedOption=e,t.$broadcast("GroupByChanged",t.selectedOption)},t.refreshGtwDetails=function(){t.$broadcast(p.REFRESH_GTW_PANEL)}},controller:["$element","$attrs","$scope",function(t,e,r){r.heading=0,r.groupByOptions=[{index:0,value:"category",label:s.getLocalizedString("ntt.grouby.selection.category")},{index:1,value:"actionType",label:s.getLocalizedString("ntt.grouby.selection.actiontype")}],r.selectedOption=r.groupByOptions[0]}]}}])},function(t,e){angular.module("ticketModule").directive("nttTicketGtwItem",["ticketModel","relationModel","userModel","$q","$filter","$modal","nttevents","$timeout","$state","i18nService","systemAlertService","objectValueMapperService","nttGenericService",function(t,e,r,n,i,o,a,u,c,s,l,f,p){return{restrict:"E",templateUrl:"views/ticket/ticket-gtw-item.html",scope:{ticket:"=",field:"=",gtwTicketData:"="},link:function(t,e,r){t.processing=!1,t.onEdit=function(){t.editMode=!0},t.onCancelClick=function(){t.editMode=!1,t.processing=!1,t.showError=!1,t.$broadcast(a.DISCARD_ITEM_NTT)},t.onSaveClick=function(e){(void 0!==e.item.value&&""!=e.item.value||1!=e.item.isRequired)&&t.updateGtwEntry(e.item)},t.updateGtwEntry=function(e){t.processing=!0;var r=[];r.push({fieldId:e.targetFieldId,value:e.value});e.entryId;p.updateArEntriesByFormAndQual({form:"ITSM:GTW_SHR_TicketAction",entryId:e.entryId},r).$promise.then(t.updateSuccess,t.updateError)},t.updateSuccess=function(e){t.editMode=!1,t.processing=!1,t.$broadcast(a.SAVE_ITEM_NTT)},t.updateError=function(e){t.showError=!0,t.errorTxt=e.data.additionalMessage,t.editMode=!0,t.processing=!1}}}}])},function(t,e){angular.module("ticketModule").directive("nttTicketGtwItemDialog",["nttevents","nttMidTierModal","ModuleConfigService",function(t,e,r){return{restrict:"E",templateUrl:"views/ticket/ticket-gtw-item-dialog.html",scope:{ticket:"=",field:"=",gtwTicketData:"="},link:function(n,i,o){n.processing=!1,n.onEdit=function(){n.editMode=!0},n.onOpenDialog=function(i){var o={70009001:i.item.assocId,70009179:i.item.assocInstanceId,10007300:i.gtwTicketData.schemaName,10007301:i.gtwTicketData.ticketId,10007302:i.gtwTicketData.ticketInstanceId,10000006:i.gtwTicketData.rootRequestId,10000000:i.gtwTicketData.rootRequestInstanceId,10000001:i.gtwTicketData.rootRequestName,10000005:i.gtwTicketData.rootRequestFormName,70008001:i.item.actionId,70008179:i.item.actionInstanceId,70007179:i.item.templateInstanceId,70007001:i.item.templateId,1000000182:i.gtwTicketData.ticketId,smitmode:"true"},a=r.getModuleConfig("gtw").DialogMidTierURL,u=r.getModuleConfig("gtw").DialogArServer,c=r.getModuleConfig("gtw").DialogUsername,s=r.getModuleConfig("gtw").DialogPassword,l="Closed"!=n.ticket.status.value?i.item.dialogFormView:i.item.dialogFormViewClosed;l||(l=i.item.dialogFormView),e.openMidTierModalWindow(a,u,i.item.dialogForm,l,o,"DIALOG",c,s).result.then(function(e){n.$emit(t.REFRESH_GTW_PANEL)})}}}}])},function(t,e){angular.module("ticketModule").directive("nttTicketGtwItemInterface",["nttevents","nttMidTierModal","ModuleConfigService",function(t,e,r){return{restrict:"E",templateUrl:"views/ticket/ticket-gtw-item-interface.html",scope:{ticket:"=",field:"=",gtwTicketData:"="},link:function(n,i,o){n.processing=!1,n.onEdit=function(){n.editMode=!0},n.onOpenDialog=function(i){var o={1:i.item.interfaceEntryId,179:i.item.interfaceInstanceId,smitmode:"true"},a=r.getModuleConfig("gtw").DialogMidTierURL,u=r.getModuleConfig("gtw").DialogArServer,c=r.getModuleConfig("gtw").DialogUsername,s=r.getModuleConfig("gtw").DialogPassword;e.openMidTierModalWindow(a,u,i.item.interfaceForm,i.item.interfaceFormView,o,"DIALOG",c,s).result.then(function(e){n.$emit(t.REFRESH_GTW_PANEL)})}}}}])},function(t,e){angular.module("ticketModule").directive("nttTicketGtwDetails",["ticketModel","relationModel","userModel","$q","$filter","$modal","events","$timeout","$state","i18nService","systemAlertService","objectValueMapperService",function(t,e,r,n,i,o,a,u,c,s,l,f){return{scope:{groupBy:"=",ticket:"=",heading:"="},restrict:"E",templateUrl:"views/ticket/ticket-gtw-details.html",controller:"gtwController"}}])},function(t,e,r){"use strict";r.r(e);var n=r(0);r(14);angular.module("ticketModule").controller("gtwController",["$scope","nttGenericService","nttevents","ModuleConfigService",function(t,e,r,i){t.state={},t.showDialoge=void 0===i.getModuleConfig("gtw").ShowDialoge||i.getModuleConfig("gtw").ShowDialoge;var o=function(r){var i={1000:"char",2000:"integer",3000:"decimal",4000:"real",5000:"datetime",6000:"date",7000:"time",8000:"dynmenu",9000:"staticmenu",10000:"attach",11000:"richtxt"},o={1000:"Variable",2000:"Dialog",3000:"Interface"},a={name:"200000020.value",label:"200000020.value",entryId:"1.value",category:function(t){return void 0===t[700001002].value?"not-defined":t[700001002].value},actionType:function(t){return o[t[700025e3].value]},dataType:function(t){return 1e3!=t[700025e3].value?o[t[700025e3].value]:i[t[700025102].value]},value:function(t,n,o){switch(i[t[700025102].value]){case"char":o.targetFieldId=700055101;var a=r.items.fieldinfo.find(function(t){return t[700055101]})[700055101];return o.charLimit=a.max,t[700055101].value;case"integer":o.targetFieldId=700055103;a=r.items.fieldinfo.find(function(t){return t[700055103]})[700055103];return o.max=a.max,o.min=a.min,t[700055103].value;case"decimal":o.targetFieldId=700055104;a=r.items.fieldinfo.find(function(t){return t[700055104]})[700055104];return o.precision=a.precision,o.max=a.max,o.min=a.min,t[700055104].value;case"real":o.targetFieldId=700055105;a=r.items.fieldinfo.find(function(t){return t[700055105]})[700055105];return o.precision=a.precision,o.max=a.max,o.min=a.min,t[700055105].value;case"datetime":return o.targetFieldId=700055106,void 0!==t[700055106].value?DayPilot.Date(t[700055106].value).d:t[700055106].value;case"date":return o.targetFieldId=700055107,void 0!==t[700055107].value?DayPilot.Date(t[700055107].value).d:null;case"time":return o.targetFieldId=700055108,void 0!==t[700055108].value?moment(t[700055108].value,"HH:mm:ss").toDate():null;case"staticmenu":return o.targetFieldId=700055102,o.isSelectionField=function(){return!1},o.isDropdownField=function(){return!0},o.isRadioField=function(){return!1},o.getValue=function(){return 0},o.setOptionsPromise=e.getArEntriesByFormAndQual({form:"ITSM:GTW_CFG_TemplateAction_StaticMenu",qual:"'70008179'=\""+t[70008179].value+'"',fields:[303815100,303815700]}).$promise,t[700055100].value;case"dynmenu":return o.targetFieldId=700055102,o.isSelectionField=function(){return!1},o.isDropdownField=function(){return!0},o.isRadioField=function(){return!1},o.getValue=function(){return 0},o.setOptionsPromise=e.getMenuItemsByName({menuname:t[700025107].value}).$promise,t[700055100].value;case"richtxt":return o.targetFieldId=700055111,t[700055111].value;default:return o.notImplemented=!0,null}},notImplemented:function(t){if(1e3!=t[700025e3].value)return!1},isRequired:function(t){return 2e3==t[70006001].value},isDisplayOnly:function(t){return 1e3==t[70006003].value},isReadOnly:function(t){return 1e3==t[70006003].value},isHidden:function(t){return 1e3==t[70006002].value},ootb:!0,dialogForm:"700025201.value",dialogFormView:function(t){return void 0!==t[700025205].value?t[700025205].value:t[700025202].value},dialogFormViewClosed:"700025206.value",interfaceForm:"700025301.value",interfaceFormView:function(t){return void 0!==t[700025308].value?t[700025308].value:t[700025304].value},interfaceEntryId:"700025302.value",interfaceInstanceId:"700025303.value",actionId:"70008001.value",actionInstanceId:"70008179.value",assocId:"70009001.value",assocInstanceId:"70009179.value",templateInstanceId:"70007179.value",templateId:"70007001.value"};t.gtwData=Object(n.morphism)(a,r.items.entries);var u=Object(n.morphism)({schemaName:"10007300.value",ticketId:"1000000182.value",ticketEntryId:"10007301.value",ticketInstanceId:"10007302.value",rootRequestId:"10000006.value",rootRequestInstanceId:"10000000.value",rootRequestName:"10000001.value",rootRequestFormName:"10000005.value"},r.items.entries[0]);t.heading=r.items.entries.length,t.gtwFields=_.groupBy(t.gtwData,t.groupBy),t.gtwFields=Object.keys(t.gtwFields).sort().reduce(function(e,r){return e[r]=t.gtwFields[r],e},{}),t.gtwTicketData=u,t.state.processing=!1};t.$watch("ticket.displayId",function(e,r){e!=r&&void 0!==e&&t.refreshGTWPanel()}),t.$on(r.REFRESH_GTW_PANEL,function(e,r){t.refreshGTWPanel()}),t.refreshGTWPanel=function(){t.state.processing=!0;var r="'1000000182'=\""+t.ticket.displayId+"\" AND '70006002' != 1000";t.showDialoge||(r+=" AND ('700025000' = 1000)"),e.getArEntriesByFormAndQual({form:"ITSM:GTW_SHR_TicketAction",qual:r,fields:[200000020,700055100,700055100,700055101,700025102,700055103,700055104,700055105,700055106,700055107,700055108,70008179,700025103,700055111,700001002,700025e3,700025201,700025205,10007300,1000000182,10007301,10007302,10000006,1e7,10000001,10000005,70007001,70008179,70008001,70009001,70009179,70007179,70007001,700025202,700025301,700025308,700025304,700025302,700025303,700025107,700025206,70006001,70006003,70006002]}).$promise.then(o)},t.removeItem=function(t){},t.$on(r.SAVE_ITEM_NTT,function(e,r){t.updateGtwEntry(r.item)}),t.$on("GroupByChanged",function(e,r){t.state.processing=!0,t.gtwFields=_.groupBy(t.gtwData,r.value),t.state.processing=!1}),t.updateGtwEntry=function(t){var r=[];r.push({fieldId:t.targetFieldId,value:t.value});t.entryId;e.updateArEntriesByFormAndQual({form:"ITSM:GTW_SHR_TicketAction",entryId:t.entryId},r).$promise.then(o)},t.expand=function(e){void 0===t[e]&&(t[e]=!1),0==t[e]?t[e]=!0:t[e]=!1},void 0!==t.ticket.displayId&&t.refreshGTWPanel(),t.toggleClass=function(e){return 0==t[e]||void 0===t[e]?"icon-triangle_right":"icon-triangle_down"},t.getToggleState=function(e){return t[e]}}])},function(t,e,r){"use strict";t.exports=r(15)},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var i,o=r(16),a=r(23);function u(t,e,r){return void 0===r&&(r=e,e=i),void 0===e&&(e={}),function t(e,r,i,u){var c,s;return u.length?(c=u.splice(0,1)[0],i.hasOwnProperty(c)?(s=i[c],r=function t(e,r,i,u){var c,s,l,f=null;Array.isArray(u)&&u.length&&(u=u.slice(),s=u.splice(1),u=u[0]);p=u,"object"!==n(p)||Array.isArray(p)||null===p||(f=u.default||null,l=u.transform,u=u.key);var p;Array.isArray(u)&&(l=u[1],f=u[2]||null,u=u[0]);"function"==typeof f&&(f=f(e,r,i,u));c=o(e,r);null==c&&(c=f);void 0!==c&&"function"==typeof l&&(c=l(c,e,i,r,u));if(void 0===c||void 0===u)return i;i=a(i,u,c);Array.isArray(s)&&s.length&&(i=t(e,r,i,s));return i}(e,c,r,s)):r=null,t(e,r,i,u)):r}(t,e,r,Object.keys(r))}t.exports=u,t.exports.merge=u,t.exports.getKeyValue=o,t.exports.setKeyValue=a},function(t,e,r){"use strict";var n=r(17);function i(t,e,r){var n,a,u,c=/(\[\]|\[(.*)\])$/g,s=!1;if(t)return(n=c.exec(e))&&(s=""!==(e=e.replace(c,"")),a=n[2]),0===r.length?u=s?void 0===a||void 0===t[e]?t[e]:t[e][a]:Array.isArray(t)?""===e?void 0===a?t:t[a]:t.map(function(t){return t[e]}):void 0===t[e]?o(t,e,r):t[e]:s?u=Array.isArray(t[e])?void 0===a?t[e].map(function(t){return i(t,r[0],r.slice(1))}):i(t[e][a],r[0],r.slice(1)):i(void 0===a?t[e]:t[e][a],r[0],r.slice(1)):Array.isArray(t)?(u=""===e?i(void 0===a?t:t[a],r[0],r.slice(1)):t.map(function(t){u=i(t,r[0],r.slice(1))}),u=void 0===a?t.map(function(t){return i(t,r[0],r.slice(1))}):i(t[a],r[0],r.slice(1))):u=void 0===t[e]?o(t,e,r):i(t[e],r[0],r.slice(1)),u}function o(t,e,r){for(var o=Object.keys(t),a=[],u=0;u<o.length;u++){var c=o[u];if(n(c,e)){var s=r.length?i(t[c],r[0],r.slice(1)):t[c];void 0!==s&&a.push(s)}}return a.length?a:void 0}t.exports=function(t,e){for(var r,n,o,a=[],u=e.split(/([^\\])(\\\\)*\./g),c=0;c<u.length;c++){if((c-1)%3==0){var s=u[c-1]+u[c];u[c+1]&&(s+=u[c+1]),a.push(s.replace(/\\\./g,"."))}c===u.length-1&&a.push(u[c].replace(/\\\./g,"."))}return r=(u=a).splice(0,1),null!=(o=e.match(/.+(\[\])/g))&&o[0]===e?e=e.slice(0,-2):o=null,n=i(t,r[0],u),Array.isArray(n)&&!o&&(n.length&&(n=n.reduce(function(t,e){return Array.isArray(t)&&Array.isArray(e)?t.concat(e):Array.isArray(t)?(t.push(e),t):[t,e]})),Array.isArray(n)||(n=[n])),n}},function(t,e,r){t.exports=h,h.Minimatch=g;var n={sep:"/"};try{n=r(18)}catch(t){}var i=h.GLOBSTAR=g.GLOBSTAR={},o=r(20),a={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},u="[^/]",c=u+"*?",s="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",l="(?:(?!(?:\\/|^)\\.).)*?",f="().*{}+?[]^$\\!".split("").reduce(function(t,e){return t[e]=!0,t},{});var p=/\/+/;function d(t,e){t=t||{},e=e||{};var r={};return Object.keys(e).forEach(function(t){r[t]=e[t]}),Object.keys(t).forEach(function(e){r[e]=t[e]}),r}function h(t,e,r){if("string"!=typeof e)throw new TypeError("glob pattern string required");return r||(r={}),!(!r.nocomment&&"#"===e.charAt(0))&&(""===e.trim()?""===t:new g(e,r).match(t))}function g(t,e){if(!(this instanceof g))return new g(t,e);if("string"!=typeof t)throw new TypeError("glob pattern string required");e||(e={}),t=t.trim(),"/"!==n.sep&&(t=t.split(n.sep).join("/")),this.options=e,this.set=[],this.pattern=t,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.make()}function m(t,e){if(e||(e=this instanceof g?this.options:{}),void 0===(t=void 0===t?this.pattern:t))throw new TypeError("undefined pattern");return e.nobrace||!t.match(/\{.*\}/)?[t]:o(t)}h.filter=function(t,e){return e=e||{},function(r,n,i){return h(r,t,e)}},h.defaults=function(t){if(!t||!Object.keys(t).length)return h;var e=h,r=function(r,n,i){return e.minimatch(r,n,d(t,i))};return r.Minimatch=function(r,n){return new e.Minimatch(r,d(t,n))},r},g.defaults=function(t){return t&&Object.keys(t).length?h.defaults(t).Minimatch:g},g.prototype.debug=function(){},g.prototype.make=function(){if(this._made)return;var t=this.pattern,e=this.options;if(!e.nocomment&&"#"===t.charAt(0))return void(this.comment=!0);if(!t)return void(this.empty=!0);this.parseNegate();var r=this.globSet=this.braceExpand();e.debug&&(this.debug=console.error);this.debug(this.pattern,r),r=this.globParts=r.map(function(t){return t.split(p)}),this.debug(this.pattern,r),r=r.map(function(t,e,r){return t.map(this.parse,this)},this),this.debug(this.pattern,r),r=r.filter(function(t){return-1===t.indexOf(!1)}),this.debug(this.pattern,r),this.set=r},g.prototype.parseNegate=function(){var t=this.pattern,e=!1,r=this.options,n=0;if(r.nonegate)return;for(var i=0,o=t.length;i<o&&"!"===t.charAt(i);i++)e=!e,n++;n&&(this.pattern=t.substr(n));this.negate=e},h.braceExpand=function(t,e){return m(t,e)},g.prototype.braceExpand=m,g.prototype.parse=function(t,e){if(t.length>65536)throw new TypeError("pattern is too long");var r=this.options;if(!r.noglobstar&&"**"===t)return i;if(""===t)return"";var n,o="",s=!!r.nocase,l=!1,p=[],d=[],h=!1,g=-1,m=-1,y="."===t.charAt(0)?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",b=this;function w(){if(n){switch(n){case"*":o+=c,s=!0;break;case"?":o+=u,s=!0;break;default:o+="\\"+n}b.debug("clearStateChar %j %j",n,o),n=!1}}for(var k,A=0,x=t.length;A<x&&(k=t.charAt(A));A++)if(this.debug("%s\t%s %s %j",t,A,o,k),l&&f[k])o+="\\"+k,l=!1;else switch(k){case"/":return!1;case"\\":w(),l=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s\t%s %s %j <-- stateChar",t,A,o,k),h){this.debug(" in class"),"!"===k&&A===m+1&&(k="^"),o+=k;continue}b.debug("call clearStateChar %j",n),w(),n=k,r.noext&&w();continue;case"(":if(h){o+="(";continue}if(!n){o+="\\(";continue}p.push({type:n,start:A-1,reStart:o.length,open:a[n].open,close:a[n].close}),o+="!"===n?"(?:(?!(?:":"(?:",this.debug("plType %j %j",n,o),n=!1;continue;case")":if(h||!p.length){o+="\\)";continue}w(),s=!0;var S=p.pop();o+=S.close,"!"===S.type&&d.push(S),S.reEnd=o.length;continue;case"|":if(h||!p.length||l){o+="\\|",l=!1;continue}w(),o+="|";continue;case"[":if(w(),h){o+="\\"+k;continue}h=!0,m=A,g=o.length,o+=k;continue;case"]":if(A===m+1||!h){o+="\\"+k,l=!1;continue}if(h){var j=t.substring(m+1,A);try{RegExp("["+j+"]")}catch(t){var O=this.parse(j,v);o=o.substr(0,g)+"\\["+O[0]+"\\]",s=s||O[1],h=!1;continue}}s=!0,h=!1,o+=k;continue;default:w(),l?l=!1:!f[k]||"^"===k&&h||(o+="\\"),o+=k}h&&(j=t.substr(m+1),O=this.parse(j,v),o=o.substr(0,g)+"\\["+O[0],s=s||O[1]);for(S=p.pop();S;S=p.pop()){var T=o.slice(S.reStart+S.open.length);this.debug("setting tail",o,S),T=T.replace(/((?:\\{2}){0,64})(\\?)\|/g,function(t,e,r){return r||(r="\\"),e+e+r+"|"}),this.debug("tail=%j\n %s",T,T,S,o);var M="*"===S.type?c:"?"===S.type?u:"\\"+S.type;s=!0,o=o.slice(0,S.reStart)+M+"\\("+T}w(),l&&(o+="\\\\");var I=!1;switch(o.charAt(0)){case".":case"[":case"(":I=!0}for(var E=d.length-1;E>-1;E--){var P=d[E],_=o.slice(0,P.reStart),R=o.slice(P.reStart,P.reEnd-8),D=o.slice(P.reEnd-8,P.reEnd),C=o.slice(P.reEnd);D+=C;var $=_.split("(").length-1,F=C;for(A=0;A<$;A++)F=F.replace(/\)[+*?]?/,"");var L="";""===(C=F)&&e!==v&&(L="$");var G=_+R+C+L+D;o=G}""!==o&&s&&(o="(?=.)"+o);I&&(o=y+o);if(e===v)return[o,s];if(!s)return function(t){return t.replace(/\\(.)/g,"$1")}(t);var N=r.nocase?"i":"";try{var U=new RegExp("^"+o+"$",N)}catch(t){return new RegExp("$.")}return U._glob=t,U._src=o,U};var v={};h.makeRe=function(t,e){return new g(t,e||{}).makeRe()},g.prototype.makeRe=function(){if(this.regexp||!1===this.regexp)return this.regexp;var t=this.set;if(!t.length)return this.regexp=!1,this.regexp;var e=this.options,r=e.noglobstar?c:e.dot?s:l,n=e.nocase?"i":"",o=t.map(function(t){return t.map(function(t){return t===i?r:"string"==typeof t?function(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}(t):t._src}).join("\\/")}).join("|");o="^(?:"+o+")$",this.negate&&(o="^(?!"+o+").*$");try{this.regexp=new RegExp(o,n)}catch(t){this.regexp=!1}return this.regexp},h.match=function(t,e,r){var n=new g(e,r=r||{});return t=t.filter(function(t){return n.match(t)}),n.options.nonull&&!t.length&&t.push(e),t},g.prototype.match=function(t,e){if(this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return""===t;if("/"===t&&e)return!0;var r=this.options;"/"!==n.sep&&(t=t.split(n.sep).join("/"));t=t.split(p),this.debug(this.pattern,"split",t);var i,o,a=this.set;for(this.debug(this.pattern,"set",a),o=t.length-1;o>=0&&!(i=t[o]);o--);for(o=0;o<a.length;o++){var u=a[o],c=t;r.matchBase&&1===u.length&&(c=[i]);var s=this.matchOne(c,u,e);if(s)return!!r.flipNegate||!this.negate}return!r.flipNegate&&this.negate},g.prototype.matchOne=function(t,e,r){var n=this.options;this.debug("matchOne",{this:this,file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(var o=0,a=0,u=t.length,c=e.length;o<u&&a<c;o++,a++){this.debug("matchOne loop");var s,l=e[a],f=t[o];if(this.debug(e,l,f),!1===l)return!1;if(l===i){this.debug("GLOBSTAR",[e,l,f]);var p=o,d=a+1;if(d===c){for(this.debug("** at the end");o<u;o++)if("."===t[o]||".."===t[o]||!n.dot&&"."===t[o].charAt(0))return!1;return!0}for(;p<u;){var h=t[p];if(this.debug("\nglobstar while",t,p,e,d,h),this.matchOne(t.slice(p),e.slice(d),r))return this.debug("globstar found match!",p,u,h),!0;if("."===h||".."===h||!n.dot&&"."===h.charAt(0)){this.debug("dot detected!",t,p,e,d);break}this.debug("globstar swallow a segment, and continue"),p++}return!(!r||(this.debug("\n>>> no match, partial?",t,p,e,d),p!==u))}if("string"==typeof l?(s=n.nocase?f.toLowerCase()===l.toLowerCase():f===l,this.debug("string match",l,f,s)):(s=f.match(l),this.debug("pattern match",l,f,s)),!s)return!1}if(o===u&&a===c)return!0;if(o===u)return r;if(a===c)return o===u-1&&""===t[o];throw new Error("wtf?")}},function(t,e,r){(function(t){function r(t,e){for(var r=0,n=t.length-1;n>=0;n--){var i=t[n];"."===i?t.splice(n,1):".."===i?(t.splice(n,1),r++):r&&(t.splice(n,1),r--)}if(e)for(;r--;r)t.unshift("..");return t}var n=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,i=function(t){return n.exec(t).slice(1)};function o(t,e){if(t.filter)return t.filter(e);for(var r=[],n=0;n<t.length;n++)e(t[n],n,t)&&r.push(t[n]);return r}e.resolve=function(){for(var e="",n=!1,i=arguments.length-1;i>=-1&&!n;i--){var a=i>=0?arguments[i]:t.cwd();if("string"!=typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(e=a+"/"+e,n="/"===a.charAt(0))}return(n?"/":"")+(e=r(o(e.split("/"),function(t){return!!t}),!n).join("/"))||"."},e.normalize=function(t){var n=e.isAbsolute(t),i="/"===a(t,-1);return(t=r(o(t.split("/"),function(t){return!!t}),!n).join("/"))||n||(t="."),t&&i&&(t+="/"),(n?"/":"")+t},e.isAbsolute=function(t){return"/"===t.charAt(0)},e.join=function(){var t=Array.prototype.slice.call(arguments,0);return e.normalize(o(t,function(t,e){if("string"!=typeof t)throw new TypeError("Arguments to path.join must be strings");return t}).join("/"))},e.relative=function(t,r){function n(t){for(var e=0;e<t.length&&""===t[e];e++);for(var r=t.length-1;r>=0&&""===t[r];r--);return e>r?[]:t.slice(e,r-e+1)}t=e.resolve(t).substr(1),r=e.resolve(r).substr(1);for(var i=n(t.split("/")),o=n(r.split("/")),a=Math.min(i.length,o.length),u=a,c=0;c<a;c++)if(i[c]!==o[c]){u=c;break}var s=[];for(c=u;c<i.length;c++)s.push("..");return(s=s.concat(o.slice(u))).join("/")},e.sep="/",e.delimiter=":",e.dirname=function(t){var e=i(t),r=e[0],n=e[1];return r||n?(n&&(n=n.substr(0,n.length-1)),r+n):"."},e.basename=function(t,e){var r=i(t)[2];return e&&r.substr(-1*e.length)===e&&(r=r.substr(0,r.length-e.length)),r},e.extname=function(t){return i(t)[3]};var a="b"==="ab".substr(-1)?function(t,e,r){return t.substr(e,r)}:function(t,e,r){return e<0&&(e=t.length+e),t.substr(e,r)}}).call(this,r(19))},function(t,e){var r,n,i=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function u(t){if(r===setTimeout)return setTimeout(t,0);if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(t,0);try{return r(t,0)}catch(e){try{return r.call(null,t,0)}catch(e){return r.call(this,t,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:o}catch(t){r=o}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(t){n=a}}();var c,s=[],l=!1,f=-1;function p(){l&&c&&(l=!1,c.length?s=c.concat(s):f=-1,s.length&&d())}function d(){if(!l){var t=u(p);l=!0;for(var e=s.length;e;){for(c=s,s=[];++f<e;)c&&c[f].run();f=-1,e=s.length}c=null,l=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(t)}}function h(t,e){this.fun=t,this.array=e}function g(){}i.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];s.push(new h(t,e)),1!==s.length||l||u(d)},h.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=g,i.addListener=g,i.once=g,i.off=g,i.removeListener=g,i.removeAllListeners=g,i.emit=g,i.prependListener=g,i.prependOnceListener=g,i.listeners=function(t){return[]},i.binding=function(t){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(t){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(t,e,r){var n=r(21),i=r(22);t.exports=function(t){if(!t)return[];"{}"===t.substr(0,2)&&(t="\\{\\}"+t.substr(2));return function t(e,r){var o=[];var a=i("{","}",e);if(!a||/\$$/.test(a.pre))return[e];var c=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(a.body);var s=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(a.body);var f=c||s;var m=a.body.indexOf(",")>=0;if(!f&&!m)return a.post.match(/,.*\}/)?(e=a.pre+"{"+a.body+u+a.post,t(e)):[e];var v;if(f)v=a.body.split(/\.\./);else if(1===(v=function t(e){if(!e)return[""];var r=[];var n=i("{","}",e);if(!n)return e.split(",");var o=n.pre;var a=n.body;var u=n.post;var c=o.split(",");c[c.length-1]+="{"+a+"}";var s=t(u);u.length&&(c[c.length-1]+=s.shift(),c.push.apply(c,s));r.push.apply(r,c);return r}(a.body)).length&&1===(v=t(v[0],!1).map(p)).length){var y=a.post.length?t(a.post,!1):[""];return y.map(function(t){return a.pre+v[0]+t})}var b=a.pre;var y=a.post.length?t(a.post,!1):[""];var w;if(f){var k=l(v[0]),A=l(v[1]),x=Math.max(v[0].length,v[1].length),S=3==v.length?Math.abs(l(v[2])):1,j=h,O=A<k;O&&(S*=-1,j=g);var T=v.some(d);w=[];for(var M=k;j(M,A);M+=S){var I;if(s)"\\"===(I=String.fromCharCode(M))&&(I="");else if(I=String(M),T){var E=x-I.length;if(E>0){var P=new Array(E+1).join("0");I=M<0?"-"+P+I.slice(1):P+I}}w.push(I)}}else w=n(v,function(e){return t(e,!1)});for(var _=0;_<w.length;_++)for(var R=0;R<y.length;R++){var D=b+w[_]+y[R];(!r||f||D)&&o.push(D)}return o}(function(t){return t.split("\\\\").join(o).split("\\{").join(a).split("\\}").join(u).split("\\,").join(c).split("\\.").join(s)}(t),!0).map(f)};var o="\0SLASH"+Math.random()+"\0",a="\0OPEN"+Math.random()+"\0",u="\0CLOSE"+Math.random()+"\0",c="\0COMMA"+Math.random()+"\0",s="\0PERIOD"+Math.random()+"\0";function l(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}function f(t){return t.split(o).join("\\").split(a).join("{").split(u).join("}").split(c).join(",").split(s).join(".")}function p(t){return"{"+t+"}"}function d(t){return/^-?0\d/.test(t)}function h(t,e){return t<=e}function g(t,e){return t>=e}},function(t,e){t.exports=function(t,e){for(var n=[],i=0;i<t.length;i++){var o=e(t[i],i);r(o)?n.push.apply(n,o):n.push(o)}return n};var r=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)}},function(t,e,r){"use strict";function n(t,e,r){t instanceof RegExp&&(t=i(t,r)),e instanceof RegExp&&(e=i(e,r));var n=o(t,e,r);return n&&{start:n[0],end:n[1],pre:r.slice(0,n[0]),body:r.slice(n[0]+t.length,n[1]),post:r.slice(n[1]+e.length)}}function i(t,e){var r=e.match(t);return r?r[0]:null}function o(t,e,r){var n,i,o,a,u,c=r.indexOf(t),s=r.indexOf(e,c+1),l=c;if(c>=0&&s>0){for(n=[],o=r.length;l>=0&&!u;)l==c?(n.push(l),c=r.indexOf(t,l+1)):1==n.length?u=[n.pop(),s]:((i=n.pop())<o&&(o=i,a=s),s=r.indexOf(e,l+1)),l=c<s&&c>=0?c:s;n.length&&(u=[o,a])}return u}t.exports=n,n.range=o},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}t.exports=function(t,e,r){for(var i=[],o=e.split(/([^\\])(\\\\)*\./g),a=0;a<o.length;a++){if((a-1)%3==0){var u=o[a-1]+o[a];o[a+1]&&(u+=o[a+1]),i.push(u.replace(/\\\./g,"."))}a===o.length-1&&i.push(o[a].replace(/\\\./g,"."))}return function t(e,r,i,o){var a,u,c,s,l,f,p,d=/(\[\]|\[(.*)\])$/g,h=/(\[\]|\[(.*)\]\+)$/g,g=/(\?)$/g,m=0,v=!1,y=!1;if((c=g.test(r))&&(r=r.replace(g,"")),a=d.exec(r),u=h.exec(r),a&&(v=!0,r=r.replace(d,""),y=""!==r),u&&(a=u,v=!0,y=""!==r,r=r.replace(h,"")),p=!1,null==(f=e)?p=!0:function(t){return"object"===n(t)&&!1===Array.isArray(t)&&0===Object.keys(t).length}(f)?p=!0:function(t){return Array.isArray(t)&&(0===t.length||0===t.join("").length)}(f)&&(p=!0),p?v?(m=a[2]||0,y?(e={})[r]=[]:e=[]):e={}:v&&(m=a[2]||0),0===i.length){if(!c&&null==o)return e;y?(!1===Array.isArray(e[r])&&(e[r]=[]),u?e[r].push(o):e[r][m]=o):Array.isArray(e)?e[m]=o:e[r]=o}else if(y)if(!1===Array.isArray(e[r])&&(e[r]=[]),Array.isArray(o)&&!1===function(t){return/(\[\]|\[(.*)\])$/g.test(t[0])}(i))for(s=0;s<o.length;s++)l=o[s],e[r][m+s]=t(e[r][m+s],i[0],i.slice(1),l);else e[r][m]=t(e[r][m],i[0],i.slice(1),o);else if(Array.isArray(e))if(Array.isArray(o))for(s=0;s<o.length;s++)l=o[s],e[m+s]=t(e[m+s],i[0],i.slice(1),l);else e[m]=t(e[m],i[0],i.slice(1),o);else e[r]=t(e[r],i[0],i.slice(1),o);return e}(t,(o=i).splice(0,1)[0],o,r)}},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}}])}); |