@ckeditor/ckeditor5-ai 41.0.0 → 41.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/build/ai.js +6 -6
  2. package/build/translations/it.js +1 -1
  3. package/build/translations/pt.js +1 -1
  4. package/lang/translations/he.po +1 -1
  5. package/lang/translations/it.po +16 -16
  6. package/lang/translations/pt.po +4 -4
  7. package/package.json +4 -4
  8. package/src/adapters/aiadapter.js +1 -1
  9. package/src/adapters/aitextadapter.js +1 -1
  10. package/src/adapters/awstextadapter.js +1 -1
  11. package/src/adapters/openaitextadapter.js +1 -1
  12. package/src/aiassistant.js +1 -1
  13. package/src/aiassistantediting.d.ts +5 -0
  14. package/src/aiassistantediting.js +1 -1
  15. package/src/aiassistantui.d.ts +2 -1
  16. package/src/aiassistantui.js +1 -1
  17. package/src/augmentation.d.ts +1 -1
  18. package/src/index.js +1 -1
  19. package/src/ui/aiassistantcontroller.d.ts +1 -1
  20. package/src/ui/aiassistantcontroller.js +1 -1
  21. package/src/ui/dropdown/aicommandslistview.d.ts +11 -0
  22. package/src/ui/dropdown/aicommandslistview.js +1 -1
  23. package/src/ui/dropdown/buttonlabelwithhighlightview.js +1 -1
  24. package/src/ui/dropdown/labelwithhighlightview.js +1 -1
  25. package/src/ui/form/aiformcontentarea.js +1 -1
  26. package/src/ui/form/aiformerrorview.js +1 -1
  27. package/src/ui/form/aiformpromptview.js +1 -1
  28. package/src/ui/form/aiformtoolbarview.js +1 -1
  29. package/src/ui/form/aiformview.js +1 -1
  30. package/src/ui/form/aihistorylistitemview.js +1 -1
  31. package/src/ui/form/aihistorylistview.js +1 -1
  32. package/src/ui/form/prompthistory.js +1 -1
  33. package/src/ui/showaiassistantcommand.d.ts +12 -1
  34. package/src/ui/showaiassistantcommand.js +1 -1
  35. package/src/utils/common-translations.js +1 -1
  36. package/theme/ai.css +4 -0
package/build/ai.js CHANGED
@@ -2,7 +2,7 @@
2
2
  /*!
3
3
  * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
4
4
  * For licensing, see LICENSE.md.
5
- */(()=>{var e={9622:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AwsCrc32=void 0;var n=r(4694),o=r(9245),i=r(1913),s=function(){function e(){this.crc32=new i.Crc32}return e.prototype.update=function(e){(0,o.isEmptyData)(e)||this.crc32.update((0,o.convertToBuffer)(e))},e.prototype.digest=function(){return n.__awaiter(this,void 0,void 0,(function(){return n.__generator(this,(function(e){return[2,(0,o.numToUint8)(this.crc32.digest())]}))}))},e.prototype.reset=function(){this.crc32=new i.Crc32},e}();t.AwsCrc32=s},1913:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AwsCrc32=t.Crc32=t.crc32=void 0;var n=r(4694),o=r(9245);t.crc32=function(e){return(new i).update(e).digest()};var i=function(){function e(){this.checksum=4294967295}return e.prototype.update=function(e){var t,r;try{for(var o=n.__values(e),i=o.next();!i.done;i=o.next()){var a=i.value;this.checksum=this.checksum>>>8^s[255&(this.checksum^a)]}}catch(e){t={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}return this},e.prototype.digest=function(){return(4294967295^this.checksum)>>>0},e}();t.Crc32=i;var s=(0,o.uint32ArrayFrom)([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]),a=r(9622);Object.defineProperty(t,"AwsCrc32",{enumerable:!0,get:function(){return a.AwsCrc32}})},4694:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__assign:()=>i,__asyncDelegator:()=>y,__asyncGenerator:()=>x,__asyncValues:()=>v,__await:()=>b,__awaiter:()=>l,__classPrivateFieldGet:()=>E,__classPrivateFieldSet:()=>A,__createBinding:()=>f,__decorate:()=>a,__exportStar:()=>h,__extends:()=>o,__generator:()=>d,__importDefault:()=>S,__importStar:()=>_,__makeTemplateObject:()=>w,__metadata:()=>u,__param:()=>c,__read:()=>p,__rest:()=>s,__spread:()=>m,__spreadArrays:()=>k,__values:()=>g});
5
+ */(()=>{var e={8123:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AwsCrc32=void 0;var n=r(4487),o=r(7885),i=r(3090),s=function(){function e(){this.crc32=new i.Crc32}return e.prototype.update=function(e){(0,o.isEmptyData)(e)||this.crc32.update((0,o.convertToBuffer)(e))},e.prototype.digest=function(){return n.__awaiter(this,void 0,void 0,(function(){return n.__generator(this,(function(e){return[2,(0,o.numToUint8)(this.crc32.digest())]}))}))},e.prototype.reset=function(){this.crc32=new i.Crc32},e}();t.AwsCrc32=s},3090:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AwsCrc32=t.Crc32=t.crc32=void 0;var n=r(4487),o=r(7885);t.crc32=function(e){return(new i).update(e).digest()};var i=function(){function e(){this.checksum=4294967295}return e.prototype.update=function(e){var t,r;try{for(var o=n.__values(e),i=o.next();!i.done;i=o.next()){var a=i.value;this.checksum=this.checksum>>>8^s[255&(this.checksum^a)]}}catch(e){t={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}return this},e.prototype.digest=function(){return(4294967295^this.checksum)>>>0},e}();t.Crc32=i;var s=(0,o.uint32ArrayFrom)([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]),a=r(8123);Object.defineProperty(t,"AwsCrc32",{enumerable:!0,get:function(){return a.AwsCrc32}})},4487:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__assign:()=>i,__asyncDelegator:()=>v,__asyncGenerator:()=>y,__asyncValues:()=>w,__await:()=>b,__awaiter:()=>l,__classPrivateFieldGet:()=>A,__classPrivateFieldSet:()=>E,__createBinding:()=>f,__decorate:()=>a,__exportStar:()=>p,__extends:()=>o,__generator:()=>d,__importDefault:()=>x,__importStar:()=>S,__makeTemplateObject:()=>_,__metadata:()=>u,__param:()=>c,__read:()=>g,__rest:()=>s,__spread:()=>m,__spreadArrays:()=>k,__values:()=>h});
6
6
  /*! *****************************************************************************
7
7
  Copyright (c) Microsoft Corporation.
8
8
 
@@ -17,7 +17,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
17
17
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
18
18
  PERFORMANCE OF THIS SOFTWARE.
19
19
  ***************************************************************************** */
20
- var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},n(e,t)};function o(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var i=function(){return i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};function s(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}function a(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s}function c(e,t){return function(r,n){t(r,n,e)}}function u(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))}function d(e,t){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,n=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}function f(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}function h(e,t){for(var r in e)"default"===r||t.hasOwnProperty(r)||(t[r]=e[r])}function g(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function p(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)s.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return s}function m(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(p(arguments[t]));return e}function k(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),o=0;for(t=0;t<r;t++)for(var i=arguments[t],s=0,a=i.length;s<a;s++,o++)n[o]=i[s];return n}function b(e){return this instanceof b?(this.v=e,this):new b(e)}function x(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),i=[];return n={},s("next"),s("throw"),s("return"),n[Symbol.asyncIterator]=function(){return this},n;function s(e){o[e]&&(n[e]=function(t){return new Promise((function(r,n){i.push([e,t,r,n])>1||a(e,t)}))})}function a(e,t){try{(r=o[e](t)).value instanceof b?Promise.resolve(r.value.v).then(c,u):l(i[0][2],r)}catch(e){l(i[0][3],e)}var r}function c(e){a("next",e)}function u(e){a("throw",e)}function l(e,t){e(t),i.shift(),i.length&&a(i[0][0],i[0][1])}}function y(e){var t,r;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,o){t[n]=e[n]?function(t){return(r=!r)?{value:b(e[n](t)),done:"return"===n}:o?o(t):t}:o}}function v(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=g(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,o,(t=e[r](t)).done,t.value)}))}}}function w(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function _(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function S(e){return e&&e.__esModule?e:{default:e}}function E(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function A(e,t,r){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,r),r}},1602:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4743:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8804:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3593:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},820:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isMsWindow=void 0;var r=["decrypt","digest","encrypt","exportKey","generateKey","importKey","sign","verify"];t.isMsWindow=function(e){if(function(e){return"MSInputMethodContext"in e&&"msCrypto"in e}(e)&&void 0!==e.msCrypto.subtle){var t=e.msCrypto,n=t.getRandomValues,o=t.subtle;return r.map((function(e){return o[e]})).concat(n).every((function(e){return"function"==typeof e}))}return!1}},9372:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(3172);n.__exportStar(r(1602),t),n.__exportStar(r(4743),t),n.__exportStar(r(8804),t),n.__exportStar(r(3593),t),n.__exportStar(r(820),t)},3172:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__assign:()=>i,__asyncDelegator:()=>y,__asyncGenerator:()=>x,__asyncValues:()=>v,__await:()=>b,__awaiter:()=>l,__classPrivateFieldGet:()=>E,__classPrivateFieldSet:()=>A,__createBinding:()=>f,__decorate:()=>a,__exportStar:()=>h,__extends:()=>o,__generator:()=>d,__importDefault:()=>S,__importStar:()=>_,__makeTemplateObject:()=>w,__metadata:()=>u,__param:()=>c,__read:()=>p,__rest:()=>s,__spread:()=>m,__spreadArrays:()=>k,__values:()=>g});
20
+ var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},n(e,t)};function o(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var i=function(){return i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};function s(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}function a(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s}function c(e,t){return function(r,n){t(r,n,e)}}function u(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))}function d(e,t){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,n=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}function f(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}function p(e,t){for(var r in e)"default"===r||t.hasOwnProperty(r)||(t[r]=e[r])}function h(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function g(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)s.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return s}function m(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(g(arguments[t]));return e}function k(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),o=0;for(t=0;t<r;t++)for(var i=arguments[t],s=0,a=i.length;s<a;s++,o++)n[o]=i[s];return n}function b(e){return this instanceof b?(this.v=e,this):new b(e)}function y(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),i=[];return n={},s("next"),s("throw"),s("return"),n[Symbol.asyncIterator]=function(){return this},n;function s(e){o[e]&&(n[e]=function(t){return new Promise((function(r,n){i.push([e,t,r,n])>1||a(e,t)}))})}function a(e,t){try{(r=o[e](t)).value instanceof b?Promise.resolve(r.value.v).then(c,u):l(i[0][2],r)}catch(e){l(i[0][3],e)}var r}function c(e){a("next",e)}function u(e){a("throw",e)}function l(e,t){e(t),i.shift(),i.length&&a(i[0][0],i[0][1])}}function v(e){var t,r;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,o){t[n]=e[n]?function(t){return(r=!r)?{value:b(e[n](t)),done:"return"===n}:o?o(t):t}:o}}function w(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=h(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,o,(t=e[r](t)).done,t.value)}))}}}function _(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function S(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function x(e){return e&&e.__esModule?e:{default:e}}function A(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function E(e,t,r){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,r),r}},1785:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8048:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4167:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8639:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2067:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isMsWindow=void 0;var r=["decrypt","digest","encrypt","exportKey","generateKey","importKey","sign","verify"];t.isMsWindow=function(e){if(function(e){return"MSInputMethodContext"in e&&"msCrypto"in e}(e)&&void 0!==e.msCrypto.subtle){var t=e.msCrypto,n=t.getRandomValues,o=t.subtle;return r.map((function(e){return o[e]})).concat(n).every((function(e){return"function"==typeof e}))}return!1}},3191:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(3452);n.__exportStar(r(1785),t),n.__exportStar(r(8048),t),n.__exportStar(r(4167),t),n.__exportStar(r(8639),t),n.__exportStar(r(2067),t)},3452:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__assign:()=>i,__asyncDelegator:()=>v,__asyncGenerator:()=>y,__asyncValues:()=>w,__await:()=>b,__awaiter:()=>l,__classPrivateFieldGet:()=>A,__classPrivateFieldSet:()=>E,__createBinding:()=>f,__decorate:()=>a,__exportStar:()=>p,__extends:()=>o,__generator:()=>d,__importDefault:()=>x,__importStar:()=>S,__makeTemplateObject:()=>_,__metadata:()=>u,__param:()=>c,__read:()=>g,__rest:()=>s,__spread:()=>m,__spreadArrays:()=>k,__values:()=>h});
21
21
  /*! *****************************************************************************
22
22
  Copyright (c) Microsoft Corporation.
23
23
 
@@ -32,7 +32,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
32
32
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
33
33
  PERFORMANCE OF THIS SOFTWARE.
34
34
  ***************************************************************************** */
35
- var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},n(e,t)};function o(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var i=function(){return i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};function s(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}function a(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s}function c(e,t){return function(r,n){t(r,n,e)}}function u(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))}function d(e,t){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,n=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}function f(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}function h(e,t){for(var r in e)"default"===r||t.hasOwnProperty(r)||(t[r]=e[r])}function g(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function p(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)s.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return s}function m(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(p(arguments[t]));return e}function k(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),o=0;for(t=0;t<r;t++)for(var i=arguments[t],s=0,a=i.length;s<a;s++,o++)n[o]=i[s];return n}function b(e){return this instanceof b?(this.v=e,this):new b(e)}function x(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),i=[];return n={},s("next"),s("throw"),s("return"),n[Symbol.asyncIterator]=function(){return this},n;function s(e){o[e]&&(n[e]=function(t){return new Promise((function(r,n){i.push([e,t,r,n])>1||a(e,t)}))})}function a(e,t){try{(r=o[e](t)).value instanceof b?Promise.resolve(r.value.v).then(c,u):l(i[0][2],r)}catch(e){l(i[0][3],e)}var r}function c(e){a("next",e)}function u(e){a("throw",e)}function l(e,t){e(t),i.shift(),i.length&&a(i[0][0],i[0][1])}}function y(e){var t,r;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,o){t[n]=e[n]?function(t){return(r=!r)?{value:b(e[n](t)),done:"return"===n}:o?o(t):t}:o}}function v(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=g(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,o,(t=e[r](t)).done,t.value)}))}}}function w(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function _(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function S(e){return e&&e.__esModule?e:{default:e}}function E(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function A(e,t,r){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,r),r}},2721:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EMPTY_DATA_SHA_256=t.SHA_256_HMAC_ALGO=t.SHA_256_HASH=void 0,t.SHA_256_HASH={name:"SHA-256"},t.SHA_256_HMAC_ALGO={name:"HMAC",hash:t.SHA_256_HASH},t.EMPTY_DATA_SHA_256=new Uint8Array([227,176,196,66,152,252,28,20,154,251,244,200,153,111,185,36,39,174,65,228,100,155,147,76,164,149,153,27,120,82,184,85])},3628:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Sha256=void 0;var n=r(2582),o=r(9472),i=r(7365),s=r(3716),a=r(9372),c=r(2132),u=r(9245),l=function(){function e(e){(0,s.supportsWebCrypto)((0,c.locateWindow)())?this.hash=new o.Sha256(e):(0,a.isMsWindow)((0,c.locateWindow)())?this.hash=new n.Sha256(e):this.hash=new i.Sha256(e)}return e.prototype.update=function(e,t){this.hash.update((0,u.convertToBuffer)(e))},e.prototype.digest=function(){return this.hash.digest()},e.prototype.reset=function(){this.hash.reset()},e}();t.Sha256=l},2582:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Sha256=void 0;var n=r(286),o=r(2721),i=r(9974),s=r(2132),a=function(){function e(e){this.secret=e,this.reset()}return e.prototype.update=function(e){var t=this;(0,n.isEmptyData)(e)||(this.operation=this.operation.then((function(r){return r.onerror=function(){t.operation=Promise.reject(new Error("Error encountered updating hash"))},r.process(c(e)),r})),this.operation.catch((function(){})))},e.prototype.digest=function(){return this.operation.then((function(e){return new Promise((function(t,r){e.onerror=function(){r(new Error("Error encountered finalizing hash"))},e.oncomplete=function(){e.result&&t(new Uint8Array(e.result)),r(new Error("Error encountered finalizing hash"))},e.finish()}))}))},e.prototype.reset=function(){var e;this.secret?(this.operation=(e=this.secret,new Promise((function(t,r){var n=(0,s.locateWindow)().msCrypto.subtle.importKey("raw",c(e),o.SHA_256_HMAC_ALGO,!1,["sign"]);n.oncomplete=function(){n.result&&t(n.result),r(new Error("ImportKey completed without importing key."))},n.onerror=function(){r(new Error("ImportKey failed to import key."))}}))).then((function(e){return(0,s.locateWindow)().msCrypto.subtle.sign(o.SHA_256_HMAC_ALGO,e)})),this.operation.catch((function(){}))):this.operation=Promise.resolve((0,s.locateWindow)().msCrypto.subtle.digest("SHA-256"))},e}();function c(e){return"string"==typeof e?(0,i.fromUtf8)(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}t.Sha256=a},6699:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WebCryptoSha256=t.Ie11Sha256=void 0,r(795).__exportStar(r(3628),t);var n=r(2582);Object.defineProperty(t,"Ie11Sha256",{enumerable:!0,get:function(){return n.Sha256}});var o=r(9472);Object.defineProperty(t,"WebCryptoSha256",{enumerable:!0,get:function(){return o.Sha256}})},286:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isEmptyData=void 0,t.isEmptyData=function(e){return"string"==typeof e?0===e.length:0===e.byteLength}},9472:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Sha256=void 0;var n=r(9245),o=r(2721),i=r(2132),s=function(){function e(e){this.toHash=new Uint8Array(0),this.secret=e,this.reset()}return e.prototype.update=function(e){if(!(0,n.isEmptyData)(e)){var t=(0,n.convertToBuffer)(e),r=new Uint8Array(this.toHash.byteLength+t.byteLength);r.set(this.toHash,0),r.set(t,this.toHash.byteLength),this.toHash=r}},e.prototype.digest=function(){var e=this;return this.key?this.key.then((function(t){return(0,i.locateWindow)().crypto.subtle.sign(o.SHA_256_HMAC_ALGO,t,e.toHash).then((function(e){return new Uint8Array(e)}))})):(0,n.isEmptyData)(this.toHash)?Promise.resolve(o.EMPTY_DATA_SHA_256):Promise.resolve().then((function(){return(0,i.locateWindow)().crypto.subtle.digest(o.SHA_256_HASH,e.toHash)})).then((function(e){return Promise.resolve(new Uint8Array(e))}))},e.prototype.reset=function(){var e=this;this.toHash=new Uint8Array(0),this.secret&&void 0!==this.secret&&(this.key=new Promise((function(t,r){(0,i.locateWindow)().crypto.subtle.importKey("raw",(0,n.convertToBuffer)(e.secret),o.SHA_256_HMAC_ALGO,!1,["sign"]).then(t,r)})),this.key.catch((function(){})))},e}();t.Sha256=s},795:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__assign:()=>i,__asyncDelegator:()=>y,__asyncGenerator:()=>x,__asyncValues:()=>v,__await:()=>b,__awaiter:()=>l,__classPrivateFieldGet:()=>E,__classPrivateFieldSet:()=>A,__createBinding:()=>f,__decorate:()=>a,__exportStar:()=>h,__extends:()=>o,__generator:()=>d,__importDefault:()=>S,__importStar:()=>_,__makeTemplateObject:()=>w,__metadata:()=>u,__param:()=>c,__read:()=>p,__rest:()=>s,__spread:()=>m,__spreadArrays:()=>k,__values:()=>g});
35
+ var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},n(e,t)};function o(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var i=function(){return i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};function s(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}function a(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s}function c(e,t){return function(r,n){t(r,n,e)}}function u(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))}function d(e,t){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,n=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}function f(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}function p(e,t){for(var r in e)"default"===r||t.hasOwnProperty(r)||(t[r]=e[r])}function h(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function g(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)s.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return s}function m(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(g(arguments[t]));return e}function k(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),o=0;for(t=0;t<r;t++)for(var i=arguments[t],s=0,a=i.length;s<a;s++,o++)n[o]=i[s];return n}function b(e){return this instanceof b?(this.v=e,this):new b(e)}function y(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),i=[];return n={},s("next"),s("throw"),s("return"),n[Symbol.asyncIterator]=function(){return this},n;function s(e){o[e]&&(n[e]=function(t){return new Promise((function(r,n){i.push([e,t,r,n])>1||a(e,t)}))})}function a(e,t){try{(r=o[e](t)).value instanceof b?Promise.resolve(r.value.v).then(c,u):l(i[0][2],r)}catch(e){l(i[0][3],e)}var r}function c(e){a("next",e)}function u(e){a("throw",e)}function l(e,t){e(t),i.shift(),i.length&&a(i[0][0],i[0][1])}}function v(e){var t,r;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,o){t[n]=e[n]?function(t){return(r=!r)?{value:b(e[n](t)),done:"return"===n}:o?o(t):t}:o}}function w(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=h(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,o,(t=e[r](t)).done,t.value)}))}}}function _(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function S(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function x(e){return e&&e.__esModule?e:{default:e}}function A(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function E(e,t,r){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,r),r}},342:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EMPTY_DATA_SHA_256=t.SHA_256_HMAC_ALGO=t.SHA_256_HASH=void 0,t.SHA_256_HASH={name:"SHA-256"},t.SHA_256_HMAC_ALGO={name:"HMAC",hash:t.SHA_256_HASH},t.EMPTY_DATA_SHA_256=new Uint8Array([227,176,196,66,152,252,28,20,154,251,244,200,153,111,185,36,39,174,65,228,100,155,147,76,164,149,153,27,120,82,184,85])},9651:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Sha256=void 0;var n=r(940),o=r(51),i=r(1204),s=r(1962),a=r(3191),c=r(277),u=r(7885),l=function(){function e(e){(0,s.supportsWebCrypto)((0,c.locateWindow)())?this.hash=new o.Sha256(e):(0,a.isMsWindow)((0,c.locateWindow)())?this.hash=new n.Sha256(e):this.hash=new i.Sha256(e)}return e.prototype.update=function(e,t){this.hash.update((0,u.convertToBuffer)(e))},e.prototype.digest=function(){return this.hash.digest()},e.prototype.reset=function(){this.hash.reset()},e}();t.Sha256=l},940:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Sha256=void 0;var n=r(8642),o=r(342),i=r(9381),s=r(277),a=function(){function e(e){this.secret=e,this.reset()}return e.prototype.update=function(e){var t=this;(0,n.isEmptyData)(e)||(this.operation=this.operation.then((function(r){return r.onerror=function(){t.operation=Promise.reject(new Error("Error encountered updating hash"))},r.process(c(e)),r})),this.operation.catch((function(){})))},e.prototype.digest=function(){return this.operation.then((function(e){return new Promise((function(t,r){e.onerror=function(){r(new Error("Error encountered finalizing hash"))},e.oncomplete=function(){e.result&&t(new Uint8Array(e.result)),r(new Error("Error encountered finalizing hash"))},e.finish()}))}))},e.prototype.reset=function(){var e;this.secret?(this.operation=(e=this.secret,new Promise((function(t,r){var n=(0,s.locateWindow)().msCrypto.subtle.importKey("raw",c(e),o.SHA_256_HMAC_ALGO,!1,["sign"]);n.oncomplete=function(){n.result&&t(n.result),r(new Error("ImportKey completed without importing key."))},n.onerror=function(){r(new Error("ImportKey failed to import key."))}}))).then((function(e){return(0,s.locateWindow)().msCrypto.subtle.sign(o.SHA_256_HMAC_ALGO,e)})),this.operation.catch((function(){}))):this.operation=Promise.resolve((0,s.locateWindow)().msCrypto.subtle.digest("SHA-256"))},e}();function c(e){return"string"==typeof e?(0,i.fromUtf8)(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}t.Sha256=a},2131:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WebCryptoSha256=t.Ie11Sha256=void 0,r(6344).__exportStar(r(9651),t);var n=r(940);Object.defineProperty(t,"Ie11Sha256",{enumerable:!0,get:function(){return n.Sha256}});var o=r(51);Object.defineProperty(t,"WebCryptoSha256",{enumerable:!0,get:function(){return o.Sha256}})},8642:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isEmptyData=void 0,t.isEmptyData=function(e){return"string"==typeof e?0===e.length:0===e.byteLength}},51:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Sha256=void 0;var n=r(7885),o=r(342),i=r(277),s=function(){function e(e){this.toHash=new Uint8Array(0),this.secret=e,this.reset()}return e.prototype.update=function(e){if(!(0,n.isEmptyData)(e)){var t=(0,n.convertToBuffer)(e),r=new Uint8Array(this.toHash.byteLength+t.byteLength);r.set(this.toHash,0),r.set(t,this.toHash.byteLength),this.toHash=r}},e.prototype.digest=function(){var e=this;return this.key?this.key.then((function(t){return(0,i.locateWindow)().crypto.subtle.sign(o.SHA_256_HMAC_ALGO,t,e.toHash).then((function(e){return new Uint8Array(e)}))})):(0,n.isEmptyData)(this.toHash)?Promise.resolve(o.EMPTY_DATA_SHA_256):Promise.resolve().then((function(){return(0,i.locateWindow)().crypto.subtle.digest(o.SHA_256_HASH,e.toHash)})).then((function(e){return Promise.resolve(new Uint8Array(e))}))},e.prototype.reset=function(){var e=this;this.toHash=new Uint8Array(0),this.secret&&void 0!==this.secret&&(this.key=new Promise((function(t,r){(0,i.locateWindow)().crypto.subtle.importKey("raw",(0,n.convertToBuffer)(e.secret),o.SHA_256_HMAC_ALGO,!1,["sign"]).then(t,r)})),this.key.catch((function(){})))},e}();t.Sha256=s},6344:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__assign:()=>i,__asyncDelegator:()=>v,__asyncGenerator:()=>y,__asyncValues:()=>w,__await:()=>b,__awaiter:()=>l,__classPrivateFieldGet:()=>A,__classPrivateFieldSet:()=>E,__createBinding:()=>f,__decorate:()=>a,__exportStar:()=>p,__extends:()=>o,__generator:()=>d,__importDefault:()=>x,__importStar:()=>S,__makeTemplateObject:()=>_,__metadata:()=>u,__param:()=>c,__read:()=>g,__rest:()=>s,__spread:()=>m,__spreadArrays:()=>k,__values:()=>h});
36
36
  /*! *****************************************************************************
37
37
  Copyright (c) Microsoft Corporation.
38
38
 
@@ -47,7 +47,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
47
47
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
48
48
  PERFORMANCE OF THIS SOFTWARE.
49
49
  ***************************************************************************** */
50
- var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},n(e,t)};function o(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var i=function(){return i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};function s(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}function a(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s}function c(e,t){return function(r,n){t(r,n,e)}}function u(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))}function d(e,t){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,n=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}function f(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}function h(e,t){for(var r in e)"default"===r||t.hasOwnProperty(r)||(t[r]=e[r])}function g(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function p(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)s.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return s}function m(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(p(arguments[t]));return e}function k(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),o=0;for(t=0;t<r;t++)for(var i=arguments[t],s=0,a=i.length;s<a;s++,o++)n[o]=i[s];return n}function b(e){return this instanceof b?(this.v=e,this):new b(e)}function x(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),i=[];return n={},s("next"),s("throw"),s("return"),n[Symbol.asyncIterator]=function(){return this},n;function s(e){o[e]&&(n[e]=function(t){return new Promise((function(r,n){i.push([e,t,r,n])>1||a(e,t)}))})}function a(e,t){try{(r=o[e](t)).value instanceof b?Promise.resolve(r.value.v).then(c,u):l(i[0][2],r)}catch(e){l(i[0][3],e)}var r}function c(e){a("next",e)}function u(e){a("throw",e)}function l(e,t){e(t),i.shift(),i.length&&a(i[0][0],i[0][1])}}function y(e){var t,r;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,o){t[n]=e[n]?function(t){return(r=!r)?{value:b(e[n](t)),done:"return"===n}:o?o(t):t}:o}}function v(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=g(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,o,(t=e[r](t)).done,t.value)}))}}}function w(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function _(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function S(e){return e&&e.__esModule?e:{default:e}}function E(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function A(e,t,r){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,r),r}},3453:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RawSha256=void 0;var n=r(7037),o=function(){function e(){this.state=Int32Array.from(n.INIT),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return e.prototype.update=function(e){if(this.finished)throw new Error("Attempted to update an already finished hash.");var t=0,r=e.byteLength;if(this.bytesHashed+=r,8*this.bytesHashed>n.MAX_HASHABLE_LENGTH)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;r>0;)this.buffer[this.bufferLength++]=e[t++],r--,this.bufferLength===n.BLOCK_SIZE&&(this.hashBuffer(),this.bufferLength=0)},e.prototype.digest=function(){if(!this.finished){var e=8*this.bytesHashed,t=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),r=this.bufferLength;if(t.setUint8(this.bufferLength++,128),r%n.BLOCK_SIZE>=n.BLOCK_SIZE-8){for(var o=this.bufferLength;o<n.BLOCK_SIZE;o++)t.setUint8(o,0);this.hashBuffer(),this.bufferLength=0}for(o=this.bufferLength;o<n.BLOCK_SIZE-8;o++)t.setUint8(o,0);t.setUint32(n.BLOCK_SIZE-8,Math.floor(e/4294967296),!0),t.setUint32(n.BLOCK_SIZE-4,e),this.hashBuffer(),this.finished=!0}var i=new Uint8Array(n.DIGEST_LENGTH);for(o=0;o<8;o++)i[4*o]=this.state[o]>>>24&255,i[4*o+1]=this.state[o]>>>16&255,i[4*o+2]=this.state[o]>>>8&255,i[4*o+3]=this.state[o]>>>0&255;return i},e.prototype.hashBuffer=function(){for(var e=this.buffer,t=this.state,r=t[0],o=t[1],i=t[2],s=t[3],a=t[4],c=t[5],u=t[6],l=t[7],d=0;d<n.BLOCK_SIZE;d++){if(d<16)this.temp[d]=(255&e[4*d])<<24|(255&e[4*d+1])<<16|(255&e[4*d+2])<<8|255&e[4*d+3];else{var f=this.temp[d-2],h=(f>>>17|f<<15)^(f>>>19|f<<13)^f>>>10,g=((f=this.temp[d-15])>>>7|f<<25)^(f>>>18|f<<14)^f>>>3;this.temp[d]=(h+this.temp[d-7]|0)+(g+this.temp[d-16]|0)}var p=(((a>>>6|a<<26)^(a>>>11|a<<21)^(a>>>25|a<<7))+(a&c^~a&u)|0)+(l+(n.KEY[d]+this.temp[d]|0)|0)|0,m=((r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10))+(r&o^r&i^o&i)|0;l=u,u=c,c=a,a=s+p|0,s=i,i=o,o=r,r=p+m|0}t[0]+=r,t[1]+=o,t[2]+=i,t[3]+=s,t[4]+=a,t[5]+=c,t[6]+=u,t[7]+=l},e}();t.RawSha256=o},7037:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MAX_HASHABLE_LENGTH=t.INIT=t.KEY=t.DIGEST_LENGTH=t.BLOCK_SIZE=void 0,t.BLOCK_SIZE=64,t.DIGEST_LENGTH=32,t.KEY=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),t.INIT=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],t.MAX_HASHABLE_LENGTH=Math.pow(2,53)-1},7365:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(5187).__exportStar(r(1399),t)},1399:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Sha256=void 0;var n=r(5187),o=r(7037),i=r(3453),s=r(9245),a=function(){function e(e){this.secret=e,this.hash=new i.RawSha256,this.reset()}return e.prototype.update=function(e){if(!(0,s.isEmptyData)(e)&&!this.error)try{this.hash.update((0,s.convertToBuffer)(e))}catch(e){this.error=e}},e.prototype.digestSync=function(){if(this.error)throw this.error;return this.outer?(this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},e.prototype.digest=function(){return n.__awaiter(this,void 0,void 0,(function(){return n.__generator(this,(function(e){return[2,this.digestSync()]}))}))},e.prototype.reset=function(){if(this.hash=new i.RawSha256,this.secret){this.outer=new i.RawSha256;var e=function(e){var t=(0,s.convertToBuffer)(e);if(t.byteLength>o.BLOCK_SIZE){var r=new i.RawSha256;r.update(t),t=r.digest()}var n=new Uint8Array(o.BLOCK_SIZE);return n.set(t),n}(this.secret),t=new Uint8Array(o.BLOCK_SIZE);t.set(e);for(var r=0;r<o.BLOCK_SIZE;r++)e[r]^=54,t[r]^=92;this.hash.update(e),this.outer.update(t);for(r=0;r<e.byteLength;r++)e[r]=0}},e}();t.Sha256=a},5187:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__assign:()=>i,__asyncDelegator:()=>y,__asyncGenerator:()=>x,__asyncValues:()=>v,__await:()=>b,__awaiter:()=>l,__classPrivateFieldGet:()=>E,__classPrivateFieldSet:()=>A,__createBinding:()=>f,__decorate:()=>a,__exportStar:()=>h,__extends:()=>o,__generator:()=>d,__importDefault:()=>S,__importStar:()=>_,__makeTemplateObject:()=>w,__metadata:()=>u,__param:()=>c,__read:()=>p,__rest:()=>s,__spread:()=>m,__spreadArrays:()=>k,__values:()=>g});
50
+ var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},n(e,t)};function o(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var i=function(){return i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};function s(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}function a(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s}function c(e,t){return function(r,n){t(r,n,e)}}function u(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))}function d(e,t){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,n=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}function f(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}function p(e,t){for(var r in e)"default"===r||t.hasOwnProperty(r)||(t[r]=e[r])}function h(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function g(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)s.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return s}function m(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(g(arguments[t]));return e}function k(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),o=0;for(t=0;t<r;t++)for(var i=arguments[t],s=0,a=i.length;s<a;s++,o++)n[o]=i[s];return n}function b(e){return this instanceof b?(this.v=e,this):new b(e)}function y(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),i=[];return n={},s("next"),s("throw"),s("return"),n[Symbol.asyncIterator]=function(){return this},n;function s(e){o[e]&&(n[e]=function(t){return new Promise((function(r,n){i.push([e,t,r,n])>1||a(e,t)}))})}function a(e,t){try{(r=o[e](t)).value instanceof b?Promise.resolve(r.value.v).then(c,u):l(i[0][2],r)}catch(e){l(i[0][3],e)}var r}function c(e){a("next",e)}function u(e){a("throw",e)}function l(e,t){e(t),i.shift(),i.length&&a(i[0][0],i[0][1])}}function v(e){var t,r;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,o){t[n]=e[n]?function(t){return(r=!r)?{value:b(e[n](t)),done:"return"===n}:o?o(t):t}:o}}function w(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=h(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,o,(t=e[r](t)).done,t.value)}))}}}function _(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function S(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function x(e){return e&&e.__esModule?e:{default:e}}function A(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function E(e,t,r){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,r),r}},9445:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RawSha256=void 0;var n=r(3721),o=function(){function e(){this.state=Int32Array.from(n.INIT),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return e.prototype.update=function(e){if(this.finished)throw new Error("Attempted to update an already finished hash.");var t=0,r=e.byteLength;if(this.bytesHashed+=r,8*this.bytesHashed>n.MAX_HASHABLE_LENGTH)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;r>0;)this.buffer[this.bufferLength++]=e[t++],r--,this.bufferLength===n.BLOCK_SIZE&&(this.hashBuffer(),this.bufferLength=0)},e.prototype.digest=function(){if(!this.finished){var e=8*this.bytesHashed,t=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),r=this.bufferLength;if(t.setUint8(this.bufferLength++,128),r%n.BLOCK_SIZE>=n.BLOCK_SIZE-8){for(var o=this.bufferLength;o<n.BLOCK_SIZE;o++)t.setUint8(o,0);this.hashBuffer(),this.bufferLength=0}for(o=this.bufferLength;o<n.BLOCK_SIZE-8;o++)t.setUint8(o,0);t.setUint32(n.BLOCK_SIZE-8,Math.floor(e/4294967296),!0),t.setUint32(n.BLOCK_SIZE-4,e),this.hashBuffer(),this.finished=!0}var i=new Uint8Array(n.DIGEST_LENGTH);for(o=0;o<8;o++)i[4*o]=this.state[o]>>>24&255,i[4*o+1]=this.state[o]>>>16&255,i[4*o+2]=this.state[o]>>>8&255,i[4*o+3]=this.state[o]>>>0&255;return i},e.prototype.hashBuffer=function(){for(var e=this.buffer,t=this.state,r=t[0],o=t[1],i=t[2],s=t[3],a=t[4],c=t[5],u=t[6],l=t[7],d=0;d<n.BLOCK_SIZE;d++){if(d<16)this.temp[d]=(255&e[4*d])<<24|(255&e[4*d+1])<<16|(255&e[4*d+2])<<8|255&e[4*d+3];else{var f=this.temp[d-2],p=(f>>>17|f<<15)^(f>>>19|f<<13)^f>>>10,h=((f=this.temp[d-15])>>>7|f<<25)^(f>>>18|f<<14)^f>>>3;this.temp[d]=(p+this.temp[d-7]|0)+(h+this.temp[d-16]|0)}var g=(((a>>>6|a<<26)^(a>>>11|a<<21)^(a>>>25|a<<7))+(a&c^~a&u)|0)+(l+(n.KEY[d]+this.temp[d]|0)|0)|0,m=((r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10))+(r&o^r&i^o&i)|0;l=u,u=c,c=a,a=s+g|0,s=i,i=o,o=r,r=g+m|0}t[0]+=r,t[1]+=o,t[2]+=i,t[3]+=s,t[4]+=a,t[5]+=c,t[6]+=u,t[7]+=l},e}();t.RawSha256=o},3721:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MAX_HASHABLE_LENGTH=t.INIT=t.KEY=t.DIGEST_LENGTH=t.BLOCK_SIZE=void 0,t.BLOCK_SIZE=64,t.DIGEST_LENGTH=32,t.KEY=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),t.INIT=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],t.MAX_HASHABLE_LENGTH=Math.pow(2,53)-1},1204:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(1257).__exportStar(r(8762),t)},8762:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Sha256=void 0;var n=r(1257),o=r(3721),i=r(9445),s=r(7885),a=function(){function e(e){this.secret=e,this.hash=new i.RawSha256,this.reset()}return e.prototype.update=function(e){if(!(0,s.isEmptyData)(e)&&!this.error)try{this.hash.update((0,s.convertToBuffer)(e))}catch(e){this.error=e}},e.prototype.digestSync=function(){if(this.error)throw this.error;return this.outer?(this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},e.prototype.digest=function(){return n.__awaiter(this,void 0,void 0,(function(){return n.__generator(this,(function(e){return[2,this.digestSync()]}))}))},e.prototype.reset=function(){if(this.hash=new i.RawSha256,this.secret){this.outer=new i.RawSha256;var e=function(e){var t=(0,s.convertToBuffer)(e);if(t.byteLength>o.BLOCK_SIZE){var r=new i.RawSha256;r.update(t),t=r.digest()}var n=new Uint8Array(o.BLOCK_SIZE);return n.set(t),n}(this.secret),t=new Uint8Array(o.BLOCK_SIZE);t.set(e);for(var r=0;r<o.BLOCK_SIZE;r++)e[r]^=54,t[r]^=92;this.hash.update(e),this.outer.update(t);for(r=0;r<e.byteLength;r++)e[r]=0}},e}();t.Sha256=a},1257:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__assign:()=>i,__asyncDelegator:()=>v,__asyncGenerator:()=>y,__asyncValues:()=>w,__await:()=>b,__awaiter:()=>l,__classPrivateFieldGet:()=>A,__classPrivateFieldSet:()=>E,__createBinding:()=>f,__decorate:()=>a,__exportStar:()=>p,__extends:()=>o,__generator:()=>d,__importDefault:()=>x,__importStar:()=>S,__makeTemplateObject:()=>_,__metadata:()=>u,__param:()=>c,__read:()=>g,__rest:()=>s,__spread:()=>m,__spreadArrays:()=>k,__values:()=>h});
51
51
  /*! *****************************************************************************
52
52
  Copyright (c) Microsoft Corporation.
53
53
 
@@ -62,7 +62,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
62
62
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
63
63
  PERFORMANCE OF THIS SOFTWARE.
64
64
  ***************************************************************************** */
65
- var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},n(e,t)};function o(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var i=function(){return i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};function s(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}function a(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s}function c(e,t){return function(r,n){t(r,n,e)}}function u(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))}function d(e,t){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,n=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}function f(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}function h(e,t){for(var r in e)"default"===r||t.hasOwnProperty(r)||(t[r]=e[r])}function g(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function p(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)s.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return s}function m(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(p(arguments[t]));return e}function k(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),o=0;for(t=0;t<r;t++)for(var i=arguments[t],s=0,a=i.length;s<a;s++,o++)n[o]=i[s];return n}function b(e){return this instanceof b?(this.v=e,this):new b(e)}function x(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),i=[];return n={},s("next"),s("throw"),s("return"),n[Symbol.asyncIterator]=function(){return this},n;function s(e){o[e]&&(n[e]=function(t){return new Promise((function(r,n){i.push([e,t,r,n])>1||a(e,t)}))})}function a(e,t){try{(r=o[e](t)).value instanceof b?Promise.resolve(r.value.v).then(c,u):l(i[0][2],r)}catch(e){l(i[0][3],e)}var r}function c(e){a("next",e)}function u(e){a("throw",e)}function l(e,t){e(t),i.shift(),i.length&&a(i[0][0],i[0][1])}}function y(e){var t,r;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,o){t[n]=e[n]?function(t){return(r=!r)?{value:b(e[n](t)),done:"return"===n}:o?o(t):t}:o}}function v(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=g(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,o,(t=e[r](t)).done,t.value)}))}}}function w(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function _(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function S(e){return e&&e.__esModule?e:{default:e}}function E(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function A(e,t,r){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,r),r}},3716:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(2294).__exportStar(r(6461),t)},6461:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.supportsZeroByteGCM=t.supportsSubtleCrypto=t.supportsSecureRandom=t.supportsWebCrypto=void 0;var n=r(2294),o=["decrypt","digest","encrypt","exportKey","generateKey","importKey","sign","verify"];function i(e){return"object"==typeof e&&"object"==typeof e.crypto&&"function"==typeof e.crypto.getRandomValues}function s(e){return e&&o.every((function(t){return"function"==typeof e[t]}))}t.supportsWebCrypto=function(e){return!(!i(e)||"object"!=typeof e.crypto.subtle)&&s(e.crypto.subtle)},t.supportsSecureRandom=i,t.supportsSubtleCrypto=s,t.supportsZeroByteGCM=function(e){return n.__awaiter(this,void 0,void 0,(function(){var t;return n.__generator(this,(function(r){switch(r.label){case 0:if(!s(e))return[2,!1];r.label=1;case 1:return r.trys.push([1,4,,5]),[4,e.generateKey({name:"AES-GCM",length:128},!1,["encrypt"])];case 2:return t=r.sent(),[4,e.encrypt({name:"AES-GCM",iv:new Uint8Array(Array(12)),additionalData:new Uint8Array(Array(16)),tagLength:128},t,new Uint8Array(0))];case 3:return[2,16===r.sent().byteLength];case 4:return r.sent(),[2,!1];case 5:return[2]}}))}))}},2294:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__assign:()=>i,__asyncDelegator:()=>y,__asyncGenerator:()=>x,__asyncValues:()=>v,__await:()=>b,__awaiter:()=>l,__classPrivateFieldGet:()=>E,__classPrivateFieldSet:()=>A,__createBinding:()=>f,__decorate:()=>a,__exportStar:()=>h,__extends:()=>o,__generator:()=>d,__importDefault:()=>S,__importStar:()=>_,__makeTemplateObject:()=>w,__metadata:()=>u,__param:()=>c,__read:()=>p,__rest:()=>s,__spread:()=>m,__spreadArrays:()=>k,__values:()=>g});
65
+ var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},n(e,t)};function o(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var i=function(){return i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};function s(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}function a(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s}function c(e,t){return function(r,n){t(r,n,e)}}function u(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))}function d(e,t){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,n=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}function f(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}function p(e,t){for(var r in e)"default"===r||t.hasOwnProperty(r)||(t[r]=e[r])}function h(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function g(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)s.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return s}function m(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(g(arguments[t]));return e}function k(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),o=0;for(t=0;t<r;t++)for(var i=arguments[t],s=0,a=i.length;s<a;s++,o++)n[o]=i[s];return n}function b(e){return this instanceof b?(this.v=e,this):new b(e)}function y(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),i=[];return n={},s("next"),s("throw"),s("return"),n[Symbol.asyncIterator]=function(){return this},n;function s(e){o[e]&&(n[e]=function(t){return new Promise((function(r,n){i.push([e,t,r,n])>1||a(e,t)}))})}function a(e,t){try{(r=o[e](t)).value instanceof b?Promise.resolve(r.value.v).then(c,u):l(i[0][2],r)}catch(e){l(i[0][3],e)}var r}function c(e){a("next",e)}function u(e){a("throw",e)}function l(e,t){e(t),i.shift(),i.length&&a(i[0][0],i[0][1])}}function v(e){var t,r;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,o){t[n]=e[n]?function(t){return(r=!r)?{value:b(e[n](t)),done:"return"===n}:o?o(t):t}:o}}function w(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=h(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,o,(t=e[r](t)).done,t.value)}))}}}function _(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function S(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function x(e){return e&&e.__esModule?e:{default:e}}function A(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function E(e,t,r){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,r),r}},1962:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(6479).__exportStar(r(4601),t)},4601:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.supportsZeroByteGCM=t.supportsSubtleCrypto=t.supportsSecureRandom=t.supportsWebCrypto=void 0;var n=r(6479),o=["decrypt","digest","encrypt","exportKey","generateKey","importKey","sign","verify"];function i(e){return"object"==typeof e&&"object"==typeof e.crypto&&"function"==typeof e.crypto.getRandomValues}function s(e){return e&&o.every((function(t){return"function"==typeof e[t]}))}t.supportsWebCrypto=function(e){return!(!i(e)||"object"!=typeof e.crypto.subtle)&&s(e.crypto.subtle)},t.supportsSecureRandom=i,t.supportsSubtleCrypto=s,t.supportsZeroByteGCM=function(e){return n.__awaiter(this,void 0,void 0,(function(){var t;return n.__generator(this,(function(r){switch(r.label){case 0:if(!s(e))return[2,!1];r.label=1;case 1:return r.trys.push([1,4,,5]),[4,e.generateKey({name:"AES-GCM",length:128},!1,["encrypt"])];case 2:return t=r.sent(),[4,e.encrypt({name:"AES-GCM",iv:new Uint8Array(Array(12)),additionalData:new Uint8Array(Array(16)),tagLength:128},t,new Uint8Array(0))];case 3:return[2,16===r.sent().byteLength];case 4:return r.sent(),[2,!1];case 5:return[2]}}))}))}},6479:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__assign:()=>i,__asyncDelegator:()=>v,__asyncGenerator:()=>y,__asyncValues:()=>w,__await:()=>b,__awaiter:()=>l,__classPrivateFieldGet:()=>A,__classPrivateFieldSet:()=>E,__createBinding:()=>f,__decorate:()=>a,__exportStar:()=>p,__extends:()=>o,__generator:()=>d,__importDefault:()=>x,__importStar:()=>S,__makeTemplateObject:()=>_,__metadata:()=>u,__param:()=>c,__read:()=>g,__rest:()=>s,__spread:()=>m,__spreadArrays:()=>k,__values:()=>h});
66
66
  /*! *****************************************************************************
67
67
  Copyright (c) Microsoft Corporation.
68
68
 
@@ -77,4 +77,4 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
77
77
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
78
78
  PERFORMANCE OF THIS SOFTWARE.
79
79
  ***************************************************************************** */
80
- var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},n(e,t)};function o(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var i=function(){return i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};function s(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}function a(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s}function c(e,t){return function(r,n){t(r,n,e)}}function u(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))}function d(e,t){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,n=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}function f(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}function h(e,t){for(var r in e)"default"===r||t.hasOwnProperty(r)||(t[r]=e[r])}function g(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function p(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)s.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return s}function m(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(p(arguments[t]));return e}function k(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),o=0;for(t=0;t<r;t++)for(var i=arguments[t],s=0,a=i.length;s<a;s++,o++)n[o]=i[s];return n}function b(e){return this instanceof b?(this.v=e,this):new b(e)}function x(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),i=[];return n={},s("next"),s("throw"),s("return"),n[Symbol.asyncIterator]=function(){return this},n;function s(e){o[e]&&(n[e]=function(t){return new Promise((function(r,n){i.push([e,t,r,n])>1||a(e,t)}))})}function a(e,t){try{(r=o[e](t)).value instanceof b?Promise.resolve(r.value.v).then(c,u):l(i[0][2],r)}catch(e){l(i[0][3],e)}var r}function c(e){a("next",e)}function u(e){a("throw",e)}function l(e,t){e(t),i.shift(),i.length&&a(i[0][0],i[0][1])}}function y(e){var t,r;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,o){t[n]=e[n]?function(t){return(r=!r)?{value:b(e[n](t)),done:"return"===n}:o?o(t):t}:o}}function v(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=g(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,o,(t=e[r](t)).done,t.value)}))}}}function w(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function _(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function S(e){return e&&e.__esModule?e:{default:e}}function E(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function A(e,t,r){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,r),r}},7599:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.convertToBuffer=void 0;var n=r(9974),o="undefined"!=typeof Buffer&&Buffer.from?function(e){return Buffer.from(e,"utf8")}:n.fromUtf8;t.convertToBuffer=function(e){return e instanceof Uint8Array?e:"string"==typeof e?o(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}},9245:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.uint32ArrayFrom=t.numToUint8=t.isEmptyData=t.convertToBuffer=void 0;var n=r(7599);Object.defineProperty(t,"convertToBuffer",{enumerable:!0,get:function(){return n.convertToBuffer}});var o=r(2385);Object.defineProperty(t,"isEmptyData",{enumerable:!0,get:function(){return o.isEmptyData}});var i=r(2401);Object.defineProperty(t,"numToUint8",{enumerable:!0,get:function(){return i.numToUint8}});var s=r(8545);Object.defineProperty(t,"uint32ArrayFrom",{enumerable:!0,get:function(){return s.uint32ArrayFrom}})},2385:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isEmptyData=void 0,t.isEmptyData=function(e){return"string"==typeof e?0===e.length:0===e.byteLength}},2401:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.numToUint8=void 0,t.numToUint8=function(e){return new Uint8Array([(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e])}},8545:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.uint32ArrayFrom=void 0,t.uint32ArrayFrom=function(e){if(!Uint32Array.from){for(var t=new Uint32Array(e.length),r=0;r<e.length;)t[r]=e[r],r+=1;return t}return Uint32Array.from(e)}},2132:(e,t,r)=>{"use strict";r.r(t),r.d(t,{locateWindow:()=>o});const n={};function o(){return"undefined"!=typeof window?window:"undefined"!=typeof self?self:n}},9974:(e,t,r)=>{"use strict";r.r(t),r.d(t,{fromUtf8:()=>n,toUtf8:()=>o});const n=e=>"function"==typeof TextEncoder?function(e){return(new TextEncoder).encode(e)}(e):(e=>{const t=[];for(let r=0,n=e.length;r<n;r++){const n=e.charCodeAt(r);if(n<128)t.push(n);else if(n<2048)t.push(n>>6|192,63&n|128);else if(r+1<e.length&&55296==(64512&n)&&56320==(64512&e.charCodeAt(r+1))){const o=65536+((1023&n)<<10)+(1023&e.charCodeAt(++r));t.push(o>>18|240,o>>12&63|128,o>>6&63|128,63&o|128)}else t.push(n>>12|224,n>>6&63|128,63&n|128)}return Uint8Array.from(t)})(e),o=e=>"function"==typeof TextDecoder?function(e){return new TextDecoder("utf-8").decode(e)}(e):(e=>{let t="";for(let r=0,n=e.length;r<n;r++){const n=e[r];if(n<128)t+=String.fromCharCode(n);else if(192<=n&&n<224){const o=e[++r];t+=String.fromCharCode((31&n)<<6|63&o)}else if(240<=n&&n<365){const o="%"+[n,e[++r],e[++r],e[++r]].map((e=>e.toString(16))).join("%");t+=decodeURIComponent(o)}else t+=String.fromCharCode((15&n)<<12|(63&e[++r])<<6|63&e[++r])}return t})(e)},264:function(e){e.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=90)}({17:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n=r(18),o=function(){function e(){}return e.getFirstMatch=function(e,t){var r=t.match(e);return r&&r.length>0&&r[1]||""},e.getSecondMatch=function(e,t){var r=t.match(e);return r&&r.length>1&&r[2]||""},e.matchAndReturnConst=function(e,t,r){if(e.test(t))return r},e.getWindowsVersionName=function(e){switch(e){case"NT":return"NT";case"XP":case"NT 5.1":return"XP";case"NT 5.0":return"2000";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}},e.getMacOSVersionName=function(e){var t=e.split(".").splice(0,2).map((function(e){return parseInt(e,10)||0}));if(t.push(0),10===t[0])switch(t[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}},e.getAndroidVersionName=function(e){var t=e.split(".").splice(0,2).map((function(e){return parseInt(e,10)||0}));if(t.push(0),!(1===t[0]&&t[1]<5))return 1===t[0]&&t[1]<6?"Cupcake":1===t[0]&&t[1]>=6?"Donut":2===t[0]&&t[1]<2?"Eclair":2===t[0]&&2===t[1]?"Froyo":2===t[0]&&t[1]>2?"Gingerbread":3===t[0]?"Honeycomb":4===t[0]&&t[1]<1?"Ice Cream Sandwich":4===t[0]&&t[1]<4?"Jelly Bean":4===t[0]&&t[1]>=4?"KitKat":5===t[0]?"Lollipop":6===t[0]?"Marshmallow":7===t[0]?"Nougat":8===t[0]?"Oreo":9===t[0]?"Pie":void 0},e.getVersionPrecision=function(e){return e.split(".").length},e.compareVersions=function(t,r,n){void 0===n&&(n=!1);var o=e.getVersionPrecision(t),i=e.getVersionPrecision(r),s=Math.max(o,i),a=0,c=e.map([t,r],(function(t){var r=s-e.getVersionPrecision(t),n=t+new Array(r+1).join(".0");return e.map(n.split("."),(function(e){return new Array(20-e.length).join("0")+e})).reverse()}));for(n&&(a=s-Math.min(o,i)),s-=1;s>=a;){if(c[0][s]>c[1][s])return 1;if(c[0][s]===c[1][s]){if(s===a)return 0;s-=1}else if(c[0][s]<c[1][s])return-1}},e.map=function(e,t){var r,n=[];if(Array.prototype.map)return Array.prototype.map.call(e,t);for(r=0;r<e.length;r+=1)n.push(t(e[r]));return n},e.find=function(e,t){var r,n;if(Array.prototype.find)return Array.prototype.find.call(e,t);for(r=0,n=e.length;r<n;r+=1){var o=e[r];if(t(o,r))return o}},e.assign=function(e){for(var t,r,n=e,o=arguments.length,i=new Array(o>1?o-1:0),s=1;s<o;s++)i[s-1]=arguments[s];if(Object.assign)return Object.assign.apply(Object,[e].concat(i));var a=function(){var e=i[t];"object"==typeof e&&null!==e&&Object.keys(e).forEach((function(t){n[t]=e[t]}))};for(t=0,r=i.length;t<r;t+=1)a();return e},e.getBrowserAlias=function(e){return n.BROWSER_ALIASES_MAP[e]},e.getBrowserTypeByAlias=function(e){return n.BROWSER_MAP[e]||""},e}();t.default=o,e.exports=t.default},18:function(e,t,r){"use strict";t.__esModule=!0,t.ENGINE_MAP=t.OS_MAP=t.PLATFORMS_MAP=t.BROWSER_MAP=t.BROWSER_ALIASES_MAP=void 0,t.BROWSER_ALIASES_MAP={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},t.BROWSER_MAP={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},t.PLATFORMS_MAP={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},t.OS_MAP={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},t.ENGINE_MAP={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"}},90:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,o=(n=r(91))&&n.__esModule?n:{default:n},i=r(18);function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var a=function(){function e(){}var t,r,n;return e.getParser=function(e,t){if(void 0===t&&(t=!1),"string"!=typeof e)throw new Error("UserAgent should be a string");return new o.default(e,t)},e.parse=function(e){return new o.default(e).getResult()},t=e,n=[{key:"BROWSER_MAP",get:function(){return i.BROWSER_MAP}},{key:"ENGINE_MAP",get:function(){return i.ENGINE_MAP}},{key:"OS_MAP",get:function(){return i.OS_MAP}},{key:"PLATFORMS_MAP",get:function(){return i.PLATFORMS_MAP}}],(r=null)&&s(t.prototype,r),n&&s(t,n),e}();t.default=a,e.exports=t.default},91:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n=c(r(92)),o=c(r(93)),i=c(r(94)),s=c(r(95)),a=c(r(17));function c(e){return e&&e.__esModule?e:{default:e}}var u=function(){function e(e,t){if(void 0===t&&(t=!1),null==e||""===e)throw new Error("UserAgent parameter can't be empty");this._ua=e,this.parsedResult={},!0!==t&&this.parse()}var t=e.prototype;return t.getUA=function(){return this._ua},t.test=function(e){return e.test(this._ua)},t.parseBrowser=function(){var e=this;this.parsedResult.browser={};var t=a.default.find(n.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.browser=t.describe(this.getUA())),this.parsedResult.browser},t.getBrowser=function(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()},t.getBrowserName=function(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""},t.getBrowserVersion=function(){return this.getBrowser().version},t.getOS=function(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()},t.parseOS=function(){var e=this;this.parsedResult.os={};var t=a.default.find(o.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.os=t.describe(this.getUA())),this.parsedResult.os},t.getOSName=function(e){var t=this.getOS().name;return e?String(t).toLowerCase()||"":t||""},t.getOSVersion=function(){return this.getOS().version},t.getPlatform=function(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()},t.getPlatformType=function(e){void 0===e&&(e=!1);var t=this.getPlatform().type;return e?String(t).toLowerCase()||"":t||""},t.parsePlatform=function(){var e=this;this.parsedResult.platform={};var t=a.default.find(i.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.platform=t.describe(this.getUA())),this.parsedResult.platform},t.getEngine=function(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()},t.getEngineName=function(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""},t.parseEngine=function(){var e=this;this.parsedResult.engine={};var t=a.default.find(s.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.engine=t.describe(this.getUA())),this.parsedResult.engine},t.parse=function(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this},t.getResult=function(){return a.default.assign({},this.parsedResult)},t.satisfies=function(e){var t=this,r={},n=0,o={},i=0;if(Object.keys(e).forEach((function(t){var s=e[t];"string"==typeof s?(o[t]=s,i+=1):"object"==typeof s&&(r[t]=s,n+=1)})),n>0){var s=Object.keys(r),c=a.default.find(s,(function(e){return t.isOS(e)}));if(c){var u=this.satisfies(r[c]);if(void 0!==u)return u}var l=a.default.find(s,(function(e){return t.isPlatform(e)}));if(l){var d=this.satisfies(r[l]);if(void 0!==d)return d}}if(i>0){var f=Object.keys(o),h=a.default.find(f,(function(e){return t.isBrowser(e,!0)}));if(void 0!==h)return this.compareVersion(o[h])}},t.isBrowser=function(e,t){void 0===t&&(t=!1);var r=this.getBrowserName().toLowerCase(),n=e.toLowerCase(),o=a.default.getBrowserTypeByAlias(n);return t&&o&&(n=o.toLowerCase()),n===r},t.compareVersion=function(e){var t=[0],r=e,n=!1,o=this.getBrowserVersion();if("string"==typeof o)return">"===e[0]||"<"===e[0]?(r=e.substr(1),"="===e[1]?(n=!0,r=e.substr(2)):t=[],">"===e[0]?t.push(1):t.push(-1)):"="===e[0]?r=e.substr(1):"~"===e[0]&&(n=!0,r=e.substr(1)),t.indexOf(a.default.compareVersions(o,r,n))>-1},t.isOS=function(e){return this.getOSName(!0)===String(e).toLowerCase()},t.isPlatform=function(e){return this.getPlatformType(!0)===String(e).toLowerCase()},t.isEngine=function(e){return this.getEngineName(!0)===String(e).toLowerCase()},t.is=function(e,t){return void 0===t&&(t=!1),this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)},t.some=function(e){var t=this;return void 0===e&&(e=[]),e.some((function(e){return t.is(e)}))},e}();t.default=u,e.exports=t.default},92:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,o=(n=r(17))&&n.__esModule?n:{default:n},i=/version\/(\d+(\.?_?\d+)+)/i,s=[{test:[/googlebot/i],describe:function(e){var t={name:"Googlebot"},r=o.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||o.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/opera/i],describe:function(e){var t={name:"Opera"},r=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/opr\/|opios/i],describe:function(e){var t={name:"Opera"},r=o.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||o.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/SamsungBrowser/i],describe:function(e){var t={name:"Samsung Internet for Android"},r=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/Whale/i],describe:function(e){var t={name:"NAVER Whale Browser"},r=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/MZBrowser/i],describe:function(e){var t={name:"MZ Browser"},r=o.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||o.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/focus/i],describe:function(e){var t={name:"Focus"},r=o.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||o.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/swing/i],describe:function(e){var t={name:"Swing"},r=o.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||o.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/coast/i],describe:function(e){var t={name:"Opera Coast"},r=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(e){var t={name:"Opera Touch"},r=o.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/yabrowser/i],describe:function(e){var t={name:"Yandex Browser"},r=o.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/ucbrowser/i],describe:function(e){var t={name:"UC Browser"},r=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/Maxthon|mxios/i],describe:function(e){var t={name:"Maxthon"},r=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/epiphany/i],describe:function(e){var t={name:"Epiphany"},r=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/puffin/i],describe:function(e){var t={name:"Puffin"},r=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/sleipnir/i],describe:function(e){var t={name:"Sleipnir"},r=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/k-meleon/i],describe:function(e){var t={name:"K-Meleon"},r=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/micromessenger/i],describe:function(e){var t={name:"WeChat"},r=o.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/qqbrowser/i],describe:function(e){var t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},r=o.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/msie|trident/i],describe:function(e){var t={name:"Internet Explorer"},r=o.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/\sedg\//i],describe:function(e){var t={name:"Microsoft Edge"},r=o.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/edg([ea]|ios)/i],describe:function(e){var t={name:"Microsoft Edge"},r=o.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/vivaldi/i],describe:function(e){var t={name:"Vivaldi"},r=o.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/seamonkey/i],describe:function(e){var t={name:"SeaMonkey"},r=o.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/sailfish/i],describe:function(e){var t={name:"Sailfish"},r=o.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return r&&(t.version=r),t}},{test:[/silk/i],describe:function(e){var t={name:"Amazon Silk"},r=o.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/phantom/i],describe:function(e){var t={name:"PhantomJS"},r=o.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/slimerjs/i],describe:function(e){var t={name:"SlimerJS"},r=o.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t={name:"BlackBerry"},r=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t={name:"WebOS Browser"},r=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/bada/i],describe:function(e){var t={name:"Bada"},r=o.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/tizen/i],describe:function(e){var t={name:"Tizen"},r=o.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/qupzilla/i],describe:function(e){var t={name:"QupZilla"},r=o.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/firefox|iceweasel|fxios/i],describe:function(e){var t={name:"Firefox"},r=o.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/electron/i],describe:function(e){var t={name:"Electron"},r=o.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/MiuiBrowser/i],describe:function(e){var t={name:"Miui"},r=o.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/chromium/i],describe:function(e){var t={name:"Chromium"},r=o.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/chrome|crios|crmo/i],describe:function(e){var t={name:"Chrome"},r=o.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/GSA/i],describe:function(e){var t={name:"Google Search"},r=o.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){var t=!e.test(/like android/i),r=e.test(/android/i);return t&&r},describe:function(e){var t={name:"Android Browser"},r=o.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/playstation 4/i],describe:function(e){var t={name:"PlayStation 4"},r=o.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/safari|applewebkit/i],describe:function(e){var t={name:"Safari"},r=o.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/.*/i],describe:function(e){var t=-1!==e.search("\\(")?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:o.default.getFirstMatch(t,e),version:o.default.getSecondMatch(t,e)}}}];t.default=s,e.exports=t.default},93:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,o=(n=r(17))&&n.__esModule?n:{default:n},i=r(18),s=[{test:[/Roku\/DVP/],describe:function(e){var t=o.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:i.OS_MAP.Roku,version:t}}},{test:[/windows phone/i],describe:function(e){var t=o.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:i.OS_MAP.WindowsPhone,version:t}}},{test:[/windows /i],describe:function(e){var t=o.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),r=o.default.getWindowsVersionName(t);return{name:i.OS_MAP.Windows,version:t,versionName:r}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(e){var t={name:i.OS_MAP.iOS},r=o.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return r&&(t.version=r),t}},{test:[/macintosh/i],describe:function(e){var t=o.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),r=o.default.getMacOSVersionName(t),n={name:i.OS_MAP.MacOS,version:t};return r&&(n.versionName=r),n}},{test:[/(ipod|iphone|ipad)/i],describe:function(e){var t=o.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:i.OS_MAP.iOS,version:t}}},{test:function(e){var t=!e.test(/like android/i),r=e.test(/android/i);return t&&r},describe:function(e){var t=o.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),r=o.default.getAndroidVersionName(t),n={name:i.OS_MAP.Android,version:t};return r&&(n.versionName=r),n}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t=o.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),r={name:i.OS_MAP.WebOS};return t&&t.length&&(r.version=t),r}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t=o.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||o.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||o.default.getFirstMatch(/\bbb(\d+)/i,e);return{name:i.OS_MAP.BlackBerry,version:t}}},{test:[/bada/i],describe:function(e){var t=o.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:i.OS_MAP.Bada,version:t}}},{test:[/tizen/i],describe:function(e){var t=o.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:i.OS_MAP.Tizen,version:t}}},{test:[/linux/i],describe:function(){return{name:i.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:i.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(e){var t=o.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:i.OS_MAP.PlayStation4,version:t}}}];t.default=s,e.exports=t.default},94:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,o=(n=r(17))&&n.__esModule?n:{default:n},i=r(18),s=[{test:[/googlebot/i],describe:function(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe:function(e){var t=o.default.getFirstMatch(/(can-l01)/i,e)&&"Nova",r={type:i.PLATFORMS_MAP.mobile,vendor:"Huawei"};return t&&(r.model=t),r}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:i.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:i.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:i.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:i.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:i.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:i.PLATFORMS_MAP.tablet}}},{test:function(e){var t=e.test(/ipod|iphone/i),r=e.test(/like (ipod|iphone)/i);return t&&!r},describe:function(e){var t=o.default.getFirstMatch(/(ipod|iphone)/i,e);return{type:i.PLATFORMS_MAP.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:i.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe:function(){return{type:i.PLATFORMS_MAP.mobile}}},{test:function(e){return"blackberry"===e.getBrowserName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(e){return"bada"===e.getBrowserName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.mobile}}},{test:function(e){return"windows phone"===e.getBrowserName()},describe:function(){return{type:i.PLATFORMS_MAP.mobile,vendor:"Microsoft"}}},{test:function(e){var t=Number(String(e.getOSVersion()).split(".")[0]);return"android"===e.getOSName(!0)&&t>=3},describe:function(){return{type:i.PLATFORMS_MAP.tablet}}},{test:function(e){return"android"===e.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.mobile}}},{test:function(e){return"macos"===e.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(e){return"windows"===e.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.desktop}}},{test:function(e){return"linux"===e.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.desktop}}},{test:function(e){return"playstation 4"===e.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.tv}}},{test:function(e){return"roku"===e.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.tv}}}];t.default=s,e.exports=t.default},95:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,o=(n=r(17))&&n.__esModule?n:{default:n},i=r(18),s=[{test:function(e){return"microsoft edge"===e.getBrowserName(!0)},describe:function(e){if(/\sedg\//i.test(e))return{name:i.ENGINE_MAP.Blink};var t=o.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:i.ENGINE_MAP.EdgeHTML,version:t}}},{test:[/trident/i],describe:function(e){var t={name:i.ENGINE_MAP.Trident},r=o.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){return e.test(/presto/i)},describe:function(e){var t={name:i.ENGINE_MAP.Presto},r=o.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){var t=e.test(/gecko/i),r=e.test(/like gecko/i);return t&&!r},describe:function(e){var t={name:i.ENGINE_MAP.Gecko},r=o.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:i.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(e){var t={name:i.ENGINE_MAP.WebKit},r=o.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}}];t.default=s,e.exports=t.default}})},7325:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(7758),o=r.n(n)()((function(e){return e[1]}));o.push([e.id,".ck-content pre>code.ck-suggestion-marker-formatBlock{box-shadow:-7px 0 0 0 #ededed,-10px 0 0 0 var(--ck-color-suggestion-marker-format-border);display:block}.ck-content pre>code.ck-suggestion-marker-formatBlock.ck-suggestion-marker--active{box-shadow:-5px 0 0 0 #ededed,-8px 0 0 0 var(--ck-color-suggestion-marker-format-border-active)}",""]);const i=o},8717:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(7758),o=r.n(n)()((function(e){return e[1]}));o.push([e.id,".ck-content .ck-suggestion-marker-deletion.ck-widget.ck-horizontal-line{background-color:var(--ck-color-suggestion-widget-deletion-background)}.ck-content .ck-suggestion-marker-deletion.ck-widget.ck-horizontal-line.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-deletion-background-active)}.ck-content .ck-suggestion-marker-insertion.ck-widget.ck-horizontal-line{background-color:var(--ck-color-suggestion-widget-insertion-background)}.ck-content .ck-suggestion-marker-insertion.ck-widget.ck-horizontal-line.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-insertion-background-active)}",""]);const i=o},1437:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(7758),o=r.n(n)()((function(e){return e[1]}));o.push([e.id,".ck-content .ck-widget.image>figcaption.ck-suggestion-marker-deletion{background-color:var(--ck-color-suggestion-widget-deletion-background);border:none}.ck-content .ck-widget.image>figcaption.ck-suggestion-marker-deletion.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-deletion-background-active)}.ck-content .ck-widget.image>figcaption.ck-suggestion-marker-insertion{background-color:var(--ck-color-suggestion-widget-insertion-background);border:none}.ck-content .ck-widget.image>figcaption.ck-suggestion-marker-insertion.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-insertion-background-active)}.ck-content .ck-suggestion-marker-deletion.ck-widget.image{background-color:var(--ck-color-suggestion-widget-deletion-background)}.ck-content .ck-suggestion-marker-deletion.ck-widget.image img{opacity:.6}.ck-content .ck-suggestion-marker-deletion.ck-widget.image figcaption{background-color:var(--ck-color-suggestion-widget-deletion-background)}.ck-content .ck-suggestion-marker-deletion.ck-widget.image.ck-suggestion-marker--active,.ck-content .ck-suggestion-marker-deletion.ck-widget.image.ck-suggestion-marker--active figcaption{background-color:var(--ck-color-suggestion-widget-deletion-background-active)}.ck-content .ck-suggestion-marker-insertion.ck-widget.image,.ck-content .ck-suggestion-marker-insertion.ck-widget.image figcaption{background-color:var(--ck-color-suggestion-widget-insertion-background)}.ck-content .ck-suggestion-marker-insertion.ck-widget.image.ck-suggestion-marker--active,.ck-content .ck-suggestion-marker-insertion.ck-widget.image.ck-suggestion-marker--active figcaption{background-color:var(--ck-color-suggestion-widget-insertion-background-active)}",""]);const i=o},2040:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(7758),o=r.n(n)()((function(e){return e[1]}));o.push([e.id,".ck-content .ck-suggestion-marker-deletion.ck-widget.media{background-color:var(--ck-color-suggestion-widget-deletion-background)}.ck-content .ck-suggestion-marker-deletion.ck-widget.media .ck-media__wrapper{opacity:.6}.ck-content .ck-suggestion-marker-deletion.ck-widget.media.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-deletion-background-active)}.ck-content .ck-suggestion-marker-insertion.ck-widget.media{background-color:var(--ck-color-suggestion-widget-insertion-background)}.ck-content .ck-suggestion-marker-insertion.ck-widget.media.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-insertion-background-active)}",""]);const i=o},6366:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(7758),o=r.n(n)()((function(e){return e[1]}));o.push([e.id,".ck-content .ck-suggestion-marker-deletion.ck-widget.page-break{background-color:var(--ck-color-suggestion-widget-deletion-background)}.ck-content .ck-suggestion-marker-deletion.ck-widget.page-break.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-deletion-background-active)}.ck-content .ck-suggestion-marker-insertion.ck-widget.page-break{background-color:var(--ck-color-suggestion-widget-insertion-background)}.ck-content .ck-suggestion-marker-insertion.ck-widget.page-break.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-insertion-background-active)}",""]);const i=o},7153:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(7758),o=r.n(n)()((function(e){return e[1]}));o.push([e.id,":root{--ck-color-suggestion-widget-th-insertion-background:rgba(102,229,119,.12);--ck-color-suggestion-widget-th-insertion-background-active:rgba(37,218,61,.14);--ck-color-suggestion-widget-th-deletion-background:rgba(229,102,134,.14);--ck-color-suggestion-widget-th-deletion-background-active:rgba(196,33,74,.16)}.ck-content figure.table .ck-suggestion-marker-formatBlock{box-shadow:-3px 0 0 0 var(--ck-color-suggestion-marker-format-border)}.ck-content figure.table .ck-suggestion-marker-formatBlock.ck-suggestion-marker--active{box-shadow:-3px 0 0 0 var(--ck-color-suggestion-marker-format-border-active)}.ck-content .ck-widget.table>figcaption.ck-suggestion-marker-deletion{background-color:var(--ck-color-suggestion-widget-deletion-background);border:none}.ck-content .ck-widget.table>figcaption.ck-suggestion-marker-deletion.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-deletion-background-active)}.ck-content .ck-widget.table>figcaption.ck-suggestion-marker-insertion{background-color:var(--ck-color-suggestion-widget-insertion-background);border:none}.ck-content .ck-widget.table>figcaption.ck-suggestion-marker-insertion.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-insertion-background-active)}.ck-content .ck-suggestion-marker-insertion.table{border-color:var(--ck-color-suggestion-marker-insertion-border)}.ck-content .ck-suggestion-marker-insertion.table>figcaption{background-color:var(--ck-color-suggestion-widget-insertion-background)}.ck-content .ck-suggestion-marker-insertion.table>table>tbody>tr>th,.ck-content .ck-suggestion-marker-insertion.table>table>thead>tr>th{background-color:var(--ck-color-suggestion-widget-th-insertion-background);border-color:var(--ck-color-suggestion-marker-insertion-border)}.ck-content .ck-suggestion-marker-insertion.table>table>tbody>tr>td{background-color:var(--ck-color-suggestion-widget-insertion-background);border-color:var(--ck-color-suggestion-marker-insertion-border)}.ck-content .ck-suggestion-marker-insertion.ck-suggestion-marker--active.table{border-color:var(--ck-color-suggestion-marker-insertion-border-active)}.ck-content .ck-suggestion-marker-insertion.ck-suggestion-marker--active.table>figcaption{background-color:var(--ck-color-suggestion-widget-insertion-background-active)}.ck-content .ck-suggestion-marker-insertion.ck-suggestion-marker--active.table>table>tbody>tr>th,.ck-content .ck-suggestion-marker-insertion.ck-suggestion-marker--active.table>table>thead>tr>th{background-color:var(--ck-color-suggestion-widget-th-insertion-background-active);border-color:var(--ck-color-suggestion-marker-insertion-border-active)}.ck-content .ck-suggestion-marker-insertion.ck-suggestion-marker--active.table>table>tbody>tr>td{background-color:var(--ck-color-suggestion-widget-insertion-background-active);border-color:var(--ck-color-suggestion-marker-insertion-border-active)}.ck-content .ck-suggestion-marker-deletion.ck-widget.table{border-color:var(--ck-color-suggestion-marker-deletion-border)}.ck-content .ck-suggestion-marker-deletion.ck-widget.table>figcaption{background-color:var(--ck-color-suggestion-widget-deletion-background)}.ck-content .ck-suggestion-marker-deletion.ck-widget.table>table>tbody>tr>th,.ck-content .ck-suggestion-marker-deletion.ck-widget.table>table>thead>tr>th{background-color:var(--ck-color-suggestion-widget-th-deletion-background);border-color:var(--ck-color-suggestion-marker-deletion-border);text-decoration:none}.ck-content .ck-suggestion-marker-deletion.ck-widget.table>table>tbody>tr>td{background-color:var(--ck-color-suggestion-widget-deletion-background);border-color:var(--ck-color-suggestion-marker-deletion-border);text-decoration:none}.ck-content .ck-suggestion-marker-deletion.ck-suggestion-marker--active.table{border-color:var(--ck-color-suggestion-marker-deletion-border-active)}.ck-content .ck-suggestion-marker-deletion.ck-suggestion-marker--active.table>figcaption{background-color:var(--ck-color-suggestion-widget-deletion-background-active)}.ck-content .ck-suggestion-marker-deletion.ck-suggestion-marker--active.table>table>tbody>tr>th,.ck-content .ck-suggestion-marker-deletion.ck-suggestion-marker--active.table>table>thead>tr>th{background-color:var(--ck-color-suggestion-widget-th-deletion-background-active);border-color:var(--ck-color-suggestion-marker-deletion-border-active)}.ck-content .ck-suggestion-marker-deletion.ck-suggestion-marker--active.table>table>tbody>tr>td{background-color:var(--ck-color-suggestion-widget-deletion-background-active);border-color:var(--ck-color-suggestion-marker-deletion-border-active)}.ck-content .table th.ck-suggestion-marker-insertion{background-color:var(--ck-color-suggestion-widget-th-insertion-background)}.ck-content .table th.ck-suggestion-marker-insertion.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-th-insertion-background-active)}.ck-content .table th.ck-suggestion-marker-deletion{background-color:var(--ck-color-suggestion-widget-th-deletion-background);text-decoration:none}.ck-content .table th.ck-suggestion-marker-deletion.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-th-deletion-background-active)}.ck-content .table td.ck-suggestion-marker-insertion{background-color:var(--ck-color-suggestion-widget-insertion-background)}.ck-content .table td.ck-suggestion-marker-insertion.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-insertion-background-active)}.ck-content .table td.ck-suggestion-marker-deletion{background-color:var(--ck-color-suggestion-widget-deletion-background);text-decoration:none}.ck-content .table td.ck-suggestion-marker-deletion.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-deletion-background-active)}.ck-content .table td.ck-suggestion-marker-formatBlock,.ck-content .table td.ck-suggestion-marker-formatInline,.ck-content .table th.ck-suggestion-marker-formatBlock,.ck-content .table th.ck-suggestion-marker-formatInline{background-color:var(--ck-color-suggestion-widget-format-background);box-shadow:none}.ck-content .table td.ck-suggestion-marker-formatBlock.ck-suggestion-marker--active,.ck-content .table td.ck-suggestion-marker-formatInline.ck-suggestion-marker--active,.ck-content .table th.ck-suggestion-marker-formatBlock.ck-suggestion-marker--active,.ck-content .table th.ck-suggestion-marker-formatInline.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-format-background-active);box-shadow:none}",""]);const i=o},7374:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(7758),o=r.n(n)()((function(e){return e[1]}));o.push([e.id,":root{--ck-color-comment-box-border:#f2de02;--ck-color-suggestion-box-deletion-border:#d85a79;--ck-color-suggestion-box-insertion-border:#5ad86b;--ck-color-suggestion-box-format-border:#5ac1d8}.ck .ck-suggestion{border-top-left-radius:var(--ck-border-radius)}.ck .ck-annotation{border-left:3px solid transparent}.ck .ck-suggestion--disabled-comments .ck-annotation{min-height:80px}.ck .ck-comment,.ck .ck-comment__input-container,.ck .ck-thread__comment-count,.ck .ck-thread__header{border-left:3px solid var(--ck-color-comment-box-border)}.ck .ck-suggestion-insertion .ck-suggestion{border-left-color:var(--ck-color-suggestion-box-insertion-border)}.ck .ck-suggestion-deletion .ck-suggestion{border-left-color:var(--ck-color-suggestion-box-deletion-border)}.ck .ck-suggestion-replace .ck-suggestion{border-left-color:var(--ck-color-suggestion-box-insertion-border)}.ck .ck-suggestion-format .ck-suggestion{border-left-color:var(--ck-color-suggestion-box-format-border)}.ck .ck-suggestion-wrapper{outline:0;overflow:hidden}.ck .ck-suggestion-type{font-weight:700}.ck .ck-suggestion-color{border-radius:14px;box-shadow:0 0 0 1px #454545;display:inline-block;height:14px;margin:0 5px;vertical-align:text-bottom;width:14px}.ck .ck-suggestion-insertion .ck-comment,.ck .ck-suggestion-insertion .ck-comment__input-container,.ck .ck-suggestion-insertion .ck-thread__comment-count,.ck .ck-suggestion-replace .ck-comment,.ck .ck-suggestion-replace .ck-comment__input-container,.ck .ck-suggestion-replace .ck-thread__comment-count{border-left-color:var(--ck-color-suggestion-box-insertion-border)}.ck .ck-suggestion-deletion .ck-comment,.ck .ck-suggestion-deletion .ck-comment__input-container,.ck .ck-suggestion-deletion .ck-thread__comment-count{border-left-color:var(--ck-color-suggestion-box-deletion-border)}.ck .ck-suggestion-format .ck-comment,.ck .ck-suggestion-format .ck-comment__input-container,.ck .ck-suggestion-format .ck-thread__comment-count{border-left-color:var(--ck-color-suggestion-box-format-border)}",""]);const i=o},8290:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(7758),o=r.n(n)()((function(e){return e[1]}));o.push([e.id,':root{--ck-color-suggestion-marker-insertion-border:rgba(30,174,49,.35);--ck-color-suggestion-marker-insertion-border-active:rgba(18,109,31,.5);--ck-color-suggestion-marker-insertion-background:rgba(102,229,119,.35);--ck-color-suggestion-marker-insertion-background-active:rgba(37,218,61,.5);--ck-color-suggestion-marker-deletion-border:rgba(174,30,66,.35);--ck-color-suggestion-marker-deletion-border-active:rgba(109,18,41,.5);--ck-color-suggestion-marker-deletion-background:rgba(229,102,134,.35);--ck-color-suggestion-marker-deletion-background-active:rgba(218,37,82,.5);--ck-color-suggestion-marker-deletion-stroke:rgba(87,15,33,.5);--ck-color-suggestion-marker-format-border:#99d7e6;--ck-color-suggestion-marker-format-border-active:#5cc0d6;--ck-color-suggestion-widget-insertion-background:rgba(102,229,119,.05);--ck-color-suggestion-widget-insertion-background-active:rgba(37,218,61,.07);--ck-color-suggestion-widget-deletion-background:rgba(229,102,134,.05);--ck-color-suggestion-widget-deletion-background-active:rgba(196,33,74,.07);--ck-color-suggestion-widget-format-background:rgba(10,160,194,.09);--ck-color-suggestion-widget-format-background-active:rgba(10,160,194,.16)}.ck-content .ck-suggestion-marker-insertion{background:var(--ck-color-suggestion-marker-insertion-background);border-bottom:3px solid var(--ck-color-suggestion-marker-insertion-border);border-top:3px solid var(--ck-color-suggestion-marker-insertion-border)}.ck-content .ck-suggestion-marker-insertion.ck-suggestion-marker--active{background:var(--ck-color-suggestion-marker-insertion-background-active);border-color:var(--ck-color-suggestion-marker-insertion-border-active)}.ck-content .ck-suggestion-marker-insertion.ck-widget{background:none;border:3px solid var(--ck-color-suggestion-marker-insertion-border);text-decoration:none}.ck-content .ck-suggestion-marker-insertion.ck-widget.ck-suggestion-marker--active{border-color:var(--ck-color-suggestion-marker-insertion-border-active)}.ck-content .ck-suggestion-marker-deletion{background:var(--ck-color-suggestion-marker-deletion-background);border-bottom:3px solid var(--ck-color-suggestion-marker-deletion-border);border-top:3px solid var(--ck-color-suggestion-marker-deletion-border);text-decoration:line-through;text-decoration-color:var(--ck-color-suggestion-marker-deletion-stroke);text-decoration-thickness:3px}.ck-content .ck-suggestion-marker-deletion.ck-suggestion-marker--active{background:var(--ck-color-suggestion-marker-deletion-background-active);border-color:var(--ck-color-suggestion-marker-deletion-border-active)}.ck-content .ck-suggestion-marker-deletion.ck-widget{background:none;border:3px solid var(--ck-color-suggestion-marker-deletion-border);text-decoration:none}.ck-content .ck-suggestion-marker-deletion.ck-widget.ck-suggestion-marker--active{border-color:var(--ck-color-suggestion-marker-deletion-border-active)}.ck-content .ck-suggestion-marker-merge:after{background:var(--ck-color-suggestion-marker-deletion-background);border-bottom:3px solid var(--ck-color-suggestion-marker-deletion-border);border-top:3px solid var(--ck-color-suggestion-marker-deletion-border);color:var(--ck-color-suggestion-marker-deletion-stroke);content:"¶";text-decoration:line-through;text-decoration-color:var(--ck-color-suggestion-marker-deletion-stroke)}.ck-content .ck-suggestion-marker-merge.ck-suggestion-marker--active:after{background:var(--ck-color-suggestion-marker-deletion-background-active);border-color:var(--ck-color-suggestion-marker-deletion-border-active)}.ck-content .ck-suggestion-marker-split:after{background:var(--ck-color-suggestion-marker-insertion-background);border-bottom:3px solid var(--ck-color-suggestion-marker-insertion-border);border-top:3px solid var(--ck-color-suggestion-marker-insertion-border);color:var(--ck-color-suggestion-marker-insertion-border);content:"¶"}.ck-content .ck-suggestion-marker-split.ck-suggestion-marker--active:after{background:var(--ck-color-suggestion-marker-insertion-background-active);border-color:var(--ck-color-suggestion-marker-insertion-border-active)}.ck-content .ck-suggestion-marker-formatInline{border-bottom:3px solid var(--ck-color-suggestion-marker-format-border);border-top:3px solid var(--ck-color-suggestion-marker-format-border)}.ck-content .ck-suggestion-marker-formatInline.ck-suggestion-marker--active{border-color:var(--ck-color-suggestion-marker-format-border-active)}.ck-content .ck-suggestion-marker-formatInline.ck-widget{background:none;border:3px solid var(--ck-color-suggestion-marker-format-border)}.ck-content .ck-suggestion-marker-formatInline.ck-widget.ck-suggestion-marker--active{border-color:var(--ck-color-suggestion-marker-format-border-active)}.ck-content .ck-suggestion-marker-formatBlock{background:none;border:0;box-shadow:-7px 0 0 0 var(--ck-color-base-background),-10px 0 0 0 var(--ck-color-suggestion-marker-format-border)}.ck-content .ck-suggestion-marker-formatBlock.ck-suggestion-marker--active{box-shadow:-5px 0 0 0 var(--ck-color-base-background),-8px 0 0 0 var(--ck-color-suggestion-marker-format-border-active)}.ck-content ol .ck-suggestion-marker-formatBlock,.ck-content ul .ck-suggestion-marker-formatBlock{box-shadow:-2px 0 0 0 var(--ck-color-base-background),-5px 0 0 0 var(--ck-color-suggestion-marker-format-border)}.ck-content ol .ck-suggestion-marker-formatBlock.ck-suggestion-marker--active,.ck-content ul .ck-suggestion-marker-formatBlock.ck-suggestion-marker--active{box-shadow:-2px 0 0 0 var(--ck-color-base-background),-5px 0 0 0 var(--ck-color-suggestion-marker-format-border-active)}',""]);const i=o},4808:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(7758),o=r.n(n)()((function(e){return e[1]}));o.push([e.id,":root{--ck-user-colors--0:#6d78e8;--ck-user-colors--0-alpha:rgba(109,120,232,.15);--ck-user-colors--1:#007a6c;--ck-user-colors--1-alpha:rgba(0,122,108,.15);--ck-user-colors--2:#ba4545;--ck-user-colors--2-alpha:rgba(186,69,69,.15);--ck-user-colors--3:#5635b1;--ck-user-colors--3-alpha:rgba(86,53,177,.15);--ck-user-colors--4:#548a2e;--ck-user-colors--4-alpha:rgba(84,138,46,.15);--ck-user-colors--5:#c3185d;--ck-user-colors--5-alpha:rgba(195,24,93,.15);--ck-user-colors--6:#ea4343;--ck-user-colors--6-alpha:rgba(234,67,67,.15);--ck-user-colors--7:#0bc3d0;--ck-user-colors--7-alpha:rgba(11,195,208,.15);--ck-user-dot-size:6px}.ck .ck-user__color--0{color:var(--ck-user-colors--0)}.ck .ck-user__bg-color--0{background-color:var(--ck-user-colors--0)}.ck .ck-user__selection--0{background-color:var(--ck-user-colors--0-alpha)}.ck .ck-user__selection--0.ck-widget{background-color:transparent;border:3px solid var(--ck-user-colors--0)}.ck .ck-user__marker--0,.ck .ck-user__marker--0 .ck-user__marker-dot,.ck .ck-user__marker--0:after{background-color:var(--ck-user-colors--0)}.ck .ck-user__marker--0 .ck-user__marker-line{border:1px solid var(--ck-user-colors--0)}.ck .ck-user__color--1{color:var(--ck-user-colors--1)}.ck .ck-user__bg-color--1{background-color:var(--ck-user-colors--1)}.ck .ck-user__selection--1{background-color:var(--ck-user-colors--1-alpha)}.ck .ck-user__selection--1.ck-widget{background-color:transparent;border:3px solid var(--ck-user-colors--1)}.ck .ck-user__marker--1,.ck .ck-user__marker--1 .ck-user__marker-dot,.ck .ck-user__marker--1:after{background-color:var(--ck-user-colors--1)}.ck .ck-user__marker--1 .ck-user__marker-line{border:1px solid var(--ck-user-colors--1)}.ck .ck-user__color--2{color:var(--ck-user-colors--2)}.ck .ck-user__bg-color--2{background-color:var(--ck-user-colors--2)}.ck .ck-user__selection--2{background-color:var(--ck-user-colors--2-alpha)}.ck .ck-user__selection--2.ck-widget{background-color:transparent;border:3px solid var(--ck-user-colors--2)}.ck .ck-user__marker--2,.ck .ck-user__marker--2 .ck-user__marker-dot,.ck .ck-user__marker--2:after{background-color:var(--ck-user-colors--2)}.ck .ck-user__marker--2 .ck-user__marker-line{border:1px solid var(--ck-user-colors--2)}.ck .ck-user__color--3{color:var(--ck-user-colors--3)}.ck .ck-user__bg-color--3{background-color:var(--ck-user-colors--3)}.ck .ck-user__selection--3{background-color:var(--ck-user-colors--3-alpha)}.ck .ck-user__selection--3.ck-widget{background-color:transparent;border:3px solid var(--ck-user-colors--3)}.ck .ck-user__marker--3,.ck .ck-user__marker--3 .ck-user__marker-dot,.ck .ck-user__marker--3:after{background-color:var(--ck-user-colors--3)}.ck .ck-user__marker--3 .ck-user__marker-line{border:1px solid var(--ck-user-colors--3)}.ck .ck-user__color--4{color:var(--ck-user-colors--4)}.ck .ck-user__bg-color--4{background-color:var(--ck-user-colors--4)}.ck .ck-user__selection--4{background-color:var(--ck-user-colors--4-alpha)}.ck .ck-user__selection--4.ck-widget{background-color:transparent;border:3px solid var(--ck-user-colors--4)}.ck .ck-user__marker--4,.ck .ck-user__marker--4 .ck-user__marker-dot,.ck .ck-user__marker--4:after{background-color:var(--ck-user-colors--4)}.ck .ck-user__marker--4 .ck-user__marker-line{border:1px solid var(--ck-user-colors--4)}.ck .ck-user__color--5{color:var(--ck-user-colors--5)}.ck .ck-user__bg-color--5{background-color:var(--ck-user-colors--5)}.ck .ck-user__selection--5{background-color:var(--ck-user-colors--5-alpha)}.ck .ck-user__selection--5.ck-widget{background-color:transparent;border:3px solid var(--ck-user-colors--5)}.ck .ck-user__marker--5,.ck .ck-user__marker--5 .ck-user__marker-dot,.ck .ck-user__marker--5:after{background-color:var(--ck-user-colors--5)}.ck .ck-user__marker--5 .ck-user__marker-line{border:1px solid var(--ck-user-colors--5)}.ck .ck-user__color--6{color:var(--ck-user-colors--6)}.ck .ck-user__bg-color--6{background-color:var(--ck-user-colors--6)}.ck .ck-user__selection--6{background-color:var(--ck-user-colors--6-alpha)}.ck .ck-user__selection--6.ck-widget{background-color:transparent;border:3px solid var(--ck-user-colors--6)}.ck .ck-user__marker--6,.ck .ck-user__marker--6 .ck-user__marker-dot,.ck .ck-user__marker--6:after{background-color:var(--ck-user-colors--6)}.ck .ck-user__marker--6 .ck-user__marker-line{border:1px solid var(--ck-user-colors--6)}.ck .ck-user__color--7{color:var(--ck-user-colors--7)}.ck .ck-user__bg-color--7{background-color:var(--ck-user-colors--7)}.ck .ck-user__selection--7{background-color:var(--ck-user-colors--7-alpha)}.ck .ck-user__selection--7.ck-widget{background-color:transparent;border:3px solid var(--ck-user-colors--7)}.ck .ck-user__marker--7,.ck .ck-user__marker--7 .ck-user__marker-dot,.ck .ck-user__marker--7:after{background-color:var(--ck-user-colors--7)}.ck .ck-user__marker--7 .ck-user__marker-line{border:1px solid var(--ck-user-colors--7)}",""]);const i=o},7678:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(7758),o=r.n(n)()((function(e){return e[1]}));o.push([e.id,":root{--ck-user-avatar-size:40px;--ck-user-avatar-background:#3670ab;--ck-user-avatar-color:#fff}.ck.ck-user{align-items:center;background-color:var(--ck-user-avatar-background);border-radius:50%;display:flex;height:var(--ck-user-avatar-size);justify-content:center;min-height:var(--ck-user-avatar-size);min-width:var(--ck-user-avatar-size);position:relative;width:var(--ck-user-avatar-size)}.ck.ck-user__name{color:var(--ck-user-avatar-color);cursor:default;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ck.ck-user__name.ck-user__name--hidden{display:none}.ck.ck-user__img{background-color:var(--ck-user-avatar-background);background-position:50%;background-repeat:no-repeat;background-size:cover;border:2px solid var(--ck-user-avatar-background);border-radius:50%;display:none;height:inherit;width:inherit}.ck.ck-user__img.ck-user__anonymous{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%23FFF' d='M9.8 20H2c0-5.7 5-5.7 6-7l.2-.8c-1.6-.8-2.7-2.7-2.7-5 0-2.8 2-5.2 4.3-5.2S14 4.4 14 7.3c0 2.2-1 4-2.6 5l.2.6c1.2 1.3 6 1.4 6 7H9.8z'/%3E%3C/svg%3E\");display:block}.ck.ck-user__img.ck-user__anonymous+.ck-user__name{display:none}.ck.ck-user__img.ck-user__avatar{background-color:#fff;display:block}.ck.ck-user__img.ck-user__img--hidden{display:none}.ck.ck-user__notification{align-items:center;background:var(--ck-color-base-background);border:2px solid var(--ck-color-base-background);border-radius:50%;box-sizing:content-box;display:flex;height:15px;justify-content:center;overflow:hidden;position:absolute;right:-7px;top:-8px;transform:translateZ(0);width:15px}.ck.ck-user__notification .ck-user__icon{background:var(--ck-color-base-background);color:var(--ck-color-annotation-info);height:19px;max-height:19px;max-width:19px;min-height:19px;min-width:19px;width:19px}",""]);const i=o},3174:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(7758),o=r.n(n)()((function(e){return e[1]}));o.push([e.id,":root{--ck-ai-dropdown-view-width:250px;--ck-ai-dropdown-view-list-max-height:250px}.ck.ck-ai-commands-search{width:var(--ck-ai-dropdown-view-width)}.ck.ck-ai-commands-search>.ck-labeled-field-view{padding:var(--ck-spacing-large)}.ck.ck-ai-commands-search>.ck-labeled-field-view .ck-input{min-width:unset}.ck.ck-ai-commands-search>.ck-search__results{border-top:1px solid var(--ck-color-base-border)}.ck.ck-ai-commands-search>.ck-search__results>.ck-list{max-height:var(--ck-ai-dropdown-view-list-max-height);overflow:auto}",""]);const i=o},7415:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(7758),o=r.n(n)()((function(e){return e[1]}));o.push([e.id,":root{--ck-ai-form-view-width:600px;--ck-ai-form-content-height:175px;--ck-ai-form-content-background:#fafafa;--ck-ai-form-history-font-size:.9em;--ck-ai-form-error-background:var(--ck-color-light-red)}.ck .ck-ai-form{max-width:100%;width:var(--ck-ai-form-view-width)}@media screen and (max-width:600px){.ck .ck-ai-form{--ck-ai-form-view-width:100vw}}.ck .ck-ai-form .ck-ai-form-content{padding:var(--ck-spacing-large);width:100%}.ck .ck-ai-form .ck-ai-form-content .ck-input{width:100%}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area-wrapper{border:1px solid var(--ck-color-base-border);border-radius:2px;max-height:var(--ck-ai-form-content-height);overflow-y:auto;width:100%}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area-wrapper:focus{border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),0 0;outline:none}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area{background-color:var(--ck-ai-form-content-background);display:flex}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area.ck-ai-form__content-area--processing{--ck-color-text:var(--ck-color-input-disabled-text);background-color:var(--ck-color-input-disabled-background)}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area .ck-ai-form__content-field{box-sizing:content-box;min-height:calc(var(--ck-line-height-base)*var(--ck-font-size-base));padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);white-space:normal;width:100%}[dir=ltr] .ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area .ck-ai-form__content-field{padding-right:0}[dir=rtl] .ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area .ck-ai-form__content-field{padding-left:0}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area .ck-ai-form__content-field>*{color:inherit;white-space:normal}[dir=ltr] .ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area .ck-spinner-container{margin-right:var(--ck-spacing-medium)}[dir=rtl] .ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area .ck-spinner-container{margin-left:var(--ck-spacing-medium)}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area .ck-ai-form__copy-button-wrapper{display:flex;flex-direction:column-reverse;padding-left:2px}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area .ck-ai-form__copy-button{bottom:1px;min-height:unset;min-width:unset;padding:4px;position:sticky;right:1px}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area .ck-ai-form__copy-button svg{--ck-icon-size:16px}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area .ck-ai-form__copy-button.ck-ai-form__copy-button--copied{color:inherit}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__toolbar{border:none;margin-bottom:calc(var(--ck-spacing-medium)*2);margin-top:var(--ck-spacing-medium);padding:0}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__loader{align-items:center;display:flex}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__loader .ck-spinner{box-sizing:border-box}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete{display:flex;justify-content:space-between}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete>.ck-labeled-field-view{flex-grow:1}[dir=ltr] .ck .ck-ai-form .ck-ai-form-content .ck-autocomplete>.ck.ck-ai-form__submit{margin-left:var(--ck-spacing-medium)}[dir=rtl] .ck .ck-ai-form .ck-ai-form-content .ck-autocomplete>.ck.ck-ai-form__submit{margin-right:var(--ck-spacing-medium)}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete>.ck.ck-ai-form__submit{border-color:var(--ck-ai-form-submit-button-border-color);color:var(--ck-ai-form-submit-button-text-color)}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete>.ck.ck-ai-form__submit.ck-disabled{border-color:var(--ck-ai-form-submit-button-disabled-border-color)}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete>.ck-labeled-field-view .ck-ai-form__toggle-history{font-size:var(--ck-font-size-tiny);position:absolute}[dir=ltr] .ck .ck-ai-form .ck-ai-form-content .ck-autocomplete>.ck-labeled-field-view .ck-ai-form__toggle-history{right:var(--ck-spacing-medium)}[dir=rtl] .ck .ck-ai-form .ck-ai-form-content .ck-autocomplete>.ck-labeled-field-view .ck-ai-form__toggle-history{left:var(--ck-spacing-medium)}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete>.ck-labeled-field-view .ck-ai-form__toggle-history{bottom:var(--ck-spacing-small);min-height:unset;min-width:unset;padding:4px;top:var(--ck-spacing-small)}[dir=ltr] .ck .ck-ai-form .ck-ai-form-content .ck-autocomplete .ck-textarea{padding-right:30px}[dir=rtl] .ck .ck-ai-form .ck-ai-form-content .ck-autocomplete .ck-textarea{padding-left:30px}@media screen and (max-width:600px){.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete .ck-textarea{--ck-input-width:auto}}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete .ck-search__results .ck-list .ck-list__group{grid-column-gap:0;grid-row-gap:0;display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete .ck-search__results .ck-list .ck-list__group>span{grid-area:1/1/2/2}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete .ck-search__results .ck-list .ck-list__group>.ck-button{background:none;font-size:var(--ck-ai-form-history-font-size);grid-area:1/2/2/3;justify-self:start;margin:var(--ck-spacing-medium) 0 0;min-height:auto;padding:0}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete .ck-search__results .ck-list .ck-list__group>.ck-button .ck-button__label{line-height:inherit}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete .ck-search__results .ck-list .ck-list__group>.ck-button .ck-button__label:hover{text-decoration:underline}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete .ck-search__results .ck-list .ck-list__group>.ck-list{grid-area:2/1/3/3}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete .ck-search__results .ck-list .ck-list__group>.ck-list .ck-list__item .ck-button .ck-button__label{font-size:var(--ck-ai-form-history-font-size);line-height:var(--ck-line-height-base);max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ck .ck-ai-form .ck-ai-form__error{align-items:center;background-color:var(--ck-ai-form-error-background);border-radius:2px;color:var(--ck-color-base-text);display:flex;justify-content:center;margin-bottom:var(--ck-spacing-medium);padding:var(--ck-spacing-medium)}",""]);const i=o},6589:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(7758),o=r.n(n)()((function(e){return e[1]}));o.push([e.id,":root{--ck-ai-form-submit-button-text-color:var(--ck-color-text);--ck-ai-form-submit-button-border-color:transparent;--ck-ai-form-submit-button-disabled-border-color:transparent;--ck-ai-toolbar-button-hover-color:var(--ck-color-text);--ck-color-ai-selection:rgba(31,176,255,.3)}.ck-ai-assistant-ui_theme{--ck-color-button-default-hover-background:#f3ecff;--ck-color-button-default-active-background:#f3ecff;--ck-color-button-on-background:#f3ecff;--ck-color-button-on-hover-background:#e8dff7;--ck-color-button-on-active-background:#f3ecff;--ck-color-button-on-disabled-background:#f3ecff;--ck-color-button-on-color:#743ccd;--ck-color-button-action-background:#743ccd;--ck-color-button-action-hover-background:#6c34c9;--ck-color-button-action-active-background:#6c34c9;--ck-color-button-action-disabled-background:#ba9de6;--ck-color-list-button-hover-background:#f3ecff;--ck-ai-form-content-background:#f9f9f9;--ck-ai-form-submit-button-text-color:var(--ck-color-button-on-color);--ck-ai-form-submit-button-border-color:var(--ck-color-button-action-background);--ck-ai-form-submit-button-disabled-border-color:var(--ck-color-button-action-disabled-background);--ck-ai-toolbar-button-hover-color:var(--ck-color-button-on-color);--ck-color-ai-selection:#e2d6f5}.ck-ai-assistant-button:hover,.ck-ai-commands-dropdown>.ck-button:hover{color:var(--ck-ai-toolbar-button-hover-color)}.ck span.ck-fake-ai-selection,.ck span.ck-fake-ai-selection-candidate{background:var(--ck-color-ai-selection)}.ck .ck-fake-ai-selection_collapsed{border-right:1px solid var(--ck-color-base-text);height:100%;margin-right:-1px;outline:1px solid hsla(0,0%,100%,.5)}.ck.ck-content.ck-ai-form__content-field h2{font-size:1.3em}.ck.ck-content.ck-ai-form__content-field h3{font-size:1.2em}.ck.ck-content.ck-ai-form__content-field h4,.ck.ck-content.ck-ai-form__content-field h5,.ck.ck-content.ck-ai-form__content-field h6{font-size:1.1em}.ck.ck-content.ck-ai-form__content-field h2,.ck.ck-content.ck-ai-form__content-field h3,.ck.ck-content.ck-ai-form__content-field h4,.ck.ck-content.ck-ai-form__content-field h5,.ck.ck-content.ck-ai-form__content-field h6,.ck.ck-content.ck-ai-form__content-field ol,.ck.ck-content.ck-ai-form__content-field p,.ck.ck-content.ck-ai-form__content-field ul{line-height:1.7em;margin-block-end:.5em;margin-block-start:.5em}.ck.ck-content.ck-ai-form__content-field>:first-child{margin-top:0}.ck.ck-content.ck-ai-form__content-field>:last-child{margin-bottom:0}",""]);const i=o},7758:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var r=e(t);return t[2]?"@media ".concat(t[2]," {").concat(r,"}"):r})).join("")},t.i=function(e,r,n){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(n)for(var i=0;i<this.length;i++){var s=this[i][0];null!=s&&(o[s]=!0)}for(var a=0;a<e.length;a++){var c=[].concat(e[a]);n&&o[c[0]]||(r&&(c[2]?c[2]="".concat(r," and ").concat(c[2]):c[2]=r),t.push(c))}},t}},3278:(e,t,r)=>{"use strict";var n,o=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},i=function(){var e={};return function(t){if(void 0===e[t]){var r=document.querySelector(t);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}e[t]=r}return e[t]}}(),s=[];function a(e){for(var t=-1,r=0;r<s.length;r++)if(s[r].identifier===e){t=r;break}return t}function c(e,t){for(var r={},n=[],o=0;o<e.length;o++){var i=e[o],c=t.base?i[0]+t.base:i[0],u=r[c]||0,l="".concat(c," ").concat(u);r[c]=u+1;var d=a(l),f={css:i[1],media:i[2],sourceMap:i[3]};-1!==d?(s[d].references++,s[d].updater(f)):s.push({identifier:l,updater:m(f,t),references:1}),n.push(l)}return n}function u(e){var t=document.createElement("style"),n=e.attributes||{};if(void 0===n.nonce){var o=r.nc;o&&(n.nonce=o)}if(Object.keys(n).forEach((function(e){t.setAttribute(e,n[e])})),"function"==typeof e.insert)e.insert(t);else{var s=i(e.insert||"head");if(!s)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");s.appendChild(t)}return t}var l,d=(l=[],function(e,t){return l[e]=t,l.filter(Boolean).join("\n")});function f(e,t,r,n){var o=r?"":n.media?"@media ".concat(n.media," {").concat(n.css,"}"):n.css;if(e.styleSheet)e.styleSheet.cssText=d(t,o);else{var i=document.createTextNode(o),s=e.childNodes;s[t]&&e.removeChild(s[t]),s.length?e.insertBefore(i,s[t]):e.appendChild(i)}}function h(e,t,r){var n=r.css,o=r.media,i=r.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var g=null,p=0;function m(e,t){var r,n,o;if(t.singleton){var i=p++;r=g||(g=u(t)),n=f.bind(null,r,i,!1),o=f.bind(null,r,i,!0)}else r=u(t),n=h.bind(null,r,t),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(r)};return n(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;n(e=t)}else o()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=o());var r=c(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var n=0;n<r.length;n++){var o=a(r[n]);s[o].references--}for(var i=c(e,t),u=0;u<r.length;u++){var l=a(r[u]);0===s[l].references&&(s[l].updater(),s.splice(l,1))}r=i}}}},2704:(e,t,r)=>{e.exports=r(7079)("./src/core.js")},1492:(e,t,r)=>{e.exports=r(7079)("./src/engine.js")},9273:(e,t,r)=>{e.exports=r(7079)("./src/ui.js")},2209:(e,t,r)=>{e.exports=r(7079)("./src/utils.js")},7079:e=>{"use strict";e.exports=CKEditor5.dll}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={id:n,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nc=void 0;var n={};(()=>{"use strict";r.r(n),r.d(n,{AIAdapter:()=>D,AIAssistant:()=>Xt,AIRequestError:()=>$,AITextAdapter:()=>or,AWSTextAdapter:()=>za,OpenAITextAdapter:()=>ur});var e=r(2209),t=r(2704),o=r(9273);var i=r(3278),s=r.n(i),a=r(4808),c={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};s()(a.Z,c);a.Z.locals;var u=r(7678),l={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};s()(u.Z,l);u.Z.locals;var d=r(7374),f={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};s()(d.Z,f);d.Z.locals;var h=r(8290),g={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};s()(h.Z,g);h.Z.locals;var p=r(1437),m={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};s()(p.Z,m);p.Z.locals;var k=r(8717),b={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};s()(k.Z,b);k.Z.locals;var x=r(2040),y={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};s()(x.Z,y);x.Z.locals;var v=r(6366),w={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};s()(v.Z,w);v.Z.locals;var _=r(7153),S={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};s()(_.Z,S);_.Z.locals;var E=r(7325),A={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};s()(E.Z,A);E.Z.locals;const P={paintRoller:'<svg viewBox="0 0 20 20" width="20" height="20" xmlns="http://www.w3.org/2000/svg"><path d="M3 3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V3Z"/><path d="M16 3.25a1.5 1.5 0 0 1 1.5 1.5v1.7a2.25 2.25 0 0 1-1.932 2.226l-4.424.632a.75.75 0 0 0-.644.743V11a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1H9a1 1 0 0 1-1-1v-5a1 1 0 0 1 1-1v-.95a2.25 2.25 0 0 1 1.932-2.226l4.424-.632A.75.75 0 0 0 16 6.449V3.25Z"/></svg>\n',robotPencil:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M9.61 2.66a1.406 1.406 0 1 0-1.407 0v.891H3.28a2.11 2.11 0 0 0-2.11 2.11v10.312a2.11 2.11 0 0 0 2.11 2.109h5.684l-.054-1.157.18-.25H3.28a.703.703 0 0 1-.703-.702V5.66c0-.389.315-.704.703-.704h11.25c.388 0 .703.315.703.704v2.484l.358-.497a2.492 2.492 0 0 1 1.048-.84V5.66a2.11 2.11 0 0 0-2.11-2.11H9.61v-.89Z"/><path d="M5.625 10.817c.518 0 .937-.63.937-1.407 0-.776-.42-1.406-.937-1.406-.518 0-.938.63-.938 1.406 0 .777.42 1.407.938 1.407Z"/><path d="M13.125 9.41c0 .777-.42 1.407-.938 1.407s-.937-.63-.937-1.407c0-.776.42-1.406.937-1.406.518 0 .938.63.938 1.406Z"/><path d="M.937 8.004A.937.937 0 0 0 0 8.942v1.875c0 .517.42.937.937.937v-3.75Z"/><path d="M6.128 12.51a.782.782 0 0 1 1.085.216c.272.408.907.707 1.693.707s1.421-.3 1.693-.707a.782.782 0 0 1 1.302.868c-.666 1-1.906 1.403-2.995 1.403-1.089 0-2.329-.404-2.995-1.403a.782.782 0 0 1 .217-1.085Z"/><path d="m16.987 8.91-.622.864 2.879 2.074.622-.864a.71.71 0 0 0-.161-.99l-1.728-1.245a.71.71 0 0 0-.99.161Z"/><path d="M11.635 19.951a.355.355 0 0 1-.449-.31l-.214-2.38 4.978-6.911 2.88 2.074-4.978 6.91-2.217.617Z"/></svg>',tableOfContents:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3 19a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v8.022a6.47 6.47 0 0 0-1.5-.709V2a.5.5 0 0 0-.5-.5H3a.5.5 0 0 0-.5.5v15a.5.5 0 0 0 .5.5h6.313c.173.534.412 1.037.709 1.5H3Z"/><path d="M9.174 14a6.489 6.489 0 0 0-.155 1H6v-1h3.174Z"/><path d="M10.022 12c-.202.316-.378.65-.524 1H4v-1h6.022Z"/><path d="M12.034 10c-.448.283-.86.62-1.224 1H6v-1h6.034Z"/><path d="M12 4v1H4V4h8Z"/><path d="M14 7V6H6v1h8Z"/><path d="M15 9V8H7v1h8Z"/><path clip-rule="evenodd" d="M20 15.5a4.5 4.5 0 1 1-9 0 4.5 4.5 0 0 1 9 0ZM15.5 13a.5.5 0 0 0-.5.5V15h-1.5a.5.5 0 0 0 0 1H15v1.5a.5.5 0 0 0 1 0V16h1.5a.5.5 0 0 0 0-1H16v-1.5a.5.5 0 0 0-.5-.5Z"/></svg>\n',template:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path clip-rule="evenodd" d="M8 0H3a2 2 0 0 0-2 2v15a2 2 0 0 0 2 2h5a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2ZM2.5 2a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 .5.5v15a.5.5 0 0 1-.5.5H3a.5.5 0 0 1-.5-.5V2Z"/><path clip-rule="evenodd" d="M13 0h5a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-5a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2Zm0 1.5a.5.5 0 0 0-.5.5v5a.5.5 0 0 0 .5.5h5a.5.5 0 0 0 .5-.5V2a.5.5 0 0 0-.5-.5h-5Z"/><path clip-rule="evenodd" d="M13 10h5a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-5a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2Zm0 1.5a.5.5 0 0 0-.5.5v5a.5.5 0 0 0 .5.5h5a.5.5 0 0 0 .5-.5v-5a.5.5 0 0 0-.5-.5h-5Z"/></svg>',caseChange:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M5.789 3 0 17h1.664l1.664-4.027h6.797l.227.548c.046-.172.112-.352.209-.545.217-.436.556-.609.898-.798L7.664 3H5.79Zm.938 1.758 2.777 6.715H3.949l2.778-6.715Z"/><path d="M15.956 7.5c-1.584-.02-3.226.824-3.843 2.882l1.495.106c.904-2.082 4.594-2.13 4.375.534-3.245 1.024-4.838.117-6.082 2.62-.208.418-.17 1.57.54 2.397.71.826 2.014 1.149 3.409.85 1.395-.299 2.24-1.386 2.24-1.386L18.205 17h1.493l-.059-1.72-.056-5.274C19.51 8.612 17.75 7.524 15.956 7.5Zm2.027 4.696s.641 2.453-1.528 3.27c-3.376 1.269-4.188-2.141-1.775-2.638 1.704-.352 1.873-.25 3.303-.632Z"/></svg>'},R=["change","addMarker","createRange","ck-ai-assistant-ui_theme","length","span","document","editor","insertContent","start","from","insertContentBelow","removeMarker","push","getRange","model","isContent","markers","has","createPositionAfter","ck-fake-ai-selection_collapsed","get","setSelection","ck-fake-ai-selection-candidate","pop","data","updateMarker","hideFakeVisualSelection","editingDowncast","ai-ui","canEditAt","markerToHighlight","getSelectedBlocks","ai.useTheme","toView","ck-fake-ai-selection","for","selection","toModel","conversion","createSelection","config","markerToElement"];var O,T;O=R,T=157,function(e){for(;--e;)O.push(O.shift())}(++T);const C=function(e,t){return R[e-=0]},M=C("0x1"),I="ai-ui-candidate";class j extends t.Plugin{static get pluginName(){return"AIAssistantEditing"}init(){const{editor:e}=this,t=["ck-fake-ai-selection"];e[C("0xd")].get(C("0x5"))&&t[C("0x1c")](C("0x12")),e[C("0xb")][C("0x8")]("editingDowncast")[C("0x3")]({model:M,view:{classes:t}}),e.conversion[C("0x8")](C("0x0"))[C("0xe")]({model:M,view:{name:C("0x14"),classes:[C("0x7"),C("0x23")]}}),e[C("0xb")][C("0x8")]("editingDowncast").markerToHighlight({model:I,view:{classes:[C("0x26")]}}),e[C("0xb")][C("0x8")](C("0x0"))[C("0xe")]({model:I,view:{name:"span",classes:["ck-fake-ai-selection-candidate",C("0x23")]}})}showFakeVisualSelection(e){const t=this.editor[C("0x1e")],r=e?I:M;t[C("0xf")]((e=>{const n=t[C("0x15")][C("0x9")].getFirstRange();if(t[C("0x20")][C("0x21")](r))e[C("0x29")](r,{range:n});else if(n[C("0x18")].isAtEnd){const o=n.start.getLastMatchingPosition((({item:e})=>!t.schema[C("0x1f")](e)),{boundaries:n});e[C("0x10")](r,{usingOperation:!1,affectsData:!1,range:e[C("0x11")](o,n.end)})}else e.addMarker(r,{usingOperation:!1,affectsData:!1,range:n})}))}[C("0x2a")](e){const t=this[C("0x16")][C("0x1e")],r=e?I:M;t.markers[C("0x21")](r)&&t[C("0xf")]((e=>{e[C("0x1b")](r)}))}[C("0x17")](e,t){const r=t||this[C("0x16")][C("0x1e")][C("0x20")][C("0x24")](M).getRange();if(!this[C("0x16")].model[C("0x2")](r))return;const n=this[C("0x16")][C("0x28")].processor[C("0x6")](e),o=this[C("0x16")].data[C("0xa")](n);this[C("0x16")].model.change((e=>{this[C("0x2a")]();const t=this[C("0x16")][C("0x1e")].insertContent(o,r);t&&e[C("0x25")](t)}))}[C("0x1a")](e){const{model:t}=this.editor,r=Array[C("0x19")](t[C("0xc")](this.editor[C("0x1e")].markers.get(M)[C("0x1d")]())[C("0x4")]()),n=r[C("0x13")]?t[C("0x22")](r[C("0x27")]()):t[C("0x15")][C("0x9")].getLastPosition();this[C("0x17")](e,n)}}var L,N,B=["AIRequestError","name","AIAdapter","pluginName","aiadapter-text-adapter-not-set"];L=B,N=336,function(e){for(;--e;)L.push(L.shift())}(++N);var F=function(e,t){return B[e-=0]};class D extends t.Plugin{static get[F("0x2")](){return F("0x1")}afterInit(){if(!this.textAdapter)throw new e.CKEditorError(F("0x3"),null)}}class $ extends Error{constructor(e){super(e),this[F("0x0")]=F("0x4")}}function U(e,t,r){const n=e.t;switch(t){case"Edit or review":return n("Edit or review");case"Improve writing":return n("Improve writing");case"Make shorter":return n("Make shorter");case"Make longer":return n("Make longer");case"Simplify language":return n("Simplify language");case"Generate from selection":return n("Generate from selection");case"Summarize":return n("Summarize");case"Continue":return n("Continue");case"Change tone":return n("Change tone");case"Professional":return n("Professional");case"Casual":return n("Casual");case"Direct":return n("Direct");case"Confident":return n("Confident");case"Friendly":return n("Friendly");case"Change style":return n("Change style");case"Business":return n("Business");case"Legal":return n("Legal");case"Journalism":return n("Journalism");case"Poetic":return n("Poetic");case"Translate":return n("Translate");case"Translate to %0":return n("Translate to %0",r);case"English":return n("English");case"Spanish":return n("Spanish");case"German":return n("German");case"Portuguese":return n("Portuguese");case"French":return n("French");case"Simplified Chinese":return n("Simplified Chinese");case"Hindi":return n("Hindi");case"Arabic":return n("Arabic");case"AI Assistant":return n("AI Assistant");case"AI Commands":return n("AI Commands");case"Ask AI to edit or generate":return n("Ask AI to edit or generate");case"Ask AI to improve generated text":return n("Ask AI to improve generated text");case"Copy":return n("Copy");case"Submit":return n("Submit");case"Insert below":return n("Insert below");case"Try again":return n("Try again");case"Stop":return n("Stop");case"AI is writing...":return n("AI is writing...");case"History":return n("History");case"Empty history":return n("Empty history");case"Ask AI and your prompts will be listed here for you to use later.":return n("Ask AI and your prompts will be listed here for you to use later.");case"Prompt history":return n("Prompt history");case"Search AI command":return n("Search AI command");case"No commands found":return n("No commands found");case"No commands available":return n("No commands available");case"Clear":return n("Clear");case"AI_REPLACE_CONTENT":return n({id:"AI_REPLACE_CONTENT",string:"Replace"});case"AI_INSERT_CONTENT":return n({id:"AI_INSERT_CONTENT",string:"Insert"});case"AI_ERROR_GET_HEADERS":return n({id:"AI_ERROR_GET_HEADERS",string:"Preparing request headers failed"});case"AI_ERROR_GET_PARAMETERS":return n({id:"AI_ERROR_GET_PARAMETERS",string:"Preparing request parameters failed"});case"AI_ERROR_UNSUPPORTED_MODEL":return n({id:"AI_ERROR_UNSUPPORTED_MODEL",string:'The requested AI model ("%0") is not supported'},r);case"AI_ERROR_CONTEXT_LENGTH":return n({id:"AI_ERROR_CONTEXT_LENGTH",string:"Selected content is too long"});case"AI_ERROR_MODERATION":return n({id:"AI_ERROR_MODERATION",string:"Requested query does not pass moderation rules"});case"AI_ERROR_FAILED":return n({id:"AI_ERROR_FAILED",string:"Failed to communicate with the AI service"});default:return t}}const H=["refresh","element","custom","selection","showUI","config","document","isEnabled","execute","ai.aiAssistant.disabledElements","name","getItems","model","includes","get","editor"];var V,q;V=H,q=439,function(e){for(;--e;)V.push(V.shift())}(++q);const z=function(e,t){return H[e-=0]};class G extends t.Command{[z("0x9")](){const e=this[z("0x8")][z("0x5")][z("0xf")][z("0xc")],t=this[z("0x8")][z("0xe")][z("0x7")](z("0x2"));for(const r of e.getRanges())for(const e of r[z("0x4")]())if(e.is(z("0xa"))&&t[z("0x6")](e[z("0x3")]))return void(this[z("0x0")]=!1);this.isEnabled=!0}[z("0x1")](e="",t="",r=z("0xb")){this[z("0x8")].plugins[z("0x7")](Gt)[z("0xd")](e,t,r)}}var Z=r(1492);const W=["_xmlSerializer","textAdapter","currentResponse","remove","render","document","toModel","bind","stopProcessing","element","processor","match","push","handleError","reset","then","destroy","_handleQuery","_normalizeResponseHeadings","message","substring","currentContext","nodeType","finishProcessing","createElement","childNodes","_domParser","text/html","_parseAndNormalizeContent","setContentOf","updateView","editor","_sanitizationContainer","isRendered","div","toView","stopListening","isProcessing","abort","previousLabel","prompt","custom","exec","editing","previousQuery","ELEMENT_NODE","name","body","initialContext","data","length","_sanitizeHTML","previousContext","serializeToString","mainAction","submitPrompt","listenTo","previousActionId","innerHTML","startProcessing","view","once","value"];var K,Y;K=W,Y=163,function(e){for(;--e;)K.push(K.shift())}(++Y);const J=function(e,t){return W[e-=0]},Q=new RegExp(/^(.*?)<[a-zA-Z][a-zA-Z0-9_\-.]*[ >]/,"is");class X extends((0,e.ObservableMixin)()){constructor(e,t,r){super(),this.editor=e,this[J("0x1b")]=t,this[J("0x3a")]=document[J("0x32")](J("0x3c")),this[J("0x34")]=new DOMParser,this[J("0x1a")]=new XMLSerializer,this[J("0x17")]=r,this.set({initialContext:"",currentContext:"",currentResponse:"",previousContext:void 0,previousQuery:void 0,previousLabel:void 0,isProcessing:!1}),this[J("0x17")][J("0x21")](J("0x19")).to(this,J("0x2f"),this[J("0xe")][J("0x21")](this)),this.listenTo(this.view,J("0x12"),((e,t)=>{const r=this.currentContext||this[J("0xb")];this._handleQuery(t,r,J("0x4"))})),this[J("0x13")](this[J("0x17")],"tryAgainEvent",(()=>{this.view[J("0x3")]=this[J("0x2")],this[J("0x2b")](this[J("0x7")],this[J("0xf")],this[J("0x14")],this[J("0x2")])})),this[J("0x13")](this.view,J("0x22"),(()=>{this.stopProcessing()}))}[J("0x2a")](){this[J("0x3e")]()}async[J("0x38")]({actionId:e,query:t,htmlContent:r,label:n,mainActionLabel:o}){this[J("0x17")].prompt=n,this.view[J("0x11")]=o,this[J("0xb")]=r,t&&(this[J("0x17")][J("0x3b")]?this[J("0x2b")](t,r,e,n):this[J("0x17")][J("0x18")](J("0x1e"),(()=>{this[J("0x2b")](t,r,e,n)})))}[J("0x22")](){this[J("0x0")]&&(this[J("0x0")]=!1,this[J("0x17")][J("0x31")](),this[J("0x1b")][J("0x1")]())}reset(){this[J("0xb")]="",this.currentContext="",this[J("0x1c")]="",this[J("0xf")]="",this.previousQuery="",this.previousLabel="",this[J("0x14")]=void 0,this.view[J("0x28")](),this.stopProcessing()}async[J("0x2b")](e,t,r,n){return this[J("0x0")]=!0,this[J("0x17")][J("0x16")](),this.previousContext=t,this[J("0x7")]=e,this.previousLabel=n||e,this[J("0x14")]=r,new Promise((n=>{this[J("0x1b")].makeRequest({query:e,context:t,onData:e=>{this[J("0x1c")]=e,this.currentContext=this[J("0x36")](this[J("0x1c")])},actionId:r})[J("0x29")]((()=>{!this[J("0x2f")]&&this[J("0x1c")]&&(this.currentContext=this._parseAndNormalizeContent(this.currentResponse,!0))})).catch((e=>{e instanceof $?this[J("0x17")].handleError(e[J("0x2d")]):this[J("0x17")][J("0x27")](),n()})).finally((()=>{this[J("0x22")](),n()}))}))}[J("0x36")](e,t=!1){const r=Q[J("0x5")](e);r?e=e[J("0x2e")](r[1][J("0xd")]):e[J("0xd")]<100&&!t&&(e="");const n=this._domParser.parseFromString(e,J("0x35"));if(r)for(const e of n.body[J("0x33")])e[J("0x30")]!=Node[J("0x8")]&&e[J("0x1d")]();const o=this[J("0x39")][J("0xc")][J("0x24")][J("0x3d")](this[J("0x1a")][J("0x10")](n[J("0xa")]));return this._normalizeResponseHeadings(o),this[J("0x39")][J("0xc")].stringify(this[J("0x39")][J("0xc")][J("0x20")](o))}[J("0x2c")](e){const t=new Z.UpcastWriter(this[J("0x39")][J("0x6")][J("0x17")][J("0x1f")]),r=new Z.Matcher({name:/^h[1-5]$/}),n=[];let o=!1;for(const t of e)t.is(J("0x23"))&&r[J("0x25")](t)&&(n[J("0x26")](t),"h1"==t[J("0x9")]&&(o=!0));if(o)for(const e of n)t.rename("h"+(parseInt(e[J("0x9")][1])+1),e)}[J("0xe")](e){return this.editor[J("0x6")][J("0x17")].domConverter[J("0x37")](this[J("0x3a")],e),this._sanitizationContainer[J("0x15")]}}const ee=["replace","ck-ai-form__toolbar","stopButton","bind","ck-button-action","addMany","_CONTENT","insert","REPLACE","insertButton","Stop","isVisible","extendTemplate","tryAgainButton","set","bindTemplate","locale","mainAction","replaceButton","ck-hidden","items","toUpperCase","_createButton","label","AI_","Try again"];var te,re;te=ee,re=226,function(e){for(;--e;)te.push(te.shift())}(++re);const ne=function(e,t){return ee[e-=0]},oe={REPLACE:ne("0x8"),INSERT:ne("0xf")};class ie extends o.ToolbarView{constructor(e){super(e),this[ne("0x16")](ne("0x13"),!1),this[ne("0x16")](ne("0x19"),oe[ne("0x10")]),this[ne("0x0")]=this._createButton("",ne("0xc")),this[ne("0x0")][ne("0xb")](ne("0x5")).to(this,ne("0x19"),(t=>U(e,ne("0x6")+t[ne("0x3")]()+ne("0xe")))),this[ne("0x11")]=this._createButton(U(e,"Insert below")),this.tryAgainButton=this[ne("0x4")](U(e,ne("0x7"))),this[ne("0xa")]=this._createButton(U(e,ne("0x12")));const t=this[ne("0x17")];this[ne("0x14")]({attributes:{class:[ne("0x9"),t.if(ne("0x13"),ne("0x1"),(e=>!e))]}}),this[ne("0x2")][ne("0xd")]([this[ne("0x0")],this[ne("0x11")],this[ne("0x15")],this[ne("0xa")]])}[ne("0x4")](e,t){const r=new o.ButtonView(this[ne("0x18")]);return r[ne("0x16")]({label:e,class:t||"",isVisible:!0,withText:!0}),r}}const se='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M5 2.801a.7.7 0 0 0-.7.7v11.5a.8.8 0 0 1-1.6 0v-11.5a2.3 2.3 0 0 1 2.3-2.3h6.5a.8.8 0 0 1 0 1.6H5Zm.7 3.7a2.3 2.3 0 0 1 2.3-2.3h7a2.3 2.3 0 0 1 2.3 2.3v10a2.3 2.3 0 0 1-2.3 2.3H8a2.3 2.3 0 0 1-2.3-2.3v-10Zm2.3-.7a.7.7 0 0 0-.7.7v10a.7.7 0 0 0 .7.7h7a.7.7 0 0 0 .7-.7v-10a.7.7 0 0 0-.7-.7H8Z"/></svg>',ae=["clipboard","element","_createCopyButton","ClipboardItem","execute","icon","_createLoader","isEnabled","contentFieldView","createElement","check",".ck-ai-form__loader","setTemplate","innerHTML","ck-ai-form__loader","lastElementChild","Copy","locale","setEndBefore","execCommand","class","isProcessing","scrollTo","AI is writing...","style","copy","position","ck-ai-form__content-area-wrapper","ck-ai-form__copy-button","focus","isVisible","scrollHeight","copyButtonView","change:isProcessing","set","textContent","setStartAfter","ck-hidden","value","ck-reset_all-excluded","loaderView","-9999px","appendLoader","render","ck-content","div","smooth","setContent","ck-ai-form__content-area","left","_copyHTMLToClipboard","bind","listenTo","getSelection","querySelector","change:value","firstElementChild","<span>[</span>","text/html","appendChild","createRange","absolute","write"];var ce,ue;ce=ae,ue=456,function(e){for(;--e;)ce.push(ce.shift())}(++ue);const le=function(e,t){return ae[e-=0]};class de extends o.View{constructor(e,t=""){super(e),this[le("0x13")]({value:null,isVisible:!1,isProcessing:!1});const r=this.bindTemplate;this[le("0x38")]=new fe(e,t),this.copyButtonView=this[le("0x32")](),this[le("0x3c")]({tag:le("0x1e"),attributes:{class:["ck",le("0xc"),r.if("isVisible",le("0x16"),(e=>!e))],tabindex:"-1"},children:[{tag:le("0x1e"),attributes:{class:["ck",le("0x21"),r.if(le("0x6"),"ck-ai-form__content-area--processing")]},children:[this[le("0x38")],{tag:le("0x1e"),attributes:{class:["ck","ck-ai-form__copy-button-wrapper"]},children:[this[le("0x11")]]}]}]})}[le("0x1c")](){super.render(),this[le("0x17")]&&this[le("0x38")][le("0x20")](this.value);let e=!1;this.on(le("0x28"),((t,r,n)=>{const o=!this[le("0x38")][le("0x31")][le("0x27")](le("0x3b"));this[le("0x38")][le("0x20")](n),this[le("0x6")]&&o&&!e&&this[le("0x31")][le("0x7")]({top:this[le("0x31")][le("0x10")],behavior:le("0x1f")})})),this.on(le("0x12"),((t,r,n)=>{e=!1,n?(this[le("0x17")]=null,this[le("0x38")][le("0x1b")]()):this[le("0x17")]||this.contentFieldView[le("0x20")]("")})),this[le("0x25")](this[le("0x31")],"wheel",(()=>{e=!0})),this[le("0x25")](this[le("0x31")],"mousedown",(()=>{e=!0}))}[le("0xe")](){this[le("0x31")][le("0xe")]()}[le("0x32")](){const e=this[le("0x2")],r=new o.ButtonView(this.locale),n=le("0xd");return r[le("0x13")]({label:U(e,le("0x1")),icon:se,class:n,tooltip:!0}),r.bind(le("0xf")).to(this,le("0x17"),(e=>!!e)),r[le("0x24")](le("0x37")).to(this,le("0x6"),(e=>!e)),r.on(le("0x34"),(()=>{this[le("0x23")](this[le("0x38")][le("0x31")]),r[le("0x35")]=t.icons[le("0x3a")],r.class=n+" ck-ai-form__copy-button--copied",this[le("0xe")](),setTimeout((()=>{r[le("0x35")]=se,r[le("0x5")]=n}),1e3)})),r}[le("0x23")](t){const{window:r,document:n}=e.global;if(r[le("0x33")]){const{Blob:e,ClipboardItem:n}=r,o=[new n({"text/html":new e([t[le("0x3d")]],{type:le("0x2b")}),"text/plain":new e([t[le("0x14")]||""],{type:"text/plain"})})];navigator[le("0x30")][le("0x2f")](o)}else{const e=n[le("0x39")](le("0x1e"));e.style[le("0xb")]=le("0x2e"),e[le("0x9")][le("0x22")]=le("0x1a"),e[le("0x3d")]=le("0x2a")+t.innerHTML+"<span>]</span>",n.body[le("0x2c")](e);const o=n[le("0x2d")]();o[le("0x15")](e[le("0x29")]),o[le("0x3")](e[le("0x0")]);const i=r[le("0x26")]();i.removeAllRanges(),i.addRange(o),n[le("0x4")](le("0xa")),e.remove()}}}class fe extends o.View{constructor(e,t=""){super(e),this[le("0x19")]=this[le("0x36")](),this.setTemplate({tag:"div",attributes:{class:["ck",le("0x1d"),t,le("0x18"),"ck-ai-form__content-field"]}})}[le("0x20")](e){this.element[le("0x3d")]=e}appendLoader(){this[le("0x31")][le("0x2c")](this[le("0x19")].element)}_createLoader(){const e=new o.View,t=this[le("0x2")],r=new o.SpinnerView;return r[le("0xf")]=!0,e[le("0x3c")]({tag:"div",attributes:{class:["ck",le("0x3e")]},children:[r,{text:U(t,le("0x8"))}]}),e[le("0x1c")](),e}}const he=["text","set","setTemplate","ck-ai-form__error"];var ge,pe;ge=he,pe=453,function(e){for(;--e;)ge.push(ge.shift())}(++pe);const me=function(e,t){return he[e-=0]};class ke extends o.View{constructor(e,t=""){super(e);const r=new o.IconView,n=this.bindTemplate;this[me("0x0")](me("0x3"),t),r.content='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path clip-rule="evenodd" d="M9.9 4.385a1.2 1.2 0 0 0-.44.44h.002l-5.284 9.15a1.2 1.2 0 0 0 1.04 1.8h10.564a1.2 1.2 0 0 0 1.04-1.8l-5.282-9.15a1.2 1.2 0 0 0-1.64-.44Zm.05 8.363a.301.301 0 0 1 .115-.023h.9a.301.301 0 0 1 .3.3v.9a.3.3 0 0 1-.3.3h-.9a.3.3 0 0 1-.3-.3v-.9a.3.3 0 0 1 .185-.277Zm-.185-4.723a.3.3 0 0 1 .3-.3h.9a.3.3 0 0 1 .3.3v3.4a.3.3 0 0 1-.3.3h-.9a.301.301 0 0 1-.3-.3v-3.4Z"/></svg>\n',this[me("0x1")]({tag:"div",attributes:{class:["ck",me("0x2")]},children:[r,{text:n.to("text")}]})}}const be=["window","submit","fieldView","isEnabled","style","update","submitButtonView","render","focusCycler","focus","_createSubmitButton","history","bind","left","fieldWrapperChildren","add","History","execute","keystrokes","enter","minRows","target","Submit","maxRows","ck-ai-form__toggle-history","isVisible","children","focusableChildren","focusFirst","filteredView","ck-ai-form__submit","isEmpty","resultsView","width","value","locale","fire","requestAnimationFrame","_createShowHistoryButton","uiLanguageDirection","set","rtl","right","element","excludeScrollbarsAndBorders","showHistoryButtonView","queryView","isOn","focusLast"];var xe,ye;xe=be,ye=230,function(e){for(;--e;)xe.push(xe.shift())}(++ye);const ve=function(e,t){return be[e-=0]};class we extends o.AutocompleteView{constructor(e,t){super(e,t),this[ve("0xc")].fieldView[ve("0x23")]=1,this.queryView[ve("0x11")][ve("0x26")]=3,this.submitButtonView=this[ve("0x19")](),this[ve("0xb")]=this[ve("0x4")](),this[ve("0x2a")][ve("0x1e")](this[ve("0xb")],1),this[ve("0x2a")][ve("0x1e")](this.submitButtonView)}[ve("0x16")](){super[ve("0x16")](),this[ve("0xc")][ve("0x1d")][ve("0x1e")](this[ve("0xb")]),this[ve("0x29")].add(this[ve("0x15")]),this[ve("0x21")][ve("0x6")](ve("0x22"),((e,t)=>{e[ve("0x24")]==this[ve("0xc")][ve("0x11")][ve("0x9")]&&(this[ve("0x10")](),t())}))}_createSubmitButton(){const e=new o.ButtonView(this[ve("0x1")]),t=this.locale;return e[ve("0x6")]({icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M15.875 4.419a.75.75 0 0 0-1.5 0v7.25H6.818l2.33-1.955a.75.75 0 0 0-.963-1.15l-3.792 3.182a.75.75 0 0 0-.17.945c.046.11.118.208.21.284l3.788 3.18a.75.75 0 1 0 .965-1.149l-2.19-1.837h7.629c.69 0 1.25-.56 1.25-1.25v-7.5Z"/></svg>',label:U(t,ve("0x25")),isVisible:!0,tooltip:!0,class:ve("0x2d")}),e.on("execute",(()=>{this[ve("0x10")]()})),e[ve("0x1b")]("isEnabled").to(this[ve("0xc")][ve("0x11")],ve("0x2e"),this,ve("0x12"),((e,t)=>!e&&t)),e}_createShowHistoryButton(){const r=new o.ButtonView(this[ve("0x1")]),n=this[ve("0x2f")],i=this.locale;r[ve("0x6")]({label:U(i,ve("0x1f")),withText:!1,icon:t.icons[ve("0x1a")],tooltip:!0,tooltipPosition:"sw",class:ve("0x27")}),r[ve("0x1b")](ve("0xd")).to(n,ve("0x28")),r[ve("0x1b")](ve("0x12")).to(this,ve("0x12")),r.on(ve("0x20"),(()=>{n.isVisible=!n[ve("0x28")],n[ve("0x28")]?this[ve("0x2c")][ve("0x18")]():this[ve("0x18")]()}));const s=()=>{e.global[ve("0xf")][ve("0x3")]((()=>{if((0,e.isVisible)(this[ve("0x9")])){const t=new e.Rect(this[ve("0xc")].fieldView[ve("0x9")]),n=t.width,o=ve("0x7")===i[ve("0x5")]?ve("0x1c"):ve("0x8");t[ve("0xa")](),r.element[ve("0x13")][o]=n-t[ve("0x30")]+1+"px"}}))};return this.queryView[ve("0x11")].on(ve("0x14"),s),this.on("render",s),r}submit(){const e=this[ve("0xc")].fieldView[ve("0x9")][ve("0x0")];this[ve("0x2")](ve("0x10"),e)}[ve("0x18")](e){-1===e?this[ve("0x17")][ve("0xe")]():this[ve("0x17")][ve("0x2b")]()}}const _e=["Prompt history","children","add","historyGroupView","length","_createClearHistoryButton","filter","label","Clear","locale","clearHistoryButton","items","execute","fire","set"];var Se,Ee;Se=_e,Ee=213,function(e){for(;--e;)Se.push(Se.shift())}(++Ee);const Ae=function(e,t){return _e[e-=0]};class Pe extends o.ListView{constructor(e){super(e),this[Ae("0x7")]=this[Ae("0x2")](),this[Ae("0x0")]=new o.ListItemGroupView,this[Ae("0x0")][Ae("0xd")][Ae("0xe")](this.clearHistoryButton,1),this[Ae("0x0")][Ae("0x4")]=U(e,Ae("0xc")),this.historyGroupView[Ae("0x8")].delegate(Ae("0x9")).to(this),this[Ae("0x8")][Ae("0xe")](this[Ae("0x0")])}[Ae("0x3")](){let e=0;for(const t of this.items)e+=t[Ae("0x8")][Ae("0x1")];return{resultsCount:e,totalItemsCount:e}}[Ae("0x2")](){const e=this[Ae("0x6")],t=new o.ButtonView(this[Ae("0x6")]);return t[Ae("0xb")]({label:"("+U(e,Ae("0x5"))+")",withText:!0}),t.on(Ae("0x9"),(()=>this[Ae("0xa")]("clearHistory"))),t}}const Re=["ck-button__label","style","set"];var Oe,Te;Oe=Re,Te=115,function(e){for(;--e;)Oe.push(Oe.shift())}(++Te);const Ce=function(e,t){return Re[e-=0]};class Me extends o.HighlightedTextView{constructor(){super(),this[Ce("0x1")]({style:void 0,text:void 0,id:void 0});const e=this.bindTemplate;this.extendTemplate({attributes:{class:[Ce("0x2")],style:e.to(Ce("0x0")),id:e.to("id")}})}}const Ie="object"==typeof global&&global&&global.Object===Object&&global;var je="object"==typeof self&&self&&self.Object===Object&&self;const Le=(Ie||je||Function("return this")()).Symbol;const Ne=function(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o};const Be=Array.isArray;var Fe=Object.prototype,De=Fe.hasOwnProperty,$e=Fe.toString,Ue=Le?Le.toStringTag:void 0;const He=function(e){var t=De.call(e,Ue),r=e[Ue];try{e[Ue]=void 0;var n=!0}catch(e){}var o=$e.call(e);return n&&(t?e[Ue]=r:delete e[Ue]),o};var Ve=Object.prototype.toString;const qe=function(e){return Ve.call(e)};var ze=Le?Le.toStringTag:void 0;const Ge=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":ze&&ze in Object(e)?He(e):qe(e)};const Ze=function(e){return null!=e&&"object"==typeof e};const We=function(e){return"symbol"==typeof e||Ze(e)&&"[object Symbol]"==Ge(e)};var Ke=Le?Le.prototype:void 0,Ye=Ke?Ke.toString:void 0;const Je=function e(t){if("string"==typeof t)return t;if(Be(t))return Ne(t,e)+"";if(We(t))return Ye?Ye.call(t):"";var r=t+"";return"0"==r&&1/t==-Infinity?"-0":r};const Qe=function(e){return null==e?"":Je(e)};const Xe=function(e){return function(t){return null==e?void 0:e[t]}};const et=Xe({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var tt=/&(?:amp|lt|gt|quot|#39);/g,rt=RegExp(tt.source);const nt=function(e){return(e=Qe(e))&&rt.test(e)?e.replace(tt,et):e},ot=["prompt","execute","set","children"];var it,st;it=ot,st=456,function(e){for(;--e;)it.push(it.shift())}(++st);const at=function(e,t){return ot[e-=0]};class ct extends o.ListItemView{constructor(e){super();const t=new Me,r=new o.ButtonView(this.locale,t);this[at("0x3")].add(r),r[at("0x2")]({label:e.prompt,withText:!0}),r.on(at("0x1"),(()=>{this.fire(at("0x1"),{value:nt(e[at("0x0")])})}))}}const ut=["stringify","getItem","remove","length","prompt","add","parse","_saveToSessionStorage","addMany","last","toLowerCase","_loadFromSessionStorage","CKEditor/AIFormView/PromptHistory","map"];var lt,dt;lt=ut,dt=483,function(e){for(;--e;)lt.push(lt.shift())}(++dt);const ft=function(e,t){return ut[e-=0]},ht=ft("0x5");class gt extends e.Collection{constructor(){super(),this[ft("0x4")](),this.on(ft("0xc"),((e,t)=>{const r=pt(t[ft("0xb")]);for(const e of this)if(e!=t&&pt(e.prompt)===r){this[ft("0x9")](e);break}this[ft("0xa")]>20&&this[ft("0x9")](this[ft("0x2")]),this._saveToSessionStorage()})),this.on(ft("0x9"),(()=>{this[ft("0x0")]()}))}[ft("0x4")](){const e=sessionStorage[ft("0x8")](ht)||"[]";this[ft("0x1")](JSON[ft("0xd")](e))}[ft("0x0")](){sessionStorage.setItem(ht,JSON[ft("0x7")](this[ft("0x6")]((e=>e))))}}function pt(e){return e[ft("0x3")]().trim()}const mt=Xe({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});var kt=/[&<>"']/g,bt=RegExp(kt.source);const xt=function(e){return(e=Qe(e))&&bt.test(e)?e.replace(kt,mt):e},yt=["keystrokes","Empty history","tab","setTemplate","bind","focus","focusTracker","AI_ERROR_FAILED","Ask AI to edit or generate","listenTo","focusNext","isProcessing","focusFirst","_promptHistory","isError","prompt","shift + tab","element","locale","mainAction","contentArea","set","clear","clearHistory","isEnabled","fire","forwardCycle","fieldView","add","focusPrevious","toolbar","stop","startProcessing","queryView","submit","value","insertContentBelow","_focusables","ck-ai-form","_createPromptView","historyGroupView","backwardCycle","tryAgainEvent","copyButtonView","search","replaceButton","reset","Ask AI and your prompts will be listed here for you to use later.","delegate","high","insertButton","div","ck-ai-form-content","REPLACE","finishProcessing","execute","text","promptView","_createToolbar","focusLast","isVisible","errorView","replaceContent","submitPrompt","_createHistoryView","items","focusCycler","bindTo","render"];var vt,wt;vt=yt,wt=371,function(e){for(;--e;)vt.push(vt.shift())}(++wt);const _t=function(e,t){return yt[e-=0]};class St extends o.View{constructor(t,r,n=""){super(t),this.set(_t("0x43"),!0),this.set(_t("0x36"),!1),this[_t("0x40")](_t("0x3a"),""),this.set(_t("0x9"),""),this.set("isError",!1),this[_t("0x40")](_t("0x3e"),oe[_t("0x1b")]),this[_t("0x38")]=new gt,this[_t("0x23")]=new ke(t),this.contentArea=new de(t,n),this[_t("0x3f")][_t("0x2f")](_t("0x36")).to(this),this[_t("0x3f")].bind("value").to(this),this[_t("0x4")]=this[_t("0x20")](),this.toolbar[_t("0x2f")](_t("0x3e")).to(this),this[_t("0x1f")]=this._createPromptView(),this[_t("0x31")]=new e.FocusTracker,this[_t("0x2b")]=new e.KeystrokeHandler,this[_t("0xb")]=this.createCollection([this.contentArea,this[_t("0x3f")][_t("0x11")],this[_t("0x4")],this[_t("0x1f")]]),this.focusCycler=new o.FocusCycler({focusables:this[_t("0xb")],focusTracker:this[_t("0x31")],keystrokeHandler:this[_t("0x2b")],actions:{focusPrevious:_t("0x3b"),focusNext:_t("0x2d")}}),this[_t("0x1f")].focusCycler.on(_t("0x0"),(e=>{this[_t("0x28")][_t("0x35")](),e[_t("0x5")]()})),this.promptView.focusCycler.on(_t("0xf"),(e=>{this[_t("0x28")][_t("0x3")](),e[_t("0x5")]()})),this[_t("0x1f")][_t("0x7")][_t("0x1")].bind(_t("0x9")).to(this,"prompt");const i=this.bindTemplate;this[_t("0x2e")]({tag:_t("0x19"),attributes:{class:["ck",_t("0xc"),r],tabindex:"-1"},children:[{tag:_t("0x19"),attributes:{class:["ck",_t("0x1a")]},children:[{tag:_t("0x19"),attributes:{class:[i.if("isError","ck-hidden",(e=>!e))]},children:[this[_t("0x23")]]},this.contentArea,this[_t("0x4")],this.promptView]}]})}[_t("0x2a")](){super[_t("0x2a")](),this[_t("0x31")].add(this[_t("0x3f")].element),this[_t("0x31")][_t("0x2")](this[_t("0x3f")][_t("0x11")][_t("0x3c")]),this[_t("0x31")][_t("0x2")](this.toolbar[_t("0x3c")]),this[_t("0x31")].add(this[_t("0x1f")][_t("0x3c")]),this[_t("0x2b")][_t("0x34")](this[_t("0x3c")])}focus(e=1){-1===e?this[_t("0x28")][_t("0x21")]():this[_t("0x28")][_t("0x37")]()}[_t("0x14")](){this[_t("0x3a")]="",this[_t("0x9")]="",this[_t("0x39")]=!1,this[_t("0x1f")][_t("0x14")](),this[_t("0x3f")].isVisible=!1,this[_t("0x4")][_t("0x22")]=!1}[_t("0xd")](){const e=this[_t("0x3d")],t=new we(e,{queryView:{label:U(e,_t("0x33")),creator:o.createLabeledTextarea,showIcon:!1,showResetButton:!1},infoView:{text:{noSearchableItems:{primary:U(e,_t("0x2c")),secondary:U(e,_t("0x15"))}}},filteredView:this[_t("0x26")](),queryMinChars:1/0,resetOnBlur:!1});return t[_t("0x2f")](_t("0x43")).to(this,"isEnabled",this,_t("0x36"),((e,t)=>e&&!t)),this[_t("0x34")](t,_t("0x8"),((e,t)=>{this[_t("0x3a")]=t;const r=xt(t);this[_t("0x44")](_t("0x25"),r),t.trim()&&this[_t("0x38")][_t("0x2")]({prompt:r},0)}),{priority:_t("0x17")}),t}[_t("0x26")](){const e=new Pe(this.locale);return e[_t("0xe")][_t("0x27")][_t("0x29")](this[_t("0x38")]).as(ct),e.on(_t("0x42"),(()=>{this[_t("0x38")][_t("0x41")](),this[_t("0x1f")][_t("0x12")](""),this[_t("0x1f")][_t("0x30")]()})),e}[_t("0x20")](){const e=new ie(this.locale);return e.replaceButton.bind("isEnabled").to(this,"isEnabled",this,_t("0x36"),this,_t("0x9"),((e,t,r)=>e&&!t&&!!r)),e[_t("0x13")][_t("0x16")]("execute").to(this,_t("0x24")),e.insertButton.bind(_t("0x43")).to(this,_t("0x43"),this,_t("0x36"),this,_t("0x9"),((e,t,r)=>e&&!t&&!!r)),e[_t("0x18")][_t("0x16")](_t("0x1d")).to(this,_t("0xa")),e.tryAgainButton.bind(_t("0x43")).to(this,_t("0x43"),this,_t("0x36"),((e,t)=>e&&!t)),e.tryAgainButton.delegate(_t("0x1d")).to(this,_t("0x10")),e.stopButton[_t("0x2f")](_t("0x43")).to(this,_t("0x36")),e.stopButton[_t("0x16")](_t("0x1d")).to(this,"stopProcessing"),e}[_t("0x6")](){this[_t("0x9")]="",this.isError=!1,this[_t("0x36")]=!0,this.contentArea.isVisible=!0,this.toolbar[_t("0x22")]=!0,this[_t("0x3f")].focus()}[_t("0x1c")](){const e=this[_t("0x3d")];this[_t("0x36")]=!1,this[_t("0x3a")]="",this.promptView[_t("0x14")](),this[_t("0x9")]&&(this[_t("0x1f")][_t("0x7")].label=U(e,"Ask AI to improve generated text"))}handleError(e){const t=this.locale;this[_t("0x1c")](),this[_t("0x39")]=!0,this[_t("0x23")][_t("0x1e")]=e||U(t,_t("0x32")),this[_t("0x9")]||(this[_t("0x3f")][_t("0x22")]=!1)}}const Et=["highlightText","first","length","items","labelView","filter","label","match"];var At,Pt;At=Et,Pt=460,function(e){for(;--e;)At.push(At.shift())}(++Pt);const Rt=function(e,t){return Et[e-=0]};class Ot extends o.ListView{filter(e){let t=0,r=0;for(const n of this[Rt("0x7")]){const o=n,i=o[Rt("0x7")],s=e&&!!o[Rt("0x2")][Rt("0x3")](e);o[Rt("0x0")].highlightText(s?e:null);for(const t of i){const r=t.children[Rt("0x5")],n=r[Rt("0x0")];if(e){const o=!!r.label[Rt("0x3")](e);n[Rt("0x4")](o?e:null),t.isVisible=s||o}else t.isVisible=!0,n[Rt("0x4")](null)}const a=i[Rt("0x1")]((e=>e.isVisible))[Rt("0x6")];t+=o[Rt("0x7")][Rt("0x6")],r+=s?o[Rt("0x7")][Rt("0x6")]:a,o.isVisible=s||!!a}return{resultsCount:r,totalItemsCount:t}}}const Tt=["for","set","ck-editor__label_","extendTemplate","bindTemplate","ck-label"];var Ct,Mt;Ct=Tt,Mt=484,function(e){for(;--e;)Ct.push(Ct.shift())}(++Mt);const It=function(e,t){return Tt[e-=0]};class jt extends o.HighlightedTextView{constructor(){super(),this[It("0x3")](It("0x2"),void 0);const t=this[It("0x0")];this.id=It("0x4")+(0,e.uid)(),this[It("0x5")]({attributes:{class:["ck",It("0x1")],id:this.id,for:t.to(It("0x2"))}})}}var Lt=r(6589),Nt={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};s()(Lt.Z,Nt);Lt.Z.locals;var Bt=r(3174),Ft={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};s()(Bt.Z,Ft);Bt.Z.locals;var Dt=r(7415),$t={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};s()(Dt.Z,$t);Dt.Z.locals;const Ut=["promptView","robotPencil","set","hideFakeVisualSelection","isEnabled","AIAssistantUI","fieldView","queryView","change:isOpen","aiCommands","document","push","schema","requiresContent","aiAssistant","ai.aiAssistant.disabledElements","showUI","wasMoved","textAdapter","commands","selection","change","init","DataTransfer","ai-commands-config-order-collision","children","getEarlierVisibleRevision","isCollapsed","panelView","replaceContent","bind","updatePosition","ai.useTheme","scrollTo","rawHtml","map","addMany","plugins","view","hide","_aiAssistantController","ck-ai-commands-dropdown ","_initView","ck-ai-assistant-button ","REPLACE","copy","ai.aiAssistant.commands","showFakeVisualSelection","ck-ai-commands-search","then","update","fire","Search AI command","order","editor","element","splice","define","_dialog","currentContext","_aiAdapter","show","prompt","EDITOR_TOP_SIDE","insertContentBelow","add","updateView","buttonView","isNaN","focus","label","ai.aiAssistant.contentAreaCssClass","getRevision","items","showAIAssistant","model","execute","getData","AI Assistant","getSelectedBlocks","ck-ai-assistant-ui","listenTo","sort","fromCharCode","locale","isOn","No commands available","pluginName","_uiCssClasses","_formView","tableOfContents","reset","getLimitElement","command:","join","get","componentFactory","hideUI","config"," ck-ai-assistant-ui_theme"];var Ht,Vt;Ht=Ut,Vt=217,function(e){for(;--e;)Ht.push(Ht.shift())}(++Vt);const qt=function(e,t){return Ut[e-=0]},zt=globalThis[qt("0x6")];class Gt extends t.Plugin{static get[qt("0x46")](){return qt("0x58")}static get requires(){return[j,D,o.Dialog]}constructor(e){super(e),this[qt("0x47")]="",e[qt("0x51")][qt("0x28")](qt("0x62"),["media",qt("0x11"),qt("0x49")]),e[qt("0x51")][qt("0x28")](qt("0x36"),""),e[qt("0x51")].define("ai.useTheme",!0),this[qt("0x47")]=qt("0x3f")+(e.config[qt("0x4e")](qt("0xf"))?qt("0x52"):"")}[qt("0x5")](){const{editor:t}=this;this[qt("0x2b")]=t[qt("0x14")][qt("0x4e")](D),this._dialog=t[qt("0x14")][qt("0x4e")](o.Dialog),this._formView=null,t[qt("0x2")][qt("0x30")](qt("0x39"),new G(t));const r=t[qt("0x2")][qt("0x4e")](qt("0x39")),n=t[qt("0x14")][qt("0x4e")](j);t.ui[qt("0x4f")][qt("0x30")](qt("0x5c"),(i=>{const s=(0,o.createDropdown)(i),a=function(e,t){const r=new Ot(e[qt("0x43")]),n=Wt(e,e[qt("0x51")][qt("0x4e")](qt("0x1d")))[qt("0x12")]((({groupId:r,groupLabel:n,commands:i})=>{const s=Wt(e,i).map((r=>function(e,t,r){const n=new o.ListItemView,i=new Me,s=new o.ButtonView(e,i);return n[qt("0x8")].add(s),s[qt("0x55")]({label:r[qt("0x35")],withText:!0}),s.on(qt("0x3b"),(()=>{t(r[qt("0x2d")],r[qt("0x35")],r.id,void 0===r[qt("0x60")]||r[qt("0x60")])})),n}(e.locale,t,r)));return function(e,t,r){const n=new o.ListItemGroupView(e,new jt);return n[qt("0x35")]=t,n[qt("0x38")][qt("0x13")](r),n}(e.locale,n||r,s)}));return r[qt("0x38")][qt("0x13")](n),r}(t,((o,i,s,a)=>{const c=t[qt("0x3a")].document[qt("0x3")];if(a&&c[qt("0xa")]){const r=(0,e.first)(c[qt("0x3e")]())||t.model[qt("0x5f")][qt("0x4b")](c);t.model[qt("0x4")]((e=>{e.setSelection(r,"in")}))}n[qt("0x1e")](),r[qt("0x3b")](o,i,qt("0x4c")+s)})),c=new o.SearchTextView(i,{filteredView:a,queryView:{label:U(i,qt("0x23"))},class:qt("0x1f"),infoView:{text:{notFound:{primary:U(i,"No commands found")},noSearchableItems:{primary:U(i,qt("0x45"))}}}});return s[qt("0x55")]({class:qt("0x18")+this[qt("0x47")]}),s[qt("0xd")]("isEnabled").to(r,qt("0x57")),s[qt("0xb")][qt("0x8")][qt("0x30")](c),s[qt("0x32")].set({label:U(i,"AI Commands"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M15.346 9.422a.151.151 0 0 1 .284 0l.548 1.484a.152.152 0 0 0 .09.089l1.483.549a.151.151 0 0 1 0 .284l-1.483.548a.151.151 0 0 0-.09.09l-.548 1.483a.152.152 0 0 1-.142.1.151.151 0 0 1-.142-.1l-.549-1.483a.15.15 0 0 0-.09-.09l-1.483-.548a.15.15 0 0 1 0-.284l1.484-.549a.152.152 0 0 0 .089-.09l.549-1.483Z"/><path d="M16.306 1.742a.151.151 0 0 1 .284 0l.549 1.483a.15.15 0 0 0 .089.09l1.483.548a.151.151 0 0 1 .072.229.151.151 0 0 1-.072.055l-1.483.549a.15.15 0 0 0-.09.09l-.548 1.482a.151.151 0 0 1-.284 0l-.549-1.483a.15.15 0 0 0-.09-.09l-1.483-.548a.151.151 0 0 1 0-.284l1.484-.549a.152.152 0 0 0 .09-.089l.548-1.483Z"/><path d="M7.665 1.742a.151.151 0 0 1 .284 0l.549 1.483a.151.151 0 0 0 .09.09l1.482.548a.151.151 0 0 1 .072.229.151.151 0 0 1-.072.055l-1.483.549a.151.151 0 0 0-.09.09L7.95 6.267a.151.151 0 0 1-.284 0l-.549-1.483a.151.151 0 0 0-.089-.09l-1.483-.548a.151.151 0 0 1 0-.284l1.483-.549a.151.151 0 0 0 .09-.089l.548-1.483-.001.001Z"/><path d="M14.72 7.946a.848.848 0 0 0 .25-.591.824.824 0 0 0-.241-.588l-1.943-1.938a.812.812 0 0 0-.588-.241.838.838 0 0 0-.591.25l-1.545 1.539 3.115 3.115 1.542-1.546h.001Z"/><path clip-rule="evenodd" d="M1.19 15.636a.96.96 0 0 1 .281-.679l7.835-7.834 3.121 3.12-7.834 7.835a.959.959 0 0 1-1.358 0l-1.764-1.764a.96.96 0 0 1-.28-.678Zm9.22-5.391-1.121-1.12-6.479 6.478 1.121 1.121 6.479-6.479Z"/></svg>',tooltip:!0}),s.on(qt("0x5b"),((e,t,r)=>{r?(c[qt("0x4a")](),n[qt("0x1e")](!0),a[qt("0x26")][qt("0x10")](0,0)):n[qt("0x56")](!0)})),s})),t.ui.componentFactory[qt("0x30")](qt("0x61"),(e=>{const t=new o.ButtonView(e);return t[qt("0x55")]({label:U(e,qt("0x3d")),tooltip:U(e,qt("0x3d")),icon:P[qt("0x54")],class:qt("0x1a")+this[qt("0x47")]}),t[qt("0xd")](qt("0x57")).to(r),t.bind(qt("0x44")).to(this[qt("0x29")],"id",(e=>qt("0x61")===e)),this[qt("0x40")](t,qt("0x3b"),(()=>{t[qt("0x44")]?this[qt("0x50")]():r[qt("0x3b")]()})),t}))}afterInit(){!function(e){function r(e){return e.map((e=>String[qt("0x42")](e)))[qt("0x4d")]("")}(e=>{function n(e){return r([112,108,117,103,105,110,78,97,109,101])in e}const o=[1,85,78,115,198,255,50,112,83,87,161],i=[127,34,6,211,167,86,146,199,132,160,18];function s(e){return function(e,t){const n=function(e){const t=atob(e),[n,o]=t[r([115,112,108,105,116])](r([45]));try{if(atob(o))return atob(n)}catch(e){}return t}(e),o=Array[r([102,114,111,109])](function(e){const t=new Uint8Array(e[r([108,101,110,103,116,104])]);for(let n=0;n<e[r([108,101,110,103,116,104])];n++)t[n]=e[r([99,104,97,114,67,111,100,101,65,116])](n);return t}(n)),i=o[r([112,111,112])](),s=o[r([112,111,112])]();return function(e){let t="";for(const n of e)t+=String[r([102,114,111,109,67,104,97,114,67,111,100,101])](n);return t}(function(e,t,n){const o={};o[r([110,117,109,98,101,114,79,102,82,111,117,110,100,115])]={16:10,24:12,32:14},o[r([114,99,111,110])]=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],o[r([83])]=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],o[r([84,49])]=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],o[r([84,50])]=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],o[r([84,51])]=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],o[r([84,52])]=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],o[r([85,49])]=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],o[r([85,50])]=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],o[r([85,51])]=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],o[r([85,52])]=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];const i=new Uint8Array(16);for(let e=15;e>=0;--e)i[e]=n%256,n=parseInt(n/256);let s=null,a=16;const c=new Uint8Array(t),u=[],l=[];!function(){const e=o[r([110,117,109,98,101,114,79,102,82,111,117,110,100,115])][c[r([108,101,110,103,116,104])]];for(let t=0;t<=e;t++)u[r([112,117,115,104])]([0,0,0,0]),l[r([112,117,115,104])]([0,0,0,0]);const t=4*(e+1),n=c[r([108,101,110,103,116,104])]/4,i=d(c);let s;for(let t=0;t<n;t++)s=t>>2,u[s][t%4]=i[t],l[e-s][t%4]=i[t];let a,f=0,h=n;for(;h<t;){a=i[n-1],i[0]^=o[r([83])][a>>16&255]<<24^o[r([83])][a>>8&255]<<16^o[r([83])][255&a]<<8^o[r([83])][a>>24&255]^o[r([114,99,111,110])][f]<<24,f+=1;for(let e=1;e<n/2;e++)i[e]^=i[e-1];a=i[n/2-1],i[n/2]^=o[r([83])][255&a]^o[r([83])][a>>8&255]<<8^o[r([83])][a>>16&255]<<16^o[r([83])][a>>24&255]<<24;for(let e=n/2+1;e<n;e++)i[e]^=i[e-1];let s,c,d=0;for(;d<n&&h<t;)s=h>>2,c=h%4,u[s][c]=i[d],l[e-s][c]=i[d++],h++}for(let t=1;t<e;t++)for(let e=0;e<4;e++)a=l[t][e],l[t][e]=o[r([85,49])][a>>24&255]^o[r([85,50])][a>>16&255]^o[r([85,51])][a>>8&255]^o[r([85,52])][255&a]}();for(let t=0;t<e[r([108,101,110,103,116,104])];t++)16===a&&(s=h(i),a=0,f(i)),e[t]^=s[a++];return e;function d(e){const t=[];for(let n=0;n<e[r([108,101,110,103,116,104])];n+=4)t[r([112,117,115,104])](e[n]<<24|e[n+1]<<16|e[n+2]<<8|e[n+3]);return t}function f(e){for(let t=15;t>=0;t--){if(255!==e[t]){e[t]++;break}e[t]=0}}function h(e){const t=u[r([108,101,110,103,116,104])]-1,n=[0,0,0,0];let i=d(e);for(let e=0;e<4;e++)i[e]^=u[0][e];for(let e=1;e<t;e++){for(let t=0;t<4;t++)n[t]=o[r([84,49])][i[t]>>24&255]^o[r([84,50])][i[(t+1)%4]>>16&255]^o[r([84,51])][i[(t+2)%4]>>8&255]^o[r([84,52])][255&i[(t+3)%4]]^u[e][t];i=n[r([115,108,105,99,101])]()}const s=new Uint8Array(16);let a;for(let e=0;e<4;e++)a=u[t][e],s[4*e]=255&(o[r([83])][i[e]>>24&255]^a>>24),s[4*e+1]=255&(o[r([83])][i[(e+1)%4]>>16&255]^a>>16),s[4*e+2]=255&(o[r([83])][i[(e+2)%4]>>8&255]^a>>8),s[4*e+3]=255&(o[r([83])][255&i[(e+3)%4]]^a);return s}}(o,t,s+256*i))}(e,new Uint8Array([...o,29,221,175,90,231,133,239,240,75,180,...i]))}const a=function(){const e=[{[r([105,100])]:1,[r([102,101,97,116,117,114,101,78,97,109,101])]:r([67,111,109,109,101,110,116,115]),[r([112,108,117,103,105,110,78,97,109,101])]:r([67,111,109,109,101,110,116,115,82,101,112,111,115,105,116,111,114,121]),[r([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:r([108,105,99,101,110,115,101,75,101,121]),[r([104,97,110,100,108,101,114])]:r([99,104,101,99,107,76,105,99,101,110,115,101]),[r([99,104,101,99,107,65,108,115,111])]:[{[r([105,100])]:2,[r([102,101,97,116,117,114,101,78,97,109,101])]:r([84,114,97,99,107,32,67,104,97,110,103,101,115]),[r([112,108,117,103,105,110,78,97,109,101])]:r([84,114,97,99,107,67,104,97,110,103,101,115,69,100,105,116,105,110,103]),[r([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:r([108,105,99,101,110,115,101,75,101,121]),[r([104,97,110,100,108,101,114])]:r([99,104,101,99,107,76,105,99,101,110,115,101,70,111,114,84,114,97,99,107,67,104,97,110,103,101,115]),[r([111,112,116,105,111,110,115])]:{[r([97,105,119,115,103,105,99])]:!0,[r([97,105,116,99,100,103,105,108])]:!0,[r([97,105,114,118,105,105,108])]:!0}}],[r([111,112,116,105,111,110,115])]:{[r([97,105,119,115,103,105,99])]:!0,[r([97,105,116,99,100,103,105,108])]:!0,[r([97,105,114,118,105,105,108])]:!0}},{[r([105,100])]:3,[r([102,101,97,116,117,114,101,78,97,109,101])]:r([80,97,103,105,110,97,116,105,111,110]),[r([112,108,117,103,105,110,78,97,109,101])]:r([80,97,103,105,110,97,116,105,111,110,76,111,111,107,117,112]),[r([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:r([112,97,103,105,110,97,116,105,111,110,76,105,99,101,110,115,101,75,101,121]),[r([104,97,110,100,108,101,114])]:r([99,104,101,99,107,76,105,99,101,110,115,101])},{[r([105,100])]:4,[r([102,101,97,116,117,114,101,78,97,109,101])]:r([82,101,118,105,115,105,111,110,32,72,105,115,116,111,114,121]),[r([112,108,117,103,105,110,78,97,109,101])]:r([82,101,118,105,115,105,111,110,115,82,101,112,111,115,105,116,111,114,121]),[r([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:r([108,105,99,101,110,115,101,75,101,121]),[r([104,97,110,100,108,101,114])]:r([99,104,101,99,107,76,105,99,101,110,115,101,70,111,114,82,101,118,105,115,105,111,110,72,105,115,116,111,114,121]),[r([111,112,116,105,111,110,115])]:{[r([97,105,119,115,103,105,99])]:!0,[r([97,105,116,99,100,103,105,108])]:!0,[r([97,105,114,118,105,105,108])]:!0}},{[r([105,100])]:5,[r([102,101,97,116,117,114,101,78,97,109,101])]:r([68,111,99,117,109,101,110,116,32,79,117,116,108,105,110,101]),[r([112,108,117,103,105,110,78,97,109,101])]:r([68,111,99,117,109,101,110,116,79,117,116,108,105,110,101,85,73]),[r([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:r([100,111,99,117,109,101,110,116,79,117,116,108,105,110,101,76,105,99,101,110,115,101,75,101,121]),[r([104,97,110,100,108,101,114])]:r([99,104,101,99,107,76,105,99,101,110,115,101]),[r([111,112,116,105,111,110,115])]:{[r([102,103,105])]:12}},{[r([105,100])]:6,[r([102,101,97,116,117,114,101,78,97,109,101])]:r([70,111,114,109,97,116,32,80,97,105,110,116,101,114]),[r([112,108,117,103,105,110,78,97,109,101])]:r([70,111,114,109,97,116,80,97,105,110,116,101,114,85,73]),[r([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:r([102,111,114,109,97,116,80,97,105,110,116,101,114,76,105,99,101,110,115,101,75,101,121]),[r([104,97,110,100,108,101,114])]:r([99,104,101,99,107,76,105,99,101,110,115,101]),[r([111,112,116,105,111,110,115])]:{[r([102,103,105])]:12}},{[r([105,100])]:7,[r([102,101,97,116,117,114,101,78,97,109,101])]:r([83,108,97,115,104,32,67,111,109,109,97,110,100]),[r([112,108,117,103,105,110,78,97,109,101])]:r([83,108,97,115,104,67,111,109,109,97,110,100,85,73]),[r([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:r([115,108,97,115,104,67,111,109,109,97,110,100,76,105,99,101,110,115,101,75,101,121]),[r([104,97,110,100,108,101,114])]:r([99,104,101,99,107,76,105,99,101,110,115,101]),[r([111,112,116,105,111,110,115])]:{[r([102,103,105])]:12}},{[r([105,100])]:8,[r([102,101,97,116,117,114,101,78,97,109,101])]:r([84,97,98,108,101,32,111,102,32,67,111,110,116,101,110,116,115]),[r([112,108,117,103,105,110,78,97,109,101])]:r([84,97,98,108,101,79,102,67,111,110,116,101,110,116,115,69,100,105,116,105,110,103]),[r([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:r([116,97,98,108,101,79,102,67,111,110,116,101,110,116,115,76,105,99,101,110,115,101,75,101,121]),[r([104,97,110,100,108,101,114])]:r([99,104,101,99,107,76,105,99,101,110,115,101]),[r([111,112,116,105,111,110,115])]:{[r([102,103,105])]:12}},{[r([105,100])]:9,[r([102,101,97,116,117,114,101,78,97,109,101])]:r([84,101,109,112,108,97,116,101]),[r([112,108,117,103,105,110,78,97,109,101])]:r([84,101,109,112,108,97,116,101,85,73]),[r([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:r([116,101,109,112,108,97,116,101,76,105,99,101,110,115,101,75,101,121]),[r([104,97,110,100,108,101,114])]:r([99,104,101,99,107,76,105,99,101,110,115,101]),[r([111,112,116,105,111,110,115])]:{[r([102,103,105])]:12}},{[r([105,100])]:10,[r([102,101,97,116,117,114,101,78,97,109,101])]:r([80,97,115,116,101,32,102,114,111,109,32,79,102,102,105,99,101,32,69,110,104,97,110,99,101,100]),[r([112,108,117,103,105,110,78,97,109,101])]:r([80,97,115,116,101,70,114,111,109,79,102,102,105,99,101,69,110,104,97,110,99,101,100,73,110,108,105,110,101,114]),[r([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:r([112,97,115,116,101,70,114,111,109,79,102,102,105,99,101,69,110,104,97,110,99,101,100,76,105,99,101,110,115,101,75,101,121]),[r([104,97,110,100,108,101,114])]:r([99,104,101,99,107,76,105,99,101,110,115,101]),[r([111,112,116,105,111,110,115])]:{[r([102,103,105])]:12}},{[r([105,100])]:11,[r([102,101,97,116,117,114,101,78,97,109,101])]:r([65,73,32,65,115,115,105,115,116,97,110,116]),[r([112,108,117,103,105,110,78,97,109,101])]:r([65,73,65,115,115,105,115,116,97,110,116,85,73]),[r([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:r([97,105,76,105,99,101,110,115,101,75,101,121]),[r([104,97,110,100,108,101,114])]:r([99,104,101,99,107,76,105,99,101,110,115,101])},{[r([105,100])]:12,[r([102,101,97,116,117,114,101,78,97,109,101])]:r([80,114,111,100,117,99,116,105,118,105,116,121,32,112,97,99,107])},{[r([105,100])]:13,[r([102,101,97,116,117,114,101,78,97,109,101])]:r([67,97,115,101,32,67,104,97,110,103,101]),[r([112,108,117,103,105,110,78,97,109,101])]:r([67,97,115,101,67,104,97,110,103,101,85,73]),[r([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:r([99,97,115,101,67,104,97,110,103,101,76,105,99,101,110,115,101,75,101,121]),[r([104,97,110,100,108,101,114])]:r([99,104,101,99,107,76,105,99,101,110,115,101]),[r([111,112,116,105,111,110,115])]:{[r([102,103,105])]:12}}];return function e(t){t[r([102,111,114,69,97,99,104])]((t=>{t[r([112,101,114,109,105,115,115,105,111,110,77,97,115,107])]=1<<t[r([105,100])]-1,n(t)&&t[r([99,104,101,99,107,65,108,115,111])]&&e(t[r([99,104,101,99,107,65,108,115,111])])}))}(e),e}(),c={[r([99,104,101,99,107,76,105,99,101,110,115,101])]:function(e,t){m(p(e,t),t)},[r([99,104,101,99,107,76,105,99,101,110,115,101,70,111,114,84,114,97,99,107,67,104,97,110,103,101,115])]:function(e,t){m(function(e,t){try{if(w(l,r([84,114,97,99,107,67,104,97,110,103,101,115,69,100,105,116,105,110,103]))&&e){const n=_(l,r([84,114,97,99,107,67,104,97,110,103,101,115,69,100,105,116,105,110,103]))[r([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])];if(parseInt(n)/2>e[r([101,120,112,105,114,97,116,105,111,110,68,97,116,101])])return k(t[r([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+r([73,110,118,97,108,105,100]))}return p(e,t)}catch(e){return k(t[r([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+r([73,110,118,97,108,105,100]))}}(e,t),t)},[r([99,104,101,99,107,76,105,99,101,110,115,101,70,111,114,82,101,118,105,115,105,111,110,72,105,115,116,111,114,121])]:function(e,t){const n=i[0]*o[1],s=i[0]*o[2],a=i[2]*o[2];function c(e,t){u(),k(t+r([84,114,105,97,108,76,105,109,105,116,58])+e),window[b()]=e===r([116,105,109,101])?n:s}function u(){const e=l;function t(){w(e,r([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))&&(_(e,r([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))[r([117,110,98,105,110,100])](r([105,115,69,110,97,98,108,101,100])),_(e,r([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))[r([105,115,69,110,97,98,108,101,100])]=!1,_(e,r([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))[r([117,112,100,97,116,101])]=v,_(e,r([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))[r([115,97,118,101,82,101,118,105,115,105,111,110])]=v,e[r([109,111,100,101,108])][r([99,104,97,110,103,101])]=v,e[r([109,111,100,101,108])][r([101,110,113,117,101,117,101,67,104,97,110,103,101])]=v,e[r([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](r([109,111,100,101,108]))),w(e,r([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))&&(_(e,r([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))[r([117,110,98,105,110,100])](r([105,115,69,110,97,98,108,101,100])),_(e,r([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))[r([105,115,69,110,97,98,108,101,100])]=!1,_(e,r([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))[r([99,111,109,112,97,114,101])]=v,_(e,r([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))[r([95,103,101,116,68,105,102,102])]=v)}e[r([115,116,97,116,101])]==r([114,101,97,100,121])?t():e[r([111,110,99,101])](r([114,101,97,100,121]),(()=>{if(w(e,r([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))&&t(),w(e,r([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))){const n=_(e,r([82,101,118,105,115,105,111,110,115,82,101,112,111,115,105,116,111,114,121])),o=n[qt("0x37")](0),i=n[qt("0x9")](o[r([105,100])]);_(e,r([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))[r([99,111,109,112,97,114,101])](o[r([105,100])],i?i[r([105,100])]:null,1)[qt("0x20")]((()=>t()))}}))}w(l,r([87,101,98,83,111,99,107,101,116,71,97,116,101,119,97,121]))&&_(l,r([87,101,98,83,111,99,107,101,116,71,97,116,101,119,97,121]))[r([115,116,97,116,101])]==r([99,111,110,110,101,99,116,101,100])&&(window[b()]=a),function(e,t){if(e==t[r([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+r([73,110,118,97,108,105,100]))u();else if(e==t[r([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+r([84,114,105,97,108])){const e=function(){if(!w(l,r([82,101,118,105,115,105,111,110,86,105,101,119,101,114])))return!1;for(const e in window)if(Number[qt("0x33")](Number(e))){if(window[e]===n)return r([116,105,109,101]);if(window[e]===s)return r([114,101,118,105,115,105,111,110,115])}return!1}();e&&c(e,t[r([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]);const a=function(){let e=i[6]*o[8]*o[6];return w(l,r([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))&&(e/=10),e}();window[r([115,101,116,84,105,109,101,111,117,116])]((()=>{c(r([116,105,109,101]),t[r([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])])}),a);const u=_(l,r([82,101,118,105,115,105,111,110,115,82,101,112,111,115,105,116,111,114,121]))[r([95,114,101,118,105,115,105,111,110,115])];u[r([108,101,110,103,116,104])]>=7?c(r([114,101,118,105,115,105,111,110,115]),t[r([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]):u.on(r([97,100,100]),(()=>{u[r([108,101,110,103,116,104])]>=7&&c(r([114,101,118,105,115,105,111,110,115]),t[r([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])])}))}}(function(e,t){try{return function(){if(!w(l,r([82,101,118,105,115,105,111,110,86,105,101,119,101,114])))return!1;for(const e in window)if(Number[qt("0x33")](Number(e))&&window[e]===a)return!0;return!1}()?k(t[r([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+r([86,97,108,105,100])):p(e,t)}catch(e){return k(t[r([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+r([73,110,118,97,108,105,100]))}}(e,t),t)}},u=e[r([99,111,110,115,116,114,117,99,116,111,114])][r([112,108,117,103,105,110,78,97,109,101])],l=r([99,111,110,116,101,120,116])in e?e.context:e.editor,d=r([52,48,52,56,48,50,51,52]),f=r([65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,48,49,50,51,52,53,54,55,56,57]),h=l.config.get(r([108,105,99,101,110,115,101,75,101,121])),g=a[r([102,105,108,116,101,114])](n)[r([102,105,110,100])]((e=>e[r([112,108,117,103,105,110,78,97,109,101])]===u));function p(e,t){try{return function(e){if(!w(l,e[r([112,108,117,103,105,110,78,97,109,101])]))return!0;const t=e[r([111,112,116,105,111,110,115])]||{},n=t[r([97,105,119,115,103,105,99])]||!1,o=t[r([97,105,116,99,100,103,105,108])]||!1,i=t[r([97,105,114,118,105,105,108])]||!1;return!(!w(l,r([87,101,98,83,111,99,107,101,116,71,97,116,101,119,97,121]))||_(l,r([87,101,98,83,111,99,107,101,116,71,97,116,101,119,97,121]))[r([115,116,97,116,101])]!=r([99,111,110,110,101,99,116,101,100])||!n)||(!(!w(l,r([84,114,97,99,107,67,104,97,110,103,101,115,68,97,116,97,71,101,116,116,101,114]))||_(l,r([84,114,97,99,107,67,104,97,110,103,101,115,68,97,116,97,71,101,116,116,101,114]))[r([114,101,115,117,108,116])]!=r([101,110,100])||!o)||!(!w(l,r([82,101,118,105,115,105,111,110,86,105,101,119,101,114,73,110,116,101,103,114,97,116,105,111,110]))||_(l,r([82,101,118,105,115,105,111,110,86,105,101,119,101,114,73,110,116,101,103,114,97,116,105,111,110]))[r([114,101,115,117,108,116])]!=r([101,110,100])||!i))}(t)?k(t[r([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+r([86,97,108,105,100])):e&&function(e,t){const n=!!(e&t[r([112,101,114,109,105,115,115,105,111,110,77,97,115,107])]),o=function(e,t){const n=(t[r([111,112,116,105,111,110,115])]||{})[r([102,103,105])]||null;if(!n)return!1;const o=a[r([102,105,110,100])]((e=>e[r([105,100])]===n));return!!o&&!!(e&o[r([112,101,114,109,105,115,115,105,111,110,77,97,115,107])])}(e,t);return n||o}(e[r([97,108,108,111,119,101,100,80,108,117,103,105,110,115])],t)?e[r([105,115,73,110,116,101,114,110,97,108])]&&!window[r([111,112,101,110])][r([99,108,111,115,101,100])]||parseInt(d)/2>e[r([101,120,112,105,114,97,116,105,111,110,68,97,116,101])]?k(t[r([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+r([73,110,118,97,108,105,100])):e[r([105,115,84,114,105,97,108])]?k(t[r([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+r([84,114,105,97,108])):k(t[r([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+r([86,97,108,105,100])):k(t[r([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+r([73,110,118,97,108,105,100]))}catch(e){return k(t[r([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+r([73,110,118,97,108,105,100]))}}function m(e,n){if(l instanceof t.Context){const t=l;e==n[r([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+r([73,110,118,97,108,105,100])?x(t):e==n[r([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+r([84,114,105,97,108])&&window[r([115,101,116,84,105,109,101,111,117,116])]((()=>{x(t),k(n[r([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+r([84,114,105,97,108,76,105,109,105,116,58,116,105,109,101]))}),i[6]*o[8]*o[6]),t[r([101,100,105,116,111,114,115])][r([111,110])](r([97,100,100]),((t,o)=>{e!=n[r([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+r([73,110,118,97,108,105,100])&&e!=n[r([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+r([84,114,105,97,108,76,105,109,105,116,58,116,105,109,101])&&e!=n[r([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+r([84,114,105,97,108,76,105,109,105,116,58,111,112,101,114,97,116,105,111,110,115])||y(o)}))}else{const t=l;e==n[r([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+r([73,110,118,97,108,105,100])?y(t):e==n[r([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+r([84,114,105,97,108])&&t[r([111,110])](r([114,101,97,100,121]),(()=>{let e=0;t[r([109,111,100,101,108])][r([111,110])](r([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),((o,i)=>{i[0][r([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,504===e&&(y(t),k(n[r([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+r([84,114,105,97,108,76,105,109,105,116,58,111,112,101,114,97,116,105,111,110,115])),o[r([111,102,102])]())}),{priority:r([104,105,103,104,101,115,116])})}))}}function k(e){const t=b();return l[t]=e,e}function b(){const e=String(window[r([112,101,114,102,111,114,109,97,110,99,101])][r([110,111,119])]())[r([114,101,112,108,97,99,101])](r([46]),"");let t="";for(let n=0;n<e[r([108,101,110,103,116,104])];n+=2){let o=parseInt(e[r([115,117,98,115,116,114,105,110,103])](n,n+2));o>=f[r([108,101,110,103,116,104])]&&(o-=f[r([108,101,110,103,116,104])]),t+=f[o]}return t}function x(e){for(const t of e[r([101,100,105,116,111,114,115])])y(t);_(e,r([67,111,109,109,101,110,116,115,82,101,112,111,115,105,116,111,114,121]))[r([115,119,105,116,99,104,82,101,97,100,79,110,108,121])](!0),_(e,r([67,111,109,109,101,110,116,115,82,101,112,111,115,105,116,111,114,121]))[r([115,119,105,116,99,104,82,101,97,100,79,110,108,121])]=v}function y(e){function t(){e[r([109,111,100,101,108])][r([99,104,97,110,103,101])]=v,e[r([109,111,100,101,108])][r([101,110,113,117,101,117,101,67,104,97,110,103,101])]=v,e[r([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](r([109,111,100,101,108]))}e[r([115,116,97,116,101])]==r([114,101,97,100,121])?t():e[r([111,110,99,101])](r([114,101,97,100,121]),(()=>t()))}function v(){return null}function w(e,t){return e[r([112,108,117,103,105,110,115])][r([104,97,115])](t)}function _(e,t){return e[r([112,108,117,103,105,110,115])][r([103,101,116])](t)}g&&function e(t,n){c[n[r([104,97,110,100,108,101,114])]](t,n),n[r([99,104,101,99,107,65,108,115,111])]&&n[r([99,104,101,99,107,65,108,115,111])][r([102,105,108,116,101,114])]((e=>w(l,e[r([112,108,117,103,105,110,78,97,109,101])])))[r([102,111,114,69,97,99,104])]((r=>e(t,r)))}(function(e){try{const t=s(e),n=JSON[r([112,97,114,115,101])](t),o=parseInt(n[r([49])]),i=n[r([50])]||"",a=parseInt(n[r([51])]),c=parseInt(n[r([52])])||0,u=parseInt(n[r([53])])||0;return{[r([112,114,111,100,117,99,116,78,97,109,101])]:i,[r([97,108,108,111,119,101,100,80,108,117,103,105,110,115])]:c,[r([101,120,112,105,114,97,116,105,111,110,68,97,116,101])]:o,[r([105,115,84,114,105,97,108])]:a,[r([105,115,73,110,116,101,114,110,97,108])]:u}}catch(e){return null}}(h),g)})(e)}(this)}[qt("0x63")](e="",t="",r="custom"){const n=this[qt("0x25")],i=n.editing.view,s=n[qt("0x14")][qt("0x4e")](j);s.showFakeVisualSelection();const a=new zt,c=new ClipboardEvent(qt("0x1c"),{clipboardData:a}),u=new Z.DataTransfer(a),l=new Z.DomEventData(i,c,{dataTransfer:u});i[qt("0x5d")][qt("0x22")](qt("0x1c"),l),this._formView||(this[qt("0x19")](),this[qt("0x17")]=new X(n,this[qt("0x2b")][qt("0x1")],this[qt("0x48")])),this[qt("0x17")][qt("0x31")]({actionId:r,query:e,htmlContent:u[qt("0x3c")]("text/html"),label:t,mainActionLabel:oe[n[qt("0x3a")][qt("0x5d")].selection.isCollapsed?"INSERT":qt("0x1b")]}),qt("0x61")!==this._dialog.id?this._dialog[qt("0x2c")]({id:qt("0x61"),icon:P[qt("0x54")],title:U(this.editor.locale,"AI Assistant"),content:this[qt("0x48")],position:o.DialogViewPosition[qt("0x2e")],onShow:()=>{this[qt("0x48")][qt("0x34")]()},onHide:()=>{this[qt("0x17")][qt("0x4a")](),s[qt("0x56")]()}}):this[qt("0x29")][qt("0x15")][qt("0x0")]||this[qt("0x29")][qt("0x15")].updatePosition()}[qt("0x50")](){this[qt("0x29")][qt("0x16")]()}_initView(){const e=this[qt("0x25")][qt("0x14")].get(j);this[qt("0x48")]=new St(this.editor[qt("0x43")],this._uiCssClasses,this.editor[qt("0x51")][qt("0x4e")](qt("0x36"))),this._formView.on("change:value",(()=>{this[qt("0x29")][qt("0x15")][qt("0x0")]||this[qt("0x29")][qt("0x15")][qt("0xe")]()})),this._formView[qt("0x53")][qt("0x5a")][qt("0x59")].on(qt("0x21"),(()=>{this[qt("0x29")][qt("0x15")][qt("0x0")]||this._dialog[qt("0x15")][qt("0xe")]()})),this[qt("0x40")](this[qt("0x48")],qt("0xc"),(()=>{e.insertContent(this._aiAssistantController[qt("0x2a")]),this[qt("0x50")]()})),this.listenTo(this[qt("0x48")],qt("0x2f"),(()=>{e[qt("0x2f")](this._aiAssistantController[qt("0x2a")]),this[qt("0x50")]()}))}}function Zt(e,t){return void 0!==e.order&&void 0===t[qt("0x24")]?1:void 0===e[qt("0x24")]&&void 0!==t[qt("0x24")]?-1:void 0!==e.order&&void 0!==t[qt("0x24")]?e.order-t[qt("0x24")]:0}function Wt(t,r){r[qt("0x41")](Zt);const n={},o=[];for(const i of r)if(void 0!==i[qt("0x24")]){if(i[qt("0x24")]in n)throw new e.CKEditorError(qt("0x7"),t,{conflictingDefinitions:[i,n[i.order]]});n[i[qt("0x24")]]=i,o[qt("0x27")](i[qt("0x24")],0,i)}else o[qt("0x5e")](i);return o}const Kt=["legal","aiLicenseKeyInvalid","concat","Portuguese","Professional","friendly","English","Translate the content to Arabic language.","groupId","licenseKey","ai.aiAssistant.commands","Friendly","aiLicenseKeyTrial","makeLonger","set","Business","Translate to %0","translateHindi","ai-invalid-license-key","editOrReview","init","Improve writing","poetic","Arabic","Remove any repetitive, redundant, or non-essential writing in this content without changing the meaning or losing any key information.","ai.aiAssistant.removeCommands","filter","Make longer","direct","Improve this content by using descriptive language and inserting more information and more detailed explanations.","_licenseKeyCheckInterval","improveWriting","define","Simplified Chinese","Translate the content to Hindi language.","Make shorter","confident","French","Improve using friendly, comforting language, to convey understanding and empathy.","Improve using casual, informal language to convey a casual conversation with a real person.","ai.aiAssistant.extraCommandGroups","continue","casual","translateGerman","Improve using compelling, optimistic language to convey confidence in the writing.","get","Improve using direct language, using only the essential information.","Translate the content to German language.","Rewrite this content as a poem using poetic techniques without losing the original meaning.","generate","requires","Translate the content to English language.","includes","Summarize","editor","translateSpanish","aiLicenseKeyTrialLimit:operations","translateEnglish","Change style","ai-trial-license-key-reached-limit-changes","Fix spelling mistakes, use proper grammar and apply good writing practices. Do not lose the original meaning.","simplifyLanguage","push","commands","config","changeTone","translate","Journalism","German","Direct","Hindi","summarize","Confident","Translate the content to Portuguese language.","Rewrite this content as a legal professional using valid legal terminology.","translateChinese","translateFrench","Translate the content to Spanish language.","aiLicenseKeyValid","makeShorter","Simplify language","Translate","Translate the content to French language.","destroy","AIAssistant","You are using the trial version of CKEditor 5 ai plugin with limited usage. Make sure you will not use it in the production environment.","Start with the provided content and write at the end of it continuing this topic. Keep the added part short.","forEach","Improve using polished, formal, and respectful language to convey professional expertise and competence.","Poetic","info"];var Yt,Jt;Yt=Kt,Jt=183,function(e){for(;--e;)Yt.push(Yt.shift())}(++Jt);const Qt=function(e,t){return Kt[e-=0]};class Xt extends t.Plugin{static get[Qt("0x31")](){return[Gt,j]}static get pluginName(){return Qt("0x53")}constructor(e){super(e);const t=e[Qt("0x3f")];var r;t.define(Qt("0x9"),(r=e.locale,[{groupId:Qt("0x12"),groupLabel:U(r,"Edit or review"),commands:[{id:Qt("0x1e"),label:U(r,Qt("0x14")),prompt:Qt("0x3b")},{id:Qt("0x4e"),label:U(r,Qt("0x22")),prompt:Qt("0x17")},{id:Qt("0xc"),label:U(r,Qt("0x1a")),prompt:Qt("0x1c")},{id:Qt("0x3c"),label:U(r,Qt("0x4f")),prompt:"Simplify the writing style of this content and reduce the complexity, so that the content is easy to understand."}]},{groupId:Qt("0x30"),groupLabel:U(r,"Generate from selection"),commands:[{id:Qt("0x46"),label:U(r,Qt("0x34")),prompt:"Summarize this content into one paragraph of text. Include only the key ideas and conclusions. Keep it short. Do not keep original text formatting."},{id:Qt("0x28"),label:U(r,"Continue"),prompt:Qt("0x55")}]},{groupId:Qt("0x40"),groupLabel:U(r,"Change tone"),commands:[{id:"professional",label:U(r,Qt("0x3")),prompt:Qt("0x57")},{id:Qt("0x29"),label:U(r,"Casual"),prompt:Qt("0x26")},{id:Qt("0x1b"),label:U(r,Qt("0x44")),prompt:Qt("0x2d")},{id:Qt("0x23"),label:U(r,Qt("0x47")),prompt:Qt("0x2b")},{id:Qt("0x4"),label:U(r,Qt("0xa")),prompt:Qt("0x25")}]},{groupId:"changeStyle",groupLabel:U(r,Qt("0x39")),commands:[{id:"business",label:U(r,Qt("0xe")),prompt:"Rewrite this content as a business professional with formal language."},{id:Qt("0x5a"),label:U(r,"Legal"),prompt:Qt("0x49")},{id:"journalism",label:U(r,Qt("0x42")),prompt:"Rewrite this content as a journalist using engaging language to convey the importance of the information."},{id:Qt("0x15"),label:U(r,Qt("0x58")),prompt:Qt("0x2f")}]},{groupId:Qt("0x41"),groupLabel:U(r,Qt("0x50")),commands:[{id:Qt("0x38"),label:U(r,"Translate to %0",[U(r,Qt("0x5"))]),prompt:Qt("0x32")},{id:Qt("0x36"),label:U(r,"Translate to %0",[U(r,"Spanish")]),prompt:Qt("0x4c")},{id:"translatePortuguese",label:U(r,Qt("0xf"),[U(r,Qt("0x2"))]),prompt:Qt("0x48")},{id:Qt("0x2a"),label:U(r,Qt("0xf"),[U(r,Qt("0x43"))]),prompt:Qt("0x2e")},{id:Qt("0x4b"),label:U(r,Qt("0xf"),[U(r,Qt("0x24"))]),prompt:Qt("0x51")},{id:Qt("0x4a"),label:U(r,Qt("0xf"),[U(r,Qt("0x20"))]),prompt:"Translate the content to Simplified Chinese language."},{id:Qt("0x10"),label:U(r,Qt("0xf"),[U(r,Qt("0x45"))]),prompt:Qt("0x21")},{id:"translateArabic",label:U(r,Qt("0xf"),[U(r,Qt("0x16"))]),prompt:Qt("0x6")}]}])),t.define(Qt("0x27"),[]),t[Qt("0x1f")](Qt("0x18"),[]);const n=t[Qt("0x2c")](Qt("0x9")),o=t[Qt("0x2c")](Qt("0x27")),i=t[Qt("0x2c")]("ai.aiAssistant.removeCommands");o.forEach((e=>{const t=n.find((t=>t.groupId===e[Qt("0x7")]));t?t[Qt("0x3e")]=t.commands[Qt("0x1")](e.commands):n[Qt("0x3d")](e)})),n[Qt("0x56")]((e=>{e[Qt("0x3e")]=e[Qt("0x3e")][Qt("0x19")]((e=>!i[Qt("0x33")](e.id)))})),t[Qt("0xd")](Qt("0x9"),n)}[Qt("0x13")](){const t=this[Qt("0x35")];this[Qt("0x8")]=t[Qt("0x3f")][Qt("0x2c")](Qt("0x8")),this[Qt("0x1d")]=setInterval((()=>{let r;for(const e in t){const n=e,o=t[n];if(Qt("0xb")===o||Qt("0x0")===o||Qt("0x4d")===o||"aiLicenseKeyTrialLimit:operations"===o){delete t[n],r=o;break}}if("aiLicenseKeyInvalid"===r)throw clearInterval(this[Qt("0x1d")]),new e.CKEditorError(Qt("0x11"),null);if(Qt("0xb")===r&&console[Qt("0x59")](Qt("0x54")),Qt("0x37")===r)throw clearInterval(this[Qt("0x1d")]),new e.CKEditorError(Qt("0x3a"),null);Qt("0x4d")===r&&clearInterval(this._licenseKeyCheckInterval)}),1e3)}[Qt("0x52")](){this[Qt("0x1d")]&&clearInterval(this[Qt("0x1d")])}}const er=["makeRequest","_prepareRequestParameters","init","aitextadapter-send-request-failed","sendRequest","locale","resolve","_prepareRequestHeaders","abortController","catch","object","application/json","reject","name","error","assign","plugins","signal","editor","aborted","get","AI_ERROR_GET_PARAMETERS","abort"];var tr,rr;tr=er,rr=294,function(e){for(;--e;)tr.push(tr.shift())}(++rr);const nr=function(e,t){return er[e-=0]};class or extends t.Plugin{static get requires(){return[D]}constructor(e){super(e),this[nr("0xd")]=new AbortController}[nr("0x7")](){this[nr("0x0")][nr("0x15")][nr("0x2")](D).textAdapter=this}[nr("0x4")](){this[nr("0xd")][nr("0x16")][nr("0x1")]||(this[nr("0xd")][nr("0x4")](),this[nr("0xd")]=new AbortController)}async[nr("0x5")](t){return this[nr("0x9")](t)[nr("0xe")]((t=>{if(t instanceof $)return Promise.reject(t);if("AbortError"==t[nr("0x12")])return Promise[nr("0xb")]();throw console[nr("0x13")](t),new e.CKEditorError(nr("0x8"),null)}))}async[nr("0xc")](e,t){const r=this[nr("0x0")][nr("0xa")],n={"Content-Type":nr("0x10")};if(nr("0xf")==typeof e)Object[nr("0x14")](n,e);else if(e)try{const r=await e(t);Object[nr("0x14")](n,r)}catch(e){return Promise.reject(new $(U(r,"AI_ERROR_GET_HEADERS")))}return n}async[nr("0x6")](e,t){const r=this[nr("0x0")][nr("0xa")];if(nr("0xf")==typeof e)return e;try{return await e(t)}catch(e){return Promise[nr("0x11")](new $(U(r,nr("0x3"))))}}}const ir=["ai.openAI.apiUrl","context_length_exceeded","define","parse","replace","Instruction:\n","json","ai.openAI.requestParameters.top_p","Moderation","_apiUrl","[DONE]","_readStreamableResponse","text","_requestParameters","editor","ai.openAI.requestHeaders","_isBufferIncomplete","prepareMessages","split","ai.openAI.requestParameters.max_tokens","Your task is to execute the instruction using the provided HTML content. Follow the instruction closely. Your answer must be a properly formatted HTML code. Do not add any additional remarks or notes. Do not act like a chatbot or a real person.","</span>","ai.openAI.requestParameters.temperature","config","includes","length","delta","_requestHeaders","locale","gpt-3.5-turbo","filter","decode","join","map","AI_ERROR_MODERATION","OpenAITextAdapter","pluginName","stream","content","resolve","ai.openAI.requestParameters.stream","body","AI_ERROR_CONTEXT_LENGTH","\nYou must keep the text formatting.\n\nContent:\n","stringify","choices","<span>","get","ai.openAI.requestParameters.model","_cleanUpData","POST","system","reject","user","sendRequest","read","data: ","_prepareRequestHeaders"];var sr,ar;sr=ir,ar=204,function(e){for(;--e;)sr.push(sr.shift())}(++ar);const cr=function(e,t){return ir[e-=0]};class ur extends or{static get[cr("0x6")](){return cr("0x5")}constructor(e){super(e),e.config[cr("0x1e")](cr("0x1c"),"https://api.openai.com/v1/chat/completions"),e[cr("0x33")].define(cr("0x12"),cr("0x39")),e.config[cr("0x1e")](cr("0x2f"),2e3),e[cr("0x33")].define(cr("0x32"),1),e[cr("0x33")].define(cr("0x23"),1),e[cr("0x33")][cr("0x1e")](cr("0xa"),!0),this[cr("0x25")]=e[cr("0x33")][cr("0x11")](cr("0x1c")),this[cr("0x37")]=e[cr("0x33")][cr("0x11")](cr("0x2b"))||{},this[cr("0x29")]=e[cr("0x33")][cr("0x11")]("ai.openAI.requestParameters")}async[cr("0x18")]({query:e,context:t,onData:r,actionId:n}){const o=this[cr("0x2a")][cr("0x38")],i=await this[cr("0x2d")](e,t,n),s=await this[cr("0x1b")](this[cr("0x37")],n),a=await this._prepareRequestParameters(this[cr("0x29")],n),c={messages:i,...a},u={method:cr("0x14"),headers:s,body:JSON[cr("0xe")](c),signal:this.abortController.signal},l=await fetch(this[cr("0x25")],u);if(l.ok)return a[cr("0x7")]?await this[cr("0x27")](l,r):await this._readStaticResponse(l,r),Promise[cr("0x9")]();{const e=await l[cr("0x28")]();return e[cr("0x34")](cr("0x1d"))?Promise.reject(new $(U(o,cr("0xc")))):e.includes(cr("0x24"))?Promise[cr("0x16")](new $(U(o,cr("0x4")))):Promise[cr("0x16")](new Error(e))}}async[cr("0x2d")](e,t,r){let n,o;return t?(n=cr("0x30"),o=cr("0x21")+e+cr("0xd")+(t.startsWith("<")?t:cr("0x10")+t+cr("0x31"))):(n="Your task is to generate HTML content accordingly to the given instruction. Never include <img> tag in your response even if asked for. Your answer must be a well-structured and properly formatted HTML code. Answer only with the generated HTML content. Do not add any additional remarks or notes. Do not act like a chatbot or a real person.",o=e),[{role:cr("0x15"),content:n},{role:cr("0x17"),content:o}]}async[cr("0x27")](e,t){const r=e[cr("0xb")].getReader(),n=new TextDecoder;let o="",i="",s="",a=!1;for(;!a;){const{done:e,value:c}=await r[cr("0x19")](),u=o+n[cr("0x1")](c);let l="";a=e;try{l=this._cleanUpData(u),o=""}catch(e){o=u;continue}i+=l,!a&&this._isBufferIncomplete(i)||i&&(s+=i,i="",t(s))}return Promise[cr("0x9")]()}async _readStaticResponse(e,t){return t((await e[cr("0x22")]())[cr("0xf")][0].message[cr("0x8")]),Promise.resolve()}[cr("0x2c")](e){const t=e.split("<")[cr("0x35")]!==e[cr("0x2e")](">")[cr("0x35")],r=e[cr("0x35")]<30;return t&&r}[cr("0x13")](e){return e[cr("0x2e")](/\n(?![^{]*\})/g)[cr("0x3")]((e=>e[cr("0x20")](cr("0x1a"),"")))[cr("0x0")]((e=>e&&e.length>0&&cr("0x26")!==e)).map((e=>{const{choices:t}=JSON[cr("0x1f")](e);if(t[0]&&t[0][cr("0x36")]&&t[0][cr("0x36")].content)return t[0].delta.content}))[cr("0x0")]((e=>e))[cr("0x2")]("")}}const lr=e=>{let t=e.httpHandler;return{setHttpHandler(e){t=e},httpHandler:()=>t,updateHttpClientConfig(e,r){t.updateHttpClientConfig(e,r)},httpHandlerConfigs:()=>t.httpHandlerConfigs()}};var dr,fr,hr,gr;!function(e){e.HEADER="header",e.QUERY="query"}(dr||(dr={})),function(e){e.HEADER="header",e.QUERY="query"}(fr||(fr={})),function(e){e.HTTP="http",e.HTTPS="https"}(hr||(hr={})),function(e){e.MD5="md5",e.CRC32="crc32",e.CRC32C="crc32c",e.SHA1="sha1",e.SHA256="sha256"}(gr||(gr={}));var pr;!function(e){e[e.HEADER=0]="HEADER",e[e.TRAILER=1]="TRAILER"}(pr||(pr={}));const mr="__smithy_context";var kr,br;!function(e){e.PROFILE="profile",e.SSO_SESSION="sso-session",e.SERVICES="services"}(kr||(kr={})),function(e){e.HTTP_0_9="http/0.9",e.HTTP_1_0="http/1.0",e.TDS_8_0="tds/8.0"}(br||(br={}));class xr{constructor(e){this.method=e.method||"GET",this.hostname=e.hostname||"localhost",this.port=e.port,this.query=e.query||{},this.headers=e.headers||{},this.body=e.body,this.protocol=e.protocol?":"!==e.protocol.slice(-1)?`${e.protocol}:`:e.protocol:"https:",this.path=e.path?"/"!==e.path.charAt(0)?`/${e.path}`:e.path:"/",this.username=e.username,this.password=e.password,this.fragment=e.fragment}static isInstance(e){if(!e)return!1;const t=e;return"method"in t&&"protocol"in t&&"hostname"in t&&"path"in t&&"object"==typeof t.query&&"object"==typeof t.headers}clone(){const e=new xr({...this,headers:{...this.headers}});var t;return e.query&&(e.query=(t=e.query,Object.keys(t).reduce(((e,r)=>{const n=t[r];return{...e,[r]:Array.isArray(n)?[...n]:n}}),{}))),e}}class yr{constructor(e){this.statusCode=e.statusCode,this.reason=e.reason,this.headers=e.headers||{},this.body=e.body}static isInstance(e){if(!e)return!1;const t=e;return"number"==typeof t.statusCode&&"object"==typeof t.headers}}const vr={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},wr=e=>({applyToStack:t=>{t.add((e=>t=>async r=>{if(!xr.isInstance(r.request))return t(r);const{request:n}=r,{handlerProtocol:o=""}=e.requestHandler.metadata||{};if(o.indexOf("h2")>=0&&!n.headers[":authority"])delete n.headers.host,n.headers[":authority"]=n.hostname+(n.port?":"+n.port:"");else if(!n.headers.host){let e=n.hostname;null!=n.port&&(e+=`:${n.port}`),n.headers.host=e}return t(r)})(e),vr)}}),_r={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},Sr="X-Amzn-Trace-Id",Er={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"},Ar=e=>({applyToStack:t=>{t.add((e=>t=>async r=>{const{request:n}=r;if(!xr.isInstance(n)||"node"!==e.runtime||n.headers.hasOwnProperty(Sr))return t(r);const o=process.env.AWS_LAMBDA_FUNCTION_NAME,i=process.env._X_AMZN_TRACE_ID,s=e=>"string"==typeof e&&e.length>0;return s(o)&&s(i)&&(n.headers[Sr]=i),t({...r,request:n})})(e),Er)}}),Pr=(e,t,r)=>{let n,o,i,s=!1;const a=async()=>{o||(o=e());try{n=await o,i=!0,s=!1}finally{o=void 0}return n};return void 0===t?async e=>(i&&!e?.forceRefresh||(n=await a()),n):async e=>(i&&!e?.forceRefresh||(n=await a()),s?n:r&&!r(n)?(s=!0,n):t(n)?(await a(),n):n)};var Rr=r(1913);const Or={},Tr={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();1===t.length&&(t=`0${t}`),Or[e]=t,Tr[t]=e}function Cr(e){let t="";for(let r=0;r<e.byteLength;r++)t+=Or[e[r]];return t}class Mr{constructor(e){if(this.bytes=e,8!==e.byteLength)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(e){if(e>0x8000000000000000||e<-0x8000000000000000)throw new Error(`${e} is too large (or, if negative, too small) to represent as an Int64`);const t=new Uint8Array(8);for(let r=7,n=Math.abs(Math.round(e));r>-1&&n>0;r--,n/=256)t[r]=n;return e<0&&Ir(t),new Mr(t)}valueOf(){const e=this.bytes.slice(0),t=128&e[0];return t&&Ir(e),parseInt(Cr(e),16)*(t?-1:1)}toString(){return String(this.valueOf())}}function Ir(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1&&(e[t]++,0===e[t]);t--);}class jr{constructor(e,t){this.toUtf8=e,this.fromUtf8=t}format(e){const t=[];for(const r of Object.keys(e)){const n=this.fromUtf8(r);t.push(Uint8Array.from([n.byteLength]),n,this.formatHeaderValue(e[r]))}const r=new Uint8Array(t.reduce(((e,t)=>e+t.byteLength),0));let n=0;for(const e of t)r.set(e,n),n+=e.byteLength;return r}formatHeaderValue(e){switch(e.type){case"boolean":return Uint8Array.from([e.value?0:1]);case"byte":return Uint8Array.from([2,e.value]);case"short":const t=new DataView(new ArrayBuffer(3));return t.setUint8(0,3),t.setInt16(1,e.value,!1),new Uint8Array(t.buffer);case"integer":const r=new DataView(new ArrayBuffer(5));return r.setUint8(0,4),r.setInt32(1,e.value,!1),new Uint8Array(r.buffer);case"long":const n=new Uint8Array(9);return n[0]=5,n.set(e.value.bytes,1),n;case"binary":const o=new DataView(new ArrayBuffer(3+e.value.byteLength));o.setUint8(0,6),o.setUint16(1,e.value.byteLength,!1);const i=new Uint8Array(o.buffer);return i.set(e.value,3),i;case"string":const s=this.fromUtf8(e.value),a=new DataView(new ArrayBuffer(3+s.byteLength));a.setUint8(0,7),a.setUint16(1,s.byteLength,!1);const c=new Uint8Array(a.buffer);return c.set(s,3),c;case"timestamp":const u=new Uint8Array(9);return u[0]=8,u.set(Mr.fromNumber(e.value.valueOf()).bytes,1),u;case"uuid":if(!zr.test(e.value))throw new Error(`Invalid UUID received: ${e.value}`);const l=new Uint8Array(17);return l[0]=9,l.set(function(e){if(e.length%2!=0)throw new Error("Hex encoded strings must have an even number length");const t=new Uint8Array(e.length/2);for(let r=0;r<e.length;r+=2){const n=e.slice(r,r+2).toLowerCase();if(!(n in Tr))throw new Error(`Cannot decode unrecognized sequence ${n} as hexadecimal`);t[r/2]=Tr[n]}return t}(e.value.replace(/\-/g,"")),1),l}}parse(e){const t={};let r=0;for(;r<e.byteLength;){const n=e.getUint8(r++),o=this.toUtf8(new Uint8Array(e.buffer,e.byteOffset+r,n));switch(r+=n,e.getUint8(r++)){case 0:t[o]={type:Nr,value:!0};break;case 1:t[o]={type:Nr,value:!1};break;case 2:t[o]={type:Br,value:e.getInt8(r++)};break;case 3:t[o]={type:Fr,value:e.getInt16(r,!1)},r+=2;break;case 4:t[o]={type:Dr,value:e.getInt32(r,!1)},r+=4;break;case 5:t[o]={type:$r,value:new Mr(new Uint8Array(e.buffer,e.byteOffset+r,8))},r+=8;break;case 6:const n=e.getUint16(r,!1);r+=2,t[o]={type:Ur,value:new Uint8Array(e.buffer,e.byteOffset+r,n)},r+=n;break;case 7:const i=e.getUint16(r,!1);r+=2,t[o]={type:Hr,value:this.toUtf8(new Uint8Array(e.buffer,e.byteOffset+r,i))},r+=i;break;case 8:t[o]={type:Vr,value:new Date(new Mr(new Uint8Array(e.buffer,e.byteOffset+r,8)).valueOf())},r+=8;break;case 9:const s=new Uint8Array(e.buffer,e.byteOffset+r,16);r+=16,t[o]={type:qr,value:`${Cr(s.subarray(0,4))}-${Cr(s.subarray(4,6))}-${Cr(s.subarray(6,8))}-${Cr(s.subarray(8,10))}-${Cr(s.subarray(10))}`};break;default:throw new Error("Unrecognized header type tag")}}return t}}var Lr;!function(e){e[e.boolTrue=0]="boolTrue",e[e.boolFalse=1]="boolFalse",e[e.byte=2]="byte",e[e.short=3]="short",e[e.integer=4]="integer",e[e.long=5]="long",e[e.byteArray=6]="byteArray",e[e.string=7]="string",e[e.timestamp=8]="timestamp",e[e.uuid=9]="uuid"}(Lr||(Lr={}));const Nr="boolean",Br="byte",Fr="short",Dr="integer",$r="long",Ur="binary",Hr="string",Vr="timestamp",qr="uuid",zr=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;class Gr{constructor(e,t){this.headerMarshaller=new jr(e,t),this.messageBuffer=[],this.isEndOfStream=!1}feed(e){this.messageBuffer.push(this.decode(e))}endOfStream(){this.isEndOfStream=!0}getMessage(){const e=this.messageBuffer.pop(),t=this.isEndOfStream;return{getMessage:()=>e,isEndOfStream:()=>t}}getAvailableMessages(){const e=this.messageBuffer;this.messageBuffer=[];const t=this.isEndOfStream;return{getMessages:()=>e,isEndOfStream:()=>t}}encode({headers:e,body:t}){const r=this.headerMarshaller.format(e),n=r.byteLength+t.byteLength+16,o=new Uint8Array(n),i=new DataView(o.buffer,o.byteOffset,o.byteLength),s=new Rr.Crc32;return i.setUint32(0,n,!1),i.setUint32(4,r.byteLength,!1),i.setUint32(8,s.update(o.subarray(0,8)).digest(),!1),o.set(r,12),o.set(t,r.byteLength+12),i.setUint32(n-4,s.update(o.subarray(8,n-4)).digest(),!1),o}decode(e){const{headers:t,body:r}=function({byteLength:e,byteOffset:t,buffer:r}){if(e<16)throw new Error("Provided message too short to accommodate event stream message overhead");const n=new DataView(r,t,e),o=n.getUint32(0,!1);if(e!==o)throw new Error("Reported message length does not match received message length");const i=n.getUint32(4,!1),s=n.getUint32(8,!1),a=n.getUint32(e-4,!1),c=(new Rr.Crc32).update(new Uint8Array(r,t,8));if(s!==c.digest())throw new Error(`The prelude checksum specified in the message (${s}) does not match the calculated CRC32 checksum (${c.digest()})`);if(c.update(new Uint8Array(r,t+8,e-12)),a!==c.digest())throw new Error(`The message checksum (${c.digest()}) did not match the expected value of ${a}`);return{headers:new DataView(r,t+8+4,i),body:new Uint8Array(r,t+8+4+i,o-i-16)}}(e);return{headers:this.headerMarshaller.parse(t),body:r}}formatHeaders(e){return this.headerMarshaller.format(e)}}class Zr{constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(const e of this.options.inputStream){const t=this.options.decoder.decode(e);yield t}}}class Wr{constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(const e of this.options.messageStream){const t=this.options.encoder.encode(e);yield t}this.options.includeEndFrame&&(yield new Uint8Array(0))}}class Kr{constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(const e of this.options.messageStream){const t=await this.options.deserializer(e);void 0!==t&&(yield t)}}}class Yr{constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(const e of this.options.inputStream){const t=this.options.serializer(e);yield t}}}const Jr=e=>{if("function"==typeof e)return e;const t=Promise.resolve(e);return()=>t},Qr=e=>new TextDecoder("utf-8").decode(e),Xr=e=>(new TextEncoder).encode(e),en=e=>"string"==typeof e?Xr(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e),tn="X-Amz-Date",rn="X-Amz-Signature",nn="X-Amz-Security-Token",on="authorization",sn=tn.toLowerCase(),an=[on,sn,"date"],cn=rn.toLowerCase(),un="x-amz-content-sha256",ln=nn.toLowerCase(),dn={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},fn=/^proxy-/,hn=/^sec-/,gn="AWS4-HMAC-SHA256",pn="AWS4-HMAC-SHA256-PAYLOAD",mn="aws4_request",kn={},bn=[],xn=(e,t,r)=>`${e}/${t}/${r}/${mn}`,yn=(e,t,r)=>{const n=new e(t);return n.update(en(r)),n.digest()},vn=({headers:e},t,r)=>{const n={};for(const o of Object.keys(e).sort()){if(null==e[o])continue;const i=o.toLowerCase();(i in dn||t?.has(i)||fn.test(i)||hn.test(i))&&(!r||r&&!r.has(i))||(n[i]=e[o].trim().replace(/\s+/g," "))}return n},wn=e=>encodeURIComponent(e).replace(/[!'()*]/g,_n),_n=e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`,Sn=async({headers:e,body:t},r)=>{for(const t of Object.keys(e))if(t.toLowerCase()===un)return e[t];if(null==t)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if("string"==typeof t||ArrayBuffer.isView(t)||(n=t,"function"==typeof ArrayBuffer&&n instanceof ArrayBuffer||"[object ArrayBuffer]"===Object.prototype.toString.call(n))){const e=new r;return e.update(en(t)),Cr(await e.digest())}var n;return"UNSIGNED-PAYLOAD"},En=({headers:e,query:t,...r})=>({...r,headers:{...e},query:t?An(t):void 0}),An=e=>Object.keys(e).reduce(((t,r)=>{const n=e[r];return{...t,[r]:Array.isArray(n)?[...n]:n}}),{}),Pn=e=>{e="function"==typeof e.clone?e.clone():En(e);for(const t of Object.keys(e.headers))an.indexOf(t.toLowerCase())>-1&&delete e.headers[t];return e},Rn=e=>"number"==typeof e?new Date(1e3*e):"string"==typeof e?Number(e)?new Date(1e3*Number(e)):new Date(e):e;class On{constructor({applyChecksum:e,credentials:t,region:r,service:n,sha256:o,uriEscapePath:i=!0}){this.headerMarshaller=new jr(Qr,Xr),this.service=n,this.sha256=o,this.uriEscapePath=i,this.applyChecksum="boolean"!=typeof e||e,this.regionProvider=Jr(r),this.credentialProvider=Jr(t)}async presign(e,t={}){const{signingDate:r=new Date,expiresIn:n=3600,unsignableHeaders:o,unhoistableHeaders:i,signableHeaders:s,signingRegion:a,signingService:c}=t,u=await this.credentialProvider();this.validateResolvedCredentials(u);const l=a??await this.regionProvider(),{longDate:d,shortDate:f}=Tn(r);if(n>604800)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");const h=xn(f,l,c??this.service),g=((e,t={})=>{const{headers:r,query:n={}}="function"==typeof e.clone?e.clone():En(e);for(const e of Object.keys(r)){const o=e.toLowerCase();"x-amz-"!==o.slice(0,6)||t.unhoistableHeaders?.has(o)||(n[e]=r[e],delete r[e])}return{...e,headers:r,query:n}})(Pn(e),{unhoistableHeaders:i});u.sessionToken&&(g.query[nn]=u.sessionToken),g.query["X-Amz-Algorithm"]=gn,g.query["X-Amz-Credential"]=`${u.accessKeyId}/${h}`,g.query[tn]=d,g.query["X-Amz-Expires"]=n.toString(10);const p=vn(g,o,s);return g.query["X-Amz-SignedHeaders"]=Cn(p),g.query[rn]=await this.getSignature(d,h,this.getSigningKey(u,l,f,c),this.createCanonicalRequest(g,p,await Sn(e,this.sha256))),g}async sign(e,t){return"string"==typeof e?this.signString(e,t):e.headers&&e.payload?this.signEvent(e,t):e.message?this.signMessage(e,t):this.signRequest(e,t)}async signEvent({headers:e,payload:t},{signingDate:r=new Date,priorSignature:n,signingRegion:o,signingService:i}){const s=o??await this.regionProvider(),{shortDate:a,longDate:c}=Tn(r),u=xn(a,s,i??this.service),l=await Sn({headers:{},body:t},this.sha256),d=new this.sha256;d.update(e);const f=Cr(await d.digest()),h=[pn,c,u,n,f,l].join("\n");return this.signString(h,{signingDate:r,signingRegion:s,signingService:i})}async signMessage(e,{signingDate:t=new Date,signingRegion:r,signingService:n}){return this.signEvent({headers:this.headerMarshaller.format(e.message.headers),payload:e.message.body},{signingDate:t,signingRegion:r,signingService:n,priorSignature:e.priorSignature}).then((t=>({message:e.message,signature:t})))}async signString(e,{signingDate:t=new Date,signingRegion:r,signingService:n}={}){const o=await this.credentialProvider();this.validateResolvedCredentials(o);const i=r??await this.regionProvider(),{shortDate:s}=Tn(t),a=new this.sha256(await this.getSigningKey(o,i,s,n));return a.update(en(e)),Cr(await a.digest())}async signRequest(e,{signingDate:t=new Date,signableHeaders:r,unsignableHeaders:n,signingRegion:o,signingService:i}={}){const s=await this.credentialProvider();this.validateResolvedCredentials(s);const a=o??await this.regionProvider(),c=Pn(e),{longDate:u,shortDate:l}=Tn(t),d=xn(l,a,i??this.service);c.headers[sn]=u,s.sessionToken&&(c.headers[ln]=s.sessionToken);const f=await Sn(c,this.sha256);!((e,t)=>{e=e.toLowerCase();for(const r of Object.keys(t))if(e===r.toLowerCase())return!0;return!1})(un,c.headers)&&this.applyChecksum&&(c.headers[un]=f);const h=vn(c,n,r),g=await this.getSignature(u,d,this.getSigningKey(s,a,l,i),this.createCanonicalRequest(c,h,f));return c.headers[on]=`${gn} Credential=${s.accessKeyId}/${d}, SignedHeaders=${Cn(h)}, Signature=${g}`,c}createCanonicalRequest(e,t,r){const n=Object.keys(t).sort();return`${e.method}\n${this.getCanonicalPath(e)}\n${(({query:e={}})=>{const t=[],r={};for(const n of Object.keys(e).sort()){if(n.toLowerCase()===cn)continue;t.push(n);const o=e[n];"string"==typeof o?r[n]=`${wn(n)}=${wn(o)}`:Array.isArray(o)&&(r[n]=o.slice(0).reduce(((e,t)=>e.concat([`${wn(n)}=${wn(t)}`])),[]).sort().join("&"))}return t.map((e=>r[e])).filter((e=>e)).join("&")})(e)}\n${n.map((e=>`${e}:${t[e]}`)).join("\n")}\n\n${n.join(";")}\n${r}`}async createStringToSign(e,t,r){const n=new this.sha256;n.update(en(r));const o=await n.digest();return`${gn}\n${e}\n${t}\n${Cr(o)}`}getCanonicalPath({path:e}){if(this.uriEscapePath){const t=[];for(const r of e.split("/"))0!==r?.length&&"."!==r&&(".."===r?t.pop():t.push(r));const r=`${e?.startsWith("/")?"/":""}${t.join("/")}${t.length>0&&e?.endsWith("/")?"/":""}`;return encodeURIComponent(r).replace(/%2F/g,"/")}return e}async getSignature(e,t,r,n){const o=await this.createStringToSign(e,t,n),i=new this.sha256(await r);return i.update(en(o)),Cr(await i.digest())}getSigningKey(e,t,r,n){return(async(e,t,r,n,o)=>{const i=`${r}:${n}:${o}:${Cr(await yn(e,t.secretAccessKey,t.accessKeyId))}:${t.sessionToken}`;if(i in kn)return kn[i];for(bn.push(i);bn.length>50;)delete kn[bn.shift()];let s=`AWS4${t.secretAccessKey}`;for(const t of[r,n,o,mn])s=await yn(e,s,t);return kn[i]=s})(this.sha256,e,r,t,n||this.service)}validateResolvedCredentials(e){if("object"!=typeof e||"string"!=typeof e.accessKeyId||"string"!=typeof e.secretAccessKey)throw new Error("Resolved credential object is not valid")}}const Tn=e=>{const t=(r=e,Rn(r).toISOString().replace(/\.\d{3}Z$/,"Z")).replace(/[\-:]/g,"");var r;return{longDate:t,shortDate:t.slice(0,8)}},Cn=e=>Object.keys(e).sort().join(";"),Mn=e=>"function"==typeof e?Pr(e,(e=>void 0!==e.expiration&&e.expiration.getTime()-Date.now()<3e5),(e=>void 0!==e.expiration)):Jr(e),In=e=>new Date(Date.now()+e),jn=(e,t)=>{const r=Date.parse(e);return((e,t)=>Math.abs(In(t).getTime()-e)>=3e5)(r,t)?r-Date.now():t},Ln=e=>yr.isInstance(e)?e.headers?.date??e.headers?.Date:void 0,Nn={name:"awsAuthMiddleware",tags:["SIGNATURE","AWSAUTH"],relation:"after",toMiddleware:"retryMiddleware",override:!0},Bn=e=>({applyToStack:t=>{t.addRelativeTo((e=>(t,r)=>async function(n){if(!xr.isInstance(n.request))return t(n);const o=r.endpointV2?.properties?.authSchemes?.[0],i="sigv4a"===o?.name?o?.signingRegionSet?.join(","):void 0,s=await e.signer(o);let a;const c={signingDate:In(e.systemClockOffset),signingRegion:i||r.signing_region,signingService:r.signing_service};if(r.s3ExpressIdentity){const e=s;if(a=await e.signWithCredentials(n.request,r.s3ExpressIdentity,c),a.headers["X-Amz-Security-Token"]||a.headers["x-amz-security-token"])throw new Error("X-Amz-Security-Token must not be set for s3-express requests.")}else a=await s.sign(n.request,c);const u=await t({...n,request:a}).catch((t=>{const r=t.ServerTime??Ln(t.$response);throw r&&(e.systemClockOffset=jn(r,e.systemClockOffset)),t})),l=Ln(u.response);return l&&(e.systemClockOffset=jn(l,e.systemClockOffset)),u})(e),Nn)}});const Fn=new RegExp("^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$"),Dn=e=>Fn.test(e)||e.startsWith("[")&&e.endsWith("]"),$n=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),Un=(e,t=!1)=>{if(!t)return $n.test(e);const r=e.split(".");for(const e of r)if(!Un(e))return!1;return!0},Hn={},Vn="endpoints";function qn(e){return"object"!=typeof e||null==e?e:"ref"in e?`$${qn(e.ref)}`:"fn"in e?`${e.fn}(${(e.argv||[]).map(qn).join(", ")})`:JSON.stringify(e,null,2)}class zn extends Error{constructor(e){super(e),this.name="EndpointError"}}const Gn=(e,t)=>(e=>{const t=e.split("."),r=[];for(const n of t){const t=n.indexOf("[");if(-1!==t){if(n.indexOf("]")!==n.length-1)throw new zn(`Path: '${e}' does not end with ']'`);const o=n.slice(t+1,-1);if(Number.isNaN(parseInt(o)))throw new zn(`Invalid array index: '${o}' in path: '${e}'`);0!==t&&r.push(n.slice(0,t)),r.push(o)}else r.push(n)}return r})(t).reduce(((r,n)=>{if("object"!=typeof r)throw new zn(`Index '${n}' in '${t}' not found in '${JSON.stringify(e)}'`);return Array.isArray(r)?r[parseInt(n)]:r[n]}),e),Zn={[hr.HTTP]:80,[hr.HTTPS]:443},Wn={booleanEquals:(e,t)=>e===t,getAttr:Gn,isSet:e=>null!=e,isValidHostLabel:Un,not:e=>!e,parseURL:e=>{const t=(()=>{try{if(e instanceof URL)return e;if("object"==typeof e&&"hostname"in e){const{hostname:t,port:r,protocol:n="",path:o="",query:i={}}=e,s=new URL(`${n}//${t}${r?`:${r}`:""}${o}`);return s.search=Object.entries(i).map((([e,t])=>`${e}=${t}`)).join("&"),s}return new URL(e)}catch(e){return null}})();if(!t)return console.error(`Unable to parse ${JSON.stringify(e)} as a whatwg URL.`),null;const r=t.href,{host:n,hostname:o,pathname:i,protocol:s,search:a}=t;if(a)return null;const c=s.slice(0,-1);if(!Object.values(hr).includes(c))return null;const u=Dn(o);return{scheme:c,authority:`${n}${r.includes(`${n}:${Zn[c]}`)||"string"==typeof e&&e.includes(`${n}:${Zn[c]}`)?`:${Zn[c]}`:""}`,path:i,normalizedPath:i.endsWith("/")?i:`${i}/`,isIp:u}},stringEquals:(e,t)=>e===t,substring:(e,t,r,n)=>t>=r||e.length<r?null:n?e.substring(e.length-r,e.length-t):e.substring(t,r),uriEncode:e=>encodeURIComponent(e).replace(/[!*'()]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`))},Kn=(e,t)=>{const r=[],n={...t.endpointParams,...t.referenceRecord};let o=0;for(;o<e.length;){const t=e.indexOf("{",o);if(-1===t){r.push(e.slice(o));break}r.push(e.slice(o,t));const i=e.indexOf("}",t);if(-1===i){r.push(e.slice(t));break}"{"===e[t+1]&&"}"===e[i+1]&&(r.push(e.slice(t+1,i)),o=i+2);const s=e.substring(t+1,i);if(s.includes("#")){const[e,t]=s.split("#");r.push(Gn(n[e],t))}else r.push(n[s]);o=i+1}return r.join("")},Yn=(e,t,r)=>{if("string"==typeof e)return Kn(e,r);if(e.fn)return Jn(e,r);if(e.ref)return(({ref:e},t)=>({...t.endpointParams,...t.referenceRecord}[e]))(e,r);throw new zn(`'${t}': ${String(e)} is not a string, function or reference.`)},Jn=({fn:e,argv:t},r)=>{const n=t.map((e=>["boolean","number"].includes(typeof e)?e:Yn(e,"arg",r))),o=e.split(".");return o[0]in Hn&&null!=o[1]?Hn[o[0]][o[1]](...n):Wn[e](...n)},Qn=({assign:e,...t},r)=>{if(e&&e in r.referenceRecord)throw new zn(`'${e}' is already defined in Reference Record.`);const n=Jn(t,r);return r.logger?.debug?.(Vn,`evaluateCondition: ${qn(t)} = ${qn(n)}`),{result:""===n||!!n,...null!=e&&{toAssign:{name:e,value:n}}}},Xn=(e=[],t)=>{const r={};for(const n of e){const{result:e,toAssign:o}=Qn(n,{...t,referenceRecord:{...t.referenceRecord,...r}});if(!e)return{result:e};o&&(r[o.name]=o.value,t.logger?.debug?.(Vn,`assign: ${o.name} := ${qn(o.value)}`))}return{result:!0,referenceRecord:r}},eo=(e,t)=>Object.entries(e).reduce(((e,[r,n])=>({...e,[r]:n.map((e=>{const n=Yn(e,"Header value entry",t);if("string"!=typeof n)throw new zn(`Header '${r}' value '${n}' is not a string`);return n}))})),{}),to=(e,t)=>{if(Array.isArray(e))return e.map((e=>to(e,t)));switch(typeof e){case"string":return Kn(e,t);case"object":if(null===e)throw new zn(`Unexpected endpoint property: ${e}`);return ro(e,t);case"boolean":return e;default:throw new zn("Unexpected endpoint property type: "+typeof e)}},ro=(e,t)=>Object.entries(e).reduce(((e,[r,n])=>({...e,[r]:to(n,t)})),{}),no=(e,t)=>{const r=Yn(e,"Endpoint URL",t);if("string"==typeof r)try{return new URL(r)}catch(e){throw console.error(`Failed to construct URL with ${r}`,e),e}throw new zn("Endpoint URL must be a string, got "+typeof r)},oo=(e,t)=>{const{conditions:r,endpoint:n}=e,{result:o,referenceRecord:i}=Xn(r,t);if(!o)return;const s={...t,referenceRecord:{...t.referenceRecord,...i}},{url:a,properties:c,headers:u}=n;return t.logger?.debug?.(Vn,`Resolving endpoint from template: ${qn(n)}`),{...null!=u&&{headers:eo(u,s)},...null!=c&&{properties:ro(c,s)},url:no(a,s)}},io=(e,t)=>{const{conditions:r,error:n}=e,{result:o,referenceRecord:i}=Xn(r,t);if(o)throw new zn(Yn(n,"Error",{...t,referenceRecord:{...t.referenceRecord,...i}}))},so=(e,t)=>{const{conditions:r,rules:n}=e,{result:o,referenceRecord:i}=Xn(r,t);if(o)return ao(n,{...t,referenceRecord:{...t.referenceRecord,...i}})},ao=(e,t)=>{for(const r of e)if("endpoint"===r.type){const e=oo(r,t);if(e)return e}else if("error"===r.type)io(r,t);else{if("tree"!==r.type)throw new zn(`Unknown endpoint rule: ${r}`);{const e=so(r,t);if(e)return e}}throw new zn("Rules evaluation failed")},co=(e,t=!1)=>{if(t){for(const t of e.split("."))if(!co(t))return!1;return!0}return!!Un(e)&&(!(e.length<3||e.length>63)&&(e===e.toLowerCase()&&!Dn(e)))};let uo=JSON.parse('{"partitions":[{"id":"aws","outputs":{"dnsSuffix":"amazonaws.com","dualStackDnsSuffix":"api.aws","implicitGlobalRegion":"us-east-1","name":"aws","supportsDualStack":true,"supportsFIPS":true},"regionRegex":"^(us|eu|ap|sa|ca|me|af|il)\\\\-\\\\w+\\\\-\\\\d+$","regions":{"af-south-1":{"description":"Africa (Cape Town)"},"ap-east-1":{"description":"Asia Pacific (Hong Kong)"},"ap-northeast-1":{"description":"Asia Pacific (Tokyo)"},"ap-northeast-2":{"description":"Asia Pacific (Seoul)"},"ap-northeast-3":{"description":"Asia Pacific (Osaka)"},"ap-south-1":{"description":"Asia Pacific (Mumbai)"},"ap-south-2":{"description":"Asia Pacific (Hyderabad)"},"ap-southeast-1":{"description":"Asia Pacific (Singapore)"},"ap-southeast-2":{"description":"Asia Pacific (Sydney)"},"ap-southeast-3":{"description":"Asia Pacific (Jakarta)"},"ap-southeast-4":{"description":"Asia Pacific (Melbourne)"},"aws-global":{"description":"AWS Standard global region"},"ca-central-1":{"description":"Canada (Central)"},"eu-central-1":{"description":"Europe (Frankfurt)"},"eu-central-2":{"description":"Europe (Zurich)"},"eu-north-1":{"description":"Europe (Stockholm)"},"eu-south-1":{"description":"Europe (Milan)"},"eu-south-2":{"description":"Europe (Spain)"},"eu-west-1":{"description":"Europe (Ireland)"},"eu-west-2":{"description":"Europe (London)"},"eu-west-3":{"description":"Europe (Paris)"},"il-central-1":{"description":"Israel (Tel Aviv)"},"me-central-1":{"description":"Middle East (UAE)"},"me-south-1":{"description":"Middle East (Bahrain)"},"sa-east-1":{"description":"South America (Sao Paulo)"},"us-east-1":{"description":"US East (N. Virginia)"},"us-east-2":{"description":"US East (Ohio)"},"us-west-1":{"description":"US West (N. California)"},"us-west-2":{"description":"US West (Oregon)"}}},{"id":"aws-cn","outputs":{"dnsSuffix":"amazonaws.com.cn","dualStackDnsSuffix":"api.amazonwebservices.com.cn","implicitGlobalRegion":"cn-northwest-1","name":"aws-cn","supportsDualStack":true,"supportsFIPS":true},"regionRegex":"^cn\\\\-\\\\w+\\\\-\\\\d+$","regions":{"aws-cn-global":{"description":"AWS China global region"},"cn-north-1":{"description":"China (Beijing)"},"cn-northwest-1":{"description":"China (Ningxia)"}}},{"id":"aws-us-gov","outputs":{"dnsSuffix":"amazonaws.com","dualStackDnsSuffix":"api.aws","implicitGlobalRegion":"us-gov-west-1","name":"aws-us-gov","supportsDualStack":true,"supportsFIPS":true},"regionRegex":"^us\\\\-gov\\\\-\\\\w+\\\\-\\\\d+$","regions":{"aws-us-gov-global":{"description":"AWS GovCloud (US) global region"},"us-gov-east-1":{"description":"AWS GovCloud (US-East)"},"us-gov-west-1":{"description":"AWS GovCloud (US-West)"}}},{"id":"aws-iso","outputs":{"dnsSuffix":"c2s.ic.gov","dualStackDnsSuffix":"c2s.ic.gov","implicitGlobalRegion":"us-iso-east-1","name":"aws-iso","supportsDualStack":false,"supportsFIPS":true},"regionRegex":"^us\\\\-iso\\\\-\\\\w+\\\\-\\\\d+$","regions":{"aws-iso-global":{"description":"AWS ISO (US) global region"},"us-iso-east-1":{"description":"US ISO East"},"us-iso-west-1":{"description":"US ISO WEST"}}},{"id":"aws-iso-b","outputs":{"dnsSuffix":"sc2s.sgov.gov","dualStackDnsSuffix":"sc2s.sgov.gov","implicitGlobalRegion":"us-isob-east-1","name":"aws-iso-b","supportsDualStack":false,"supportsFIPS":true},"regionRegex":"^us\\\\-isob\\\\-\\\\w+\\\\-\\\\d+$","regions":{"aws-iso-b-global":{"description":"AWS ISOB (US) global region"},"us-isob-east-1":{"description":"US ISOB East (Ohio)"}}},{"id":"aws-iso-e","outputs":{"dnsSuffix":"cloud.adc-e.uk","dualStackDnsSuffix":"cloud.adc-e.uk","implicitGlobalRegion":"eu-isoe-west-1","name":"aws-iso-e","supportsDualStack":false,"supportsFIPS":true},"regionRegex":"^eu\\\\-isoe\\\\-\\\\w+\\\\-\\\\d+$","regions":{}},{"id":"aws-iso-f","outputs":{"dnsSuffix":"csp.hci.ic.gov","dualStackDnsSuffix":"csp.hci.ic.gov","implicitGlobalRegion":"us-isof-south-1","name":"aws-iso-f","supportsDualStack":false,"supportsFIPS":true},"regionRegex":"^us\\\\-isof\\\\-\\\\w+\\\\-\\\\d+$","regions":{}}],"version":"1.1"}'),lo="";const fo={isVirtualHostableS3Bucket:co,parseArn:e=>{const t=e.split(":");if(t.length<6)return null;const[r,n,o,i,s,...a]=t;return"arn"!==r||""===n||""===o||""===a[0]?null:{partition:n,service:o,region:i,accountId:s,resourceId:a[0].includes("/")?a[0].split("/"):a}},partition:e=>{const{partitions:t}=uo;for(const r of t){const{regions:t,outputs:n}=r;for(const[r,o]of Object.entries(t))if(r===e)return{...n,...o}}for(const r of t){const{regionRegex:t,outputs:n}=r;if(new RegExp(t).test(e))return{...n}}const r=t.find((e=>"aws"===e.id));if(!r)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...r.outputs}}};Hn.aws=fo;const ho="user-agent",go="x-amz-user-agent",po=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g,mo=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w\#]/g,ko=e=>(t,r)=>async n=>{const{request:o}=n;if(!xr.isInstance(o))return t(n);const{headers:i}=o,s=r?.userAgent?.map(bo)||[],a=(await e.defaultUserAgentProvider()).map(bo),c=e?.customUserAgent?.map(bo)||[],u=(lo?[lo]:[]).concat([...a,...s,...c]).join(" "),l=[...a.filter((e=>e.startsWith("aws-sdk-"))),...c].join(" ");return"browser"!==e.runtime?(l&&(i[go]=i[go]?`${i[ho]} ${l}`:l),i[ho]=u):i[go]=u,t({...n,request:o})},bo=e=>{const t=e[0].split("/").map((e=>e.replace(po,"-"))).join("/"),r=e[1]?.replace(mo,"-"),n=t.indexOf("/"),o=t.substring(0,n);let i=t.substring(n+1);return"api"===o&&(i=i.toLowerCase()),[o,i,r].filter((e=>e&&e.length>0)).reduce(((e,t,r)=>{switch(r){case 0:return t;case 1:return`${e}/${t}`;default:return`${e}#${t}`}}),"")},xo={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0};var yo;!function(e){e.ENV="env",e.CONFIG="shared config entry"}(yo||(yo={}));const vo=e=>"string"==typeof e&&(e.startsWith("fips-")||e.endsWith("-fips")),wo=e=>vo(e)?["fips-aws-global","aws-fips"].includes(e)?"us-east-1":e.replace(/fips-(dkr-|prod-)?|-fips/,""):e,_o="content-length";const So={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},Eo=e=>({applyToStack:t=>{var r;t.add((r=e.bodyLengthChecker,e=>async t=>{const n=t.request;if(xr.isInstance(n)){const{body:e,headers:t}=n;if(e&&-1===Object.keys(t).map((e=>e.toLowerCase())).indexOf(_o))try{const t=r(e);n.headers={...n.headers,[_o]:String(t)}}catch(e){}}return e({...t,request:n})}),So)}}),Ao=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,Po=/(\d+\.){3}\d+/,Ro=/\.\./,Oo=e=>Ao.test(e)&&!Po.test(e)&&!Ro.test(e),To=e=>{const[t,r,n,o,i,s]=e.split(":"),a="arn"===t&&e.split(":").length>=6,c=5===[t,r,n,i,s].filter(Boolean).length;if(a&&!c)throw new Error(`Invalid ARN: ${e} was an invalid ARN.`);return!!("arn"===t&&r&&n&&i&&s)},Co=(e,t,r)=>{const n=async()=>{const n=r[e]??r[t];return"function"==typeof n?n():n};return"credentialScope"===e||"CredentialScope"===t?async()=>{const e="function"==typeof r.credentials?await r.credentials():r.credentials;return e?.credentialScope??e?.CredentialScope}:"endpoint"===e||"endpoint"===t?async()=>{const e=await n();if(e&&"object"==typeof e){if("url"in e)return e.url.href;if("hostname"in e){const{protocol:t,hostname:r,port:n,path:o}=e;return`${t}//${r}${n?":"+n:""}${o}`}}return e}:n};const Mo=e=>{if("string"==typeof e)return Mo(new URL(e));const{hostname:t,pathname:r,port:n,protocol:o,search:i}=e;let s;return i&&(s=function(e){const t={};if(e=e.replace(/^\?/,""))for(const r of e.split("&")){let[e,n=null]=r.split("=");e=decodeURIComponent(e),n&&(n=decodeURIComponent(n)),e in t?Array.isArray(t[e])?t[e].push(n):t[e]=[t[e],n]:t[e]=n}return t}(i)),{hostname:t,port:n?parseInt(n):void 0,protocol:o,path:r,query:s}},Io=e=>"object"==typeof e?"url"in e?Mo(e.url):e:Mo(e),jo=async(e,t,r)=>{const n={},o=t?.getEndpointParameterInstructions?.()||{};for(const[t,i]of Object.entries(o))switch(i.type){case"staticContextParams":n[t]=i.value;break;case"contextParams":n[t]=e[i.name];break;case"clientContextParams":case"builtInParams":n[t]=await Co(i.name,t,r)();break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(i))}return 0===Object.keys(o).length&&Object.assign(n,r),"s3"===String(r.serviceId).toLowerCase()&&await(async e=>{const t=e?.Bucket||"";if("string"==typeof e.Bucket&&(e.Bucket=t.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"))),To(t)){if(!0===e.ForcePathStyle)throw new Error("Path-style addressing cannot be used with ARN buckets")}else(!Oo(t)||-1!==t.indexOf(".")&&!String(e.Endpoint).startsWith("http:")||t.toLowerCase()!==t||t.length<3)&&(e.ForcePathStyle=!0);return e.DisableMultiRegionAccessPoints&&(e.disableMultiRegionAccessPoints=!0,e.DisableMRAP=!0),e})(n),n},Lo=({config:e,instructions:t})=>(r,n)=>async o=>{const i=await(async(e,t,r,n)=>{if(!r.endpoint){const e=await(async e=>{})(r.serviceId);e&&(r.endpoint=()=>Promise.resolve(Io(e)))}const o=await jo(e,t,r);if("function"!=typeof r.endpointProvider)throw new Error("config.endpointProvider is not set.");return r.endpointProvider(o,n)})(o.input,{getEndpointParameterInstructions:()=>t},{...e},n);n.endpointV2=i,n.authSchemes=i.properties?.authSchemes;const s=n.authSchemes?.[0];if(s){n.signing_region=s.signingRegion,n.signing_service=s.signingName;const e=(e=>e[mr]||(e[mr]={}))(n),t=e?.selectedHttpAuthScheme?.httpAuthOption;t&&(t.signingProperties=Object.assign(t.signingProperties||{},{signing_region:s.signingRegion,signingRegion:s.signingRegion,signing_service:s.signingName,signingName:s.signingName,signingRegionSet:s.signingRegionSet},s.properties))}return r({...o})},No={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},Bo={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};function Fo(e,t,r){return{applyToStack:n=>{n.add(((e,t)=>(r,n)=>async n=>{const{response:o}=await r(n);try{return{response:o,output:await t(o,e)}}catch(e){if(Object.defineProperty(e,"$response",{value:o}),!("$metadata"in e)){const t="Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.";e.message+="\n "+t}throw e}})(e,r),No),n.add(((e,t)=>(r,n)=>async o=>{const i=n.endpointV2?.url&&e.urlParser?async()=>e.urlParser(n.endpointV2.url):e.endpoint;if(!i)throw new Error("No valid endpoint provider available.");const s=await t(o.input,{...e,endpoint:i});return r({...o,request:s})})(e,t),Bo)}}}const Do={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:Bo.name},$o=(e,t)=>({applyToStack:r=>{r.addRelativeTo(Lo({config:e,instructions:t}),Do)}});var Uo;!function(e){e.STANDARD="standard",e.ADAPTIVE="adaptive"}(Uo||(Uo={}));const Ho=Uo.STANDARD,Vo=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],qo=["TimeoutError","RequestTimeout","RequestTimeoutException"],zo=[500,502,503,504],Go=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],Zo=e=>429===e.$metadata?.httpStatusCode||Vo.includes(e.name)||1==e.$retryable?.throttling,Wo=e=>qo.includes(e.name)||Go.includes(e?.code||"")||zo.includes(e.$metadata?.httpStatusCode||0);class Ko{constructor(e){this.currentCapacity=0,this.enabled=!1,this.lastMaxRate=0,this.measuredTxRate=0,this.requestCount=0,this.lastTimestamp=0,this.timeWindow=0,this.beta=e?.beta??.7,this.minCapacity=e?.minCapacity??1,this.minFillRate=e?.minFillRate??.5,this.scaleConstant=e?.scaleConstant??.4,this.smooth=e?.smooth??.8;const t=this.getCurrentTimeInSeconds();this.lastThrottleTime=t,this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}getCurrentTimeInSeconds(){return Date.now()/1e3}async getSendToken(){return this.acquireTokenBucket(1)}async acquireTokenBucket(e){if(this.enabled){if(this.refillTokenBucket(),e>this.currentCapacity){const t=(e-this.currentCapacity)/this.fillRate*1e3;await new Promise((e=>setTimeout(e,t)))}this.currentCapacity=this.currentCapacity-e}}refillTokenBucket(){const e=this.getCurrentTimeInSeconds();if(!this.lastTimestamp)return void(this.lastTimestamp=e);const t=(e-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+t),this.lastTimestamp=e}updateClientSendingRate(e){let t;if(this.updateMeasuredRate(),Zo(e)){const e=this.enabled?Math.min(this.measuredTxRate,this.fillRate):this.measuredTxRate;this.lastMaxRate=e,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),t=this.cubicThrottle(e),this.enableTokenBucket()}else this.calculateTimeWindow(),t=this.cubicSuccess(this.getCurrentTimeInSeconds());const r=Math.min(t,2*this.measuredTxRate);this.updateTokenBucketRate(r)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,1/3))}cubicThrottle(e){return this.getPrecise(e*this.beta)}cubicSuccess(e){return this.getPrecise(this.scaleConstant*Math.pow(e-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(e){this.refillTokenBucket(),this.fillRate=Math.max(e,this.minFillRate),this.maxCapacity=Math.max(e,this.minCapacity),this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){const e=this.getCurrentTimeInSeconds(),t=Math.floor(2*e)/2;if(this.requestCount++,t>this.lastTxRateBucket){const e=this.requestCount/(t-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(e*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=t}}getPrecise(e){return parseFloat(e.toFixed(8))}}const Yo=({retryDelay:e,retryCount:t,retryCost:r})=>({getRetryCount:()=>t,getRetryDelay:()=>Math.min(2e4,e),getRetryCost:()=>r});class Jo{constructor(e){this.maxAttempts=e,this.mode=Uo.STANDARD,this.capacity=500,this.retryBackoffStrategy=(()=>{let e=100;return{computeNextBackoffDelay:t=>Math.floor(Math.min(2e4,Math.random()*2**t*e)),setDelayBase:t=>{e=t}}})(),this.maxAttemptsProvider="function"==typeof e?e:async()=>e}async acquireInitialRetryToken(e){return Yo({retryDelay:100,retryCount:0})}async refreshRetryTokenForRetry(e,t){const r=await this.getMaxAttempts();if(this.shouldRetry(e,t,r)){const r=t.errorType;this.retryBackoffStrategy.setDelayBase("THROTTLING"===r?500:100);const n=this.retryBackoffStrategy.computeNextBackoffDelay(e.getRetryCount()),o=t.retryAfterHint?Math.max(t.retryAfterHint.getTime()-Date.now()||0,n):n,i=this.getCapacityCost(r);return this.capacity-=i,Yo({retryDelay:o,retryCount:e.getRetryCount()+1,retryCost:i})}throw new Error("No retry token available")}recordSuccess(e){this.capacity=Math.max(500,this.capacity+(e.getRetryCost()??1))}getCapacity(){return this.capacity}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch(e){return console.warn("Max attempts provider could not resolve. Using default of 3"),3}}shouldRetry(e,t,r){return e.getRetryCount()+1<r&&this.capacity>=this.getCapacityCost(t.errorType)&&this.isRetryableError(t.errorType)}getCapacityCost(e){return"TRANSIENT"===e?10:5}isRetryableError(e){return"THROTTLING"===e||"TRANSIENT"===e}}class Qo{constructor(e,t){this.maxAttemptsProvider=e,this.mode=Uo.ADAPTIVE;const{rateLimiter:r}=t??{};this.rateLimiter=r??new Ko,this.standardRetryStrategy=new Jo(e)}async acquireInitialRetryToken(e){return await this.rateLimiter.getSendToken(),this.standardRetryStrategy.acquireInitialRetryToken(e)}async refreshRetryTokenForRetry(e,t){return this.rateLimiter.updateClientSendingRate(t),this.standardRetryStrategy.refreshRetryTokenForRetry(e,t)}recordSuccess(e){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(e)}}class Xo{trace(){}debug(){}info(){}warn(){}error(){}}const ei=(e,t)=>{const r=[];if(e&&r.push(e),t)for(const e of t)r.push(e);return r},ti=(e,t)=>`${e||"anonymous"}${t&&t.length>0?` (a.k.a. ${t.join(",")})`:""}`,ri=()=>{let e=[],t=[],r=!1;const n=new Set,o=r=>(e.forEach((e=>{r.add(e.middleware,{...e})})),t.forEach((e=>{r.addRelativeTo(e.middleware,{...e})})),r.identifyOnResolve?.(a.identifyOnResolve()),r),i=e=>{const t=[];return e.before.forEach((e=>{0===e.before.length&&0===e.after.length?t.push(e):t.push(...i(e))})),t.push(e),e.after.reverse().forEach((e=>{0===e.before.length&&0===e.after.length?t.push(e):t.push(...i(e))})),t},s=(r=!1)=>{const n=[],o=[],s={};e.forEach((e=>{const t={...e,before:[],after:[]};for(const e of ei(t.name,t.aliases))s[e]=t;n.push(t)})),t.forEach((e=>{const t={...e,before:[],after:[]};for(const e of ei(t.name,t.aliases))s[e]=t;o.push(t)})),o.forEach((e=>{if(e.toMiddleware){const t=s[e.toMiddleware];if(void 0===t){if(r)return;throw new Error(`${e.toMiddleware} is not found when adding ${ti(e.name,e.aliases)} middleware ${e.relation} ${e.toMiddleware}`)}"after"===e.relation&&t.after.push(e),"before"===e.relation&&t.before.push(e)}}));const a=(c=n,c.sort(((e,t)=>ni[t.step]-ni[e.step]||oi[t.priority||"normal"]-oi[e.priority||"normal"]))).map(i).reduce(((e,t)=>(e.push(...t),e)),[]);var c;return a},a={add:(t,r={})=>{const{name:o,override:i,aliases:s}=r,a={step:"initialize",priority:"normal",middleware:t,...r},c=ei(o,s);if(c.length>0){if(c.some((e=>n.has(e)))){if(!i)throw new Error(`Duplicate middleware name '${ti(o,s)}'`);for(const t of c){const r=e.findIndex((e=>e.name===t||e.aliases?.some((e=>e===t))));if(-1===r)continue;const n=e[r];if(n.step!==a.step||a.priority!==n.priority)throw new Error(`"${ti(n.name,n.aliases)}" middleware with ${n.priority} priority in ${n.step} step cannot be overridden by "${ti(o,s)}" middleware with ${a.priority} priority in ${a.step} step.`);e.splice(r,1)}}for(const e of c)n.add(e)}e.push(a)},addRelativeTo:(e,r)=>{const{name:o,override:i,aliases:s}=r,a={middleware:e,...r},c=ei(o,s);if(c.length>0){if(c.some((e=>n.has(e)))){if(!i)throw new Error(`Duplicate middleware name '${ti(o,s)}'`);for(const e of c){const r=t.findIndex((t=>t.name===e||t.aliases?.some((t=>t===e))));if(-1===r)continue;const n=t[r];if(n.toMiddleware!==a.toMiddleware||n.relation!==a.relation)throw new Error(`"${ti(n.name,n.aliases)}" middleware ${n.relation} "${n.toMiddleware}" middleware cannot be overridden by "${ti(o,s)}" middleware ${a.relation} "${a.toMiddleware}" middleware.`);t.splice(r,1)}}for(const e of c)n.add(e)}t.push(a)},clone:()=>o(ri()),use:e=>{e.applyToStack(a)},remove:r=>"string"==typeof r?(r=>{let o=!1;const i=e=>{const t=ei(e.name,e.aliases);if(t.includes(r)){o=!0;for(const e of t)n.delete(e);return!1}return!0};return e=e.filter(i),t=t.filter(i),o})(r):(r=>{let o=!1;const i=e=>{if(e.middleware===r){o=!0;for(const t of ei(e.name,e.aliases))n.delete(t);return!1}return!0};return e=e.filter(i),t=t.filter(i),o})(r),removeByTag:r=>{let o=!1;const i=e=>{const{tags:t,name:i,aliases:s}=e;if(t&&t.includes(r)){const e=ei(i,s);for(const t of e)n.delete(t);return o=!0,!1}return!0};return e=e.filter(i),t=t.filter(i),o},concat:e=>{const t=o(ri());return t.use(e),t.identifyOnResolve(r||t.identifyOnResolve()||(e.identifyOnResolve?.()??!1)),t},applyToStack:o,identify:()=>s(!0).map((e=>{const t=e.step??e.relation+" "+e.toMiddleware;return ti(e.name,e.aliases)+" - "+t})),identifyOnResolve:e=>("boolean"==typeof e&&(r=e),r),resolve:(e,t)=>{for(const r of s().map((e=>e.middleware)).reverse())e=r(e,t);return r&&console.log(a.identify()),e}};return a},ni={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},oi={high:3,normal:2,low:1};class ii{constructor(e){this.middlewareStack=ri(),this.config=e}send(e,t,r){const n="function"!=typeof t?t:void 0,o="function"==typeof t?t:r,i=e.resolveMiddleware(this.middlewareStack,this.config,n);if(!o)return i(e).then((e=>e.output));i(e).then((e=>o(null,e.output)),(e=>o(e))).catch((()=>{}))}destroy(){this.config.requestHandler.destroy&&this.config.requestHandler.destroy()}}const si={},ai=new Array(64);for(let e=0,t="A".charCodeAt(0),r="Z".charCodeAt(0);e+t<=r;e++){const r=String.fromCharCode(e+t);si[r]=e,ai[e]=r}for(let e=0,t="a".charCodeAt(0),r="z".charCodeAt(0);e+t<=r;e++){const r=String.fromCharCode(e+t),n=e+26;si[r]=n,ai[n]=r}for(let e=0;e<10;e++){si[e.toString(10)]=e+52;const t=e.toString(10),r=e+52;si[t]=r,ai[r]=t}si["+"]=62,ai[62]="+",si["/"]=63,ai[63]="/";const ci=6,ui=8,li=63,di=e=>{let t=e.length/4*3;"=="===e.slice(-2)?t-=2:"="===e.slice(-1)&&t--;const r=new ArrayBuffer(t),n=new DataView(r);for(let t=0;t<e.length;t+=4){let r=0,o=0;for(let n=t,i=t+3;n<=i;n++)if("="!==e[n]){if(!(e[n]in si))throw new TypeError(`Invalid character ${e[n]} in base64 string.`);r|=si[e[n]]<<(i-n)*ci,o+=ci}else r>>=ci;const i=t/4*3;r>>=o%ui;const s=Math.floor(o/ui);for(let e=0;e<s;e++){const t=(s-e-1)*ui;n.setUint8(i+e,(r&255<<t)>>t)}}return new Uint8Array(r)};function fi(e){let t="";for(let r=0;r<e.length;r+=3){let n=0,o=0;for(let t=r,i=Math.min(r+3,e.length);t<i;t++)n|=e[t]<<(i-t-1)*ui,o+=ui;const i=Math.ceil(o/ci);n<<=i*ci-o;for(let e=1;e<=i;e++){const r=(i-e)*ci;t+=ai[(n&li<<r)>>r]}t+="==".slice(0,4-i)}return t}class hi extends Uint8Array{static fromString(e,t="utf-8"){if("string"==typeof e)return function(e,t){return"base64"===t?hi.mutate(di(e)):hi.mutate(Xr(e))}(e,t);throw new Error(`Unsupported conversion from ${typeof e} to Uint8ArrayBlobAdapter.`)}static mutate(e){return Object.setPrototypeOf(e,hi.prototype),e}transformToString(e="utf-8"){return function(e,t="utf-8"){return"base64"===t?fi(e):Qr(e)}(this,e)}}function gi(e=0){return new Promise(((t,r)=>{e&&setTimeout((()=>{const t=new Error(`Request did not complete within ${e} ms`);t.name="TimeoutError",r(t)}),e)}))}const pi=Boolean("undefined"!=typeof Request&&"keepalive"in new Request("https://[::1]"));class mi{static create(e){return"function"==typeof e?.handle?e:new mi(e)}constructor(e){"function"==typeof e?this.configProvider=e().then((e=>e||{})):(this.config=e??{},this.configProvider=Promise.resolve(this.config))}destroy(){}async handle(e,{abortSignal:t}={}){this.config||(this.config=await this.configProvider);const r=this.config.requestTimeout,n=!0===this.config.keepAlive;if(t?.aborted){const e=new Error("Request aborted");return e.name="AbortError",Promise.reject(e)}let o=e.path;const i=function(e){const t=[];for(let r of Object.keys(e).sort()){const n=e[r];if(r=wn(r),Array.isArray(n))for(let e=0,o=n.length;e<o;e++)t.push(`${r}=${wn(n[e])}`);else{let e=r;(n||"string"==typeof n)&&(e+=`=${wn(n)}`),t.push(e)}}return t.join("&")}(e.query||{});i&&(o+=`?${i}`),e.fragment&&(o+=`#${e.fragment}`);let s="";if(null!=e.username||null!=e.password){s=`${e.username??""}:${e.password??""}@`}const{port:a,method:c}=e,u=`${e.protocol}//${s}${e.hostname}${a?`:${a}`:""}${o}`,l={body:"GET"===c||"HEAD"===c?void 0:e.body,headers:new Headers(e.headers),method:c};"undefined"!=typeof AbortController&&(l.signal=t),pi&&(l.keepalive=n);const d=new Request(u,l),f=[fetch(d).then((e=>{const t=e.headers,r={};for(const e of t.entries())r[e[0]]=e[1];return null!=e.body?{response:new yr({headers:r,reason:e.statusText,statusCode:e.status,body:e.body})}:e.blob().then((t=>({response:new yr({headers:r,reason:e.statusText,statusCode:e.status,body:t})})))})),gi(r)];return t&&f.push(new Promise(((e,r)=>{t.onabort=()=>{const e=new Error("Request aborted");e.name="AbortError",r(e)}}))),Promise.race(f)}updateHttpClientConfig(e,t){this.config=void 0,this.configProvider=this.configProvider.then((r=>(r[e]=t,r)))}httpHandlerConfigs(){return this.config??{}}}const ki=e=>"function"==typeof Blob&&e instanceof Blob?async function(e){const t=await function(e){return new Promise(((t,r)=>{const n=new FileReader;n.onloadend=()=>{if(2!==n.readyState)return r(new Error("Reader aborted too early"));const e=n.result??"",o=e.indexOf(","),i=o>-1?o+1:e.length;t(e.substring(i))},n.onabort=()=>r(new Error("Read aborted")),n.onerror=()=>r(n.error),n.readAsDataURL(e)}))}(e),r=di(t);return new Uint8Array(r)}(e):async function(e){let t=new Uint8Array(0);const r=e.getReader();let n=!1;for(;!n;){const{done:e,value:o}=await r.read();if(o){const e=t;t=new Uint8Array(e.length+o.length),t.set(e),t.set(o,e.length)}n=e}return t}(e);const bi=async(e=new Uint8Array,t)=>{if(e instanceof Uint8Array)return hi.mutate(e);if(!e)return hi.mutate(new Uint8Array);const r=t.streamCollector(e);return hi.mutate(await r)};class xi{constructor(){this.middlewareStack=ri()}static classBuilder(){return new yi}resolveMiddlewareWithContext(e,t,r,{middlewareFn:n,clientName:o,commandName:i,inputFilterSensitiveLog:s,outputFilterSensitiveLog:a,smithyContext:c,additionalContext:u,CommandCtor:l}){for(const o of n.bind(this)(l,e,t,r))this.middlewareStack.use(o);const d=e.concat(this.middlewareStack),{logger:f}=t,h={logger:f,clientName:o,commandName:i,inputFilterSensitiveLog:s,outputFilterSensitiveLog:a,[mr]:{...c},...u},{requestHandler:g}=t;return d.resolve((e=>g.handle(e.request,r||{})),h)}}class yi{constructor(){this._init=()=>{},this._ep={},this._middlewareFn=()=>[],this._commandName="",this._clientName="",this._additionalContext={},this._smithyContext={},this._inputFilterSensitiveLog=e=>e,this._outputFilterSensitiveLog=e=>e,this._serializer=null,this._deserializer=null}init(e){this._init=e}ep(e){return this._ep=e,this}m(e){return this._middlewareFn=e,this}s(e,t,r={}){return this._smithyContext={service:e,operation:t,...r},this}c(e={}){return this._additionalContext=e,this}n(e,t){return this._clientName=e,this._commandName=t,this}f(e=(e=>e),t=(e=>e)){return this._inputFilterSensitiveLog=e,this._outputFilterSensitiveLog=t,this}ser(e){return this._serializer=e,this}de(e){return this._deserializer=e,this}build(){const e=this;let t;return t=class extends xi{static getEndpointParameterInstructions(){return e._ep}constructor(t){super(),this.input=t,this.serialize=e._serializer,this.deserialize=e._deserializer,e._init(this)}resolveMiddleware(r,n,o){return this.resolveMiddlewareWithContext(r,n,o,{CommandCtor:t,middlewareFn:e._middlewareFn,clientName:e._clientName,commandName:e._commandName,inputFilterSensitiveLog:e._inputFilterSensitiveLog,outputFilterSensitiveLog:e._outputFilterSensitiveLog,smithyContext:e._smithyContext,additionalContext:e._additionalContext})}}}}const vi="***SensitiveInformation***",wi=(Math.ceil(2**127*(2-2**-23)),e=>{if(null!=e){if(Number.isInteger(e)&&!Number.isNaN(e))return e;throw new TypeError(`Expected integer, got ${typeof e}: ${e}`)}}),_i=e=>Si(e,32),Si=(e,t)=>{const r=wi(e);if(void 0!==r&&Ei(r,t)!==r)throw new TypeError(`Expected ${t}-bit integer, got ${e}`);return r},Ei=(e,t)=>{switch(t){case 32:return Int32Array.of(e)[0];case 16:return Int16Array.of(e)[0];case 8:return Int8Array.of(e)[0]}},Ai=e=>{if(null!=e){if("string"==typeof e)return e;if(["boolean","number","bigint"].includes(typeof e))return Ri.warn(Pi(`Expected string, got ${typeof e}: ${e}`)),String(e);throw new TypeError(`Expected string, got ${typeof e}: ${e}`)}},Pi=e=>String(new TypeError(e).stack||e).split("\n").slice(0,5).filter((e=>!e.includes("stackTraceWarning"))).join("\n"),Ri={warn:console.warn};class Oi extends Error{constructor(e){super(e.message),Object.setPrototypeOf(this,Oi.prototype),this.name=e.name,this.$fault=e.$fault,this.$metadata=e.$metadata}}const Ti=(e,t={})=>{Object.entries(t).filter((([,e])=>void 0!==e)).forEach((([t,r])=>{null!=e[t]&&""!==e[t]||(e[t]=r)}));const r=e.message||e.Message||"UnknownError";return e.message=r,delete e.Message,e},Ci=e=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}),Mi=e=>{switch(e){case"standard":case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"mobile":return{retryMode:"standard",connectionTimeout:3e4};default:return{}}},Ii=e=>{const t=[];for(const r in gr){const n=gr[r];void 0!==e[n]&&t.push({algorithmId:()=>n,checksumConstructor:()=>e[n]})}return{_checksumAlgorithms:t,addChecksumAlgorithm(e){this._checksumAlgorithms.push(e)},checksumAlgorithms(){return this._checksumAlgorithms}}},ji=e=>{const t={};return e.checksumAlgorithms().forEach((e=>{t[e.algorithmId()]=e.checksumConstructor()})),t},Li=e=>{let t=e.retryStrategy;return{setRetryStrategy(e){t=e},retryStrategy:()=>t}},Ni=e=>{const t={};return t.retryStrategy=e.retryStrategy(),t},Bi=e=>({...Ii(e),...Li(e)}),Fi=function(){const e=Object.getPrototypeOf(this).constructor,t=new(Function.bind.apply(String,[null,...arguments]));return Object.setPrototypeOf(t,e.prototype),t};Fi.prototype=Object.create(String.prototype,{constructor:{value:Fi,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf(Fi,String);function Di(e,t,r){let n,o,i;if(void 0===t&&void 0===r)n={},i=e;else{if(n=e,"function"==typeof t)return o=t,i=r,Ui(n,o,i);i=t}for(const e of Object.keys(i))Array.isArray(i[e])?Hi(n,null,i,e):n[e]=i[e];return n}const $i=(e,t)=>{const r={};for(const n in t)Hi(r,e,t,n);return r},Ui=(e,t,r)=>Di(e,Object.entries(r).reduce(((e,[r,n])=>(Array.isArray(n)?e[r]=n:e[r]="function"==typeof n?[t,n()]:[t,n],e)),{})),Hi=(e,t,r,n)=>{if(null!==t){let o=r[n];"function"==typeof o&&(o=[,o]);const[i=Vi,s=qi,a=n]=o;return void(("function"==typeof i&&i(t[a])||"function"!=typeof i&&i)&&(e[n]=s(t[a])))}let[o,i]=r[n];if("function"==typeof i){let t;const r=void 0===o&&null!=(t=i()),s="function"==typeof o&&!!o(void 0)||"function"!=typeof o&&!!o;r?e[n]=t:s&&(e[n]=i())}else{const t=void 0===o&&null!=i,r="function"==typeof o&&!!o(i)||"function"!=typeof o&&!!o;(t||r)&&(e[n]=i)}},Vi=e=>null!=e,qi=e=>e;function zi(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}const Gi=(e,t,r,n,o,i)=>{if(null==t||void 0===t[r])throw new Error("No value provided for input HTTP label: "+r+".");{const t=n();if(t.length<=0)throw new Error("Empty value provided for input HTTP label: "+r+".");e=e.replace(o,i?t.split("/").map((e=>zi(e))).join("/"):zi(t))}return e};var Zi,Wi=new Uint8Array(16);function Ki(){if(!Zi&&!(Zi="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Zi(Wi)}const Yi=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;const Ji=function(e){return"string"==typeof e&&Yi.test(e)};for(var Qi=[],Xi=0;Xi<256;++Xi)Qi.push((Xi+256).toString(16).substr(1));const es=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(Qi[e[t+0]]+Qi[e[t+1]]+Qi[e[t+2]]+Qi[e[t+3]]+"-"+Qi[e[t+4]]+Qi[e[t+5]]+"-"+Qi[e[t+6]]+Qi[e[t+7]]+"-"+Qi[e[t+8]]+Qi[e[t+9]]+"-"+Qi[e[t+10]]+Qi[e[t+11]]+Qi[e[t+12]]+Qi[e[t+13]]+Qi[e[t+14]]+Qi[e[t+15]]).toLowerCase();if(!Ji(r))throw TypeError("Stringified UUID is invalid");return r};const ts=function(e,t,r){var n=(e=e||{}).random||(e.rng||Ki)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(var o=0;o<16;++o)t[r+o]=n[o];return t}return es(n)},rs=e=>e?.body instanceof ReadableStream,ns=e=>e instanceof Error?e:e instanceof Object?Object.assign(new Error,e):"string"==typeof e?new Error(e):new Error(`AWS SDK error wrapper for ${e}`),os=e=>void 0!==e.acquireInitialRetryToken&&void 0!==e.refreshRetryTokenForRetry&&void 0!==e.recordSuccess,is=e=>{const t={errorType:ss(e)},r=us(e.$response);return r&&(t.retryAfterHint=r),t},ss=e=>Zo(e)?"THROTTLING":Wo(e)?"TRANSIENT":(e=>{if(void 0!==e.$metadata?.httpStatusCode){const t=e.$metadata.httpStatusCode;return 500<=t&&t<=599&&!Wo(e)}return!1})(e)?"SERVER_ERROR":"CLIENT_ERROR",as={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},cs=e=>({applyToStack:t=>{t.add((e=>(t,r)=>async n=>{let o=await e.retryStrategy();const i=await e.maxAttempts();if(!os(o))return o?.mode&&(r.userAgent=[...r.userAgent||[],["cfg/retry-mode",o.mode]]),o.retry(t,n);{let e=await o.acquireInitialRetryToken(r.partition_id),s=new Error,a=0,c=0;const{request:u}=n,l=xr.isInstance(u);for(l&&(u.headers["amz-sdk-invocation-id"]=ts());;)try{l&&(u.headers["amz-sdk-request"]=`attempt=${a+1}; max=${i}`);const{response:r,output:s}=await t(n);return o.recordSuccess(e),s.$metadata.attempts=a+1,s.$metadata.totalRetryDelay=c,{response:r,output:s}}catch(t){const n=is(t);if(s=ns(t),l&&rs(u))throw(r.logger instanceof Xo?console:r.logger)?.warn("An error was encountered in a non-retryable streaming request."),s;try{e=await o.refreshRetryTokenForRetry(e,n)}catch(e){throw s.$metadata||(s.$metadata={}),s.$metadata.attempts=a+1,s.$metadata.totalRetryDelay=c,s}a=e.getRetryCount();const i=e.getRetryDelay();c+=i,await new Promise((e=>setTimeout(e,i)))}}})(e),as)}}),us=e=>{if(!yr.isInstance(e))return;const t=Object.keys(e.headers).find((e=>"retry-after"===e.toLowerCase()));if(!t)return;const r=e.headers[t],n=Number(r);if(!Number.isNaN(n))return new Date(1e3*n);return new Date(r)},ls="3.470.0";var ds=r(6699),fs=r(264),hs=r.n(fs);const gs=({serviceId:e,clientVersion:t})=>async()=>{const r="undefined"!=typeof window&&window?.navigator?.userAgent?hs().parse(window.navigator.userAgent):void 0,n=[["aws-sdk-js",t],["ua","2.0"],[`os/${r?.os?.name||"other"}`,r?.os?.version],["lang/js"],["md/browser",`${r?.browser?.name??"unknown"}_${r?.browser?.version??"unknown"}`]];return e&&n.push([`api/${e}`,t]),n};function ps(e,t){return async function(r){const{value:n}=r.headers[":message-type"];if("error"===n){const e=new Error(r.headers[":error-message"].value||"UnknownError");throw e.name=r.headers[":error-code"].value,e}if("exception"===n){const n=r.headers[":exception-type"].value,o={[n]:r},i=await e(o);if(i.$unknown){const e=new Error(t(r.body));throw e.name=n,e}throw i[n]}if("event"===n){const t={[r.headers[":event-type"].value]:r},n=await e(t);if(n.$unknown)return;return n}throw Error(`Unrecognizable event type: ${r.headers[":event-type"].value}`)}}class ms{constructor({utf8Encoder:e,utf8Decoder:t}){this.eventStreamCodec=new Gr(e,t),this.utfEncoder=e}deserialize(e,t){const r=function(e){let t=0,r=0,n=null,o=null;const i=e=>{if("number"!=typeof e)throw new Error("Attempted to allocate an event message where size was not a number: "+e);t=e,r=4,n=new Uint8Array(e),new DataView(n.buffer).setUint32(0,e,!1)};return{[Symbol.asyncIterator]:async function*(){const s=e[Symbol.asyncIterator]();for(;;){const{value:e,done:a}=await s.next();if(a){if(!t)return;if(t!==r)throw new Error("Truncated event message received.");return void(yield n)}const c=e.length;let u=0;for(;u<c;){if(!n){const t=c-u;o||(o=new Uint8Array(4));const n=Math.min(4-r,t);if(o.set(e.slice(u,u+n),r),r+=n,u+=n,r<4)break;i(new DataView(o.buffer).getUint32(0,!1)),o=null}const s=Math.min(t-r,c-u);n.set(e.slice(u,u+s),r),r+=s,u+=s,t&&t===r&&(yield n,n=null,t=0,r=0)}}}}}(e);return new Kr({messageStream:new Zr({inputStream:r,decoder:this.eventStreamCodec}),deserializer:ps(t,this.utfEncoder)})}serialize(e,t){return new Wr({messageStream:new Yr({inputStream:e,serializer:t}),encoder:this.eventStreamCodec,includeEndFrame:!0})}}class ks{constructor({utf8Encoder:e,utf8Decoder:t}){this.universalMarshaller=new ms({utf8Decoder:t,utf8Encoder:e})}deserialize(e,t){const r=bs(e)?(n=e,{[Symbol.asyncIterator]:async function*(){const e=n.getReader();try{for(;;){const{done:t,value:r}=await e.read();if(t)return;yield r}}finally{e.releaseLock()}}}):e;var n;return this.universalMarshaller.deserialize(r,t)}serialize(e,t){const r=this.universalMarshaller.serialize(e,t);return"function"==typeof ReadableStream?(e=>{const t=e[Symbol.asyncIterator]();return new ReadableStream({async pull(e){const{done:r,value:n}=await t.next();if(r)return e.close();e.enqueue(n)}})})(r):r}}const bs=e=>"function"==typeof ReadableStream&&e instanceof ReadableStream,xs=e=>new ks(e),ys="function"==typeof TextEncoder?new TextEncoder:null,vs=e=>{if("string"==typeof e){if(ys)return ys.encode(e).byteLength;let t=e.length;for(let r=t-1;r>=0;r--){const n=e.charCodeAt(r);n>127&&n<=2047?t++:n>2047&&n<=65535&&(t+=2),n>=56320&&n<=57343&&r--}return t}if("number"==typeof e.byteLength)return e.byteLength;if("number"==typeof e.size)return e.size;throw new Error(`Body Length computation failed for ${e}`)},ws="required",_s="fn",Ss="argv",Es="ref",As="isSet",Ps="booleanEquals",Rs="error",Os="endpoint",Ts="tree",Cs="PartitionResult",Ms={[ws]:!1,type:"String"},Is={[ws]:!0,default:!1,type:"Boolean"},js={[Es]:"Endpoint"},Ls={[_s]:Ps,[Ss]:[{[Es]:"UseFIPS"},!0]},Ns={[_s]:Ps,[Ss]:[{[Es]:"UseDualStack"},!0]},Bs={},Fs={[_s]:"getAttr",[Ss]:[{[Es]:Cs},"supportsFIPS"]},Ds={[_s]:Ps,[Ss]:[!0,{[_s]:"getAttr",[Ss]:[{[Es]:Cs},"supportsDualStack"]}]},$s=[Ls],Us=[Ns],Hs=[{[Es]:"Region"}],Vs={version:"1.0",parameters:{Region:Ms,UseDualStack:Is,UseFIPS:Is,Endpoint:Ms},rules:[{conditions:[{[_s]:As,[Ss]:[js]}],rules:[{conditions:$s,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:Rs},{rules:[{conditions:Us,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:Rs},{endpoint:{url:js,properties:Bs,headers:Bs},type:Os}],type:Ts}],type:Ts},{rules:[{conditions:[{[_s]:As,[Ss]:Hs}],rules:[{conditions:[{[_s]:"aws.partition",[Ss]:Hs,assign:Cs}],rules:[{conditions:[Ls,Ns],rules:[{conditions:[{[_s]:Ps,[Ss]:[true,Fs]},Ds],rules:[{rules:[{endpoint:{url:"https://bedrock-runtime-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:Bs,headers:Bs},type:Os}],type:Ts}],type:Ts},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:Rs}],type:Ts},{conditions:$s,rules:[{conditions:[{[_s]:Ps,[Ss]:[Fs,true]}],rules:[{rules:[{endpoint:{url:"https://bedrock-runtime-fips.{Region}.{PartitionResult#dnsSuffix}",properties:Bs,headers:Bs},type:Os}],type:Ts}],type:Ts},{error:"FIPS is enabled but this partition does not support FIPS",type:Rs}],type:Ts},{conditions:Us,rules:[{conditions:[Ds],rules:[{rules:[{endpoint:{url:"https://bedrock-runtime.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:Bs,headers:Bs},type:Os}],type:Ts}],type:Ts},{error:"DualStack is enabled but this partition does not support DualStack",type:Rs}],type:Ts},{rules:[{endpoint:{url:"https://bedrock-runtime.{Region}.{PartitionResult#dnsSuffix}",properties:Bs,headers:Bs},type:Os}],type:Ts}],type:Ts}],type:Ts},{error:"Invalid Configuration: Missing Region",type:Rs}],type:Ts}]},qs=(e,t={})=>((e,t)=>{const{endpointParams:r,logger:n}=t,{parameters:o,rules:i}=e;t.logger?.debug?.(`${Vn} Initial EndpointParams: ${qn(r)}`);const s=Object.entries(o).filter((([,e])=>null!=e.default)).map((([e,t])=>[e,t.default]));if(s.length>0)for(const[e,t]of s)r[e]=r[e]??t;const a=Object.entries(o).filter((([,e])=>e.required)).map((([e])=>e));for(const e of a)if(null==r[e])throw new zn(`Missing required parameter: '${e}'`);const c=ao(i,{endpointParams:r,logger:n,referenceRecord:{}});if(t.endpointParams?.Endpoint)try{const e=new URL(t.endpointParams.Endpoint),{protocol:r,port:n}=e;c.url.protocol=r,c.url.port=n}catch(e){}return t.logger?.debug?.(`${Vn} Resolved endpoint: ${qn(c)}`),c})(Vs,{endpointParams:e,logger:t.logger}),zs=["in-region","cross-region","mobile","standard","legacy"],Gs=()=>{const e="undefined"!=typeof window&&window?.navigator?.userAgent?hs().parse(window.navigator.userAgent):void 0,t=e?.platform?.type;return"tablet"===t||"mobile"===t},Zs=e=>{const t=(({defaultsMode:e}={})=>Pr((async()=>{const t="function"==typeof e?await e():e;switch(t?.toLowerCase()){case"auto":return Promise.resolve(Gs()?"mobile":"standard");case"mobile":case"in-region":case"cross-region":case"standard":case"legacy":return Promise.resolve(t?.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${zs.join(", ")}, got ${t}`)}})))(e),r=()=>t().then(Mi),n=(e=>({apiVersion:"2023-09-30",base64Decoder:e?.base64Decoder??di,base64Encoder:e?.base64Encoder??fi,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??qs,extensions:e?.extensions??[],logger:e?.logger??new Xo,serviceId:e?.serviceId??"Bedrock Runtime",urlParser:e?.urlParser??Mo,utf8Decoder:e?.utf8Decoder??Xr,utf8Encoder:e?.utf8Encoder??Qr}))(e);return{...n,...e,runtime:"browser",defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??vs,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(new Error("Credential is missing"))),defaultUserAgentProvider:e?.defaultUserAgentProvider??gs({serviceId:n.serviceId,clientVersion:ls}),eventStreamSerdeProvider:e?.eventStreamSerdeProvider??xs,maxAttempts:e?.maxAttempts??3,region:e?.region??(o="Region is missing",()=>Promise.reject(o)),requestHandler:e?.requestHandler??new mi(r),retryMode:e?.retryMode??(async()=>(await r()).retryMode||Ho),sha256:e?.sha256??ds.Sha256,streamCollector:e?.streamCollector??ki,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(false)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(false))};var o},Ws=e=>{let t=async()=>{if(void 0===e.region)throw new Error("Region is missing from runtimeConfig");const t=e.region;return"string"==typeof t?t:t()};return{setRegion(e){t=e},region:()=>t}};class Ks extends ii{constructor(...[e]){const t=(e=>({...e,useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"bedrock"}))(Zs(e||{})),r=(e=>{const{region:t,useFipsEndpoint:r}=e;if(!t)throw new Error("Region is missing");return{...e,region:async()=>{if("string"==typeof t)return wo(t);const e=await t();return wo(e)},useFipsEndpoint:async()=>{const e="string"==typeof t?t:await t();return!!vo(e)||("function"!=typeof r?Promise.resolve(!!r):r())}}})(t),n=(e=>{const t=e.tls??!0,{endpoint:r}=e,n=null!=r?async()=>Io(await Jr(r)()):void 0,o=!!r;return{...e,endpoint:n,tls:t,isCustomEndpoint:o,useDualstackEndpoint:Jr(e.useDualstackEndpoint??!1),useFipsEndpoint:Jr(e.useFipsEndpoint??!1)}})(r),o=(e=>{const{retryStrategy:t}=e,r=Jr(e.maxAttempts??3);return{...e,maxAttempts:r,retryStrategy:async()=>t||(await Jr(e.retryMode)()===Uo.ADAPTIVE?new Qo(r):new Jo(r))}})(n),i=(e=>{const t=e.credentials?Mn(e.credentials):e.credentialDefaultProvider(e),{signingEscapePath:r=!0,systemClockOffset:n=e.systemClockOffset||0,sha256:o}=e;let i;return i=e.signer?Jr(e.signer):e.regionInfoProvider?()=>Jr(e.region)().then((async t=>[await e.regionInfoProvider(t,{useFipsEndpoint:await e.useFipsEndpoint(),useDualstackEndpoint:await e.useDualstackEndpoint()})||{},t])).then((([n,i])=>{const{signingRegion:s,signingService:a}=n;e.signingRegion=e.signingRegion||s||i,e.signingName=e.signingName||a||e.serviceId;const c={...e,credentials:t,region:e.signingRegion,service:e.signingName,sha256:o,uriEscapePath:r};return new(e.signerConstructor||On)(c)})):async n=>{const i=(n=Object.assign({},{name:"sigv4",signingName:e.signingName||e.defaultSigningName,signingRegion:await Jr(e.region)(),properties:{}},n)).signingRegion,s=n.signingName;e.signingRegion=e.signingRegion||i,e.signingName=e.signingName||s||e.serviceId;const a={...e,credentials:t,region:e.signingRegion,service:e.signingName,sha256:o,uriEscapePath:r};return new(e.signerConstructor||On)(a)},{...e,systemClockOffset:n,signingEscapePath:r,credentials:t,signer:i}})(o);var s;const a=((e,t)=>{const r={...Ws(e),...Bi(e),...lr(e)};return t.forEach((e=>e.configure(r))),{...e,...(i=r,{region:i.region()}),...(o=r,{...ji(o),...Ni(o)}),...(n=r,{httpHandler:n.httpHandler()})};var n,o,i})((e=>({...e,eventStreamMarshaller:e.eventStreamSerdeProvider(e)}))((s=i,{...s,customUserAgent:"string"==typeof s.customUserAgent?[[s.customUserAgent]]:s.customUserAgent})),e?.extensions||[]);var c;super(a),this.config=a,this.middlewareStack.use(cs(this.config)),this.middlewareStack.use(Eo(this.config)),this.middlewareStack.use(wr(this.config)),this.middlewareStack.use((this.config,{applyToStack:e=>{e.add(((e,t)=>async r=>{try{const n=await e(r),{clientName:o,commandName:i,logger:s,dynamoDbDocumentClientOptions:a={}}=t,{overrideInputFilterSensitiveLog:c,overrideOutputFilterSensitiveLog:u}=a,l=c??t.inputFilterSensitiveLog,d=u??t.outputFilterSensitiveLog,{$metadata:f,...h}=n.output;return s?.info?.({clientName:o,commandName:i,input:l(r.input),output:d(h),metadata:f}),n}catch(e){const{clientName:n,commandName:o,logger:i,dynamoDbDocumentClientOptions:s={}}=t,{overrideInputFilterSensitiveLog:a}=s,c=a??t.inputFilterSensitiveLog;throw i?.error?.({clientName:n,commandName:o,input:c(r.input),error:e,metadata:e.$metadata}),e}}),_r)}})),this.middlewareStack.use(Ar(this.config)),this.middlewareStack.use(Bn(this.config)),this.middlewareStack.use((c=this.config,{applyToStack:e=>{e.add(ko(c),xo)}}))}destroy(){super.destroy()}}class Ys extends Oi{constructor(e){super(e),Object.setPrototypeOf(this,Ys.prototype)}}class Js extends Ys{constructor(e){super({name:"AccessDeniedException",$fault:"client",...e}),this.name="AccessDeniedException",this.$fault="client",Object.setPrototypeOf(this,Js.prototype)}}class Qs extends Ys{constructor(e){super({name:"InternalServerException",$fault:"server",...e}),this.name="InternalServerException",this.$fault="server",Object.setPrototypeOf(this,Qs.prototype)}}class Xs extends Ys{constructor(e){super({name:"ModelErrorException",$fault:"client",...e}),this.name="ModelErrorException",this.$fault="client",Object.setPrototypeOf(this,Xs.prototype),this.originalStatusCode=e.originalStatusCode,this.resourceName=e.resourceName}}class ea extends Ys{constructor(e){super({name:"ModelNotReadyException",$fault:"client",...e}),this.name="ModelNotReadyException",this.$fault="client",Object.setPrototypeOf(this,ea.prototype)}}class ta extends Ys{constructor(e){super({name:"ModelTimeoutException",$fault:"client",...e}),this.name="ModelTimeoutException",this.$fault="client",Object.setPrototypeOf(this,ta.prototype)}}class ra extends Ys{constructor(e){super({name:"ResourceNotFoundException",$fault:"client",...e}),this.name="ResourceNotFoundException",this.$fault="client",Object.setPrototypeOf(this,ra.prototype)}}class na extends Ys{constructor(e){super({name:"ServiceQuotaExceededException",$fault:"client",...e}),this.name="ServiceQuotaExceededException",this.$fault="client",Object.setPrototypeOf(this,na.prototype)}}class oa extends Ys{constructor(e){super({name:"ThrottlingException",$fault:"client",...e}),this.name="ThrottlingException",this.$fault="client",Object.setPrototypeOf(this,oa.prototype)}}class ia extends Ys{constructor(e){super({name:"ValidationException",$fault:"client",...e}),this.name="ValidationException",this.$fault="client",Object.setPrototypeOf(this,ia.prototype)}}class sa extends Ys{constructor(e){super({name:"ModelStreamErrorException",$fault:"client",...e}),this.name="ModelStreamErrorException",this.$fault="client",Object.setPrototypeOf(this,sa.prototype),this.originalStatusCode=e.originalStatusCode,this.originalMessage=e.originalMessage}}var aa;!function(e){e.visit=(e,t)=>void 0!==e.chunk?t.chunk(e.chunk):void 0!==e.internalServerException?t.internalServerException(e.internalServerException):void 0!==e.modelStreamErrorException?t.modelStreamErrorException(e.modelStreamErrorException):void 0!==e.validationException?t.validationException(e.validationException):void 0!==e.throttlingException?t.throttlingException(e.throttlingException):void 0!==e.modelTimeoutException?t.modelTimeoutException(e.modelTimeoutException):t._(e.$unknown[0],e.$unknown[1])}(aa||(aa={}));const ca=e=>({...e,...e.body&&{body:vi}}),ua=e=>({...e,...e.body&&{body:vi}}),la=e=>({...e,...e.body&&{body:vi}}),da=e=>({...e,...e.body&&{body:"STREAMING_CONTENT"}}),fa=async(e,t)=>{const r={...e,body:await Ba(e.body,t)},n=Fa(e,r.body);switch(n){case"AccessDeniedException":case"com.amazonaws.bedrockruntime#AccessDeniedException":throw await ma(r,t);case"InternalServerException":case"com.amazonaws.bedrockruntime#InternalServerException":throw await ka(r,t);case"ModelErrorException":case"com.amazonaws.bedrockruntime#ModelErrorException":throw await ba(r,t);case"ModelNotReadyException":case"com.amazonaws.bedrockruntime#ModelNotReadyException":throw await xa(r,t);case"ModelTimeoutException":case"com.amazonaws.bedrockruntime#ModelTimeoutException":throw await va(r,t);case"ResourceNotFoundException":case"com.amazonaws.bedrockruntime#ResourceNotFoundException":throw await wa(r,t);case"ServiceQuotaExceededException":case"com.amazonaws.bedrockruntime#ServiceQuotaExceededException":throw await _a(r,t);case"ThrottlingException":case"com.amazonaws.bedrockruntime#ThrottlingException":throw await Sa(r,t);case"ValidationException":case"com.amazonaws.bedrockruntime#ValidationException":throw await Ea(r,t);default:const o=r.body;return ga({output:e,parsedBody:o,errorCode:n})}},ha=async(e,t)=>{const r={...e,body:await Ba(e.body,t)},n=Fa(e,r.body);switch(n){case"AccessDeniedException":case"com.amazonaws.bedrockruntime#AccessDeniedException":throw await ma(r,t);case"InternalServerException":case"com.amazonaws.bedrockruntime#InternalServerException":throw await ka(r,t);case"ModelErrorException":case"com.amazonaws.bedrockruntime#ModelErrorException":throw await ba(r,t);case"ModelNotReadyException":case"com.amazonaws.bedrockruntime#ModelNotReadyException":throw await xa(r,t);case"ModelStreamErrorException":case"com.amazonaws.bedrockruntime#ModelStreamErrorException":throw await ya(r,t);case"ModelTimeoutException":case"com.amazonaws.bedrockruntime#ModelTimeoutException":throw await va(r,t);case"ResourceNotFoundException":case"com.amazonaws.bedrockruntime#ResourceNotFoundException":throw await wa(r,t);case"ServiceQuotaExceededException":case"com.amazonaws.bedrockruntime#ServiceQuotaExceededException":throw await _a(r,t);case"ThrottlingException":case"com.amazonaws.bedrockruntime#ThrottlingException":throw await Sa(r,t);case"ValidationException":case"com.amazonaws.bedrockruntime#ValidationException":throw await Ea(r,t);default:const o=r.body;return ga({output:e,parsedBody:o,errorCode:n})}},ga=(pa=Ys,({output:e,parsedBody:t,errorCode:r})=>{(({output:e,parsedBody:t,exceptionCtor:r,errorCode:n})=>{const o=Ci(e),i=o.httpStatusCode?o.httpStatusCode+"":void 0,s=new r({name:t?.code||t?.Code||n||i||"UnknownError",$fault:"client",$metadata:o});throw Ti(s,t)})({output:e,parsedBody:t,exceptionCtor:pa,errorCode:r})});var pa;const ma=async(e,t)=>{const r=Di({}),n=e.body,o=$i(n,{message:Ai});Object.assign(r,o);const i=new Js({$metadata:ja(e),...r});return Ti(i,e.body)},ka=async(e,t)=>{const r=Di({}),n=e.body,o=$i(n,{message:Ai});Object.assign(r,o);const i=new Qs({$metadata:ja(e),...r});return Ti(i,e.body)},ba=async(e,t)=>{const r=Di({}),n=e.body,o=$i(n,{message:Ai,originalStatusCode:_i,resourceName:Ai});Object.assign(r,o);const i=new Xs({$metadata:ja(e),...r});return Ti(i,e.body)},xa=async(e,t)=>{const r=Di({}),n=e.body,o=$i(n,{message:Ai});Object.assign(r,o);const i=new ea({$metadata:ja(e),...r});return Ti(i,e.body)},ya=async(e,t)=>{const r=Di({}),n=e.body,o=$i(n,{message:Ai,originalMessage:Ai,originalStatusCode:_i});Object.assign(r,o);const i=new sa({$metadata:ja(e),...r});return Ti(i,e.body)},va=async(e,t)=>{const r=Di({}),n=e.body,o=$i(n,{message:Ai});Object.assign(r,o);const i=new ta({$metadata:ja(e),...r});return Ti(i,e.body)},wa=async(e,t)=>{const r=Di({}),n=e.body,o=$i(n,{message:Ai});Object.assign(r,o);const i=new ra({$metadata:ja(e),...r});return Ti(i,e.body)},_a=async(e,t)=>{const r=Di({}),n=e.body,o=$i(n,{message:Ai});Object.assign(r,o);const i=new na({$metadata:ja(e),...r});return Ti(i,e.body)},Sa=async(e,t)=>{const r=Di({}),n=e.body,o=$i(n,{message:Ai});Object.assign(r,o);const i=new oa({$metadata:ja(e),...r});return Ti(i,e.body)},Ea=async(e,t)=>{const r=Di({}),n=e.body,o=$i(n,{message:Ai});Object.assign(r,o);const i=new ia({$metadata:ja(e),...r});return Ti(i,e.body)},Aa=(e,t)=>t.eventStreamMarshaller.deserialize(e,(async r=>null!=r.chunk?{chunk:await Ta(r.chunk,t)}:null!=r.internalServerException?{internalServerException:await Pa(r.internalServerException,t)}:null!=r.modelStreamErrorException?{modelStreamErrorException:await Ra(r.modelStreamErrorException,t)}:null!=r.validationException?{validationException:await Ma(r.validationException,t)}:null!=r.throttlingException?{throttlingException:await Ca(r.throttlingException,t)}:null!=r.modelTimeoutException?{modelTimeoutException:await Oa(r.modelTimeoutException,t)}:{$unknown:e})),Pa=async(e,t)=>{const r={...e,body:await Na(e.body,t)};return ka(r,t)},Ra=async(e,t)=>{const r={...e,body:await Na(e.body,t)};return ya(r,t)},Oa=async(e,t)=>{const r={...e,body:await Na(e.body,t)};return va(r,t)},Ta=async(e,t)=>{const r={},n=await Na(e.body,t);return Object.assign(r,Ia(n,t)),r},Ca=async(e,t)=>{const r={...e,body:await Na(e.body,t)};return Sa(r,t)},Ma=async(e,t)=>{const r={...e,body:await Na(e.body,t)};return Ea(r,t)},Ia=(e,t)=>$i(e,{bytes:t.base64Decoder}),ja=e=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}),La=e=>!(null==e||""===e||Object.getOwnPropertyNames(e).includes("length")&&0==e.length||Object.getOwnPropertyNames(e).includes("size")&&0==e.size),Na=(e,t)=>((e,t)=>bi(e,t).then((e=>t.utf8Encoder(e))))(e,t).then((e=>e.length?JSON.parse(e):{})),Ba=async(e,t)=>{const r=await Na(e,t);return r.message=r.message??r.Message,r},Fa=(e,t)=>{const r=e=>{let t=e;return"number"==typeof t&&(t=t.toString()),t.indexOf(",")>=0&&(t=t.split(",")[0]),t.indexOf(":")>=0&&(t=t.split(":")[0]),t.indexOf("#")>=0&&(t=t.split("#")[1]),t},n=(o=e.headers,i="x-amzn-errortype",Object.keys(o).find((e=>e.toLowerCase()===i.toLowerCase())));var o,i;return void 0!==n?r(e.headers[n]):void 0!==t.code?r(t.code):void 0!==t.__type?r(t.__type):void 0};class Da extends xi{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super(),this.input=e}resolveMiddleware(e,t,r){this.middlewareStack.use(Fo(t,this.serialize,this.deserialize)),this.middlewareStack.use($o(t,Da.getEndpointParameterInstructions()));const n=e.concat(this.middlewareStack),{logger:o}=t,i={logger:o,clientName:"BedrockRuntimeClient",commandName:"InvokeModelWithResponseStreamCommand",inputFilterSensitiveLog:la,outputFilterSensitiveLog:da,[mr]:{service:"AmazonBedrockFrontendService",operation:"InvokeModelWithResponseStream"}},{requestHandler:s}=t;return n.resolve((e=>s.handle(e.request,r||{})),i)}serialize(e,t){return(async(e,t)=>{const{hostname:r,protocol:n="https",port:o,path:i}=await t.endpoint(),s=Di({},La,{"content-type":e.contentType||"application/octet-stream","x-amzn-bedrock-accept":e.accept});let a,c=`${i?.endsWith("/")?i.slice(0,-1):i||""}/model/{modelId}/invoke-with-response-stream`;return c=Gi(c,e,"modelId",(()=>e.modelId),"{modelId}",!1),void 0!==e.body&&(a=e.body),new xr({protocol:n,hostname:r,port:o,method:"POST",headers:s,path:c,body:a})})(e,t)}deserialize(e,t){return(async(e,t)=>{if(200!==e.statusCode&&e.statusCode>=300)return ha(e,t);const r=Di({$metadata:ja(e),contentType:[,e.headers["x-amzn-bedrock-content-type"]]}),n=e.body;return r.body=Aa(n,t),r})(e,t)}}class $a extends xi{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super(),this.input=e}resolveMiddleware(e,t,r){this.middlewareStack.use(Fo(t,this.serialize,this.deserialize)),this.middlewareStack.use($o(t,$a.getEndpointParameterInstructions()));const n=e.concat(this.middlewareStack),{logger:o}=t,i={logger:o,clientName:"BedrockRuntimeClient",commandName:"InvokeModelCommand",inputFilterSensitiveLog:ca,outputFilterSensitiveLog:ua,[mr]:{service:"AmazonBedrockFrontendService",operation:"InvokeModel"}},{requestHandler:s}=t;return n.resolve((e=>s.handle(e.request,r||{})),i)}serialize(e,t){return(async(e,t)=>{const{hostname:r,protocol:n="https",port:o,path:i}=await t.endpoint(),s=Di({},La,{"content-type":e.contentType||"application/octet-stream",accept:e.accept});let a,c=`${i?.endsWith("/")?i.slice(0,-1):i||""}/model/{modelId}/invoke`;return c=Gi(c,e,"modelId",(()=>e.modelId),"{modelId}",!1),void 0!==e.body&&(a=e.body),new xr({protocol:n,hostname:r,port:o,method:"POST",headers:s,path:c,body:a})})(e,t)}deserialize(e,t){return(async(e,t)=>{if(200!==e.statusCode&&e.statusCode>=300)return fa(e,t);const r=Di({$metadata:ja(e),contentType:[,e.headers["content-type"]]}),n=await bi(e.body,t);return r.body=n,r})(e,t)}}const Ua=["cohere.command","_apiUrl","split","ai.aws.requestParameters.anthropic_version","parse","preparePrompt","completions","read","json","meta.llama","_prepareRequestParameters","body","decode","join","pluginName","\n\nAssistant:","map","bytes","application/json","from","<<SYS>>\n","ai.aws.requestParameters.max_tokens_to_sample","chunk","bedrock-2023-05-31","editor","resolve","Instruction:\n","AWSTextAdapter","_processAWSRequest","data","startsWith","stringify","_readStreamableResponse","get","\nYou must keep the text formatting.\n\nContent:\n","ai.aws.requestParameters.top_p","utf-8","_requestHeaders","_readStaticResponse","completion","_readAsyncIterableResponse","signal","utf8","text","_getGeneratedText","filter","getReader","\n<</SYS>>\n[INST]\n","test","getModelFamily","sendRequest","generations","_bedrockClientConfig","Human:\n","define","ai.aws.requestParameters.stream","config","POST","_requestParameters","anthropic.claude-v2","ai.aws.requestParameters.model","Your task is to generate HTML content accordingly to the given instruction. Never include <img> tag in your response even if asked for. Your answer must be a well-structured and properly formatted HTML code. Answer only with the generated HTML content. Do not add any additional remarks or notes. Do not act like a chatbot or a real person.","_processProxyRequest","ai.aws.requestParameters.temperature","length","ai21.j2","locale","ai.aws.bedrockClientConfig","\n[/INST]","_prepareRequestHeaders","ai.aws.requestParameters","abortController","ai.aws.apiUrl"];var Ha,Va;Ha=Ua,Va=134,function(e){for(;--e;)Ha.push(Ha.shift())}(++Va);const qa=function(e,t){return Ua[e-=0]};class za extends or{static get[qa("0x1a")](){return qa("0x27")}constructor(e){super(e),e[qa("0x44")].get(qa("0x9"))||(e[qa("0x44")][qa("0x42")](qa("0x48"),qa("0x47")),e[qa("0x44")].define(qa("0x21"),2e3),e[qa("0x44")].define(qa("0x2"),1),e.config[qa("0x42")](qa("0x2f"),1),e[qa("0x44")][qa("0x42")]("ai.aws.requestParameters.top_k",250),e.config[qa("0x42")](qa("0xf"),qa("0x23")),e[qa("0x44")][qa("0x42")](qa("0x43"),!0)),this[qa("0xd")]=e[qa("0x44")][qa("0x2d")](qa("0xb")),this._bedrockClientConfig=e[qa("0x44")].get(qa("0x6")),this[qa("0x31")]=e[qa("0x44")][qa("0x2d")]("ai.aws.requestHeaders"),this[qa("0x46")]=e[qa("0x44")].get("ai.aws.requestParameters")}async[qa("0x3e")]({query:e,context:t,onData:r,actionId:n}){const{model:o,stream:i,...s}=await this[qa("0x16")](this[qa("0x46")],n),a={prompt:await this[qa("0x11")](e,t,o,n),...s};this[qa("0xd")]?await this[qa("0x1")](a,o,i,r,n):await this._processAWSRequest(a,o,i,r)}async[qa("0x11")](e,t,r,n){let o,i;return t?(o="Your task is to execute the instruction using the provided HTML content. Follow the instruction closely. Your answer must be a properly formatted HTML code. Do not add any additional remarks or notes. Do not act like a chatbot or a real person.",i=qa("0x26")+e+qa("0x2e")+(t[qa("0x2a")]("<")?t:"<span>"+t+"</span>")):(o=qa("0x0"),i=e),"meta.llama"==this[qa("0x3d")](r)?qa("0x20")+o+qa("0x3b")+i+qa("0x7"):qa("0x41")+o+"\n"+i+qa("0x1b")}[qa("0x3d")](e){if(/^anthropic\.claude/[qa("0x3c")](e))return"anthropic.claude";if(/^ai21\.j2/[qa("0x3c")](e))return"ai21.j2";if(/^cohere\.command/[qa("0x3c")](e))return qa("0xc");if(/^meta\.llama/.test(e))return qa("0x15");throw new $(U(this[qa("0x24")][qa("0x5")],"AI_ERROR_UNSUPPORTED_MODEL",e))}async[qa("0x1")](e,t,r,n,o){const i={method:qa("0x45"),headers:await this[qa("0x8")](this[qa("0x31")],o),body:JSON[qa("0x2b")]({...e,model:t,stream:r}),signal:this.abortController[qa("0x35")]},s=await fetch(this._apiUrl,i);r?await this[qa("0x2c")](s,t,n):await this[qa("0x32")](s,t,n)}async[qa("0x28")](e,t,r,n){const o=new Ks(this[qa("0x40")]),i={body:JSON.stringify(e),contentType:qa("0x1e"),accept:"application/json",modelId:t};let s;if(r){const e=new Da(i);s=await o.send(e,{abortSignal:this.abortController.signal}),await this[qa("0x34")](s,t,n)}else{const e=new $a(i);s=await o.send(e,{abortSignal:this[qa("0xa")][qa("0x35")]}),await this[qa("0x32")](s,t,n)}}async[qa("0x34")](e,t,r){const n=e[qa("0x17")],o=new TextDecoder("utf-8");let i="";for await(const e of n)if(e[qa("0x22")]){const n=o[qa("0x18")](e[qa("0x22")][qa("0x1d")]),s=JSON[qa("0x10")](n);i+=this[qa("0x38")](s,t),r(i)}return Promise[qa("0x25")]()}async[qa("0x2c")](e,t,r){const n=e[qa("0x17")],o=new TextDecoder(qa("0x30")),i=n[qa("0x3a")]();let s="",a="",c=!1;for(;!c;){const{done:e,value:n}=await i[qa("0x13")]();if(c=e,c)break;const u=(s+o[qa("0x18")](n))[qa("0xe")]("\n")[qa("0x1c")]((e=>{try{return s="",JSON[qa("0x10")](e)}catch(t){return s=e,null}}))[qa("0x39")]((e=>null!==e));u[qa("0x3")]&&(a+=u.map((e=>this[qa("0x38")](e,t)))[qa("0x19")](""),r(a))}return Promise.resolve()}async[qa("0x32")](e,t,r){let n;return n=e instanceof Response?await e[qa("0x14")]():JSON.parse(Buffer[qa("0x1f")](e[qa("0x17")]).toString(qa("0x36"))),r(this._getGeneratedText(n,t)),Promise[qa("0x25")]()}[qa("0x38")](e,t){switch(this[qa("0x3d")](t)){case"anthropic.claude":return e[qa("0x33")];case qa("0x4"):return e[qa("0x12")][0][qa("0x29")][qa("0x37")];case qa("0xc"):return e[qa("0x3f")][0][qa("0x37")];case qa("0x15"):return e.generation}}}})(),(window.CKEditor5=window.CKEditor5||{}).ai=n})();
80
+ var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},n(e,t)};function o(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var i=function(){return i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};function s(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}function a(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s}function c(e,t){return function(r,n){t(r,n,e)}}function u(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))}function d(e,t){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,n=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}function f(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}function p(e,t){for(var r in e)"default"===r||t.hasOwnProperty(r)||(t[r]=e[r])}function h(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function g(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)s.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return s}function m(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(g(arguments[t]));return e}function k(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),o=0;for(t=0;t<r;t++)for(var i=arguments[t],s=0,a=i.length;s<a;s++,o++)n[o]=i[s];return n}function b(e){return this instanceof b?(this.v=e,this):new b(e)}function y(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),i=[];return n={},s("next"),s("throw"),s("return"),n[Symbol.asyncIterator]=function(){return this},n;function s(e){o[e]&&(n[e]=function(t){return new Promise((function(r,n){i.push([e,t,r,n])>1||a(e,t)}))})}function a(e,t){try{(r=o[e](t)).value instanceof b?Promise.resolve(r.value.v).then(c,u):l(i[0][2],r)}catch(e){l(i[0][3],e)}var r}function c(e){a("next",e)}function u(e){a("throw",e)}function l(e,t){e(t),i.shift(),i.length&&a(i[0][0],i[0][1])}}function v(e){var t,r;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,o){t[n]=e[n]?function(t){return(r=!r)?{value:b(e[n](t)),done:"return"===n}:o?o(t):t}:o}}function w(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=h(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,o,(t=e[r](t)).done,t.value)}))}}}function _(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function S(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function x(e){return e&&e.__esModule?e:{default:e}}function A(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function E(e,t,r){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,r),r}},857:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.convertToBuffer=void 0;var n=r(9381),o="undefined"!=typeof Buffer&&Buffer.from?function(e){return Buffer.from(e,"utf8")}:n.fromUtf8;t.convertToBuffer=function(e){return e instanceof Uint8Array?e:"string"==typeof e?o(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}},7885:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.uint32ArrayFrom=t.numToUint8=t.isEmptyData=t.convertToBuffer=void 0;var n=r(857);Object.defineProperty(t,"convertToBuffer",{enumerable:!0,get:function(){return n.convertToBuffer}});var o=r(4964);Object.defineProperty(t,"isEmptyData",{enumerable:!0,get:function(){return o.isEmptyData}});var i=r(4034);Object.defineProperty(t,"numToUint8",{enumerable:!0,get:function(){return i.numToUint8}});var s=r(7911);Object.defineProperty(t,"uint32ArrayFrom",{enumerable:!0,get:function(){return s.uint32ArrayFrom}})},4964:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isEmptyData=void 0,t.isEmptyData=function(e){return"string"==typeof e?0===e.length:0===e.byteLength}},4034:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.numToUint8=void 0,t.numToUint8=function(e){return new Uint8Array([(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e])}},7911:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.uint32ArrayFrom=void 0,t.uint32ArrayFrom=function(e){if(!Uint32Array.from){for(var t=new Uint32Array(e.length),r=0;r<e.length;)t[r]=e[r],r+=1;return t}return Uint32Array.from(e)}},277:(e,t,r)=>{"use strict";r.r(t),r.d(t,{locateWindow:()=>o});const n={};function o(){return"undefined"!=typeof window?window:"undefined"!=typeof self?self:n}},9381:(e,t,r)=>{"use strict";r.r(t),r.d(t,{fromUtf8:()=>n,toUtf8:()=>o});const n=e=>"function"==typeof TextEncoder?function(e){return(new TextEncoder).encode(e)}(e):(e=>{const t=[];for(let r=0,n=e.length;r<n;r++){const n=e.charCodeAt(r);if(n<128)t.push(n);else if(n<2048)t.push(n>>6|192,63&n|128);else if(r+1<e.length&&55296==(64512&n)&&56320==(64512&e.charCodeAt(r+1))){const o=65536+((1023&n)<<10)+(1023&e.charCodeAt(++r));t.push(o>>18|240,o>>12&63|128,o>>6&63|128,63&o|128)}else t.push(n>>12|224,n>>6&63|128,63&n|128)}return Uint8Array.from(t)})(e),o=e=>"function"==typeof TextDecoder?function(e){return new TextDecoder("utf-8").decode(e)}(e):(e=>{let t="";for(let r=0,n=e.length;r<n;r++){const n=e[r];if(n<128)t+=String.fromCharCode(n);else if(192<=n&&n<224){const o=e[++r];t+=String.fromCharCode((31&n)<<6|63&o)}else if(240<=n&&n<365){const o="%"+[n,e[++r],e[++r],e[++r]].map((e=>e.toString(16))).join("%");t+=decodeURIComponent(o)}else t+=String.fromCharCode((15&n)<<12|(63&e[++r])<<6|63&e[++r])}return t})(e)},5369:function(e){e.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=90)}({17:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n=r(18),o=function(){function e(){}return e.getFirstMatch=function(e,t){var r=t.match(e);return r&&r.length>0&&r[1]||""},e.getSecondMatch=function(e,t){var r=t.match(e);return r&&r.length>1&&r[2]||""},e.matchAndReturnConst=function(e,t,r){if(e.test(t))return r},e.getWindowsVersionName=function(e){switch(e){case"NT":return"NT";case"XP":case"NT 5.1":return"XP";case"NT 5.0":return"2000";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}},e.getMacOSVersionName=function(e){var t=e.split(".").splice(0,2).map((function(e){return parseInt(e,10)||0}));if(t.push(0),10===t[0])switch(t[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}},e.getAndroidVersionName=function(e){var t=e.split(".").splice(0,2).map((function(e){return parseInt(e,10)||0}));if(t.push(0),!(1===t[0]&&t[1]<5))return 1===t[0]&&t[1]<6?"Cupcake":1===t[0]&&t[1]>=6?"Donut":2===t[0]&&t[1]<2?"Eclair":2===t[0]&&2===t[1]?"Froyo":2===t[0]&&t[1]>2?"Gingerbread":3===t[0]?"Honeycomb":4===t[0]&&t[1]<1?"Ice Cream Sandwich":4===t[0]&&t[1]<4?"Jelly Bean":4===t[0]&&t[1]>=4?"KitKat":5===t[0]?"Lollipop":6===t[0]?"Marshmallow":7===t[0]?"Nougat":8===t[0]?"Oreo":9===t[0]?"Pie":void 0},e.getVersionPrecision=function(e){return e.split(".").length},e.compareVersions=function(t,r,n){void 0===n&&(n=!1);var o=e.getVersionPrecision(t),i=e.getVersionPrecision(r),s=Math.max(o,i),a=0,c=e.map([t,r],(function(t){var r=s-e.getVersionPrecision(t),n=t+new Array(r+1).join(".0");return e.map(n.split("."),(function(e){return new Array(20-e.length).join("0")+e})).reverse()}));for(n&&(a=s-Math.min(o,i)),s-=1;s>=a;){if(c[0][s]>c[1][s])return 1;if(c[0][s]===c[1][s]){if(s===a)return 0;s-=1}else if(c[0][s]<c[1][s])return-1}},e.map=function(e,t){var r,n=[];if(Array.prototype.map)return Array.prototype.map.call(e,t);for(r=0;r<e.length;r+=1)n.push(t(e[r]));return n},e.find=function(e,t){var r,n;if(Array.prototype.find)return Array.prototype.find.call(e,t);for(r=0,n=e.length;r<n;r+=1){var o=e[r];if(t(o,r))return o}},e.assign=function(e){for(var t,r,n=e,o=arguments.length,i=new Array(o>1?o-1:0),s=1;s<o;s++)i[s-1]=arguments[s];if(Object.assign)return Object.assign.apply(Object,[e].concat(i));var a=function(){var e=i[t];"object"==typeof e&&null!==e&&Object.keys(e).forEach((function(t){n[t]=e[t]}))};for(t=0,r=i.length;t<r;t+=1)a();return e},e.getBrowserAlias=function(e){return n.BROWSER_ALIASES_MAP[e]},e.getBrowserTypeByAlias=function(e){return n.BROWSER_MAP[e]||""},e}();t.default=o,e.exports=t.default},18:function(e,t,r){"use strict";t.__esModule=!0,t.ENGINE_MAP=t.OS_MAP=t.PLATFORMS_MAP=t.BROWSER_MAP=t.BROWSER_ALIASES_MAP=void 0,t.BROWSER_ALIASES_MAP={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},t.BROWSER_MAP={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},t.PLATFORMS_MAP={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},t.OS_MAP={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},t.ENGINE_MAP={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"}},90:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,o=(n=r(91))&&n.__esModule?n:{default:n},i=r(18);function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var a=function(){function e(){}var t,r,n;return e.getParser=function(e,t){if(void 0===t&&(t=!1),"string"!=typeof e)throw new Error("UserAgent should be a string");return new o.default(e,t)},e.parse=function(e){return new o.default(e).getResult()},t=e,n=[{key:"BROWSER_MAP",get:function(){return i.BROWSER_MAP}},{key:"ENGINE_MAP",get:function(){return i.ENGINE_MAP}},{key:"OS_MAP",get:function(){return i.OS_MAP}},{key:"PLATFORMS_MAP",get:function(){return i.PLATFORMS_MAP}}],(r=null)&&s(t.prototype,r),n&&s(t,n),e}();t.default=a,e.exports=t.default},91:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n=c(r(92)),o=c(r(93)),i=c(r(94)),s=c(r(95)),a=c(r(17));function c(e){return e&&e.__esModule?e:{default:e}}var u=function(){function e(e,t){if(void 0===t&&(t=!1),null==e||""===e)throw new Error("UserAgent parameter can't be empty");this._ua=e,this.parsedResult={},!0!==t&&this.parse()}var t=e.prototype;return t.getUA=function(){return this._ua},t.test=function(e){return e.test(this._ua)},t.parseBrowser=function(){var e=this;this.parsedResult.browser={};var t=a.default.find(n.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.browser=t.describe(this.getUA())),this.parsedResult.browser},t.getBrowser=function(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()},t.getBrowserName=function(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""},t.getBrowserVersion=function(){return this.getBrowser().version},t.getOS=function(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()},t.parseOS=function(){var e=this;this.parsedResult.os={};var t=a.default.find(o.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.os=t.describe(this.getUA())),this.parsedResult.os},t.getOSName=function(e){var t=this.getOS().name;return e?String(t).toLowerCase()||"":t||""},t.getOSVersion=function(){return this.getOS().version},t.getPlatform=function(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()},t.getPlatformType=function(e){void 0===e&&(e=!1);var t=this.getPlatform().type;return e?String(t).toLowerCase()||"":t||""},t.parsePlatform=function(){var e=this;this.parsedResult.platform={};var t=a.default.find(i.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.platform=t.describe(this.getUA())),this.parsedResult.platform},t.getEngine=function(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()},t.getEngineName=function(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""},t.parseEngine=function(){var e=this;this.parsedResult.engine={};var t=a.default.find(s.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.engine=t.describe(this.getUA())),this.parsedResult.engine},t.parse=function(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this},t.getResult=function(){return a.default.assign({},this.parsedResult)},t.satisfies=function(e){var t=this,r={},n=0,o={},i=0;if(Object.keys(e).forEach((function(t){var s=e[t];"string"==typeof s?(o[t]=s,i+=1):"object"==typeof s&&(r[t]=s,n+=1)})),n>0){var s=Object.keys(r),c=a.default.find(s,(function(e){return t.isOS(e)}));if(c){var u=this.satisfies(r[c]);if(void 0!==u)return u}var l=a.default.find(s,(function(e){return t.isPlatform(e)}));if(l){var d=this.satisfies(r[l]);if(void 0!==d)return d}}if(i>0){var f=Object.keys(o),p=a.default.find(f,(function(e){return t.isBrowser(e,!0)}));if(void 0!==p)return this.compareVersion(o[p])}},t.isBrowser=function(e,t){void 0===t&&(t=!1);var r=this.getBrowserName().toLowerCase(),n=e.toLowerCase(),o=a.default.getBrowserTypeByAlias(n);return t&&o&&(n=o.toLowerCase()),n===r},t.compareVersion=function(e){var t=[0],r=e,n=!1,o=this.getBrowserVersion();if("string"==typeof o)return">"===e[0]||"<"===e[0]?(r=e.substr(1),"="===e[1]?(n=!0,r=e.substr(2)):t=[],">"===e[0]?t.push(1):t.push(-1)):"="===e[0]?r=e.substr(1):"~"===e[0]&&(n=!0,r=e.substr(1)),t.indexOf(a.default.compareVersions(o,r,n))>-1},t.isOS=function(e){return this.getOSName(!0)===String(e).toLowerCase()},t.isPlatform=function(e){return this.getPlatformType(!0)===String(e).toLowerCase()},t.isEngine=function(e){return this.getEngineName(!0)===String(e).toLowerCase()},t.is=function(e,t){return void 0===t&&(t=!1),this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)},t.some=function(e){var t=this;return void 0===e&&(e=[]),e.some((function(e){return t.is(e)}))},e}();t.default=u,e.exports=t.default},92:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,o=(n=r(17))&&n.__esModule?n:{default:n},i=/version\/(\d+(\.?_?\d+)+)/i,s=[{test:[/googlebot/i],describe:function(e){var t={name:"Googlebot"},r=o.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||o.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/opera/i],describe:function(e){var t={name:"Opera"},r=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/opr\/|opios/i],describe:function(e){var t={name:"Opera"},r=o.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||o.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/SamsungBrowser/i],describe:function(e){var t={name:"Samsung Internet for Android"},r=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/Whale/i],describe:function(e){var t={name:"NAVER Whale Browser"},r=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/MZBrowser/i],describe:function(e){var t={name:"MZ Browser"},r=o.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||o.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/focus/i],describe:function(e){var t={name:"Focus"},r=o.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||o.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/swing/i],describe:function(e){var t={name:"Swing"},r=o.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||o.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/coast/i],describe:function(e){var t={name:"Opera Coast"},r=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(e){var t={name:"Opera Touch"},r=o.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/yabrowser/i],describe:function(e){var t={name:"Yandex Browser"},r=o.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/ucbrowser/i],describe:function(e){var t={name:"UC Browser"},r=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/Maxthon|mxios/i],describe:function(e){var t={name:"Maxthon"},r=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/epiphany/i],describe:function(e){var t={name:"Epiphany"},r=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/puffin/i],describe:function(e){var t={name:"Puffin"},r=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/sleipnir/i],describe:function(e){var t={name:"Sleipnir"},r=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/k-meleon/i],describe:function(e){var t={name:"K-Meleon"},r=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/micromessenger/i],describe:function(e){var t={name:"WeChat"},r=o.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/qqbrowser/i],describe:function(e){var t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},r=o.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/msie|trident/i],describe:function(e){var t={name:"Internet Explorer"},r=o.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/\sedg\//i],describe:function(e){var t={name:"Microsoft Edge"},r=o.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/edg([ea]|ios)/i],describe:function(e){var t={name:"Microsoft Edge"},r=o.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/vivaldi/i],describe:function(e){var t={name:"Vivaldi"},r=o.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/seamonkey/i],describe:function(e){var t={name:"SeaMonkey"},r=o.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/sailfish/i],describe:function(e){var t={name:"Sailfish"},r=o.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return r&&(t.version=r),t}},{test:[/silk/i],describe:function(e){var t={name:"Amazon Silk"},r=o.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/phantom/i],describe:function(e){var t={name:"PhantomJS"},r=o.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/slimerjs/i],describe:function(e){var t={name:"SlimerJS"},r=o.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t={name:"BlackBerry"},r=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t={name:"WebOS Browser"},r=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/bada/i],describe:function(e){var t={name:"Bada"},r=o.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/tizen/i],describe:function(e){var t={name:"Tizen"},r=o.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/qupzilla/i],describe:function(e){var t={name:"QupZilla"},r=o.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/firefox|iceweasel|fxios/i],describe:function(e){var t={name:"Firefox"},r=o.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/electron/i],describe:function(e){var t={name:"Electron"},r=o.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/MiuiBrowser/i],describe:function(e){var t={name:"Miui"},r=o.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/chromium/i],describe:function(e){var t={name:"Chromium"},r=o.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/chrome|crios|crmo/i],describe:function(e){var t={name:"Chrome"},r=o.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/GSA/i],describe:function(e){var t={name:"Google Search"},r=o.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){var t=!e.test(/like android/i),r=e.test(/android/i);return t&&r},describe:function(e){var t={name:"Android Browser"},r=o.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/playstation 4/i],describe:function(e){var t={name:"PlayStation 4"},r=o.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/safari|applewebkit/i],describe:function(e){var t={name:"Safari"},r=o.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/.*/i],describe:function(e){var t=-1!==e.search("\\(")?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:o.default.getFirstMatch(t,e),version:o.default.getSecondMatch(t,e)}}}];t.default=s,e.exports=t.default},93:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,o=(n=r(17))&&n.__esModule?n:{default:n},i=r(18),s=[{test:[/Roku\/DVP/],describe:function(e){var t=o.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:i.OS_MAP.Roku,version:t}}},{test:[/windows phone/i],describe:function(e){var t=o.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:i.OS_MAP.WindowsPhone,version:t}}},{test:[/windows /i],describe:function(e){var t=o.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),r=o.default.getWindowsVersionName(t);return{name:i.OS_MAP.Windows,version:t,versionName:r}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(e){var t={name:i.OS_MAP.iOS},r=o.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return r&&(t.version=r),t}},{test:[/macintosh/i],describe:function(e){var t=o.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),r=o.default.getMacOSVersionName(t),n={name:i.OS_MAP.MacOS,version:t};return r&&(n.versionName=r),n}},{test:[/(ipod|iphone|ipad)/i],describe:function(e){var t=o.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:i.OS_MAP.iOS,version:t}}},{test:function(e){var t=!e.test(/like android/i),r=e.test(/android/i);return t&&r},describe:function(e){var t=o.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),r=o.default.getAndroidVersionName(t),n={name:i.OS_MAP.Android,version:t};return r&&(n.versionName=r),n}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t=o.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),r={name:i.OS_MAP.WebOS};return t&&t.length&&(r.version=t),r}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t=o.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||o.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||o.default.getFirstMatch(/\bbb(\d+)/i,e);return{name:i.OS_MAP.BlackBerry,version:t}}},{test:[/bada/i],describe:function(e){var t=o.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:i.OS_MAP.Bada,version:t}}},{test:[/tizen/i],describe:function(e){var t=o.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:i.OS_MAP.Tizen,version:t}}},{test:[/linux/i],describe:function(){return{name:i.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:i.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(e){var t=o.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:i.OS_MAP.PlayStation4,version:t}}}];t.default=s,e.exports=t.default},94:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,o=(n=r(17))&&n.__esModule?n:{default:n},i=r(18),s=[{test:[/googlebot/i],describe:function(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe:function(e){var t=o.default.getFirstMatch(/(can-l01)/i,e)&&"Nova",r={type:i.PLATFORMS_MAP.mobile,vendor:"Huawei"};return t&&(r.model=t),r}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:i.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:i.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:i.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:i.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:i.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:i.PLATFORMS_MAP.tablet}}},{test:function(e){var t=e.test(/ipod|iphone/i),r=e.test(/like (ipod|iphone)/i);return t&&!r},describe:function(e){var t=o.default.getFirstMatch(/(ipod|iphone)/i,e);return{type:i.PLATFORMS_MAP.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:i.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe:function(){return{type:i.PLATFORMS_MAP.mobile}}},{test:function(e){return"blackberry"===e.getBrowserName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(e){return"bada"===e.getBrowserName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.mobile}}},{test:function(e){return"windows phone"===e.getBrowserName()},describe:function(){return{type:i.PLATFORMS_MAP.mobile,vendor:"Microsoft"}}},{test:function(e){var t=Number(String(e.getOSVersion()).split(".")[0]);return"android"===e.getOSName(!0)&&t>=3},describe:function(){return{type:i.PLATFORMS_MAP.tablet}}},{test:function(e){return"android"===e.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.mobile}}},{test:function(e){return"macos"===e.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(e){return"windows"===e.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.desktop}}},{test:function(e){return"linux"===e.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.desktop}}},{test:function(e){return"playstation 4"===e.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.tv}}},{test:function(e){return"roku"===e.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.tv}}}];t.default=s,e.exports=t.default},95:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,o=(n=r(17))&&n.__esModule?n:{default:n},i=r(18),s=[{test:function(e){return"microsoft edge"===e.getBrowserName(!0)},describe:function(e){if(/\sedg\//i.test(e))return{name:i.ENGINE_MAP.Blink};var t=o.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:i.ENGINE_MAP.EdgeHTML,version:t}}},{test:[/trident/i],describe:function(e){var t={name:i.ENGINE_MAP.Trident},r=o.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){return e.test(/presto/i)},describe:function(e){var t={name:i.ENGINE_MAP.Presto},r=o.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){var t=e.test(/gecko/i),r=e.test(/like gecko/i);return t&&!r},describe:function(e){var t={name:i.ENGINE_MAP.Gecko},r=o.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:i.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(e){var t={name:i.ENGINE_MAP.WebKit},r=o.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}}];t.default=s,e.exports=t.default}})},5507:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(8433),o=r.n(n)()((function(e){return e[1]}));o.push([e.id,".ck-content pre>code.ck-suggestion-marker-formatBlock{box-shadow:-7px 0 0 0 #ededed,-10px 0 0 0 var(--ck-color-suggestion-marker-format-border);display:block}.ck-content pre>code.ck-suggestion-marker-formatBlock.ck-suggestion-marker--active{box-shadow:-5px 0 0 0 #ededed,-8px 0 0 0 var(--ck-color-suggestion-marker-format-border-active)}",""]);const i=o},4967:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(8433),o=r.n(n)()((function(e){return e[1]}));o.push([e.id,".ck-content .ck-suggestion-marker-deletion.ck-widget.ck-horizontal-line{background-color:var(--ck-color-suggestion-widget-deletion-background)}.ck-content .ck-suggestion-marker-deletion.ck-widget.ck-horizontal-line.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-deletion-background-active)}.ck-content .ck-suggestion-marker-insertion.ck-widget.ck-horizontal-line{background-color:var(--ck-color-suggestion-widget-insertion-background)}.ck-content .ck-suggestion-marker-insertion.ck-widget.ck-horizontal-line.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-insertion-background-active)}",""]);const i=o},4258:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(8433),o=r.n(n)()((function(e){return e[1]}));o.push([e.id,".ck-content .ck-widget.image>figcaption.ck-suggestion-marker-deletion{background-color:var(--ck-color-suggestion-widget-deletion-background);border:none}.ck-content .ck-widget.image>figcaption.ck-suggestion-marker-deletion.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-deletion-background-active)}.ck-content .ck-widget.image>figcaption.ck-suggestion-marker-insertion{background-color:var(--ck-color-suggestion-widget-insertion-background);border:none}.ck-content .ck-widget.image>figcaption.ck-suggestion-marker-insertion.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-insertion-background-active)}.ck-content .ck-suggestion-marker-deletion.ck-widget.image{background-color:var(--ck-color-suggestion-widget-deletion-background)}.ck-content .ck-suggestion-marker-deletion.ck-widget.image img{opacity:.6}.ck-content .ck-suggestion-marker-deletion.ck-widget.image figcaption{background-color:var(--ck-color-suggestion-widget-deletion-background)}.ck-content .ck-suggestion-marker-deletion.ck-widget.image.ck-suggestion-marker--active,.ck-content .ck-suggestion-marker-deletion.ck-widget.image.ck-suggestion-marker--active figcaption{background-color:var(--ck-color-suggestion-widget-deletion-background-active)}.ck-content .ck-suggestion-marker-insertion.ck-widget.image,.ck-content .ck-suggestion-marker-insertion.ck-widget.image figcaption{background-color:var(--ck-color-suggestion-widget-insertion-background)}.ck-content .ck-suggestion-marker-insertion.ck-widget.image.ck-suggestion-marker--active,.ck-content .ck-suggestion-marker-insertion.ck-widget.image.ck-suggestion-marker--active figcaption{background-color:var(--ck-color-suggestion-widget-insertion-background-active)}",""]);const i=o},906:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(8433),o=r.n(n)()((function(e){return e[1]}));o.push([e.id,".ck-content .ck-suggestion-marker-deletion.ck-widget.media{background-color:var(--ck-color-suggestion-widget-deletion-background)}.ck-content .ck-suggestion-marker-deletion.ck-widget.media .ck-media__wrapper{opacity:.6}.ck-content .ck-suggestion-marker-deletion.ck-widget.media.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-deletion-background-active)}.ck-content .ck-suggestion-marker-insertion.ck-widget.media{background-color:var(--ck-color-suggestion-widget-insertion-background)}.ck-content .ck-suggestion-marker-insertion.ck-widget.media.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-insertion-background-active)}",""]);const i=o},2751:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(8433),o=r.n(n)()((function(e){return e[1]}));o.push([e.id,".ck-content .ck-suggestion-marker-deletion.ck-widget.page-break{background-color:var(--ck-color-suggestion-widget-deletion-background)}.ck-content .ck-suggestion-marker-deletion.ck-widget.page-break.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-deletion-background-active)}.ck-content .ck-suggestion-marker-insertion.ck-widget.page-break{background-color:var(--ck-color-suggestion-widget-insertion-background)}.ck-content .ck-suggestion-marker-insertion.ck-widget.page-break.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-insertion-background-active)}",""]);const i=o},3901:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(8433),o=r.n(n)()((function(e){return e[1]}));o.push([e.id,":root{--ck-color-suggestion-widget-th-insertion-background:rgba(102,229,119,.12);--ck-color-suggestion-widget-th-insertion-background-active:rgba(37,218,61,.14);--ck-color-suggestion-widget-th-deletion-background:rgba(229,102,134,.14);--ck-color-suggestion-widget-th-deletion-background-active:rgba(196,33,74,.16)}.ck-content figure.table .ck-suggestion-marker-formatBlock{box-shadow:-3px 0 0 0 var(--ck-color-suggestion-marker-format-border)}.ck-content figure.table .ck-suggestion-marker-formatBlock.ck-suggestion-marker--active{box-shadow:-3px 0 0 0 var(--ck-color-suggestion-marker-format-border-active)}.ck-content .ck-widget.table>figcaption.ck-suggestion-marker-deletion{background-color:var(--ck-color-suggestion-widget-deletion-background);border:none}.ck-content .ck-widget.table>figcaption.ck-suggestion-marker-deletion.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-deletion-background-active)}.ck-content .ck-widget.table>figcaption.ck-suggestion-marker-insertion{background-color:var(--ck-color-suggestion-widget-insertion-background);border:none}.ck-content .ck-widget.table>figcaption.ck-suggestion-marker-insertion.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-insertion-background-active)}.ck-content .ck-suggestion-marker-insertion.table{border-color:var(--ck-color-suggestion-marker-insertion-border)}.ck-content .ck-suggestion-marker-insertion.table>figcaption{background-color:var(--ck-color-suggestion-widget-insertion-background)}.ck-content .ck-suggestion-marker-insertion.table>table>tbody>tr>th,.ck-content .ck-suggestion-marker-insertion.table>table>thead>tr>th{background-color:var(--ck-color-suggestion-widget-th-insertion-background);border-color:var(--ck-color-suggestion-marker-insertion-border)}.ck-content .ck-suggestion-marker-insertion.table>table>tbody>tr>td{background-color:var(--ck-color-suggestion-widget-insertion-background);border-color:var(--ck-color-suggestion-marker-insertion-border)}.ck-content .ck-suggestion-marker-insertion.ck-suggestion-marker--active.table{border-color:var(--ck-color-suggestion-marker-insertion-border-active)}.ck-content .ck-suggestion-marker-insertion.ck-suggestion-marker--active.table>figcaption{background-color:var(--ck-color-suggestion-widget-insertion-background-active)}.ck-content .ck-suggestion-marker-insertion.ck-suggestion-marker--active.table>table>tbody>tr>th,.ck-content .ck-suggestion-marker-insertion.ck-suggestion-marker--active.table>table>thead>tr>th{background-color:var(--ck-color-suggestion-widget-th-insertion-background-active);border-color:var(--ck-color-suggestion-marker-insertion-border-active)}.ck-content .ck-suggestion-marker-insertion.ck-suggestion-marker--active.table>table>tbody>tr>td{background-color:var(--ck-color-suggestion-widget-insertion-background-active);border-color:var(--ck-color-suggestion-marker-insertion-border-active)}.ck-content .ck-suggestion-marker-deletion.ck-widget.table{border-color:var(--ck-color-suggestion-marker-deletion-border)}.ck-content .ck-suggestion-marker-deletion.ck-widget.table>figcaption{background-color:var(--ck-color-suggestion-widget-deletion-background)}.ck-content .ck-suggestion-marker-deletion.ck-widget.table>table>tbody>tr>th,.ck-content .ck-suggestion-marker-deletion.ck-widget.table>table>thead>tr>th{background-color:var(--ck-color-suggestion-widget-th-deletion-background);border-color:var(--ck-color-suggestion-marker-deletion-border);text-decoration:none}.ck-content .ck-suggestion-marker-deletion.ck-widget.table>table>tbody>tr>td{background-color:var(--ck-color-suggestion-widget-deletion-background);border-color:var(--ck-color-suggestion-marker-deletion-border);text-decoration:none}.ck-content .ck-suggestion-marker-deletion.ck-suggestion-marker--active.table{border-color:var(--ck-color-suggestion-marker-deletion-border-active)}.ck-content .ck-suggestion-marker-deletion.ck-suggestion-marker--active.table>figcaption{background-color:var(--ck-color-suggestion-widget-deletion-background-active)}.ck-content .ck-suggestion-marker-deletion.ck-suggestion-marker--active.table>table>tbody>tr>th,.ck-content .ck-suggestion-marker-deletion.ck-suggestion-marker--active.table>table>thead>tr>th{background-color:var(--ck-color-suggestion-widget-th-deletion-background-active);border-color:var(--ck-color-suggestion-marker-deletion-border-active)}.ck-content .ck-suggestion-marker-deletion.ck-suggestion-marker--active.table>table>tbody>tr>td{background-color:var(--ck-color-suggestion-widget-deletion-background-active);border-color:var(--ck-color-suggestion-marker-deletion-border-active)}.ck-content .table th.ck-suggestion-marker-insertion{background-color:var(--ck-color-suggestion-widget-th-insertion-background)}.ck-content .table th.ck-suggestion-marker-insertion.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-th-insertion-background-active)}.ck-content .table th.ck-suggestion-marker-deletion{background-color:var(--ck-color-suggestion-widget-th-deletion-background);text-decoration:none}.ck-content .table th.ck-suggestion-marker-deletion.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-th-deletion-background-active)}.ck-content .table td.ck-suggestion-marker-insertion{background-color:var(--ck-color-suggestion-widget-insertion-background)}.ck-content .table td.ck-suggestion-marker-insertion.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-insertion-background-active)}.ck-content .table td.ck-suggestion-marker-deletion{background-color:var(--ck-color-suggestion-widget-deletion-background);text-decoration:none}.ck-content .table td.ck-suggestion-marker-deletion.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-deletion-background-active)}.ck-content .table td.ck-suggestion-marker-formatBlock,.ck-content .table td.ck-suggestion-marker-formatInline,.ck-content .table th.ck-suggestion-marker-formatBlock,.ck-content .table th.ck-suggestion-marker-formatInline{background-color:var(--ck-color-suggestion-widget-format-background);box-shadow:none}.ck-content .table td.ck-suggestion-marker-formatBlock.ck-suggestion-marker--active,.ck-content .table td.ck-suggestion-marker-formatInline.ck-suggestion-marker--active,.ck-content .table th.ck-suggestion-marker-formatBlock.ck-suggestion-marker--active,.ck-content .table th.ck-suggestion-marker-formatInline.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-format-background-active);box-shadow:none}",""]);const i=o},1961:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(8433),o=r.n(n)()((function(e){return e[1]}));o.push([e.id,":root{--ck-color-comment-box-border:#f2de02;--ck-color-suggestion-box-deletion-border:#d85a79;--ck-color-suggestion-box-insertion-border:#5ad86b;--ck-color-suggestion-box-format-border:#5ac1d8}.ck .ck-suggestion{border-top-left-radius:var(--ck-border-radius)}.ck .ck-annotation{border-left:3px solid transparent}.ck .ck-suggestion--disabled-comments .ck-annotation{min-height:80px}.ck .ck-comment,.ck .ck-comment__input-container,.ck .ck-thread__comment-count,.ck .ck-thread__header{border-left:3px solid var(--ck-color-comment-box-border)}.ck .ck-suggestion-insertion .ck-suggestion{border-left-color:var(--ck-color-suggestion-box-insertion-border)}.ck .ck-suggestion-deletion .ck-suggestion{border-left-color:var(--ck-color-suggestion-box-deletion-border)}.ck .ck-suggestion-replace .ck-suggestion{border-left-color:var(--ck-color-suggestion-box-insertion-border)}.ck .ck-suggestion-format .ck-suggestion{border-left-color:var(--ck-color-suggestion-box-format-border)}.ck .ck-suggestion-wrapper{outline:0;overflow:hidden}.ck .ck-suggestion-type{font-weight:700}.ck .ck-suggestion-color{border-radius:14px;box-shadow:0 0 0 1px #454545;display:inline-block;height:14px;margin:0 5px;vertical-align:text-bottom;width:14px}.ck .ck-suggestion-insertion .ck-comment,.ck .ck-suggestion-insertion .ck-comment__input-container,.ck .ck-suggestion-insertion .ck-thread__comment-count,.ck .ck-suggestion-replace .ck-comment,.ck .ck-suggestion-replace .ck-comment__input-container,.ck .ck-suggestion-replace .ck-thread__comment-count{border-left-color:var(--ck-color-suggestion-box-insertion-border)}.ck .ck-suggestion-deletion .ck-comment,.ck .ck-suggestion-deletion .ck-comment__input-container,.ck .ck-suggestion-deletion .ck-thread__comment-count{border-left-color:var(--ck-color-suggestion-box-deletion-border)}.ck .ck-suggestion-format .ck-comment,.ck .ck-suggestion-format .ck-comment__input-container,.ck .ck-suggestion-format .ck-thread__comment-count{border-left-color:var(--ck-color-suggestion-box-format-border)}",""]);const i=o},5163:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(8433),o=r.n(n)()((function(e){return e[1]}));o.push([e.id,':root{--ck-color-suggestion-marker-insertion-border:rgba(30,174,49,.35);--ck-color-suggestion-marker-insertion-border-active:rgba(18,109,31,.5);--ck-color-suggestion-marker-insertion-background:rgba(102,229,119,.35);--ck-color-suggestion-marker-insertion-background-active:rgba(37,218,61,.5);--ck-color-suggestion-marker-deletion-border:rgba(174,30,66,.35);--ck-color-suggestion-marker-deletion-border-active:rgba(109,18,41,.5);--ck-color-suggestion-marker-deletion-background:rgba(229,102,134,.35);--ck-color-suggestion-marker-deletion-background-active:rgba(218,37,82,.5);--ck-color-suggestion-marker-deletion-stroke:rgba(87,15,33,.5);--ck-color-suggestion-marker-format-border:#99d7e6;--ck-color-suggestion-marker-format-border-active:#5cc0d6;--ck-color-suggestion-widget-insertion-background:rgba(102,229,119,.05);--ck-color-suggestion-widget-insertion-background-active:rgba(37,218,61,.07);--ck-color-suggestion-widget-deletion-background:rgba(229,102,134,.05);--ck-color-suggestion-widget-deletion-background-active:rgba(196,33,74,.07);--ck-color-suggestion-widget-format-background:rgba(10,160,194,.09);--ck-color-suggestion-widget-format-background-active:rgba(10,160,194,.16)}.ck-content .ck-suggestion-marker-insertion{background:var(--ck-color-suggestion-marker-insertion-background);border-bottom:3px solid var(--ck-color-suggestion-marker-insertion-border);border-top:3px solid var(--ck-color-suggestion-marker-insertion-border)}.ck-content .ck-suggestion-marker-insertion.ck-suggestion-marker--active{background:var(--ck-color-suggestion-marker-insertion-background-active);border-color:var(--ck-color-suggestion-marker-insertion-border-active)}.ck-content .ck-suggestion-marker-insertion.ck-widget{background:none;border:3px solid var(--ck-color-suggestion-marker-insertion-border);text-decoration:none}.ck-content .ck-suggestion-marker-insertion.ck-widget.ck-suggestion-marker--active{border-color:var(--ck-color-suggestion-marker-insertion-border-active)}.ck-content .ck-suggestion-marker-deletion{background:var(--ck-color-suggestion-marker-deletion-background);border-bottom:3px solid var(--ck-color-suggestion-marker-deletion-border);border-top:3px solid var(--ck-color-suggestion-marker-deletion-border);text-decoration:line-through;text-decoration-color:var(--ck-color-suggestion-marker-deletion-stroke);text-decoration-thickness:3px}.ck-content .ck-suggestion-marker-deletion.ck-suggestion-marker--active{background:var(--ck-color-suggestion-marker-deletion-background-active);border-color:var(--ck-color-suggestion-marker-deletion-border-active)}.ck-content .ck-suggestion-marker-deletion.ck-widget{background:none;border:3px solid var(--ck-color-suggestion-marker-deletion-border);text-decoration:none}.ck-content .ck-suggestion-marker-deletion.ck-widget.ck-suggestion-marker--active{border-color:var(--ck-color-suggestion-marker-deletion-border-active)}.ck-content .ck-suggestion-marker-merge:after{background:var(--ck-color-suggestion-marker-deletion-background);border-bottom:3px solid var(--ck-color-suggestion-marker-deletion-border);border-top:3px solid var(--ck-color-suggestion-marker-deletion-border);color:var(--ck-color-suggestion-marker-deletion-stroke);content:"¶";text-decoration:line-through;text-decoration-color:var(--ck-color-suggestion-marker-deletion-stroke)}.ck-content .ck-suggestion-marker-merge.ck-suggestion-marker--active:after{background:var(--ck-color-suggestion-marker-deletion-background-active);border-color:var(--ck-color-suggestion-marker-deletion-border-active)}.ck-content .ck-suggestion-marker-split:after{background:var(--ck-color-suggestion-marker-insertion-background);border-bottom:3px solid var(--ck-color-suggestion-marker-insertion-border);border-top:3px solid var(--ck-color-suggestion-marker-insertion-border);color:var(--ck-color-suggestion-marker-insertion-border);content:"¶"}.ck-content .ck-suggestion-marker-split.ck-suggestion-marker--active:after{background:var(--ck-color-suggestion-marker-insertion-background-active);border-color:var(--ck-color-suggestion-marker-insertion-border-active)}.ck-content .ck-suggestion-marker-formatInline{border-bottom:3px solid var(--ck-color-suggestion-marker-format-border);border-top:3px solid var(--ck-color-suggestion-marker-format-border)}.ck-content .ck-suggestion-marker-formatInline.ck-suggestion-marker--active{border-color:var(--ck-color-suggestion-marker-format-border-active)}.ck-content .ck-suggestion-marker-formatInline.ck-widget{background:none;border:3px solid var(--ck-color-suggestion-marker-format-border)}.ck-content .ck-suggestion-marker-formatInline.ck-widget.ck-suggestion-marker--active{border-color:var(--ck-color-suggestion-marker-format-border-active)}.ck-content .ck-suggestion-marker-formatBlock{background:none;border:0;box-shadow:-7px 0 0 0 var(--ck-color-base-background),-10px 0 0 0 var(--ck-color-suggestion-marker-format-border)}.ck-content .ck-suggestion-marker-formatBlock.ck-suggestion-marker--active{box-shadow:-5px 0 0 0 var(--ck-color-base-background),-8px 0 0 0 var(--ck-color-suggestion-marker-format-border-active)}.ck-content ol .ck-suggestion-marker-formatBlock,.ck-content ul .ck-suggestion-marker-formatBlock{box-shadow:-2px 0 0 0 var(--ck-color-base-background),-5px 0 0 0 var(--ck-color-suggestion-marker-format-border)}.ck-content ol .ck-suggestion-marker-formatBlock.ck-suggestion-marker--active,.ck-content ul .ck-suggestion-marker-formatBlock.ck-suggestion-marker--active{box-shadow:-2px 0 0 0 var(--ck-color-base-background),-5px 0 0 0 var(--ck-color-suggestion-marker-format-border-active)}',""]);const i=o},2332:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(8433),o=r.n(n)()((function(e){return e[1]}));o.push([e.id,":root{--ck-user-colors--0:#6d78e8;--ck-user-colors--0-alpha:rgba(109,120,232,.15);--ck-user-colors--1:#007a6c;--ck-user-colors--1-alpha:rgba(0,122,108,.15);--ck-user-colors--2:#ba4545;--ck-user-colors--2-alpha:rgba(186,69,69,.15);--ck-user-colors--3:#5635b1;--ck-user-colors--3-alpha:rgba(86,53,177,.15);--ck-user-colors--4:#548a2e;--ck-user-colors--4-alpha:rgba(84,138,46,.15);--ck-user-colors--5:#c3185d;--ck-user-colors--5-alpha:rgba(195,24,93,.15);--ck-user-colors--6:#ea4343;--ck-user-colors--6-alpha:rgba(234,67,67,.15);--ck-user-colors--7:#0bc3d0;--ck-user-colors--7-alpha:rgba(11,195,208,.15);--ck-user-dot-size:6px}.ck .ck-user__color--0{color:var(--ck-user-colors--0)}.ck .ck-user__bg-color--0{background-color:var(--ck-user-colors--0)}.ck .ck-user__selection--0{background-color:var(--ck-user-colors--0-alpha)}.ck .ck-user__selection--0.ck-widget{background-color:transparent;border:3px solid var(--ck-user-colors--0)}.ck .ck-user__marker--0,.ck .ck-user__marker--0 .ck-user__marker-dot,.ck .ck-user__marker--0:after{background-color:var(--ck-user-colors--0)}.ck .ck-user__marker--0 .ck-user__marker-line{border:1px solid var(--ck-user-colors--0)}.ck .ck-user__color--1{color:var(--ck-user-colors--1)}.ck .ck-user__bg-color--1{background-color:var(--ck-user-colors--1)}.ck .ck-user__selection--1{background-color:var(--ck-user-colors--1-alpha)}.ck .ck-user__selection--1.ck-widget{background-color:transparent;border:3px solid var(--ck-user-colors--1)}.ck .ck-user__marker--1,.ck .ck-user__marker--1 .ck-user__marker-dot,.ck .ck-user__marker--1:after{background-color:var(--ck-user-colors--1)}.ck .ck-user__marker--1 .ck-user__marker-line{border:1px solid var(--ck-user-colors--1)}.ck .ck-user__color--2{color:var(--ck-user-colors--2)}.ck .ck-user__bg-color--2{background-color:var(--ck-user-colors--2)}.ck .ck-user__selection--2{background-color:var(--ck-user-colors--2-alpha)}.ck .ck-user__selection--2.ck-widget{background-color:transparent;border:3px solid var(--ck-user-colors--2)}.ck .ck-user__marker--2,.ck .ck-user__marker--2 .ck-user__marker-dot,.ck .ck-user__marker--2:after{background-color:var(--ck-user-colors--2)}.ck .ck-user__marker--2 .ck-user__marker-line{border:1px solid var(--ck-user-colors--2)}.ck .ck-user__color--3{color:var(--ck-user-colors--3)}.ck .ck-user__bg-color--3{background-color:var(--ck-user-colors--3)}.ck .ck-user__selection--3{background-color:var(--ck-user-colors--3-alpha)}.ck .ck-user__selection--3.ck-widget{background-color:transparent;border:3px solid var(--ck-user-colors--3)}.ck .ck-user__marker--3,.ck .ck-user__marker--3 .ck-user__marker-dot,.ck .ck-user__marker--3:after{background-color:var(--ck-user-colors--3)}.ck .ck-user__marker--3 .ck-user__marker-line{border:1px solid var(--ck-user-colors--3)}.ck .ck-user__color--4{color:var(--ck-user-colors--4)}.ck .ck-user__bg-color--4{background-color:var(--ck-user-colors--4)}.ck .ck-user__selection--4{background-color:var(--ck-user-colors--4-alpha)}.ck .ck-user__selection--4.ck-widget{background-color:transparent;border:3px solid var(--ck-user-colors--4)}.ck .ck-user__marker--4,.ck .ck-user__marker--4 .ck-user__marker-dot,.ck .ck-user__marker--4:after{background-color:var(--ck-user-colors--4)}.ck .ck-user__marker--4 .ck-user__marker-line{border:1px solid var(--ck-user-colors--4)}.ck .ck-user__color--5{color:var(--ck-user-colors--5)}.ck .ck-user__bg-color--5{background-color:var(--ck-user-colors--5)}.ck .ck-user__selection--5{background-color:var(--ck-user-colors--5-alpha)}.ck .ck-user__selection--5.ck-widget{background-color:transparent;border:3px solid var(--ck-user-colors--5)}.ck .ck-user__marker--5,.ck .ck-user__marker--5 .ck-user__marker-dot,.ck .ck-user__marker--5:after{background-color:var(--ck-user-colors--5)}.ck .ck-user__marker--5 .ck-user__marker-line{border:1px solid var(--ck-user-colors--5)}.ck .ck-user__color--6{color:var(--ck-user-colors--6)}.ck .ck-user__bg-color--6{background-color:var(--ck-user-colors--6)}.ck .ck-user__selection--6{background-color:var(--ck-user-colors--6-alpha)}.ck .ck-user__selection--6.ck-widget{background-color:transparent;border:3px solid var(--ck-user-colors--6)}.ck .ck-user__marker--6,.ck .ck-user__marker--6 .ck-user__marker-dot,.ck .ck-user__marker--6:after{background-color:var(--ck-user-colors--6)}.ck .ck-user__marker--6 .ck-user__marker-line{border:1px solid var(--ck-user-colors--6)}.ck .ck-user__color--7{color:var(--ck-user-colors--7)}.ck .ck-user__bg-color--7{background-color:var(--ck-user-colors--7)}.ck .ck-user__selection--7{background-color:var(--ck-user-colors--7-alpha)}.ck .ck-user__selection--7.ck-widget{background-color:transparent;border:3px solid var(--ck-user-colors--7)}.ck .ck-user__marker--7,.ck .ck-user__marker--7 .ck-user__marker-dot,.ck .ck-user__marker--7:after{background-color:var(--ck-user-colors--7)}.ck .ck-user__marker--7 .ck-user__marker-line{border:1px solid var(--ck-user-colors--7)}",""]);const i=o},7533:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(8433),o=r.n(n)()((function(e){return e[1]}));o.push([e.id,":root{--ck-user-avatar-size:40px;--ck-user-avatar-background:#3670ab;--ck-user-avatar-color:#fff;--ck-user-me-border-color:#fff}.ck.ck-user{align-items:center;background-color:var(--ck-user-avatar-background);border-radius:50%;box-sizing:border-box;display:flex;height:var(--ck-user-avatar-size);justify-content:center;line-height:100%;margin:2px;min-height:var(--ck-user-avatar-size);min-width:var(--ck-user-avatar-size);position:relative;width:var(--ck-user-avatar-size)}.ck.ck-user.ck-user_me{border:2px solid var(--ck-user-me-border-color);outline:2px solid var(--ck-user-avatar-background)}.ck.ck-user__name{color:var(--ck-user-avatar-color);cursor:default;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ck.ck-user__name.ck-user__name--hidden{display:none}.ck.ck-user__img{background-color:var(--ck-user-avatar-background);background-position:50%;background-repeat:no-repeat;background-size:cover;border:none;border-radius:50%;display:none;height:100%;width:100%}.ck.ck-user__img.ck-user__anonymous{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%23FFF' d='M9.8 20H2c0-5.7 5-5.7 6-7l.2-.8c-1.6-.8-2.7-2.7-2.7-5 0-2.8 2-5.2 4.3-5.2S14 4.4 14 7.3c0 2.2-1 4-2.6 5l.2.6c1.2 1.3 6 1.4 6 7H9.8z'/%3E%3C/svg%3E\");display:block}.ck.ck-user__img.ck-user__anonymous+.ck-user__name{display:none}.ck.ck-user__img.ck-user__avatar{background-color:#fff;display:block}.ck.ck-user__img.ck-user__img--hidden{display:none}.ck.ck-user__notification{align-items:center;background:var(--ck-color-base-background);border:2px solid var(--ck-color-base-background);border-radius:50%;box-sizing:content-box;display:flex;height:15px;justify-content:center;overflow:hidden;position:absolute;right:-7px;top:-8px;transform:translateZ(0);width:15px}.ck.ck-user__notification .ck-user__icon{background:var(--ck-color-base-background);color:var(--ck-color-annotation-info);height:19px;max-height:19px;max-width:19px;min-height:19px;min-width:19px;width:19px}",""]);const i=o},7181:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(8433),o=r.n(n)()((function(e){return e[1]}));o.push([e.id,":root{--ck-ai-dropdown-view-width:250px;--ck-ai-dropdown-view-list-max-height:250px}.ck.ck-ai-commands-search{width:var(--ck-ai-dropdown-view-width)}.ck.ck-ai-commands-search>.ck-labeled-field-view{padding:var(--ck-spacing-large)}.ck.ck-ai-commands-search>.ck-labeled-field-view .ck-input{min-width:unset}.ck.ck-ai-commands-search>.ck-search__results{border-top:1px solid var(--ck-color-base-border)}.ck.ck-ai-commands-search>.ck-search__results>.ck-list{max-height:var(--ck-ai-dropdown-view-list-max-height);overflow:auto}",""]);const i=o},676:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(8433),o=r.n(n)()((function(e){return e[1]}));o.push([e.id,":root{--ck-ai-form-view-width:600px;--ck-ai-form-content-height:175px;--ck-ai-form-content-background:#fafafa;--ck-ai-form-history-font-size:.9em;--ck-ai-form-error-background:var(--ck-color-light-red)}.ck .ck-ai-form{max-width:100%;width:var(--ck-ai-form-view-width)}@media screen and (max-width:600px){.ck .ck-ai-form{--ck-ai-form-view-width:100vw}}.ck .ck-ai-form .ck-ai-form-content{padding:var(--ck-spacing-large);width:100%}.ck .ck-ai-form .ck-ai-form-content .ck-input{width:100%}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area-wrapper{border:1px solid var(--ck-color-base-border);border-radius:2px;max-height:var(--ck-ai-form-content-height);overflow-y:auto;width:100%}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area-wrapper:focus{border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),0 0;outline:none}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area{background-color:var(--ck-ai-form-content-background);display:flex}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area.ck-ai-form__content-area--processing{--ck-color-text:var(--ck-color-input-disabled-text);background-color:var(--ck-color-input-disabled-background)}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area .ck-ai-form__content-field{box-sizing:content-box;min-height:calc(var(--ck-line-height-base)*var(--ck-font-size-base));padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);white-space:normal;width:100%}[dir=ltr] .ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area .ck-ai-form__content-field{padding-right:0}[dir=rtl] .ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area .ck-ai-form__content-field{padding-left:0}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area .ck-ai-form__content-field>*{color:inherit;white-space:normal}[dir=ltr] .ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area .ck-spinner-container{margin-right:var(--ck-spacing-medium)}[dir=rtl] .ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area .ck-spinner-container{margin-left:var(--ck-spacing-medium)}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area .ck-ai-form__copy-button-wrapper{display:flex;flex-direction:column-reverse;padding-left:2px}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area .ck-ai-form__copy-button{bottom:1px;min-height:unset;min-width:unset;padding:4px;position:sticky;right:1px}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area .ck-ai-form__copy-button svg{--ck-icon-size:16px}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area .ck-ai-form__copy-button.ck-ai-form__copy-button--copied{color:inherit}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__toolbar{border:none;margin-bottom:calc(var(--ck-spacing-medium)*2);margin-top:var(--ck-spacing-medium);padding:0}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__loader{align-items:center;display:flex}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__loader .ck-spinner{box-sizing:border-box}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete{display:flex;justify-content:space-between}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete>.ck-labeled-field-view{flex-grow:1}[dir=ltr] .ck .ck-ai-form .ck-ai-form-content .ck-autocomplete>.ck.ck-ai-form__submit{margin-left:var(--ck-spacing-medium)}[dir=rtl] .ck .ck-ai-form .ck-ai-form-content .ck-autocomplete>.ck.ck-ai-form__submit{margin-right:var(--ck-spacing-medium)}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete>.ck.ck-ai-form__submit{border-color:var(--ck-ai-form-submit-button-border-color);color:var(--ck-ai-form-submit-button-text-color)}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete>.ck.ck-ai-form__submit.ck-disabled{border-color:var(--ck-ai-form-submit-button-disabled-border-color)}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete>.ck-labeled-field-view .ck-ai-form__toggle-history{font-size:var(--ck-font-size-tiny);position:absolute}[dir=ltr] .ck .ck-ai-form .ck-ai-form-content .ck-autocomplete>.ck-labeled-field-view .ck-ai-form__toggle-history{right:var(--ck-spacing-medium)}[dir=rtl] .ck .ck-ai-form .ck-ai-form-content .ck-autocomplete>.ck-labeled-field-view .ck-ai-form__toggle-history{left:var(--ck-spacing-medium)}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete>.ck-labeled-field-view .ck-ai-form__toggle-history{bottom:var(--ck-spacing-small);min-height:unset;min-width:unset;padding:4px;top:var(--ck-spacing-small)}[dir=ltr] .ck .ck-ai-form .ck-ai-form-content .ck-autocomplete .ck-textarea{padding-right:30px}[dir=rtl] .ck .ck-ai-form .ck-ai-form-content .ck-autocomplete .ck-textarea{padding-left:30px}@media screen and (max-width:600px){.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete .ck-textarea{--ck-input-width:auto}}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete .ck-search__results .ck-list .ck-list__group{grid-column-gap:0;grid-row-gap:0;display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete .ck-search__results .ck-list .ck-list__group>span{grid-area:1/1/2/2}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete .ck-search__results .ck-list .ck-list__group>.ck-button{background:none;font-size:var(--ck-ai-form-history-font-size);grid-area:1/2/2/3;justify-self:start;margin:var(--ck-spacing-medium) 0 0;min-height:auto;padding:0}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete .ck-search__results .ck-list .ck-list__group>.ck-button .ck-button__label{line-height:inherit}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete .ck-search__results .ck-list .ck-list__group>.ck-button .ck-button__label:hover{text-decoration:underline}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete .ck-search__results .ck-list .ck-list__group>.ck-list{grid-area:2/1/3/3}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete .ck-search__results .ck-list .ck-list__group>.ck-list .ck-list__item .ck-button .ck-button__label{font-size:var(--ck-ai-form-history-font-size);line-height:var(--ck-line-height-base);max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ck .ck-ai-form .ck-ai-form__error{align-items:center;background-color:var(--ck-ai-form-error-background);border-radius:2px;color:var(--ck-color-base-text);display:flex;justify-content:center;margin-bottom:var(--ck-spacing-medium);padding:var(--ck-spacing-medium)}",""]);const i=o},3379:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(8433),o=r.n(n)()((function(e){return e[1]}));o.push([e.id,":root{--ck-ai-form-submit-button-text-color:var(--ck-color-text);--ck-ai-form-submit-button-border-color:transparent;--ck-ai-form-submit-button-disabled-border-color:transparent;--ck-ai-toolbar-button-hover-color:var(--ck-color-text);--ck-color-ai-selection:rgba(31,176,255,.3)}.ck-ai-assistant-ui_theme{--ck-color-button-default-hover-background:#f3ecff;--ck-color-button-default-active-background:#f3ecff;--ck-color-button-on-background:#f3ecff;--ck-color-button-on-hover-background:#e8dff7;--ck-color-button-on-active-background:#f3ecff;--ck-color-button-on-disabled-background:#f3ecff;--ck-color-button-on-color:#743ccd;--ck-color-button-action-background:#743ccd;--ck-color-button-action-hover-background:#6c34c9;--ck-color-button-action-active-background:#6c34c9;--ck-color-button-action-disabled-background:#ba9de6;--ck-color-list-button-hover-background:#f3ecff;--ck-ai-form-content-background:#f9f9f9;--ck-ai-form-submit-button-text-color:var(--ck-color-button-on-color);--ck-ai-form-submit-button-border-color:var(--ck-color-button-action-background);--ck-ai-form-submit-button-disabled-border-color:var(--ck-color-button-action-disabled-background);--ck-ai-toolbar-button-hover-color:var(--ck-color-button-on-color);--ck-color-ai-selection:#e2d6f5}.ck-ai-assistant-button:hover,.ck-ai-commands-dropdown>.ck-button:hover{color:var(--ck-ai-toolbar-button-hover-color)}.ck span.ck-fake-ai-selection{background:var(--ck-color-ai-selection)}.ck .ck-widget.ck-fake-ai-selection{outline-color:var(--ck-color-ai-selection)}.ck span.ck-fake-ai-selection-candidate{background:var(--ck-color-ai-selection)}.ck .ck-fake-ai-selection_collapsed{border-right:1px solid var(--ck-color-base-text);height:100%;margin-right:-1px;outline:1px solid hsla(0,0%,100%,.5)}.ck.ck-content.ck-ai-form__content-field h2{font-size:1.3em}.ck.ck-content.ck-ai-form__content-field h3{font-size:1.2em}.ck.ck-content.ck-ai-form__content-field h4,.ck.ck-content.ck-ai-form__content-field h5,.ck.ck-content.ck-ai-form__content-field h6{font-size:1.1em}.ck.ck-content.ck-ai-form__content-field h2,.ck.ck-content.ck-ai-form__content-field h3,.ck.ck-content.ck-ai-form__content-field h4,.ck.ck-content.ck-ai-form__content-field h5,.ck.ck-content.ck-ai-form__content-field h6,.ck.ck-content.ck-ai-form__content-field ol,.ck.ck-content.ck-ai-form__content-field p,.ck.ck-content.ck-ai-form__content-field ul{line-height:1.7em;margin-block-end:.5em;margin-block-start:.5em}.ck.ck-content.ck-ai-form__content-field>:first-child{margin-top:0}.ck.ck-content.ck-ai-form__content-field>:last-child{margin-bottom:0}",""]);const i=o},8433:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var r=e(t);return t[2]?"@media ".concat(t[2]," {").concat(r,"}"):r})).join("")},t.i=function(e,r,n){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(n)for(var i=0;i<this.length;i++){var s=this[i][0];null!=s&&(o[s]=!0)}for(var a=0;a<e.length;a++){var c=[].concat(e[a]);n&&o[c[0]]||(r&&(c[2]?c[2]="".concat(r," and ").concat(c[2]):c[2]=r),t.push(c))}},t}},4673:(e,t,r)=>{"use strict";var n,o=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},i=function(){var e={};return function(t){if(void 0===e[t]){var r=document.querySelector(t);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}e[t]=r}return e[t]}}(),s=[];function a(e){for(var t=-1,r=0;r<s.length;r++)if(s[r].identifier===e){t=r;break}return t}function c(e,t){for(var r={},n=[],o=0;o<e.length;o++){var i=e[o],c=t.base?i[0]+t.base:i[0],u=r[c]||0,l="".concat(c," ").concat(u);r[c]=u+1;var d=a(l),f={css:i[1],media:i[2],sourceMap:i[3]};-1!==d?(s[d].references++,s[d].updater(f)):s.push({identifier:l,updater:m(f,t),references:1}),n.push(l)}return n}function u(e){var t=document.createElement("style"),n=e.attributes||{};if(void 0===n.nonce){var o=r.nc;o&&(n.nonce=o)}if(Object.keys(n).forEach((function(e){t.setAttribute(e,n[e])})),"function"==typeof e.insert)e.insert(t);else{var s=i(e.insert||"head");if(!s)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");s.appendChild(t)}return t}var l,d=(l=[],function(e,t){return l[e]=t,l.filter(Boolean).join("\n")});function f(e,t,r,n){var o=r?"":n.media?"@media ".concat(n.media," {").concat(n.css,"}"):n.css;if(e.styleSheet)e.styleSheet.cssText=d(t,o);else{var i=document.createTextNode(o),s=e.childNodes;s[t]&&e.removeChild(s[t]),s.length?e.insertBefore(i,s[t]):e.appendChild(i)}}function p(e,t,r){var n=r.css,o=r.media,i=r.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var h=null,g=0;function m(e,t){var r,n,o;if(t.singleton){var i=g++;r=h||(h=u(t)),n=f.bind(null,r,i,!1),o=f.bind(null,r,i,!0)}else r=u(t),n=p.bind(null,r,t),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(r)};return n(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;n(e=t)}else o()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=o());var r=c(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var n=0;n<r.length;n++){var o=a(r[n]);s[o].references--}for(var i=c(e,t),u=0;u<r.length;u++){var l=a(r[u]);0===s[l].references&&(s[l].updater(),s.splice(l,1))}r=i}}}},331:(e,t,r)=>{e.exports=r(9237)("./src/clipboard.js")},1782:(e,t,r)=>{e.exports=r(9237)("./src/core.js")},1783:(e,t,r)=>{e.exports=r(9237)("./src/engine.js")},8311:(e,t,r)=>{e.exports=r(9237)("./src/ui.js")},4584:(e,t,r)=>{e.exports=r(9237)("./src/utils.js")},9237:e=>{"use strict";e.exports=CKEditor5.dll}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={id:n,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nc=void 0;var n={};(()=>{"use strict";r.r(n),r.d(n,{AIAdapter:()=>F,AIAssistant:()=>jt,AIRequestError:()=>D,AITextAdapter:()=>Dt,AWSTextAdapter:()=>Oa,OpenAITextAdapter:()=>zt});var e=r(4584),t=r(1782),o=r(8311);t.ContextPlugin;var i=r(4673),s=r.n(i),a=r(2332),c={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};s()(a.A,c);a.A.locals;t.ContextPlugin;var u=r(7533),l={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};s()(u.A,l);u.A.locals;o.View;o.View;var d=r(1961),f={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};s()(d.A,f);d.A.locals;var p=r(5163),h={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};s()(p.A,h);p.A.locals;var g=r(4258),m={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};s()(g.A,m);g.A.locals;var k=r(4967),b={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};s()(k.A,b);k.A.locals;var y=r(906),v={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};s()(y.A,v);y.A.locals;var w=r(2751),_={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};s()(w.A,_);w.A.locals;var S=r(3901),x={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};s()(S.A,x);S.A.locals;var A=r(5507),E={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};s()(A.A,E);A.A.locals;const I={paintRoller:'<svg viewBox="0 0 20 20" width="20" height="20" xmlns="http://www.w3.org/2000/svg"><path d="M3 3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V3Z"/><path d="M16 3.25a1.5 1.5 0 0 1 1.5 1.5v1.7a2.25 2.25 0 0 1-1.932 2.226l-4.424.632a.75.75 0 0 0-.644.743V11a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1H9a1 1 0 0 1-1-1v-5a1 1 0 0 1 1-1v-.95a2.25 2.25 0 0 1 1.932-2.226l4.424-.632A.75.75 0 0 0 16 6.449V3.25Z"/></svg>\n',robotPencil:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M9.61 2.66a1.406 1.406 0 1 0-1.407 0v.891H3.28a2.11 2.11 0 0 0-2.11 2.11v10.312a2.11 2.11 0 0 0 2.11 2.109h5.684l-.054-1.157.18-.25H3.28a.703.703 0 0 1-.703-.702V5.66c0-.389.315-.704.703-.704h11.25c.388 0 .703.315.703.704v2.484l.358-.497a2.492 2.492 0 0 1 1.048-.84V5.66a2.11 2.11 0 0 0-2.11-2.11H9.61v-.89Z"/><path d="M5.625 10.817c.518 0 .937-.63.937-1.407 0-.776-.42-1.406-.937-1.406-.518 0-.938.63-.938 1.406 0 .777.42 1.407.938 1.407Z"/><path d="M13.125 9.41c0 .777-.42 1.407-.938 1.407s-.937-.63-.937-1.407c0-.776.42-1.406.937-1.406.518 0 .938.63.938 1.406Z"/><path d="M.937 8.004A.937.937 0 0 0 0 8.942v1.875c0 .517.42.937.937.937v-3.75Z"/><path d="M6.128 12.51a.782.782 0 0 1 1.085.216c.272.408.907.707 1.693.707s1.421-.3 1.693-.707a.782.782 0 0 1 1.302.868c-.666 1-1.906 1.403-2.995 1.403-1.089 0-2.329-.404-2.995-1.403a.782.782 0 0 1 .217-1.085Z"/><path d="m16.987 8.91-.622.864 2.879 2.074.622-.864a.71.71 0 0 0-.161-.99l-1.728-1.245a.71.71 0 0 0-.99.161Z"/><path d="M11.635 19.951a.355.355 0 0 1-.449-.31l-.214-2.38 4.978-6.911 2.88 2.074-4.978 6.91-2.217.617Z"/></svg>',tableOfContents:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3 19a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v8.022a6.47 6.47 0 0 0-1.5-.709V2a.5.5 0 0 0-.5-.5H3a.5.5 0 0 0-.5.5v15a.5.5 0 0 0 .5.5h6.313c.173.534.412 1.037.709 1.5H3Z"/><path d="M9.174 14a6.489 6.489 0 0 0-.155 1H6v-1h3.174Z"/><path d="M10.022 12c-.202.316-.378.65-.524 1H4v-1h6.022Z"/><path d="M12.034 10c-.448.283-.86.62-1.224 1H6v-1h6.034Z"/><path d="M12 4v1H4V4h8Z"/><path d="M14 7V6H6v1h8Z"/><path d="M15 9V8H7v1h8Z"/><path clip-rule="evenodd" d="M20 15.5a4.5 4.5 0 1 1-9 0 4.5 4.5 0 0 1 9 0ZM15.5 13a.5.5 0 0 0-.5.5V15h-1.5a.5.5 0 0 0 0 1H15v1.5a.5.5 0 0 0 1 0V16h1.5a.5.5 0 0 0 0-1H16v-1.5a.5.5 0 0 0-.5-.5Z"/></svg>\n',template:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path clip-rule="evenodd" d="M8 0H3a2 2 0 0 0-2 2v15a2 2 0 0 0 2 2h5a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2ZM2.5 2a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 .5.5v15a.5.5 0 0 1-.5.5H3a.5.5 0 0 1-.5-.5V2Z"/><path clip-rule="evenodd" d="M13 0h5a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-5a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2Zm0 1.5a.5.5 0 0 0-.5.5v5a.5.5 0 0 0 .5.5h5a.5.5 0 0 0 .5-.5V2a.5.5 0 0 0-.5-.5h-5Z"/><path clip-rule="evenodd" d="M13 10h5a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-5a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2Zm0 1.5a.5.5 0 0 0-.5.5v5a.5.5 0 0 0 .5.5h5a.5.5 0 0 0 .5-.5v-5a.5.5 0 0 0-.5-.5h-5Z"/></svg>',caseChange:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M5.789 3 0 17h1.664l1.664-4.027h6.797l.227.548c.046-.172.112-.352.209-.545.217-.436.556-.609.898-.798L7.664 3H5.79Zm.938 1.758 2.777 6.715H3.949l2.778-6.715Z"/><path d="M15.956 7.5c-1.584-.02-3.226.824-3.843 2.882l1.495.106c.904-2.082 4.594-2.13 4.375.534-3.245 1.024-4.838.117-6.082 2.62-.208.418-.17 1.57.54 2.397.71.826 2.014 1.149 3.409.85 1.395-.299 2.24-1.386 2.24-1.386L18.205 17h1.493l-.059-1.72-.056-5.274C19.51 8.612 17.75 7.524 15.956 7.5Zm2.027 4.696s.641 2.453-1.528 3.27c-3.376 1.269-4.188-2.141-1.775-2.638 1.704-.352 1.873-.25 3.303-.632Z"/></svg>'};var O=r(331);const P=C;function R(){const e=["markerToElement","removeMarker","setSelection","length","37610SbCwic","conversion","document","isContent","get","createPositionAfter","insertContentBelow","ai-ui","ai-ui-candidate","AIAssistantEditing","for","addMarker","_setUniqueMarkerNamesInFragment","end","config","ck-fake-ai-selection","showFakeVisualSelection","ck-fake-ai-selection_collapsed","12329801PWExNi","editor","selection","toModel","6rCDehA","from","pluginName","getSelectedBlocks","span","405633JcKAZp","getFirstRange","model","32tbxZKf","12idCOds","264971sJgMKh","464205XCzZrL","markers","isAtEnd","toView","1678320cMfBvu","start","requires","insertContent","ck-fake-ai-selection-candidate","plugins","data","436727LIfdgT","9PTOKAs","pop","markerToHighlight","ai.useTheme","push","ck-ai-assistant-ui_theme","getLastMatchingPosition","hideFakeVisualSelection","processor","editingDowncast","createRange","getLastPosition","updateMarker","canEditAt","createSelection","getRange","10Fjhwoy","init","has","schema","change"];return(R=function(){return e})()}!function(e,t){const r=C,n=e();for(;;)try{if(382717===parseInt(r(241))/1+-parseInt(r(258))/2*(parseInt(r(224))/3)+-parseInt(r(227))/4*(parseInt(r(230))/5)+parseInt(r(219))/6*(parseInt(r(229))/7)+parseInt(r(234))/8+parseInt(r(242))/9*(-parseInt(r(197))/10)+parseInt(r(215))/11*(parseInt(r(228))/12))break;n.push(n.shift())}catch(e){n.push(n.shift())}}(R);const T=P(204),M=P(205);function C(e,t){const r=R();return(C=function(e,t){return r[e-=191]})(e,t)}class j extends t.Plugin{static get[P(221)](){return P(206)}static get[P(236)](){return[O.ClipboardMarkersUtils]}[P(259)](){const e=P,{editor:t}=this,r=[e(212)];t[e(211)][e(201)](e(245))&&r[e(246)](e(247)),t[e(198)][e(207)](e(251))[e(244)]({model:T,view:{classes:r}}),t[e(198)][e(207)](e(251))[e(193)]({model:T,view:{name:e(223),classes:[e(212),e(214)]}}),t[e(198)][e(207)](e(251))[e(244)]({model:M,view:{classes:[e(238)]}}),t[e(198)][e(207)](e(251))[e(193)]({model:M,view:{name:e(223),classes:[e(238),e(214)]}})}[P(213)](e){const t=P,r=this[t(216)][t(226)],n=e?M:T;r[t(192)]((e=>{const o=t,i=r[o(199)][o(217)][o(225)]();if(r[o(231)][o(260)](n))e[o(254)](n,{range:i});else if(i[o(235)][o(232)]){const t=i[o(235)][o(248)]((({item:e})=>!r[o(191)][o(200)](e)),{boundaries:i});e[o(208)](n,{usingOperation:!1,affectsData:!1,range:e[o(252)](t,i[o(210)])})}else e[o(208)](n,{usingOperation:!1,affectsData:!1,range:i})}))}[P(249)](e){const t=P,r=this[t(216)][t(226)],n=e?M:T;r[t(231)][t(260)](n)&&r[t(192)]((e=>{e[t(194)](n)}))}[P(237)](e,t){const r=P,n=this[r(216)][r(239)][r(201)](O.ClipboardMarkersUtils),o=t||this[r(216)][r(226)][r(231)][r(201)](T)[r(257)]();if(!this[r(216)][r(226)][r(255)](o))return;const i=this[r(216)][r(240)][r(250)][r(233)](e),s=this[r(216)][r(240)][r(218)](i);n[r(209)](s),this[r(216)][r(226)][r(192)]((e=>{const t=r;this[t(249)]();const n=this[t(216)][t(226)][t(237)](s,o);n&&e[t(195)](n)}))}[P(203)](e){const t=P,{model:r}=this[t(216)],n=Array[t(220)](r[t(256)](this[t(216)][t(226)][t(231)][t(201)](T)[t(257)]())[t(222)]()),o=n[t(196)]?r[t(202)](n[t(243)]()):r[t(199)][t(217)][t(253)]();this[t(237)](e,o)}}var N=L;function L(e,t){var r=B();return(L=function(e,t){return r[e-=168]})(e,t)}function B(){var e=["1550006mdqpvv","13110lnhHDC","AIRequestError","afterInit","1581774EiZBqa","aiadapter-text-adapter-not-set","6848933jYxnju","21644703zUxGdU","textAdapter","pluginName","3184512WhZFhz","4153852drSjgQ","2015EgXUYS","AIAdapter","1QkvxHR","name"];return(B=function(){return e})()}!function(e,t){for(var r=L,n=e();;)try{if(622831===parseInt(r(181))/1*(-parseInt(r(183))/2)+parseInt(r(171))/3+-parseInt(r(178))/4+-parseInt(r(179))/5*(-parseInt(r(168))/6)+-parseInt(r(173))/7+-parseInt(r(177))/8+parseInt(r(174))/9)break;n.push(n.shift())}catch(e){n.push(n.shift())}}(B);class F extends t.Plugin{static get[N(176)](){return N(180)}[N(170)](){var t=N;if(!this[t(175)])throw new e.CKEditorError(t(172),null)}}class D extends Error{constructor(e){var t=N;super(e),this[t(182)]=t(169)}}function U(e,t,r){const n=e.t;switch(t){case"Edit or review":return n("Edit or review");case"Improve writing":return n("Improve writing");case"Make shorter":return n("Make shorter");case"Make longer":return n("Make longer");case"Simplify language":return n("Simplify language");case"Generate from selection":return n("Generate from selection");case"Summarize":return n("Summarize");case"Continue":return n("Continue");case"Change tone":return n("Change tone");case"Professional":return n("Professional");case"Casual":return n("Casual");case"Direct":return n("Direct");case"Confident":return n("Confident");case"Friendly":return n("Friendly");case"Change style":return n("Change style");case"Business":return n("Business");case"Legal":return n("Legal");case"Journalism":return n("Journalism");case"Poetic":return n("Poetic");case"Translate":return n("Translate");case"Translate to %0":return n("Translate to %0",r);case"English":return n("English");case"Spanish":return n("Spanish");case"German":return n("German");case"Portuguese":return n("Portuguese");case"French":return n("French");case"Simplified Chinese":return n("Simplified Chinese");case"Hindi":return n("Hindi");case"Arabic":return n("Arabic");case"AI Assistant":return n("AI Assistant");case"AI Commands":return n("AI Commands");case"Ask AI to edit or generate":return n("Ask AI to edit or generate");case"Ask AI to improve generated text":return n("Ask AI to improve generated text");case"Copy":return n("Copy");case"Submit":return n("Submit");case"Insert below":return n("Insert below");case"Try again":return n("Try again");case"Stop":return n("Stop");case"AI is writing...":return n("AI is writing...");case"History":return n("History");case"Empty history":return n("Empty history");case"Ask AI and your prompts will be listed here for you to use later.":return n("Ask AI and your prompts will be listed here for you to use later.");case"Prompt history":return n("Prompt history");case"Search AI command":return n("Search AI command");case"No commands found":return n("No commands found");case"No commands available":return n("No commands available");case"Clear":return n("Clear");case"AI_REPLACE_CONTENT":return n({id:"AI_REPLACE_CONTENT",string:"Replace"});case"AI_INSERT_CONTENT":return n({id:"AI_INSERT_CONTENT",string:"Insert"});case"AI_ERROR_GET_HEADERS":return n({id:"AI_ERROR_GET_HEADERS",string:"Preparing request headers failed"});case"AI_ERROR_GET_PARAMETERS":return n({id:"AI_ERROR_GET_PARAMETERS",string:"Preparing request parameters failed"});case"AI_ERROR_UNSUPPORTED_MODEL":return n({id:"AI_ERROR_UNSUPPORTED_MODEL",string:'The requested AI model ("%0") is not supported'},r);case"AI_ERROR_CONTEXT_LENGTH":return n({id:"AI_ERROR_CONTEXT_LENGTH",string:"Selected content is too long"});case"AI_ERROR_MODERATION":return n({id:"AI_ERROR_MODERATION",string:"Requested query does not pass moderation rules"});case"AI_ERROR_FAILED":return n({id:"AI_ERROR_FAILED",string:"Failed to communicate with the AI service"});default:return t}}const $=z;!function(e,t){const r=z,n=e();for(;;)try{if(618232===-parseInt(r(460))/1+-parseInt(r(438))/2*(parseInt(r(464))/3)+-parseInt(r(443))/4*(-parseInt(r(459))/5)+-parseInt(r(463))/6*(-parseInt(r(436))/7)+parseInt(r(442))/8*(-parseInt(r(441))/9)+parseInt(r(423))/10*(-parseInt(r(426))/11)+-parseInt(r(450))/12*(-parseInt(r(451))/13))break;n.push(n.shift())}catch(e){n.push(n.shift())}}(V);class H extends t.Command{constructor(e,t){const r=z;super(e),this[r(418)]=t?t[r(458)](((e,t)=>e[r(456)](t[r(427)])),new Array):[],this[r(430)](r(445),[]),this.on(r(447),((e,t,n)=>{const o=r;this[o(425)]&&(this[o(445)]=q(this[o(418)],n))})),this[r(430)](r(446),!1),this.on(r(440),((e,t,n)=>{const o=r;this[o(445)]=n?q(this[o(418)],this[o(446)]):[]}))}[$(431)](){const e=$,t=this[e(424)][e(455)];this[e(446)]=function(t){const r=e,n=t[r(457)][r(452)];return n[r(439)]?0!==[...n[r(462)]()][r(432)]&&![...n[r(462)]()][0][r(420)]:!!t[r(419)](n[r(465)]())}(t);const r=t[e(457)][e(452)],n=this[e(424)][e(434)][e(433)](e(453));for(const t of r[e(454)]())for(const r of t[e(461)]())if(r.is(e(437))&&n[e(435)](r[e(428)]))return void(this[e(425)]=!1);this[e(425)]=!0}[$(466)](e="",t="",r=$(444)){const n=$;this[n(424)][n(449)][n(433)](It)[n(421)](e,t,r)}}function z(e,t){const r=V();return(z=function(e,t){return r[e-=418]})(e,t)}function V(){const e=["2MgKQhw","isCollapsed","change:isEnabled","459GPqNBv","191304NLjtFc","564628KVAnAB","custom","enabledCommandsIds","_hasContext","change:_hasContext","add","plugins","1836hADbhx","164593VPpmvv","selection","ai.aiAssistant.disabledElements","getRanges","model","concat","document","reduce","20QEswkK","1049053WGlqzc","getItems","getSelectedBlocks","6AErNHB","163731NXmumu","getFirstRange","execute","_commandDefinitions","hasContent","isEmpty","showUI","requiresContent","5276580bVWfBB","editor","isEnabled","11aLSMlY","commands","name","from","set","refresh","length","get","config","includes","6771254ssHkGD","element"];return(V=function(){return e})()}function q(e,t){const r=$,n=new Set;for(const o of e)(t||!1===o[r(422)])&&n[r(448)](o.id);return Array[r(429)](n)}var G=r(1783);const W=Z;function Z(e,t){const r=K();return(Z=function(e,t){return r[e-=214]})(e,t)}function K(){const e=["29745kUAbQd","length","508sgDcvn","finishProcessing","once","createElement","toView","stopProcessing","_handleQuery","mainAction","reverse","from","initialContext","previousActionId","abort","14076600VkLBkx","editor","nodeType","isProcessing","innerHTML","5630616RLyXwd","prompt","stringify","remove","editing","exec","body","substring","makeRequest","4250mRtSts","243150JQvHnf","7rxMMqA","listenTo","serializeToString","value","70185jQJzNm","_parseAndNormalizeContent","rename","childNodes","element","custom","message","154TmXjZK","parseFromString","div","data","domConverter","4193988VZOAbA","document","push","finally","previousQuery","view","_sanitizeHTML","previousContext","submitPrompt","destroy","tryAgainEvent","_normalizeResponseHeadings","render","then","textAdapter","set:currentContext","_sanitizationContainer","isRendered","startProcessing","setContentOf","toModel","```","47ZzIKYZ","_stripMarkdownSyntax","currentResponse","trim","catch","_xmlSerializer","handleError","text/html","currentContext","70398uhALoD","_domParser","updateView","```html","match","set","processor","endsWith","stopListening","ELEMENT_NODE","previousLabel","name","reset","startsWith"];return(K=function(){return e})()}!function(e,t){const r=Z,n=e();for(;;)try{if(953498===parseInt(r(236))/1*(-parseInt(r(245))/2)+parseInt(r(289))/3+parseInt(r(261))/4*(-parseInt(r(294))/5)+-parseInt(r(279))/6*(parseInt(r(290))/7)+parseInt(r(274))/8+parseInt(r(259))/9*(-parseInt(r(288))/10)+-parseInt(r(301))/11*(-parseInt(r(214))/12))break;n.push(n.shift())}catch(e){n.push(n.shift())}}(K);const Y=new RegExp(/^(.*?)<[a-zA-Z][a-zA-Z0-9_\-.]*[ >]/,"is");class Q extends((0,e.ObservableMixin)()){constructor(e,t,r){const n=Z;super(),this[n(275)]=e,this[n(228)]=t,this[n(230)]=document[n(264)](n(303)),this[n(246)]=new DOMParser,this[n(241)]=new XMLSerializer,this[n(219)]=r,this[n(250)]({initialContext:"",currentContext:"",currentResponse:"",previousContext:void 0,previousQuery:void 0,previousLabel:void 0,isProcessing:!1}),this.on(n(229),((e,t,r)=>{const o=n;this[o(219)][o(293)]=this[o(220)](r)})),this[n(291)](this[n(219)],n(222),((e,t)=>{const r=n,o=this[r(244)]||this[r(271)];this[r(267)](t,o,r(299))})),this[n(291)](this[n(219)],n(224),(()=>{const e=n;this[e(219)][e(280)]=this[e(255)],this[e(267)](this[e(218)],this[e(221)],this[e(272)],this[e(255)])})),this[n(291)](this[n(219)],n(266),(()=>{this[n(266)]()}))}[W(223)](){this[W(253)]()}async[W(247)]({actionId:e,query:t,htmlContent:r,label:n,mainActionLabel:o}){const i=W;this[i(219)][i(280)]=n,this[i(219)][i(268)]=o,this[i(271)]=r,t&&(this[i(219)][i(231)]?this[i(267)](t,r,e,n):this[i(219)][i(263)](i(226),(()=>{this[i(267)](t,r,e,n)})))}[W(266)](){const e=W;this[e(277)]&&(this[e(277)]=!1,this[e(219)][e(262)](),this[e(228)][e(273)]())}[W(257)](){const e=W;this[e(271)]="",this[e(244)]="",this[e(238)]="",this[e(221)]="",this[e(218)]="",this[e(255)]="",this[e(272)]=void 0,this[e(219)][e(257)](),this[e(266)]()}async[W(267)](e,t,r,n){const o=W;return this[o(277)]=!0,this[o(219)][o(232)](),this[o(221)]=t,this[o(218)]=e,this[o(255)]=n||e,this[o(272)]=r,new Promise((n=>{const i=o;this[i(228)][i(287)]({query:e,context:t,onData:e=>{const t=i;this[t(238)]=e,this[t(244)]=this[t(295)](this[t(238)])},actionId:r})[i(227)]((()=>{const e=i;!this[e(244)]&&this[e(238)]&&(this[e(244)]=this[e(295)](this[e(238)],!0))}))[i(240)]((e=>{const t=i;e instanceof D?this[t(219)][t(242)](e[t(300)]):this[t(219)][t(242)](),n()}))[i(217)]((()=>{this[i(266)](),n()}))}))}[W(295)](e,t=!1){const r=W,n=Y[r(284)](e);e=n?e[r(286)](n[1][r(260)]):e[r(260)]<100&&!t?"":this[r(237)](e);const o=this[r(246)][r(302)](e,r(243));if(n){const e=Array[r(270)](o[r(285)][r(297)]);e[r(269)]();for(const t of e){if(t[r(276)]==Node[r(254)])break;t[r(282)]()}}const i=this[r(275)][r(304)][r(251)][r(265)](this[r(241)][r(292)](o[r(285)]));return this[r(225)](i),this[r(275)][r(304)][r(281)](this[r(275)][r(304)][r(234)](i))}[W(225)](e){const t=W,r=new G.UpcastWriter(this[t(275)][t(283)][t(219)][t(215)]),n=new G.Matcher({name:/^h[1-5]$/}),o=[];let i=!1;for(const r of e)r.is(t(298))&&n[t(249)](r)&&(o[t(216)](r),"h1"==r[t(256)]&&(i=!0));if(i)for(const e of o)r[t(296)]("h"+(parseInt(e[t(256)][1])+1),e)}[W(220)](e){const t=W;return this[t(275)][t(283)][t(219)][t(305)][t(233)](this[t(230)],e),this[t(230)][t(278)]}[W(237)](e){const t=W,r=e[t(239)]();return r[t(258)](t(248))?r[t(252)](t(235))?r[t(286)](7,r[t(260)]-3):r[t(286)](7):e}}const J=te;function X(){const e=["4Snkfcd","set","stopButton","10ovSDNd","bindTemplate","11661914bqsLaU","extendTemplate","4NSOUxO","2446632QTVqfr","label","locale","_createButton","ck-hidden","insertButton","ck-button-action","49761TJcTne","isVisible","5803044DyxwhS","Stop","Insert below","toUpperCase","replace","3462035rbsIyF","replaceButton","3131338VHJenI","mainAction","361330nFLMRK","tryAgainButton","addMany","bind","AI_","insert","Try again","REPLACE","items","616awboNS","_CONTENT","ck-ai-form__toolbar"];return(X=function(){return e})()}!function(e,t){const r=te,n=e();for(;;)try{if(484922===-parseInt(r(273))/1*(-parseInt(r(285))/2)+-parseInt(r(255))/3+parseInt(r(254))/4*(parseInt(r(269))/5)+parseInt(r(264))/6+-parseInt(r(271))/7+-parseInt(r(282))/8*(-parseInt(r(262))/9)+parseInt(r(288))/10*(-parseInt(r(290))/11))break;n.push(n.shift())}catch(e){n.push(n.shift())}}(X);const ee={REPLACE:J(268),INSERT:J(278)};function te(e,t){const r=X();return(te=function(e,t){return r[e-=254]})(e,t)}class re extends o.ToolbarView{constructor(e){const t=J;super(e),this[t(286)](t(263),!1),this[t(286)](t(272),ee[t(280)]),this[t(270)]=this[t(258)]("",t(261)),this[t(270)][t(276)](t(256)).to(this,t(272),(r=>U(e,t(277)+r[t(267)]()+t(283)))),this[t(260)]=this[t(258)](U(e,t(266))),this[t(274)]=this[t(258)](U(e,t(279))),this[t(287)]=this[t(258)](U(e,t(265)));const r=this[t(289)];this[t(291)]({attributes:{class:[t(284),r.if(t(263),t(259),(e=>!e))]}}),this[t(281)][t(275)]([this[t(270)],this[t(260)],this[t(274)],this[t(287)]])}[J(258)](e,t){const r=J,n=new o.ButtonView(this[r(257)]);return n[r(286)]({label:e,class:t||"",isVisible:!0,withText:!0}),n}}const ne='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M5 2.801a.7.7 0 0 0-.7.7v11.5a.8.8 0 0 1-1.6 0v-11.5a2.3 2.3 0 0 1 2.3-2.3h6.5a.8.8 0 0 1 0 1.6H5Zm.7 3.7a2.3 2.3 0 0 1 2.3-2.3h7a2.3 2.3 0 0 1 2.3 2.3v10a2.3 2.3 0 0 1-2.3 2.3H8a2.3 2.3 0 0 1-2.3-2.3v-10Zm2.3-.7a.7.7 0 0 0-.7.7v10a.7.7 0 0 0 .7.7h7a.7.7 0 0 0 .7-.7v-10a.7.7 0 0 0-.7-.7H8Z"/></svg>',oe=ie;function ie(e,t){const r=se();return(ie=function(e,t){return r[e-=102]})(e,t)}function se(){const e=["ck-ai-form__copy-button-wrapper","value","absolute","bindTemplate","createElement","1343232SYbOlG","-9999px","text/plain","change:isProcessing","9159096HgOqwF","getSelection","ck-ai-form__loader","scrollTo","copy","wheel","ck-hidden","listenTo","appendChild","innerHTML","icon","Copy","scrollHeight","AI is writing..."," ck-ai-form__copy-button--copied","appendLoader","removeAllRanges","ck-ai-form__copy-button","ck-content","remove","<span>]</span>","contentFieldView","element","body","execCommand","execute","bind","check","div","lastElementChild","setTemplate","write","set","1138724lMYpKf","render","loaderView","ClipboardItem","27970CWjIyz","ck-ai-form__content-field","ck-reset_all-excluded","textContent","class","focus","115143VVObVB","48yUTqRU","firstElementChild","addRange","78ntPTmN","smooth",".ck-ai-form__loader","<span>[</span>","ck-ai-form__content-area-wrapper","style","left","createRange","_createLoader","locale","ck-ai-form__content-area--processing","14449240CiJQRv","_createCopyButton","position","isEnabled","39165mzmWFO","mousedown","_copyHTMLToClipboard","ck-ai-form__content-area","9bvaCYb","copyButtonView","setEndBefore","querySelector","setStartAfter","clipboard","text/html","setContent","isProcessing","change:value","isVisible"];return(se=function(){return e})()}!function(e,t){const r=ie,n=e();for(;;)try{if(880953===-parseInt(r(167))/1+-parseInt(r(130))/2+-parseInt(r(177))/3+parseInt(r(178))/4*(parseInt(r(171))/5)+parseInt(r(181))/6*(parseInt(r(110))/7)+parseInt(r(134))/8*(parseInt(r(114))/9)+parseInt(r(106))/10)break;n.push(n.shift())}catch(e){n.push(n.shift())}}(se);class ae extends o.View{constructor(e,t=""){const r=ie;super(e),this[r(166)]({value:null,isVisible:!1,isProcessing:!1});const n=this[r(128)];this[r(155)]=new ce(e,t),this[r(115)]=this[r(107)](),this[r(164)]({tag:r(162),attributes:{class:["ck",r(185),n.if(r(124),r(140),(e=>!e))],tabindex:"-1"},children:[{tag:r(162),attributes:{class:["ck",r(113),n.if(r(122),r(105))]},children:[this[r(155)],{tag:r(162),attributes:{class:["ck",r(125)]},children:[this[r(115)]]}]}]})}[oe(168)](){const e=oe;super[e(168)](),this[e(126)]&&this[e(155)][e(121)](this[e(126)]);let t=!1;this.on(e(123),((r,n,o)=>{const i=e,s=!this[i(155)][i(156)][i(117)](i(183));this[i(155)][i(121)](o),this[i(122)]&&s&&!t&&this[i(156)][i(137)]({top:this[i(156)][i(146)],behavior:i(182)})})),this.on(e(133),((r,n,o)=>{const i=e;t=!1,o?(this[i(126)]=null,this[i(155)][i(149)]()):this[i(126)]||this[i(155)][i(121)]("")})),this[e(141)](this[e(156)],e(139),(()=>{t=!0})),this[e(141)](this[e(156)],e(111),(()=>{t=!0}))}[oe(176)](){const e=oe;this[e(156)][e(176)]()}[oe(107)](){const e=oe,r=this[e(104)],n=new o.ButtonView(this[e(104)]),i=e(151);return n[e(166)]({label:U(r,e(145)),icon:ne,class:i,tooltip:!0}),n[e(160)](e(124)).to(this,e(126),(e=>!!e)),n[e(160)](e(109)).to(this,e(122),(e=>!e)),n.on(e(159),(()=>{const r=e;this[r(112)](this[r(155)][r(156)]),n[r(144)]=t.icons[r(161)],n[r(175)]=i+r(148),this[r(176)](),setTimeout((()=>{const e=r;n[e(144)]=ne,n[e(175)]=i}),1e3)})),n}[oe(112)](t){const r=oe,{window:n,document:o}=e.global;if(n[r(170)]){const{Blob:e,ClipboardItem:o}=n,i=[new o({"text/html":new e([t[r(143)]],{type:r(120)}),"text/plain":new e([t[r(174)]||""],{type:r(132)})})];navigator[r(119)][r(165)](i)}else{const e=o[r(129)](r(162));e[r(186)][r(108)]=r(127),e[r(186)][r(187)]=r(131),e[r(143)]=r(184)+t[r(143)]+r(154),o[r(157)][r(142)](e);const i=o[r(102)]();i[r(118)](e[r(179)]),i[r(116)](e[r(163)]);const s=n[r(135)]();s[r(150)](),s[r(180)](i),o[r(158)](r(138)),e[r(153)]()}}}class ce extends o.View{constructor(e,t=""){const r=oe;super(e),this[r(169)]=this[r(103)](),this[r(164)]({tag:r(162),attributes:{class:["ck",r(152),t,r(173),r(172)]}})}[oe(121)](e){const t=oe;this[t(156)][t(143)]=e}[oe(149)](){const e=oe;this[e(156)][e(142)](this[e(169)][e(156)])}[oe(103)](){const e=oe,t=new o.View,r=this[e(104)],n=new o.SpinnerView;return n[e(124)]=!0,t[e(164)]({tag:e(162),attributes:{class:["ck",e(136)]},children:[n,{text:U(r,e(147))}]}),t[e(168)](),t}}function ue(){const e=["647040zEQZcF","ck-ai-form__error","2995KMEjCZ","1890801ULamKk","1744aMzdeB","content","bindTemplate","336158bVAVDB","text","1584240TsVRUQ","setTemplate","3869831PrZzmv","2QagvRd","1142070sOaTRQ","8ULweMc","div","set"];return(ue=function(){return e})()}function le(e,t){const r=ue();return(le=function(e,t){return r[e-=259]})(e,t)}!function(e,t){const r=le,n=e();for(;;)try{if(339349===parseInt(r(266))/1*(-parseInt(r(261))/2)+parseInt(r(271))/3+-parseInt(r(275))/4*(parseInt(r(273))/5)+parseInt(r(263))/6+parseInt(r(265))/7*(parseInt(r(268))/8)+-parseInt(r(274))/9+parseInt(r(267))/10)break;n.push(n.shift())}catch(e){n.push(n.shift())}}(ue);class de extends o.View{constructor(e,t=""){const r=le;super(e);const n=new o.IconView,i=this[r(260)];this[r(270)](r(262),t),n[r(259)]='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path clip-rule="evenodd" d="M9.9 4.385a1.2 1.2 0 0 0-.44.44h.002l-5.284 9.15a1.2 1.2 0 0 0 1.04 1.8h10.564a1.2 1.2 0 0 0 1.04-1.8l-5.282-9.15a1.2 1.2 0 0 0-1.64-.44Zm.05 8.363a.301.301 0 0 1 .115-.023h.9a.301.301 0 0 1 .3.3v.9a.3.3 0 0 1-.3.3h-.9a.3.3 0 0 1-.3-.3v-.9a.3.3 0 0 1 .185-.277Zm-.185-4.723a.3.3 0 0 1 .3-.3h.9a.3.3 0 0 1 .3.3v3.4a.3.3 0 0 1-.3.3h-.9a.301.301 0 0 1-.3-.3v-3.4Z"/></svg>\n',this[r(264)]({tag:r(269),attributes:{class:["ck",r(272)]},children:[n,{text:i.to(r(262))}]})}}const fe=pe;function pe(e,t){const r=ge();return(pe=function(e,t){return r[e-=421]})(e,t)}!function(e,t){const r=pe,n=e();for(;;)try{if(236135===-parseInt(r(468))/1*(-parseInt(r(433))/2)+-parseInt(r(440))/3+parseInt(r(459))/4*(-parseInt(r(441))/5)+-parseInt(r(453))/6+parseInt(r(466))/7*(-parseInt(r(457))/8)+parseInt(r(455))/9*(-parseInt(r(464))/10)+parseInt(r(435))/11)break;n.push(n.shift())}catch(e){n.push(n.shift())}}(ge);class he extends o.AutocompleteView{constructor(e,t){const r=pe;super(e,t),this[r(456)][r(428)][r(438)]=1,this[r(456)][r(428)][r(477)]=3,this[r(424)]=this[r(470)](),this[r(478)]=this[r(480)](),this[r(442)][r(431)](this[r(478)],1),this[r(442)][r(431)](this[r(424)])}[fe(476)](){const e=fe;super[e(476)](),this[e(456)][e(451)][e(431)](this[e(478)]),this[e(432)][e(431)](this[e(424)]),this[e(430)][e(461)](e(437),((t,r)=>{const n=e;t[n(446)]==this[n(456)][n(428)][n(450)]&&(this[n(447)](),r())}))}[fe(470)](){const e=fe,t=new o.ButtonView(this[e(422)]),r=this[e(422)];return t[e(461)]({icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M15.875 4.419a.75.75 0 0 0-1.5 0v7.25H6.818l2.33-1.955a.75.75 0 0 0-.963-1.15l-3.792 3.182a.75.75 0 0 0-.17.945c.046.11.118.208.21.284l3.788 3.18a.75.75 0 1 0 .965-1.149l-2.19-1.837h7.629c.69 0 1.25-.56 1.25-1.25v-7.5Z"/></svg>',label:U(r,e(458)),isVisible:!0,tooltip:!0,class:e(445)}),t.on(e(474),(()=>{this[e(447)]()})),t[e(423)](e(452)).to(this[e(456)][e(428)],e(421),this,e(452),((e,t)=>!e&&t)),t}[fe(480)](){const r=fe,n=new o.ButtonView(this[r(422)]),i=this[r(436)],s=this[r(422)];n[r(461)]({label:U(s,r(427)),withText:!1,icon:t.icons[r(425)],tooltip:!0,tooltipPosition:"sw",class:r(467)}),n[r(423)](r(460)).to(i,r(472)),n[r(423)](r(452)).to(this,r(452)),n.on(r(474),(()=>{const e=r;i[e(472)]=!i[e(472)],i[e(472)]?this[e(448)][e(473)]():this[e(473)]()}));const a=()=>{const t=r;e.global[t(439)][t(454)]((()=>{const r=t;if((0,e.isVisible)(this[r(450)])){const t=new e.Rect(this[r(456)][r(428)][r(450)]),o=t[r(434)],i=r(443)===s[r(471)]?r(465):r(475);t[r(463)](),n[r(450)][r(449)][i]=o-t[r(434)]+1+"px"}}))};return this[r(456)][r(428)].on(r(444),a),this.on(r(476),a),n}[fe(447)](){const e=fe,t=this[e(456)][e(428)][e(450)][e(469)];this[e(429)](e(447),t)}[fe(473)](e){const t=fe;-1===e?this[t(426)][t(462)]():this[t(426)][t(479)]()}}function ge(){const e=["_createSubmitButton","uiLanguageDirection","isVisible","focus","execute","right","render","maxRows","showHistoryButtonView","focusFirst","_createShowHistoryButton","isEmpty","locale","bind","submitButtonView","history","focusCycler","History","fieldView","fire","keystrokes","add","children","2WltBcs","width","11160479aAWbDw","resultsView","enter","minRows","window","513612pcvHgu","1585gqyQfV","focusableChildren","rtl","update","ck-ai-form__submit","target","submit","filteredView","style","element","fieldWrapperChildren","isEnabled","2627562GBxYFt","requestAnimationFrame","728199WPAwDu","queryView","424fAejQQ","Submit","524hjhHim","isOn","set","focusLast","excludeScrollbarsAndBorders","10KhndvX","left","39417vvvFRs","ck-ai-form__toggle-history","251558iIrBTx","value"];return(ge=function(){return e})()}const me=be;!function(e,t){const r=be,n=e();for(;;)try{if(755804===parseInt(r(280))/1*(parseInt(r(283))/2)+-parseInt(r(284))/3+parseInt(r(287))/4+-parseInt(r(290))/5*(parseInt(r(281))/6)+parseInt(r(289))/7+-parseInt(r(278))/8*(-parseInt(r(299))/9)+parseInt(r(291))/10*(parseInt(r(292))/11))break;n.push(n.shift())}catch(e){n.push(n.shift())}}(ye);class ke extends o.ListView{constructor(e){const t=be;super(e),this[t(303)]=this[t(298)](),this[t(288)]=new o.ListItemGroupView,this[t(288)][t(305)][t(304)](this[t(303)],1),this[t(288)][t(302)]=U(e,t(297)),this[t(288)][t(294)][t(282)](t(300)).to(this),this[t(294)][t(304)](this[t(288)])}[me(295)](){const e=me;let t=0;for(const r of this[e(294)])t+=r[e(294)][e(301)];return{resultsCount:t,totalItemsCount:t}}[me(298)](){const e=me,t=this[e(285)],r=new o.ButtonView(this[e(285)]);return r[e(279)]({label:"("+U(t,e(293))+")",withText:!0}),r.on(e(300),(()=>this[e(286)](e(296)))),r}}function be(e,t){const r=ye();return(be=function(e,t){return r[e-=278]})(e,t)}function ye(){const e=["Prompt history","_createClearHistoryButton","9Batlqi","execute","length","label","clearHistoryButton","add","children","3564312YhVLkL","set","1201MNInbv","1446180sLdXnh","delegate","506gfcjdU","3508398ZesDkD","locale","fire","5809068EUtryM","historyGroupView","8119433xPDWzX","30BFAkKg","10UEIjUe","108592EOGhEW","Clear","items","filter","clearHistory"];return(ye=function(){return e})()}function ve(){const e=["bindTemplate","5KxFuhS","style","2765547mCGiwU","4334756ZawXXF","set","extendTemplate","6078584iuDWVa","18220870lNazVG","14sVWvsD","1616490awdFhU","ck-button__label","80394sYHzCe","78bBjukj","5223282ECSWBe"];return(ve=function(){return e})()}function we(e,t){const r=ve();return(we=function(e,t){return r[e-=417]})(e,t)}!function(e,t){const r=we,n=e();for(;;)try{if(918152===-parseInt(r(430))/1+-parseInt(r(418))/2*(parseInt(r(417))/3)+parseInt(r(424))/4*(parseInt(r(421))/5)+-parseInt(r(419))/6*(-parseInt(r(429))/7)+-parseInt(r(427))/8+-parseInt(r(423))/9+parseInt(r(428))/10)break;n.push(n.shift())}catch(e){n.push(n.shift())}}(ve);class _e extends o.HighlightedTextView{constructor(){const e=we;super(),this[e(425)]({style:void 0,text:void 0,id:void 0});const t=this[e(420)];this[e(426)]({attributes:{class:[e(431)],style:t.to(e(422)),id:t.to("id")}})}}const Se="object"==typeof global&&global&&global.Object===Object&&global;var xe="object"==typeof self&&self&&self.Object===Object&&self;const Ae=(Se||xe||Function("return this")()).Symbol;const Ee=function(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o};const Ie=Array.isArray;var Oe=Object.prototype,Pe=Oe.hasOwnProperty,Re=Oe.toString,Te=Ae?Ae.toStringTag:void 0;const Me=function(e){var t=Pe.call(e,Te),r=e[Te];try{e[Te]=void 0;var n=!0}catch(e){}var o=Re.call(e);return n&&(t?e[Te]=r:delete e[Te]),o};var Ce=Object.prototype.toString;const je=function(e){return Ce.call(e)};var Ne=Ae?Ae.toStringTag:void 0;const Le=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Ne&&Ne in Object(e)?Me(e):je(e)};const Be=function(e){return null!=e&&"object"==typeof e};const Fe=function(e){return"symbol"==typeof e||Be(e)&&"[object Symbol]"==Le(e)};var De=Ae?Ae.prototype:void 0,Ue=De?De.toString:void 0;const $e=function e(t){if("string"==typeof t)return t;if(Ie(t))return Ee(t,e)+"";if(Fe(t))return Ue?Ue.call(t):"";var r=t+"";return"0"==r&&1/t==-Infinity?"-0":r};const He=function(e){return null==e?"":$e(e)};const ze=function(e){return function(t){return null==e?void 0:e[t]}};const Ve=ze({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var qe=/&(?:amp|lt|gt|quot|#39);/g,Ge=RegExp(qe.source);const We=function(e){return(e=He(e))&&Ge.test(e)?e.replace(qe,Ve):e};function Ze(e,t){const r=Ke();return(Ze=function(e,t){return r[e-=301]})(e,t)}function Ke(){const e=["2640206MrxrME","2486847xqggUV","5971493ztcxjP","35ZHFoIh","fire","locale","execute","10HJMOjv","set","2737301WrPoOu","6PTskvO","prompt","27UNKYzi","844328pJcUcT","add","1508888vTImoP","children","31469VIJlMl"];return(Ke=function(){return e})()}!function(e,t){const r=Ze,n=e();for(;;)try{if(796792===-parseInt(r(318))/1+-parseInt(r(301))/2+-parseInt(r(302))/3+parseInt(r(314))/4*(parseInt(r(304))/5)+parseInt(r(311))/6*(parseInt(r(310))/7)+-parseInt(r(316))/8*(-parseInt(r(313))/9)+-parseInt(r(308))/10*(-parseInt(r(303))/11))break;n.push(n.shift())}catch(e){n.push(n.shift())}}(Ke);class Ye extends o.ListItemView{constructor(e){const t=Ze;super();const r=new _e,n=new o.ButtonView(this[t(306)],r);this[t(317)][t(315)](n),n[t(309)]({label:e[t(312)],withText:!0}),n.on(t(307),(()=>{const r=t;this[r(305)](r(307),{value:We(e[r(312)])})}))}}function Qe(){const e=["_loadFromSessionStorage","1351602GjPUNw","stringify","map","23200452Celyde","329416CYamuq","43270jJRpay","addMany","add","10459194ifAKmy","parse","259QLDYUh","toLowerCase","138VdTNbX","getItem","_saveToSessionStorage","remove","length","trim","6542628lKgvfs","CKEditor/AIFormView/PromptHistory","last","setItem","5465645nXgxAi","prompt"];return(Qe=function(){return e})()}const Je=tt;!function(e,t){const r=tt,n=e();for(;;)try{if(875056===-parseInt(r(331))/1+-parseInt(r(336))/2*(-parseInt(r(318))/3)+parseInt(r(324))/4+-parseInt(r(328))/5+parseInt(r(339))/6+-parseInt(r(316))/7*(-parseInt(r(335))/8)+-parseInt(r(334))/9)break;n.push(n.shift())}catch(e){n.push(n.shift())}}(Qe);const Xe=Je(325);class et extends e.Collection{constructor(){const e=Je;super(),this[e(330)](),this.on(e(338),((t,r)=>{const n=e,o=rt(r[n(329)]);for(const e of this)if(e!=r&&rt(e[n(329)])===o){this[n(321)](e);break}this[n(322)]>20&&this[n(321)](this[n(326)]),this[n(320)]()})),this.on(e(321),(()=>{this[e(320)]()}))}[Je(330)](){const e=Je,t=sessionStorage[e(319)](Xe)||"[]";this[e(337)](JSON[e(340)](t))}[Je(320)](){const e=Je;sessionStorage[e(327)](Xe,JSON[e(332)](this[e(333)]((e=>e))))}}function tt(e,t){const r=Qe();return(tt=function(e,t){return r[e-=316]})(e,t)}function rt(e){const t=Je;return e[t(317)]()[t(323)]()}const nt=ze({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});var ot=/[&<>"']/g,it=RegExp(ot.source);const st=function(e){return(e=He(e))&&it.test(e)?e.replace(ot,nt):e},at=ut;function ct(){const e=["REPLACE","fire","isProcessing","18ZsAfIC","focusTracker","947574wwuXaw","153HXNdao","Ask AI and your prompts will be listed here for you to use later.","isEnabled","bindTo","focusNext","insertContentBelow","clear","search","bind","forwardCycle","startProcessing","trim","toolbar","_createHistoryView","errorView","Ask AI to edit or generate","delegate","keystrokes","isVisible","10681154aimweM","submitPrompt","insertButton","div","45128JaDSWz","tab","_focusables","listenTo","_createToolbar","stopProcessing","bindTemplate","3290wVBBBq","locale","isError","focusLast","ck-ai-form","replaceButton","prompt","render","promptView","_promptHistory","text","759309WQMucr","label","backwardCycle","focusPrevious","queryView","copyButtonView","handleError","shift + tab","replaceContent","createCollection","value","_createPromptView","high","tryAgainButton","mainAction","stop","stopButton","Empty history","element","focus","ck-ai-form-content","ck-hidden","12016yiLiYR","clearHistory","focusCycler","historyGroupView","execute","set","contentArea","504534WZTBTe","Ask AI to improve generated text","setTemplate","AI_ERROR_FAILED","40VVaHFE","items","tryAgainEvent","add","submit","2831230SXPyRa","reset","finishProcessing","fieldView","focusFirst"];return(ct=function(){return e})()}function ut(e,t){const r=ct();return(ut=function(e,t){return r[e-=279]})(e,t)}!function(e,t){const r=ut,n=e();for(;;)try{if(422908===parseInt(r(345))/1+-parseInt(r(303))/2+-parseInt(r(304))/3*(-parseInt(r(327))/4)+parseInt(r(288))/5*(parseInt(r(284))/6)+parseInt(r(334))/7*(-parseInt(r(367))/8)+parseInt(r(301))/9*(parseInt(r(293))/10)+-parseInt(r(323))/11)break;n.push(n.shift())}catch(e){n.push(n.shift())}}(ct);class lt extends o.View{constructor(t,r,n=""){const i=ut;super(t),this[i(282)](i(306),!0),this[i(282)](i(300),!1),this[i(282)](i(340),""),this[i(282)](i(355),""),this[i(282)](i(336),!1),this[i(282)](i(359),ee[i(298)]),this[i(343)]=new et,this[i(318)]=new de(t),this[i(283)]=new ae(t,n),this[i(283)][i(312)](i(300)).to(this),this[i(283)][i(312)](i(355)).to(this),this[i(316)]=this[i(331)](),this[i(316)][i(312)](i(359)).to(this),this[i(342)]=this[i(356)](),this[i(302)]=new e.FocusTracker,this[i(321)]=new e.KeystrokeHandler,this[i(329)]=this[i(354)]([this[i(283)],this[i(283)][i(350)],this[i(316)],this[i(342)]]),this[i(279)]=new o.FocusCycler({focusables:this[i(329)],focusTracker:this[i(302)],keystrokeHandler:this[i(321)],actions:{focusPrevious:i(352),focusNext:i(328)}}),this[i(342)][i(279)].on(i(313),(e=>{const t=i;this[t(279)][t(308)](),e[t(360)]()})),this[i(342)][i(279)].on(i(347),(e=>{const t=i;this[t(279)][t(348)](),e[t(360)]()})),this[i(342)][i(349)][i(296)][i(312)](i(355)).to(this,i(340));const s=this[i(333)];this[i(286)]({tag:i(326),attributes:{class:["ck",i(338),r],tabindex:"-1"},children:[{tag:i(326),attributes:{class:["ck",i(365)]},children:[{tag:i(326),attributes:{class:[s.if(i(336),i(366),(e=>!e))]},children:[this[i(318)]]},this[i(283)],this[i(316)],this[i(342)]]}]})}[at(341)](){const e=at;super[e(341)](),this[e(302)][e(291)](this[e(283)][e(363)]),this[e(302)][e(291)](this[e(283)][e(350)][e(363)]),this[e(302)][e(291)](this[e(316)][e(363)]),this[e(302)][e(291)](this[e(342)][e(363)]),this[e(321)][e(330)](this[e(363)])}[at(364)](e=1){const t=at;-1===e?this[t(279)][t(337)]():this[t(279)][t(297)]()}[at(294)](){const e=at;this[e(340)]="",this[e(355)]="",this[e(336)]=!1,this[e(342)][e(294)](),this[e(283)][e(322)]=!1,this[e(316)][e(322)]=!1}[at(356)](){const e=at,t=this[e(335)],r=new he(t,{queryView:{label:U(t,e(319)),creator:o.createLabeledTextarea,showIcon:!1,showResetButton:!1},infoView:{text:{noSearchableItems:{primary:U(t,e(362)),secondary:U(t,e(305))}}},filteredView:this[e(317)](),queryMinChars:1/0,resetOnBlur:!1});return r[e(312)](e(306)).to(this,e(306),this,e(300),((e,t)=>e&&!t)),this[e(330)](r,e(292),((t,r)=>{const n=e;this[n(340)]=r;const o=st(r);this[n(299)](n(324),o),r[n(315)]()&&this[n(343)][n(291)]({prompt:o},0)}),{priority:e(357)}),r}[at(317)](){const e=at,t=new ke(this[e(335)]);return t[e(280)][e(289)][e(307)](this[e(343)]).as(Ye),t.on(e(368),(()=>{const t=e;this[t(343)][t(310)](),this[t(342)][t(311)](""),this[t(342)][t(364)]()})),t}[at(331)](){const e=at,t=new re(this[e(335)]);return t[e(339)][e(312)](e(306)).to(this,e(306),this,e(300),this,e(355),((e,t,r)=>e&&!t&&!!r)),t[e(339)][e(320)](e(281)).to(this,e(353)),t[e(325)][e(312)](e(306)).to(this,e(306),this,e(300),this,e(355),((e,t,r)=>e&&!t&&!!r)),t[e(325)][e(320)](e(281)).to(this,e(309)),t[e(358)][e(312)](e(306)).to(this,e(306),this,e(300),((e,t)=>e&&!t)),t[e(358)][e(320)](e(281)).to(this,e(290)),t[e(361)][e(312)](e(306)).to(this,e(300)),t[e(361)][e(320)](e(281)).to(this,e(332)),t}[at(314)](){const e=at;this[e(355)]="",this[e(336)]=!1,this[e(300)]=!0,this[e(283)][e(322)]=!0,this[e(316)][e(322)]=!0,this[e(283)][e(364)]()}[at(295)](){const e=at,t=this[e(335)];this[e(300)]=!1,this[e(340)]="",this[e(342)][e(294)](),this[e(355)]&&(this[e(342)][e(349)][e(346)]=U(t,e(285)))}[at(351)](e){const t=at,r=this[t(335)];this[t(295)](),this[t(336)]=!0,this[t(318)][t(344)]=e||U(r,t(287)),this[t(355)]||(this[t(283)][t(322)]=!1)}}function dt(){const e=["20XOiums","11heZaJo","first","labelView","isVisible","get","change:enabledCommandsIds","commandDefinition","set","8WzYGJW","highlightText","5dJdHLi","enabledCommandsIds","8874208aaArfw","217864yzdJjH","label","isEnabled","includes","4182960jhMEql","13sPAslf","3Mfabqp","3960988PqHUqy","items","5305SZVayo","10143798qCtfTN","filter","length","4717386eLjETu","children","match","4614ANONDa"];return(dt=function(){return e})()}const ft=pt;function pt(e,t){const r=dt();return(pt=function(e,t){return r[e-=196]})(e,t)}!function(e,t){const r=pt,n=e();for(;;)try{if(951968===parseInt(r(208))/1*(parseInt(r(211))/2)+-parseInt(r(217))/3*(parseInt(r(218))/4)+parseInt(r(220))/5*(parseInt(r(196))/6)+parseInt(r(221))/7*(-parseInt(r(206))/8)+-parseInt(r(224))/9*(-parseInt(r(197))/10)+parseInt(r(198))/11*(parseInt(r(215))/12)+-parseInt(r(216))/13*(-parseInt(r(210))/14))break;n.push(n.shift())}catch(e){n.push(n.shift())}}(dt);class ht extends o.ListView{constructor(e){const t=pt;super(e),this[t(205)](t(209),[]),this.on(t(203),(()=>{const e=t;for(const t of this[e(219)])if(t instanceof o.ListItemGroupView)for(const r of t[e(219)])if(r instanceof Ot){const t=r[e(225)][e(202)](0);this[e(209)][e(214)](r[e(204)].id)?t[e(213)]=!0:t[e(213)]=!1}}))}[ft(222)](e){const t=ft;let r=0,n=0;for(const o of this[t(219)]){const i=o,s=i[t(219)],a=e&&!!i[t(212)][t(226)](e);i[t(200)][t(207)](a?e:null);for(const r of s){const n=r[t(225)][t(199)],o=n[t(200)];if(e){const i=!!n[t(212)][t(226)](e);o[t(207)](i?e:null),r[t(201)]=a||i}else r[t(201)]=!0,o[t(207)](null)}const c=s[t(222)]((e=>e[t(201)]))[t(223)];r+=i[t(219)][t(223)],n+=a?i[t(219)][t(223)]:c,i[t(201)]=a||!!c}return{resultsCount:n,totalItemsCount:r}}}function gt(e,t){const r=mt();return(gt=function(e,t){return r[e-=339]})(e,t)}function mt(){const e=["149064UDopIn","bindTemplate","ck-label","for","set","34CwbEwU","21221340PrRSwi","3929250dEugdv","33758sUjioc","7CDzTpk","ck-editor__label_","611432PhfIqE","extendTemplate","7612548OvizmD","117aKRZxG","3666264TncckX"];return(mt=function(){return e})()}!function(e,t){const r=gt,n=e();for(;;)try{if(670047===-parseInt(r(346))/1*(parseInt(r(349))/2)+parseInt(r(340))/3+-parseInt(r(352))/4+parseInt(r(348))/5+-parseInt(r(354))/6*(-parseInt(r(350))/7)+-parseInt(r(341))/8*(-parseInt(r(339))/9)+-parseInt(r(347))/10)break;n.push(n.shift())}catch(e){n.push(n.shift())}}(mt);class kt extends o.HighlightedTextView{constructor(){const t=gt;super(),this[t(345)](t(344),void 0);const r=this[t(342)];this.id=t(351)+(0,e.uid)(),this[t(353)]({attributes:{class:["ck",t(343)],id:this.id,for:r.to(t(344))}})}}var bt=r(3379),yt={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};s()(bt.A,yt);bt.A.locals;var vt=r(7181),wt={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};s()(vt.A,wt);vt.A.locals;var _t=r(676),St={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};s()(_t.A,St);_t.A.locals;const xt=At;function At(e,t){const r=Tt();return(At=function(e,t){return r[e-=354]})(e,t)}!function(e,t){const r=At,n=e();for(;;)try{if(386125===-parseInt(r(404))/1*(parseInt(r(475))/2)+parseInt(r(398))/3+parseInt(r(417))/4+-parseInt(r(434))/5+parseInt(r(439))/6+-parseInt(r(385))/7*(parseInt(r(367))/8)+-parseInt(r(382))/9*(-parseInt(r(433))/10))break;n.push(n.shift())}catch(e){n.push(n.shift())}}(Tt);const Et=globalThis[xt(456)];class It extends t.Plugin{static get[xt(366)](){return xt(477)}static get[xt(373)](){return[O.ClipboardMarkersUtils,j,F,o.Dialog]}constructor(e){const t=xt;super(e),this[t(390)]="",e[t(360)][t(441)](t(442),[t(356),t(357),t(365)]),e[t(360)][t(441)](t(410),""),e[t(360)][t(441)](t(413),!0),this[t(390)]=t(384)+(e[t(360)][t(426)](t(413))?t(465):"")}[xt(416)](){const t=xt,{editor:r}=this;this[t(405)]=r[t(447)][t(426)](F),this[t(440)]=r[t(447)][t(426)](o.Dialog),this[t(449)]=null,r[t(376)][t(401)](t(359),new H(r,r[t(360)][t(426)](t(408))));const n=r[t(376)][t(426)](t(359)),i=r[t(447)][t(426)](j);r.ui[t(371)][t(401)](t(394),(s=>{const a=t,c=(0,o.createDropdown)(s),u=function(e,t){const r=At,n=new ht(e[r(418)]),i=Rt(e,e[r(360)][r(426)](r(408)))[r(471)]((({groupId:n,groupLabel:i,commands:s})=>{const a=r,c=Rt(e,s)[a(471)]((r=>function(e,t,r){const n=a,i=new Ot(e,r),s=new _e,c=new o.ButtonView(e,s);return i[n(381)][n(401)](c),c[n(467)]({label:r[n(432)],withText:!0}),c.on(n(393),(()=>{const e=n;t(r[e(400)],r[e(432)],r.id,void 0===r[e(388)]||r[e(388)])})),i}(e[a(418)],t,r)));return function(e,t,r){const n=a,i=new o.ListItemGroupView(e,new kt);return i[n(432)]=t,i[n(412)][n(485)](r),i}(e[a(418)],i||n,c)}));return n[r(412)][r(485)](i),n[r(468)](r(362)).to(e[r(376)][r(426)](r(359)),r(362)),n}(r,((t,o,s,a)=>{const c=At,u=r[c(452)][c(484)][c(379)];if(a&&u[c(464)]){const t=(0,e.first)(u[c(487)]())||r[c(452)][c(399)][c(361)](u);r[c(452)][c(370)]((e=>{e[c(481)](t,"in")}))}i[c(479)](),n[c(393)](t,o,c(403)+s)})),l=new o.SearchTextView(s,{filteredView:u,queryView:{label:U(s,a(386))},class:a(457),infoView:{text:{notFound:{primary:U(s,a(395))},noSearchableItems:{primary:U(s,a(453))}}}});return c[a(467)]({class:a(391)+this[a(390)]}),c[a(468)](a(421)).to(u,a(362),(e=>e[a(458)]>0)),c[a(380)][a(381)][a(401)](l),c[a(397)][a(467)]({label:U(s,a(402)),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M15.346 9.422a.151.151 0 0 1 .284 0l.548 1.484a.152.152 0 0 0 .09.089l1.483.549a.151.151 0 0 1 0 .284l-1.483.548a.151.151 0 0 0-.09.09l-.548 1.483a.152.152 0 0 1-.142.1.151.151 0 0 1-.142-.1l-.549-1.483a.15.15 0 0 0-.09-.09l-1.483-.548a.15.15 0 0 1 0-.284l1.484-.549a.152.152 0 0 0 .089-.09l.549-1.483Z"/><path d="M16.306 1.742a.151.151 0 0 1 .284 0l.549 1.483a.15.15 0 0 0 .089.09l1.483.548a.151.151 0 0 1 .072.229.151.151 0 0 1-.072.055l-1.483.549a.15.15 0 0 0-.09.09l-.548 1.482a.151.151 0 0 1-.284 0l-.549-1.483a.15.15 0 0 0-.09-.09l-1.483-.548a.151.151 0 0 1 0-.284l1.484-.549a.152.152 0 0 0 .09-.089l.548-1.483Z"/><path d="M7.665 1.742a.151.151 0 0 1 .284 0l.549 1.483a.151.151 0 0 0 .09.09l1.482.548a.151.151 0 0 1 .072.229.151.151 0 0 1-.072.055l-1.483.549a.151.151 0 0 0-.09.09L7.95 6.267a.151.151 0 0 1-.284 0l-.549-1.483a.151.151 0 0 0-.089-.09l-1.483-.548a.151.151 0 0 1 0-.284l1.483-.549a.151.151 0 0 0 .09-.089l.548-1.483-.001.001Z"/><path d="M14.72 7.946a.848.848 0 0 0 .25-.591.824.824 0 0 0-.241-.588l-1.943-1.938a.812.812 0 0 0-.588-.241.838.838 0 0 0-.591.25l-1.545 1.539 3.115 3.115 1.542-1.546h.001Z"/><path clip-rule="evenodd" d="M1.19 15.636a.96.96 0 0 1 .281-.679l7.835-7.834 3.121 3.12-7.834 7.835a.959.959 0 0 1-1.358 0l-1.764-1.764a.96.96 0 0 1-.28-.678Zm9.22-5.391-1.121-1.12-6.479 6.478 1.121 1.121 6.479-6.479Z"/></svg>',tooltip:!0}),c.on(a(443),((e,t,r)=>{const n=a;r?(l[n(415)](),i[n(479)](!0),u[n(420)][n(459)](0,0)):i[n(383)](!0)})),c})),r.ui[t(371)][t(401)](t(364),(e=>{const r=t,i=new o.ButtonView(e);return i[r(467)]({label:U(e,r(428)),tooltip:U(e,r(428)),icon:I[r(472)],class:r(438)+this[r(390)]}),i[r(468)](r(421)).to(n),i[r(468)](r(429)).to(this[r(440)],"id",(e=>r(364)===e)),this[r(387)](i,r(393),(()=>{const e=r;i[e(429)]?this[e(462)]():n[e(393)]()})),i}))}[xt(476)](){!function(e){function r(e){const t=At;return e[t(471)]((e=>String[t(374)](e)))[t(455)]("")}(e=>{const n=At;function o(e){return r([112,108,117,103,105,110,78,97,109,101])in e}const i=[1,85,78,115,198,255,50,112,83,87,161],s=[127,34,6,211,167,86,146,199,132,160,18];function a(e){return function(e,t){const n=function(e){const t=atob(e),[n,o]=t[r([115,112,108,105,116])](r([45]));try{if(atob(o))return atob(n)}catch(e){}return t}(e),o=Array[r([102,114,111,109])](function(e){const t=new Uint8Array(e[r([108,101,110,103,116,104])]);for(let n=0;n<e[r([108,101,110,103,116,104])];n++)t[n]=e[r([99,104,97,114,67,111,100,101,65,116])](n);return t}(n)),i=o[r([112,111,112])](),s=o[r([112,111,112])]();return function(e){let t="";for(const n of e)t+=String[r([102,114,111,109,67,104,97,114,67,111,100,101])](n);return t}(function(e,t,n){const o={};o[r([110,117,109,98,101,114,79,102,82,111,117,110,100,115])]={16:10,24:12,32:14},o[r([114,99,111,110])]=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],o[r([83])]=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],o[r([84,49])]=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],o[r([84,50])]=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],o[r([84,51])]=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],o[r([84,52])]=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],o[r([85,49])]=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],o[r([85,50])]=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],o[r([85,51])]=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],o[r([85,52])]=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];const i=new Uint8Array(16);for(let e=15;e>=0;--e)i[e]=n%256,n=parseInt(n/256);let s=null,a=16;const c=new Uint8Array(t),u=[],l=[];!function(){const e=o[r([110,117,109,98,101,114,79,102,82,111,117,110,100,115])][c[r([108,101,110,103,116,104])]];for(let t=0;t<=e;t++)u[r([112,117,115,104])]([0,0,0,0]),l[r([112,117,115,104])]([0,0,0,0]);const t=4*(e+1),n=c[r([108,101,110,103,116,104])]/4,i=d(c);let s;for(let t=0;t<n;t++)s=t>>2,u[s][t%4]=i[t],l[e-s][t%4]=i[t];let a,f=0,p=n;for(;p<t;){a=i[n-1],i[0]^=o[r([83])][a>>16&255]<<24^o[r([83])][a>>8&255]<<16^o[r([83])][255&a]<<8^o[r([83])][a>>24&255]^o[r([114,99,111,110])][f]<<24,f+=1;for(let e=1;e<n/2;e++)i[e]^=i[e-1];a=i[n/2-1],i[n/2]^=o[r([83])][255&a]^o[r([83])][a>>8&255]<<8^o[r([83])][a>>16&255]<<16^o[r([83])][a>>24&255]<<24;for(let e=n/2+1;e<n;e++)i[e]^=i[e-1];let s,c,d=0;for(;d<n&&p<t;)s=p>>2,c=p%4,u[s][c]=i[d],l[e-s][c]=i[d++],p++}for(let t=1;t<e;t++)for(let e=0;e<4;e++)a=l[t][e],l[t][e]=o[r([85,49])][a>>24&255]^o[r([85,50])][a>>16&255]^o[r([85,51])][a>>8&255]^o[r([85,52])][255&a]}();for(let t=0;t<e[r([108,101,110,103,116,104])];t++)16===a&&(s=p(i),a=0,f(i)),e[t]^=s[a++];return e;function d(e){const t=[];for(let n=0;n<e[r([108,101,110,103,116,104])];n+=4)t[r([112,117,115,104])](e[n]<<24|e[n+1]<<16|e[n+2]<<8|e[n+3]);return t}function f(e){for(let t=15;t>=0;t--){if(255!==e[t]){e[t]++;break}e[t]=0}}function p(e){const t=u[r([108,101,110,103,116,104])]-1,n=[0,0,0,0];let i=d(e);for(let e=0;e<4;e++)i[e]^=u[0][e];for(let e=1;e<t;e++){for(let t=0;t<4;t++)n[t]=o[r([84,49])][i[t]>>24&255]^o[r([84,50])][i[(t+1)%4]>>16&255]^o[r([84,51])][i[(t+2)%4]>>8&255]^o[r([84,52])][255&i[(t+3)%4]]^u[e][t];i=n[r([115,108,105,99,101])]()}const s=new Uint8Array(16);let a;for(let e=0;e<4;e++)a=u[t][e],s[4*e]=255&(o[r([83])][i[e]>>24&255]^a>>24),s[4*e+1]=255&(o[r([83])][i[(e+1)%4]>>16&255]^a>>16),s[4*e+2]=255&(o[r([83])][i[(e+2)%4]>>8&255]^a>>8),s[4*e+3]=255&(o[r([83])][255&i[(e+3)%4]]^a);return s}}(o,t,s+256*i))}(e,new Uint8Array([...i,29,221,175,90,231,133,239,240,75,180,...s]))}const c=function(){const e=[{[r([105,100])]:1,[r([102,101,97,116,117,114,101,78,97,109,101])]:r([67,111,109,109,101,110,116,115]),[r([112,108,117,103,105,110,78,97,109,101])]:r([67,111,109,109,101,110,116,115,82,101,112,111,115,105,116,111,114,121]),[r([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:r([108,105,99,101,110,115,101,75,101,121]),[r([104,97,110,100,108,101,114])]:r([99,104,101,99,107,76,105,99,101,110,115,101]),[r([99,104,101,99,107,65,108,115,111])]:[{[r([105,100])]:2,[r([102,101,97,116,117,114,101,78,97,109,101])]:r([84,114,97,99,107,32,67,104,97,110,103,101,115]),[r([112,108,117,103,105,110,78,97,109,101])]:r([84,114,97,99,107,67,104,97,110,103,101,115,69,100,105,116,105,110,103]),[r([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:r([108,105,99,101,110,115,101,75,101,121]),[r([104,97,110,100,108,101,114])]:r([99,104,101,99,107,76,105,99,101,110,115,101,70,111,114,84,114,97,99,107,67,104,97,110,103,101,115]),[r([111,112,116,105,111,110,115])]:{[r([97,105,119,115,103,105,99])]:!0,[r([97,105,116,99,100,103,105,108])]:!0,[r([97,105,114,118,105,105,108])]:!0}}],[r([111,112,116,105,111,110,115])]:{[r([97,105,119,115,103,105,99])]:!0,[r([97,105,116,99,100,103,105,108])]:!0,[r([97,105,114,118,105,105,108])]:!0}},{[r([105,100])]:3,[r([102,101,97,116,117,114,101,78,97,109,101])]:r([80,97,103,105,110,97,116,105,111,110]),[r([112,108,117,103,105,110,78,97,109,101])]:r([80,97,103,105,110,97,116,105,111,110,76,111,111,107,117,112]),[r([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:r([112,97,103,105,110,97,116,105,111,110,76,105,99,101,110,115,101,75,101,121]),[r([104,97,110,100,108,101,114])]:r([99,104,101,99,107,76,105,99,101,110,115,101])},{[r([105,100])]:4,[r([102,101,97,116,117,114,101,78,97,109,101])]:r([82,101,118,105,115,105,111,110,32,72,105,115,116,111,114,121]),[r([112,108,117,103,105,110,78,97,109,101])]:r([82,101,118,105,115,105,111,110,115,82,101,112,111,115,105,116,111,114,121]),[r([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:r([108,105,99,101,110,115,101,75,101,121]),[r([104,97,110,100,108,101,114])]:r([99,104,101,99,107,76,105,99,101,110,115,101,70,111,114,82,101,118,105,115,105,111,110,72,105,115,116,111,114,121]),[r([111,112,116,105,111,110,115])]:{[r([97,105,119,115,103,105,99])]:!0,[r([97,105,116,99,100,103,105,108])]:!0,[r([97,105,114,118,105,105,108])]:!0}},{[r([105,100])]:5,[r([102,101,97,116,117,114,101,78,97,109,101])]:r([68,111,99,117,109,101,110,116,32,79,117,116,108,105,110,101]),[r([112,108,117,103,105,110,78,97,109,101])]:r([68,111,99,117,109,101,110,116,79,117,116,108,105,110,101,85,73]),[r([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:r([100,111,99,117,109,101,110,116,79,117,116,108,105,110,101,76,105,99,101,110,115,101,75,101,121]),[r([104,97,110,100,108,101,114])]:r([99,104,101,99,107,76,105,99,101,110,115,101]),[r([111,112,116,105,111,110,115])]:{[r([102,103,105])]:[12]}},{[r([105,100])]:6,[r([102,101,97,116,117,114,101,78,97,109,101])]:r([70,111,114,109,97,116,32,80,97,105,110,116,101,114]),[r([112,108,117,103,105,110,78,97,109,101])]:r([70,111,114,109,97,116,80,97,105,110,116,101,114,85,73]),[r([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:r([102,111,114,109,97,116,80,97,105,110,116,101,114,76,105,99,101,110,115,101,75,101,121]),[r([104,97,110,100,108,101,114])]:r([99,104,101,99,107,76,105,99,101,110,115,101]),[r([111,112,116,105,111,110,115])]:{[r([102,103,105])]:[12]}},{[r([105,100])]:7,[r([102,101,97,116,117,114,101,78,97,109,101])]:r([83,108,97,115,104,32,67,111,109,109,97,110,100]),[r([112,108,117,103,105,110,78,97,109,101])]:r([83,108,97,115,104,67,111,109,109,97,110,100,85,73]),[r([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:r([115,108,97,115,104,67,111,109,109,97,110,100,76,105,99,101,110,115,101,75,101,121]),[r([104,97,110,100,108,101,114])]:r([99,104,101,99,107,76,105,99,101,110,115,101]),[r([111,112,116,105,111,110,115])]:{[r([102,103,105])]:[12]}},{[r([105,100])]:8,[r([102,101,97,116,117,114,101,78,97,109,101])]:r([84,97,98,108,101,32,111,102,32,67,111,110,116,101,110,116,115]),[r([112,108,117,103,105,110,78,97,109,101])]:r([84,97,98,108,101,79,102,67,111,110,116,101,110,116,115,69,100,105,116,105,110,103]),[r([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:r([116,97,98,108,101,79,102,67,111,110,116,101,110,116,115,76,105,99,101,110,115,101,75,101,121]),[r([104,97,110,100,108,101,114])]:r([99,104,101,99,107,76,105,99,101,110,115,101]),[r([111,112,116,105,111,110,115])]:{[r([102,103,105])]:[12]}},{[r([105,100])]:9,[r([102,101,97,116,117,114,101,78,97,109,101])]:r([84,101,109,112,108,97,116,101]),[r([112,108,117,103,105,110,78,97,109,101])]:r([84,101,109,112,108,97,116,101,85,73]),[r([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:r([116,101,109,112,108,97,116,101,76,105,99,101,110,115,101,75,101,121]),[r([104,97,110,100,108,101,114])]:r([99,104,101,99,107,76,105,99,101,110,115,101]),[r([111,112,116,105,111,110,115])]:{[r([102,103,105])]:[12,14]}},{[r([105,100])]:10,[r([102,101,97,116,117,114,101,78,97,109,101])]:r([80,97,115,116,101,32,102,114,111,109,32,79,102,102,105,99,101,32,69,110,104,97,110,99,101,100]),[r([112,108,117,103,105,110,78,97,109,101])]:r([80,97,115,116,101,70,114,111,109,79,102,102,105,99,101,69,110,104,97,110,99,101,100,73,110,108,105,110,101,114]),[r([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:r([112,97,115,116,101,70,114,111,109,79,102,102,105,99,101,69,110,104,97,110,99,101,100,76,105,99,101,110,115,101,75,101,121]),[r([104,97,110,100,108,101,114])]:r([99,104,101,99,107,76,105,99,101,110,115,101]),[r([111,112,116,105,111,110,115])]:{[r([102,103,105])]:[12]}},{[r([105,100])]:11,[r([102,101,97,116,117,114,101,78,97,109,101])]:r([65,73,32,65,115,115,105,115,116,97,110,116]),[r([112,108,117,103,105,110,78,97,109,101])]:r([65,73,65,115,115,105,115,116,97,110,116,85,73]),[r([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:r([97,105,76,105,99,101,110,115,101,75,101,121]),[r([104,97,110,100,108,101,114])]:r([99,104,101,99,107,76,105,99,101,110,115,101])},{[r([105,100])]:12,[r([102,101,97,116,117,114,101,78,97,109,101])]:r([80,114,111,100,117,99,116,105,118,105,116,121,32,112,97,99,107])},{[r([105,100])]:13,[r([102,101,97,116,117,114,101,78,97,109,101])]:r([67,97,115,101,32,67,104,97,110,103,101]),[r([112,108,117,103,105,110,78,97,109,101])]:r([67,97,115,101,67,104,97,110,103,101,85,73]),[r([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:r([99,97,115,101,67,104,97,110,103,101,76,105,99,101,110,115,101,75,101,121]),[r([104,97,110,100,108,101,114])]:r([99,104,101,99,107,76,105,99,101,110,115,101]),[r([111,112,116,105,111,110,115])]:{[r([102,103,105])]:[12]}},{[r([105,100])]:14,[r([102,101,97,116,117,114,101,78,97,109,101])]:r([68,114,117,112,97,108,32,112,97,99,107]),[r([102,111,114,98,105,100,100,101,110,72,97,110,100,108,101,114])]:r([102,111,114,98,105,100,100,101,110,72,97,110,100,108,101,114,70,111,114,68,114,117,112,97,108])}];return function e(t){t[r([102,111,114,69,97,99,104])]((t=>{t[r([112,101,114,109,105,115,115,105,111,110,77,97,115,107])]=1<<t[r([105,100])]-1,o(t)&&t[r([99,104,101,99,107,65,108,115,111])]&&e(t[r([99,104,101,99,107,65,108,115,111])])}))}(e),e}(),u={[r([99,104,101,99,107,76,105,99,101,110,115,101])]:function(e,t){k(m(e,t),t)},[r([99,104,101,99,107,76,105,99,101,110,115,101,70,111,114,84,114,97,99,107,67,104,97,110,103,101,115])]:function(e,t){k(function(e,t){try{if(x(d,r([84,114,97,99,107,67,104,97,110,103,101,115,69,100,105,116,105,110,103]))&&e){const n=A(d,r([84,114,97,99,107,67,104,97,110,103,101,115,69,100,105,116,105,110,103]))[r([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])];if(parseInt(n)/2>e[r([101,120,112,105,114,97,116,105,111,110,68,97,116,101])])return b(t[r([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+r([73,110,118,97,108,105,100]))}return m(e,t)}catch(e){return b(t[r([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+r([73,110,118,97,108,105,100]))}}(e,t),t)},[r([99,104,101,99,107,76,105,99,101,110,115,101,70,111,114,82,101,118,105,115,105,111,110,72,105,115,116,111,114,121])]:function(e,t){const n=s[0]*i[1],o=s[0]*i[2],a=s[2]*i[2];function c(e,t){u(),b(t+r([84,114,105,97,108,76,105,109,105,116,58])+e),window[y()]=e===r([116,105,109,101])?n:o}function u(){const e=d;function t(){x(e,r([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))&&(A(e,r([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))[r([117,110,98,105,110,100])](r([105,115,69,110,97,98,108,101,100])),A(e,r([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))[r([105,115,69,110,97,98,108,101,100])]=!1,A(e,r([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))[r([117,112,100,97,116,101])]=_,A(e,r([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))[r([115,97,118,101,82,101,118,105,115,105,111,110])]=_,e[r([109,111,100,101,108])][r([99,104,97,110,103,101])]=_,e[r([109,111,100,101,108])][r([101,110,113,117,101,117,101,67,104,97,110,103,101])]=_,e[r([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](r([109,111,100,101,108]))),x(e,r([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))&&(A(e,r([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))[r([117,110,98,105,110,100])](r([105,115,69,110,97,98,108,101,100])),A(e,r([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))[r([105,115,69,110,97,98,108,101,100])]=!1,A(e,r([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))[r([99,111,109,112,97,114,101])]=_,A(e,r([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))[r([95,103,101,116,68,105,102,102])]=_)}e[r([115,116,97,116,101])]==r([114,101,97,100,121])?t():e[r([111,110,99,101])](r([114,101,97,100,121]),(()=>{const n=At;if(x(e,r([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))&&t(),x(e,r([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))){const o=A(e,r([82,101,118,105,115,105,111,110,115,82,101,112,111,115,105,116,111,114,121])),i=o[n(483)](0),s=o[n(470)](i[r([105,100])]);A(e,r([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))[r([99,111,109,112,97,114,101])](i[r([105,100])],s?s[r([105,100])]:null,1)[n(431)]((()=>t()))}}))}x(d,r([87,101,98,83,111,99,107,101,116,71,97,116,101,119,97,121]))&&A(d,r([87,101,98,83,111,99,107,101,116,71,97,116,101,119,97,121]))[r([115,116,97,116,101])]==r([99,111,110,110,101,99,116,101,100])&&(window[y()]=a),function(e,t){if(e==t[r([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+r([73,110,118,97,108,105,100]))u();else if(e==t[r([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+r([84,114,105,97,108])){const e=function(){const e=At;if(!x(d,r([82,101,118,105,115,105,111,110,86,105,101,119,101,114])))return!1;for(const t in window)if(Number[e(430)](Number(t))){if(window[t]===n)return r([116,105,109,101]);if(window[t]===o)return r([114,101,118,105,115,105,111,110,115])}return!1}();e&&c(e,t[r([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]);const a=function(){let e=s[6]*i[8]*i[6];return x(d,r([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))&&(e/=10),e}();window[r([115,101,116,84,105,109,101,111,117,116])]((()=>{c(r([116,105,109,101]),t[r([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])])}),a);const u=A(d,r([82,101,118,105,115,105,111,110,115,82,101,112,111,115,105,116,111,114,121]))[r([95,114,101,118,105,115,105,111,110,115])];u[r([108,101,110,103,116,104])]>=7?c(r([114,101,118,105,115,105,111,110,115]),t[r([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]):u.on(r([97,100,100]),(()=>{u[r([108,101,110,103,116,104])]>=7&&c(r([114,101,118,105,115,105,111,110,115]),t[r([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])])}))}}(function(e,t){try{return function(){const e=At;if(!x(d,r([82,101,118,105,115,105,111,110,86,105,101,119,101,114])))return!1;for(const t in window)if(Number[e(430)](Number(t))&&window[t]===a)return!0;return!1}()?b(t[r([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+r([86,97,108,105,100])):m(e,t)}catch(e){return b(t[r([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+r([73,110,118,97,108,105,100]))}}(e,t),t)}},l=e[r([99,111,110,115,116,114,117,99,116,111,114])][r([112,108,117,103,105,110,78,97,109,101])],d=r([99,111,110,116,101,120,116])in e?e[n(355)]:e[n(451)],f=r([52,48,52,56,48,54,49,50]),p=r([65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,48,49,50,51,52,53,54,55,56,57]),h=d[n(360)][n(426)](r([108,105,99,101,110,115,101,75,101,121])),g=c[r([102,105,108,116,101,114])](o)[r([102,105,110,100])]((e=>e[r([112,108,117,103,105,110,78,97,109,101])]===l));function m(e,t){try{return function(e){if(!x(d,e[r([112,108,117,103,105,110,78,97,109,101])]))return!0;const t=e[r([111,112,116,105,111,110,115])]||{},n=t[r([97,105,119,115,103,105,99])]||!1,o=t[r([97,105,116,99,100,103,105,108])]||!1,i=t[r([97,105,114,118,105,105,108])]||!1;return!(!x(d,r([87,101,98,83,111,99,107,101,116,71,97,116,101,119,97,121]))||A(d,r([87,101,98,83,111,99,107,101,116,71,97,116,101,119,97,121]))[r([115,116,97,116,101])]!=r([99,111,110,110,101,99,116,101,100])||!n)||(!(!x(d,r([84,114,97,99,107,67,104,97,110,103,101,115,68,97,116,97,71,101,116,116,101,114]))||A(d,r([84,114,97,99,107,67,104,97,110,103,101,115,68,97,116,97,71,101,116,116,101,114]))[r([114,101,115,117,108,116])]!=r([101,110,100])||!o)||!(!x(d,r([82,101,118,105,115,105,111,110,86,105,101,119,101,114,73,110,116,101,103,114,97,116,105,111,110]))||A(d,r([82,101,118,105,115,105,111,110,86,105,101,119,101,114,73,110,116,101,103,114,97,116,105,111,110]))[r([114,101,115,117,108,116])]!=r([101,110,100])||!i))}(t)?b(t[r([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+r([86,97,108,105,100])):e&&function(e,t){const o=!!(e&t[r([112,101,114,109,105,115,115,105,111,110,77,97,115,107])]),i=function(e,t){const o=(t[r([111,112,116,105,111,110,115])]||{})[r([102,103,105])]||null;return!!o&&c[r([102,105,108,116,101,114])]((e=>o[r([105,110,99,108,117,100,101,115])](e[r([105,100])])))[r([102,105,108,116,101,114])]((e=>!function(e){const t=n,o={[r([102,111,114,98,105,100,100,101,110,72,97,110,100,108,101,114,70,111,114,68,114,117,112,97,108])]:S};return!!e[t(425)]&&o[e[t(425)]]()}(e)))[r([115,111,109,101])]((t=>!!(e&t[r([112,101,114,109,105,115,115,105,111,110,77,97,115,107])])))}(e,t);return o||i}(e[r([97,108,108,111,119,101,100,80,108,117,103,105,110,115])],t)?e[r([105,115,73,110,116,101,114,110,97,108])]&&!window[r([111,112,101,110])][r([99,108,111,115,101,100])]||parseInt(f)/2>e[r([101,120,112,105,114,97,116,105,111,110,68,97,116,101])]?b(t[r([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+r([73,110,118,97,108,105,100])):e[r([105,115,84,114,105,97,108])]?b(t[r([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+r([84,114,105,97,108])):b(t[r([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+r([86,97,108,105,100])):b(t[r([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+r([73,110,118,97,108,105,100]))}catch(e){return b(t[r([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+r([73,110,118,97,108,105,100]))}}function k(e,n){if(d instanceof t.Context){const t=d;e==n[r([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+r([73,110,118,97,108,105,100])?v(t):e==n[r([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+r([84,114,105,97,108])&&window[r([115,101,116,84,105,109,101,111,117,116])]((()=>{v(t),b(n[r([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+r([84,114,105,97,108,76,105,109,105,116,58,116,105,109,101]))}),s[6]*i[8]*i[6]),t[r([101,100,105,116,111,114,115])][r([111,110])](r([97,100,100]),((t,o)=>{e!=n[r([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+r([73,110,118,97,108,105,100])&&e!=n[r([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+r([84,114,105,97,108,76,105,109,105,116,58,116,105,109,101])&&e!=n[r([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+r([84,114,105,97,108,76,105,109,105,116,58,111,112,101,114,97,116,105,111,110,115])||w(o)}))}else{const t=d;e==n[r([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+r([73,110,118,97,108,105,100])?w(t):e==n[r([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+r([84,114,105,97,108])&&t[r([111,110])](r([114,101,97,100,121]),(()=>{let e=0;t[r([109,111,100,101,108])][r([111,110])](r([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),((o,i)=>{i[0][r([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,504===e&&(w(t),b(n[r([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+r([84,114,105,97,108,76,105,109,105,116,58,111,112,101,114,97,116,105,111,110,115])),o[r([111,102,102])]())}),{priority:r([104,105,103,104,101,115,116])})}))}}function b(e){const t=y();return d[t]=e,e}function y(){const e=String(window[r([112,101,114,102,111,114,109,97,110,99,101])][r([110,111,119])]())[r([114,101,112,108,97,99,101])](r([46]),"");let t="";for(let n=0;n<e[r([108,101,110,103,116,104])];n+=2){let o=parseInt(e[r([115,117,98,115,116,114,105,110,103])](n,n+2));o>=p[r([108,101,110,103,116,104])]&&(o-=p[r([108,101,110,103,116,104])]),t+=p[o]}return t}function v(e){for(const t of e[r([101,100,105,116,111,114,115])])w(t);A(e,r([67,111,109,109,101,110,116,115,82,101,112,111,115,105,116,111,114,121]))[r([115,119,105,116,99,104,82,101,97,100,79,110,108,121])](!0),A(e,r([67,111,109,109,101,110,116,115,82,101,112,111,115,105,116,111,114,121]))[r([115,119,105,116,99,104,82,101,97,100,79,110,108,121])]=_}function w(e){function t(){e[r([109,111,100,101,108])][r([99,104,97,110,103,101])]=_,e[r([109,111,100,101,108])][r([101,110,113,117,101,117,101,67,104,97,110,103,101])]=_,e[r([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](r([109,111,100,101,108]))}e[r([115,116,97,116,101])]==r([114,101,97,100,121])?t():e[r([111,110,99,101])](r([114,101,97,100,121]),(()=>t()))}function _(){return null}function S(){return!window[r([68,114,117,112,97,108])]||!x(d,r([100,114,117,112,97,108,80,111,119,101,114,101,100,66,121]))}function x(e,t){return e[r([112,108,117,103,105,110,115])][r([104,97,115])](t)}function A(e,t){return e[r([112,108,117,103,105,110,115])][r([103,101,116])](t)}g&&function e(t,n){u[n[r([104,97,110,100,108,101,114])]](t,n),n[r([99,104,101,99,107,65,108,115,111])]&&n[r([99,104,101,99,107,65,108,115,111])][r([102,105,108,116,101,114])]((e=>x(d,e[r([112,108,117,103,105,110,78,97,109,101])])))[r([102,111,114,69,97,99,104])]((r=>e(t,r)))}(function(e){try{const t=a(e),n=JSON[r([112,97,114,115,101])](t),o=parseInt(n[r([49])]),i=n[r([50])]||"",s=parseInt(n[r([51])]),c=parseInt(n[r([52])])||0,u=parseInt(n[r([53])])||0;return{[r([112,114,111,100,117,99,116,78,97,109,101])]:i,[r([97,108,108,111,119,101,100,80,108,117,103,105,110,115])]:c,[r([101,120,112,105,114,97,116,105,111,110,68,97,116,101])]:o,[r([105,115,84,114,105,97,108])]:s,[r([105,115,73,110,116,101,114,110,97,108])]:u}}catch(e){return null}}(h),g)})(e)}(this)}[xt(375)](e="",t="",r=xt(411)){const n=xt,i=this[n(451)],s=i[n(378)][n(427)],a=i[n(447)][n(426)](j),c=i[n(447)][n(426)](O.ClipboardMarkersUtils);a[n(479)]();const u=new Et,l=new ClipboardEvent(n(486),{clipboardData:u}),d=new G.DataTransfer(u),f=new G.DomEventData(s,l,{dataTransfer:d});c[n(377)](n(389),(()=>{const e=n;s[e(484)][e(478)](e(486),f)})),this[n(449)]||(this[n(409)](),this[n(435)]=new Q(i,this[n(405)][n(444)],this[n(449)]));let p=d[n(419)](n(437));const h=i[n(452)][n(484)][n(379)],g=Array[n(448)](h[n(423)]());1===g[n(458)]&&g[0][n(469)]&&!h[n(396)]()&&(p=n(372)+p+n(460)),this[n(435)][n(454)]({actionId:r,query:e,htmlContent:p,label:t,mainActionLabel:ee[i[n(452)][n(484)][n(379)][n(464)]?n(482):n(424)]}),n(364)!==this[n(440)].id?this[n(440)][n(480)]({id:n(364),icon:I[n(472)],title:U(this[n(451)][n(418)],n(428)),content:this[n(449)],position:o.DialogViewPosition[n(363)],onShow:()=>{const e=n;this[e(449)][e(407)]()},onHide:()=>{const e=n;this[e(435)][e(415)](),a[e(383)]()}}):this[n(440)][n(427)][n(358)]||this[n(440)][n(427)][n(461)]()}[xt(462)](){const e=xt;this[e(440)][e(422)]()}[xt(409)](){const e=xt,t=this[e(451)][e(447)][e(426)](j);this[e(449)]=new lt(this[e(451)][e(418)],this[e(390)],this[e(451)][e(360)][e(426)](e(410))),this[e(449)].on(e(406),(()=>{const t=e;this[t(440)][t(427)][t(358)]||this[t(440)][t(427)][t(461)]()})),this[e(449)][e(446)][e(474)][e(450)].on(e(463),(()=>{const t=e;this[t(440)][t(427)][t(358)]||this[t(440)][t(427)][t(461)]()})),this[e(387)](this[e(449)],e(414),(()=>{const r=e;t[r(369)](this[r(435)][r(354)]),this[r(462)]()})),this[e(387)](this[e(449)],e(368),(()=>{const r=e;t[r(368)](this[r(435)][r(354)]),this[r(462)]()}))}}class Ot extends o.ListItemView{constructor(e,t){const r=xt;super(e),this[r(466)]=t}}function Pt(e,t){const r=xt;return void 0!==e[r(473)]&&void 0===t[r(473)]?1:void 0===e[r(473)]&&void 0!==t[r(473)]?-1:void 0!==e[r(473)]&&void 0!==t[r(473)]?e[r(473)]-t[r(473)]:0}function Rt(t,r){const n=xt;r[n(392)](Pt);const o={},i=[];for(const s of r)if(void 0!==s[n(473)]){if(s[n(473)]in o)throw new e.CKEditorError(n(488),t,{conflictingDefinitions:[s,o[s[n(473)]]]});o[s[n(473)]]=s,i[n(436)](s[n(473)],0,s)}else i[n(445)](s);return i}function Tt(){const e=["<p>","requires","fromCharCode","showUI","commands","_forceMarkersCopy","editing","selection","panelView","children","115821gXNywD","hideFakeVisualSelection","ck-ai-assistant-ui","81921odgGnj","Search AI command","listenTo","requiresContent","comment","_uiCssClasses","ck-ai-commands-dropdown ","sort","execute","aiCommands","No commands found","getSelectedElement","buttonView","360741PoyWSf","schema","prompt","add","AI Commands","command:","3AksDEU","_aiAdapter","change:value","focus","ai.aiAssistant.commands","_initView","ai.aiAssistant.contentAreaCssClass","custom","items","ai.useTheme","replaceContent","reset","init","1680764uIIlbm","locale","getData","element","isEnabled","hide","getRanges","REPLACE","forbiddenHandler","get","view","AI Assistant","isOn","isNaN","then","label","340driSmk","1482635ZASyPG","_aiAssistantController","splice","text/html","ck-ai-assistant-button ","4050900YTJmqv","_dialog","define","ai.aiAssistant.disabledElements","change:isOpen","textAdapter","push","promptView","plugins","from","_formView","fieldView","editor","model","No commands available","updateView","join","DataTransfer","ck-ai-commands-search","length","scrollTo","</p>","updatePosition","hideUI","update","isCollapsed"," ck-ai-assistant-ui_theme","commandDefinition","set","bind","isFlat","getEarlierVisibleRevision","map","robotPencil","order","queryView","459740xMUzrT","afterInit","AIAssistantUI","fire","showFakeVisualSelection","show","setSelection","INSERT","getRevision","document","addMany","copy","getSelectedBlocks","ai-commands-config-order-collision","currentContext","context","media","rawHtml","wasMoved","showAIAssistant","config","getLimitElement","enabledCommandsIds","EDITOR_TOP_SIDE","aiAssistant","tableOfContents","pluginName","192eWshvu","insertContentBelow","insertContent","change","componentFactory"];return(Tt=function(){return e})()}const Mt=Ct;function Ct(e,t){const r=Nt();return(Ct=function(e,t){return r[e-=370]})(e,t)}!function(e,t){const r=Ct,n=e();for(;;)try{if(823469===-parseInt(r(415))/1*(parseInt(r(456))/2)+parseInt(r(478))/3+parseInt(r(492))/4*(parseInt(r(486))/5)+parseInt(r(447))/6+parseInt(r(416))/7+parseInt(r(471))/8*(parseInt(r(441))/9)+parseInt(r(418))/10*(-parseInt(r(461))/11))break;n.push(n.shift())}catch(e){n.push(n.shift())}}(Nt);class jt extends t.Plugin{static get[Mt(419)](){return[It,j]}static get[Mt(421)](){return Mt(374)}constructor(e){const t=Mt;super(e);const r=e[t(422)];r[t(392)](t(451),function(e){const t=Mt;return[{groupId:t(381),groupLabel:U(e,t(398)),commands:[{id:t(371),label:U(e,t(445)),prompt:t(475)},{id:t(470),label:U(e,t(481)),prompt:t(403)},{id:t(389),label:U(e,t(440)),prompt:t(473)},{id:t(388),label:U(e,t(453)),prompt:t(469)}]},{groupId:t(462),groupLabel:U(e,t(379)),commands:[{id:t(488),label:U(e,t(391)),prompt:t(384)},{id:t(376),label:U(e,t(442)),prompt:t(429)}]},{groupId:t(430),groupLabel:U(e,t(428)),commands:[{id:t(482),label:U(e,t(443)),prompt:t(450)},{id:t(432),label:U(e,t(425)),prompt:t(382)},{id:t(439),label:U(e,t(435)),prompt:t(385)},{id:t(479),label:U(e,t(433)),prompt:t(477)},{id:t(383),label:U(e,t(467)),prompt:t(404)}]},{groupId:t(414),groupLabel:U(e,t(417)),commands:[{id:t(483),label:U(e,t(423)),prompt:t(490)},{id:t(463),label:U(e,t(449)),prompt:t(411)},{id:t(372),label:U(e,t(377)),prompt:t(399)},{id:t(484),label:U(e,t(405)),prompt:t(459)}]},{groupId:t(386),groupLabel:U(e,t(407)),commands:[{id:t(474),label:U(e,t(394),[U(e,t(491))]),prompt:t(401)},{id:t(480),label:U(e,t(394),[U(e,t(489))]),prompt:t(413)},{id:t(460),label:U(e,t(394),[U(e,t(458))]),prompt:t(408)},{id:t(378),label:U(e,t(394),[U(e,t(436))]),prompt:t(395)},{id:t(454),label:U(e,t(394),[U(e,t(455))]),prompt:t(476)},{id:t(487),label:U(e,t(394),[U(e,t(387))]),prompt:t(426)},{id:t(434),label:U(e,t(394),[U(e,t(444))]),prompt:t(431)},{id:t(370),label:U(e,t(394),[U(e,t(409))]),prompt:t(412)}]}]}(e[t(464)])),r[t(392)](t(375),[]),r[t(392)](t(466),[]);const n=r[t(380)](t(451)),o=r[t(380)](t(375)),i=r[t(380)](t(466));o[t(472)]((e=>{const r=t,o=n[r(485)]((t=>t[r(437)]===e[r(437)]));o?o[r(448)]=o[r(448)][r(420)](e[r(448)]):n[r(402)](e)})),n[t(472)]((e=>{const r=t;e[r(448)]=e[r(448)][r(390)]((e=>!i[r(406)](e.id)))})),r[t(438)](t(451),n)}[Mt(393)](){const t=Mt,r=this[t(427)];this[t(373)]=r[t(422)][t(380)](t(373)),this[t(397)]=setInterval((()=>{const n=t;let o;for(const e in r){const t=e,i=r[t];if(n(396)===i||n(400)===i||n(465)===i||n(446)===i){delete r[t],o=i;break}}if(n(400)===o)throw clearInterval(this[n(397)]),new e.CKEditorError(n(452),null);if(n(396)===o&&console[n(457)](n(468)),n(446)===o)throw clearInterval(this[n(397)]),new e.CKEditorError(n(424),null);n(465)===o&&clearInterval(this[n(397)])}),1e3)}[Mt(410)](){const e=Mt;this[e(397)]&&clearInterval(this[e(397)])}}function Nt(){const e=["aiLicenseKeyTrial","_licenseKeyCheckInterval","Edit or review","Rewrite this content as a journalist using engaging language to convey the importance of the information.","aiLicenseKeyInvalid","Translate the content to English language.","push","Remove any repetitive, redundant, or non-essential writing in this content without changing the meaning or losing any key information.","Improve using friendly, comforting language, to convey understanding and empathy.","Poetic","includes","Translate","Translate the content to Portuguese language.","Arabic","destroy","Rewrite this content as a legal professional using valid legal terminology.","Translate the content to Arabic language.","Translate the content to Spanish language.","changeStyle","3KhNyhV","8432270BfYvnx","Change style","438320CbsTUz","requires","concat","pluginName","config","Business","ai-trial-license-key-reached-limit-changes","Casual","Translate the content to Simplified Chinese language.","editor","Change tone","Start with the provided content and write at the end of it continuing this topic. Keep the added part short.","changeTone","Translate the content to Hindi language.","casual","Confident","translateHindi","Direct","German","groupId","set","direct","Make longer","986688YMlqmC","Continue","Professional","Hindi","Improve writing","aiLicenseKeyTrialLimit:operations","7757922QnfbIb","commands","Legal","Improve using polished, formal, and respectful language to convey professional expertise and competence.","ai.aiAssistant.commands","ai-invalid-license-key","Simplify language","translateFrench","French","844124Wsuzpx","info","Portuguese","Rewrite this content as a poem using poetic techniques without losing the original meaning.","translatePortuguese","649AiDfNa","generate","legal","locale","aiLicenseKeyValid","ai.aiAssistant.removeCommands","Friendly","You are using the trial version of CKEditor 5 ai plugin with limited usage. Make sure you will not use it in the production environment.","Simplify the writing style of this content and reduce the complexity, so that the content is easy to understand.","makeShorter","64PUosSZ","forEach","Improve this content by using descriptive language and inserting more information and more detailed explanations.","translateEnglish","Fix spelling mistakes, use proper grammar and apply good writing practices. Do not lose the original meaning.","Translate the content to French language.","Improve using compelling, optimistic language to convey confidence in the writing.","2765430FKTNcy","confident","translateSpanish","Make shorter","professional","business","poetic","find","20pnnave","translateChinese","summarize","Spanish","Rewrite this content as a business professional with formal language.","English","379280iucFOr","translateArabic","improveWriting","journalism","licenseKey","AIAssistant","ai.aiAssistant.extraCommandGroups","continue","Journalism","translateGerman","Generate from selection","get","editOrReview","Improve using casual, informal language to convey a casual conversation with a real person.","friendly","Summarize this content into one paragraph of text. Include only the key ideas and conclusions. Keep it short. Do not keep original text formatting.","Improve using direct language, using only the essential information.","translate","Simplified Chinese","simplifyLanguage","makeLonger","filter","Summarize","define","init","Translate to %0","Translate the content to German language."];return(Nt=function(){return e})()}const Lt=Ft;function Bt(){const e=["signal","catch","textAdapter","init","4blBKus","2057FEGAvQ","AbortError","error","AI_ERROR_GET_PARAMETERS","application/json","781779TKxujB","sendRequest","abortController","aborted","6740ZPEZPC","170fqbFdv","abort","locale","_prepareRequestParameters","requires","assign","52158lcjIdL","editor","546237gSkvBn","get","AI_ERROR_GET_HEADERS","369120YOkXda","makeRequest","aitextadapter-send-request-failed","name","_prepareRequestHeaders","reject","49bPidNO","resolve","plugins","object","1662392oGZxTv","3573NgDUVV"];return(Bt=function(){return e})()}function Ft(e,t){const r=Bt();return(Ft=function(e,t){return r[e-=451]})(e,t)}!function(e,t){const r=Ft,n=e();for(;;)try{if(172593===parseInt(r(466))/1*(parseInt(r(482))/2)+-parseInt(r(477))/3+-parseInt(r(471))/4*(parseInt(r(455))/5)+parseInt(r(488))/6*(parseInt(r(461))/7)+parseInt(r(465))/8+parseInt(r(452))/9+-parseInt(r(481))/10*(parseInt(r(472))/11))break;n.push(n.shift())}catch(e){n.push(n.shift())}}(Bt);class Dt extends t.Plugin{static get[Lt(486)](){return[F]}constructor(e){const t=Lt;super(e),this[t(479)]=new AbortController}[Lt(470)](){const e=Lt;this[e(451)][e(463)][e(453)](F)[e(469)]=this}[Lt(483)](){const e=Lt;this[e(479)][e(467)][e(480)]||(this[e(479)][e(483)](),this[e(479)]=new AbortController)}async[Lt(456)](t){const r=Lt;return this[r(478)](t)[r(468)]((t=>{const n=r;if(t instanceof D)return Promise[n(460)](t);if(n(473)==t[n(458)])return Promise[n(462)]();throw console[n(474)](t),new e.CKEditorError(n(457),null)}))}async[Lt(459)](e,t){const r=Lt,n=this[r(451)][r(484)],o={"Content-Type":r(476)};if(r(464)==typeof e)Object[r(487)](o,e);else if(e)try{const n=await e(t);Object[r(487)](o,n)}catch(e){return Promise[r(460)](new D(U(n,r(454))))}return o}async[Lt(485)](e,t){const r=Lt,n=this[r(451)][r(484)];if(r(464)==typeof e)return e;try{return await e(t)}catch(e){return Promise[r(460)](new D(U(n,r(475))))}}}const Ut=Ht;function $t(){const e=["\nYou must keep the text formatting.\n\nContent:\n","OpenAITextAdapter","ai.openAI.requestHeaders","5aEkIjb","stringify","abortController","delta","message","split","21393CFvnJI","resolve","394220FEInmK","read","Your task is to execute the instruction using the provided HTML content. Follow the instruction closely. Your answer must be a properly formatted HTML code. Do not add any additional remarks or notes. Do not act like a chatbot or a real person.","reject","_readStreamableResponse","AI_ERROR_MODERATION","_prepareRequestHeaders","gpt-3.5-turbo","2615464kDzHUo","decode","locale","map","user","get","signal","_requestHeaders","getReader","choices","stream","text","AI_ERROR_CONTEXT_LENGTH","system","prepareMessages","parse","Instruction:\n","data: ","define","body","https://api.openai.com/v1/chat/completions","1627437hKcPcQ","_prepareRequestParameters","376644LkGPMW","join","POST","20420ToGwvV","sendRequest","config","context_length_exceeded","editor","_apiUrl","Your task is to generate HTML content accordingly to the given instruction. Never include <img> tag in your response even if asked for. Your answer must be a well-structured and properly formatted HTML code. Answer only with the generated HTML content. Do not add any additional remarks or notes. Do not act like a chatbot or a real person.","_readStaticResponse","pluginName","content","filter","ai.openAI.apiUrl","554388PAUbBN","114GFCsyC","_isBufferIncomplete","_cleanUpData","length","includes","replace","Moderation","_requestParameters","ai.openAI.requestParameters","json","[DONE]","1611kSongb"];return($t=function(){return e})()}function Ht(e,t){const r=$t();return(Ht=function(e,t){return r[e-=164]})(e,t)}!function(e,t){const r=Ht,n=e();for(;;)try{if(247410===parseInt(r(202))/1+-parseInt(r(218))/2*(parseInt(r(169))/3)+-parseInt(r(171))/4*(-parseInt(r(233))/5)+-parseInt(r(217))/6+parseInt(r(200))/7+-parseInt(r(179))/8+-parseInt(r(229))/9*(-parseInt(r(205))/10))break;n.push(n.shift())}catch(e){n.push(n.shift())}}($t);class zt extends Dt{static get[Ut(213)](){return Ut(231)}constructor(e){const t=Ut;super(e),e[t(207)][t(197)](t(216),t(199)),e[t(207)][t(184)](t(226))||e[t(207)][t(197)](t(226),{model:t(178),max_tokens:2e3,temperature:1,top_p:1,stream:!0}),this[t(210)]=e[t(207)][t(184)](t(216)),this[t(186)]=e[t(207)][t(184)](t(232))||{},this[t(225)]=e[t(207)][t(184)](t(226))}async[Ut(206)]({query:e,context:t,onData:r,actionId:n}){const o=Ut,i=this[o(209)][o(181)],s=await this[o(193)](e,t,n),a=await this[o(177)](this[o(186)],n),c=await this[o(201)](this[o(225)],n),u={messages:s,...c},l={method:o(204),headers:a,body:JSON[o(164)](u),signal:this[o(165)][o(185)]},d=await fetch(this[o(210)],l);if(d.ok)return c[o(189)]?await this[o(175)](d,r):await this[o(212)](d,r),Promise[o(170)]();{const e=await d[o(190)]();return e[o(222)](o(208))?Promise[o(174)](new D(U(i,o(191)))):e[o(222)](o(224))?Promise[o(174)](new D(U(i,o(176)))):Promise[o(174)](new Error(e))}}async[Ut(193)](e,t,r){const n=Ut;let o,i;return t?(o=n(173),i=n(195)+e+n(230)+t):(o=n(211),i=e),[{role:n(192),content:o},{role:n(183),content:i}]}async[Ut(175)](e,t){const r=Ut,n=e[r(198)][r(187)](),o=new TextDecoder;let i="",s="",a="",c=!1;for(;!c;){const{done:e,value:u}=await n[r(172)](),l=i+o[r(180)](u);let d="";c=e;try{d=this[r(220)](l),i=""}catch(e){i=l;continue}s+=d,!c&&this[r(219)](s)||s&&(a+=s,s="",t(a))}return Promise[r(170)]()}async[Ut(212)](e,t){const r=Ut;return t((await e[r(227)]())[r(188)][0][r(167)][r(214)]),Promise[r(170)]()}[Ut(219)](e){const t=Ut,r=e[t(168)]("<")[t(221)]!==e[t(168)](">")[t(221)],n=e[t(221)]<30;return r&&n}[Ut(220)](e){const t=Ut;return e[t(168)](/\n(?![^{]*\})/g)[t(182)]((e=>e[t(223)](t(196),"")))[t(215)]((e=>e&&e[t(221)]>0&&t(228)!==e))[t(182)]((e=>{const r=t,{choices:n}=JSON[r(194)](e);if(n[0]&&n[0][r(166)]&&n[0][r(166)][r(214)])return n[0][r(166)][r(214)]}))[t(215)]((e=>e))[t(203)]("")}}const Vt=e=>{let t=e.httpHandler;return{setHttpHandler(e){t=e},httpHandler:()=>t,updateHttpClientConfig(e,r){t.updateHttpClientConfig(e,r)},httpHandlerConfigs:()=>t.httpHandlerConfigs()}};var qt,Gt,Wt,Zt;!function(e){e.HEADER="header",e.QUERY="query"}(qt||(qt={})),function(e){e.HEADER="header",e.QUERY="query"}(Gt||(Gt={})),function(e){e.HTTP="http",e.HTTPS="https"}(Wt||(Wt={})),function(e){e.MD5="md5",e.CRC32="crc32",e.CRC32C="crc32c",e.SHA1="sha1",e.SHA256="sha256"}(Zt||(Zt={}));var Kt;!function(e){e[e.HEADER=0]="HEADER",e[e.TRAILER=1]="TRAILER"}(Kt||(Kt={}));const Yt="__smithy_context";var Qt,Jt;!function(e){e.PROFILE="profile",e.SSO_SESSION="sso-session",e.SERVICES="services"}(Qt||(Qt={})),function(e){e.HTTP_0_9="http/0.9",e.HTTP_1_0="http/1.0",e.TDS_8_0="tds/8.0"}(Jt||(Jt={}));class Xt{constructor(e){this.method=e.method||"GET",this.hostname=e.hostname||"localhost",this.port=e.port,this.query=e.query||{},this.headers=e.headers||{},this.body=e.body,this.protocol=e.protocol?":"!==e.protocol.slice(-1)?`${e.protocol}:`:e.protocol:"https:",this.path=e.path?"/"!==e.path.charAt(0)?`/${e.path}`:e.path:"/",this.username=e.username,this.password=e.password,this.fragment=e.fragment}static isInstance(e){if(!e)return!1;const t=e;return"method"in t&&"protocol"in t&&"hostname"in t&&"path"in t&&"object"==typeof t.query&&"object"==typeof t.headers}clone(){const e=new Xt({...this,headers:{...this.headers}});var t;return e.query&&(e.query=(t=e.query,Object.keys(t).reduce(((e,r)=>{const n=t[r];return{...e,[r]:Array.isArray(n)?[...n]:n}}),{}))),e}}class er{constructor(e){this.statusCode=e.statusCode,this.reason=e.reason,this.headers=e.headers||{},this.body=e.body}static isInstance(e){if(!e)return!1;const t=e;return"number"==typeof t.statusCode&&"object"==typeof t.headers}}const tr={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},rr=e=>({applyToStack:t=>{t.add((e=>t=>async r=>{if(!Xt.isInstance(r.request))return t(r);const{request:n}=r,{handlerProtocol:o=""}=e.requestHandler.metadata||{};if(o.indexOf("h2")>=0&&!n.headers[":authority"])delete n.headers.host,n.headers[":authority"]=n.hostname+(n.port?":"+n.port:"");else if(!n.headers.host){let e=n.hostname;null!=n.port&&(e+=`:${n.port}`),n.headers.host=e}return t(r)})(e),tr)}}),nr={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},or="X-Amzn-Trace-Id",ir={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"},sr=e=>({applyToStack:t=>{t.add((e=>t=>async r=>{const{request:n}=r;if(!Xt.isInstance(n)||"node"!==e.runtime||n.headers.hasOwnProperty(or))return t(r);const o=process.env.AWS_LAMBDA_FUNCTION_NAME,i=process.env._X_AMZN_TRACE_ID,s=e=>"string"==typeof e&&e.length>0;return s(o)&&s(i)&&(n.headers[or]=i),t({...r,request:n})})(e),ir)}});Error;const ar=(e,t,r)=>{let n,o,i,s=!1;const a=async()=>{o||(o=e());try{n=await o,i=!0,s=!1}finally{o=void 0}return n};return void 0===t?async e=>(i&&!e?.forceRefresh||(n=await a()),n):async e=>(i&&!e?.forceRefresh||(n=await a()),s?n:r&&!r(n)?(s=!0,n):t(n)?(await a(),n):n)};var cr=r(3090);const ur={},lr={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();1===t.length&&(t=`0${t}`),ur[e]=t,lr[t]=e}function dr(e){let t="";for(let r=0;r<e.byteLength;r++)t+=ur[e[r]];return t}class fr{constructor(e){if(this.bytes=e,8!==e.byteLength)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(e){if(e>0x8000000000000000||e<-0x8000000000000000)throw new Error(`${e} is too large (or, if negative, too small) to represent as an Int64`);const t=new Uint8Array(8);for(let r=7,n=Math.abs(Math.round(e));r>-1&&n>0;r--,n/=256)t[r]=n;return e<0&&pr(t),new fr(t)}valueOf(){const e=this.bytes.slice(0),t=128&e[0];return t&&pr(e),parseInt(dr(e),16)*(t?-1:1)}toString(){return String(this.valueOf())}}function pr(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1&&(e[t]++,0===e[t]);t--);}class hr{constructor(e,t){this.toUtf8=e,this.fromUtf8=t}format(e){const t=[];for(const r of Object.keys(e)){const n=this.fromUtf8(r);t.push(Uint8Array.from([n.byteLength]),n,this.formatHeaderValue(e[r]))}const r=new Uint8Array(t.reduce(((e,t)=>e+t.byteLength),0));let n=0;for(const e of t)r.set(e,n),n+=e.byteLength;return r}formatHeaderValue(e){switch(e.type){case"boolean":return Uint8Array.from([e.value?0:1]);case"byte":return Uint8Array.from([2,e.value]);case"short":const t=new DataView(new ArrayBuffer(3));return t.setUint8(0,3),t.setInt16(1,e.value,!1),new Uint8Array(t.buffer);case"integer":const r=new DataView(new ArrayBuffer(5));return r.setUint8(0,4),r.setInt32(1,e.value,!1),new Uint8Array(r.buffer);case"long":const n=new Uint8Array(9);return n[0]=5,n.set(e.value.bytes,1),n;case"binary":const o=new DataView(new ArrayBuffer(3+e.value.byteLength));o.setUint8(0,6),o.setUint16(1,e.value.byteLength,!1);const i=new Uint8Array(o.buffer);return i.set(e.value,3),i;case"string":const s=this.fromUtf8(e.value),a=new DataView(new ArrayBuffer(3+s.byteLength));a.setUint8(0,7),a.setUint16(1,s.byteLength,!1);const c=new Uint8Array(a.buffer);return c.set(s,3),c;case"timestamp":const u=new Uint8Array(9);return u[0]=8,u.set(fr.fromNumber(e.value.valueOf()).bytes,1),u;case"uuid":if(!Ar.test(e.value))throw new Error(`Invalid UUID received: ${e.value}`);const l=new Uint8Array(17);return l[0]=9,l.set(function(e){if(e.length%2!=0)throw new Error("Hex encoded strings must have an even number length");const t=new Uint8Array(e.length/2);for(let r=0;r<e.length;r+=2){const n=e.slice(r,r+2).toLowerCase();if(!(n in lr))throw new Error(`Cannot decode unrecognized sequence ${n} as hexadecimal`);t[r/2]=lr[n]}return t}(e.value.replace(/\-/g,"")),1),l}}parse(e){const t={};let r=0;for(;r<e.byteLength;){const n=e.getUint8(r++),o=this.toUtf8(new Uint8Array(e.buffer,e.byteOffset+r,n));switch(r+=n,e.getUint8(r++)){case 0:t[o]={type:mr,value:!0};break;case 1:t[o]={type:mr,value:!1};break;case 2:t[o]={type:kr,value:e.getInt8(r++)};break;case 3:t[o]={type:br,value:e.getInt16(r,!1)},r+=2;break;case 4:t[o]={type:yr,value:e.getInt32(r,!1)},r+=4;break;case 5:t[o]={type:vr,value:new fr(new Uint8Array(e.buffer,e.byteOffset+r,8))},r+=8;break;case 6:const n=e.getUint16(r,!1);r+=2,t[o]={type:wr,value:new Uint8Array(e.buffer,e.byteOffset+r,n)},r+=n;break;case 7:const i=e.getUint16(r,!1);r+=2,t[o]={type:_r,value:this.toUtf8(new Uint8Array(e.buffer,e.byteOffset+r,i))},r+=i;break;case 8:t[o]={type:Sr,value:new Date(new fr(new Uint8Array(e.buffer,e.byteOffset+r,8)).valueOf())},r+=8;break;case 9:const s=new Uint8Array(e.buffer,e.byteOffset+r,16);r+=16,t[o]={type:xr,value:`${dr(s.subarray(0,4))}-${dr(s.subarray(4,6))}-${dr(s.subarray(6,8))}-${dr(s.subarray(8,10))}-${dr(s.subarray(10))}`};break;default:throw new Error("Unrecognized header type tag")}}return t}}var gr;!function(e){e[e.boolTrue=0]="boolTrue",e[e.boolFalse=1]="boolFalse",e[e.byte=2]="byte",e[e.short=3]="short",e[e.integer=4]="integer",e[e.long=5]="long",e[e.byteArray=6]="byteArray",e[e.string=7]="string",e[e.timestamp=8]="timestamp",e[e.uuid=9]="uuid"}(gr||(gr={}));const mr="boolean",kr="byte",br="short",yr="integer",vr="long",wr="binary",_r="string",Sr="timestamp",xr="uuid",Ar=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;class Er{constructor(e,t){this.headerMarshaller=new hr(e,t),this.messageBuffer=[],this.isEndOfStream=!1}feed(e){this.messageBuffer.push(this.decode(e))}endOfStream(){this.isEndOfStream=!0}getMessage(){const e=this.messageBuffer.pop(),t=this.isEndOfStream;return{getMessage:()=>e,isEndOfStream:()=>t}}getAvailableMessages(){const e=this.messageBuffer;this.messageBuffer=[];const t=this.isEndOfStream;return{getMessages:()=>e,isEndOfStream:()=>t}}encode({headers:e,body:t}){const r=this.headerMarshaller.format(e),n=r.byteLength+t.byteLength+16,o=new Uint8Array(n),i=new DataView(o.buffer,o.byteOffset,o.byteLength),s=new cr.Crc32;return i.setUint32(0,n,!1),i.setUint32(4,r.byteLength,!1),i.setUint32(8,s.update(o.subarray(0,8)).digest(),!1),o.set(r,12),o.set(t,r.byteLength+12),i.setUint32(n-4,s.update(o.subarray(8,n-4)).digest(),!1),o}decode(e){const{headers:t,body:r}=function({byteLength:e,byteOffset:t,buffer:r}){if(e<16)throw new Error("Provided message too short to accommodate event stream message overhead");const n=new DataView(r,t,e),o=n.getUint32(0,!1);if(e!==o)throw new Error("Reported message length does not match received message length");const i=n.getUint32(4,!1),s=n.getUint32(8,!1),a=n.getUint32(e-4,!1),c=(new cr.Crc32).update(new Uint8Array(r,t,8));if(s!==c.digest())throw new Error(`The prelude checksum specified in the message (${s}) does not match the calculated CRC32 checksum (${c.digest()})`);if(c.update(new Uint8Array(r,t+8,e-12)),a!==c.digest())throw new Error(`The message checksum (${c.digest()}) did not match the expected value of ${a}`);return{headers:new DataView(r,t+8+4,i),body:new Uint8Array(r,t+8+4+i,o-i-16)}}(e);return{headers:this.headerMarshaller.parse(t),body:r}}formatHeaders(e){return this.headerMarshaller.format(e)}}class Ir{constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(const e of this.options.inputStream){const t=this.options.decoder.decode(e);yield t}}}class Or{constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(const e of this.options.messageStream){const t=this.options.encoder.encode(e);yield t}this.options.includeEndFrame&&(yield new Uint8Array(0))}}class Pr{constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(const e of this.options.messageStream){const t=await this.options.deserializer(e);void 0!==t&&(yield t)}}}class Rr{constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(const e of this.options.inputStream){const t=this.options.serializer(e);yield t}}}const Tr=e=>{if("function"==typeof e)return e;const t=Promise.resolve(e);return()=>t},Mr=e=>new TextDecoder("utf-8").decode(e),Cr=e=>(new TextEncoder).encode(e),jr=e=>"string"==typeof e?Cr(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e),Nr="X-Amz-Date",Lr="X-Amz-Signature",Br="X-Amz-Security-Token",Fr="authorization",Dr=Nr.toLowerCase(),Ur=[Fr,Dr,"date"],$r=Lr.toLowerCase(),Hr="x-amz-content-sha256",zr=Br.toLowerCase(),Vr={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},qr=/^proxy-/,Gr=/^sec-/,Wr="AWS4-HMAC-SHA256",Zr="AWS4-HMAC-SHA256-PAYLOAD",Kr="aws4_request",Yr={},Qr=[],Jr=(e,t,r)=>`${e}/${t}/${r}/${Kr}`,Xr=(e,t,r)=>{const n=new e(t);return n.update(jr(r)),n.digest()},en=({headers:e},t,r)=>{const n={};for(const o of Object.keys(e).sort()){if(null==e[o])continue;const i=o.toLowerCase();(i in Vr||t?.has(i)||qr.test(i)||Gr.test(i))&&(!r||r&&!r.has(i))||(n[i]=e[o].trim().replace(/\s+/g," "))}return n},tn=e=>encodeURIComponent(e).replace(/[!'()*]/g,rn),rn=e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`,nn=async({headers:e,body:t},r)=>{for(const t of Object.keys(e))if(t.toLowerCase()===Hr)return e[t];if(null==t)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if("string"==typeof t||ArrayBuffer.isView(t)||(n=t,"function"==typeof ArrayBuffer&&n instanceof ArrayBuffer||"[object ArrayBuffer]"===Object.prototype.toString.call(n))){const e=new r;return e.update(jr(t)),dr(await e.digest())}var n;return"UNSIGNED-PAYLOAD"},on=({headers:e,query:t,...r})=>({...r,headers:{...e},query:t?sn(t):void 0}),sn=e=>Object.keys(e).reduce(((t,r)=>{const n=e[r];return{...t,[r]:Array.isArray(n)?[...n]:n}}),{}),an=e=>{e="function"==typeof e.clone?e.clone():on(e);for(const t of Object.keys(e.headers))Ur.indexOf(t.toLowerCase())>-1&&delete e.headers[t];return e},cn=e=>"number"==typeof e?new Date(1e3*e):"string"==typeof e?Number(e)?new Date(1e3*Number(e)):new Date(e):e;class un{constructor({applyChecksum:e,credentials:t,region:r,service:n,sha256:o,uriEscapePath:i=!0}){this.headerMarshaller=new hr(Mr,Cr),this.service=n,this.sha256=o,this.uriEscapePath=i,this.applyChecksum="boolean"!=typeof e||e,this.regionProvider=Tr(r),this.credentialProvider=Tr(t)}async presign(e,t={}){const{signingDate:r=new Date,expiresIn:n=3600,unsignableHeaders:o,unhoistableHeaders:i,signableHeaders:s,signingRegion:a,signingService:c}=t,u=await this.credentialProvider();this.validateResolvedCredentials(u);const l=a??await this.regionProvider(),{longDate:d,shortDate:f}=ln(r);if(n>604800)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");const p=Jr(f,l,c??this.service),h=((e,t={})=>{const{headers:r,query:n={}}="function"==typeof e.clone?e.clone():on(e);for(const e of Object.keys(r)){const o=e.toLowerCase();"x-amz-"!==o.slice(0,6)||t.unhoistableHeaders?.has(o)||(n[e]=r[e],delete r[e])}return{...e,headers:r,query:n}})(an(e),{unhoistableHeaders:i});u.sessionToken&&(h.query[Br]=u.sessionToken),h.query["X-Amz-Algorithm"]=Wr,h.query["X-Amz-Credential"]=`${u.accessKeyId}/${p}`,h.query[Nr]=d,h.query["X-Amz-Expires"]=n.toString(10);const g=en(h,o,s);return h.query["X-Amz-SignedHeaders"]=dn(g),h.query[Lr]=await this.getSignature(d,p,this.getSigningKey(u,l,f,c),this.createCanonicalRequest(h,g,await nn(e,this.sha256))),h}async sign(e,t){return"string"==typeof e?this.signString(e,t):e.headers&&e.payload?this.signEvent(e,t):e.message?this.signMessage(e,t):this.signRequest(e,t)}async signEvent({headers:e,payload:t},{signingDate:r=new Date,priorSignature:n,signingRegion:o,signingService:i}){const s=o??await this.regionProvider(),{shortDate:a,longDate:c}=ln(r),u=Jr(a,s,i??this.service),l=await nn({headers:{},body:t},this.sha256),d=new this.sha256;d.update(e);const f=dr(await d.digest()),p=[Zr,c,u,n,f,l].join("\n");return this.signString(p,{signingDate:r,signingRegion:s,signingService:i})}async signMessage(e,{signingDate:t=new Date,signingRegion:r,signingService:n}){return this.signEvent({headers:this.headerMarshaller.format(e.message.headers),payload:e.message.body},{signingDate:t,signingRegion:r,signingService:n,priorSignature:e.priorSignature}).then((t=>({message:e.message,signature:t})))}async signString(e,{signingDate:t=new Date,signingRegion:r,signingService:n}={}){const o=await this.credentialProvider();this.validateResolvedCredentials(o);const i=r??await this.regionProvider(),{shortDate:s}=ln(t),a=new this.sha256(await this.getSigningKey(o,i,s,n));return a.update(jr(e)),dr(await a.digest())}async signRequest(e,{signingDate:t=new Date,signableHeaders:r,unsignableHeaders:n,signingRegion:o,signingService:i}={}){const s=await this.credentialProvider();this.validateResolvedCredentials(s);const a=o??await this.regionProvider(),c=an(e),{longDate:u,shortDate:l}=ln(t),d=Jr(l,a,i??this.service);c.headers[Dr]=u,s.sessionToken&&(c.headers[zr]=s.sessionToken);const f=await nn(c,this.sha256);!((e,t)=>{e=e.toLowerCase();for(const r of Object.keys(t))if(e===r.toLowerCase())return!0;return!1})(Hr,c.headers)&&this.applyChecksum&&(c.headers[Hr]=f);const p=en(c,n,r),h=await this.getSignature(u,d,this.getSigningKey(s,a,l,i),this.createCanonicalRequest(c,p,f));return c.headers[Fr]=`${Wr} Credential=${s.accessKeyId}/${d}, SignedHeaders=${dn(p)}, Signature=${h}`,c}createCanonicalRequest(e,t,r){const n=Object.keys(t).sort();return`${e.method}\n${this.getCanonicalPath(e)}\n${(({query:e={}})=>{const t=[],r={};for(const n of Object.keys(e).sort()){if(n.toLowerCase()===$r)continue;t.push(n);const o=e[n];"string"==typeof o?r[n]=`${tn(n)}=${tn(o)}`:Array.isArray(o)&&(r[n]=o.slice(0).reduce(((e,t)=>e.concat([`${tn(n)}=${tn(t)}`])),[]).sort().join("&"))}return t.map((e=>r[e])).filter((e=>e)).join("&")})(e)}\n${n.map((e=>`${e}:${t[e]}`)).join("\n")}\n\n${n.join(";")}\n${r}`}async createStringToSign(e,t,r){const n=new this.sha256;n.update(jr(r));const o=await n.digest();return`${Wr}\n${e}\n${t}\n${dr(o)}`}getCanonicalPath({path:e}){if(this.uriEscapePath){const t=[];for(const r of e.split("/"))0!==r?.length&&"."!==r&&(".."===r?t.pop():t.push(r));const r=`${e?.startsWith("/")?"/":""}${t.join("/")}${t.length>0&&e?.endsWith("/")?"/":""}`;return encodeURIComponent(r).replace(/%2F/g,"/")}return e}async getSignature(e,t,r,n){const o=await this.createStringToSign(e,t,n),i=new this.sha256(await r);return i.update(jr(o)),dr(await i.digest())}getSigningKey(e,t,r,n){return(async(e,t,r,n,o)=>{const i=`${r}:${n}:${o}:${dr(await Xr(e,t.secretAccessKey,t.accessKeyId))}:${t.sessionToken}`;if(i in Yr)return Yr[i];for(Qr.push(i);Qr.length>50;)delete Yr[Qr.shift()];let s=`AWS4${t.secretAccessKey}`;for(const t of[r,n,o,Kr])s=await Xr(e,s,t);return Yr[i]=s})(this.sha256,e,r,t,n||this.service)}validateResolvedCredentials(e){if("object"!=typeof e||"string"!=typeof e.accessKeyId||"string"!=typeof e.secretAccessKey)throw new Error("Resolved credential object is not valid")}}const ln=e=>{const t=(r=e,cn(r).toISOString().replace(/\.\d{3}Z$/,"Z")).replace(/[\-:]/g,"");var r;return{longDate:t,shortDate:t.slice(0,8)}},dn=e=>Object.keys(e).sort().join(";"),fn=e=>"function"==typeof e?ar(e,(e=>void 0!==e.expiration&&e.expiration.getTime()-Date.now()<3e5),(e=>void 0!==e.expiration)):Tr(e),pn=e=>new Date(Date.now()+e),hn=(e,t)=>{const r=Date.parse(e);return((e,t)=>Math.abs(pn(t).getTime()-e)>=3e5)(r,t)?r-Date.now():t},gn=e=>er.isInstance(e)?e.headers?.date??e.headers?.Date:void 0,mn={name:"awsAuthMiddleware",tags:["SIGNATURE","AWSAUTH"],relation:"after",toMiddleware:"retryMiddleware",override:!0},kn=e=>({applyToStack:t=>{t.addRelativeTo((e=>(t,r)=>async function(n){if(!Xt.isInstance(n.request))return t(n);const o=r.endpointV2?.properties?.authSchemes?.[0],i="sigv4a"===o?.name?o?.signingRegionSet?.join(","):void 0,s=await e.signer(o);let a;const c={signingDate:pn(e.systemClockOffset),signingRegion:i||r.signing_region,signingService:r.signing_service};if(r.s3ExpressIdentity){const e=s;if(a=await e.signWithCredentials(n.request,r.s3ExpressIdentity,c),a.headers["X-Amz-Security-Token"]||a.headers["x-amz-security-token"])throw new Error("X-Amz-Security-Token must not be set for s3-express requests.")}else a=await s.sign(n.request,c);const u=await t({...n,request:a}).catch((t=>{const r=t.ServerTime??gn(t.$response);throw r&&(e.systemClockOffset=hn(r,e.systemClockOffset)),t})),l=gn(u.response);return l&&(e.systemClockOffset=hn(l,e.systemClockOffset)),u})(e),mn)}});const bn=new RegExp("^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$"),yn=e=>bn.test(e)||e.startsWith("[")&&e.endsWith("]"),vn=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),wn=(e,t=!1)=>{if(!t)return vn.test(e);const r=e.split(".");for(const e of r)if(!wn(e))return!1;return!0},_n={},Sn="endpoints";function xn(e){return"object"!=typeof e||null==e?e:"ref"in e?`$${xn(e.ref)}`:"fn"in e?`${e.fn}(${(e.argv||[]).map(xn).join(", ")})`:JSON.stringify(e,null,2)}class An extends Error{constructor(e){super(e),this.name="EndpointError"}}const En=(e,t)=>(e=>{const t=e.split("."),r=[];for(const n of t){const t=n.indexOf("[");if(-1!==t){if(n.indexOf("]")!==n.length-1)throw new An(`Path: '${e}' does not end with ']'`);const o=n.slice(t+1,-1);if(Number.isNaN(parseInt(o)))throw new An(`Invalid array index: '${o}' in path: '${e}'`);0!==t&&r.push(n.slice(0,t)),r.push(o)}else r.push(n)}return r})(t).reduce(((r,n)=>{if("object"!=typeof r)throw new An(`Index '${n}' in '${t}' not found in '${JSON.stringify(e)}'`);return Array.isArray(r)?r[parseInt(n)]:r[n]}),e),In={[Wt.HTTP]:80,[Wt.HTTPS]:443},On={booleanEquals:(e,t)=>e===t,getAttr:En,isSet:e=>null!=e,isValidHostLabel:wn,not:e=>!e,parseURL:e=>{const t=(()=>{try{if(e instanceof URL)return e;if("object"==typeof e&&"hostname"in e){const{hostname:t,port:r,protocol:n="",path:o="",query:i={}}=e,s=new URL(`${n}//${t}${r?`:${r}`:""}${o}`);return s.search=Object.entries(i).map((([e,t])=>`${e}=${t}`)).join("&"),s}return new URL(e)}catch(e){return null}})();if(!t)return console.error(`Unable to parse ${JSON.stringify(e)} as a whatwg URL.`),null;const r=t.href,{host:n,hostname:o,pathname:i,protocol:s,search:a}=t;if(a)return null;const c=s.slice(0,-1);if(!Object.values(Wt).includes(c))return null;const u=yn(o);return{scheme:c,authority:`${n}${r.includes(`${n}:${In[c]}`)||"string"==typeof e&&e.includes(`${n}:${In[c]}`)?`:${In[c]}`:""}`,path:i,normalizedPath:i.endsWith("/")?i:`${i}/`,isIp:u}},stringEquals:(e,t)=>e===t,substring:(e,t,r,n)=>t>=r||e.length<r?null:n?e.substring(e.length-r,e.length-t):e.substring(t,r),uriEncode:e=>encodeURIComponent(e).replace(/[!*'()]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`))},Pn=(e,t)=>{const r=[],n={...t.endpointParams,...t.referenceRecord};let o=0;for(;o<e.length;){const t=e.indexOf("{",o);if(-1===t){r.push(e.slice(o));break}r.push(e.slice(o,t));const i=e.indexOf("}",t);if(-1===i){r.push(e.slice(t));break}"{"===e[t+1]&&"}"===e[i+1]&&(r.push(e.slice(t+1,i)),o=i+2);const s=e.substring(t+1,i);if(s.includes("#")){const[e,t]=s.split("#");r.push(En(n[e],t))}else r.push(n[s]);o=i+1}return r.join("")},Rn=(e,t,r)=>{if("string"==typeof e)return Pn(e,r);if(e.fn)return Tn(e,r);if(e.ref)return(({ref:e},t)=>({...t.endpointParams,...t.referenceRecord}[e]))(e,r);throw new An(`'${t}': ${String(e)} is not a string, function or reference.`)},Tn=({fn:e,argv:t},r)=>{const n=t.map((e=>["boolean","number"].includes(typeof e)?e:Rn(e,"arg",r))),o=e.split(".");return o[0]in _n&&null!=o[1]?_n[o[0]][o[1]](...n):On[e](...n)},Mn=({assign:e,...t},r)=>{if(e&&e in r.referenceRecord)throw new An(`'${e}' is already defined in Reference Record.`);const n=Tn(t,r);return r.logger?.debug?.(Sn,`evaluateCondition: ${xn(t)} = ${xn(n)}`),{result:""===n||!!n,...null!=e&&{toAssign:{name:e,value:n}}}},Cn=(e=[],t)=>{const r={};for(const n of e){const{result:e,toAssign:o}=Mn(n,{...t,referenceRecord:{...t.referenceRecord,...r}});if(!e)return{result:e};o&&(r[o.name]=o.value,t.logger?.debug?.(Sn,`assign: ${o.name} := ${xn(o.value)}`))}return{result:!0,referenceRecord:r}},jn=(e,t)=>Object.entries(e).reduce(((e,[r,n])=>({...e,[r]:n.map((e=>{const n=Rn(e,"Header value entry",t);if("string"!=typeof n)throw new An(`Header '${r}' value '${n}' is not a string`);return n}))})),{}),Nn=(e,t)=>{if(Array.isArray(e))return e.map((e=>Nn(e,t)));switch(typeof e){case"string":return Pn(e,t);case"object":if(null===e)throw new An(`Unexpected endpoint property: ${e}`);return Ln(e,t);case"boolean":return e;default:throw new An("Unexpected endpoint property type: "+typeof e)}},Ln=(e,t)=>Object.entries(e).reduce(((e,[r,n])=>({...e,[r]:Nn(n,t)})),{}),Bn=(e,t)=>{const r=Rn(e,"Endpoint URL",t);if("string"==typeof r)try{return new URL(r)}catch(e){throw console.error(`Failed to construct URL with ${r}`,e),e}throw new An("Endpoint URL must be a string, got "+typeof r)},Fn=(e,t)=>{const{conditions:r,endpoint:n}=e,{result:o,referenceRecord:i}=Cn(r,t);if(!o)return;const s={...t,referenceRecord:{...t.referenceRecord,...i}},{url:a,properties:c,headers:u}=n;return t.logger?.debug?.(Sn,`Resolving endpoint from template: ${xn(n)}`),{...null!=u&&{headers:jn(u,s)},...null!=c&&{properties:Ln(c,s)},url:Bn(a,s)}},Dn=(e,t)=>{const{conditions:r,error:n}=e,{result:o,referenceRecord:i}=Cn(r,t);if(o)throw new An(Rn(n,"Error",{...t,referenceRecord:{...t.referenceRecord,...i}}))},Un=(e,t)=>{const{conditions:r,rules:n}=e,{result:o,referenceRecord:i}=Cn(r,t);if(o)return $n(n,{...t,referenceRecord:{...t.referenceRecord,...i}})},$n=(e,t)=>{for(const r of e)if("endpoint"===r.type){const e=Fn(r,t);if(e)return e}else if("error"===r.type)Dn(r,t);else{if("tree"!==r.type)throw new An(`Unknown endpoint rule: ${r}`);{const e=Un(r,t);if(e)return e}}throw new An("Rules evaluation failed")},Hn=(e,t=!1)=>{if(t){for(const t of e.split("."))if(!Hn(t))return!1;return!0}return!!wn(e)&&(!(e.length<3||e.length>63)&&(e===e.toLowerCase()&&!yn(e)))};let zn=JSON.parse('{"partitions":[{"id":"aws","outputs":{"dnsSuffix":"amazonaws.com","dualStackDnsSuffix":"api.aws","implicitGlobalRegion":"us-east-1","name":"aws","supportsDualStack":true,"supportsFIPS":true},"regionRegex":"^(us|eu|ap|sa|ca|me|af|il)\\\\-\\\\w+\\\\-\\\\d+$","regions":{"af-south-1":{"description":"Africa (Cape Town)"},"ap-east-1":{"description":"Asia Pacific (Hong Kong)"},"ap-northeast-1":{"description":"Asia Pacific (Tokyo)"},"ap-northeast-2":{"description":"Asia Pacific (Seoul)"},"ap-northeast-3":{"description":"Asia Pacific (Osaka)"},"ap-south-1":{"description":"Asia Pacific (Mumbai)"},"ap-south-2":{"description":"Asia Pacific (Hyderabad)"},"ap-southeast-1":{"description":"Asia Pacific (Singapore)"},"ap-southeast-2":{"description":"Asia Pacific (Sydney)"},"ap-southeast-3":{"description":"Asia Pacific (Jakarta)"},"ap-southeast-4":{"description":"Asia Pacific (Melbourne)"},"aws-global":{"description":"AWS Standard global region"},"ca-central-1":{"description":"Canada (Central)"},"eu-central-1":{"description":"Europe (Frankfurt)"},"eu-central-2":{"description":"Europe (Zurich)"},"eu-north-1":{"description":"Europe (Stockholm)"},"eu-south-1":{"description":"Europe (Milan)"},"eu-south-2":{"description":"Europe (Spain)"},"eu-west-1":{"description":"Europe (Ireland)"},"eu-west-2":{"description":"Europe (London)"},"eu-west-3":{"description":"Europe (Paris)"},"il-central-1":{"description":"Israel (Tel Aviv)"},"me-central-1":{"description":"Middle East (UAE)"},"me-south-1":{"description":"Middle East (Bahrain)"},"sa-east-1":{"description":"South America (Sao Paulo)"},"us-east-1":{"description":"US East (N. Virginia)"},"us-east-2":{"description":"US East (Ohio)"},"us-west-1":{"description":"US West (N. California)"},"us-west-2":{"description":"US West (Oregon)"}}},{"id":"aws-cn","outputs":{"dnsSuffix":"amazonaws.com.cn","dualStackDnsSuffix":"api.amazonwebservices.com.cn","implicitGlobalRegion":"cn-northwest-1","name":"aws-cn","supportsDualStack":true,"supportsFIPS":true},"regionRegex":"^cn\\\\-\\\\w+\\\\-\\\\d+$","regions":{"aws-cn-global":{"description":"AWS China global region"},"cn-north-1":{"description":"China (Beijing)"},"cn-northwest-1":{"description":"China (Ningxia)"}}},{"id":"aws-us-gov","outputs":{"dnsSuffix":"amazonaws.com","dualStackDnsSuffix":"api.aws","implicitGlobalRegion":"us-gov-west-1","name":"aws-us-gov","supportsDualStack":true,"supportsFIPS":true},"regionRegex":"^us\\\\-gov\\\\-\\\\w+\\\\-\\\\d+$","regions":{"aws-us-gov-global":{"description":"AWS GovCloud (US) global region"},"us-gov-east-1":{"description":"AWS GovCloud (US-East)"},"us-gov-west-1":{"description":"AWS GovCloud (US-West)"}}},{"id":"aws-iso","outputs":{"dnsSuffix":"c2s.ic.gov","dualStackDnsSuffix":"c2s.ic.gov","implicitGlobalRegion":"us-iso-east-1","name":"aws-iso","supportsDualStack":false,"supportsFIPS":true},"regionRegex":"^us\\\\-iso\\\\-\\\\w+\\\\-\\\\d+$","regions":{"aws-iso-global":{"description":"AWS ISO (US) global region"},"us-iso-east-1":{"description":"US ISO East"},"us-iso-west-1":{"description":"US ISO WEST"}}},{"id":"aws-iso-b","outputs":{"dnsSuffix":"sc2s.sgov.gov","dualStackDnsSuffix":"sc2s.sgov.gov","implicitGlobalRegion":"us-isob-east-1","name":"aws-iso-b","supportsDualStack":false,"supportsFIPS":true},"regionRegex":"^us\\\\-isob\\\\-\\\\w+\\\\-\\\\d+$","regions":{"aws-iso-b-global":{"description":"AWS ISOB (US) global region"},"us-isob-east-1":{"description":"US ISOB East (Ohio)"}}},{"id":"aws-iso-e","outputs":{"dnsSuffix":"cloud.adc-e.uk","dualStackDnsSuffix":"cloud.adc-e.uk","implicitGlobalRegion":"eu-isoe-west-1","name":"aws-iso-e","supportsDualStack":false,"supportsFIPS":true},"regionRegex":"^eu\\\\-isoe\\\\-\\\\w+\\\\-\\\\d+$","regions":{}},{"id":"aws-iso-f","outputs":{"dnsSuffix":"csp.hci.ic.gov","dualStackDnsSuffix":"csp.hci.ic.gov","implicitGlobalRegion":"us-isof-south-1","name":"aws-iso-f","supportsDualStack":false,"supportsFIPS":true},"regionRegex":"^us\\\\-isof\\\\-\\\\w+\\\\-\\\\d+$","regions":{}}],"version":"1.1"}'),Vn="";const qn={isVirtualHostableS3Bucket:Hn,parseArn:e=>{const t=e.split(":");if(t.length<6)return null;const[r,n,o,i,s,...a]=t;return"arn"!==r||""===n||""===o||""===a[0]?null:{partition:n,service:o,region:i,accountId:s,resourceId:a[0].includes("/")?a[0].split("/"):a}},partition:e=>{const{partitions:t}=zn;for(const r of t){const{regions:t,outputs:n}=r;for(const[r,o]of Object.entries(t))if(r===e)return{...n,...o}}for(const r of t){const{regionRegex:t,outputs:n}=r;if(new RegExp(t).test(e))return{...n}}const r=t.find((e=>"aws"===e.id));if(!r)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...r.outputs}}};_n.aws=qn;const Gn="user-agent",Wn="x-amz-user-agent",Zn=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g,Kn=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w\#]/g,Yn=e=>(t,r)=>async n=>{const{request:o}=n;if(!Xt.isInstance(o))return t(n);const{headers:i}=o,s=r?.userAgent?.map(Qn)||[],a=(await e.defaultUserAgentProvider()).map(Qn),c=e?.customUserAgent?.map(Qn)||[],u=(Vn?[Vn]:[]).concat([...a,...s,...c]).join(" "),l=[...a.filter((e=>e.startsWith("aws-sdk-"))),...c].join(" ");return"browser"!==e.runtime?(l&&(i[Wn]=i[Wn]?`${i[Gn]} ${l}`:l),i[Gn]=u):i[Wn]=u,t({...n,request:o})},Qn=e=>{const t=e[0].split("/").map((e=>e.replace(Zn,"-"))).join("/"),r=e[1]?.replace(Kn,"-"),n=t.indexOf("/"),o=t.substring(0,n);let i=t.substring(n+1);return"api"===o&&(i=i.toLowerCase()),[o,i,r].filter((e=>e&&e.length>0)).reduce(((e,t,r)=>{switch(r){case 0:return t;case 1:return`${e}/${t}`;default:return`${e}#${t}`}}),"")},Jn={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0};var Xn;!function(e){e.ENV="env",e.CONFIG="shared config entry"}(Xn||(Xn={}));const eo=e=>"string"==typeof e&&(e.startsWith("fips-")||e.endsWith("-fips")),to=e=>eo(e)?["fips-aws-global","aws-fips"].includes(e)?"us-east-1":e.replace(/fips-(dkr-|prod-)?|-fips/,""):e,ro="content-length";const no={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},oo=e=>({applyToStack:t=>{var r;t.add((r=e.bodyLengthChecker,e=>async t=>{const n=t.request;if(Xt.isInstance(n)){const{body:e,headers:t}=n;if(e&&-1===Object.keys(t).map((e=>e.toLowerCase())).indexOf(ro))try{const t=r(e);n.headers={...n.headers,[ro]:String(t)}}catch(e){}}return e({...t,request:n})}),no)}}),io=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,so=/(\d+\.){3}\d+/,ao=/\.\./,co=e=>io.test(e)&&!so.test(e)&&!ao.test(e),uo=e=>{const[t,r,n,o,i,s]=e.split(":"),a="arn"===t&&e.split(":").length>=6,c=5===[t,r,n,i,s].filter(Boolean).length;if(a&&!c)throw new Error(`Invalid ARN: ${e} was an invalid ARN.`);return!!("arn"===t&&r&&n&&i&&s)},lo=(e,t,r)=>{const n=async()=>{const n=r[e]??r[t];return"function"==typeof n?n():n};return"credentialScope"===e||"CredentialScope"===t?async()=>{const e="function"==typeof r.credentials?await r.credentials():r.credentials;return e?.credentialScope??e?.CredentialScope}:"endpoint"===e||"endpoint"===t?async()=>{const e=await n();if(e&&"object"==typeof e){if("url"in e)return e.url.href;if("hostname"in e){const{protocol:t,hostname:r,port:n,path:o}=e;return`${t}//${r}${n?":"+n:""}${o}`}}return e}:n};const fo=e=>{if("string"==typeof e)return fo(new URL(e));const{hostname:t,pathname:r,port:n,protocol:o,search:i}=e;let s;return i&&(s=function(e){const t={};if(e=e.replace(/^\?/,""))for(const r of e.split("&")){let[e,n=null]=r.split("=");e=decodeURIComponent(e),n&&(n=decodeURIComponent(n)),e in t?Array.isArray(t[e])?t[e].push(n):t[e]=[t[e],n]:t[e]=n}return t}(i)),{hostname:t,port:n?parseInt(n):void 0,protocol:o,path:r,query:s}},po=e=>"object"==typeof e?"url"in e?fo(e.url):e:fo(e),ho=async(e,t,r)=>{const n={},o=t?.getEndpointParameterInstructions?.()||{};for(const[t,i]of Object.entries(o))switch(i.type){case"staticContextParams":n[t]=i.value;break;case"contextParams":n[t]=e[i.name];break;case"clientContextParams":case"builtInParams":n[t]=await lo(i.name,t,r)();break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(i))}return 0===Object.keys(o).length&&Object.assign(n,r),"s3"===String(r.serviceId).toLowerCase()&&await(async e=>{const t=e?.Bucket||"";if("string"==typeof e.Bucket&&(e.Bucket=t.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"))),uo(t)){if(!0===e.ForcePathStyle)throw new Error("Path-style addressing cannot be used with ARN buckets")}else(!co(t)||-1!==t.indexOf(".")&&!String(e.Endpoint).startsWith("http:")||t.toLowerCase()!==t||t.length<3)&&(e.ForcePathStyle=!0);return e.DisableMultiRegionAccessPoints&&(e.disableMultiRegionAccessPoints=!0,e.DisableMRAP=!0),e})(n),n},go=({config:e,instructions:t})=>(r,n)=>async o=>{const i=await(async(e,t,r,n)=>{if(!r.endpoint){const e=await(async e=>{})(r.serviceId);e&&(r.endpoint=()=>Promise.resolve(po(e)))}const o=await ho(e,t,r);if("function"!=typeof r.endpointProvider)throw new Error("config.endpointProvider is not set.");return r.endpointProvider(o,n)})(o.input,{getEndpointParameterInstructions:()=>t},{...e},n);n.endpointV2=i,n.authSchemes=i.properties?.authSchemes;const s=n.authSchemes?.[0];if(s){n.signing_region=s.signingRegion,n.signing_service=s.signingName;const e=(e=>e[Yt]||(e[Yt]={}))(n),t=e?.selectedHttpAuthScheme?.httpAuthOption;t&&(t.signingProperties=Object.assign(t.signingProperties||{},{signing_region:s.signingRegion,signingRegion:s.signingRegion,signing_service:s.signingName,signingName:s.signingName,signingRegionSet:s.signingRegionSet},s.properties))}return r({...o})},mo={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},ko={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};function bo(e,t,r){return{applyToStack:n=>{n.add(((e,t)=>(r,n)=>async n=>{const{response:o}=await r(n);try{return{response:o,output:await t(o,e)}}catch(e){if(Object.defineProperty(e,"$response",{value:o}),!("$metadata"in e)){const t="Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.";e.message+="\n "+t}throw e}})(e,r),mo),n.add(((e,t)=>(r,n)=>async o=>{const i=n.endpointV2?.url&&e.urlParser?async()=>e.urlParser(n.endpointV2.url):e.endpoint;if(!i)throw new Error("No valid endpoint provider available.");const s=await t(o.input,{...e,endpoint:i});return r({...o,request:s})})(e,t),ko)}}}const yo={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:ko.name},vo=(e,t)=>({applyToStack:r=>{r.addRelativeTo(go({config:e,instructions:t}),yo)}});var wo;!function(e){e.STANDARD="standard",e.ADAPTIVE="adaptive"}(wo||(wo={}));const _o=wo.STANDARD,So=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],xo=["TimeoutError","RequestTimeout","RequestTimeoutException"],Ao=[500,502,503,504],Eo=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],Io=e=>429===e.$metadata?.httpStatusCode||So.includes(e.name)||1==e.$retryable?.throttling,Oo=e=>(e=>e.$metadata?.clockSkewCorrected)(e)||xo.includes(e.name)||Eo.includes(e?.code||"")||Ao.includes(e.$metadata?.httpStatusCode||0);class Po{constructor(e){this.currentCapacity=0,this.enabled=!1,this.lastMaxRate=0,this.measuredTxRate=0,this.requestCount=0,this.lastTimestamp=0,this.timeWindow=0,this.beta=e?.beta??.7,this.minCapacity=e?.minCapacity??1,this.minFillRate=e?.minFillRate??.5,this.scaleConstant=e?.scaleConstant??.4,this.smooth=e?.smooth??.8;const t=this.getCurrentTimeInSeconds();this.lastThrottleTime=t,this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}getCurrentTimeInSeconds(){return Date.now()/1e3}async getSendToken(){return this.acquireTokenBucket(1)}async acquireTokenBucket(e){if(this.enabled){if(this.refillTokenBucket(),e>this.currentCapacity){const t=(e-this.currentCapacity)/this.fillRate*1e3;await new Promise((e=>setTimeout(e,t)))}this.currentCapacity=this.currentCapacity-e}}refillTokenBucket(){const e=this.getCurrentTimeInSeconds();if(!this.lastTimestamp)return void(this.lastTimestamp=e);const t=(e-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+t),this.lastTimestamp=e}updateClientSendingRate(e){let t;if(this.updateMeasuredRate(),Io(e)){const e=this.enabled?Math.min(this.measuredTxRate,this.fillRate):this.measuredTxRate;this.lastMaxRate=e,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),t=this.cubicThrottle(e),this.enableTokenBucket()}else this.calculateTimeWindow(),t=this.cubicSuccess(this.getCurrentTimeInSeconds());const r=Math.min(t,2*this.measuredTxRate);this.updateTokenBucketRate(r)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,1/3))}cubicThrottle(e){return this.getPrecise(e*this.beta)}cubicSuccess(e){return this.getPrecise(this.scaleConstant*Math.pow(e-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(e){this.refillTokenBucket(),this.fillRate=Math.max(e,this.minFillRate),this.maxCapacity=Math.max(e,this.minCapacity),this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){const e=this.getCurrentTimeInSeconds(),t=Math.floor(2*e)/2;if(this.requestCount++,t>this.lastTxRateBucket){const e=this.requestCount/(t-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(e*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=t}}getPrecise(e){return parseFloat(e.toFixed(8))}}const Ro=100,To=2e4,Mo="amz-sdk-invocation-id",Co="amz-sdk-request",jo=({retryDelay:e,retryCount:t,retryCost:r})=>({getRetryCount:()=>t,getRetryDelay:()=>Math.min(To,e),getRetryCost:()=>r});class No{constructor(e){this.maxAttempts=e,this.mode=wo.STANDARD,this.capacity=500,this.retryBackoffStrategy=(()=>{let e=Ro;return{computeNextBackoffDelay:t=>Math.floor(Math.min(To,Math.random()*2**t*e)),setDelayBase:t=>{e=t}}})(),this.maxAttemptsProvider="function"==typeof e?e:async()=>e}async acquireInitialRetryToken(e){return jo({retryDelay:Ro,retryCount:0})}async refreshRetryTokenForRetry(e,t){const r=await this.getMaxAttempts();if(this.shouldRetry(e,t,r)){const r=t.errorType;this.retryBackoffStrategy.setDelayBase("THROTTLING"===r?500:Ro);const n=this.retryBackoffStrategy.computeNextBackoffDelay(e.getRetryCount()),o=t.retryAfterHint?Math.max(t.retryAfterHint.getTime()-Date.now()||0,n):n,i=this.getCapacityCost(r);return this.capacity-=i,jo({retryDelay:o,retryCount:e.getRetryCount()+1,retryCost:i})}throw new Error("No retry token available")}recordSuccess(e){this.capacity=Math.max(500,this.capacity+(e.getRetryCost()??1))}getCapacity(){return this.capacity}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch(e){return console.warn("Max attempts provider could not resolve. Using default of 3"),3}}shouldRetry(e,t,r){return e.getRetryCount()+1<r&&this.capacity>=this.getCapacityCost(t.errorType)&&this.isRetryableError(t.errorType)}getCapacityCost(e){return"TRANSIENT"===e?10:5}isRetryableError(e){return"THROTTLING"===e||"TRANSIENT"===e}}class Lo{constructor(e,t){this.maxAttemptsProvider=e,this.mode=wo.ADAPTIVE;const{rateLimiter:r}=t??{};this.rateLimiter=r??new Po,this.standardRetryStrategy=new No(e)}async acquireInitialRetryToken(e){return await this.rateLimiter.getSendToken(),this.standardRetryStrategy.acquireInitialRetryToken(e)}async refreshRetryTokenForRetry(e,t){return this.rateLimiter.updateClientSendingRate(t),this.standardRetryStrategy.refreshRetryTokenForRetry(e,t)}recordSuccess(e){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(e)}}var Bo,Fo=new Uint8Array(16);function Do(){if(!Bo&&!(Bo="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Bo(Fo)}const Uo=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;const $o=function(e){return"string"==typeof e&&Uo.test(e)};for(var Ho=[],zo=0;zo<256;++zo)Ho.push((zo+256).toString(16).substr(1));const Vo=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(Ho[e[t+0]]+Ho[e[t+1]]+Ho[e[t+2]]+Ho[e[t+3]]+"-"+Ho[e[t+4]]+Ho[e[t+5]]+"-"+Ho[e[t+6]]+Ho[e[t+7]]+"-"+Ho[e[t+8]]+Ho[e[t+9]]+"-"+Ho[e[t+10]]+Ho[e[t+11]]+Ho[e[t+12]]+Ho[e[t+13]]+Ho[e[t+14]]+Ho[e[t+15]]).toLowerCase();if(!$o(r))throw TypeError("Stringified UUID is invalid");return r};const qo=function(e,t,r){var n=(e=e||{}).random||(e.rng||Do)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(var o=0;o<16;++o)t[r+o]=n[o];return t}return Vo(n)},Go=e=>e instanceof Error?e:e instanceof Object?Object.assign(new Error,e):"string"==typeof e?new Error(e):new Error(`AWS SDK error wrapper for ${e}`);class Wo{trace(){}debug(){}info(){}warn(){}error(){}}const Zo=(e,t)=>{const r=[];if(e&&r.push(e),t)for(const e of t)r.push(e);return r},Ko=(e,t)=>`${e||"anonymous"}${t&&t.length>0?` (a.k.a. ${t.join(",")})`:""}`,Yo=()=>{let e=[],t=[],r=!1;const n=new Set,o=r=>(e.forEach((e=>{r.add(e.middleware,{...e})})),t.forEach((e=>{r.addRelativeTo(e.middleware,{...e})})),r.identifyOnResolve?.(a.identifyOnResolve()),r),i=e=>{const t=[];return e.before.forEach((e=>{0===e.before.length&&0===e.after.length?t.push(e):t.push(...i(e))})),t.push(e),e.after.reverse().forEach((e=>{0===e.before.length&&0===e.after.length?t.push(e):t.push(...i(e))})),t},s=(r=!1)=>{const n=[],o=[],s={};e.forEach((e=>{const t={...e,before:[],after:[]};for(const e of Zo(t.name,t.aliases))s[e]=t;n.push(t)})),t.forEach((e=>{const t={...e,before:[],after:[]};for(const e of Zo(t.name,t.aliases))s[e]=t;o.push(t)})),o.forEach((e=>{if(e.toMiddleware){const t=s[e.toMiddleware];if(void 0===t){if(r)return;throw new Error(`${e.toMiddleware} is not found when adding ${Ko(e.name,e.aliases)} middleware ${e.relation} ${e.toMiddleware}`)}"after"===e.relation&&t.after.push(e),"before"===e.relation&&t.before.push(e)}}));const a=(c=n,c.sort(((e,t)=>Qo[t.step]-Qo[e.step]||Jo[t.priority||"normal"]-Jo[e.priority||"normal"]))).map(i).reduce(((e,t)=>(e.push(...t),e)),[]);var c;return a},a={add:(t,r={})=>{const{name:o,override:i,aliases:s}=r,a={step:"initialize",priority:"normal",middleware:t,...r},c=Zo(o,s);if(c.length>0){if(c.some((e=>n.has(e)))){if(!i)throw new Error(`Duplicate middleware name '${Ko(o,s)}'`);for(const t of c){const r=e.findIndex((e=>e.name===t||e.aliases?.some((e=>e===t))));if(-1===r)continue;const n=e[r];if(n.step!==a.step||a.priority!==n.priority)throw new Error(`"${Ko(n.name,n.aliases)}" middleware with ${n.priority} priority in ${n.step} step cannot be overridden by "${Ko(o,s)}" middleware with ${a.priority} priority in ${a.step} step.`);e.splice(r,1)}}for(const e of c)n.add(e)}e.push(a)},addRelativeTo:(e,r)=>{const{name:o,override:i,aliases:s}=r,a={middleware:e,...r},c=Zo(o,s);if(c.length>0){if(c.some((e=>n.has(e)))){if(!i)throw new Error(`Duplicate middleware name '${Ko(o,s)}'`);for(const e of c){const r=t.findIndex((t=>t.name===e||t.aliases?.some((t=>t===e))));if(-1===r)continue;const n=t[r];if(n.toMiddleware!==a.toMiddleware||n.relation!==a.relation)throw new Error(`"${Ko(n.name,n.aliases)}" middleware ${n.relation} "${n.toMiddleware}" middleware cannot be overridden by "${Ko(o,s)}" middleware ${a.relation} "${a.toMiddleware}" middleware.`);t.splice(r,1)}}for(const e of c)n.add(e)}t.push(a)},clone:()=>o(Yo()),use:e=>{e.applyToStack(a)},remove:r=>"string"==typeof r?(r=>{let o=!1;const i=e=>{const t=Zo(e.name,e.aliases);if(t.includes(r)){o=!0;for(const e of t)n.delete(e);return!1}return!0};return e=e.filter(i),t=t.filter(i),o})(r):(r=>{let o=!1;const i=e=>{if(e.middleware===r){o=!0;for(const t of Zo(e.name,e.aliases))n.delete(t);return!1}return!0};return e=e.filter(i),t=t.filter(i),o})(r),removeByTag:r=>{let o=!1;const i=e=>{const{tags:t,name:i,aliases:s}=e;if(t&&t.includes(r)){const e=Zo(i,s);for(const t of e)n.delete(t);return o=!0,!1}return!0};return e=e.filter(i),t=t.filter(i),o},concat:e=>{const t=o(Yo());return t.use(e),t.identifyOnResolve(r||t.identifyOnResolve()||(e.identifyOnResolve?.()??!1)),t},applyToStack:o,identify:()=>s(!0).map((e=>{const t=e.step??e.relation+" "+e.toMiddleware;return Ko(e.name,e.aliases)+" - "+t})),identifyOnResolve:e=>("boolean"==typeof e&&(r=e),r),resolve:(e,t)=>{for(const r of s().map((e=>e.middleware)).reverse())e=r(e,t);return r&&console.log(a.identify()),e}};return a},Qo={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},Jo={high:3,normal:2,low:1};class Xo{constructor(e){this.middlewareStack=Yo(),this.config=e}send(e,t,r){const n="function"!=typeof t?t:void 0,o="function"==typeof t?t:r,i=e.resolveMiddleware(this.middlewareStack,this.config,n);if(!o)return i(e).then((e=>e.output));i(e).then((e=>o(null,e.output)),(e=>o(e))).catch((()=>{}))}destroy(){this.config.requestHandler.destroy&&this.config.requestHandler.destroy()}}const ei={},ti=new Array(64);for(let e=0,t="A".charCodeAt(0),r="Z".charCodeAt(0);e+t<=r;e++){const r=String.fromCharCode(e+t);ei[r]=e,ti[e]=r}for(let e=0,t="a".charCodeAt(0),r="z".charCodeAt(0);e+t<=r;e++){const r=String.fromCharCode(e+t),n=e+26;ei[r]=n,ti[n]=r}for(let e=0;e<10;e++){ei[e.toString(10)]=e+52;const t=e.toString(10),r=e+52;ei[t]=r,ti[r]=t}ei["+"]=62,ti[62]="+",ei["/"]=63,ti[63]="/";const ri=6,ni=8,oi=63,ii=e=>{let t=e.length/4*3;"=="===e.slice(-2)?t-=2:"="===e.slice(-1)&&t--;const r=new ArrayBuffer(t),n=new DataView(r);for(let t=0;t<e.length;t+=4){let r=0,o=0;for(let n=t,i=t+3;n<=i;n++)if("="!==e[n]){if(!(e[n]in ei))throw new TypeError(`Invalid character ${e[n]} in base64 string.`);r|=ei[e[n]]<<(i-n)*ri,o+=ri}else r>>=ri;const i=t/4*3;r>>=o%ni;const s=Math.floor(o/ni);for(let e=0;e<s;e++){const t=(s-e-1)*ni;n.setUint8(i+e,(r&255<<t)>>t)}}return new Uint8Array(r)};function si(e){let t="";for(let r=0;r<e.length;r+=3){let n=0,o=0;for(let t=r,i=Math.min(r+3,e.length);t<i;t++)n|=e[t]<<(i-t-1)*ni,o+=ni;const i=Math.ceil(o/ri);n<<=i*ri-o;for(let e=1;e<=i;e++){const r=(i-e)*ri;t+=ti[(n&oi<<r)>>r]}t+="==".slice(0,4-i)}return t}class ai extends Uint8Array{static fromString(e,t="utf-8"){if("string"==typeof e)return function(e,t){return"base64"===t?ai.mutate(ii(e)):ai.mutate(Cr(e))}(e,t);throw new Error(`Unsupported conversion from ${typeof e} to Uint8ArrayBlobAdapter.`)}static mutate(e){return Object.setPrototypeOf(e,ai.prototype),e}transformToString(e="utf-8"){return function(e,t="utf-8"){return"base64"===t?si(e):Mr(e)}(this,e)}}function ci(e=0){return new Promise(((t,r)=>{e&&setTimeout((()=>{const t=new Error(`Request did not complete within ${e} ms`);t.name="TimeoutError",r(t)}),e)}))}const ui=Boolean("undefined"!=typeof Request&&"keepalive"in new Request("https://[::1]"));class li{static create(e){return"function"==typeof e?.handle?e:new li(e)}constructor(e){"function"==typeof e?this.configProvider=e().then((e=>e||{})):(this.config=e??{},this.configProvider=Promise.resolve(this.config))}destroy(){}async handle(e,{abortSignal:t}={}){this.config||(this.config=await this.configProvider);const r=this.config.requestTimeout,n=!0===this.config.keepAlive;if(t?.aborted){const e=new Error("Request aborted");return e.name="AbortError",Promise.reject(e)}let o=e.path;const i=function(e){const t=[];for(let r of Object.keys(e).sort()){const n=e[r];if(r=tn(r),Array.isArray(n))for(let e=0,o=n.length;e<o;e++)t.push(`${r}=${tn(n[e])}`);else{let e=r;(n||"string"==typeof n)&&(e+=`=${tn(n)}`),t.push(e)}}return t.join("&")}(e.query||{});i&&(o+=`?${i}`),e.fragment&&(o+=`#${e.fragment}`);let s="";if(null!=e.username||null!=e.password){s=`${e.username??""}:${e.password??""}@`}const{port:a,method:c}=e,u=`${e.protocol}//${s}${e.hostname}${a?`:${a}`:""}${o}`,l={body:"GET"===c||"HEAD"===c?void 0:e.body,headers:new Headers(e.headers),method:c};"undefined"!=typeof AbortController&&(l.signal=t),ui&&(l.keepalive=n);const d=new Request(u,l),f=[fetch(d).then((e=>{const t=e.headers,r={};for(const e of t.entries())r[e[0]]=e[1];return null!=e.body?{response:new er({headers:r,reason:e.statusText,statusCode:e.status,body:e.body})}:e.blob().then((t=>({response:new er({headers:r,reason:e.statusText,statusCode:e.status,body:t})})))})),ci(r)];return t&&f.push(new Promise(((e,r)=>{t.onabort=()=>{const e=new Error("Request aborted");e.name="AbortError",r(e)}}))),Promise.race(f)}updateHttpClientConfig(e,t){this.config=void 0,this.configProvider=this.configProvider.then((r=>(r[e]=t,r)))}httpHandlerConfigs(){return this.config??{}}}const di=e=>"function"==typeof Blob&&e instanceof Blob?async function(e){const t=await function(e){return new Promise(((t,r)=>{const n=new FileReader;n.onloadend=()=>{if(2!==n.readyState)return r(new Error("Reader aborted too early"));const e=n.result??"",o=e.indexOf(","),i=o>-1?o+1:e.length;t(e.substring(i))},n.onabort=()=>r(new Error("Read aborted")),n.onerror=()=>r(n.error),n.readAsDataURL(e)}))}(e),r=ii(t);return new Uint8Array(r)}(e):async function(e){let t=new Uint8Array(0);const r=e.getReader();let n=!1;for(;!n;){const{done:e,value:o}=await r.read();if(o){const e=t;t=new Uint8Array(e.length+o.length),t.set(e),t.set(o,e.length)}n=e}return t}(e);const fi=async(e=new Uint8Array,t)=>{if(e instanceof Uint8Array)return ai.mutate(e);if(!e)return ai.mutate(new Uint8Array);const r=t.streamCollector(e);return ai.mutate(await r)};class pi{constructor(){this.middlewareStack=Yo()}static classBuilder(){return new hi}resolveMiddlewareWithContext(e,t,r,{middlewareFn:n,clientName:o,commandName:i,inputFilterSensitiveLog:s,outputFilterSensitiveLog:a,smithyContext:c,additionalContext:u,CommandCtor:l}){for(const o of n.bind(this)(l,e,t,r))this.middlewareStack.use(o);const d=e.concat(this.middlewareStack),{logger:f}=t,p={logger:f,clientName:o,commandName:i,inputFilterSensitiveLog:s,outputFilterSensitiveLog:a,[Yt]:{...c},...u},{requestHandler:h}=t;return d.resolve((e=>h.handle(e.request,r||{})),p)}}class hi{constructor(){this._init=()=>{},this._ep={},this._middlewareFn=()=>[],this._commandName="",this._clientName="",this._additionalContext={},this._smithyContext={},this._inputFilterSensitiveLog=e=>e,this._outputFilterSensitiveLog=e=>e,this._serializer=null,this._deserializer=null}init(e){this._init=e}ep(e){return this._ep=e,this}m(e){return this._middlewareFn=e,this}s(e,t,r={}){return this._smithyContext={service:e,operation:t,...r},this}c(e={}){return this._additionalContext=e,this}n(e,t){return this._clientName=e,this._commandName=t,this}f(e=(e=>e),t=(e=>e)){return this._inputFilterSensitiveLog=e,this._outputFilterSensitiveLog=t,this}ser(e){return this._serializer=e,this}de(e){return this._deserializer=e,this}build(){const e=this;let t;return t=class extends pi{static getEndpointParameterInstructions(){return e._ep}constructor(t){super(),this.input=t,this.serialize=e._serializer,this.deserialize=e._deserializer,e._init(this)}resolveMiddleware(r,n,o){return this.resolveMiddlewareWithContext(r,n,o,{CommandCtor:t,middlewareFn:e._middlewareFn,clientName:e._clientName,commandName:e._commandName,inputFilterSensitiveLog:e._inputFilterSensitiveLog,outputFilterSensitiveLog:e._outputFilterSensitiveLog,smithyContext:e._smithyContext,additionalContext:e._additionalContext})}}}}const gi="***SensitiveInformation***",mi=(Math.ceil(2**127*(2-2**-23)),e=>{if(null!=e){if(Number.isInteger(e)&&!Number.isNaN(e))return e;throw new TypeError(`Expected integer, got ${typeof e}: ${e}`)}}),ki=e=>bi(e,32),bi=(e,t)=>{const r=mi(e);if(void 0!==r&&yi(r,t)!==r)throw new TypeError(`Expected ${t}-bit integer, got ${e}`);return r},yi=(e,t)=>{switch(t){case 32:return Int32Array.of(e)[0];case 16:return Int16Array.of(e)[0];case 8:return Int8Array.of(e)[0]}},vi=e=>{if(null!=e){if("string"==typeof e)return e;if(["boolean","number","bigint"].includes(typeof e))return _i.warn(wi(`Expected string, got ${typeof e}: ${e}`)),String(e);throw new TypeError(`Expected string, got ${typeof e}: ${e}`)}},wi=e=>String(new TypeError(e).stack||e).split("\n").slice(0,5).filter((e=>!e.includes("stackTraceWarning"))).join("\n"),_i={warn:console.warn};class Si extends Error{constructor(e){super(e.message),Object.setPrototypeOf(this,Si.prototype),this.name=e.name,this.$fault=e.$fault,this.$metadata=e.$metadata}}const xi=(e,t={})=>{Object.entries(t).filter((([,e])=>void 0!==e)).forEach((([t,r])=>{null!=e[t]&&""!==e[t]||(e[t]=r)}));const r=e.message||e.Message||"UnknownError";return e.message=r,delete e.Message,e},Ai=e=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}),Ei=e=>{switch(e){case"standard":case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"mobile":return{retryMode:"standard",connectionTimeout:3e4};default:return{}}},Ii=e=>{const t=[];for(const r in Zt){const n=Zt[r];void 0!==e[n]&&t.push({algorithmId:()=>n,checksumConstructor:()=>e[n]})}return{_checksumAlgorithms:t,addChecksumAlgorithm(e){this._checksumAlgorithms.push(e)},checksumAlgorithms(){return this._checksumAlgorithms}}},Oi=e=>{const t={};return e.checksumAlgorithms().forEach((e=>{t[e.algorithmId()]=e.checksumConstructor()})),t},Pi=e=>{let t=e.retryStrategy;return{setRetryStrategy(e){t=e},retryStrategy:()=>t}},Ri=e=>{const t={};return t.retryStrategy=e.retryStrategy(),t},Ti=e=>({...Ii(e),...Pi(e)}),Mi=function(){const e=Object.getPrototypeOf(this).constructor,t=new(Function.bind.apply(String,[null,...arguments]));return Object.setPrototypeOf(t,e.prototype),t};Mi.prototype=Object.create(String.prototype,{constructor:{value:Mi,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf(Mi,String);function Ci(e,t,r){let n,o,i;if(void 0===t&&void 0===r)n={},i=e;else{if(n=e,"function"==typeof t)return o=t,i=r,Ni(n,o,i);i=t}for(const e of Object.keys(i))Array.isArray(i[e])?Li(n,null,i,e):n[e]=i[e];return n}const ji=(e,t)=>{const r={};for(const n in t)Li(r,e,t,n);return r},Ni=(e,t,r)=>Ci(e,Object.entries(r).reduce(((e,[r,n])=>(Array.isArray(n)?e[r]=n:e[r]="function"==typeof n?[t,n()]:[t,n],e)),{})),Li=(e,t,r,n)=>{if(null!==t){let o=r[n];"function"==typeof o&&(o=[,o]);const[i=Bi,s=Fi,a=n]=o;return void(("function"==typeof i&&i(t[a])||"function"!=typeof i&&i)&&(e[n]=s(t[a])))}let[o,i]=r[n];if("function"==typeof i){let t;const r=void 0===o&&null!=(t=i()),s="function"==typeof o&&!!o(void 0)||"function"!=typeof o&&!!o;r?e[n]=t:s&&(e[n]=i())}else{const t=void 0===o&&null!=i,r="function"==typeof o&&!!o(i)||"function"!=typeof o&&!!o;(t||r)&&(e[n]=i)}},Bi=e=>null!=e,Fi=e=>e;function Di(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}const Ui=(e,t,r,n,o,i)=>{if(null==t||void 0===t[r])throw new Error("No value provided for input HTTP label: "+r+".");{const t=n();if(t.length<=0)throw new Error("Empty value provided for input HTTP label: "+r+".");e=e.replace(o,i?t.split("/").map((e=>Di(e))).join("/"):Di(t))}return e},$i=e=>e?.body instanceof ReadableStream,Hi=e=>void 0!==e.acquireInitialRetryToken&&void 0!==e.refreshRetryTokenForRetry&&void 0!==e.recordSuccess,zi=e=>{const t={error:e,errorType:Vi(e)},r=Wi(e.$response);return r&&(t.retryAfterHint=r),t},Vi=e=>Io(e)?"THROTTLING":Oo(e)?"TRANSIENT":(e=>{if(void 0!==e.$metadata?.httpStatusCode){const t=e.$metadata.httpStatusCode;return 500<=t&&t<=599&&!Oo(e)}return!1})(e)?"SERVER_ERROR":"CLIENT_ERROR",qi={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},Gi=e=>({applyToStack:t=>{t.add((e=>(t,r)=>async n=>{let o=await e.retryStrategy();const i=await e.maxAttempts();if(!Hi(o))return o?.mode&&(r.userAgent=[...r.userAgent||[],["cfg/retry-mode",o.mode]]),o.retry(t,n);{let e=await o.acquireInitialRetryToken(r.partition_id),s=new Error,a=0,c=0;const{request:u}=n,l=Xt.isInstance(u);for(l&&(u.headers[Mo]=qo());;)try{l&&(u.headers[Co]=`attempt=${a+1}; max=${i}`);const{response:r,output:s}=await t(n);return o.recordSuccess(e),s.$metadata.attempts=a+1,s.$metadata.totalRetryDelay=c,{response:r,output:s}}catch(t){const n=zi(t);if(s=Go(t),l&&$i(u))throw(r.logger instanceof Wo?console:r.logger)?.warn("An error was encountered in a non-retryable streaming request."),s;try{e=await o.refreshRetryTokenForRetry(e,n)}catch(e){throw s.$metadata||(s.$metadata={}),s.$metadata.attempts=a+1,s.$metadata.totalRetryDelay=c,s}a=e.getRetryCount();const i=e.getRetryDelay();c+=i,await new Promise((e=>setTimeout(e,i)))}}})(e),qi)}}),Wi=e=>{if(!er.isInstance(e))return;const t=Object.keys(e.headers).find((e=>"retry-after"===e.toLowerCase()));if(!t)return;const r=e.headers[t],n=Number(r);if(!Number.isNaN(n))return new Date(1e3*n);return new Date(r)},Zi="3.470.0";var Ki=r(2131),Yi=r(5369),Qi=r.n(Yi);const Ji=({serviceId:e,clientVersion:t})=>async()=>{const r="undefined"!=typeof window&&window?.navigator?.userAgent?Qi().parse(window.navigator.userAgent):void 0,n=[["aws-sdk-js",t],["ua","2.0"],[`os/${r?.os?.name||"other"}`,r?.os?.version],["lang/js"],["md/browser",`${r?.browser?.name??"unknown"}_${r?.browser?.version??"unknown"}`]];return e&&n.push([`api/${e}`,t]),n};function Xi(e,t){return async function(r){const{value:n}=r.headers[":message-type"];if("error"===n){const e=new Error(r.headers[":error-message"].value||"UnknownError");throw e.name=r.headers[":error-code"].value,e}if("exception"===n){const n=r.headers[":exception-type"].value,o={[n]:r},i=await e(o);if(i.$unknown){const e=new Error(t(r.body));throw e.name=n,e}throw i[n]}if("event"===n){const t={[r.headers[":event-type"].value]:r},n=await e(t);if(n.$unknown)return;return n}throw Error(`Unrecognizable event type: ${r.headers[":event-type"].value}`)}}class es{constructor({utf8Encoder:e,utf8Decoder:t}){this.eventStreamCodec=new Er(e,t),this.utfEncoder=e}deserialize(e,t){const r=function(e){let t=0,r=0,n=null,o=null;const i=e=>{if("number"!=typeof e)throw new Error("Attempted to allocate an event message where size was not a number: "+e);t=e,r=4,n=new Uint8Array(e),new DataView(n.buffer).setUint32(0,e,!1)};return{[Symbol.asyncIterator]:async function*(){const s=e[Symbol.asyncIterator]();for(;;){const{value:e,done:a}=await s.next();if(a){if(!t)return;if(t!==r)throw new Error("Truncated event message received.");return void(yield n)}const c=e.length;let u=0;for(;u<c;){if(!n){const t=c-u;o||(o=new Uint8Array(4));const n=Math.min(4-r,t);if(o.set(e.slice(u,u+n),r),r+=n,u+=n,r<4)break;i(new DataView(o.buffer).getUint32(0,!1)),o=null}const s=Math.min(t-r,c-u);n.set(e.slice(u,u+s),r),r+=s,u+=s,t&&t===r&&(yield n,n=null,t=0,r=0)}}}}}(e);return new Pr({messageStream:new Ir({inputStream:r,decoder:this.eventStreamCodec}),deserializer:Xi(t,this.utfEncoder)})}serialize(e,t){return new Or({messageStream:new Rr({inputStream:e,serializer:t}),encoder:this.eventStreamCodec,includeEndFrame:!0})}}class ts{constructor({utf8Encoder:e,utf8Decoder:t}){this.universalMarshaller=new es({utf8Decoder:t,utf8Encoder:e})}deserialize(e,t){const r=rs(e)?(n=e,{[Symbol.asyncIterator]:async function*(){const e=n.getReader();try{for(;;){const{done:t,value:r}=await e.read();if(t)return;yield r}}finally{e.releaseLock()}}}):e;var n;return this.universalMarshaller.deserialize(r,t)}serialize(e,t){const r=this.universalMarshaller.serialize(e,t);return"function"==typeof ReadableStream?(e=>{const t=e[Symbol.asyncIterator]();return new ReadableStream({async pull(e){const{done:r,value:n}=await t.next();if(r)return e.close();e.enqueue(n)}})})(r):r}}const rs=e=>"function"==typeof ReadableStream&&e instanceof ReadableStream,ns=e=>new ts(e),os="function"==typeof TextEncoder?new TextEncoder:null,is=e=>{if("string"==typeof e){if(os)return os.encode(e).byteLength;let t=e.length;for(let r=t-1;r>=0;r--){const n=e.charCodeAt(r);n>127&&n<=2047?t++:n>2047&&n<=65535&&(t+=2),n>=56320&&n<=57343&&r--}return t}if("number"==typeof e.byteLength)return e.byteLength;if("number"==typeof e.size)return e.size;throw new Error(`Body Length computation failed for ${e}`)},ss="required",as="fn",cs="argv",us="ref",ls="isSet",ds="booleanEquals",fs="error",ps="endpoint",hs="tree",gs="PartitionResult",ms={[ss]:!1,type:"String"},ks={[ss]:!0,default:!1,type:"Boolean"},bs={[us]:"Endpoint"},ys={[as]:ds,[cs]:[{[us]:"UseFIPS"},!0]},vs={[as]:ds,[cs]:[{[us]:"UseDualStack"},!0]},ws={},_s={[as]:"getAttr",[cs]:[{[us]:gs},"supportsFIPS"]},Ss={[as]:ds,[cs]:[!0,{[as]:"getAttr",[cs]:[{[us]:gs},"supportsDualStack"]}]},xs=[ys],As=[vs],Es=[{[us]:"Region"}],Is={version:"1.0",parameters:{Region:ms,UseDualStack:ks,UseFIPS:ks,Endpoint:ms},rules:[{conditions:[{[as]:ls,[cs]:[bs]}],rules:[{conditions:xs,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:fs},{rules:[{conditions:As,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:fs},{endpoint:{url:bs,properties:ws,headers:ws},type:ps}],type:hs}],type:hs},{rules:[{conditions:[{[as]:ls,[cs]:Es}],rules:[{conditions:[{[as]:"aws.partition",[cs]:Es,assign:gs}],rules:[{conditions:[ys,vs],rules:[{conditions:[{[as]:ds,[cs]:[true,_s]},Ss],rules:[{rules:[{endpoint:{url:"https://bedrock-runtime-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:ws,headers:ws},type:ps}],type:hs}],type:hs},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:fs}],type:hs},{conditions:xs,rules:[{conditions:[{[as]:ds,[cs]:[_s,true]}],rules:[{rules:[{endpoint:{url:"https://bedrock-runtime-fips.{Region}.{PartitionResult#dnsSuffix}",properties:ws,headers:ws},type:ps}],type:hs}],type:hs},{error:"FIPS is enabled but this partition does not support FIPS",type:fs}],type:hs},{conditions:As,rules:[{conditions:[Ss],rules:[{rules:[{endpoint:{url:"https://bedrock-runtime.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:ws,headers:ws},type:ps}],type:hs}],type:hs},{error:"DualStack is enabled but this partition does not support DualStack",type:fs}],type:hs},{rules:[{endpoint:{url:"https://bedrock-runtime.{Region}.{PartitionResult#dnsSuffix}",properties:ws,headers:ws},type:ps}],type:hs}],type:hs}],type:hs},{error:"Invalid Configuration: Missing Region",type:fs}],type:hs}]},Os=(e,t={})=>((e,t)=>{const{endpointParams:r,logger:n}=t,{parameters:o,rules:i}=e;t.logger?.debug?.(`${Sn} Initial EndpointParams: ${xn(r)}`);const s=Object.entries(o).filter((([,e])=>null!=e.default)).map((([e,t])=>[e,t.default]));if(s.length>0)for(const[e,t]of s)r[e]=r[e]??t;const a=Object.entries(o).filter((([,e])=>e.required)).map((([e])=>e));for(const e of a)if(null==r[e])throw new An(`Missing required parameter: '${e}'`);const c=$n(i,{endpointParams:r,logger:n,referenceRecord:{}});if(t.endpointParams?.Endpoint)try{const e=new URL(t.endpointParams.Endpoint),{protocol:r,port:n}=e;c.url.protocol=r,c.url.port=n}catch(e){}return t.logger?.debug?.(`${Sn} Resolved endpoint: ${xn(c)}`),c})(Is,{endpointParams:e,logger:t.logger}),Ps=["in-region","cross-region","mobile","standard","legacy"],Rs=()=>{const e="undefined"!=typeof window&&window?.navigator?.userAgent?Qi().parse(window.navigator.userAgent):void 0,t=e?.platform?.type;return"tablet"===t||"mobile"===t},Ts=e=>{const t=(({defaultsMode:e}={})=>ar((async()=>{const t="function"==typeof e?await e():e;switch(t?.toLowerCase()){case"auto":return Promise.resolve(Rs()?"mobile":"standard");case"mobile":case"in-region":case"cross-region":case"standard":case"legacy":return Promise.resolve(t?.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${Ps.join(", ")}, got ${t}`)}})))(e),r=()=>t().then(Ei),n=(e=>({apiVersion:"2023-09-30",base64Decoder:e?.base64Decoder??ii,base64Encoder:e?.base64Encoder??si,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??Os,extensions:e?.extensions??[],logger:e?.logger??new Wo,serviceId:e?.serviceId??"Bedrock Runtime",urlParser:e?.urlParser??fo,utf8Decoder:e?.utf8Decoder??Cr,utf8Encoder:e?.utf8Encoder??Mr}))(e);return{...n,...e,runtime:"browser",defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??is,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(new Error("Credential is missing"))),defaultUserAgentProvider:e?.defaultUserAgentProvider??Ji({serviceId:n.serviceId,clientVersion:Zi}),eventStreamSerdeProvider:e?.eventStreamSerdeProvider??ns,maxAttempts:e?.maxAttempts??3,region:e?.region??(o="Region is missing",()=>Promise.reject(o)),requestHandler:e?.requestHandler??new li(r),retryMode:e?.retryMode??(async()=>(await r()).retryMode||_o),sha256:e?.sha256??Ki.Sha256,streamCollector:e?.streamCollector??di,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(false)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(false))};var o},Ms=e=>{let t=async()=>{if(void 0===e.region)throw new Error("Region is missing from runtimeConfig");const t=e.region;return"string"==typeof t?t:t()};return{setRegion(e){t=e},region:()=>t}};class Cs extends Xo{constructor(...[e]){const t=(e=>({...e,useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"bedrock"}))(Ts(e||{})),r=(e=>{const{region:t,useFipsEndpoint:r}=e;if(!t)throw new Error("Region is missing");return{...e,region:async()=>{if("string"==typeof t)return to(t);const e=await t();return to(e)},useFipsEndpoint:async()=>{const e="string"==typeof t?t:await t();return!!eo(e)||("function"!=typeof r?Promise.resolve(!!r):r())}}})(t),n=(e=>{const t=e.tls??!0,{endpoint:r}=e,n=null!=r?async()=>po(await Tr(r)()):void 0,o=!!r;return{...e,endpoint:n,tls:t,isCustomEndpoint:o,useDualstackEndpoint:Tr(e.useDualstackEndpoint??!1),useFipsEndpoint:Tr(e.useFipsEndpoint??!1)}})(r),o=(e=>{const{retryStrategy:t}=e,r=Tr(e.maxAttempts??3);return{...e,maxAttempts:r,retryStrategy:async()=>t||(await Tr(e.retryMode)()===wo.ADAPTIVE?new Lo(r):new No(r))}})(n),i=(e=>{const t=e.credentials?fn(e.credentials):e.credentialDefaultProvider(e),{signingEscapePath:r=!0,systemClockOffset:n=e.systemClockOffset||0,sha256:o}=e;let i;return i=e.signer?Tr(e.signer):e.regionInfoProvider?()=>Tr(e.region)().then((async t=>[await e.regionInfoProvider(t,{useFipsEndpoint:await e.useFipsEndpoint(),useDualstackEndpoint:await e.useDualstackEndpoint()})||{},t])).then((([n,i])=>{const{signingRegion:s,signingService:a}=n;e.signingRegion=e.signingRegion||s||i,e.signingName=e.signingName||a||e.serviceId;const c={...e,credentials:t,region:e.signingRegion,service:e.signingName,sha256:o,uriEscapePath:r};return new(e.signerConstructor||un)(c)})):async n=>{const i=(n=Object.assign({},{name:"sigv4",signingName:e.signingName||e.defaultSigningName,signingRegion:await Tr(e.region)(),properties:{}},n)).signingRegion,s=n.signingName;e.signingRegion=e.signingRegion||i,e.signingName=e.signingName||s||e.serviceId;const a={...e,credentials:t,region:e.signingRegion,service:e.signingName,sha256:o,uriEscapePath:r};return new(e.signerConstructor||un)(a)},{...e,systemClockOffset:n,signingEscapePath:r,credentials:t,signer:i}})(o);var s;const a=((e,t)=>{const r={...Ms(e),...Ti(e),...Vt(e)};return t.forEach((e=>e.configure(r))),{...e,...(i=r,{region:i.region()}),...(o=r,{...Oi(o),...Ri(o)}),...(n=r,{httpHandler:n.httpHandler()})};var n,o,i})((e=>({...e,eventStreamMarshaller:e.eventStreamSerdeProvider(e)}))((s=i,{...s,customUserAgent:"string"==typeof s.customUserAgent?[[s.customUserAgent]]:s.customUserAgent})),e?.extensions||[]);var c;super(a),this.config=a,this.middlewareStack.use(Gi(this.config)),this.middlewareStack.use(oo(this.config)),this.middlewareStack.use(rr(this.config)),this.middlewareStack.use((this.config,{applyToStack:e=>{e.add(((e,t)=>async r=>{try{const n=await e(r),{clientName:o,commandName:i,logger:s,dynamoDbDocumentClientOptions:a={}}=t,{overrideInputFilterSensitiveLog:c,overrideOutputFilterSensitiveLog:u}=a,l=c??t.inputFilterSensitiveLog,d=u??t.outputFilterSensitiveLog,{$metadata:f,...p}=n.output;return s?.info?.({clientName:o,commandName:i,input:l(r.input),output:d(p),metadata:f}),n}catch(e){const{clientName:n,commandName:o,logger:i,dynamoDbDocumentClientOptions:s={}}=t,{overrideInputFilterSensitiveLog:a}=s,c=a??t.inputFilterSensitiveLog;throw i?.error?.({clientName:n,commandName:o,input:c(r.input),error:e,metadata:e.$metadata}),e}}),nr)}})),this.middlewareStack.use(sr(this.config)),this.middlewareStack.use(kn(this.config)),this.middlewareStack.use((c=this.config,{applyToStack:e=>{e.add(Yn(c),Jn)}}))}destroy(){super.destroy()}}class js extends Si{constructor(e){super(e),Object.setPrototypeOf(this,js.prototype)}}class Ns extends js{constructor(e){super({name:"AccessDeniedException",$fault:"client",...e}),this.name="AccessDeniedException",this.$fault="client",Object.setPrototypeOf(this,Ns.prototype)}}class Ls extends js{constructor(e){super({name:"InternalServerException",$fault:"server",...e}),this.name="InternalServerException",this.$fault="server",Object.setPrototypeOf(this,Ls.prototype)}}class Bs extends js{constructor(e){super({name:"ModelErrorException",$fault:"client",...e}),this.name="ModelErrorException",this.$fault="client",Object.setPrototypeOf(this,Bs.prototype),this.originalStatusCode=e.originalStatusCode,this.resourceName=e.resourceName}}class Fs extends js{constructor(e){super({name:"ModelNotReadyException",$fault:"client",...e}),this.name="ModelNotReadyException",this.$fault="client",Object.setPrototypeOf(this,Fs.prototype)}}class Ds extends js{constructor(e){super({name:"ModelTimeoutException",$fault:"client",...e}),this.name="ModelTimeoutException",this.$fault="client",Object.setPrototypeOf(this,Ds.prototype)}}class Us extends js{constructor(e){super({name:"ResourceNotFoundException",$fault:"client",...e}),this.name="ResourceNotFoundException",this.$fault="client",Object.setPrototypeOf(this,Us.prototype)}}class $s extends js{constructor(e){super({name:"ServiceQuotaExceededException",$fault:"client",...e}),this.name="ServiceQuotaExceededException",this.$fault="client",Object.setPrototypeOf(this,$s.prototype)}}class Hs extends js{constructor(e){super({name:"ThrottlingException",$fault:"client",...e}),this.name="ThrottlingException",this.$fault="client",Object.setPrototypeOf(this,Hs.prototype)}}class zs extends js{constructor(e){super({name:"ValidationException",$fault:"client",...e}),this.name="ValidationException",this.$fault="client",Object.setPrototypeOf(this,zs.prototype)}}class Vs extends js{constructor(e){super({name:"ModelStreamErrorException",$fault:"client",...e}),this.name="ModelStreamErrorException",this.$fault="client",Object.setPrototypeOf(this,Vs.prototype),this.originalStatusCode=e.originalStatusCode,this.originalMessage=e.originalMessage}}var qs;!function(e){e.visit=(e,t)=>void 0!==e.chunk?t.chunk(e.chunk):void 0!==e.internalServerException?t.internalServerException(e.internalServerException):void 0!==e.modelStreamErrorException?t.modelStreamErrorException(e.modelStreamErrorException):void 0!==e.validationException?t.validationException(e.validationException):void 0!==e.throttlingException?t.throttlingException(e.throttlingException):void 0!==e.modelTimeoutException?t.modelTimeoutException(e.modelTimeoutException):t._(e.$unknown[0],e.$unknown[1])}(qs||(qs={}));const Gs=e=>({...e,...e.body&&{body:gi}}),Ws=e=>({...e,...e.body&&{body:gi}}),Zs=e=>({...e,...e.body&&{body:gi}}),Ks=e=>({...e,...e.body&&{body:"STREAMING_CONTENT"}}),Ys=async(e,t)=>{const r={...e,body:await wa(e.body,t)},n=_a(e,r.body);switch(n){case"AccessDeniedException":case"com.amazonaws.bedrockruntime#AccessDeniedException":throw await ea(r,t);case"InternalServerException":case"com.amazonaws.bedrockruntime#InternalServerException":throw await ta(r,t);case"ModelErrorException":case"com.amazonaws.bedrockruntime#ModelErrorException":throw await ra(r,t);case"ModelNotReadyException":case"com.amazonaws.bedrockruntime#ModelNotReadyException":throw await na(r,t);case"ModelTimeoutException":case"com.amazonaws.bedrockruntime#ModelTimeoutException":throw await ia(r,t);case"ResourceNotFoundException":case"com.amazonaws.bedrockruntime#ResourceNotFoundException":throw await sa(r,t);case"ServiceQuotaExceededException":case"com.amazonaws.bedrockruntime#ServiceQuotaExceededException":throw await aa(r,t);case"ThrottlingException":case"com.amazonaws.bedrockruntime#ThrottlingException":throw await ca(r,t);case"ValidationException":case"com.amazonaws.bedrockruntime#ValidationException":throw await ua(r,t);default:const o=r.body;return Js({output:e,parsedBody:o,errorCode:n})}},Qs=async(e,t)=>{const r={...e,body:await wa(e.body,t)},n=_a(e,r.body);switch(n){case"AccessDeniedException":case"com.amazonaws.bedrockruntime#AccessDeniedException":throw await ea(r,t);case"InternalServerException":case"com.amazonaws.bedrockruntime#InternalServerException":throw await ta(r,t);case"ModelErrorException":case"com.amazonaws.bedrockruntime#ModelErrorException":throw await ra(r,t);case"ModelNotReadyException":case"com.amazonaws.bedrockruntime#ModelNotReadyException":throw await na(r,t);case"ModelStreamErrorException":case"com.amazonaws.bedrockruntime#ModelStreamErrorException":throw await oa(r,t);case"ModelTimeoutException":case"com.amazonaws.bedrockruntime#ModelTimeoutException":throw await ia(r,t);case"ResourceNotFoundException":case"com.amazonaws.bedrockruntime#ResourceNotFoundException":throw await sa(r,t);case"ServiceQuotaExceededException":case"com.amazonaws.bedrockruntime#ServiceQuotaExceededException":throw await aa(r,t);case"ThrottlingException":case"com.amazonaws.bedrockruntime#ThrottlingException":throw await ca(r,t);case"ValidationException":case"com.amazonaws.bedrockruntime#ValidationException":throw await ua(r,t);default:const o=r.body;return Js({output:e,parsedBody:o,errorCode:n})}},Js=(Xs=js,({output:e,parsedBody:t,errorCode:r})=>{(({output:e,parsedBody:t,exceptionCtor:r,errorCode:n})=>{const o=Ai(e),i=o.httpStatusCode?o.httpStatusCode+"":void 0,s=new r({name:t?.code||t?.Code||n||i||"UnknownError",$fault:"client",$metadata:o});throw xi(s,t)})({output:e,parsedBody:t,exceptionCtor:Xs,errorCode:r})});var Xs;const ea=async(e,t)=>{const r=Ci({}),n=e.body,o=ji(n,{message:vi});Object.assign(r,o);const i=new Ns({$metadata:ba(e),...r});return xi(i,e.body)},ta=async(e,t)=>{const r=Ci({}),n=e.body,o=ji(n,{message:vi});Object.assign(r,o);const i=new Ls({$metadata:ba(e),...r});return xi(i,e.body)},ra=async(e,t)=>{const r=Ci({}),n=e.body,o=ji(n,{message:vi,originalStatusCode:ki,resourceName:vi});Object.assign(r,o);const i=new Bs({$metadata:ba(e),...r});return xi(i,e.body)},na=async(e,t)=>{const r=Ci({}),n=e.body,o=ji(n,{message:vi});Object.assign(r,o);const i=new Fs({$metadata:ba(e),...r});return xi(i,e.body)},oa=async(e,t)=>{const r=Ci({}),n=e.body,o=ji(n,{message:vi,originalMessage:vi,originalStatusCode:ki});Object.assign(r,o);const i=new Vs({$metadata:ba(e),...r});return xi(i,e.body)},ia=async(e,t)=>{const r=Ci({}),n=e.body,o=ji(n,{message:vi});Object.assign(r,o);const i=new Ds({$metadata:ba(e),...r});return xi(i,e.body)},sa=async(e,t)=>{const r=Ci({}),n=e.body,o=ji(n,{message:vi});Object.assign(r,o);const i=new Us({$metadata:ba(e),...r});return xi(i,e.body)},aa=async(e,t)=>{const r=Ci({}),n=e.body,o=ji(n,{message:vi});Object.assign(r,o);const i=new $s({$metadata:ba(e),...r});return xi(i,e.body)},ca=async(e,t)=>{const r=Ci({}),n=e.body,o=ji(n,{message:vi});Object.assign(r,o);const i=new Hs({$metadata:ba(e),...r});return xi(i,e.body)},ua=async(e,t)=>{const r=Ci({}),n=e.body,o=ji(n,{message:vi});Object.assign(r,o);const i=new zs({$metadata:ba(e),...r});return xi(i,e.body)},la=(e,t)=>t.eventStreamMarshaller.deserialize(e,(async r=>null!=r.chunk?{chunk:await ha(r.chunk,t)}:null!=r.internalServerException?{internalServerException:await da(r.internalServerException,t)}:null!=r.modelStreamErrorException?{modelStreamErrorException:await fa(r.modelStreamErrorException,t)}:null!=r.validationException?{validationException:await ma(r.validationException,t)}:null!=r.throttlingException?{throttlingException:await ga(r.throttlingException,t)}:null!=r.modelTimeoutException?{modelTimeoutException:await pa(r.modelTimeoutException,t)}:{$unknown:e})),da=async(e,t)=>{const r={...e,body:await va(e.body,t)};return ta(r,t)},fa=async(e,t)=>{const r={...e,body:await va(e.body,t)};return oa(r,t)},pa=async(e,t)=>{const r={...e,body:await va(e.body,t)};return ia(r,t)},ha=async(e,t)=>{const r={},n=await va(e.body,t);return Object.assign(r,ka(n,t)),r},ga=async(e,t)=>{const r={...e,body:await va(e.body,t)};return ca(r,t)},ma=async(e,t)=>{const r={...e,body:await va(e.body,t)};return ua(r,t)},ka=(e,t)=>ji(e,{bytes:t.base64Decoder}),ba=e=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}),ya=e=>!(null==e||""===e||Object.getOwnPropertyNames(e).includes("length")&&0==e.length||Object.getOwnPropertyNames(e).includes("size")&&0==e.size),va=(e,t)=>((e,t)=>fi(e,t).then((e=>t.utf8Encoder(e))))(e,t).then((e=>e.length?JSON.parse(e):{})),wa=async(e,t)=>{const r=await va(e,t);return r.message=r.message??r.Message,r},_a=(e,t)=>{const r=e=>{let t=e;return"number"==typeof t&&(t=t.toString()),t.indexOf(",")>=0&&(t=t.split(",")[0]),t.indexOf(":")>=0&&(t=t.split(":")[0]),t.indexOf("#")>=0&&(t=t.split("#")[1]),t},n=(o=e.headers,i="x-amzn-errortype",Object.keys(o).find((e=>e.toLowerCase()===i.toLowerCase())));var o,i;return void 0!==n?r(e.headers[n]):void 0!==t.code?r(t.code):void 0!==t.__type?r(t.__type):void 0};class Sa extends pi{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super(),this.input=e}resolveMiddleware(e,t,r){this.middlewareStack.use(bo(t,this.serialize,this.deserialize)),this.middlewareStack.use(vo(t,Sa.getEndpointParameterInstructions()));const n=e.concat(this.middlewareStack),{logger:o}=t,i={logger:o,clientName:"BedrockRuntimeClient",commandName:"InvokeModelWithResponseStreamCommand",inputFilterSensitiveLog:Zs,outputFilterSensitiveLog:Ks,[Yt]:{service:"AmazonBedrockFrontendService",operation:"InvokeModelWithResponseStream"}},{requestHandler:s}=t;return n.resolve((e=>s.handle(e.request,r||{})),i)}serialize(e,t){return(async(e,t)=>{const{hostname:r,protocol:n="https",port:o,path:i}=await t.endpoint(),s=Ci({},ya,{"content-type":e.contentType||"application/octet-stream","x-amzn-bedrock-accept":e.accept});let a,c=`${i?.endsWith("/")?i.slice(0,-1):i||""}/model/{modelId}/invoke-with-response-stream`;return c=Ui(c,e,"modelId",(()=>e.modelId),"{modelId}",!1),void 0!==e.body&&(a=e.body),new Xt({protocol:n,hostname:r,port:o,method:"POST",headers:s,path:c,body:a})})(e,t)}deserialize(e,t){return(async(e,t)=>{if(200!==e.statusCode&&e.statusCode>=300)return Qs(e,t);const r=Ci({$metadata:ba(e),contentType:[,e.headers["x-amzn-bedrock-content-type"]]}),n=e.body;return r.body=la(n,t),r})(e,t)}}class xa extends pi{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super(),this.input=e}resolveMiddleware(e,t,r){this.middlewareStack.use(bo(t,this.serialize,this.deserialize)),this.middlewareStack.use(vo(t,xa.getEndpointParameterInstructions()));const n=e.concat(this.middlewareStack),{logger:o}=t,i={logger:o,clientName:"BedrockRuntimeClient",commandName:"InvokeModelCommand",inputFilterSensitiveLog:Gs,outputFilterSensitiveLog:Ws,[Yt]:{service:"AmazonBedrockFrontendService",operation:"InvokeModel"}},{requestHandler:s}=t;return n.resolve((e=>s.handle(e.request,r||{})),i)}serialize(e,t){return(async(e,t)=>{const{hostname:r,protocol:n="https",port:o,path:i}=await t.endpoint(),s=Ci({},ya,{"content-type":e.contentType||"application/octet-stream",accept:e.accept});let a,c=`${i?.endsWith("/")?i.slice(0,-1):i||""}/model/{modelId}/invoke`;return c=Ui(c,e,"modelId",(()=>e.modelId),"{modelId}",!1),void 0!==e.body&&(a=e.body),new Xt({protocol:n,hostname:r,port:o,method:"POST",headers:s,path:c,body:a})})(e,t)}deserialize(e,t){return(async(e,t)=>{if(200!==e.statusCode&&e.statusCode>=300)return Ys(e,t);const r=Ci({$metadata:ba(e),contentType:[,e.headers["content-type"]]}),n=await fi(e.body,t);return r.body=n,r})(e,t)}}const Aa=Ea;function Ea(e,t){const r=Ia();return(Ea=function(e,t){return r[e-=270]})(e,t)}function Ia(){const e=["55mOqenM","2224280kxhhrk","ai.aws.bedrockClientConfig","decode","cohere.command","\n<</SYS>>\n[INST]\n","Human:\n","Instruction:\n","define","config","_processProxyRequest","length","\nYou must keep the text formatting.\n\nContent:\n","getReader","Your task is to execute the instruction using the provided HTML content. Follow the instruction closely. Your answer must be a properly formatted HTML code. Do not add any additional remarks or notes. Do not act like a chatbot or a real person.","signal","_readStreamableResponse","_getGeneratedText","191132HXjGmi","66450AomvwX","abortController","parse","pluginName","editor","_readStaticResponse","ai.aws.requestHeaders","ai.aws.apiUrl","meta.llama","send","192592KWHTAI","ai.aws.requestParameters","<<SYS>>\n","application/json","_prepareRequestParameters","70auYJoo","Your task is to generate HTML content accordingly to the given instruction. Never include <img> tag in your response even if asked for. Your answer must be a well-structured and properly formatted HTML code. Answer only with the generated HTML content. Do not add any additional remarks or notes. Do not act like a chatbot or a real person.","getModelFamily","test","2599974zDrWkh","split","stringify","AWSTextAdapter","AI_ERROR_UNSUPPORTED_MODEL","locale","_apiUrl","map","read","\n\nAssistant:","_requestParameters","text","_requestHeaders","data","get","18hbCbJK","completion","25206GKnmYy","chunk","anthropic.claude-v2","utf-8","bytes","anthropic.claude","toString","body","_bedrockClientConfig","resolve","bedrock-2023-05-31","407017QNIUVH","_readAsyncIterableResponse","preparePrompt","ai21.j2","_prepareRequestHeaders","POST","filter","generation","\n[/INST]","_processAWSRequest","utf8","from","generations","completions","sendRequest","json","join"];return(Ia=function(){return e})()}!function(e,t){const r=Ea,n=e();for(;;)try{if(307587===parseInt(r(315))/1+-parseInt(r(351))/2+-parseInt(r(302))/3*(parseInt(r(350))/4)+-parseInt(r(332))/5*(-parseInt(r(304))/6)+parseInt(r(283))/7*(parseInt(r(278))/8)+-parseInt(r(287))/9+parseInt(r(333))/10)break;n.push(n.shift())}catch(e){n.push(n.shift())}}(Ia);class Oa extends Dt{static get[Aa(271)](){return Aa(290)}constructor(e){const t=Aa;super(e),e[t(341)][t(301)](t(279))||e[t(341)][t(340)](t(279),{model:t(306),max_tokens_to_sample:2e3,temperature:1,top_p:1,top_k:250,anthropic_version:t(314),stream:!0}),this[t(293)]=e[t(341)][t(301)](t(275)),this[t(312)]=e[t(341)][t(301)](t(334)),this[t(299)]=e[t(341)][t(301)](t(274)),this[t(297)]=e[t(341)][t(301)](t(279))}async[Aa(329)]({query:e,context:t,onData:r,actionId:n}){const o=Aa,{model:i,stream:s,...a}=await this[o(282)](this[o(297)],n),c={prompt:await this[o(317)](e,t,i,n),...a};this[o(293)]?await this[o(342)](c,i,s,r,n):await this[o(324)](c,i,s,r)}async[Aa(317)](e,t,r,n){const o=Aa;let i,s;return t?(i=o(346),s=o(339)+e+o(344)+t):(i=o(284),s=e),o(276)==this[o(285)](r)?o(280)+i+o(337)+s+o(323):o(338)+i+"\n"+s+o(296)}[Aa(285)](e){const t=Aa;if(/^anthropic\.claude/[t(286)](e))return t(309);if(/^ai21\.j2/[t(286)](e))return t(318);if(/^cohere\.command/[t(286)](e))return t(336);if(/^meta\.llama/[t(286)](e))return t(276);throw new D(U(this[t(272)][t(292)],t(291),e))}async[Aa(342)](e,t,r,n,o){const i=Aa,s={method:i(320),headers:await this[i(319)](this[i(299)],o),body:JSON[i(289)]({...e,model:t,stream:r}),signal:this[i(352)][i(347)]},a=await fetch(this[i(293)],s);r?await this[i(348)](a,t,n):await this[i(273)](a,t,n)}async[Aa(324)](e,t,r,n){const o=Aa,i=new Cs(this[o(312)]),s={body:JSON[o(289)](e),contentType:o(281),accept:o(281),modelId:t};let a;if(r){const e=new Sa(s);a=await i[o(277)](e,{abortSignal:this[o(352)][o(347)]}),await this[o(316)](a,t,n)}else{const e=new xa(s);a=await i[o(277)](e,{abortSignal:this[o(352)][o(347)]}),await this[o(273)](a,t,n)}}async[Aa(316)](e,t,r){const n=Aa,o=e[n(311)],i=new TextDecoder(n(307));let s="";for await(const e of o)if(e[n(305)]){const o=i[n(335)](e[n(305)][n(308)]),a=JSON[n(270)](o);s+=this[n(349)](a,t),r(s)}return Promise[n(313)]()}async[Aa(348)](e,t,r){const n=Aa,o=e[n(311)],i=new TextDecoder(n(307)),s=o[n(345)]();let a="",c="",u=!1;for(;!u;){const{done:e,value:o}=await s[n(295)]();if(u=e,u)break;const l=(a+i[n(335)](o))[n(288)]("\n")[n(294)]((e=>{const t=n;try{return a="",JSON[t(270)](e)}catch(t){return a=e,null}}))[n(321)]((e=>null!==e));l[n(343)]&&(c+=l[n(294)]((e=>this[n(349)](e,t)))[n(331)](""),r(c))}return Promise[n(313)]()}async[Aa(273)](e,t,r){const n=Aa;let o;return o=e instanceof Response?await e[n(330)]():JSON[n(270)](Buffer[n(326)](e[n(311)])[n(310)](n(325))),r(this[n(349)](o,t)),Promise[n(313)]()}[Aa(349)](e,t){const r=Aa;switch(this[r(285)](t)){case r(309):return e[r(303)];case r(318):return e[r(328)][0][r(300)][r(298)];case r(336):return e[r(327)][0][r(298)];case r(276):return e[r(322)]}}}function Pa(e,t){var r=Ra();return(Pa=function(e,t){return r[e-=119]})(e,t)}function Ra(){var e=["13518180DXpLUC","4443yzXGMT","256525dIqrqu","302LhEInc","288592bXXdWo","126qnIxLm","3921548OTuDOx","217EcQCoS","8234109qlVfwS","125149ytNdOA"];return(Ra=function(){return e})()}!function(e,t){for(var r=Pa,n=e();;)try{if(682841===-parseInt(r(122))/1+-parseInt(r(126))/2*(-parseInt(r(124))/3)+parseInt(r(119))/4+-parseInt(r(125))/5*(parseInt(r(128))/6)+-parseInt(r(120))/7*(-parseInt(r(127))/8)+parseInt(r(121))/9+-parseInt(r(123))/10)break;n.push(n.shift())}catch(e){n.push(n.shift())}}(Ra)})(),(window.CKEditor5=window.CKEditor5||{}).ai=n})();