
-- Make sure Database is owned by same owner as master database
DECLARE @cmd NVARCHAR(MAX)
SELECT @cmd = N'ALTER AUTHORIZATION ON DATABASE::' + QUOTENAME(DB_NAME()) + N' TO ' + QUOTENAME(sp.name)
FROM sys.databases AS db
INNER JOIN sys.server_principals AS sp
ON db.owner_sid = sp.sid
WHERE db.database_id = 1
AND NOT EXISTS (SELECT * FROM sys.databases AS curr WHERE curr.database_id = DB_ID() AND curr.owner_sid = db.owner_sid)

-- Make sure database is trustworthy
IF EXISTS (SELECT * FROM sys.[databases] WHERE database_id = DB_ID() AND is_trustworthy_on = 0 )
BEGIN
    SET @cmd = ISNULL(@cmd + CHAR(13) + CHAR(10), N'') + N'ALTER DATABASE ' + QUOTENAME(DB_NAME()) + N' SET TRUSTWORTHY ON;';
END

IF @cmd IS NOT NULL
BEGIN
	PRINT @cmd;
	EXEC (@cmd);
END
GO
-- Make sure clr is enabled
DECLARE @InitAdvanced INT

IF EXISTS (select * from sys.configurations where name IN ('clr enabled') and value_in_use = 0)
BEGIN
	SELECT @InitAdvanced = CONVERT(int, value) FROM sys.configurations WHERE name = 'show advanced options';

	IF @InitAdvanced = 0
	BEGIN
		EXEC sp_configure 'show advanced options', 1;
		RECONFIGURE;
	END

	IF EXISTS (select * from sys.configurations where name = 'clr enabled' and value_in_use = 0)
	BEGIN
		EXEC sp_configure 'clr enabled', 1;
		RECONFIGURE;
	END

	IF @InitAdvanced = 0
	BEGIN
		EXEC sp_configure 'show advanced options', 0;
		RECONFIGURE;
	END
END
GO
IF OBJECT_ID('sp_send_calendar_event') IS NOT NULL DROP PROCEDURE [dbo].[sp_send_calendar_event]
GO
IF OBJECT_ID('clr_send_ics_invite') IS NOT NULL DROP PROCEDURE [dbo].[clr_send_ics_invite]
GO
IF EXISTS (SELECT * FROM sys.assemblies WHERE name = 'sql_clr_ics') DROP ASSEMBLY [sql_clr_ics];
GO
PRINT N'Creating Assembly [dbo].[sql_clr_ics]...';
GO
CREATE ASSEMBLY [sql_clr_ics]
    AUTHORIZATION [dbo]
    FROM 0x4D5A90000300000004000000FFFF0000B800000000000000400000000000000000000000000000000000000000000000000000000000000000000000800000000E1FBA0E00B409CD21B8014CCD21546869732070726F6772616D2063616E6E6F742062652072756E20696E20444F53206D6F64652E0D0D0A2400000000000000504500004C010300BE35EA5C0000000000000000E00022200B013000003E00000008000000000000DA5C000000200000006000000000001000200000000200000400000000000000060000000000000000A000000002000000000000030060850000100000100000000010000010000000000000100000000000000000000000885C00004F000000006000000404000000000000000000000000000000000000008000000C000000505B00001C0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000080000000000000000000000082000004800000000000000000000002E74657874000000E03C000000200000003E000000020000000000000000000000000000200000602E7273726300000004040000006000000006000000400000000000000000000000000000400000402E72656C6F6300000C0000000080000000020000004600000000000000000000000000004000004200000000000000000000000000000000BC5C0000000000004800000002000500E03200007028000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001B3006000E1100000100001100280E00000A0A0F04280F00000A2D1E0F1D280F00000A2C090F1C281000000A2D0C0F00280F00000A16FE012B0117130A110A39F5010000007201000070731100000A130B110B6F1200000A130C110B6F1300000A000F00280F00000A130D110D2C6900110C72310000706F1400000A00110C6F1500000A130E00110E6F1600000A16FE01130F110F2C1C00110E6F1700000A00110B6F1800000A00728A010070731900000A7A00110E166F1A00000A100000110E6F1700000A0000DE0D110E2C08110E6F1B00000A00DC00110C72FA0100706F1400000A00110C6F1C00000A72EB050070178C2B0000016F1D00000A26110C6F1C00000A72F50500700F00281E00000A6F1D00000A26110C6F1500000A13100011106F1600000A16FE01131111112C280011106F1700000A00110B6F1800000A0072070600700F00281E00000A281F00000A731900000A7A000F04280F00000A131211122C0A1110166F1A00000A10040F05280F00000A131311132C0A1110176F1A00000A10050F19280F00000A131411142C0A1110186F1A00000A10190F1A282000000A131511152C0A1110196F2100000A101A0F1B281000000A131611162C0A11101A6F2200000A101B0F1C281000000A131711172C1811101B6F2200000A13181218282300000A282400000A101C0F1D280F00000A2C0C0F1C282300000A16FE012B0116131911192C0A11101C6F1A00000A101D0011106F1700000A0000DE0D11102C0811106F1B00000A00DC110B6F1800000A00000F06280F00000A2D0E0F06281E00000A282500000A2B0117131A111A2C0C7241060070282600000A10060F08280F00000A2D0E0F08281E00000A282500000A2B0117131B111B2C0C7267060070282600000A10080F0F282700000A131C111C2C0C282800000A282900000A100F0F0D282700000A131D111D2C200F0F282A00000A131E121E230000000000C07240282B00000A282900000A100D0F0E282700000A131F111F2C200F0D282A00000A131E121E230000000000004E40282B00000A282900000A100E0F14282000000A132011202C091F0F282C00000A10140F13281000000A132111212C0817282400000A10130F1F281000000A132211222C0816282400000A101F0F12280F00000A2D0E0F12281E00000A282500000A2B0117132311232C0C7271060070282600000A10120F09280F00000A2D0E0F09281E00000A282500000A2B0117132411242C0C7297060070282600000A10090F0A280F00000A2D0E0F0A281E00000A282500000A2B0117132511252C0C72A5060070282600000A100A0F19280F00000A2D0E0F19281E00000A282500000A2B0117132611262C0C72B3060070282600000A10190F1A282000000A132711272C091F19282C00000A101A0F1B281000000A132811282C0816282400000A101B0F1D280F00000A2D0E0F1D281E00000A282500000A2B0117132911292C0C0017282400000A101C002B40000F1E280F00000A2D0E0F1E281E00000A282500000A2B0117132A112A2C0C72C7060070282600000A101E0F1D281E00000A0F1E281E00000A732D00000A0A000F16280F00000A132B112B2C0C72C9060070282600000A10160F17280F00000A132C112C2C0C72E9060070282600000A10170F18280F00000A132D112D2C0C7209070070282600000A10180F10280F00000A132E112E2C0C7229070070282600000A10100F11282000000A132F112F2C1E0F10281E00000A7239070070282E00000A2D03162B0117282C00000A10110E20280F00000A133011302C200E20282F00000A13311231FE161D0000016F3000000A282600000A8110000001733100000A0C0F04280F00000A2D0E0F04281E00000A282500000A2B0117133211322C0C0872470700706F3200000A260F01280F00000A2D0E0F01281E00000A282500000A2C310F02280F00000A2D0E0F02281E00000A282500000A2C1A0F03280F00000A2D0E0F03281E00000A282500000A2B01172B0116133311332C0C0872A10700706F3200000A260F08281E00000A7266080070283300000A2C130F08281E00000A7267060070283300000A2B0116133411342C180872700800700F08281E00000A281F00000A6F3200000A260F10281E00000A171203280100002B16FE01133511352C310872DC0800700F10281E00000AD003000002283500000A283600000A6F3000000A6F3700000A283800000A6F3200000A260F0A281E00000A171204280200002B16FE01133611362C310872300900700F0A281E00000AD004000002283500000A283600000A6F3000000A6F3700000A283800000A6F3200000A260F09281E00000A171201280300002B16FE01133711372C3108728C0900700F09281E00000AD015000001283500000A283600000A6F3000000A6F3700000A283800000A6F3200000A26161305161306161307007E010000041338161339388F000000113811399A133A000F01280F00000A2D10113A0F16281E00000A282E00000A2B0116133B113B2C0500171305000F02280F00000A2D10113A0F17281E00000A282E00000A2B0116133C113C2C0500171306000F03280F00000A2D10113A0F18281E00000A282E00000A2B0116133D113D2C050017130700110511065F11075F133E113E2C03002B1200113917581339113911388E693F66FFFFFF0F01280F00000A2D07110516FE012B0116133F113F2C220872E80900700F16281E00000A7E010000046F3000000A283800000A6F3200000A260F02280F00000A2D07110616FE012B0116134011402C2208724E0A00700F17281E00000A7E010000046F3000000A283800000A6F3200000A260F03280F00000A2D07110716FE012B0116134111412C220872BE0A00700F18281E00000A7E010000046F3000000A283800000A6F3200000A26086F3900000A16FE02134211422C11723A0B007008283A00000A731900000A7A733B00000A130811080F06281E00000A6F3C00000A0011080F07281E00000A6F3D00000A001108076F3E00000A0011080F08281E00000A7266080070282E00000A6F3F00000A000F0B280F00000A16FE01134311432C6C00000F0B281E00000A178D3000000125161F3B9D6F4000000A13441613452B43114411459A1346000011086F4100000A1146734200000A6F4300000A0000DE1C134700729C0B0070114611476F4400000A283800000A731900000A7A00114517581345114511448E6932B500000011080F04281E00000A734500000A6F4600000A0000DE1A13480072D40B007011486F4400000A284700000A731900000A7A00000F05280F00000A2D110F05281E00000A282500000A16FE012B0116134911492C1D11086F4800000A0F05281E00000A1F3B1F2C6F4900000A6F4A00000A0000DE1A134A00720A0C0070114A6F4400000A284700000A731900000A7A000011086F4B00000A0F01281E00000A1F3B1F2C6F4900000A6F4A00000A0000DE1A134B0072380C0070114B6F4400000A284700000A731900000A7A00000F02280F00000A2D110F02281E00000A282500000A16FE012B0116134C114C2C1D11086F4C00000A0F02281E00000A1F3B1F2C6F4900000A6F4A00000A0000DE1A134D00726A0C0070114D6F4400000A284700000A731900000A7A00000F03280F00000A2D110F03281E00000A282500000A16FE012B0116134E114E2C1D11086F4D00000A0F03281E00000A1F3B1F2C6F4900000A6F4A00000A0000DE1A134F0072A60C0070114F6F4400000A284700000A731900000A7A0E21280F00000A1350115039EC04000000733100000A1351115172EE0C00706F3200000A261151720E0D00700F12281E00000A281F00000A6F3200000A261151722A0D00706F3200000A26115172420D00700F10281E00000A6F3700000A281F00000A6F3200000A26115172580D00700F11284E00000A8C2B000001281F00000A6F3200000A26115172720D00706F3200000A261151728C0D00700F0D282A00000A8C1C000001281F00000A6F3200000A26115172C60D00700F0F282A00000A8C1C000001281F00000A6F3200000A26115172000E00700F0E282A00000A8C1C000001281F00000A6F3200000A260F0C280F00000A16FE01135411542C19115172360E00700F0C281E00000A284700000A6F3200000A261151724C0E00700E20281E00000A281F00000A6F3200000A261151725C0E00700F07281E00000A281F00000A6F3200000A261151727C0E00700F08281E00000A7266080070282E00000A2D0772B20E00702B0572C80E00700F07281E00000A283800000A6F3200000A26115172DC0E00700F06281E00000A281F00000A6F3200000A26115172F40E007011086F4F00000A6F5000000A281F00000A6F3200000A261151721E0F00700F0A281E00000A6F3700000A281F00000A6F3200000A26071355115545030000000200000011000000200000002B2D115172320F00706F3200000A262B20115172480F00706F3200000A262B111151725E0F00706F3200000A262B022B000F15282300000A2D0772740F00702B0572AE0F007013521613530011086F4B00000A6F5100000A13562B6C11566F5200000A13570011576F5000000A11086F4F00000A6F5000000A282E00000A135811582C03171353115172EE0F00701A8D0E000001251611576F5300000AA2251711576F5000000AA225181152A225190F16281E00000A6F3700000AA2285400000A6F3200000A260011566F5500000A2D8BDE0D11562C0811566F1B00000A00DC0011086F4C00000A6F5100000A13592B6C11596F5200000A135A00115A6F5000000A11086F4F00000A6F5000000A282E00000A135B115B2C03171353115172EE0F00701A8D0E0000012516115A6F5300000AA22517115A6F5000000AA225181152A225190F17281E00000A6F3700000AA2285400000A6F3200000A260011596F5500000A2D8BDE0D11592C0811596F1B00000A00DC0011086F4D00000A6F5100000A135C2B6C115C6F5200000A135D00115D6F5000000A11086F4F00000A6F5000000A282E00000A135E115E2C03171353115172EE0F00701A8D0E0000012516115D6F5300000AA22517115D6F5000000AA225181152A225190F18281E00000A6F3700000AA2285400000A6F3200000A2600115C6F5500000A2D8BDE0D115C2C08115C6F1B00000A00DC115316FE01135F115F2C400011086F4D00000A11086F4F00000A6F5600000A001151728510007011086F4F00000A6F5300000A11086F4F00000A6F5000000A283800000A6F3200000A26000E1313181118285700000A2D1F11180F10281E00000A7239070070283300000A282400000A285800000A2B021118285900000A136011602C5400115172661100706F3200000A26115172801100700F14284E00000A8C2B000001281F00000A6F3200000A26115172A01100706F3200000A26115172BE1100706F3200000A26115172E81100706F3200000A2600115172FE1100706F3200000A26115172141200706F3200000A260E2111516F3000000A282600000A811000000100735A00000A13090011090F19281E00000A6F5B00000A0011090F1A284E00000A6F5C00000A0011090F1C282300000A6F5D00000A0011090F1B282300000A6F5E00000A001109066F5F00000A007230120070736000000A136111616F6100000A724C12007072290700706F6200000A0011616F6100000A725A12007072641200706F6200000A000F07281E00000A0F08281E00000A7266080070282E00000A2D0772B20E00702B0572C80E0070736000000A286300000A136211086F6400000A11626F6500000A000E21281E00000A1161286300000A136311086F6400000A11636F6500000A0011086F6600000A727C12007072981200706F6700000A0000DE1A13640072E012007011646F4400000A284700000A731900000A7A0000110911086F6800000A000E1F286900000A285900000A136511652C1C286A00000A72241300700E20281E00000A281F00000A6F6B00000A0000DE1A136600726613007011666F4400000A284700000A731900000A7A2A0000413C0100020000007A00000044000000BE0000000D00000000000000020000001301000004010000170200000D0000000000000000000000D508000018000000ED0800001C0000001E000001000000001A09000018000000320900001A0000001E000001000000004D090000420000008F0900001A0000001E00000100000000AA09000021000000CB0900001A0000001E00000100000000E609000042000000280A00001A0000001E00000100000000430A000042000000850A00001A0000001E00000102000000E50C0000790000005E0D00000D00000000000000020000007A0D000079000000F30D00000D00000000000000020000000F0E000079000000880E00000D0000000000000000000000A20F0000FA0000009C1000001A0000001E00000100000000B71000003C000000F31000001A0000001E0000012202286C00000A002AB21A8D2D000001251672C9060070A2251772E9060070A225187209070070A225197290130070A280010000042A000042534A4201000100000000000C00000076342E302E33303331390000000005006C000000C8060000237E000034070000300A000023537472696E677300000000641100009C1300002355530000250000100000002347554944000000102500006003000023426C6F620000000000000002000001571D0208090A000000FA013300160000010000003A000000040000000E00000003000000220000006C0000000B0000000D0000000100000004000000010000000300000002000000030000000000AD0401000000000006008303DB060600F003DB060600CE02BC060F000C0700000600E2022A05060066032A05060047032A050600D7032A050600A3032A050600BC032A0506000F032A0506002A032A050600AC02FB060600C108F0040A00F9026E060A00300445070A00440245070A001F0045070A00110545070E006609DC080E00080A9D0406002D0682090E0097019D040E000F099D040A00B705F9080A004F01F9080A001106F90806004702F00406002401F0040600C505F00406000E00B1000E002B089D040E006C0234020E00A9099D0406000905F0040E00A301DC080E006C04DC080A00AA05CF050A003701CF050A000406CF050600B301F0040A005005F90806002200F0040A006106F90806005A04F00406007302F0040600BF01F0040600FF05F0040E007D059D040E001A099D04060001007E040E0067059D0406008906E7070E00D009FA000E0092059D040E003C05FA000A009E096E060A0064026E060000000028000000000001000100010010005A07000039000100010003010000CF0600008D000200040003010000150800008D000B00040011003207600206068C00640256805300670256807E00670256808600670256806800670256803F00670256804B00670256807600670256806F00670206068C006402568038006B02568043006B0256805B006B02502000000000960098026F020100A832000000008618A30606002300B132000000009118A906B9022300000001000E02000002004F08000003004A0800000400440800000500370800000600E90500000700D40800000800CB0900000900B50800000A00770100000B00150A00000C006A0800000D00210500000E00D90000000F00CC0000001000E800000011005F01000012008201000013001901000014003B0600001500760700001600F20500001700EE0100001800E90100001900E30100001A00240200001B00480900001C00E50400001D00CF0700001E001B0200001F006601000020001B07000021004806000022007B080900A30601001100A30606001900A3060A002900A30610003100A30610003900A30610004100A30610004900A30610005100A30610005900A30610006100A30610006900A30610007900A306060021019707B8008100BD04BE009900BD04BE00C900A3061000C9004101C20031011C05060039018E091000D1001F06C70041019B08BE00410181020600310181020600F100A3061000D9002D04CC00490187020600D1000608D20051011804D80081000E04E0006901AE08E4009100BD04BE00D9001C00EA00D9000E05F00099000E04BE009900E708F6006901210AFC008100E70801018900BD04BE00E100B70907018900E7080C0189000E041301E1006B0718019100E7081E012901A30624016901E1092A01E9002101300171005804E000B100A3060600B100500235016901ED092A0119018F023B017101D1014A0119013C07530169015906E0006901AE085B01B10061046C016901A7087001B900A3060600B900C8081000B900C2091000B900FB097601B900C8047C016901F3088101B9005A0888019101A30610000C00F6009701F1008B01E0000101A3061000B90000059D016901A708A401B9004D09AA0169016F01B001A101F6001000B900E205AA01B9003100AA01B900A900AA0191000E046C01B900F704B60101011F08E00014009506C5011C002509D6010101FE01E0006901AE08DB01A9017909BE001400F600970199007802E20199002901E80199002504E201C100A3060600C1005D091000C1003F090100C100B5077C01C100D7047C01C1008707F1010901A306100009010608F701B101F600240111013A04FD01B900880807022400F6009701B900FA071602C101F6002401C1005A011C02990031092202C9015B022902D1015A0110007100A306060008000C003802080010003D0208001400420208001800470208001C004C02080020005102080024005602080028005B02080030003802080034003D0208003800420220006B003D022E000B00BD022E001300C6022E001B00E5022E002300EE022E002B00FF022E0033002F032E003B0035032E004300EE022E004B0035032E00530035032E005B0047032E006300540315008E01BC01CE010D02048000000200000000000000000000000000B00600000400000000000000000000002F02A000000000000400000000000000000000002F029400000000000400000000000000000000002F02F0040000000003000200040002006900450169006201690067010000000000436F6C6C656374696F6E60310049456E756D657261746F7260310047657453716C496E743332003C4D6F64756C653E006765745F4343005055424C49430041444400505249564154450052454652455348005055424C49534800434F4E464944454E5449414C0043414E43454C004445434C494E45434F554E5445520052455155455354005245504C590076616C75655F5F0053797374656D2E44617461006D73636F726C6962006765745F4263630053797374656D2E436F6C6C656374696F6E732E47656E6572696300656E645F74696D655F7574630073746172745F74696D655F7574630074696D657374616D705F757463004164640053797374656D2E436F6C6C656374696F6E732E5370656369616C697A65640070726F645F6964004E657747756964006F705F42697477697365416E64004462436F6D6D616E6400437265617465436F6D6D616E640053716C436F6D6D616E640053656E64006D6574686F640070617373776F7264005265706C61636500696D706F7274616E63650073657175656E6365006765745F4D657373616765004D61696C4D6573736167650043726564656E7469616C43616368650049446973706F7361626C650052756E74696D655479706548616E646C65004765745479706546726F6D48616E646C6500626C696E645F636F70795F726563697069656E74735F726F6C65006765745F446973706C61794E616D650070726F66696C655F6E616D6500757365726E616D6500736D74705F7365727665726E616D650053797374656D2E4E65742E4D696D650053716C4461746554696D6500417070656E644C696E65006765745F506970650053716C5069706500436F6E74656E7454797065006F705F46616C736500436C6F736500446973706F736500547279506172736500636C725F73656E645F6963735F696E76697465004E65757472616C5265736F75726365734C616E67756167654174747269627574650044656275676761626C6541747472696275746500417373656D626C795469746C654174747269627574650053716C50726F63656475726541747472696275746500417373656D626C7954726164656D61726B41747472696275746500417373656D626C7946696C6556657273696F6E41747472696275746500417373656D626C79436F6E66696775726174696F6E41747472696275746500417373656D626C794465736372697074696F6E41747472696275746500436F6D70696C6174696F6E52656C61786174696F6E7341747472696275746500417373656D626C7950726F6475637441747472696275746500417373656D626C79436F7079726967687441747472696275746500417373656D626C79436F6D70616E794174747269627574650052756E74696D65436F6D7061746962696C697479417474726962757465006765745F56616C7565004164645769746856616C7565006F705F547275650047657453716C537472696E6700437265617465416C7465726E6174655669657746726F6D537472696E6700546F537472696E67006765745F4C656E677468004E6574776F726B43726564656E7469616C0053797374656D2E436F6C6C656374696F6E732E4F626A6563744D6F64656C0053797374656D2E4E65742E4D61696C0073716C5F636C725F6963732E646C6C006765745F49734E756C6C007365745F4973426F647948746D6C007365745F456E61626C6553736C00656E61626C655F73736C0053797374656D006765745F46726F6D007365745F46726F6D00456E756D0047657453716C426F6F6C65616E004F70656E006C6F636174696F6E0053797374656D2E5265666C656374696F6E004E616D6556616C7565436F6C6C656374696F6E0053716C506172616D65746572436F6C6C656374696F6E004D61696C41646472657373436F6C6C656374696F6E004174746163686D656E74436F6C6C656374696F6E00416C7465726E61746556696577436F6C6C656374696F6E004462436F6E6E656374696F6E0053716C436F6E6E656374696F6E00457863657074696F6E0053797374656D2E446174612E436F6D6D6F6E006765745F546F007265706C795F746F00726571756972655F727376700043686172004462446174615265616465720053716C44617461526561646572004578656375746552656164657200537472696E674275696C646572007573655F72656D696E646572006576656E745F6964656E74696669657200546F55707065720053716C506172616D65746572004D6963726F736F66742E53716C5365727665722E5365727665720049456E756D657261746F7200476574456E756D657261746F72002E63746F72002E6363746F720073716C5F636C725F6963730053797374656D2E446961676E6F7374696373006943616C4D6574686F64730053797374656D2E52756E74696D652E436F6D70696C657253657276696365730053797374656D2E5265736F757263657300446562756767696E674D6F6465730073757070726573735F696E666F5F6D65737361676573006943616C526F6C6573004765744E616D65730053797374656D2E446174612E53716C54797065730053746F72656450726F63656475726573004164644D696E757465730072656D696E6465725F6D696E75746573007365745F43726564656E7469616C73006765745F44656661756C744E6574776F726B43726564656E7469616C73007365745F55736544656661756C7443726564656E7469616C73007573655F64656661756C745F63726564656E7469616C730053797374656D2E436F6C6C656374696F6E73006765745F48656164657273006765745F506172616D6574657273006943616C436C617373006765745F41646472657373004D61696C416464726573730066726F6D5F6164647265737300626C696E645F636F70795F726563697069656E7473006765745F4174746163686D656E74730066696C655F6174746163686D656E7473006963735F636F6E74656E7473006765745F416C7465726E6174655669657773006765745F486173526F777300436F6E63617400466F726D617400626F64795F666F726D6174004F626A656374007365745F5375626A656374007375626A6563740053797374656D2E4E6574006F705F496D706C696369740053706C69740053797374656D2E446174612E53716C436C69656E7400536D7470436C69656E74004174746163686D656E74006765745F43757272656E74006F705F4C6F676963616C4E6F74007365745F506F727400706F7274006765745F5265706C79546F4C697374007365745F486F7374004943726564656E7469616C734279486F7374004D6F76654E6578740053797374656D2E54657874007365745F436F6D6D616E64546578740053716C436F6E7465787400416C7465726E61746556696577006765745F5574634E6F77007365745F426F647900626F647900537472696E6744696374696F6E617279006F705F457175616C697479006F705F496E657175616C697479007365745F5072696F72697479004D61696C5072696F726974790073656E73697469766974790049734E756C6C4F72456D7074790000002F63006F006E007400650078007400200063006F006E006E0065006300740069006F006E003D007400720075006500008157530045004C00450043005400200070002E006E0061006D0065000D000A00460052004F004D0020005B006D007300640062005D002E005B00640062006F005D002E005B007300790073006D00610069006C005F007000720069006E0063006900700061006C00700072006F00660069006C0065005D002000410053002000700070000D000A0049004E004E004500520020004A004F0049004E0020005B006D007300640062005D002E005B00640062006F005D002E005B007300790073006D00610069006C005F00700072006F00660069006C0065005D00200041005300200070000D000A004F004E002000700070002E00700072006F00660069006C0065005F006900640020003D00200070002E00700072006F00660069006C0065005F00690064000D000A00570048004500520045002000700070002E00690073005F00640065006600610075006C00740020003D0020003100006F700072006F00660069006C0065005F006E0061006D00650020006E006F0074002000730070006500630069006600690065006400200061006E00640020006E006F002000640065006600610075006C0074002000700072006F00660069006C006500200066006F0075006E0064000083EF530045004C00450043005400200054004F00500020003100200061002E0065006D00610069006C005F0061006400640072006500730073002C00200061002E007200650070006C00790074006F005F0061006400640072006500730073002C00200073002E007300650072007600650072006E0061006D0065002C00200073002E0070006F00720074002C00200073002E0065006E00610062006C0065005F00730073006C002C00200073002E007500730065005F00640065006600610075006C0074005F00630072006500640065006E007400690061006C0073002C00200073002E0075007300650072006E0061006D0065000D000A00460052004F004D0020005B006D007300640062005D002E005B00640062006F005D002E005B007300790073006D00610069006C005F00700072006F00660069006C0065005D00200041005300200070000D000A0049004E004E004500520020004A004F0049004E0020005B006D007300640062005D002E005B00640062006F005D002E005B007300790073006D00610069006C005F00700072006F00660069006C0065006100630063006F0075006E0074005D002000410053002000700061000D000A004F004E00200070002E00700072006F00660069006C0065005F006900640020003D002000700061002E00700072006F00660069006C0065005F00690064000D000A0041004E0044002000700061002E00730065007100750065006E00630065005F006E0075006D0062006500720020003E003D00200040005300650071000D000A0049004E004E004500520020004A004F0049004E0020005B006D007300640062005D002E005B00640062006F005D002E005B007300790073006D00610069006C005F006100630063006F0075006E0074005D00200041005300200061000D000A004F004E002000700061002E006100630063006F0075006E0074005F006900640020003D00200061002E006100630063006F0075006E0074005F00690064000D000A0049004E004E004500520020004A004F0049004E0020005B006D007300640062005D002E005B00640062006F005D002E005B007300790073006D00610069006C005F007300650072007600650072005D00200041005300200073000D000A004F004E00200070002E00700072006F00660069006C0065005F006900640020003D00200073002E006100630063006F0075006E0074005F00690064000D000A0057004800450052004500200070002E006E0061006D00650020003D0020004000500072006F00660069006C0065000D000A004F0052004400450052002000420059002000700061002E00730065007100750065006E00630065005F006E0075006D0062006500720020004100530043000009400053006500710000114000500072006F00660069006C0065000039700072006F00660069006C0065005F006E0061006D006500200027007B0030007D00270020006E006F007400200066006F0075006E0064000125530051004C00200053006500720076006500720020004D0065006500740069006E0067000009540045005800540000255300630068006500640075006C0065002000610020004D0065006500740069006E006700000D4E006F0072006D0061006C00000D5000750062006C006900630000136C006F00630061006C0068006F00730074000001001F5200450051002D005000410052005400490043004900500041004E005400011F4F00500054002D005000410052005400490043004900500041004E005400011F4E004F004E002D005000410052005400490043004900500041004E005400010F5200450051005500450053005400000D430041004E00430045004C0000594D0069007300730069006E0067002000730065006E006400650072003A00200050006C0065006100730065002000730070006500630069006600790020004000660072006F006D005F0061006400640072006500730073000080C34D0069007300730069006E006700200072006500630069007000690065006E00740073003A00200050006C0065006100730065002000730070006500630069006600790020006500690074006800650072002000400072006500630069007000690065006E00740073002C002000400063006F00700079005F0072006500630069007000690065006E007400730020006F0072002000400062006C0069006E0064005F0063006F00700079005F0072006500630069007000690065006E00740073000009480054004D004C00006B400062006F00640079005F0066006F0072006D006100740020007B0030007D00200069007300200069006E00760061006C00690064002E002000560061006C00690064002000760061006C007500650073003A00200054004500580054002C002000480054004D004C00005340006D006500740068006F00640020007B0030007D00200069007300200069006E00760061006C00690064002E002000560061006C00690064002000760061006C007500650073003A0020007B0031007D00005B730065006E007300690074006900760069007400790020007B0030007D00200069007300200069006E00760061006C00690064002E002000560061006C00690064002000760061006C007500650073003A0020007B0031007D00005B400069006D0070006F007200740061006E006300650020007B0030007D00200069007300200069006E00760061006C00690064002E002000560061006C00690064002000760061006C007500650073003A0020007B0031007D000065400072006500630069007000690065006E00740073005F0072006F006C00650020007B0030007D00200069007300200069006E00760061006C00690064002E002000560061006C00690064002000760061006C007500650073003A0020007B0031007D00006F400063006F00700079005F0072006500630069007000690065006E00740073005F0072006F006C00650020007B0030007D00200069007300200069006E00760061006C00690064002E002000560061006C00690064002000760061006C007500650073003A0020007B0031007D00007B400062006C0069006E0064005F0063006F00700079005F0072006500630069007000690065006E00740073005F0072006F006C00650020007B0030007D00200069007300200069006E00760061006C00690064002E002000560061006C00690064002000760061006C007500650073003A0020007B0031007D00006155006E00610062006C006500200074006F002000730065006E00640020006D00610069006C002000640075006500200074006F002000760061006C00690064006100740069006F006E0020006500720072006F0072002800730029003A002000003755006E00610062006C006500200074006F002000610074007400610063006800200027007B0030007D0027003A0020007B0031007D0001354000660072006F006D005F006100640064007200650073007300200069007300200069006E00760061006C00690064003A002000002D40007200650070006C0079005F0074006F00200069007300200069006E00760061006C00690064003A0020000031400072006500630069007000690065006E0074007300200069007300200069006E00760061006C00690064003A002000003B400063006F00700079005F0072006500630069007000690065006E0074007300200069007300200069006E00760061006C00690064003A0020000047400062006C0069006E0064005F0063006F00700079005F0072006500630069007000690065006E0074007300200069007300200069006E00760061006C00690064003A002000001F42004500470049004E003A005600430041004C0045004E00440041005200001B500052004F004400490044003A002D002F002F007B0030007D000117560045005200530049004F004E003A0032002E00300000154D004500540048004F0044003A007B0030007D000019530045005100550045004E00430045003A007B0030007D00001942004500470049004E003A0056004500560045004E005400003944005400530054004100520054003A007B0030003A0079007900790079004D004D00640064005400480048006D006D00730073005A007D000039440054005300540041004D0050003A007B0030003A0079007900790079004D004D00640064005400480048006D006D00730073005A007D0000354400540045004E0044003A007B0030003A0079007900790079004D004D00640064005400480048006D006D00730073005A007D0000154C004F0043004100540049004F004E003A002000000F5500490044003A007B0030007D00001F4400450053004300520049005000540049004F004E003A007B0030007D00003558002D0041004C0054002D0044004500530043003B0046004D00540054005900500045003D007B0030007D003A007B0031007D00011574006500780074002F0070006C00610069006E00001374006500780074002F00680074006D006C000017530055004D004D004100520059003A007B0030007D0000294F005200470041004E0049005A00450052003A004D00410049004C0054004F003A007B0030007D00001343004C004100530053003A007B0030007D0000155000520049004F0052004900540059003A00350000155000520049004F0052004900540059003A00390000155000520049004F0052004900540059003A0031000039500041005200540053005400410054003D00410043004300450050005400450044003B0052005300560050003D00460041004C0053004500003F500041005200540053005400410054003D004E0045004500440053002D0041004300540049004F004E003B0052005300560050003D00540052005500450001809541005400540045004E004400450045003B004300550054005900500045003D0049004E0044004900560049004400550041004C003B0052004F004C0045003D007B0033007D003B007B0032007D003B0043004E003D0022007B0030007D0022003B0058002D004E0055004D002D004700550045005300540053003D0030003A006D00610069006C0074006F003A007B0031007D000180DF41005400540045004E004400450045003B004300550054005900500045003D0049004E0044004900560049004400550041004C003B0052004F004C0045003D004E004F004E002D005000410052005400490043004900500041004E0054003B00500041005200540053005400410054003D00410043004300450050005400450044003B0052005300560050003D00460041004C00530045003B0043004E003D0022007B0030007D0022003B0058002D004E0055004D002D004700550045005300540053003D0030003A006D00610069006C0074006F003A007B0031007D00011942004500470049004E003A00560041004C00410052004D00001F54005200490047004700450052003A002D00500054007B0030007D004D00011D41004300540049004F004E003A0044004900530050004C004100590000294400450053004300520049005000540049004F004E003A00520065006D0069006E00640065007200001545004E0044003A00560041004C00410052004D00001545004E0044003A0056004500560045004E005400001B45004E0044003A005600430041004C0045004E00440041005200001B74006500780074002F00630061006C0065006E00640061007200000D6D006500740068006F00640000096E0061006D00650000174D0065006500740069006E0067002E00690063007300001B43006F006E00740065006E0074002D0063006C006100730073000147750072006E003A0063006F006E00740065006E0074002D0063006C00610073007300650073003A00630061006C0065006E006400610072006D00650073007300610067006500014353004D0054005000200043006C00690065006E007400200043006F006E00660069006700750072006100740069006F006E0020004500720072006F0072003A00200000414D00610069006C002000530065006E0074002E0020004500760065006E00740020004900640065006E007400690066006900650072003A0020007B0030007D0000294500720072006F0072002000730065006E00640069006E00670020006D00610069006C003A002000000B4300480041004900520000B7AA02735A6E32448C978C58AA75F9E700042001010803200001052001011111042001010E80A10767125111551259110C1110020202125D1261021265126902126D02126D02020202020202114D0202020202117102020202020202020202020202020202020211750202020202021D0E080E0202020202020202021D0E080E1279127902127912790212790212790212590E0202115515127D011280811280810215127D011280811280810215127D011280811280810202021280851280891280891279021279050000128095032000020420001269042000126D0520011141080520001280A90720021280B10E1C0320000E0500020E0E1C052001114908052001114D08050001114D02040001020E05000111410E040000117106000111451171042000117105200111710D050001114908052002010E0E050002020E0E040000117505200112590E09100103020E02101E00040A01110C0800011280B91180BD0700011D0E1280B90600030E0E1C1C040A011110040A011155032000080500020E1C1C05200101115504200101020620011D0E1D030520001280C508151280CD011280C9052001011300062001011280810500020E0E0E0520001280D10520020E030305200012808108151280CD0112808108200015127D0113000715127D0112808104200013000600020E0E1D1C05000102114D080002114D114D114D0520010112510520001280D90900021280890E1280850520001280DD08151280CD011280890520001280E105200101125D060001114D114D0500001280E908B77A5C561934E0890400000000040100000004020000000403000000040400000004050000000406000000040700000003061D0E0206080306110C03061110490022011141114111411141114111411141114111411141114111411141114511451145114111491141114D1149114D11411141114111411149114D114D11411141114D101141101141030000010801000800000000001E01000100540216577261704E6F6E457863657074696F6E5468726F7773010801000701000000001001000B73716C5F636C725F69637300002F01002A53656E64204943532063616C656E64617220696E7669746573207573696E672053514C2053657276657200000501000000001101000C456974616E20426C756D696E00000C010007322E302E302E3000000A010005656E2D555300000000000000BD35EA5C00000000020000001C0100006C5B00006C3D0000525344534221EEC2CD07384D8DE1547ADD0CF7D801000000433A5C55736572735C656974616E2E626C756D696E5C536F757263655C5265706F735C73716C5F636C725F6963735C73716C5F636C725F6963735C6F626A5C44656275675C73716C5F636C725F6963732E7064620000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000B05C00000000000000000000CA5C0000002000000000000000000000000000000000000000000000BC5C0000000000000000000000005F436F72446C6C4D61696E006D73636F7265652E646C6C0000000000FF250020001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100100000001800008000000000000000000000000000000100010000003000008000000000000000000000000000000100000000004800000058600000A80300000000000000000000A80334000000560053005F00560045005200530049004F004E005F0049004E0046004F0000000000BD04EFFE00000100000002000000000000000200000000003F000000000000000400000002000000000000000000000000000000440000000100560061007200460069006C00650049006E0066006F00000000002400040000005400720061006E0073006C006100740069006F006E00000000000000B00408030000010053007400720069006E006700460069006C00650049006E0066006F000000E402000001003000300030003000300034006200300000006E002B00010043006F006D006D0065006E00740073000000530065006E00640020004900430053002000630061006C0065006E00640061007200200069006E007600690074006500730020007500730069006E0067002000530051004C002000530065007200760065007200000000003A000D00010043006F006D00700061006E0079004E0061006D0065000000000045006900740061006E00200042006C0075006D0069006E000000000040000C000100460069006C0065004400650073006300720069007000740069006F006E0000000000730071006C005F0063006C0072005F006900630073000000300008000100460069006C006500560065007200730069006F006E000000000032002E0030002E0030002E003000000040001000010049006E007400650072006E0061006C004E0061006D0065000000730071006C005F0063006C0072005F006900630073002E0064006C006C0000003E000D0001004C006500670061006C0043006F007000790072006900670068007400000045006900740061006E00200042006C0075006D0069006E000000000042000D0001004C006500670061006C00540072006100640065006D00610072006B0073000000000045006900740061006E00200042006C0075006D0069006E00000000004800100001004F0072006900670069006E0061006C00460069006C0065006E0061006D0065000000730071006C005F0063006C0072005F006900630073002E0064006C006C00000038000C000100500072006F0064007500630074004E0061006D00650000000000730071006C005F0063006C0072005F006900630073000000340008000100500072006F006400750063007400560065007200730069006F006E00000032002E0030002E0030002E003000000038000800010041007300730065006D0062006C0079002000560065007200730069006F006E00000032002E0030002E0030002E00300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005000000C000000DC3C00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
    WITH PERMISSION_SET = UNSAFE;
GO
ALTER ASSEMBLY [sql_clr_ics]
    DROP FILE ALL
    ADD FILE FROM 0x4D6963726F736F667420432F432B2B204D534620372E30300D0A1A4453000000000200000200000023000000A80000000000000021000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000C0FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF38000000FCFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF0BCA3101380000000010000000100000000000000E00FFFF04000000FFFF03000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000BCA3101380000000010000000100000000000000F00FFFF04000000FFFF0300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000942E3101BD35EA5C010000004221EEC2CD07384D8DE1547ADD0CF7D800000000000000000100000001000000000000000000000000000000DC51330100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000BCA310138000000001000000010000000000000FFFFFFFF04000000FFFF030000000000FFFFFFFF00000000FFFFFFFF00000000FFFFFFFF0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000BCA310138000000001000000010000000000000FFFFFFFF04000000FFFF030000000000FFFFFFFF00000000FFFFFFFF00000000FFFFFFFF000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000F862513FC607D311905300C04FA302A1C4454B99E9E6D211903F00C04FA302A10B9D865A1166D311BD2A0000F80849BDEC1618FF5EAA104D87F76F496383346014000000000000009788B1BF12207E15F6496BC0ED4D3C583A2CD83300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003A110000000000003A110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000FEEFFEEF01000000A600000000433A5C55736572735C656974616E2E626C756D696E5C536F757263655C5265706F735C73716C5F636C725F6963735C73716C5F636C725F6963735C636C725F73656E645F6963735F696E766974652E63730000633A5C75736572735C656974616E2E626C756D696E5C736F757263655C7265706F735C73716C5F636C725F6963735C73716C5F636C725F6963735C636C725F73656E645F6963735F696E766974652E637300040000005300000000000000010000005400000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001BE2300180000000FFBFA66E8E13D501010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000200000001000000010000000000000054000000280000001BE23001742080655C000000010000005300000054000000650000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000003E002A11000000005C080000000000000E110000000000000000000001000006000000000100000000636C725F73656E645F6963735F696E76697465000000001600031104000000EC0600000E11000000000000010000000A0024115553797374656D00120024115553797374656D2E54657874000000000E0024115553797374656D2E4E657400160024115553797374656D2E4E65742E4D61696C000000001A0024115553797374656D2E446174612E53716C54797065730000001A0024115553797374656D2E446174612E53716C436C69656E7400001E002411554D6963726F736F66742E53716C5365727665722E536572766572001E0020110000000001000011000000000000000063726564656E7469616C730022002011010000000100001100000000000000006D61696C5072696F72697479000000001E0020110200000001000011000000000000000073625F4572726F727300000026002011030000000100001100000000000000006D6574686F645F656E756D76616C7565000000002A0020110400000001000011000000000000000073656E73697469766974795F656E756D76616C75650000002A00201105000000010000110000000000000000726563697069656E745F726F6C655F666F756E64000000002E00201106000000010000110000000000000000636F70795F726563697069656E745F726F6C655F666F756E640000003200201107000000010000110000000000000000626C696E645F636F70795F726563697069656E745F726F6C655F666F756E640016002011080000000100001100000000000000006D7367001E00201109000000010000110000000000000000736D7470636C69656E74000016000311440000002C030000F50100003800000001000000160020110B000000010000110000000000000000636F6E00160020110C000000010000110000000000000000636D6400160003117C020000F40200005A0000007100000001000000160020110E0000000100001100000000000000007264720002000600160003117C020000280300001A0100000A01000001000000160020111000000001000011000000000000000072647200020006000200060016000311440000006403000089000000F1060000010000001A0020113A0000000100001100000000000000006974656D00000000020006001600031144000000D40300003D000000CD080000010000001E002011460000000100001100000000000000006174745F70617468000000001600031168030000D00300001C000000ED0800000100000016002011470000000100001100000000000000006500000002000600020006001600031144000000080400001A00000032090000010000001600201148000000010000110000000000000000650000000200060016000311440000003C0400001A0000008F09000001000000160020114A00000001000011000000000000000065000000020006001600031144000000700400001A000000CB09000001000000160020114B00000001000011000000000000000065000000020006001600031144000000A40400001A000000280A000001000000160020114D00000001000011000000000000000065000000020006001600031144000000D80400001A000000850A000001000000160020114F0000000100001100000000000000006500000002000600160003114400000010060000EC040000AF0A00000100000026002011510000000100001100000000000000006963735F636F6E74656E74735F737472000000001E00201152000000010000110000000000000000727376705F737472696E67002A002011530000000100001100000000000000006F7267616E697A65725F696E5F726563697069656E74730016000311DC0400009C0500006C000000E70C0000010000001A0020115700000001000011000000000000000061646472000000000200060016000311DC040000D40500006C0000007C0D0000010000001A0020115A00000001000011000000000000000061646472000000000200060016000311DC0400000C0600006C000000110E0000010000001A0020115D00000001000011000000000000000061646472000000000200060002000600160003114400000080060000F8000000A20F0000010000001A00201161000000010000110000000000000000636F6E74797065001A002011620000000100001100000000000000006176426F647900001A00201163000000010000110000000000000000617643616C000000020006001600031144000000B40600001A0000009C10000001000000160020116400000001000011000000000000000065000000020006001600031144000000E80600001A000000F31000000100000016002011660000000100001100000000000000006500000002000600020006006A010404C93FEAC6B359D649BC250902BBABB460000000004D0044003200000004020000040000000C00000001000700040600003C010000014D01809C0194D7019839019928019AD9019B05019B3601A19701BBF102811F0181AD0182220282650183880283CB01884B0288860289AD0289FF028A49028AA1028AE2028B3100028BA0028CD4028D38028D9A028DDE00028E39028E90028ECD028F04028F50028FB402901502907B0290EE0291130291490291EF0292A30292ED0293410293A30293D3029420000295030295970297480298020298EE0299E9079B6A099B6A019B6A029BA2029C34029CD5029D88029E2E029EF0029FC602A0B602A26007A29609A29601A29601A37701A4A302A53A01A5CA01A6A702A73C01A7D802A87201A92102AA1001AA4F01B26E01B2E902AD8F02B05E06B31901B31902B35E06B49D01B49D02B4E206B62601B62602B66C02B7B602B90301BD6C01BE3B01BF2001C000401002C000412801C00041D1020006002E002A1100000000C0080000000000002C0000000000000000000000030000060E11000001000000002E6363746F72002E000404C93FEAC6B359D649BC250902BBABB460000000004D0044003200000004010000040100000C0000000100000602000600F20000002412000000000000010001000E11000000000000810100001812000000000000320000800100000035000080070000003C00008031000000EEEFFE80380000003D000080390000003E000080450000003F0000804E0000004000008056000000420000805F000000EEEFFE8063000000430000806400000044000084710000004A0000807A0000004B0000807B0000004C00008087000000EEEFFE808B0000004D0000808C0000004E000080940000004F0000809C00000050000080A700000053000080A800000054000080B200000055000080B300000056000080BB00000057000080BE000000EEEFFE80CA000000EEEFFE80CB00000058000080CC0000005A00008AD900000066000080F1000000670000800A01000069000080130100006A000080140100006B00008020010000EEEFFE80240100006C000080250100006D0000802D0100006E000080350100006F0000804C010000720000804D0100007300008056010000EEEFFE805A0100007300008064010000740000806D010000EEEFFE8071010000740000807B0100007500008084010000EEEFFE80880100007500008092010000760000809B010000EEEFFE809F01000076000080A901000077000080B2010000EEEFFE80B601000077000080C001000078000080C9010000EEEFFE80CD01000078000080E501000079000080FD010000EEEFFE8001020000790000800B0200007A0000800C0200007B000080140200007C00008017020000EEEFFE8023020000EEEFFE80240200007D0000802C0200007E0000802D0200008400008047020000EEEFFE804B02000084000080570200008500008071020000EEEFFE80750200008500008081020000860000808A020000EEEFFE808E020000860000809A02000087000080A3020000EEEFFE80A702000087000080C702000088000080D0020000EEEFFE80D402000088000080F402000089000080FD020000EEEFFE8001030000890000800A0300008A00008013030000EEEFFE80170300008A0000801F0300008B00008028030000EEEFFE802C0300008B000080340300008C0000804E030000EEEFFE80520300008C0000805E0300008D00008078030000EEEFFE807C0300008D000080880300008E000080A2030000EEEFFE80A60300008E000080B203000090000080CC030000EEEFFE80D003000090000080DC03000091000080E5030000EEEFFE80E903000091000080F203000092000080FB030000EEEFFE80FF03000092000080070400009400008021040000EEEFFE80250400009500008026040000960000802E040000970000803104000099000080320400009A0000804C040000EEEFFE80500400009A0000805C0400009B000080700400009C000080710400009E0000807A040000EEEFFE807E0400009E0000808A0400009F00008093040000EEEFFE80970400009F000080A3040000A0000080AC040000EEEFFE80B0040000A0000080BC040000A2000080C5040000EEEFFE80C9040000A2000080D5040000A3000080DE040000EEEFFE80E2040000A300008000050000A400008009050000EEEFFE800D050000A40000802D050000AA00008033050000AC0000804D050000EEEFFE8051050000AC0000805D050000AD000084A8050000EEEFFE80AC050000B2000080B8050000B4000080E1050000EEEFFE80E5050000B4000080FD050000B500008011060000EEEFFE8015060000B500008046060000B60000805A060000EEEFFE805E060000B60000808F060000B7000080A3060000EEEFFE80A7060000B7000080D8060000B9000080DB060000BA000080DE060000BB000080E1060000BD000080E2060000BD000080EC060000EEEFFE80F1060000BD000080F8060000BE000080F9060000BF00008015070000EEEFFE8019070000C00000801A070000C10000801D070000C20000801E070000C30000803A070000EEEFFE803E070000C40000803F070000C500008042070000C600008043070000C70000805F070000EEEFFE8063070000C800008064070000C900008067070000CA00008068070000CB00008072070000EEEFFE8076070000CC00008077070000CD00008079070000CF0000807A070000EEEFFE8080070000BD0000808B070000D10000809E070000EEEFFE80A2070000D1000080C4070000D2000080D7070000EEEFFE80DB070000D2000080FD070000D300008010080000EEEFFE8014080000D300008036080000D500008041080000EEEFFE8045080000D500008056080000DB0000805D080000DC0000806C080000DD0000807B080000DE00008084080000DF0000809D080000E1000080A9080000EEEFFE80AD080000E2000080AE080000E3000080AF080000E3000080CB080000EEEFFE80CD080000E3000080D4080000E4000080D5080000E6000080D6080000E7000080EA080000E8000080ED080000E9000080EF080000EA000080F0080000EB00008009090000ED0000800A090000EEEFFE8010090000E300008018090000EE00008019090000EEEFFE801A090000F10000801B090000F20000802F090000F300008032090000F400008034090000F500008035090000F60000804C090000EEEFFE804D090000FA0000804E090000FB0000806B090000EEEFFE806F090000FB0000808C090000FC0000808F090000FD00008091090000FE00008092090000FF000080A9090000EEEFFE80AA09000003010080AB09000004010080C809000005010080CB09000006010080CD09000007010080CE09000008010080E5090000EEEFFE80E60900000C010080E70900000D010080040A0000EEEFFE80080A00000D010080250A00000E010080280A00000F0100802A0A0000100100802B0A000011010080420A0000EEEFFE80430A000015010080440A000016010080610A0000EEEFFE80650A000016010080820A000017010080850A000018010080870A000019010080880A00001A0100809F0A000021010080A80A0000EEEFFE80AF0A000022010080B00A000023010080B70A000024010080C40A000025010080DD0A000026010080EA0A000027010080080B000028010080260B00002A010080330B00002B010080510B00002C0100806F0B00002D0100808D0B00002E010080990B0000EEEFFE809D0B00002E010080B60B00002F010080CF0B000030010080E80B000031010080200C000032010080390C000033010080570C000034010080750C000036010080780C0000EEEFFE808D0C0000390100809A0C00003A0100809C0C00003C010080A90C00003D010080AB0C00003F010080B80C000040010080BA0C000042010080BC0C000045010080D30C000046010080D60C000048010080D70C000048010080E50C0000EEEFFE80E70C000048010080F00C000049010080F10C00004A0100800B0D0000EEEFFE800F0D00004A010080120D00004B010080520D00004C010080530D0000480100805E0D0000EEEFFE806A0D0000EEEFFE806B0D00004E0100806C0D00004E0100807A0D0000EEEFFE807C0D00004E010080850D00004F010080860D000050010080A00D0000EEEFFE80A40D000050010080A70D000051010080E70D000052010080E80D00004E010080F30D0000EEEFFE80FF0D0000EEEFFE80000E000054010080010E0000540100800F0E0000EEEFFE80110E0000540100801A0E0000550100801B0E000056010080350E0000EEEFFE80390E0000560100803C0E0000570100807C0E0000580100807D0E000054010080880E0000EEEFFE80940E0000EEEFFE80950E00005A0100809C0E0000EEEFFE80A00E00005B010080A10E00005C010080B50E00005D010080DF0E00005E010080E00E000060010080150F0000EEEFFE80190F0000610100801A0F000062010080270F000063010080450F000064010080520F0000650100805F0F0000660100806C0F0000670100806D0F0000690100807A0F00006A010080870F00006C0100809A0F00006D0100809B0F000073010080A20F000076010080A30F000077010080B20F000078010080C10F000079010080D00F00007A010080DF0F00007B010080E80F00007C010080F40F00007D0100800B1000007E0100802210000080010080541000008101008063100000820100807310000083010080821000008501008099100000860100809C100000870100809E100000880100809F10000089010080B6100000EEEFFE80B710000091010080B810000092010080C210000093010080D0100000EEEFFE80D410000094010080F010000095010080F310000096010080F510000097010080F6100000980100800D1100009C0100800500060009005400090070000000000009000A000D004E000D0032000D0018000D002500000000000D000E0011001A0018003F00110012001500260000000000150016001900250019002500190068001500160019003C0015001600150021001100120000000000000000000D000E000D0022000D0034000D00490014003B000D000E00110022000000000011001200150021001500210015006C001100120015002D00000000002E00510015002900000000002A00490015003000000000003100570015002500000000002600400015002B00000000002C004E00150038000000000039006E0015004B00000000004C006B001100120011001D000D000E0000000000000000000D00190009000A0009004300000000004400630009004B00000000004C006100090022000000000023004300090023000000000024005A00090021000000000022005600090025000000000026003C0009002100000000002200360009002B00000000002C004B0009004300000000004400630009004900000000004A00600009004B00000000004C00630009005300000000005400720009001900000000001A00240009001F000000000020003300090045000000000009000A000D002C0009000A0009000A000D004900000000004A0058000D00510009000A0009002400000000002500490009002900000000002A00530009002F000000000030005F0009001B00000000001C002F0009001D00000000001E004C000900250000000000260053000900370009004D00000000004E00930009000D00000000000D00870009004800000000004900B90009005200000000005300EB0009005A00000000005B00FA0009004600000000004700E80009002B000900300009003600090010001E0027000000000012001A0009000A000D004500000000000D000E0011002D000D000E000D004F00000000000D000E00110032000D000E000D005B00000000000D000E00110038000D000E000D006600000000000D000E001100170009000A00000000001B001D0009003900000000003A00C10009004300000000004400D50009004F00000000005000ED0009002200000000002300770009002D000900250009001F000900250009003800090026000000000009000A000D0014002600470000000000160022000D000E00110012001500430011001200110024001100120015006C000D000E00000000002300250009000A000000000009000A000D003C0009000A0009001C0009000A000D004B000000000009000A000D004B00000000004C00820009000A0009001C0009000A000D0047000000000009000A000D003C0009000A0009001C0009000A000D0049000000000009000A000D005900000000005A008E0009000A0009001C0009000A000D004E000000000009000A000D006500000000006600A10009000A0009001C0009000A000D005400090021000000000009000A000D0042000D003C000D0058000D0038000D005E000D0058000D0039000D006E000D006D000D006A000D0022000000000023005E000D005B000D0057000D009C000D0056000D0062000D0062000D0022000000000015003F0015001B0015003F0015001B0015003F0015001B0015001B000D007C000D0032000D0014002A00300000000000160026000D000E001100360000000000370056001100DA000D000E002700290000000000000000000D0014002A00300000000000160026000D000E001100360000000000370056001100DF000D000E002700290000000000000000000D0014002A00310000000000160026000D000E001100360000000000370056001100E5000D000E002700290000000000000000000D002A00000000000D000E00110027001100D9000D000E000D003A00000000000D000E0011003D001100670011003F001100450011003B000D000E000D0037000D003A000D00380009000A000900320009000A000D0035000D002A000D004E000D0035000D0032000D0064000D0039000D003B000D00B7000D002C000D006C000D002B000D00550009000A0009001C0009000A000D0052000000000009000A000D0022000D002900000000001100710009000A0009001C0009000A000D00450005000600F2000000240000000E110000010001002C000000000000000100000018000000000000001F00008005006E00F40000000800000001000000000000001000000000000000240000003C00000054000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000FFFFFFFF1A092FF120000000140200005500000001000000250000000100000001000000010000003D00000001000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000C00000018000000240000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002200251100000000040000000100636C725F73656E645F6963735F696E7669746500000016002911000000000400000001003036303030303031000016002511000000006008000001002E6363746F7200000000160029110000000060080000010030363030303030330000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000FFFFFFFF1A092FF10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000FFFFFFFF77093101010000000B00108E0C0084690D0006005C0000003C0000002C00000060000000000000000000000016000000190000000000EEC00000000000000000FFFF000000000000FFFFFFFF00000000FFFF0000000000000000000000000A00C408000000000000681200000100000000000000000000000000000053746F72656450726F636564757265730043444135313336460000002DBA2EF101000000000000000E11000000000000000000000000000000000000010000000E1100002C00000000000000000000000000000000000000020002000D01000000000100FFFFFFFF000000003A1100000802000000000000FFFFFFFF00000000FFFFFFFF010001000000010000000000433A5C55736572735C656974616E2E626C756D696E5C536F757263655C5265706F735C73716C5F636C725F6963735C73716C5F636C725F6963735C636C725F73656E645F6963735F696E766974652E6373000000FEEFFEEF010000000100000000010000000000000000000000FFFFFFFFFFFFFFFFFFFF0900FFFFFFFFFFFFFFFFFFFF00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000942E3101BD35EA5C010000004221EEC2CD07384D8DE1547ADD0CF7D87F0000002F4C696E6B496E666F002F6E616D6573002F7372632F686561646572626C6F636B002F7372632F66696C65732F633A5C75736572735C656974616E2E626C756D696E5C736F757263655C7265706F735C73716C5F636C725F6963735C73716C5F636C725F6963735C636C725F73656E645F6963735F696E766974652E6373000400000006000000010000001B00000000000000220000000800000011000000070000000A00000006000000000000000500000000000000DC51330100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000E00000020000000DB00000038000000930100003800000000000000CA000000800000005C00000028000000401B0000440200002C0000006C000000030000001F000000060000001E000000070000000A0000000B00000008000000090000000C0000000D0000000E0000000F000000100000001100000012000000130000001400000015000000160000001700000018000000190000001A0000001B0000001D0000001C000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 AS N'sql_clr_ics.pdb';
GO
SET ANSI_NULLS OFF
GO
SET QUOTED_IDENTIFIER OFF
GO
PRINT N'Creating [dbo].[clr_send_ics_invite]...';
GO
CREATE PROCEDURE [dbo].[clr_send_ics_invite]
@profile_name NVARCHAR (MAX) NULL, @recipients NVARCHAR (MAX) NULL, @copy_recipients NVARCHAR (MAX) NULL, @blind_copy_recipients NVARCHAR (MAX) NULL, @from_address NVARCHAR (MAX) NULL, @reply_to NVARCHAR (MAX) NULL, @subject NVARCHAR (MAX) NULL, @body NVARCHAR (MAX) NULL, @body_format NVARCHAR (MAX) NULL, @importance NVARCHAR (MAX) NULL, @sensitivity NVARCHAR (MAX) NULL, @file_attachments NVARCHAR (MAX) NULL, @location NVARCHAR (MAX) NULL, @start_time_utc DATETIME NULL, @end_time_utc DATETIME NULL, @timestamp_utc DATETIME NULL, @method NVARCHAR (MAX) NULL, @sequence INT NULL, @prod_id NVARCHAR (MAX) NULL, @use_reminder BIT NULL, @reminder_minutes INT NULL, @require_rsvp BIT NULL, @recipients_role NVARCHAR (MAX) NULL, @copy_recipients_role NVARCHAR (MAX) NULL, @blind_copy_recipients_role NVARCHAR (MAX) NULL, @smtp_servername NVARCHAR (MAX) NULL, @port INT NULL, @enable_ssl BIT NULL, @use_default_credentials BIT NULL, @username NVARCHAR (MAX) NULL, @password NVARCHAR (MAX) NULL, @suppress_info_messages BIT NULL, @event_identifier NVARCHAR (MAX) NULL OUTPUT, @ics_contents NVARCHAR (MAX) NULL OUTPUT
AS EXTERNAL NAME [sql_clr_ics].[StoredProcedures].[clr_send_ics_invite]
GO
PRINT N'Creating [dbo].[sp_send_calendar_event]...';
GO
/*
	sql_clr_ics copyright (c) Eitan Blumin
---------------------------------------------------
Source: https://github.com/EitanBlumin/sql_clr_ics
License: MIT (https://github.com/EitanBlumin/sql_clr_ics/blob/master/LICENSE)
---------------------------------------------------
This serves as a wrapper for the CLR stored procedure with default values for parameters
(which is not possible natively for all data types in the CLR procedure itself)
*/
CREATE PROCEDURE [dbo].[sp_send_calendar_event]
	@profile_name [sysname] = NULL,
	@recipients [nvarchar](max) = NULL,
	@copy_recipients [nvarchar](max) = NULL,
	@blind_copy_recipients [nvarchar](max) = NULL,
	@from_address [nvarchar](max) = NULL,
	@reply_to [nvarchar](max) = NULL,
	@subject [nvarchar](255) = N'SQL Server Meeting',
	@body [nvarchar](max) = NULL,
	@body_format [nvarchar](20) = N'TEXT',
	@importance [nvarchar](6) = N'Normal',
	@sensitivity [nvarchar](12) = N'Public',
	@file_attachments [nvarchar](max) = NULL,
	@location [nvarchar](255) = NULL,
	@start_time_utc [datetime] = NULL,
	@end_time_utc [datetime] = NULL,
	@timestamp_utc [datetime] = NULL,
	@method [nvarchar](14) = N'REQUEST',
	@sequence [int] = 0,
	@prod_id [nvarchar](255) = NULL,
	@use_reminder [bit] = 1,
	@reminder_minutes [int] = 15,
	@require_rsvp [bit] = 0,
	@recipients_role [nvarchar](15) = N'REQ-PARTICIPANT',
	@copy_recipients_role [nvarchar](15) = N'OPT-PARTICIPANT',
	@blind_copy_recipients_role [nvarchar](15) = N'NON-PARTICIPANT',
	@smtp_servername [nvarchar](255) = N'localhost',
	@port [int] = 25,
	@enable_ssl [bit] = 0,
	@use_default_credentials [bit] = 0,
	@username [nvarchar](255) = NULL,
	@password [nvarchar](255) = NULL,
	@suppress_info_messages [bit] = 0,
	@event_identifier [nvarchar](255) = NULL OUTPUT,
	@ics_contents [nvarchar](MAX) = NULL OUTPUT
WITH EXECUTE AS CALLER
AS
SET NOCOUNT ON;
EXEC dbo.[clr_send_ics_invite] @profile_name, @recipients, @copy_recipients, @blind_copy_recipients, @from_address, @reply_to, @subject, @body, @body_format, @importance, @sensitivity, @file_attachments, @location, @start_time_utc, @end_time_utc, @timestamp_utc, @method, @sequence, @prod_id, @use_reminder, @reminder_minutes, @require_rsvp, @recipients_role, @copy_recipients_role, @blind_copy_recipients_role, @smtp_servername, @port, @enable_ssl, @use_default_credentials, @username, @password, @suppress_info_messages, @event_identifier OUTPUT, @ics_contents OUTPUT
GO